:root {
    --erp-green: #08704b;
    --erp-green-dark: #06452f;
    --erp-sidebar: #10231d;
    --erp-sidebar-hover: #193b30;
    --erp-border: #e4e8e6;
    --erp-muted: #667085;
}

#header {
    background: var(--erp-green-dark);
    min-height: 58px;
    padding: 0 22px;
}

#branding {
    display: flex;
    align-items: center;
}

.erp-branding {
    display: flex;
    align-items: center;
    gap: 13px;
}

.erp-menu-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.erp-brand-link,
.erp-brand-link:visited {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
}

.erp-brand-link strong {
    font-size: 18px;
    line-height: 1.1;
}

.erp-brand-link small {
    margin-top: 3px;
    font-size: 10px;
    opacity: .72;
}

.erp-top-actions {
    display: flex;
    align-items: center;
    height: 100%;
    color: white;
}

.erp-user-name {
    font-size: 12px;
}

/*
 * SESOM ERP shell
 *
 * #main contains exactly:
 *   1. #erp-sidebar
 *   2. #content-start
 *
 * Sidebar receives the fixed 270px column.
 * Main content receives all remaining width.
 */
/*
 * SESOM ERP responsive shell.
 *
 * Some ERP pages render #erp-sidebar and some do not.
 * Never reserve an empty 270px column when the sidebar
 * is absent.
 */

#container > #main.main {
    display: grid !important;

    /* Default: no sidebar = full-width content */
    grid-template-columns: minmax(0, 1fr) !important;

    width: 100% !important;
    max-width: none !important;

    align-items: stretch !important;
}

/* Sidebar actually exists */
#container > #main.main:has(> #erp-sidebar) {
    grid-template-columns:
        270px minmax(0, 1fr) !important;
}

#main.main > #erp-sidebar {
    grid-column: 1 !important;

    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
}

/*
 * Default content placement:
 * column 1 when no sidebar exists.
 */
#main.main > #content-start {
    grid-column: 1 !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;

    box-sizing: border-box !important;
}

/*
 * Move content to column 2 only when the sidebar
 * actually exists.
 */
#main.main:has(> #erp-sidebar) > #content-start {
    grid-column: 2 !important;
}

#content-start > #content {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    box-sizing: border-box !important;
}

.erp-sidebar {
    width: 270px;
    min-height: calc(100vh - 58px);
    background: var(--erp-sidebar);
    color: white;
    overflow-y: auto;
    overflow-x: hidden;
}

.erp-navigation {
    padding: 15px 10px 30px;
}

.erp-nav-item,
.erp-nav-group > summary {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #edf5f1 !important;
    text-decoration: none !important;
    cursor: pointer;
    font-size: 12px;
}

.erp-nav-item:hover,
.erp-nav-group > summary:hover {
    background: var(--erp-sidebar-hover);
}

.erp-nav-icon {
    width: 23px;
    text-align: center;
    font-size: 15px;
}

.erp-nav-group {
    margin: 2px 0;
}

.erp-nav-group > summary {
    list-style: none;
}

.erp-nav-group > summary::-webkit-details-marker {
    display: none;
}

.erp-chevron {
    margin-left: auto;
    transition: transform .15s ease;
}

.erp-nav-group[open] > summary .erp-chevron {
    transform: rotate(90deg);
}

.erp-submenu {
    margin: 2px 0 8px 33px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,.12);
}

.erp-submenu > a,
.erp-submenu > .erp-disabled-link,
.erp-subgroup > summary {
    display: block;
    padding: 8px 8px;
    margin: 1px 0;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.35;
    color: #cfddd7;
    text-decoration: none;
}

.erp-submenu > a:hover,
.erp-subgroup > summary:hover {
    background: var(--erp-sidebar-hover);
    color: white;
}

.erp-subgroup > summary {
    cursor: pointer;
}

.erp-subsubmenu {
    padding: 2px 0 4px 11px;
}

.erp-subsubmenu a,
.erp-subsubmenu .erp-disabled-link {
    display: block;
    padding: 7px 8px;
    color: #c7d6d0;
    font-size: 10.5px;
    text-decoration: none;
}

.erp-subsubmenu a:hover {
    color: white;
}

.erp-disabled-link {
    opacity: .5;
    cursor: not-allowed;
}

.erp-disabled-link small,
.erp-inactive small {
    display: block;
    margin-top: 2px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.erp-inactive {
    opacity: .48;
    cursor: not-allowed;
}

.erp-nav-divider {
    padding: 18px 11px 7px;
    color: rgba(255,255,255,.42);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
}

.main > #content-start {
    min-width: 0;
}

#content {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    padding: 26px 30px 40px;
}

body.erp-sidebar-collapsed #main.main {
    grid-template-columns: 0 minmax(0, 1fr) !important;
}

body.erp-sidebar-collapsed #main.main > #erp-sidebar {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
}

body.erp-sidebar-collapsed .erp-sidebar {
    width: 0;
    visibility: hidden;
}

@media (max-width: 900px) {

    #container > #main.main {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }

    #main.main > #content-start {
        grid-column: 1 !important;

        width: auto !important;
        min-width: 0 !important;
    }

    #container > #main.main:has(> #erp-sidebar) {
        grid-template-columns:
            0 minmax(0, 1fr) !important;
    }

    #main.main:has(> #erp-sidebar) > #content-start {
        grid-column: 2 !important;
    }

    .erp-sidebar {
        position: fixed;
        top: 58px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        width: 270px;
        transform: translateX(-100%);
        transition: transform .18s ease;
    }

    body:not(.erp-sidebar-collapsed) .erp-sidebar {
        transform: translateX(0);
    }

    body.erp-sidebar-collapsed .erp-sidebar {
        width: 270px;
    }

    #content {
        padding: 18px 14px 30px;
    }
}

/* SESOM ERP header identity */
.erp-brand-link {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.erp-header-logo {
    width: 46px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.erp-brand-text {
    display: flex;
    flex-direction: column;
}

.erp-brand-text strong {
    font-size: 17px;
    line-height: 1.15;
}

.erp-brand-text small {
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 700;
    text-transform: uppercase;
    opacity: .75;
}

/* Refined SESOM ERP branding */
#header {
    background: #2f7f70;
}

.erp-header-logo {
    width: 54px;
    height: 44px;
    object-fit: contain;
    padding: 2px;
    background: rgba(255,255,255,.96);
    border-radius: 8px;
}

.erp-brand-text strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
}

.erp-brand-text small {
    font-size: 8.5px;
    letter-spacing: .04em;
    text-transform: none;
    opacity: .9;
}

.erp-menu-button {
    background: rgba(255,255,255,.18);
}

/* Center dashboard banner content */
.erp-welcome {
    justify-content: center !important;
    text-align: center;
    min-height: 105px;
}

.erp-welcome > div {
    width: 100%;
}

.erp-welcome h1 {
    text-align: center;
    font-size: 30px;
}

.erp-welcome p {
    text-align: center;
    font-size: 14px;
}

/* Header logo - keep transparent background visible */
.erp-header-logo {
    width: 54px;
    height: 44px;
    object-fit: contain;
    padding: 0;
    background: transparent !important;
    border-radius: 0;
}

/* Compact ERP dashboard hero */
.erp-welcome {
    min-height: 0 !important;
    padding: 18px 24px !important;
    margin-bottom: 18px !important;
}

.erp-welcome h1 {
    margin: 0 0 4px !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

.erp-welcome p {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

/* Clickable ERP dashboard items */
.erp-kpi-link {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.erp-kpi-link:hover {
    transform: translateY(-2px);
    border-color: #9fc9b8;
    box-shadow: 0 7px 18px rgba(0,0,0,.08);
}

.erp-kpi-link span {
    display: block;
    margin-top: 10px;
    color: #08704b;
    font-size: 11px;
    font-weight: 700;
}

.erp-info-link {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}

.erp-info-link:hover {
    background: rgba(8,112,75,.045);
}

.erp-info-link:hover span:first-child {
    color: #08704b;
}


.hr-dashboard {
    width: 100% !important;
    max-width: 1500px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

/* HR page columns */
.hr-layout {
    width: 100% !important;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr) !important;
}

/* Prevent dashboard elements from shrinking */
.hr-kpis,
.hr-panel,
.hr-heading {
    width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   SESOM ERP workspace switcher
   ========================================================= */

.erp-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    position: relative;
}

.erp-current-workspace {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.erp-workspace-caption {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .72;
    margin-bottom: 3px;
}

.erp-current-workspace strong {
    font-size: 13px;
    font-weight: 700;
}

.erp-workspace-switcher {
    position: relative;
}

.erp-workspace-switcher > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 7px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.erp-workspace-switcher > summary::-webkit-details-marker {
    display: none;
}

.erp-workspace-switcher > summary:hover {
    background: rgba(255,255,255,.10);
}

.erp-workspace-chevron {
    margin-left: 5px;
    font-size: 10px;
}

.erp-workspace-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10000;
    width: 245px;
    max-height: 360px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    padding: 6px;
}

.erp-workspace-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 11px;
    border-radius: 6px;
    color: #222 !important;
    text-decoration: none !important;
    font-size: 13px;
}

.erp-workspace-option:hover {
    background: rgba(0,0,0,.06);
}

.erp-workspace-option.active {
    font-weight: 700;
    background: rgba(0,0,0,.08);
}

.erp-workspace-check {
    font-weight: 700;
}

@media (max-width: 767px) {
    .erp-top-actions {
        gap: 7px;
    }

    .erp-workspace-caption {
        display: none;
    }

    .erp-current-workspace strong {
        font-size: 11px;
    }

    .erp-workspace-switcher > summary {
        padding: 7px 8px;
        font-size: 11px;
    }

    .erp-workspace-menu {
        width: min(245px, 82vw);
    }
}

/* =========================================================
   SESOM ERP - ROLE / DEPARTMENT LEFT NAVIGATION
   ========================================================= */

.erp-role-navigation {
    margin: 14px 0 18px;
}

.erp-current-role-card {
    margin: 8px 10px 14px;
    padding: 12px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.erp-current-role-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    opacity: .68;
}

.erp-current-role-card strong {
    font-size: 13px;
    line-height: 1.3;
}

.erp-current-role-card small {
    font-size: 11px;
    opacity: .76;
    line-height: 1.3;
}

.erp-role-type {
    align-self: flex-start;
    margin-top: 5px;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    background: rgba(255, 255, 255, 0.12);
}

.erp-role-list {
    position: relative;
    margin: 4px 0 8px;
    padding-left: 9px;
}

.erp-role-list::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(255, 255, 255, 0.17);
}

.erp-role-nav-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 2px 6px 2px 0;
    padding: 9px 10px 9px 7px;
    border-radius: 8px;
    text-decoration: none !important;
    transition:
        background .15s ease,
        transform .15s ease;
}

.erp-role-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.erp-role-nav-item.active {
    background: rgba(255, 255, 255, 0.13);
}

.erp-role-nav-marker {
    position: relative;
    z-index: 1;
    width: 17px;
    min-width: 17px;
    text-align: center;
    font-size: 14px;
    line-height: 18px;
}

.erp-role-nav-item:not(.active) .erp-role-nav-marker {
    transform: translateX(2px);
}

.erp-role-nav-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.erp-role-nav-content strong {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.erp-role-nav-content small {
    font-size: 10px;
    line-height: 1.3;
    opacity: .7;
}

.erp-role-nav-item.active .erp-role-nav-content strong {
    font-weight: 700;
}

body.erp-sidebar-collapsed .erp-current-role-card,
body.erp-sidebar-collapsed .erp-role-nav-content,
body.erp-sidebar-collapsed .erp-role-navigation .erp-nav-divider {
    display: none;
}

body.erp-sidebar-collapsed .erp-role-list {
    padding-left: 0;
}

body.erp-sidebar-collapsed .erp-role-list::before {
    display: none;
}

body.erp-sidebar-collapsed .erp-role-nav-item {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

body.erp-sidebar-collapsed .erp-role-nav-marker {
    width: auto;
    min-width: 0;
}

@media (max-width: 768px) {
    .erp-current-role-card {
        margin-left: 8px;
        margin-right: 8px;
    }

    .erp-role-nav-item {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}


/* ERP role assignment label */
.erp-role-assignment-badge {
    align-self: flex-start;
    margin-top: 2px;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 9px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .04em;
    opacity: .72;
    background: rgba(255, 255, 255, 0.09);
}

body.erp-sidebar-collapsed .erp-role-assignment-badge {
    display: none;
}

/* =========================================================
   SESOM ERP - FIXED ROLE / DEPARTMENT SIDEBAR POSITION
   Keep role navigation anchored near the bottom/sign-out area
   while preserving the existing sloping navigation design.
   ========================================================= */

.erp-sidebar nav {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.erp-role-navigation {
    margin-top: auto !important;
    flex-shrink: 0;
}

/*
 * Keep the workspace/module navigation above the role switcher.
 * The role switcher itself remains in the sidebar flow and does
 * not overlap the Sign Out/header controls.
 */
.erp-sidebar nav > .erp-nav-divider:last-of-type,
.erp-sidebar nav > .erp-nav-divider:last-of-type + * {
    flex-shrink: 0;
}


/* =========================================================
   SESOM ERP - TOP ROLE / DEPARTMENT SWITCHER
   ========================================================= */

.erp-role-department-switcher {
    flex-shrink: 0;
}

.erp-role-department-menu {
    min-width: 270px;
    max-width: 340px;
}

.erp-role-menu-current {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.erp-role-menu-current > span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    opacity: .65;
}

.erp-role-menu-current strong {
    font-size: 12px;
}

.erp-role-menu-current small {
    font-size: 10px;
    opacity: .75;
}

.erp-role-department-option {
    align-items: center;
}

.erp-role-department-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.erp-role-department-option-text strong {
    font-size: 12px;
}

.erp-role-department-option-text small {
    font-size: 10px;
    opacity: .72;
}

/* Retire the old sidebar positioning rule. */
.erp-sidebar nav {
    display: block;
    min-height: 0;
}

.erp-sidebar .erp-role-navigation {
    margin-top: 0 !important;
}


/* ==========================================================
   SESOM ERP GLOBAL INTERACTION STATES
   Light blue -> dark blue hover/focus
   ========================================================== */

/* Standard buttons and submit controls */
.button:not(.deletelink):not(.danger),
input[type="submit"]:not(.deletelink):not(.danger),
input[type="button"]:not(.deletelink):not(.danger),
button:not(.deletelink):not(.danger) {
    transition:
        background-color .20s ease,
        border-color .20s ease,
        color .20s ease,
        box-shadow .20s ease,
        transform .20s ease;
}

.button:not(.deletelink):not(.danger):hover,
input[type="submit"]:not(.deletelink):not(.danger):hover,
input[type="button"]:not(.deletelink):not(.danger):hover,
button:not(.deletelink):not(.danger):hover {
    background-color: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(29, 78, 216, .20);
    transform: translateY(-1px);
}

/* Department/workspace navigation */
.erp-nav-item,
.erp-submenu a,
.erp-workspace-switcher a {
    transition:
        background-color .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.erp-nav-item:not(.erp-inactive):hover,
.erp-submenu a:hover,
.erp-workspace-switcher a:hover {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

/* Text inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

/* Light-blue hover */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="datetime-local"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="search"]:hover,
select:hover,
textarea:hover {
    border-color: #60a5fa !important;
    background-color: #f8fbff;
}

/* Darker blue active/focus state */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15) !important;
    outline: none !important;
    background-color: #ffffff;
}

/* Keep destructive actions visually distinct */
.deletelink,
.danger,
button.danger,
input.danger {
    transform: none;
}


/* ==========================================================
   SESOM ROLE / DEPARTMENT SWITCHER
   Dark green with white text
   ========================================================== */

.erp-workspace-switcher,
.erp-workspace-switcher select,
.erp-workspace-switcher button,
.erp-workspace-switcher a {
    background-color: #14532d !important;
    color: #ffffff !important;
    border-color: #166534 !important;
}

/* Make all text inside the switcher white */
.erp-workspace-switcher *,
.erp-workspace-switcher label,
.erp-workspace-switcher span {
    color: #ffffff !important;
}

/* Hover */
.erp-workspace-switcher a:hover,
.erp-workspace-switcher button:hover {
    background-color: #166534 !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}

/* Select hover/focus */
.erp-workspace-switcher select:hover,
.erp-workspace-switcher select:focus {
    background-color: #166534 !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18) !important;
}

/* Dropdown options remain readable */
.erp-workspace-switcher select option {
    background-color: #ffffff;
    color: #111827;
}


/* ==========================================================
   SESOM ROLE / DEPARTMENT SWITCHER - ACTUAL MENU CARDS
   ========================================================== */

/* Switch Role / Department button */
.erp-role-department-switcher > summary {
    background: #14532d !important;
    color: #ffffff !important;
    border-color: #166534 !important;
}

.erp-role-department-switcher > summary:hover,
.erp-role-department-switcher[open] > summary {
    background: #166534 !important;
    color: #ffffff !important;
}

/* Chevron */
.erp-role-department-switcher .erp-workspace-chevron {
    color: #ffffff !important;
}

/* Dropdown panel */
.erp-role-department-menu {
    background: #ffffff !important;
}

/* Current role information block */
.erp-role-menu-current {
    background: #14532d !important;
    border-color: #166534 !important;
    color: #ffffff !important;
}

.erp-role-menu-current span,
.erp-role-menu-current strong,
.erp-role-menu-current small {
    color: #ffffff !important;
}

/* Every department / role card */
.erp-role-department-option {
    background: #14532d !important;
    border-color: #166534 !important;
    color: #ffffff !important;
}

/* Force all wording inside each card to white */
.erp-role-department-option span,
.erp-role-department-option strong,
.erp-role-department-option small,
.erp-role-department-option .erp-workspace-check {
    color: #ffffff !important;
}

/* Hover */
.erp-role-department-option:hover {
    background: #166534 !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(20, 83, 45, .20);
}

/* Currently selected department */
.erp-role-department-option.active,
.erp-role-department-option.active:hover {
    background: #14532d !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
}

/* Selected check mark */
.erp-role-department-option.active .erp-workspace-check {
    color: #ffffff !important;
    font-weight: 700;
}

/* Remove grey/blue inherited hover from global navigation rules */
.erp-workspace-menu .erp-role-department-option:hover,
.erp-workspace-menu .erp-role-department-option.active {
    color: #ffffff !important;
}


/* ==========================================================
   SESOM ROLE / DEPARTMENT SWITCHER
   FULL DARK-GREEN TWO-LAYER DESIGN
   ========================================================== */

/* LAYER 1 — Switch Role / Department control */
.erp-role-department-switcher,
.erp-role-department-switcher > summary {
    background: #14532d !important;
    background-color: #14532d !important;
    border-color: #166534 !important;
    color: #ffffff !important;
}

.erp-role-department-switcher > summary,
.erp-role-department-switcher > summary span,
.erp-role-department-switcher .erp-workspace-chevron {
    color: #ffffff !important;
}

/* Layer 1 hover/open */
.erp-role-department-switcher > summary:hover,
.erp-role-department-switcher[open] > summary {
    background: #166534 !important;
    background-color: #166534 !important;
    color: #ffffff !important;
}


/* LAYER 2 — Entire dropdown panel */
.erp-role-department-switcher .erp-workspace-menu,
.erp-role-department-menu {
    background: #14532d !important;
    background-color: #14532d !important;
    border-color: #166534 !important;
    color: #ffffff !important;
}


/* Current role section */
.erp-role-menu-current {
    background: #14532d !important;
    background-color: #14532d !important;
    border-color: #166534 !important;
    color: #ffffff !important;
}

.erp-role-menu-current *,
.erp-role-menu-current span,
.erp-role-menu-current strong,
.erp-role-menu-current small {
    color: #ffffff !important;
}


/* Every department / role option */
.erp-role-department-menu .erp-role-department-option,
.erp-role-department-switcher .erp-workspace-option {
    background: #14532d !important;
    background-color: #14532d !important;
    border-color: #166534 !important;
    color: #ffffff !important;
}


/* ALL text inside option cards */
.erp-role-department-option *,
.erp-role-department-option span,
.erp-role-department-option strong,
.erp-role-department-option small,
.erp-role-department-option .erp-workspace-check {
    color: #ffffff !important;
}


/* Option hover */
.erp-role-department-menu .erp-role-department-option:hover,
.erp-role-department-switcher .erp-workspace-option:hover {
    background: #166534 !important;
    background-color: #166534 !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(20, 83, 45, .28);
}


/* Active/current option */
.erp-role-department-menu .erp-role-department-option.active,
.erp-role-department-switcher .erp-workspace-option.active {
    background: #166534 !important;
    background-color: #166534 !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
}


/* Active option text and checkmark */
.erp-role-department-option.active *,
.erp-role-department-option.active .erp-workspace-check {
    color: #ffffff !important;
}


/* Prevent global blue navigation hover from overriding switcher */
.erp-workspace-menu.erp-role-department-menu a:hover,
.erp-workspace-menu.erp-role-department-menu a.active {
    background-color: #166534 !important;
    color: #ffffff !important;
}


/* ==========================================================
   ROLE / DEPARTMENT DROPDOWN
   Dark blue menu with white text
   ========================================================== */

/* Dropdown panel */
.erp-role-department-switcher .erp-role-department-menu,
.erp-role-department-menu {
    background: #172554 !important;
    background-color: #172554 !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
}

/* Current role block */
.erp-role-department-menu .erp-role-menu-current {
    background: #1e3a8a !important;
    background-color: #1e3a8a !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* Current role text */
.erp-role-department-menu .erp-role-menu-current *,
.erp-role-department-menu .erp-role-menu-current span,
.erp-role-department-menu .erp-role-menu-current strong,
.erp-role-department-menu .erp-role-menu-current small {
    color: #ffffff !important;
}

/* Department / role cards */
.erp-role-department-menu .erp-role-department-option,
.erp-role-department-menu .erp-workspace-option {
    background: #172554 !important;
    background-color: #172554 !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
}

/* All card wording */
.erp-role-department-menu .erp-role-department-option *,
.erp-role-department-menu .erp-workspace-option *,
.erp-role-department-menu .erp-workspace-check {
    color: #ffffff !important;
}

/* Hover */
.erp-role-department-menu .erp-role-department-option:hover,
.erp-role-department-menu .erp-workspace-option:hover {
    background: #1e40af !important;
    background-color: #1e40af !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(30, 64, 175, .25);
}

/* Current selected role */
.erp-role-department-menu .erp-role-department-option.active,
.erp-role-department-menu .erp-workspace-option.active {
    background: #1e3a8a !important;
    background-color: #1e3a8a !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}

/* Selected role text/checkmark */
.erp-role-department-menu .active *,
.erp-role-department-menu .active .erp-workspace-check {
    color: #ffffff !important;
}


/* ==========================================================
   FINAL AUTHORITATIVE ROLE / DEPARTMENT SWITCHER THEME
   Layer 1 = Dark Green
   Layer 2 = Dark Blue
   ========================================================== */


/* ---------- LAYER 1: SWITCHER BUTTON ---------- */

html body details.erp-workspace-switcher.erp-role-department-switcher > summary {
    background: #14532d !important;
    background-color: #14532d !important;
    color: #ffffff !important;
    border-color: #166534 !important;
}

html body details.erp-workspace-switcher.erp-role-department-switcher > summary *,
html body details.erp-workspace-switcher.erp-role-department-switcher > summary span {
    color: #ffffff !important;
}

html body details.erp-workspace-switcher.erp-role-department-switcher > summary:hover,
html body details.erp-workspace-switcher.erp-role-department-switcher[open] > summary {
    background: #166534 !important;
    background-color: #166534 !important;
    color: #ffffff !important;
}


/* ---------- LAYER 2: DROPDOWN PANEL ---------- */

html body details.erp-role-department-switcher
div.erp-workspace-menu.erp-role-department-menu {
    background: #172554 !important;
    background-color: #172554 !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
}


/* Current-role information */

html body details.erp-role-department-switcher
div.erp-role-department-menu
div.erp-role-menu-current {
    background: #1e3a8a !important;
    background-color: #1e3a8a !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

html body details.erp-role-department-switcher
div.erp-role-menu-current * {
    color: #ffffff !important;
}


/* Every role / department card */

html body details.erp-role-department-switcher
div.erp-role-department-menu
a.erp-workspace-option.erp-role-department-option {
    background: #172554 !important;
    background-color: #172554 !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
}


/* Text inside cards */

html body details.erp-role-department-switcher
a.erp-role-department-option * {
    color: #ffffff !important;
}


/* Selected/current card */

html body details.erp-role-department-switcher
div.erp-role-department-menu
a.erp-workspace-option.erp-role-department-option.active {
    background: #1e3a8a !important;
    background-color: #1e3a8a !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}


/* Hover */

html body details.erp-role-department-switcher
div.erp-role-department-menu
a.erp-workspace-option.erp-role-department-option:hover {
    background: #1e40af !important;
    background-color: #1e40af !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}


/* Active + hover */

html body details.erp-role-department-switcher
div.erp-role-department-menu
a.erp-workspace-option.erp-role-department-option.active:hover {
    background: #1d4ed8 !important;
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
}


/* White checkmark */

html body details.erp-role-department-switcher
.erp-workspace-check {
    color: #ffffff !important;
}
