/* User Desktop: flat compact buttons (column-based layout) */

.roledesktop-grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.xUserButton {
    margin-top: 2vh;
    background-color: #4B4B4B;
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 90%;
    max-width: 20vw;
    padding: 1vh 0.5vw;
    border-radius: 0;
    border: none;
    border-left: 0.25rem solid gray;
    box-sizing: border-box;
    font-size: 0.8vw;
    line-height: 1.2em;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

    .xUserButton:hover {
        transform: scale(1.1);
    }

    .xUserButton:active {
        transform: scale(0.9);
    }

    .xUserButton img {
        width: 15%;
        height: auto;
        align-self: center;
    }

.xUserButton-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.8vw;
    height: 1.8vw;
    margin-right: 0.5vw;
}

    .xUserButton-icon svg {
        width: 100%;
        height: 100%;
        fill: currentColor;
    }

.xUserButton-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    padding-left: 0.3vw;
}


/* User Desktop: color-only classes (border-color override) */

.xColor-Gray {
    border-color: #808080 !important;
}

.xColor-Red {
    border-color: #FF0000 !important;
}

.xColor-Blue {
    border-color: #3296FA !important;
}

.xColor-LightBlue {
    border-color: #87CEFA !important;
}

.xColor-Green {
    border-color: #00C800 !important;
}

.xColor-Gold {
    border-color: #E4BB09 !important;
}

.xColor-Purple {
    border-color: #960096 !important;
}

.xColor-Orange {
    border-color: #FF8000 !important;
}

.xColor-Pink {
    border-color: #FF80C4 !important;
}

.xColor-White {
    border-color: #FFFFFF !important;
}

.xColor-Yellow {
    border-color: #FFFF00 !important;
}

.xColor-DarkGreen {
    border-color: #006400 !important;
}


/* User Desktop: grid container and flat compact grid buttons */

.roledesktop-grid-container {
    width: 100%;
    padding: 0 0.5rem;
    margin: 0;
    overflow: hidden;
}

.roledesktop-grid {
    display: grid;
    gap: 1px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.xWorkspaceRoleDesktopGridButton {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0.3rem;
    margin: 0;
    border: none;
    border-left: 0.2rem solid gray;
    border-radius: 0;
    box-sizing: border-box;
    font-size: clamp(0.45rem, 0.6vw, 0.75rem);
    line-height: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    cursor: pointer;
    background-color: #4B4B4B;
}

    .xWorkspaceRoleDesktopGridButton:hover {
        filter: brightness(1.2);
        color: white;
        text-decoration: none;
    }

    .xWorkspaceRoleDesktopGridButton:active {
        filter: brightness(0.85);
    }

.xWorkspaceRoleDesktopGridButton-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.2rem;
    flex-shrink: 0;
}

    .xWorkspaceRoleDesktopGridButton-icon svg {
        width: 100%;
        height: 100%;
        fill: currentColor;
    }

.xWorkspaceRoleDesktopGridButton-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.xWorkspaceRoleDesktopGridButton-empty {
    width: 100%;
    background-color: transparent;
}
