@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap");

html[dir="rtl"],
html[dir="rtl"] body,
.portal-locale-ar,
.portal-locale-ur {
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;
}

html[dir="rtl"] body,
.portal-dir-rtl {
    direction: rtl;
    text-align: right;
    font-size: 14px;
    line-height: 1.75;
}

.portal-dir-rtl .page-wrapper,
.portal-dir-rtl .content,
.portal-dir-rtl .card,
.portal-dir-rtl .modal-content {
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

.portal-dir-rtl h1,
.portal-dir-rtl h2,
.portal-dir-rtl h3,
.portal-dir-rtl h4,
.portal-dir-rtl h5,
.portal-dir-rtl h6,
.portal-dir-rtl p,
.portal-dir-rtl label,
.portal-dir-rtl .form-label,
.portal-dir-rtl .text-muted,
.portal-dir-rtl .card-title,
.portal-dir-rtl .breadcrumb,
.portal-dir-rtl .dropdown-item,
.portal-dir-rtl .menu-title,
.portal-dir-rtl .sidebar .menu-title span {
    letter-spacing: 0 !important;
}

.portal-dir-rtl .main-wrapper {
    direction: rtl;
}

@media (min-width: 992px) {
    .portal-dir-rtl .sidebar {
        right: 0 !important;
        left: auto !important;
        border-right: 0 !important;
        border-left: 1px solid #ededed !important;
    }

    .portal-dir-rtl .page-wrapper {
        margin: 0 252px 0 0 !important;
    }

    .portal-dir-rtl .header {
        right: 252px !important;
        left: 0 !important;
    }

    .portal-dir-rtl.mini-sidebar .page-wrapper {
        margin-right: 72px !important;
        margin-left: 0 !important;
    }

    .portal-dir-rtl.mini-sidebar .header {
        right: 72px !important;
        left: 0 !important;
    }

    .portal-dir-rtl.mini-sidebar.expand-menu .page-wrapper,
    .portal-dir-rtl.expand-menu.mini-sidebar .page-wrapper {
        margin-right: 252px !important;
        margin-left: 0 !important;
    }

    .portal-dir-rtl.mini-sidebar.expand-menu .header,
    .portal-dir-rtl.expand-menu.mini-sidebar .header {
        right: 252px !important;
        left: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .portal-dir-rtl .header {
        right: 0 !important;
        left: 0 !important;
    }

    .portal-dir-rtl .page-wrapper {
        margin: 0 !important;
        padding-top: 50px;
    }

    .portal-dir-rtl .sidebar {
        right: 0 !important;
        left: auto !important;
        margin-right: -575px !important;
        margin-left: 0 !important;
        border-right: 0 !important;
        border-left: 1px solid #ededed !important;
    }

    .portal-dir-rtl.slide-nav .sidebar,
    .portal-dir-rtl .slide-nav .sidebar,
    body.portal-dir-rtl.slide-nav .sidebar {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .portal-dir-rtl .header .mobile_btn {
        right: 12px !important;
        left: auto !important;
    }

    .portal-dir-rtl .header .mobile-user-menu {
        left: 12px !important;
        right: auto !important;
    }
}

.portal-dir-rtl .sidebar .sidebar-logo {
    right: 0;
    left: auto;
}

.portal-dir-rtl .sidebar .sidebar-profile {
    flex-direction: row-reverse;
    text-align: right;
}

.portal-dir-rtl .sidebar .sidebar-profile-info {
    margin-left: 0 !important;
    margin-right: .5rem !important;
    text-align: right !important;
}

.portal-dir-rtl #header-search .portal-language-switcher {
    display: none !important;
}

.portal-dir-rtl .header .main-header,
.portal-dir-rtl .header .header-user .user-menu {
    direction: rtl;
}

.portal-dir-rtl .header .header-user .user-menu {
    justify-content: space-between;
}

.portal-dir-rtl .header #header-search {
    margin-right: 0 !important;
    margin-left: auto !important;
}

.portal-dir-rtl .header #toggle_btn i,
.portal-dir-rtl .header #toggle_btn .ti {
    transform: rotate(180deg);
}

.portal-dir-rtl .sidebar,
.portal-dir-rtl .sidebar .sidebar-menu,
.portal-dir-rtl .sidebar .sidebar-menu > ul,
.portal-dir-rtl .sidebar .sidebar-menu ul li a {
    direction: rtl;
    text-align: right;
    min-height: 42px;
    gap: .55rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.portal-dir-rtl .sidebar .sidebar-menu ul li a,
.portal-dir-rtl .sidebar a,
.portal-dir-rtl .nav-list,
.portal-dir-rtl .header-user .nav {
    flex-direction: row-reverse;
}

.portal-dir-rtl .sidebar .sidebar-menu ul li a i,
.portal-dir-rtl .sidebar a i {
    margin-right: 0 !important;
    margin-left: .5rem !important;
    font-size: 17px;
    width: 18px;
    text-align: center;
    flex: 0 0 18px;
}

.portal-dir-rtl .sidebar .menu-arrow {
    margin-left: 0 !important;
    margin-right: auto !important;
    transform: rotate(180deg);
}

.portal-dir-rtl .sidebar .menu-title {
    text-align: right;
    padding-right: 14px;
    padding-left: 8px;
}

.portal-dir-rtl .sidebar .menu-title span {
    font-size: 11px;
    font-weight: 800;
    color: #8b95a5;
}

.portal-dir-rtl .sidebar .submenu ul {
    padding-right: 29px;
    padding-left: 0;
}

.portal-dir-rtl .sidebar .submenu ul li a {
    font-weight: 500;
    color: #4b5565;
}

.portal-dir-rtl .sidebar .sidebar-menu ul li a.active,
.portal-dir-rtl .sidebar .sidebar-menu ul li a:hover {
    background: rgba(242, 101, 34, .08);
    color: #d35400;
}

.portal-dir-rtl .page-wrapper {
    direction: rtl;
}

.portal-dir-rtl .content {
    letter-spacing: 0 !important;
}

.portal-dir-rtl .header,
.portal-dir-rtl .header .header-left,
.portal-dir-rtl .header .header-user,
.portal-dir-rtl .header .nav {
    direction: rtl;
}

.portal-dir-rtl .header .dropdown-menu,
.portal-dir-rtl .header .notification-dropdown {
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

.portal-dir-rtl .page-breadcrumb {
    gap: .75rem;
}

.portal-dir-rtl .page-breadcrumb,
.portal-dir-rtl .card-header,
.portal-dir-rtl .card-body,
.portal-dir-rtl .modal-header,
.portal-dir-rtl .modal-body,
.portal-dir-rtl .modal-footer,
.portal-dir-rtl .dropdown-menu,
.portal-dir-rtl .table {
    direction: rtl;
    text-align: right;
}

.portal-dir-rtl .page-breadcrumb h2,
.portal-dir-rtl .card-header h4,
.portal-dir-rtl .card-header h5,
.portal-dir-rtl .modal-title {
    font-weight: 800;
    line-height: 1.45;
}

.portal-dir-rtl .text-muted,
.portal-dir-rtl .fs-12,
.portal-dir-rtl .fs-13 {
    line-height: 1.7;
}

.portal-dir-rtl .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
    padding-right: var(--bs-breadcrumb-item-padding-x);
}

.portal-dir-rtl .breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-right: 0;
    padding-left: var(--bs-breadcrumb-item-padding-x);
    transform: rotate(180deg);
}

.portal-dir-rtl .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

.portal-dir-rtl .header .dropdown-menu-end {
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
}

.portal-dir-rtl .header .dropdown-menu-start {
    inset-inline-start: auto !important;
    inset-inline-end: 0 !important;
}

.portal-dir-rtl .dropdown-menu-start {
    right: 0 !important;
    left: auto !important;
}

.portal-dir-rtl .dropdown-toggle::after {
    margin-left: 0;
    margin-right: .35em;
}

.portal-dir-rtl .btn,
.portal-dir-rtl .dropdown-item,
.portal-dir-rtl .badge,
.portal-dir-rtl .form-control,
.portal-dir-rtl .form-select,
.portal-dir-rtl .select2-container,
.portal-dir-rtl .select2-selection,
.portal-dir-rtl textarea,
.portal-dir-rtl input,
.portal-dir-rtl button {
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
}

.portal-dir-rtl .btn {
    font-weight: 700;
    line-height: 1.45;
    min-height: 38px;
    white-space: nowrap;
}

.portal-dir-rtl .btn-sm {
    min-height: 32px;
}

.portal-dir-rtl .form-control,
.portal-dir-rtl .form-select,
.portal-dir-rtl textarea,
.portal-dir-rtl input[type="text"],
.portal-dir-rtl input[type="search"],
.portal-dir-rtl input[type="email"],
.portal-dir-rtl input[type="tel"],
.portal-dir-rtl input[type="number"] {
    text-align: right;
}

.portal-dir-rtl input[type="number"],
.portal-dir-rtl input[type="date"],
.portal-dir-rtl input[type="datetime-local"],
.portal-dir-rtl input[type="time"],
.portal-dir-rtl .text-monospace,
.portal-dir-rtl .font-monospace,
.portal-dir-rtl .badge,
.portal-dir-rtl .avatar,
.portal-dir-rtl .leave-summary-value,
.portal-dir-rtl .request-summary-value,
.portal-dir-rtl td[data-technical],
.portal-dir-rtl .technical-value {
    direction: ltr;
    unicode-bidi: plaintext;
}

.portal-dir-rtl input[type="date"],
.portal-dir-rtl input[type="datetime-local"],
.portal-dir-rtl input[type="time"] {
    text-align: right;
}

.portal-dir-rtl .card,
.portal-dir-rtl .modal-content,
.portal-dir-rtl .dropdown-menu,
.portal-dir-rtl .table-responsive {
    letter-spacing: 0 !important;
}

.portal-dir-rtl .card-header .d-flex,
.portal-dir-rtl .page-breadcrumb.d-flex,
.portal-dir-rtl .modal-header,
.portal-dir-rtl .modal-footer {
    gap: .65rem;
}

.portal-dir-rtl .modal-footer {
    justify-content: flex-start;
}

.portal-dir-rtl .table {
    vertical-align: middle;
}

.portal-dir-rtl .table th {
    font-weight: 800;
    white-space: nowrap;
}

.portal-dir-rtl .table td,
.portal-dir-rtl .table th {
    text-align: right;
}

.portal-dir-rtl .table td .btn,
.portal-dir-rtl .table .btn {
    min-width: 32px;
}

.portal-dir-rtl .avatar,
.portal-dir-rtl .avatar img {
    object-fit: cover;
}

.portal-dir-rtl .breadcrumb {
    flex-wrap: wrap;
    row-gap: .35rem;
}

.portal-dir-rtl .breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.portal-dir-rtl .input-group > .form-control,
.portal-dir-rtl .input-group > .form-select {
    border-radius: 0 .375rem .375rem 0;
}

.portal-dir-rtl .input-group > .input-group-text,
.portal-dir-rtl .input-group > .btn:last-child {
    border-radius: .375rem 0 0 .375rem;
}

.portal-dir-rtl .table-responsive {
    direction: rtl;
}

.portal-dir-rtl table.table {
    text-align: right;
}

.portal-dir-rtl .table th,
.portal-dir-rtl .table td {
    text-align: right;
    vertical-align: middle;
    line-height: 1.65;
}

.portal-dir-rtl .table th {
    font-weight: 800;
    color: #475467;
}

.portal-dir-rtl .table td {
    color: #111827;
}

.portal-dir-rtl .table .text-end {
    text-align: left !important;
}

.portal-dir-rtl .table .text-start {
    text-align: right !important;
}

.portal-dir-rtl .d-flex:not(.flex-column) > .me-1,
.portal-dir-rtl .me-1 {
    margin-right: 0 !important;
    margin-left: .25rem !important;
}

.portal-dir-rtl .d-flex:not(.flex-column) > .me-2,
.portal-dir-rtl .me-2 {
    margin-right: 0 !important;
    margin-left: .5rem !important;
}

.portal-dir-rtl .d-flex:not(.flex-column) > .me-3,
.portal-dir-rtl .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

.portal-dir-rtl .ms-1 {
    margin-left: 0 !important;
    margin-right: .25rem !important;
}

.portal-dir-rtl .ms-2 {
    margin-left: 0 !important;
    margin-right: .5rem !important;
}

.portal-dir-rtl .ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

.portal-dir-rtl .ps-3,
.portal-dir-rtl .ps-4 {
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

.portal-dir-rtl .pe-3,
.portal-dir-rtl .pe-4 {
    padding-right: 0 !important;
    padding-left: 1rem !important;
}

.portal-dir-rtl .modal-header .btn-close {
    margin: 0 auto 0 0;
}

.portal-dir-rtl .select2-container--default .select2-selection--single .select2-selection__rendered {
    text-align: right;
    padding-right: 12px;
    padding-left: 28px;
}

.portal-dir-rtl .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto;
    left: 8px;
}

.portal-dir-rtl .dataTables_filter,
.portal-dir-rtl .dataTables_length,
.portal-dir-rtl .dataTables_info,
.portal-dir-rtl .dataTables_paginate {
    direction: rtl;
    text-align: right;
}

.portal-dir-rtl .pagination {
    direction: ltr;
}

.portal-dir-rtl .notification-dropdown,
.portal-dir-rtl .profile-dropdown .dropdown-menu,
.portal-dir-rtl .portal-language-switcher .dropdown-menu {
    text-align: right;
}

.portal-dir-rtl .portal-language-switcher .btn {
    min-width: 78px;
    max-width: 92px;
    padding-inline: 10px;
    white-space: nowrap;
}

.portal-dir-rtl .portal-language-switcher .dropdown-item {
    min-height: 38px;
    font-weight: 600;
}

.portal-dir-rtl .header .portal-language-switcher {
    position: relative;
}

.portal-dir-rtl .header .portal-language-switcher .dropdown-menu {
    right: auto !important;
    left: 0 !important;
    min-width: 156px;
    max-width: min(190px, calc(100vw - 24px));
    overflow: hidden;
    transform: none !important;
    margin-top: 8px !important;
}

.portal-dir-rtl .header .portal-language-switcher .dropdown-item {
    display: flex;
    flex-direction: row-reverse;
    gap: .75rem;
    min-width: 0;
    padding: .55rem .75rem;
}

.portal-dir-rtl .header .portal-language-switcher .dropdown-item span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-dir-rtl .header .portal-language-switcher .dropdown-item .text-muted {
    flex: 0 0 auto;
}

.portal-dir-rtl .notification-dropdown .d-flex,
.portal-dir-rtl .profile-dropdown .d-flex {
    flex-direction: row-reverse;
}

.portal-dir-rtl .btn .ti,
.portal-dir-rtl .btn i,
.portal-dir-rtl .dropdown-item i,
.portal-dir-rtl .breadcrumb i {
    line-height: 1;
}

.portal-dir-rtl .page-breadcrumb .btn,
.portal-dir-rtl .card-header .btn,
.portal-dir-rtl .modal-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.portal-dir-rtl .page-breadcrumb .btn i,
.portal-dir-rtl .card-header .btn i,
.portal-dir-rtl .modal-footer .btn i {
    margin: 0 !important;
}

.portal-dir-rtl .workflow-step,
.portal-dir-rtl .timeline,
.portal-dir-rtl .activity-feed {
    direction: rtl;
    text-align: right;
}

@media (max-width: 991.98px) {
    .portal-dir-rtl .header-user .nav {
        flex-direction: row-reverse;
    }

    .portal-dir-rtl .page-breadcrumb {
        text-align: right;
    }
}

/* Final RTL shell normalization for ESS portal pages. Keep this block last so
   theme customizer classes cannot pull Arabic layouts back to the LTR shell. */
html[dir="rtl"] body.portal-dir-rtl {
    direction: rtl !important;
    text-align: right !important;
}

@media (min-width: 992px) {
    html[dir="rtl"] body.portal-dir-rtl .main-wrapper {
        direction: rtl !important;
    }

    html[dir="rtl"] body.portal-dir-rtl .sidebar {
        right: 0 !important;
        left: auto !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        border-right: 0 !important;
        border-left: 1px solid rgba(226, 232, 240, .16) !important;
    }

    html[dir="rtl"] body.portal-dir-rtl .page-wrapper {
        margin-right: 252px !important;
        margin-left: 0 !important;
        width: calc(100% - 252px) !important;
    }

    html[dir="rtl"] body.portal-dir-rtl .header {
        right: 252px !important;
        left: 0 !important;
        width: calc(100% - 252px) !important;
    }

    html[dir="rtl"] body.portal-dir-rtl.mini-sidebar .page-wrapper {
        margin-right: 72px !important;
        margin-left: 0 !important;
        width: calc(100% - 72px) !important;
    }

    html[dir="rtl"] body.portal-dir-rtl.mini-sidebar .header {
        right: 72px !important;
        left: 0 !important;
        width: calc(100% - 72px) !important;
    }

    html[dir="rtl"] body.portal-dir-rtl.mini-sidebar.expand-menu .page-wrapper,
    html[dir="rtl"] body.portal-dir-rtl.expand-menu.mini-sidebar .page-wrapper {
        margin-right: 252px !important;
        margin-left: 0 !important;
        width: calc(100% - 252px) !important;
    }

    html[dir="rtl"] body.portal-dir-rtl.mini-sidebar.expand-menu .header,
    html[dir="rtl"] body.portal-dir-rtl.expand-menu.mini-sidebar .header {
        right: 252px !important;
        left: 0 !important;
        width: calc(100% - 252px) !important;
    }
}

@media (max-width: 991.98px) {
    html[dir="rtl"] body.portal-dir-rtl .page-wrapper,
    html[dir="rtl"] body.portal-dir-rtl .header {
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    html[dir="rtl"] body.portal-dir-rtl .sidebar {
        right: 0 !important;
        left: auto !important;
        margin-right: -575px !important;
        margin-left: 0 !important;
    }

    html[dir="rtl"] body.portal-dir-rtl.slide-nav .sidebar {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

html[dir="rtl"] body.portal-dir-rtl .sidebar .sidebar-logo,
html[dir="rtl"] body.portal-dir-rtl .sidebar .sidebar-header,
html[dir="rtl"] body.portal-dir-rtl .sidebar .sidebar-inner,
html[dir="rtl"] body.portal-dir-rtl .sidebar .sidebar-menu {
    direction: rtl !important;
    text-align: right !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar .sidebar-profile {
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: right !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar .sidebar-profile-info {
    margin-right: .5rem !important;
    margin-left: 0 !important;
    text-align: right !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar .sidebar-menu ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    direction: rtl !important;
    text-align: right !important;
    gap: .65rem !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar .sidebar-menu ul li a i {
    order: 0 !important;
    margin-right: 0 !important;
    margin-left: .35rem !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar .sidebar-menu ul li a span:not(.menu-arrow) {
    order: 1 !important;
    text-align: right !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar .sidebar-menu ul li a .menu-arrow {
    order: 2 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar .submenu ul {
    padding-right: 2.35rem !important;
    padding-left: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar .menu-title {
    text-align: right !important;
    padding-right: 1rem !important;
    padding-left: .5rem !important;
}

html[dir="rtl"] body.portal-dir-rtl #sidebar,
html[dir="rtl"] body.portal-dir-rtl .sidebar:not(.sidebar-horizontal),
html[dir="rtl"] body.portal-dir-rtl .sidebar:not(.sidebar-horizontal)::before,
html[dir="rtl"] body.portal-dir-rtl .sidebar:not(.sidebar-horizontal) .sidebar-logo,
html[dir="rtl"] body.portal-dir-rtl .sidebar:not(.sidebar-horizontal) .sidebar-header,
html[dir="rtl"] body.portal-dir-rtl .sidebar:not(.sidebar-horizontal) .sidebar-inner,
html[dir="rtl"] body.portal-dir-rtl .sidebar:not(.sidebar-horizontal) .slimScrollDiv {
    border-radius: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar:not(.sidebar-horizontal) {
    overflow: hidden !important;
}

html[dir="rtl"] body.portal-dir-rtl .page-wrapper,
html[dir="rtl"] body.portal-dir-rtl .content,
html[dir="rtl"] body.portal-dir-rtl .page-breadcrumb,
html[dir="rtl"] body.portal-dir-rtl .card,
html[dir="rtl"] body.portal-dir-rtl .modal-content {
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    direction: rtl !important;
    text-align: right !important;
}

html[dir="rtl"] body.portal-dir-rtl .page-breadcrumb .breadcrumb {
    justify-content: flex-start !important;
}

html[dir="rtl"] body.portal-dir-rtl .page-breadcrumb h1,
html[dir="rtl"] body.portal-dir-rtl .page-breadcrumb h2,
html[dir="rtl"] body.portal-dir-rtl .page-breadcrumb h3,
html[dir="rtl"] body.portal-dir-rtl .page-breadcrumb h4,
html[dir="rtl"] body.portal-dir-rtl .page-breadcrumb h5,
html[dir="rtl"] body.portal-dir-rtl .page-breadcrumb h6,
html[dir="rtl"] body.portal-dir-rtl .page-breadcrumb .breadcrumb,
html[dir="rtl"] body.portal-dir-rtl .page-breadcrumb .breadcrumb-item,
html[dir="rtl"] body.portal-dir-rtl .content h1,
html[dir="rtl"] body.portal-dir-rtl .content h2,
html[dir="rtl"] body.portal-dir-rtl .content h3,
html[dir="rtl"] body.portal-dir-rtl .content h4,
html[dir="rtl"] body.portal-dir-rtl .content h5,
html[dir="rtl"] body.portal-dir-rtl .content h6 {
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
}

/* RTL header composition */
html[dir="rtl"] body.portal-dir-rtl .header .main-header {
    direction: rtl !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 12px !important;
    padding-inline: 16px !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .header-left {
    order: 0 !important;
    margin-right: 0 !important;
    margin-left: 12px !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .mobile_btn {
    order: 1 !important;
    position: static !important;
    margin: 0 !important;
    inset: auto !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .header-user {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .header-user .user-menu {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .header #header-search {
    order: 1 !important;
    flex: 1 1 560px !important;
    min-width: 220px !important;
    max-width: 680px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] body.portal-dir-rtl .header #header-search .input-group {
    flex: 1 1 auto !important;
    min-width: 180px !important;
    max-width: 420px !important;
    margin: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .header #header-search .input-group .form-control {
    text-align: right !important;
    border-radius: 0 8px 8px 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .header #header-search .input-group .input-group-text {
    border-radius: 8px 0 0 8px !important;
}

html[dir="rtl"] body.portal-dir-rtl .header #header-search #toggle_btn {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .header-user .user-menu > .d-flex.align-items-center:not(#header-search) {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .btn-menubar {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .portal-language-switcher .btn {
    width: auto !important;
    min-width: 78px !important;
    padding-inline: 10px !important;
    gap: 6px !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .portal-language-switcher .btn i,
html[dir="rtl"] body.portal-dir-rtl .header .portal-language-switcher .btn span {
    margin: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .notification_item,
html[dir="rtl"] body.portal-dir-rtl .header .profile-dropdown {
    margin: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .profile-dropdown > a {
    min-width: 42px !important;
    justify-content: center !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .dropdown-menu-end,
html[dir="rtl"] body.portal-dir-rtl .header .notification-dropdown,
html[dir="rtl"] body.portal-dir-rtl .header .profile-dropdown .dropdown-menu {
    right: auto !important;
    left: 0 !important;
}

@media (max-width: 1199.98px) {
    html[dir="rtl"] body.portal-dir-rtl .header #header-search {
        flex-basis: 420px !important;
        max-width: 520px !important;
    }

    html[dir="rtl"] body.portal-dir-rtl .header #header-search .input-group {
        max-width: 320px !important;
    }
}

@media (max-width: 767.98px) {
    html[dir="rtl"] body.portal-dir-rtl .header .main-header {
        padding-inline: 10px !important;
        gap: 8px !important;
    }

    html[dir="rtl"] body.portal-dir-rtl .header #header-search .input-group {
        display: none !important;
    }

    html[dir="rtl"] body.portal-dir-rtl .header #header-search {
        flex: 0 0 auto !important;
        min-width: auto !important;
        margin-left: 0 !important;
    }
}

/* Move the floating theme customizer trigger away from the right-side RTL menu. */
html[dir="rtl"] body.portal-dir-rtl .sidebar-contact {
    right: auto !important;
    left: -350px !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar-contact.open {
    right: auto !important;
    left: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar-contact .toggle-theme {
    right: auto !important;
    left: 350px !important;
    border-radius: 0 3px 3px 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar-themesettings.offcanvas.offcanvas-end {
    right: auto !important;
    left: 0 !important;
    transform: translateX(-100%) !important;
}

html[dir="rtl"] body.portal-dir-rtl .sidebar-themesettings.offcanvas.offcanvas-end.show,
html[dir="rtl"] body.portal-dir-rtl .sidebar-themesettings.offcanvas.offcanvas-end.open {
    transform: translateX(0) !important;
}

/* Safety net for older standalone pages that still render the legacy shell. */
html[dir="rtl"] body {
    direction: rtl !important;
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
}

html[dir="rtl"] body .main-wrapper {
    direction: rtl !important;
}

html[dir="rtl"] body .sidebar:not(.sidebar-horizontal),
html[dir="rtl"] body #sidebar {
    right: 0 !important;
    left: auto !important;
    border-radius: 0 !important;
}

html[dir="rtl"] body .sidebar:not(.sidebar-horizontal)::before,
html[dir="rtl"] body .sidebar:not(.sidebar-horizontal) .sidebar-logo,
html[dir="rtl"] body .sidebar:not(.sidebar-horizontal) .sidebar-header,
html[dir="rtl"] body .sidebar:not(.sidebar-horizontal) .sidebar-inner,
html[dir="rtl"] body .sidebar:not(.sidebar-horizontal) .slimScrollDiv {
    border-radius: 0 !important;
}

html[dir="rtl"] body .sidebar .sidebar-menu,
html[dir="rtl"] body .sidebar .sidebar-menu > ul,
html[dir="rtl"] body .sidebar .sidebar-menu ul li a,
html[dir="rtl"] body .sidebar .menu-title {
    direction: rtl !important;
    text-align: right !important;
}

html[dir="rtl"] body .sidebar .sidebar-menu ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: .6rem !important;
}

html[dir="rtl"] body .sidebar .sidebar-menu ul li a i {
    margin-right: 0 !important;
    margin-left: .55rem !important;
}

html[dir="rtl"] body .sidebar .sidebar-menu ul li a span:not(.menu-arrow) {
    flex: 1 1 auto !important;
    text-align: right !important;
}

html[dir="rtl"] body .sidebar .sidebar-menu ul li a .menu-arrow {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] body .page-wrapper,
html[dir="rtl"] body .header {
    margin-right: 252px !important;
    margin-left: 0 !important;
}

html[dir="rtl"] body.mini-sidebar .page-wrapper,
html[dir="rtl"] body.mini-sidebar .header {
    margin-right: 80px !important;
    margin-left: 0 !important;
}

html[dir="rtl"] body .header .main-header {
    direction: rtl !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 12px !important;
    padding-inline: 16px !important;
}

html[dir="rtl"] body .header .header-left {
    order: 0 !important;
    margin-right: 0 !important;
    margin-left: 12px !important;
}

html[dir="rtl"] body .header .mobile_btn {
    order: 1 !important;
    position: static !important;
    margin: 0 !important;
    inset: auto !important;
}

html[dir="rtl"] body .header .header-user {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

html[dir="rtl"] body .header .header-user .user-menu,
html[dir="rtl"] body .header .nav.user-menu.nav-list {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html[dir="rtl"] body .header #header-search {
    order: 1 !important;
    flex: 1 1 560px !important;
    min-width: 220px !important;
    max-width: 680px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] body .header #header-search .input-group {
    flex: 1 1 auto !important;
    min-width: 180px !important;
    max-width: 420px !important;
    margin: 0 !important;
}

html[dir="rtl"] body .header #header-search .input-group .form-control {
    text-align: right !important;
    border-radius: 0 8px 8px 0 !important;
}

html[dir="rtl"] body .header #header-search .input-group .input-group-text {
    border-radius: 8px 0 0 8px !important;
}

html[dir="rtl"] body .header .header-user .user-menu > .d-flex.align-items-center:not(#header-search) {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] body .header .btn-menubar {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

html[dir="rtl"] body .header .portal-language-switcher .btn {
    width: auto !important;
    min-width: 78px !important;
    padding-inline: 10px !important;
    gap: 6px !important;
}

html[dir="rtl"] body .header .dropdown-menu-end,
html[dir="rtl"] body .header .notification-dropdown,
html[dir="rtl"] body .header .profile-dropdown .dropdown-menu {
    right: auto !important;
    left: 0 !important;
}

html[dir="rtl"] body .sidebar-contact {
    right: auto !important;
    left: -350px !important;
}

html[dir="rtl"] body .sidebar-contact.open {
    right: auto !important;
    left: 0 !important;
}

html[dir="rtl"] body .sidebar-contact .toggle-theme {
    right: auto !important;
    left: 350px !important;
    border-radius: 0 3px 3px 0 !important;
}

@media (max-width: 991.98px) {
    html[dir="rtl"] body .page-wrapper,
    html[dir="rtl"] body .header {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    html[dir="rtl"] body .sidebar:not(.sidebar-horizontal) {
        transform: translateX(100%) !important;
    }

    html[dir="rtl"] body.slide-nav .sidebar:not(.sidebar-horizontal) {
        transform: translateX(0) !important;
    }
}

@media (max-width: 767.98px) {
    html[dir="rtl"] body .header .main-header {
        padding-inline: 10px !important;
        gap: 8px !important;
    }

    html[dir="rtl"] body .header #header-search .input-group {
        display: none !important;
    }

    html[dir="rtl"] body .header #header-search {
        flex: 0 0 auto !important;
        min-width: auto !important;
        margin-left: 0 !important;
    }
}

/* Final RTL header normalization: keep legacy horizontal menus out of the header flow. */
html[dir="rtl"] body .header .header-user .user-menu > .sidebar-horizontal,
html[dir="rtl"] body .header .header-user .user-menu > [id^="horizontal-"],
html[dir="rtl"] body .header .header-user .user-menu > #horizontal-single,
html[dir="rtl"] body .header .header-user .user-menu > #horizontal-overlay,
html[dir="rtl"] body .header .header-user .user-menu > #horizontal-box,
html[dir="rtl"] body .header .header-user .user-menu > #horizontal-sidemenu {
    display: none !important;
}

html[dir="rtl"] body .header .main-header {
    direction: rtl !important;
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
}

html[dir="rtl"] body .header .header-left {
    grid-column: 1 !important;
}

html[dir="rtl"] body .header .mobile_btn {
    grid-column: 2 !important;
}

html[dir="rtl"] body .header .header-user {
    grid-column: 3 !important;
    min-width: 0 !important;
    width: 100% !important;
}

html[dir="rtl"] body .header .header-user .user-menu,
html[dir="rtl"] body .header .nav.user-menu.nav-list {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

html[dir="rtl"] body .header #header-search {
    grid-column: 1 !important;
    order: initial !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
}

html[dir="rtl"] body .header #header-search .input-group {
    width: min(520px, 100%) !important;
    max-width: 520px !important;
    min-width: 220px !important;
}

html[dir="rtl"] body .header .header-user .user-menu > .d-flex.align-items-center:not(#header-search) {
    grid-column: 2 !important;
    order: initial !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    min-width: max-content !important;
    margin: 0 !important;
    flex: none !important;
}

html[dir="rtl"] body .header .header-user .user-menu > .d-flex.align-items-center:not(#header-search) > * {
    flex: 0 0 auto !important;
}

html[dir="rtl"] body .header .portal-language-switcher,
html[dir="rtl"] body .header .notification_item,
html[dir="rtl"] body .header .profile-dropdown {
    display: block !important;
    visibility: visible !important;
}

html[dir="rtl"] body .header .portal-language-switcher .btn {
    min-width: 70px !important;
}

@media (max-width: 1199.98px) {
    html[dir="rtl"] body .header .header-user .user-menu,
    html[dir="rtl"] body .header .nav.user-menu.nav-list {
        grid-template-columns: minmax(160px, 1fr) auto !important;
    }

    html[dir="rtl"] body .header #header-search .input-group {
        width: min(360px, 100%) !important;
        min-width: 160px !important;
    }
}

@media (max-width: 767.98px) {
    html[dir="rtl"] body .header .main-header {
        grid-template-columns: auto minmax(0, 1fr) !important;
    }

    html[dir="rtl"] body .header .header-left {
        display: none !important;
    }

    html[dir="rtl"] body .header .mobile_btn {
        grid-column: 1 !important;
    }

    html[dir="rtl"] body .header .header-user {
        grid-column: 2 !important;
    }

    html[dir="rtl"] body .header .header-user .user-menu,
    html[dir="rtl"] body .header .nav.user-menu.nav-list {
        grid-template-columns: auto 1fr !important;
    }

    html[dir="rtl"] body .header #header-search {
        grid-column: 1 !important;
        width: auto !important;
    }

    html[dir="rtl"] body .header .header-user .user-menu > .d-flex.align-items-center:not(#header-search) {
        grid-column: 2 !important;
        min-width: 0 !important;
    }
}

/* Header placement hard reset for RTL.
   The base theme uses a left sidebar margin model. In RTL we pin the header
   between the viewport left edge and the right-side sidebar to avoid double
   offset white gaps. */
html[dir="rtl"] body.portal-dir-rtl .header,
html[dir="rtl"] body .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 252px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

html[dir="rtl"] body.portal-dir-rtl.mini-sidebar .header,
html[dir="rtl"] body.mini-sidebar .header {
    right: 80px !important;
    left: 0 !important;
    width: auto !important;
    margin: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl.mini-sidebar.expand-menu .header,
html[dir="rtl"] body.portal-dir-rtl.expand-menu.mini-sidebar .header,
html[dir="rtl"] body.mini-sidebar.expand-menu .header,
html[dir="rtl"] body.expand-menu.mini-sidebar .header {
    right: 252px !important;
    left: 0 !important;
    width: auto !important;
    margin: 0 !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .main-header,
html[dir="rtl"] body .header .main-header {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 52px !important;
    box-sizing: border-box !important;
    background: inherit !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .header-user,
html[dir="rtl"] body .header .header-user {
    min-width: 0 !important;
    overflow: visible !important;
}

html[dir="rtl"] body.portal-dir-rtl .header .header-user .user-menu,
html[dir="rtl"] body.portal-dir-rtl .header .nav.user-menu.nav-list,
html[dir="rtl"] body .header .header-user .user-menu,
html[dir="rtl"] body .header .nav.user-menu.nav-list {
    min-width: 0 !important;
    overflow: visible !important;
}

html[dir="rtl"] body.portal-dir-rtl .header #header-search,
html[dir="rtl"] body .header #header-search {
    min-width: 0 !important;
    overflow: visible !important;
}

html[dir="rtl"] body.portal-dir-rtl .header #header-search .input-group,
html[dir="rtl"] body .header #header-search .input-group {
    min-width: 220px !important;
}

@media (max-width: 991.98px) {
    html[dir="rtl"] body.portal-dir-rtl .header,
    html[dir="rtl"] body .header,
    html[dir="rtl"] body.portal-dir-rtl.mini-sidebar .header,
    html[dir="rtl"] body.mini-sidebar .header {
        right: 0 !important;
        left: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
}

/* Keep the account menu anchored to the avatar in RTL layouts. */
html[dir="rtl"] body .header .profile-dropdown,
html[dir="rtl"] body.portal-dir-rtl .header .profile-dropdown {
    position: relative !important;
}

html[dir="rtl"] body .header .profile-dropdown .dropdown-menu,
html[dir="rtl"] body.portal-dir-rtl .header .profile-dropdown .dropdown-menu {
    inset: calc(100% + 8px) auto auto 0 !important;
    right: auto !important;
    left: 0 !important;
    transform: none !important;
    min-width: 320px !important;
    max-width: min(360px, calc(100vw - 24px)) !important;
    text-align: right !important;
    direction: rtl !important;
}

html[dir="rtl"] body .header .profile-dropdown .dropdown-item,
html[dir="rtl"] body.portal-dir-rtl .header .profile-dropdown .dropdown-item {
    direction: rtl !important;
    text-align: right !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

html[dir="rtl"] body .header .profile-dropdown .dropdown-item i,
html[dir="rtl"] body.portal-dir-rtl .header .profile-dropdown .dropdown-item i {
    margin-left: 8px !important;
    margin-right: 0 !important;
}

html[dir="rtl"] body .header .profile-dropdown .card-header .d-flex,
html[dir="rtl"] body.portal-dir-rtl .header .profile-dropdown .card-header .d-flex {
    direction: rtl !important;
    text-align: right !important;
}

/* Keep notification dropdown close to the bell and readable in RTL. */
html[dir="rtl"] body .header .notification_item,
html[dir="rtl"] body.portal-dir-rtl .header .notification_item {
    position: relative !important;
}

html[dir="rtl"] body .header .notification_item .notification-dropdown,
html[dir="rtl"] body.portal-dir-rtl .header .notification_item .notification-dropdown {
    inset: calc(100% + 8px) auto auto 0 !important;
    right: auto !important;
    left: 0 !important;
    transform: none !important;
    width: min(440px, calc(100vw - 24px)) !important;
    min-width: min(440px, calc(100vw - 24px)) !important;
    max-height: calc(100vh - 110px) !important;
    overflow: hidden !important;
    direction: rtl !important;
    text-align: right !important;
}

html[dir="rtl"] body .header .notification_item .noti-content,
html[dir="rtl"] body.portal-dir-rtl .header .notification_item .noti-content {
    max-height: 420px !important;
    overflow-y: auto !important;
    padding-inline-end: 2px !important;
}

html[dir="rtl"] body .header .notification_item .notification-dropdown .d-flex,
html[dir="rtl"] body.portal-dir-rtl .header .notification_item .notification-dropdown .d-flex {
    direction: rtl !important;
}

html[dir="rtl"] body .header .notification_item .notification-dropdown .avatar,
html[dir="rtl"] body.portal-dir-rtl .header .notification_item .notification-dropdown .avatar {
    margin-left: 8px !important;
    margin-right: 0 !important;
}

/* ENPRO 365 professional refresh - Radix-inspired tokens and components. */
:root {
    --color-bg-app: #0a0f14;
    --color-bg-app-2: #101820;
    --color-surface-1: #121a22;
    --color-surface-2: #17212b;
    --color-surface-3: #202c37;
    --color-surface-border: rgba(226, 232, 240, .14);
    --color-surface-border-soft: rgba(226, 232, 240, .09);
    --color-fg-primary: #f7f8fa;
    --color-fg-secondary: #c9d2dc;
    --color-fg-muted: #93a0ae;
    --color-brand-300: #ffb15f;
    --color-brand-400: #ff9748;
    --color-brand-500: #ff8338;
    --color-accent-teal-300: #64eadc;
    --color-accent-teal-500: #32cfc0;
    --color-success-400: #7bd88f;
    --color-success-500: #4bbf72;
    --color-warning-400: #f8c15c;
    --color-warning-500: #f59f32;
    --color-danger-400: #ff806e;
    --radius-ui: 8px;
    --radius-ui-sm: 6px;
    --shadow-panel: 0 24px 70px rgba(0, 0, 0, .36);
    --shadow-soft: 0 14px 38px rgba(0, 0, 0, .24);
}

html,
html[data-theme="dark"],
html[data-theme="light"] {
    color-scheme: dark;
    --bs-body-bg: var(--color-bg-app);
    --bs-body-color: var(--color-fg-primary);
    --bs-card-bg: var(--color-surface-1);
    --bs-border-color: var(--color-surface-border);
    --bs-primary: var(--color-brand-500);
    --bs-primary-rgb: 255, 131, 56;
}

html[data-theme="light"] {
    color-scheme: light;
    --color-bg-app: #f4f7fb;
    --color-bg-app-2: #ffffff;
    --color-surface-1: #ffffff;
    --color-surface-2: #f8fafc;
    --color-surface-3: #eef3f8;
    --color-surface-border: rgba(23, 36, 52, .14);
    --color-surface-border-soft: rgba(23, 36, 52, .08);
    --color-fg-primary: #152033;
    --color-fg-secondary: #42526a;
    --color-fg-muted: #718096;
    --shadow-panel: 0 24px 70px rgba(28, 45, 68, .12);
    --shadow-soft: 0 14px 38px rgba(28, 45, 68, .1);
    --bs-body-bg: var(--color-bg-app);
    --bs-body-color: var(--color-fg-primary);
    --bs-card-bg: var(--color-surface-1);
    --bs-border-color: var(--color-surface-border);
}

body.portal-ess-layout {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 10%, rgba(50, 207, 192, .12), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(255, 131, 56, .15), transparent 30%),
        linear-gradient(135deg, #090e13 0%, #101820 48%, #071515 100%) !important;
    color: var(--color-fg-primary) !important;
    font-family: "Inter", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.portal-ess-layout .main-wrapper,
.portal-ess-layout .page-wrapper,
.portal-ess-layout .content {
    background: transparent !important;
}

.portal-ess-layout .header {
    height: 76px;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 131, 56, .14) !important;
    background: rgba(10, 15, 20, .86) !important;
    backdrop-filter: blur(18px);
    box-shadow: none !important;
}

.portal-ess-layout .main-header {
    min-height: 76px;
    padding: 0 28px;
}

.portal-ess-layout .header-left {
    width: 276px;
    border: 0 !important;
}

.portal-ess-layout .header-left img,
.portal-ess-layout .sidebar-logo img {
    max-height: 40px;
    object-fit: contain;
    filter: brightness(1.1) saturate(.95);
}

.portal-ess-layout .sidebar {
    width: 276px;
    padding: 0 14px 18px;
    border: 0 !important;
    border-inline-end: 1px solid rgba(226, 232, 240, .1) !important;
    background: linear-gradient(180deg, rgba(18, 26, 34, .98), rgba(10, 15, 20, .98)) !important;
    box-shadow: 18px 0 44px rgba(0, 0, 0, .28);
}

.portal-ess-layout .sidebar-logo {
    height: 76px;
    padding: 18px 16px;
    border: 0 !important;
}

.portal-ess-layout .modern-profile,
.portal-ess-layout .sidebar-header {
    display: none !important;
}

.portal-ess-layout .sidebar-inner {
    height: calc(100vh - 92px);
    padding-top: 14px;
}

.portal-ess-layout .sidebar .menu-title {
    margin: 18px 0 8px;
    padding: 0 10px;
}

.portal-ess-layout .sidebar .menu-title span {
    color: rgba(201, 210, 220, .6) !important;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-ess-layout .sidebar .sidebar-menu ul,
.portal-ess-layout .sidebar .sidebar-menu > ul {
    padding: 0;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a {
    min-height: 48px;
    margin: 4px 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-ui) !important;
    color: rgba(247, 248, 250, .74) !important;
    font-weight: 750;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a i {
    width: 34px !important;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 232, 240, .1);
    border-radius: var(--radius-ui-sm);
    background: rgba(255, 255, 255, .045);
    color: var(--color-brand-300) !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a:hover,
.portal-ess-layout .sidebar .sidebar-menu ul li.active > a,
.portal-ess-layout .sidebar .sidebar-menu ul li.submenu > a.subdrop {
    border-color: rgba(255, 131, 56, .3) !important;
    background: linear-gradient(135deg, rgba(255, 131, 56, .16), rgba(50, 207, 192, .08)) !important;
    color: #fff !important;
}

.portal-ess-layout .sidebar .submenu ul {
    margin: 4px 0 10px 22px;
    padding-inline-start: 14px;
    border-inline-start: 1px solid rgba(226, 232, 240, .1);
}

.portal-ess-layout .sidebar .submenu ul li a {
    min-height: 34px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(201, 210, 220, .72) !important;
    background: transparent !important;
}

.portal-ess-layout .page-wrapper {
    margin-left: 276px;
    padding-top: 76px;
}

.portal-ess-layout .content {
    padding: 28px;
}

.portal-ess-layout h1,
.portal-ess-layout h2,
.portal-ess-layout h3,
.portal-ess-layout h4,
.portal-ess-layout h5,
.portal-ess-layout h6 {
    color: var(--color-fg-primary) !important;
    letter-spacing: 0;
}

.portal-ess-layout p,
.portal-ess-layout .text-muted,
.portal-ess-layout .ess-label,
.portal-ess-layout .ess-stat-label {
    color: var(--color-fg-muted) !important;
}

.portal-ess-layout .breadcrumb {
    display: none;
}

.portal-ess-layout .page-breadcrumb h2 {
    font-size: 30px;
    font-weight: 850;
    line-height: 1.1;
}

.portal-ess-layout .ess-card,
.portal-ess-layout .card,
.portal-ess-layout .dropdown-menu,
.portal-ess-layout .modal-content,
.portal-ess-layout .employee-ai-panel-card {
    border: 1px solid var(--color-surface-border) !important;
    border-radius: var(--radius-ui) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .046), rgba(255, 255, 255, .014)),
        var(--color-surface-1) !important;
    color: var(--color-fg-primary) !important;
    box-shadow: var(--shadow-soft);
}

.portal-ess-layout .ess-card-hover,
.portal-ess-layout .ess-stat,
.portal-ess-layout .employee-ai-prompt {
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.portal-ess-layout .ess-card-hover:hover,
.portal-ess-layout .ess-stat:hover,
.portal-ess-layout .ess-card:hover .ess-card-hover {
    transform: translateY(-2px);
    border-color: rgba(50, 207, 192, .25) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.portal-ess-layout .ess-stat {
    min-height: 126px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--color-surface-border) !important;
    border-radius: var(--radius-ui);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018)),
        rgba(10, 16, 22, .58) !important;
}

.portal-ess-layout .row.g-3.h-100 > .col-sm-6:first-child .ess-stat {
    border: 0 !important;
    background: linear-gradient(135deg, #ff8338, #ffb15f) !important;
    color: #1b130d !important;
}

.portal-ess-layout .row.g-3.h-100 > .col-sm-6:first-child .ess-stat * {
    color: #1b130d !important;
}

.portal-ess-layout .ess-stat-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: var(--radius-ui);
    border: 1px solid rgba(226, 232, 240, .12);
}

.portal-ess-layout .ess-stat-value {
    color: var(--color-fg-primary) !important;
    font-size: 30px;
    font-weight: 850;
    line-height: 1;
}

.portal-ess-layout .ess-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.portal-ess-layout .ess-badge-brand,
.portal-ess-layout .ess-badge-neutral {
    background: rgba(255, 131, 56, .13) !important;
    color: var(--color-brand-300) !important;
}

.portal-ess-layout .ess-badge-info {
    background: rgba(50, 207, 192, .12) !important;
    color: var(--color-accent-teal-300) !important;
}

.portal-ess-layout .ess-btn,
.portal-ess-layout .btn,
.portal-ess-layout .btn-menubar {
    border-radius: var(--radius-ui) !important;
    font-weight: 800;
}

.portal-ess-layout .ess-btn-primary,
.portal-ess-layout .btn-primary {
    border: 0 !important;
    background: linear-gradient(135deg, var(--color-brand-500), #ff742d) !important;
    color: #18120d !important;
    box-shadow: 0 14px 34px rgba(255, 123, 51, .24);
}

.portal-ess-layout .ess-btn-secondary,
.portal-ess-layout .btn-white,
.portal-ess-layout .btn-light,
.portal-ess-layout .btn-menubar {
    border: 1px solid var(--color-surface-border) !important;
    background: rgba(255, 255, 255, .045) !important;
    color: var(--color-fg-secondary) !important;
}

.portal-ess-layout .form-control,
.portal-ess-layout .form-select,
.portal-ess-layout .input-group-flat {
    border-color: var(--color-surface-border) !important;
    border-radius: var(--radius-ui) !important;
    background: rgba(255, 255, 255, .045) !important;
    color: var(--color-fg-primary) !important;
}

.portal-ess-layout .input-group-flat .form-control,
.portal-ess-layout .input-group-flat .input-group-text {
    border: 0 !important;
    background: transparent !important;
}

.portal-ess-layout kbd {
    border: 1px solid rgba(226, 232, 240, .14);
    border-radius: 5px;
    background: rgba(255, 255, 255, .06);
    color: var(--color-fg-secondary);
    box-shadow: none;
}

.portal-ess-layout .avatar {
    border-radius: var(--radius-ui) !important;
}

.portal-ess-layout .avatar-rounded,
.portal-ess-layout .rounded-circle {
    border-radius: 999px !important;
}

.portal-ess-layout .company-news-slide,
.portal-ess-layout [id^="companyNewsCarousel"] .carousel-item > div {
    min-height: 300px;
    padding: 34px !important;
    background:
        linear-gradient(120deg, rgba(8, 15, 22, .93), rgba(14, 52, 50, .74)),
        url("../img/company-news-bg.png") center/cover !important;
}

.portal-ess-layout [id^="companyNewsCarousel"] .news-kicker {
    color: var(--color-accent-teal-300) !important;
}

.portal-ess-layout [id^="companyNewsCarousel"] .news-title {
    color: #fff !important;
    font-size: 28px;
    font-weight: 850;
}

.portal-ess-layout .employee-ai-toggle {
    border-radius: var(--radius-ui) !important;
    background: linear-gradient(135deg, var(--color-brand-500), var(--color-accent-teal-500)) !important;
    box-shadow: 0 18px 44px rgba(255, 131, 56, .24);
}

.portal-ess-layout .employee-ai-shell,
.portal-ess-layout .employee-ai-bubble,
.portal-ess-layout .employee-ai-form,
.portal-ess-layout .employee-ai-prompt {
    background: rgba(8, 14, 20, .84) !important;
    border-color: var(--color-surface-border) !important;
    color: var(--color-fg-secondary) !important;
}

.portal-ess-layout .employee-ai-row.user .employee-ai-bubble {
    background: linear-gradient(135deg, rgba(255, 131, 56, .96), rgba(255, 177, 95, .96)) !important;
    color: #1c130b !important;
}

.portal-ess-layout .footer {
    display: none !important;
}

@media (min-width: 992px) {
    .portal-ess-layout .header {
        left: 276px;
    }

    .portal-dir-rtl.portal-ess-layout .sidebar {
        right: 0 !important;
        left: auto !important;
        border-left: 1px solid rgba(226, 232, 240, .1) !important;
    }

    .portal-dir-rtl.portal-ess-layout .page-wrapper {
        margin: 0 276px 0 0 !important;
    }

    .portal-dir-rtl.portal-ess-layout .header {
        right: 276px !important;
        left: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .portal-ess-layout .header {
        left: 0;
        height: 64px;
    }

    .portal-ess-layout .main-header {
        min-height: 64px;
        padding: 0 14px;
    }

    .portal-ess-layout .page-wrapper,
    .portal-dir-rtl.portal-ess-layout .page-wrapper {
        margin: 0 !important;
        padding-top: 64px;
    }

    .portal-ess-layout .content {
        padding: 18px 14px;
    }

    .portal-ess-layout .sidebar {
        width: min(296px, 86vw);
        margin-left: -320px !important;
    }

    .portal-dir-rtl.portal-ess-layout .sidebar {
        margin-right: -320px !important;
        margin-left: 0 !important;
    }

    .portal-ess-layout.slide-nav .sidebar,
    body.portal-ess-layout.slide-nav .sidebar {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .portal-ess-layout .input-group-flat {
        display: none !important;
    }

    .portal-ess-layout .page-breadcrumb h2 {
        font-size: 24px;
    }

    .portal-ess-layout [id^="companyNewsCarousel"] .carousel-item > div {
        padding: 22px !important;
    }
}

/* Visual dashboard pass: playful dark product style inspired by modern creative dashboards. */
body.portal-ess-layout {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
        radial-gradient(circle at 16% 12%, rgba(102, 113, 255, .18), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(255, 116, 74, .18), transparent 30%),
        radial-gradient(circle at 60% 88%, rgba(62, 220, 196, .13), transparent 32%),
        #07090c !important;
    background-size: 42px 42px, 42px 42px, auto, auto, auto, auto;
}

.portal-ess-layout .content {
    max-width: 1540px;
    margin-inline: auto;
}

.portal-ess-layout .ess-dashboard-heading {
    padding: 12px 4px 2px;
}

.portal-ess-layout .ess-dashboard-heading h2 {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 900;
}

.portal-ess-layout .ess-dashboard-heading p {
    font-size: 14px;
}

.portal-ess-layout .ess-dashboard-heading + .ess-card,
.portal-ess-layout .ess-dashboard-heading + .ess-card + .ess-card {
    max-width: 100%;
}

.portal-ess-layout .content > .ess-card.p-3.mb-4 {
    min-height: 58px;
    border-radius: 10px !important;
    background:
        linear-gradient(90deg, rgba(255, 154, 74, .1), rgba(255, 255, 255, .035)),
        rgba(21, 26, 32, .92) !important;
    box-shadow: none;
}

.portal-ess-layout .ess-beta-ticker {
    min-height: 54px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 14px !important;
    border: 1px solid rgba(255, 147, 69, .28) !important;
    border-radius: 14px !important;
    background:
        linear-gradient(90deg, rgba(255, 122, 47, .16), rgba(56, 217, 200, .05), rgba(255, 122, 47, .08)),
        rgba(14, 18, 24, .84) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 50px rgba(0, 0, 0, .22) !important;
}

.portal-ess-layout .ess-beta-ticker::after {
    display: none;
}

.portal-ess-layout .ess-beta-ticker__badge {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #27160a;
    background: linear-gradient(135deg, #ffad5f, #ff7a2f);
    box-shadow: 0 10px 24px rgba(255, 122, 47, .22);
}

.portal-ess-layout .ess-beta-ticker__track {
    min-width: 0;
    overflow: hidden;
    mask-image: none;
}

.portal-ess-layout .ess-beta-ticker__line {
    width: 100%;
    display: flex;
    align-items: center;
    color: rgba(244, 247, 251, .88);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    animation: none;
}

.portal-ess-layout .ess-beta-ticker__line span::after {
    display: none;
}

@keyframes ess-beta-ticker-ltr {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33.333%);
    }
}

@keyframes ess-beta-ticker-rtl {
    from {
        transform: translateX(-33.333%);
    }
    to {
        transform: translateX(0);
    }
}

.portal-ess-layout .ess-card {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(20, 22, 26, .86) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.portal-ess-layout .ess-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, .14), transparent 28%, rgba(255, 255, 255, .04));
    mask: linear-gradient(#000, transparent 62%);
    opacity: .42;
}

.portal-ess-layout .ess-card > * {
    position: relative;
    z-index: 1;
}

.portal-ess-layout::before {
    content: "";
    position: fixed;
    inset-inline-start: 0;
    top: 0;
    z-index: 100000;
    width: 100%;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #ff9345, #38d9c8, transparent);
    opacity: 0;
    transform: translateX(-100%);
}

#global-loader.enpro-loader,
#global-loader.enpro-loader.is-active,
html[data-loader="enable"] #global-loader.enpro-loader,
html[data-loader="enable"] #global-loader.enpro-loader.is-active {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.portal-ess-layout.ess-route-loading::before,
.portal-ess-layout.ess-is-busy::before {
    opacity: 1;
    animation: ess-route-progress .95s ease-in-out infinite;
}

.portal-ess-layout.ess-hydrating .ess-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .08) 42%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, .08) 58%, transparent 100%),
        linear-gradient(145deg, rgba(255, 255, 255, .045), transparent 42%);
    transform: translateX(-120%);
    animation: ess-card-shimmer .82s ease-out both;
}

html[data-theme="light"] .portal-ess-layout.ess-hydrating .ess-card::before {
    background:
        linear-gradient(105deg, transparent 0%, rgba(15, 23, 42, .035) 42%, rgba(255, 255, 255, .72) 50%, rgba(15, 23, 42, .035) 58%, transparent 100%),
        linear-gradient(145deg, rgba(255, 255, 255, .72), transparent 42%);
}

.portal-ess-layout.ess-hydrating .ess-card > * {
    transition: opacity .18s ease;
}

.portal-ess-layout.ess-hydrating .ess-leave-orb-card #essLeaveUtilizationChart,
.portal-ess-layout.ess-hydrating .ess-news-card .carousel,
.portal-ess-layout.ess-hydrating .ess-team-card .ess-person-card {
    opacity: .62;
}

@keyframes ess-card-shimmer {
    to {
        transform: translateX(120%);
    }
}

@keyframes ess-route-progress {
    0% {
        transform: translateX(-100%);
    }
    55% {
        transform: translateX(-18%);
    }
    100% {
        transform: translateX(100%);
    }
}

.portal-ess-layout .ess-profile-card {
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 118, 85, .26), transparent 30%),
        radial-gradient(circle at 12% 90%, rgba(105, 124, 255, .2), transparent 34%),
        linear-gradient(145deg, #1b1d22, #111417) !important;
}

.portal-ess-layout .ess-dashboard-hero {
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.portal-ess-layout .ess-dashboard-hero > [class*="col-"] > .ess-card {
    height: 100%;
}

.portal-ess-layout .content > .row {
    position: relative;
    z-index: 1;
}

.portal-ess-layout .content > .row > [class*="col-"] {
    min-width: 0;
}

.portal-ess-layout .ess-profile-card > .p-4:first-child {
    min-height: 132px;
    background:
        linear-gradient(135deg, rgba(255, 116, 74, .28), rgba(105, 124, 255, .14)),
        rgba(255, 255, 255, .04) !important;
}

.portal-ess-layout .ess-profile-card .avatar-lg {
    width: 68px;
    height: 68px;
    border: 3px solid rgba(255, 255, 255, .78) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
}

.portal-ess-layout .ess-profile-card dl > div {
    min-height: 62px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.portal-ess-layout .ess-stats-mosaic .ess-stat {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
}

.portal-ess-layout .ess-stats-mosaic .ess-stat::before {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -42px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: currentColor;
    opacity: .12;
    filter: blur(2px);
    z-index: -1;
}

.portal-ess-layout .ess-stats-mosaic .ess-stat::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    height: 42px;
    opacity: .38;
    background:
        linear-gradient(to top, currentColor 0 38%, transparent 38%),
        linear-gradient(to top, currentColor 0 62%, transparent 62%),
        linear-gradient(to top, currentColor 0 48%, transparent 48%),
        linear-gradient(to top, currentColor 0 78%, transparent 78%),
        linear-gradient(to top, currentColor 0 52%, transparent 52%);
    background-size: 16% 100%;
    background-position: 0 0, 24% 0, 48% 0, 72% 0, 96% 0;
    background-repeat: no-repeat;
    border-radius: 6px;
    z-index: -1;
}

.portal-ess-layout .ess-stats-mosaic .col-sm-6:nth-child(1) .ess-stat {
    background: linear-gradient(135deg, #ff694d, #ff9864) !important;
    color: #20110b !important;
}

.portal-ess-layout .ess-stats-mosaic .col-sm-6:nth-child(2) .ess-stat {
    background: linear-gradient(135deg, rgba(103, 123, 255, .94), rgba(111, 146, 255, .82)) !important;
    color: #f8f9ff !important;
}

.portal-ess-layout .ess-stats-mosaic .col-sm-6:nth-child(3) .ess-stat {
    background: linear-gradient(135deg, rgba(40, 188, 137, .9), rgba(74, 219, 170, .72)) !important;
    color: #061610 !important;
}

.portal-ess-layout .ess-stats-mosaic .col-sm-6:nth-child(4) .ess-stat {
    background: linear-gradient(135deg, rgba(248, 180, 77, .94), rgba(255, 218, 115, .78)) !important;
    color: #1c1404 !important;
}

.portal-ess-layout .ess-stats-mosaic .ess-stat *,
.portal-ess-layout .ess-stats-mosaic .ess-stat .ess-stat-value,
.portal-ess-layout .ess-stats-mosaic .ess-stat .ess-stat-label {
    color: currentColor !important;
}

.portal-ess-layout .ess-stats-mosaic .ess-stat-icon {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .18) !important;
    color: currentColor !important;
    backdrop-filter: blur(10px);
}

.portal-ess-layout .ess-stat-value {
    font-size: clamp(34px, 3.5vw, 52px);
    letter-spacing: 0;
}

.portal-ess-layout .ess-stats-mosaic .col-12 .ess-card {
    min-height: 82px;
    background:
        linear-gradient(90deg, rgba(103, 123, 255, .16), rgba(50, 207, 192, .1)),
        rgba(18, 20, 24, .88) !important;
}

.portal-ess-layout .ess-leave-orb-card {
    text-align: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(103, 123, 255, .18), transparent 38%),
        linear-gradient(145deg, #15181e, #101216) !important;
}

.portal-ess-layout .ess-leave-orb-card ul {
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.portal-ess-layout .ess-panel-head {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.portal-ess-layout .ess-panel-head h5 {
    margin: 0;
    color: rgba(246, 248, 250, .95) !important;
    font-size: 14px;
    font-weight: 900;
}

.portal-ess-layout .ess-panel-head a {
    color: #38d9c8;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.portal-ess-layout .ess-my-requests-card {
    min-height: 360px;
    padding: 0 !important;
    border-color: rgba(148, 163, 184, .24) !important;
    border-radius: 22px !important;
    background: #151a20 !important;
}

.portal-ess-layout .ess-my-requests-card::after {
    display: none;
}

.portal-ess-layout .ess-my-requests-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.portal-ess-layout .ess-pending-tile {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff7e32, #ffa35b);
    color: #fff;
    box-shadow: 0 20px 40px rgba(255, 126, 50, .22);
}

.portal-ess-layout .ess-pending-tile small,
.portal-ess-layout .ess-pending-tile strong {
    display: block;
    color: #fff;
}

.portal-ess-layout .ess-pending-tile small {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 650;
}

.portal-ess-layout .ess-pending-tile strong {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.portal-ess-layout .ess-pending-tile i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border-radius: 14px;
    background: rgba(40, 24, 16, .78);
    color: #fff;
}

.portal-ess-layout .ess-request-row {
    min-height: 62px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    color: inherit;
}

.portal-ess-layout .ess-request-row.has-assigned-alert {
    position: relative;
    padding: 12px;
    margin: -12px 0 0;
    border: 1px solid rgba(255, 143, 61, .26);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 50%, rgba(255, 143, 61, .16), transparent 34%),
        rgba(255, 143, 61, .045);
    animation: assignedRequestGlow 2.8s ease-in-out infinite;
}

.portal-ess-layout .ess-request-row.has-assigned-alert .ess-request-row__icon,
.portal-ess-layout .ess-request-row.has-assigned-alert .ess-request-row__pill {
    animation: assignedRequestPulse 1.9s ease-in-out infinite;
}

@keyframes assignedRequestGlow {
    0%, 100% {
        border-color: rgba(255, 143, 61, .24);
        box-shadow: 0 0 0 rgba(255, 143, 61, 0);
    }
    50% {
        border-color: rgba(255, 143, 61, .48);
        box-shadow: 0 0 28px rgba(255, 143, 61, .14);
    }
}

@keyframes assignedRequestPulse {
    0%, 100% {
        transform: scale(1);
        filter: saturate(1);
    }
    50% {
        transform: scale(1.06);
        filter: saturate(1.22);
    }
}

.portal-ess-layout .ess-request-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.portal-ess-layout .ess-request-row__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 143, 54, .28);
    border-radius: 12px;
    background: rgba(255, 143, 54, .1);
    color: #ff9a42;
}

.portal-ess-layout .ess-request-row__body {
    min-width: 0;
}

.portal-ess-layout .ess-request-row__body strong,
.portal-ess-layout .ess-request-row__body small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-ess-layout .ess-request-row__body strong {
    color: rgba(246, 248, 250, .92);
    font-size: 13px;
    font-weight: 850;
}

.portal-ess-layout .ess-request-row__body small {
    margin-top: 2px;
    color: rgba(148, 163, 184, .82);
    font-size: 11px;
    font-weight: 650;
}

.portal-ess-layout .ess-request-row__pill {
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 176, 82, .14);
    color: #ffc66d;
    font-size: 11px;
    font-weight: 900;
}

.portal-ess-layout .ess-request-row__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.portal-ess-layout .ess-request-row__button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a2f, #ffad5b);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(255, 122, 47, .24);
}

.portal-ess-layout .ess-request-row:hover .ess-request-row__button {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(255, 122, 47, .32);
}

.portal-dir-rtl.portal-ess-layout .ess-request-row__button i {
    transform: scaleX(-1);
}

.portal-ess-layout .ess-request-row__pill--profile {
    background: rgba(67, 213, 130, .14);
    color: #6ee7a7;
}

.portal-ess-layout .ess-leave-orb-card {
    min-height: 360px;
    padding: 0 !important;
    border-color: rgba(148, 163, 184, .24) !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 78% 48%, rgba(63, 214, 191, .16), transparent 34%),
        #151a20 !important;
}

.portal-ess-layout .ess-leave-orb-card > .d-flex:first-child {
    min-height: 58px;
    margin: 0 !important;
    padding: 0 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.portal-ess-layout .ess-leave-orb-card > .d-flex:first-child h5 {
    font-size: 14px;
    font-weight: 900;
}

.portal-ess-layout .ess-leave-orb-card #essLeaveUtilizationChart {
    margin-top: 12px;
    min-height: 224px;
}

.portal-ess-layout .ess-leave-orb-card #essLeaveUtilizationChart .apexcharts-datalabel-label {
    transform: translateY(8px);
}

.portal-ess-layout .ess-leave-orb-card ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 8px !important;
    padding: 0 22px 22px;
    background: transparent;
}

.portal-ess-layout .ess-leave-orb-card ul li {
    display: flex !important;
    min-width: 0;
    flex-direction: column-reverse;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    border-bottom: 0 !important;
}

.portal-ess-layout .ess-leave-orb-card ul li span:first-child {
    font-size: 10px !important;
}

.portal-ess-layout .ess-leave-orb-card ul li span:last-child {
    position: relative;
    font-size: 15px;
}

.portal-ess-layout .ess-leave-orb-card ul li span:last-child::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 999px;
    background: #38d9c8;
}

.portal-ess-layout .ess-leave-orb-card ul li:nth-child(2) span:last-child::before,
.portal-ess-layout .ess-leave-orb-card ul li:nth-child(3) span:last-child::before {
    background: #ff9a42;
}

.portal-ess-layout .ess-mini-visual-card {
    min-height: 164px;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    position: relative;
    padding: 22px;
    border-radius: 22px !important;
    overflow: hidden;
    text-decoration: none !important;
}

.portal-ess-layout .ess-secondary-metrics {
    align-items: stretch;
}

.portal-ess-layout .ess-secondary-metrics > [class*="col-"] {
    display: flex;
    min-width: 0;
}

.portal-ess-layout .ess-secondary-metrics .ess-mini-visual-card {
    flex: 1 1 auto;
}

.portal-ess-layout .ess-ticket-visual-card {
    border-color: rgba(255, 127, 75, .32) !important;
    background:
        radial-gradient(circle at 86% 22%, rgba(255, 127, 75, .18), transparent 25%),
        linear-gradient(135deg, rgba(40, 45, 70, .96), rgba(20, 23, 32, .96)) !important;
}

.portal-ess-layout .ess-workflow-visual-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border-color: rgba(73, 221, 196, .28) !important;
    background:
        radial-gradient(circle at 88% 22%, rgba(255, 177, 82, .13), transparent 24%),
        radial-gradient(circle at 55% 55%, rgba(73, 221, 196, .14), transparent 40%),
        linear-gradient(135deg, rgba(20, 42, 44, .96), rgba(16, 20, 25, .96)) !important;
}

.portal-ess-layout .ess-mini-visual-value {
    color: rgba(246, 248, 250, .96);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.portal-ess-layout .ess-ticket-visual-card .ess-mini-visual-value,
.portal-ess-layout .ess-workflow-visual-card .ess-mini-visual-value {
    font-size: 38px;
}

.portal-ess-layout .ess-mini-visual-label {
    margin-top: 8px;
    color: rgba(148, 163, 184, .88);
    font-size: 12px;
    font-weight: 700;
}

.portal-ess-layout .ess-mini-visual-icon {
    position: absolute;
    right: 20px;
    top: 24px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 154, 74, .28);
    border-radius: 14px;
    background: rgba(255, 154, 74, .16);
    color: #ff9a42;
}

.portal-ess-layout .ess-mini-bars {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    height: 48px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 7px;
}

.portal-ess-layout .ess-mini-bars span {
    min-height: 18px;
    border-radius: 4px 4px 0 0;
    background: rgba(148, 163, 184, .28);
}

.portal-ess-layout .ess-mini-bars span:nth-child(2) { height: 32px; }
.portal-ess-layout .ess-mini-bars span:nth-child(3) { height: 24px; }
.portal-ess-layout .ess-mini-bars span:nth-child(4) { height: 42px; background: #ff746a; }
.portal-ess-layout .ess-mini-bars span:nth-child(5) { height: 36px; }
.portal-ess-layout .ess-mini-bars span:nth-child(6) { height: 48px; background: #ff8d3c; }

.portal-ess-layout .ess-mini-chip-row {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.portal-ess-layout .ess-mini-chip-row span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
    background: rgba(148, 163, 184, .13);
    color: rgba(226, 232, 240, .78);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.portal-ess-layout .ess-mini-chip-row span:last-child {
    background: linear-gradient(135deg, #38d9c8, #ffc66d);
    color: #10140e;
}

.portal-ess-layout .ess-news-card {
    min-height: 280px !important;
}

.portal-ess-layout .ess-news-card .carousel-item > div {
    min-height: 280px;
    background:
        radial-gradient(circle at 80% 15%, rgba(255, 116, 74, .22), transparent 28%),
        radial-gradient(circle at 15% 85%, rgba(103, 123, 255, .22), transparent 34%),
        linear-gradient(120deg, rgba(15, 17, 22, .95), rgba(23, 46, 45, .78)) !important;
}

.portal-ess-layout .ess-news-card h5 {
    max-width: 760px;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
}

.portal-ess-layout .ess-quick-services-card {
    min-height: 520px;
    padding: 0 !important;
    border-color: rgba(148, 163, 184, .24) !important;
    border-radius: 22px !important;
    background: #151a20 !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.portal-ess-layout .ess-quick-services-card::after {
    display: none;
}

.portal-ess-layout .ess-quick-services-card > .d-flex:first-child {
    min-height: 58px;
    margin: 0 !important;
    padding: 0 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.portal-ess-layout .ess-quick-services-card h5 {
    margin: 0 !important;
    font-size: 14px;
    font-weight: 900;
}

.portal-ess-layout .ess-quick-services-card p {
    display: none;
}

.portal-ess-layout .ess-quick-services-card .ess-badge {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: rgba(226, 232, 240, .58) !important;
    font-size: 10px;
    font-weight: 700;
}

.portal-ess-layout .ess-quick-services-list {
    display: grid;
    gap: 0;
    padding: 16px 18px 22px;
}

.portal-ess-layout .ess-quick-service {
    min-height: 64px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.portal-ess-layout .ess-quick-service:last-child {
    border-bottom: 0;
}

.portal-ess-layout .ess-quick-service:hover {
    transform: translateX(3px);
    border-color: rgba(255, 154, 74, .28);
    background: linear-gradient(90deg, rgba(255, 154, 74, .07), transparent);
}

.portal-dir-rtl.portal-ess-layout .ess-quick-service:hover {
    transform: translateX(-4px);
}

.portal-ess-layout .ess-quick-service__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #21130a;
    background: linear-gradient(135deg, #ff9a42, #ff7a35) !important;
    box-shadow: none;
}

.portal-ess-layout .ess-quick-service:nth-child(2) .ess-quick-service__icon {
    background: linear-gradient(135deg, #ff7b48, #ff6b3d) !important;
    color: #21130a;
}

.portal-ess-layout .ess-quick-service:nth-child(3) .ess-quick-service__icon {
    background: linear-gradient(135deg, #ff8260, #ff9a42) !important;
    color: #1d1405;
}

.portal-ess-layout .ess-quick-service:nth-child(4) .ess-quick-service__icon {
    background: linear-gradient(135deg, #ffb44f, #ff913b) !important;
    color: #21130a;
}

.portal-ess-layout .ess-quick-service:nth-child(5) .ess-quick-service__icon {
    background: linear-gradient(135deg, #ffb864, #ff8d45) !important;
    color: #21130a;
}

.portal-ess-layout .ess-quick-service:nth-child(6) .ess-quick-service__icon {
    background: linear-gradient(135deg, #ff8f36, #ff742d) !important;
    color: #21130a;
}

.portal-ess-layout .ess-quick-service__body {
    min-width: 0;
}

.portal-ess-layout .ess-quick-service__body strong,
.portal-ess-layout .ess-quick-service__body small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-ess-layout .ess-quick-service__body strong {
    color: rgba(246, 248, 250, .92);
    font-size: 13px;
    font-weight: 850;
}

.portal-ess-layout .ess-quick-service__body small {
    margin-top: 3px;
    color: rgba(148, 163, 184, .82);
    font-size: 11px;
    font-weight: 650;
}

.portal-ess-layout .ess-quick-service__arrow {
    color: rgba(203, 213, 225, .56);
    transition: transform .16s ease, color .16s ease;
}

.portal-ess-layout .ess-quick-service:hover .ess-quick-service__arrow {
    color: rgba(255, 255, 255, .88);
    transform: translateX(3px);
}

.portal-dir-rtl.portal-ess-layout .ess-quick-service__arrow {
    transform: rotate(180deg);
}

.portal-dir-rtl.portal-ess-layout .ess-quick-service:hover .ess-quick-service__arrow {
    transform: rotate(180deg) translateX(3px);
}

.portal-ess-layout .ess-team-card,
.portal-ess-layout .ess-holiday-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .022)),
        rgba(12, 14, 18, .92) !important;
}

.portal-ess-layout .ess-person-card {
    border-color: rgba(255, 255, 255, .08) !important;
    background: rgba(255, 255, 255, .045) !important;
    box-shadow: none;
}

.portal-ess-layout .ess-person-card:hover,
.portal-ess-layout .ess-holiday-row:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, .07) !important;
}

.portal-dir-rtl.portal-ess-layout .ess-person-card:hover,
.portal-dir-rtl.portal-ess-layout .ess-holiday-row:hover {
    transform: translateX(-3px);
}

.portal-ess-layout .ess-holiday-row {
    margin-inline: -10px;
    padding-inline: 10px;
    border-radius: 8px;
    transition: transform .16s ease, background .16s ease;
}

.portal-ess-layout .ess-badge-success {
    background: rgba(74, 219, 170, .14) !important;
    color: #72f2c9 !important;
}

.portal-ess-layout .employee-ai-widget {
    right: 24px;
    bottom: 24px;
    z-index: 1030;
}

.portal-dir-rtl.portal-ess-layout .employee-ai-widget {
    right: auto;
    left: 24px;
}

.portal-ess-layout .employee-ai-toggle {
    width: 210px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 8px !important;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 105, 77, .22), transparent 24%),
        radial-gradient(circle at 78% 65%, rgba(103, 123, 255, .2), transparent 34%),
        linear-gradient(145deg, #16181d, #0e1014) !important;
    color: #fff !important;
    text-align: left;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.portal-dir-rtl.portal-ess-layout .employee-ai-toggle {
    text-align: right;
}

.portal-ess-layout .employee-ai-toggle-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.portal-ess-layout .employee-ai-toggle-head strong,
.portal-ess-layout .employee-ai-toggle-head small,
.portal-ess-layout .employee-ai-toggle-foot {
    display: block;
    line-height: 1.25;
}

.portal-ess-layout .employee-ai-toggle-head strong {
    font-size: 13px;
    font-weight: 900;
}

.portal-ess-layout .employee-ai-toggle-head small,
.portal-ess-layout .employee-ai-toggle-foot {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 600;
}

.portal-ess-layout .employee-ai-toggle-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border-radius: 999px;
    background: #ff694d;
    box-shadow: 0 8px 22px rgba(255, 105, 77, .36);
}

.portal-ess-layout .employee-ai-toggle-icon i {
    color: #fff;
    font-size: 16px;
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, .45));
}

.portal-ess-layout .employee-ai-wave {
    height: 40px;
    position: relative;
    display: block;
    overflow: hidden;
}

.portal-ess-layout .employee-ai-wave span {
    position: absolute;
    left: -10%;
    right: -10%;
    top: 50%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    color: rgba(255, 255, 255, .68);
    transform: translateY(-50%);
}

.portal-ess-layout .employee-ai-wave span:nth-child(1) {
    clip-path: polygon(0 48%, 8% 58%, 16% 42%, 24% 56%, 32% 32%, 42% 70%, 52% 24%, 62% 60%, 74% 38%, 86% 52%, 100% 44%, 100% 56%, 86% 64%, 74% 50%, 62% 72%, 52% 36%, 42% 84%, 32% 44%, 24% 68%, 16% 54%, 8% 70%, 0 58%);
    height: 34px;
    color: rgba(255, 105, 77, .72);
}

.portal-ess-layout .employee-ai-wave span:nth-child(2) {
    height: 30px;
    color: rgba(103, 123, 255, .72);
    transform: translateY(-48%) scaleY(.82);
}

.portal-ess-layout .employee-ai-wave span:nth-child(3) {
    height: 24px;
    color: rgba(62, 220, 196, .62);
    transform: translateY(-50%) scaleY(.62);
}

.portal-ess-layout .employee-ai-wave span:nth-child(4) {
    height: 1px;
    color: rgba(255, 255, 255, .2);
}

.portal-ess-layout .employee-ai-widget.is-open .employee-ai-toggle {
    width: 56px;
    min-height: 56px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
}

.portal-ess-layout .employee-ai-widget.is-open .employee-ai-toggle-head span:not(.employee-ai-toggle-icon),
.portal-ess-layout .employee-ai-widget.is-open .employee-ai-wave,
.portal-ess-layout .employee-ai-widget.is-open .employee-ai-toggle-foot {
    display: none;
}

.portal-ess-layout .employee-ai-panel {
    bottom: 154px;
}

.portal-ess-layout .employee-ai-panel-card {
    width: min(430px, calc(100vw - 32px));
    background:
        radial-gradient(circle at 20% 8%, rgba(255, 105, 77, .16), transparent 26%),
        linear-gradient(145deg, #16181d, #0d0f13) !important;
}

@media (max-width: 767.98px) {
    .portal-ess-layout .ess-stats-mosaic .ess-stat {
        min-height: 132px;
    }

    .portal-ess-layout .employee-ai-widget {
        right: 12px;
        left: 12px;
        bottom: 14px;
        align-items: flex-end;
    }

    .portal-ess-layout .employee-ai-toggle {
        width: min(232px, calc(100vw - 24px));
    }

    .portal-ess-layout .employee-ai-panel {
        bottom: 154px;
    }
}

/* Sidebar polish: compact creative menu treatment matching the supplied reference. */
.portal-ess-layout .sidebar {
    width: 252px !important;
    padding: 14px 12px 18px !important;
    border-right: 1px solid rgba(255, 255, 255, .045) !important;
    background: #050607 !important;
    box-shadow: 20px 0 60px rgba(0, 0, 0, .44) !important;
}

.portal-ess-layout .sidebar-logo {
    display: none !important;
}

.portal-ess-layout .sidebar-header {
    display: block !important;
    padding: 0 !important;
}

.portal-ess-layout .modern-profile {
    display: none !important;
}

.portal-ess-layout .sidebar-profile {
    min-height: 50px;
    margin: 0 0 18px !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff;
}

.portal-ess-layout .sidebar-profile .avatar {
    width: 38px;
    height: 38px;
    padding: 2px;
    border: 1px solid rgba(117, 134, 255, .9);
    background: linear-gradient(135deg, rgba(117, 134, 255, .9), rgba(255, 112, 81, .72));
}

.portal-ess-layout .sidebar-profile .avatar img {
    width: 100%;
    height: 100%;
    border: 2px solid #050607;
    object-fit: cover;
}

.portal-ess-layout .sidebar-profile-info {
    min-width: 0;
    text-align: left !important;
}

.portal-ess-layout .sidebar-greeting {
    color: rgba(255, 255, 255, .38) !important;
    font-size: 10px;
    line-height: 1.1;
}

.portal-ess-layout .sidebar-profile-info h6 {
    max-width: 98px;
    overflow: hidden;
    color: #fff !important;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-ess-layout .sidebar-profile-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.portal-ess-layout .sidebar-round-action {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    background: #121417;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

.portal-ess-layout .sidebar-round-action span {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #ff6548;
}

.portal-ess-layout .sidebar-ai-card {
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 16%, rgba(255, 104, 75, .2), transparent 20%),
        radial-gradient(circle at 80% 68%, rgba(93, 120, 255, .2), transparent 28%),
        linear-gradient(145deg, #17191d, #101216);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 16px 34px rgba(0, 0, 0, .35);
}

.portal-ess-layout .sidebar-ai-card__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.portal-ess-layout .sidebar-ai-card__head > span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff674b, #ff9368);
    color: #fff;
    box-shadow: 0 10px 26px rgba(255, 103, 75, .34);
}

.portal-ess-layout .sidebar-ai-card strong,
.portal-ess-layout .sidebar-ai-card small {
    display: block;
    color: #fff;
    line-height: 1.2;
}

.portal-ess-layout .sidebar-ai-card strong {
    font-size: 12px;
    font-weight: 900;
}

.portal-ess-layout .sidebar-ai-card small,
.portal-ess-layout .sidebar-ai-card p {
    color: rgba(255, 255, 255, .62) !important;
    font-size: 11px;
    font-weight: 600;
}

.portal-ess-layout .sidebar-ai-wave {
    position: relative;
    height: 62px;
    margin: 8px 0 6px;
    overflow: hidden;
}

.portal-ess-layout .sidebar-ai-wave span {
    position: absolute;
    left: -12%;
    right: -12%;
    top: 50%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.portal-ess-layout .sidebar-ai-wave span:nth-child(1) {
    height: 34px;
    color: rgba(255, 103, 75, .72);
    clip-path: polygon(0 52%, 8% 58%, 16% 46%, 25% 62%, 34% 28%, 44% 72%, 55% 30%, 66% 64%, 78% 42%, 90% 56%, 100% 47%, 100% 58%, 90% 70%, 78% 55%, 66% 78%, 55% 44%, 44% 88%, 34% 42%, 25% 76%, 16% 58%, 8% 72%, 0 62%);
}

.portal-ess-layout .sidebar-ai-wave span:nth-child(2) {
    height: 28px;
    color: rgba(91, 117, 255, .72);
    transform: translateY(-50%) scaleY(.72);
}

.portal-ess-layout .sidebar-ai-wave span:nth-child(3) {
    height: 22px;
    color: rgba(73, 221, 196, .64);
    transform: translateY(-50%) scaleY(.55);
}

.portal-ess-layout .sidebar-header .input-group-flat,
.portal-ess-layout .sidebar-header .menu-item {
    display: none !important;
}

.portal-ess-layout .sidebar-inner {
    height: calc(100vh - 258px) !important;
    padding-top: 0 !important;
    overflow-x: hidden;
}

.portal-ess-layout .sidebar .sidebar-menu {
    padding: 0 !important;
}

.portal-ess-layout .sidebar .sidebar-menu > ul > li.menu-title:first-child span {
    font-size: 0;
}

.portal-ess-layout .sidebar .sidebar-menu > ul > li.menu-title:first-child span::after {
    content: "Frequently Used";
    font-size: 10px;
}

.portal-ess-layout .sidebar .menu-title {
    margin: 20px 0 8px !important;
    padding: 0 10px !important;
}

.portal-ess-layout .sidebar .menu-title span {
    color: rgba(255, 255, 255, .32) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a {
    min-height: 38px !important;
    margin: 2px 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    gap: 10px;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a i {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, .86) !important;
    font-size: 16px !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a:hover {
    background: rgba(255, 255, 255, .06) !important;
    color: #fff !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li.active > a,
.portal-ess-layout .sidebar .sidebar-menu ul li.submenu > a.subdrop,
.portal-ess-layout .sidebar .sidebar-menu ul li a.active {
    background: #6978ff !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(105, 120, 255, .28);
}

.portal-ess-layout .sidebar .sidebar-menu ul li.active > a i,
.portal-ess-layout .sidebar .sidebar-menu ul li.submenu > a.subdrop i,
.portal-ess-layout .sidebar .sidebar-menu ul li a.active i {
    color: #fff !important;
}

.portal-ess-layout .sidebar .menu-arrow {
    opacity: .72;
}

.portal-ess-layout .sidebar .submenu ul {
    position: relative;
    margin: 4px 0 10px 30px !important;
    padding: 2px 0 2px 14px !important;
    border: 0 !important;
}

.portal-ess-layout .sidebar .submenu ul::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 8px;
    width: 1px;
    background: rgba(255, 255, 255, .1);
}

.portal-ess-layout .sidebar .submenu ul li a {
    min-height: 30px !important;
    padding: 0 8px !important;
    color: rgba(255, 255, 255, .46) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
}

.portal-ess-layout .sidebar .submenu ul li a::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .28);
}

.portal-ess-layout .sidebar .submenu ul li a:hover,
.portal-ess-layout .sidebar .submenu ul li a.active {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
}

.portal-ess-layout .sidebar .submenu ul li a.active::before,
.portal-ess-layout .sidebar .submenu ul li a:hover::before {
    border-color: #38d9c8;
    background: #38d9c8;
    box-shadow: 0 0 0 4px rgba(56, 217, 200, .08);
}

@media (min-width: 992px) {
    .portal-ess-layout .page-wrapper {
        margin-left: 252px !important;
    }

    .portal-ess-layout .header {
        left: 252px !important;
    }

    .portal-dir-rtl.portal-ess-layout .page-wrapper {
        margin: 0 252px 0 0 !important;
    }

    .portal-dir-rtl.portal-ess-layout .header {
        right: 252px !important;
        left: 0 !important;
    }
}

.portal-dir-rtl.portal-ess-layout .sidebar-profile-info {
    text-align: right !important;
}

.portal-dir-rtl.portal-ess-layout .sidebar-profile-actions {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.portal-dir-rtl.portal-ess-layout .sidebar .submenu ul {
    margin: 4px 30px 10px 0 !important;
    padding: 2px 14px 2px 0 !important;
}

.portal-dir-rtl.portal-ess-layout .sidebar .submenu ul::before {
    right: 0;
    left: auto;
}

.portal-dir-rtl.portal-ess-layout .sidebar .submenu ul li a::before {
    margin-right: 0;
    margin-left: 8px;
}

/* Dashboard stabilization: keep the ESS surface clean and prevent floating UI from covering cards. */
.portal-ess-layout .content {
    position: relative;
    z-index: 1;
}

.portal-ess-layout .ess-dashboard-heading {
    max-width: 1560px;
}

.portal-ess-layout .ess-dashboard-hero {
    align-items: stretch;
}

.portal-ess-layout .ess-dashboard-hero > [class*="col-"] {
    display: flex;
    min-width: 0;
}

.portal-ess-layout .ess-dashboard-hero .ess-card {
    width: 100%;
}

.portal-ess-layout .ess-profile-card,
.portal-ess-layout .ess-my-requests-card,
.portal-ess-layout .ess-leave-orb-card {
    min-height: 360px;
}

.portal-ess-layout .ess-news-card,
.portal-ess-layout .ess-quick-services-card,
.portal-ess-layout .ess-team-card,
.portal-ess-layout .ess-holidays-card {
    width: 100%;
}

.portal-ess-layout .ess-card {
    overflow: hidden;
}

.portal-ess-layout .employee-ai-widget {
    right: 22px !important;
    bottom: 22px !important;
    z-index: 1025 !important;
}

.portal-dir-rtl.portal-ess-layout .employee-ai-widget {
    right: 22px !important;
    left: auto !important;
}

.portal-ess-layout .employee-ai-toggle {
    width: 58px !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    box-shadow: 0 18px 44px rgba(255, 105, 77, .24), 0 16px 50px rgba(0, 0, 0, .36) !important;
}

.portal-ess-layout .employee-ai-toggle-head {
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

.portal-ess-layout .employee-ai-toggle-icon {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
}

.portal-ess-layout .employee-ai-toggle-head span:not(.employee-ai-toggle-icon),
.portal-ess-layout .employee-ai-wave,
.portal-ess-layout .employee-ai-toggle-foot {
    display: none !important;
}

.portal-ess-layout .employee-ai-panel {
    bottom: 74px !important;
}

/* AI assistant final placement: keep the panel anchored beside the toggle in RTL/LTR. */
.portal-ess-layout .employee-ai-widget {
    position: fixed !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

.portal-ess-layout .employee-ai-panel {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    bottom: 74px !important;
    width: min(380px, calc(100vw - 44px)) !important;
    transform: translateY(10px) scale(.96);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .2s ease, opacity .18s ease, visibility .18s ease;
}

.portal-dir-rtl.portal-ess-layout .employee-ai-panel {
    right: 0 !important;
    left: auto !important;
    transform-origin: bottom right;
}

.portal-ess-layout .employee-ai-widget.is-open .employee-ai-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.portal-ess-layout .employee-ai-panel-card {
    width: 100% !important;
    max-height: min(620px, calc(100vh - 118px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48) !important;
}

.portal-ess-layout .employee-ai-panel-header {
    flex: 0 0 auto;
    padding: 14px 14px 12px !important;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.portal-ess-layout .employee-ai-shell {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.portal-ess-layout .employee-ai-messages {
    max-height: min(330px, calc(100vh - 330px));
    overflow-y: auto;
    padding: 14px !important;
}

.portal-ess-layout .employee-ai-prompts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    padding: 0 14px 12px !important;
}

.portal-ess-layout .employee-ai-prompt {
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    text-align: center;
    white-space: normal;
}

.portal-ess-layout .employee-ai-form {
    margin: 0 14px 14px !important;
    min-height: 48px;
}

.portal-ess-layout .employee-ai-bubble {
    max-width: 290px;
}

@media (min-width: 1400px) {
    .portal-ess-layout .ess-dashboard-hero > .col-xxl-3 {
        flex: 0 0 24%;
        max-width: 24%;
    }

    .portal-ess-layout .ess-dashboard-hero > .col-xxl-5 {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .portal-ess-layout .ess-dashboard-hero > .col-xxl-4 {
        flex: 0 0 36%;
        max-width: 36%;
    }
}

@media (max-width: 767.98px) {
    .portal-ess-layout .ess-profile-card,
    .portal-ess-layout .ess-my-requests-card,
    .portal-ess-layout .ess-leave-orb-card {
        min-height: auto;
    }

    .portal-ess-layout .employee-ai-widget {
        right: 14px !important;
        left: auto !important;
        bottom: 14px !important;
    }

    .portal-dir-rtl.portal-ess-layout .employee-ai-widget {
        right: 14px !important;
        left: auto !important;
    }

    .portal-ess-layout .employee-ai-panel {
        width: calc(100vw - 28px) !important;
        bottom: 72px !important;
    }

    .portal-ess-layout .employee-ai-messages {
        max-height: min(320px, calc(100vh - 300px));
    }

    .portal-ess-layout .employee-ai-prompts {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Menu and weather refresh: image-inspired sidebar with dark/light modes. */
.portal-ess-layout {
    --portal-sidebar-width: 304px;
    --portal-menu-bg: #050607;
    --portal-menu-panel: #101216;
    --portal-menu-panel-2: #171a20;
    --portal-menu-text: rgba(255, 255, 255, .9);
    --portal-menu-muted: rgba(255, 255, 255, .54);
    --portal-menu-line: rgba(255, 255, 255, .08);
    --portal-menu-accent: #6f78ff;
    --portal-menu-accent-2: #ff7a3d;
}

.portal-ess-layout.portal-menu-light {
    --portal-menu-bg: #f5f7fb;
    --portal-menu-panel: #ffffff;
    --portal-menu-panel-2: #eef2f7;
    --portal-menu-text: #101828;
    --portal-menu-muted: rgba(16, 24, 40, .58);
    --portal-menu-line: rgba(16, 24, 40, .1);
    --portal-menu-accent: #5d6bff;
    --portal-menu-accent-2: #f26522;
}

.portal-ess-layout.portal-menu-light {
    background:
        radial-gradient(circle at 84% 8%, rgba(93, 107, 255, .12), transparent 30%),
        #f4f7fb !important;
}

.portal-ess-layout.portal-menu-light .page-wrapper,
.portal-ess-layout.portal-menu-light .content {
    background: transparent !important;
}

.portal-ess-layout .sidebar {
    width: var(--portal-sidebar-width) !important;
    padding: 14px 12px 18px !important;
    border: 0 !important;
    background: var(--portal-menu-bg) !important;
    box-shadow: 22px 0 64px rgba(0, 0, 0, .38) !important;
}

.portal-dir-rtl.portal-ess-layout .sidebar {
    box-shadow: -22px 0 64px rgba(0, 0, 0, .38) !important;
}

.portal-ess-layout .sidebar-logo {
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

.portal-ess-layout .sidebar-logo a {
    display: none !important;
}

.portal-ess-layout .sidebar-logo .dark-logo {
    display: inline-flex !important;
}

.portal-ess-layout.portal-menu-light .sidebar-logo .dark-logo {
    display: none !important;
}

.portal-ess-layout.portal-menu-light .sidebar-logo .logo-normal {
    display: inline-flex !important;
}

.portal-ess-layout .sidebar-logo img {
    max-width: 150px !important;
    max-height: 34px !important;
    object-fit: contain !important;
}

.portal-ess-layout .sidebar-header {
    display: block !important;
    padding: 0 !important;
}

.portal-ess-layout .sidebar-profile {
    min-height: 54px !important;
    margin: 0 0 14px !important;
    padding: 0 2px !important;
}

.portal-ess-layout .sidebar-profile .avatar {
    width: 42px !important;
    height: 42px !important;
    border: 2px solid color-mix(in oklab, var(--portal-menu-accent) 66%, transparent) !important;
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--portal-menu-accent) 14%, transparent) !important;
}

.portal-ess-layout .sidebar-profile-info h6 {
    max-width: 116px !important;
    color: var(--portal-menu-text) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.portal-ess-layout .sidebar-greeting {
    color: var(--portal-menu-muted) !important;
    font-size: 10px !important;
}

.portal-ess-layout .sidebar-profile-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.portal-ess-layout .sidebar-round-action {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid var(--portal-menu-line) !important;
    border-radius: 10px !important;
    background: color-mix(in oklab, var(--portal-menu-panel-2) 82%, transparent) !important;
    color: var(--portal-menu-text) !important;
}

.portal-ess-layout button.sidebar-round-action {
    appearance: none;
    cursor: pointer;
}

.portal-ess-layout .sidebar-company-brand {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 10px;
    border: 1px solid var(--portal-menu-line);
    border-radius: 16px;
    background: linear-gradient(145deg, color-mix(in oklab, var(--portal-menu-panel) 86%, transparent), color-mix(in oklab, var(--portal-menu-panel-2) 94%, transparent));
    color: var(--portal-menu-text);
}

.portal-ess-layout .sidebar-company-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 12px;
    background: #fff;
}

.portal-ess-layout .sidebar-company-mark img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.portal-ess-layout .sidebar-company-brand strong,
.portal-ess-layout .sidebar-company-brand small {
    display: block;
    line-height: 1.2;
}

.portal-ess-layout .sidebar-company-brand strong {
    color: var(--portal-menu-text);
    font-size: 13px;
    font-weight: 950;
}

.portal-ess-layout .sidebar-company-brand small {
    margin-top: 2px;
    color: var(--portal-menu-muted);
    font-size: 10px;
    font-weight: 700;
}

.portal-ess-layout .sidebar-ai-card {
    margin: 0 0 18px !important;
    border-color: var(--portal-menu-line) !important;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 105, 77, .24), transparent 28%),
        radial-gradient(circle at 82% 78%, rgba(91, 117, 255, .22), transparent 34%),
        linear-gradient(145deg, var(--portal-menu-panel), var(--portal-menu-bg)) !important;
}

.portal-ess-layout.portal-menu-light .sidebar-ai-card {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 105, 77, .16), transparent 28%),
        radial-gradient(circle at 82% 78%, rgba(91, 117, 255, .16), transparent 34%),
        linear-gradient(145deg, #fff, #eef2f7) !important;
}

.portal-ess-layout .sidebar-ai-card strong {
    color: var(--portal-menu-text) !important;
}

.portal-ess-layout .sidebar-ai-card small,
.portal-ess-layout .sidebar-ai-card p {
    color: var(--portal-menu-muted) !important;
}

.portal-ess-layout .sidebar-inner {
    height: calc(100vh - 318px) !important;
    padding-top: 0 !important;
}

.portal-ess-layout .sidebar .sidebar-menu > ul {
    margin: 0 !important;
}

.portal-ess-layout .sidebar .sidebar-menu > ul > li > ul {
    margin: 0 !important;
    padding: 0 !important;
}

.portal-ess-layout .sidebar .menu-title {
    margin: 18px 0 8px !important;
    padding: 0 10px !important;
}

.portal-ess-layout .sidebar .menu-title span,
.portal-ess-layout .sidebar .menu-title span::after {
    color: var(--portal-menu-muted) !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a {
    min-height: 42px !important;
    margin: 3px 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: var(--portal-menu-text) !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a i {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: color-mix(in oklab, var(--portal-menu-panel-2) 76%, transparent) !important;
    color: color-mix(in oklab, var(--portal-menu-accent) 78%, var(--portal-menu-text)) !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a:hover,
.portal-ess-layout .sidebar .sidebar-menu ul li.active > a,
.portal-ess-layout .sidebar .sidebar-menu ul li.submenu > a.subdrop,
.portal-ess-layout .sidebar .sidebar-menu ul li a.active {
    background: var(--portal-menu-accent) !important;
    color: #fff !important;
    box-shadow: 0 16px 28px color-mix(in oklab, var(--portal-menu-accent) 28%, transparent) !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a:hover i,
.portal-ess-layout .sidebar .sidebar-menu ul li.active > a i,
.portal-ess-layout .sidebar .sidebar-menu ul li.submenu > a.subdrop i,
.portal-ess-layout .sidebar .sidebar-menu ul li a.active i {
    background: rgba(255, 255, 255, .16) !important;
    color: #fff !important;
}

.portal-ess-layout .sidebar .submenu ul {
    margin: 6px 0 12px 38px !important;
    padding: 4px 0 4px 14px !important;
    border-inline-start: 1px solid var(--portal-menu-line) !important;
}

.portal-dir-rtl.portal-ess-layout .sidebar .submenu ul {
    margin: 6px 38px 12px 0 !important;
    padding: 4px 14px 4px 0 !important;
}

.portal-ess-layout .sidebar .submenu ul li a {
    min-height: 30px !important;
    color: var(--portal-menu-muted) !important;
    font-size: 11px !important;
}

.portal-ess-layout .sidebar .submenu ul li a:hover,
.portal-ess-layout .sidebar .submenu ul li a.active {
    background: transparent !important;
    color: var(--portal-menu-text) !important;
    box-shadow: none !important;
}

@media (min-width: 992px) {
    .portal-ess-layout .page-wrapper {
        margin-left: var(--portal-sidebar-width) !important;
    }

    .portal-ess-layout .header {
        left: var(--portal-sidebar-width) !important;
    }

    .portal-dir-rtl.portal-ess-layout .page-wrapper {
        margin: 0 var(--portal-sidebar-width) 0 0 !important;
    }

    .portal-dir-rtl.portal-ess-layout .header {
        right: var(--portal-sidebar-width) !important;
        left: 0 !important;
    }
}

.portal-ess-layout .ess-weather-card {
    min-height: 136px;
    display: grid;
    grid-template-columns: minmax(240px, 1.15fr) minmax(180px, .7fr) minmax(220px, .9fr);
    align-items: center;
    gap: 22px;
    padding: 22px 24px;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 125, 66, .18), transparent 28%),
        radial-gradient(circle at 86% 46%, rgba(56, 217, 200, .16), transparent 34%),
        linear-gradient(135deg, rgba(24, 28, 35, .98), rgba(13, 16, 21, .98)) !important;
}

.portal-ess-layout .ess-weather-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.portal-ess-layout .ess-weather-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff7a3d, #ffd36d);
    color: #101216;
    font-size: 34px;
    box-shadow: 0 18px 44px rgba(255, 122, 61, .24);
}

.portal-ess-layout .ess-weather-place,
.portal-ess-layout .ess-weather-meta span,
.portal-ess-layout .ess-weather-status small {
    display: block;
    color: rgba(148, 163, 184, .9);
    font-size: 12px;
    font-weight: 750;
}

.portal-ess-layout .ess-weather-temp {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-size: 56px;
    line-height: .95;
    font-weight: 900;
}

.portal-ess-layout .ess-weather-temp sup {
    top: -1em;
    margin-inline-start: 4px;
    color: rgba(255, 255, 255, .74);
    font-size: 18px;
}

.portal-ess-layout .ess-weather-meta,
.portal-ess-layout .ess-weather-status {
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    background: rgba(255, 255, 255, .045);
}

.portal-ess-layout .ess-weather-meta strong,
.portal-ess-layout .ess-weather-status span {
    display: block;
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
}

.portal-ess-layout .ess-weather-meta small {
    margin-top: 6px;
    color: rgba(255, 255, 255, .56);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .portal-ess-layout .ess-weather-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .portal-ess-layout {
        --portal-sidebar-width: 284px;
    }

    .portal-ess-layout .ess-weather-card {
        padding: 18px;
    }

    .portal-ess-layout .ess-weather-temp {
        font-size: 44px;
    }
}

/* Clean sidebar request: logo first, menu directly underneath, no employee/AI blocks. */
.portal-ess-layout .sidebar {
    padding: 18px 14px !important;
}

.portal-ess-layout .sidebar-logo {
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 18px !important;
    padding: 10px 10px 14px !important;
    border-bottom: 1px solid var(--portal-menu-line) !important;
}

.portal-ess-layout .sidebar-logo a.logo-normal,
.portal-ess-layout .sidebar-logo a.logo-small,
.portal-ess-layout .sidebar-logo a.dark-logo {
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.portal-ess-layout .sidebar-logo .dark-logo {
    display: inline-flex !important;
}

.portal-ess-layout .sidebar-logo .logo-normal,
.portal-ess-layout .sidebar-logo .logo-small {
    display: none !important;
}

.portal-ess-layout.portal-menu-light .sidebar-logo .logo-normal {
    display: inline-flex !important;
}

.portal-ess-layout.portal-menu-light .sidebar-logo .dark-logo,
.portal-ess-layout.portal-menu-light .sidebar-logo .logo-small {
    display: none !important;
}

.portal-ess-layout .sidebar-logo img {
    width: auto !important;
    max-width: 172px !important;
    max-height: 42px !important;
}

.portal-ess-layout .sidebar-logo .sidebar-theme-toggle {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 12px !important;
}

.portal-ess-layout .sidebar-header,
.portal-ess-layout .modern-profile,
.portal-ess-layout .sidebar-company-brand,
.portal-ess-layout .sidebar-ai-card,
.portal-ess-layout .sidebar-profile,
.portal-ess-layout .sidebar-top-actions,
.portal-ess-layout .sidebar-header .input-group-flat,
.portal-ess-layout .sidebar-header .menu-item {
    display: none !important;
}

.portal-ess-layout .sidebar-inner {
    height: calc(100vh - 108px) !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

.portal-ess-layout .sidebar .sidebar-menu {
    padding: 0 2px 10px !important;
}

.portal-ess-layout .sidebar .menu-title:first-child {
    margin-top: 0 !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a {
    min-height: 44px !important;
    border-radius: 13px !important;
}

/* Employee profile card: focused visual treatment matching the requested reference. */
.portal-ess-layout .ess-profile-card {
    min-height: 360px !important;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, .28) !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 50% 24%, rgba(246, 222, 132, .28), transparent 24%),
        radial-gradient(circle at 30% 56%, rgba(236, 45, 57, .2), transparent 26%),
        radial-gradient(circle at 88% 84%, rgba(88, 230, 211, .16), transparent 30%),
        linear-gradient(150deg, rgba(43, 55, 46, .94), rgba(18, 17, 25, .98) 58%, rgba(10, 14, 17, .98)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 62px rgba(0, 0, 0, .34);
}

.portal-ess-layout .ess-profile-card.is-loyalty-enabled {
    cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.portal-ess-layout .ess-profile-card.is-loyalty-enabled:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 143, 61, .48) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 28px 72px rgba(0, 0, 0, .38), 0 0 0 1px rgba(56, 217, 200, .08);
}

.portal-ess-layout .ess-profile-card.is-loyalty-enabled:focus-visible {
    outline: 2px solid rgba(56, 217, 200, .72);
    outline-offset: 4px;
}

.portal-ess-layout .ess-profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 40%),
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, .08), transparent 20%);
    pointer-events: none;
}

.portal-ess-layout .ess-profile-hero {
    position: relative;
    z-index: 1;
    min-height: 214px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 30px;
}

.portal-ess-layout .ess-profile-avatar {
    width: 164px;
    height: 164px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, .08),
        0 0 0 16px rgba(255, 147, 83, .05),
        0 22px 54px rgba(0, 0, 0, .36);
}

.portal-ess-layout .ess-profile-avatar::after {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 129, 64, .24), transparent 64%);
    z-index: -1;
}

.portal-ess-layout .ess-profile-avatar img {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, .22);
    border-radius: inherit;
    object-fit: cover;
}

.portal-ess-layout .ess-profile-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    gap: 16px;
    padding: 0 24px 24px;
}

.portal-ess-layout .ess-profile-copy {
    min-width: 0;
}

.portal-ess-layout .ess-profile-copy h5 {
    margin: 0 0 8px;
    color: #fff !important;
    font-size: 20px;
    line-height: 1.18;
    font-weight: 950;
}

.portal-ess-layout .ess-profile-copy p {
    margin: 0;
    color: rgba(230, 236, 244, .68) !important;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 650;
}

.portal-ess-layout .ess-profile-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    max-width: 190px;
}

.portal-ess-layout .ess-profile-details div {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: rgba(10, 14, 18, .24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.portal-ess-layout .ess-profile-details span {
    display: block;
    margin-bottom: 5px;
    color: rgba(230, 236, 244, .52);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.portal-ess-layout .ess-profile-details strong {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, .94);
    font-size: 11px;
    line-height: 1.28;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-ess-layout .ess-profile-id-row span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.portal-ess-layout .ess-loyalty-trigger {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border: 1px solid rgba(255, 122, 47, .46);
    border-radius: 999px;
    color: #fff;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .28), transparent 34%),
        linear-gradient(135deg, #ff7a2f, #f05123);
    box-shadow: 0 10px 26px rgba(255, 122, 47, .26);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.portal-ess-layout .ess-loyalty-trigger:hover {
    transform: translateY(-1px) scale(1.04);
    filter: saturate(1.08);
    box-shadow: 0 14px 34px rgba(255, 122, 47, .34);
}

.portal-ess-layout .ess-loyalty-trigger i {
    font-size: 15px;
}

body.ess-loyalty-open {
    overflow: hidden;
}

.ess-loyalty-modal {
    position: fixed;
    inset: 0;
    z-index: 100200;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.ess-loyalty-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ess-loyalty-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 122, 47, .28), transparent 34%),
        rgba(5, 8, 12, .74);
    backdrop-filter: blur(10px);
}

html[data-theme="light"] .ess-loyalty-backdrop {
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 122, 47, .24), transparent 34%),
        rgba(248, 250, 252, .72);
}

.ess-loyalty-confetti {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 6;
}

.ess-loyalty-dialog {
    position: relative;
    z-index: 3;
    width: min(440px, 100%);
    transform: translateY(18px) scale(.96);
    opacity: 0;
    transition: transform .26s cubic-bezier(.2, .9, .2, 1), opacity .22s ease;
}

.ess-loyalty-modal.is-open .ess-loyalty-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ess-loyalty-close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 4;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #1f2937;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
}

.ess-loyalty-visual {
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(56, 217, 200, .18), transparent 31%),
        radial-gradient(circle at 50% 0%, rgba(255, 122, 47, .28), transparent 42%),
        linear-gradient(180deg, rgba(7, 9, 13, .74), rgba(7, 9, 13, .96));
}

.ess-loyalty-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .38;
    filter: blur(10px) saturate(1.05);
    transform: scale(1.08);
    background: var(--loyalty-avatar) center 24% / cover no-repeat;
}

.ess-loyalty-avatar {
    position: relative;
    z-index: 2;
    width: 178px;
    height: 178px;
    display: inline-flex;
    border-radius: 999px;
    border: 6px solid rgba(255, 255, 255, .78);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), transparent),
        var(--loyalty-avatar) center center / cover no-repeat;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .38),
        0 0 0 12px rgba(255, 122, 47, .13),
        0 0 0 22px rgba(56, 217, 200, .055);
    animation: ess-loyalty-pop .56s cubic-bezier(.2, .9, .2, 1) both;
}

.ess-loyalty-avatar::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .28);
    pointer-events: none;
}

.ess-loyalty-burst {
    display: none !important;
}

.ess-loyalty-burst--left {
    inset-inline-start: 42px;
}

.ess-loyalty-burst--right {
    inset-inline-end: 42px;
}

.ess-loyalty-card {
    margin-top: -18px;
    padding: 24px 26px 26px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .64);
    border-radius: 28px;
    text-align: center;
    color: #1f2937;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    backdrop-filter: blur(16px);
}

html[data-theme="dark"] .ess-loyalty-card {
    border-color: rgba(255, 255, 255, .12);
    color: #f8fafc;
    background: rgba(20, 24, 31, .9);
}

.ess-loyalty-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #ff7a2f;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ess-loyalty-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.14;
    font-weight: 950;
}

.ess-loyalty-card p {
    margin: 0 auto;
    max-width: 390px;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 750;
}

html[data-theme="dark"] .ess-loyalty-card p {
    color: rgba(226, 232, 240, .7);
}

.ess-loyalty-duration {
    width: fit-content;
    max-width: 100%;
    margin: 18px auto 0;
    padding: 13px 22px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #ff7a2f, #f05123);
    box-shadow: 0 18px 42px rgba(242, 101, 34, .28);
}

.ess-loyalty-duration strong,
.ess-loyalty-duration small {
    display: block;
}

.ess-loyalty-duration strong {
    font-size: 28px;
    line-height: 1.05;
    font-weight: 950;
}

.ess-loyalty-duration small {
    margin-top: 6px;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 850;
}

.ess-loyalty-note {
    color: #1f2937 !important;
}

html[data-theme="dark"] .ess-loyalty-note {
    color: #f8fafc !important;
}

.ess-loyalty-cta {
    width: 100%;
    min-height: 52px;
    margin-top: 20px;
    border: 0;
    border-radius: 20px;
    color: #fff;
    background: #1f2937;
    font-size: 16px;
    font-weight: 950;
}

html[data-theme="dark"] .ess-loyalty-cta {
    background: #ff7a2f;
}

@keyframes ess-loyalty-pop {
    0% {
        transform: translateY(18px) scale(.72);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes ess-loyalty-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1399.98px) {
    .portal-ess-layout .ess-profile-avatar {
        width: 150px;
        height: 150px;
    }

    .portal-ess-layout .ess-profile-copy h5 {
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .portal-ess-layout .ess-profile-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .ess-loyalty-modal {
        padding: 14px;
    }

    .ess-loyalty-visual {
        min-height: 230px;
    }

    .ess-loyalty-avatar {
        width: 152px;
        height: 152px;
        border-width: 5px;
    }

    .ess-loyalty-card {
        padding: 22px 18px 20px;
    }

    .ess-loyalty-card h3 {
        font-size: 24px;
    }

    .ess-loyalty-duration strong {
        font-size: 25px;
    }

    .ess-loyalty-burst {
        width: 72px;
        height: 72px;
    }
}

/* Sidebar final polish: no menu titles, orange interaction, bottom theme switcher. */
.portal-ess-layout {
    --portal-menu-accent: #ff7a2f;
    --portal-menu-accent-2: #ffb15f;
}

.portal-ess-layout.portal-menu-light {
    --portal-menu-accent: #f26522;
    --portal-menu-accent-2: #ffad5b;
}

.portal-ess-layout .sidebar {
    display: flex !important;
    flex-direction: column !important;
}

.portal-ess-layout .sidebar-logo {
    justify-content: center !important;
    margin-top: -8px !important;
    margin-bottom: 22px !important;
    padding-top: 4px !important;
    padding-bottom: 16px !important;
}

.portal-ess-layout .sidebar-logo a.logo-normal,
.portal-ess-layout .sidebar-logo a.dark-logo {
    justify-content: center !important;
    flex: 0 1 auto !important;
}

.portal-ess-layout .sidebar-logo .sidebar-theme-toggle {
    display: none !important;
}

.portal-ess-layout .sidebar .menu-title,
.portal-ess-layout .sidebar .menu-title span,
.portal-ess-layout .sidebar .menu-title span::after {
    display: none !important;
}

.portal-ess-layout .sidebar-inner {
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    padding: 2px 0 14px !important;
}

.portal-ess-layout .sidebar .sidebar-menu > ul > li,
.portal-ess-layout .sidebar .sidebar-menu > ul > li > ul {
    margin: 0 !important;
    padding: 0 !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a {
    color: var(--portal-menu-text) !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a i {
    color: #ff9a4f !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a:hover,
.portal-ess-layout .sidebar .sidebar-menu ul li.active > a,
.portal-ess-layout .sidebar .sidebar-menu ul li.submenu > a.subdrop,
.portal-ess-layout .sidebar .sidebar-menu ul li a.active {
    background: linear-gradient(135deg, var(--portal-menu-accent), var(--portal-menu-accent-2)) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(255, 122, 47, .26) !important;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a:hover i,
.portal-ess-layout .sidebar .sidebar-menu ul li.active > a i,
.portal-ess-layout .sidebar .sidebar-menu ul li.submenu > a.subdrop i,
.portal-ess-layout .sidebar .sidebar-menu ul li a.active i {
    background: rgba(255, 255, 255, .18) !important;
    color: #fff !important;
}

.portal-ess-layout .sidebar .menu-arrow {
    transition: transform .18s ease, opacity .18s ease !important;
}

.portal-ess-layout .sidebar .submenu > a.subdrop .menu-arrow {
    transform: rotate(180deg) !important;
}

.portal-ess-layout .sidebar .submenu ul {
    display: none;
    margin-top: 7px !important;
    margin-bottom: 12px !important;
    border-inline-start-color: rgba(255, 122, 47, .24) !important;
}

.portal-ess-layout .sidebar .submenu ul li a:hover,
.portal-ess-layout .sidebar .submenu ul li a.active {
    color: #ffb15f !important;
}

.portal-ess-layout.portal-menu-light .sidebar .submenu ul li a:hover,
.portal-ess-layout.portal-menu-light .sidebar .submenu ul li a.active {
    color: #e85f17 !important;
}

.portal-ess-layout .sidebar-theme-dock {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    padding: 12px 6px 0;
    border-top: 1px solid var(--portal-menu-line);
}

.portal-ess-layout .sidebar-theme-switch {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--portal-menu-line);
    border-radius: 999px;
    background:
        radial-gradient(circle at 36% 26%, rgba(255, 255, 255, .16), transparent 32%),
        color-mix(in oklab, var(--portal-menu-panel-2) 86%, transparent);
    color: var(--portal-menu-text);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 34px rgba(0, 0, 0, .22);
}

.portal-ess-layout .sidebar-theme-switch span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--portal-menu-accent), var(--portal-menu-accent-2));
    color: #fff;
    font-size: 18px;
}

.portal-ess-layout .sidebar-theme-switch strong {
    display: none !important;
}

.portal-ess-layout.portal-menu-light .sidebar-theme-switch {
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .08);
}

/* Equalize Company News and Quick Services cards. */
.portal-ess-layout .ess-news-services-row {
    align-items: stretch;
}

.portal-ess-layout .ess-news-services-row > [class*="col-"] {
    display: flex;
    min-width: 0;
}

.portal-ess-layout .ess-news-services-row .ess-card {
    width: 100%;
    min-height: 520px;
}

.portal-ess-layout .ess-news-services-row .ess-news-card {
    height: 100%;
}

@media (max-width: 1199.98px) {
    .portal-ess-layout .ess-news-services-row .ess-card {
        min-height: auto;
    }
}

/* Transparent top header polish. */
.portal-ess-layout .header {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.portal-ess-layout .main-header,
.portal-ess-layout .header-user,
.portal-ess-layout .nav.user-menu.nav-list {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.portal-ess-layout .nav.user-menu.nav-list {
    min-height: 72px !important;
    padding: 12px 22px !important;
}

.portal-ess-layout #header-search {
    min-width: 0;
}

.portal-ess-layout #header-search .input-group-flat {
    width: min(520px, 42vw) !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 16px !important;
    background: rgba(13, 17, 23, .34) !important;
    color: rgba(245, 247, 250, .92) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    backdrop-filter: blur(14px);
}

.portal-ess-layout #header-search .input-group-flat .form-control,
.portal-ess-layout #header-search .input-group-flat .input-group-text {
    border: 0 !important;
    background: transparent !important;
    color: rgba(245, 247, 250, .9) !important;
}

.portal-ess-layout #header-search .form-control::placeholder {
    color: rgba(203, 213, 225, .56) !important;
}

.portal-ess-layout #header-search kbd {
    border: 1px solid rgba(148, 163, 184, .2);
    background: rgba(255, 255, 255, .07);
    color: rgba(226, 232, 240, .8);
}

.portal-ess-layout .header .ess-btn,
.portal-ess-layout .header .btn-menubar,
.portal-ess-layout .header .portal-language-switcher > a,
.portal-ess-layout .header .profile-dropdown > a {
    border: 1px solid rgba(148, 163, 184, .18) !important;
    background: rgba(13, 17, 23, .32) !important;
    color: rgba(245, 247, 250, .9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    backdrop-filter: blur(14px);
}

.portal-ess-layout .header .ess-btn:hover,
.portal-ess-layout .header .btn-menubar:hover,
.portal-ess-layout .header .portal-language-switcher > a:hover,
.portal-ess-layout .header .profile-dropdown > a:hover {
    border-color: rgba(255, 122, 47, .42) !important;
    background: rgba(255, 122, 47, .14) !important;
    color: #fff !important;
}

.portal-ess-layout .header .ess-btn i,
.portal-ess-layout .header .btn-menubar i,
.portal-ess-layout .header .portal-language-switcher i {
    color: currentColor !important;
}

.portal-ess-layout .header .profile-dropdown .avatar {
    border: 2px solid rgba(255, 122, 47, .64);
    box-shadow: 0 0 0 4px rgba(255, 122, 47, .12);
}

/* Header profile trigger: keep it clean, no boxed shadow around the avatar. */
.portal-ess-layout .header .profile-dropdown > a.dropdown-toggle {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    outline: 0 !important;
}

.portal-ess-layout .header .profile-dropdown > a.dropdown-toggle::after {
    display: none !important;
}

.portal-ess-layout .header .profile-dropdown > a.dropdown-toggle:hover,
.portal-ess-layout .header .profile-dropdown > a.dropdown-toggle:focus,
.portal-ess-layout .header .profile-dropdown.show > a.dropdown-toggle {
    border: 0 !important;
    background: radial-gradient(circle, rgba(255, 122, 47, .18), transparent 68%) !important;
    box-shadow: none !important;
}

.portal-ess-layout .header .profile-dropdown > a.dropdown-toggle .avatar {
    width: 38px !important;
    height: 38px !important;
    overflow: visible !important;
    border: 2px solid rgba(255, 255, 255, .72) !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow:
        0 0 0 2px rgba(255, 122, 47, .36),
        0 8px 18px rgba(0, 0, 0, .16) !important;
    transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}

.portal-ess-layout .header .profile-dropdown > a.dropdown-toggle:hover .avatar,
.portal-ess-layout .header .profile-dropdown.show > a.dropdown-toggle .avatar {
    border-color: rgba(255, 255, 255, .92) !important;
    box-shadow:
        0 0 0 3px rgba(255, 122, 47, .42),
        0 10px 22px rgba(255, 122, 47, .18) !important;
    transform: translateY(-1px);
}

.portal-ess-layout .header .profile-dropdown > a.dropdown-toggle .avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: inherit !important;
    object-fit: cover !important;
}

.portal-ess-layout .ess-header-weather {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 999px;
    background: rgba(13, 17, 23, .26);
    color: rgba(245, 247, 250, .9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    backdrop-filter: blur(14px);
    white-space: nowrap;
}

.portal-ess-layout .ess-header-weather__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 122, 47, .15);
    color: #ff9a4f;
    font-size: 16px;
}

.portal-ess-layout .ess-header-weather__date,
.portal-ess-layout .ess-header-weather__temp {
    color: rgba(203, 213, 225, .72);
    font-size: 12px;
    font-weight: 750;
}

.portal-ess-layout .ess-header-weather__time {
    color: rgba(245, 247, 250, .96);
    font-size: 12px;
    font-weight: 900;
}

.portal-ess-layout.portal-menu-light .ess-header-weather {
    border-color: rgba(15, 23, 42, .1);
    background: rgba(255, 255, 255, .58);
    color: #172033;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.portal-ess-layout.portal-menu-light .ess-header-weather__date,
.portal-ess-layout.portal-menu-light .ess-header-weather__temp {
    color: rgba(23, 32, 51, .62);
}

.portal-ess-layout.portal-menu-light .ess-header-weather__time {
    color: #172033;
}

@media (max-width: 1199.98px) {
    .portal-ess-layout .ess-header-weather__date {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .portal-ess-layout .ess-header-weather {
        min-height: 38px;
        padding: 0 9px;
        gap: 7px;
    }

    .portal-ess-layout .ess-header-weather__time {
        display: none;
    }
}

.portal-ess-layout.portal-menu-light .header .profile-dropdown > a.dropdown-toggle:hover,
.portal-ess-layout.portal-menu-light .header .profile-dropdown.show > a.dropdown-toggle {
    background: radial-gradient(circle, rgba(255, 122, 47, .14), transparent 68%) !important;
}

.portal-ess-layout.portal-menu-light .header .profile-dropdown > a.dropdown-toggle .avatar {
    border-color: rgba(255, 255, 255, .94) !important;
    box-shadow:
        0 0 0 2px rgba(242, 101, 34, .3),
        0 8px 18px rgba(15, 23, 42, .1) !important;
}

/* Keep profile photos perfectly circular everywhere in the portal. */
.portal-ess-layout .header .profile-dropdown > a.dropdown-toggle .avatar.avatar-md,
.portal-ess-layout .header .profile-dropdown .dropdown-menu .avatar,
.portal-ess-layout .ess-profile-avatar {
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 auto !important;
    border-radius: 50% !important;
}

.portal-ess-layout .header .profile-dropdown > a.dropdown-toggle .avatar.avatar-md {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.portal-ess-layout .header .profile-dropdown > a.dropdown-toggle .avatar.avatar-md img,
.portal-ess-layout .header .profile-dropdown .dropdown-menu .avatar img,
.portal-ess-layout .ess-profile-avatar img {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    clip-path: circle(50% at 50% 50%);
}

.portal-ess-layout .header .dropdown-menu,
.portal-ess-layout .header .notification-dropdown,
.portal-ess-layout .header .profile-dropdown .dropdown-menu {
    border: 1px solid rgba(148, 163, 184, .18) !important;
    background: rgba(14, 18, 24, .94) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .38) !important;
    backdrop-filter: blur(18px);
}

.portal-ess-layout .header .dropdown-menu,
.portal-ess-layout .header .dropdown-menu p,
.portal-ess-layout .header .dropdown-menu h4,
.portal-ess-layout .header .dropdown-menu h5 {
    color: rgba(245, 247, 250, .92) !important;
}

.portal-ess-layout .header .dropdown-menu .text-muted,
.portal-ess-layout .header .dropdown-menu .fs-12 {
    color: rgba(203, 213, 225, .64) !important;
}

.portal-ess-layout.portal-menu-light .header .ess-btn,
.portal-ess-layout.portal-menu-light .header .btn-menubar,
.portal-ess-layout.portal-menu-light .header .portal-language-switcher > a,
.portal-ess-layout.portal-menu-light .header .profile-dropdown > a,
.portal-ess-layout.portal-menu-light #header-search .input-group-flat {
    border-color: rgba(15, 23, 42, .1) !important;
    background: rgba(255, 255, 255, .58) !important;
    color: #172033 !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.portal-ess-layout.portal-menu-light #header-search .input-group-flat .form-control,
.portal-ess-layout.portal-menu-light #header-search .input-group-flat .input-group-text {
    color: #172033 !important;
}

.portal-ess-layout.portal-menu-light #header-search .form-control::placeholder {
    color: rgba(23, 32, 51, .48) !important;
}

.portal-ess-layout.portal-menu-light .header .dropdown-menu,
.portal-ess-layout.portal-menu-light .header .notification-dropdown,
.portal-ess-layout.portal-menu-light .header .profile-dropdown .dropdown-menu {
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .16) !important;
}

.portal-ess-layout.portal-menu-light .header .dropdown-menu,
.portal-ess-layout.portal-menu-light .header .dropdown-menu p,
.portal-ess-layout.portal-menu-light .header .dropdown-menu h4,
.portal-ess-layout.portal-menu-light .header .dropdown-menu h5 {
    color: #172033 !important;
}

/* Keep selected sidebar text readable in dark mode. */
[data-theme="dark"] .portal-ess-layout .sidebar .sidebar-menu li.active > a,
[data-theme="dark"] .portal-ess-layout .sidebar .sidebar-menu li.active > a span,
[data-theme="dark"] .portal-ess-layout .sidebar .sidebar-menu li.active > a.subdrop,
[data-theme="dark"] .portal-ess-layout .sidebar .sidebar-menu li.active > a.subdrop span,
[data-theme="dark"] .portal-ess-layout .sidebar .sidebar-menu li.submenu > a.subdrop,
[data-theme="dark"] .portal-ess-layout .sidebar .sidebar-menu li.submenu > a.subdrop span,
[data-theme="dark"] .sidebar .sidebar-menu > ul > li ul > li.active a.subdrop span {
    color: #ffffff !important;
}

[data-theme="dark"] .portal-ess-layout .sidebar .sidebar-menu li.active > a i,
[data-theme="dark"] .portal-ess-layout .sidebar .sidebar-menu li.submenu > a.subdrop i {
    color: #ffffff !important;
}

/* Sidebar menu hit-area and softer button treatment. */
.portal-ess-layout .sidebar .sidebar-menu,
.portal-ess-layout .sidebar .sidebar-menu ul,
.portal-ess-layout .sidebar .sidebar-menu li {
    width: 100% !important;
}

.portal-ess-layout .sidebar .sidebar-menu li {
    position: relative;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a,
.portal-ess-layout .sidebar .sidebar-menu .submenu > a {
    width: 100% !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 0 12px !important;
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: rgba(245, 247, 250, .82) !important;
    line-height: 1 !important;
    cursor: pointer !important;
    user-select: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a > i:first-child {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px !important;
    border-radius: 10px !important;
    background: rgba(255, 122, 47, .1) !important;
    color: #ff9a4f !important;
    pointer-events: none;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a span:not(.menu-arrow) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    pointer-events: none;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a .menu-arrow {
    margin-inline-start: auto !important;
    flex: 0 0 18px !important;
    pointer-events: none;
}

.portal-ess-layout .sidebar .sidebar-menu ul li a:hover,
.portal-ess-layout .sidebar .sidebar-menu ul li a.active,
.portal-ess-layout .sidebar .sidebar-menu ul li.active > a,
.portal-ess-layout .sidebar .sidebar-menu ul li.submenu > a.subdrop {
    border-color: rgba(255, 122, 47, .26) !important;
    background: linear-gradient(135deg, rgba(255, 122, 47, .2), rgba(255, 177, 95, .1)) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(255, 122, 47, .14) !important;
    transform: translateY(-1px);
}

.portal-ess-layout .sidebar .sidebar-menu ul li a:hover > i:first-child,
.portal-ess-layout .sidebar .sidebar-menu ul li a.active > i:first-child,
.portal-ess-layout .sidebar .sidebar-menu ul li.active > a > i:first-child,
.portal-ess-layout .sidebar .sidebar-menu ul li.submenu > a.subdrop > i:first-child {
    background: linear-gradient(135deg, #ff7a2f, #ffb15f) !important;
    color: #ffffff !important;
}

.portal-ess-layout .sidebar .submenu ul li a {
    min-height: 32px !important;
    padding-inline-start: 10px !important;
    color: rgba(226, 232, 240, .62) !important;
}

.portal-ess-layout .sidebar .submenu ul li a:hover,
.portal-ess-layout .sidebar .submenu ul li a.active {
    transform: none;
    border-color: transparent !important;
    background: rgba(255, 122, 47, .08) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Final sidebar interaction polish: full-row clickable, calm orange states. */
.portal-ess-layout .sidebar .slimScrollDiv,
.portal-ess-layout .sidebar .sidebar-inner,
.portal-ess-layout .sidebar #sidebar-menu,
.portal-ess-layout .sidebar #sidebar-menu > ul,
.portal-ess-layout .sidebar #sidebar-menu > ul > li,
.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul,
.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul {
    display: grid !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.portal-ess-layout .sidebar #sidebar-menu a {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    text-decoration: none !important;
}

.portal-ess-layout .sidebar #sidebar-menu a > i,
.portal-ess-layout .sidebar #sidebar-menu a > span,
.portal-ess-layout .sidebar #sidebar-menu a::before,
.portal-ess-layout .sidebar #sidebar-menu a::after {
    pointer-events: none !important;
}

.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a {
    min-height: 48px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(148, 163, 184, .08) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .018) !important;
    color: rgba(245, 247, 250, .78) !important;
}

.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a:hover {
    border-color: rgba(255, 122, 47, .25) !important;
    background: rgba(255, 122, 47, .11) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 28px rgba(255, 122, 47, .09) !important;
    transform: translateY(-1px);
}

.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li.active > a,
.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a.active,
.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li.submenu > a.subdrop {
    border-color: rgba(255, 122, 47, .36) !important;
    background: linear-gradient(135deg, rgba(255, 122, 47, .24), rgba(255, 180, 94, .12)) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 34px rgba(255, 122, 47, .14) !important;
}

.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a > i:first-child {
    border: 1px solid rgba(255, 122, 47, .16) !important;
    background: rgba(255, 122, 47, .1) !important;
}

.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li.active > a > i:first-child,
.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a.active > i:first-child,
.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li.submenu > a.subdrop > i:first-child,
.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a:hover > i:first-child {
    border-color: transparent !important;
    background: linear-gradient(135deg, #ff7a2f, #ffad59) !important;
    color: #ffffff !important;
}

.portal-ess-layout .sidebar .submenu > ul {
    display: none;
    gap: 4px !important;
    margin: 6px 0 6px 18px !important;
    padding: 6px 0 6px 13px !important;
    border-left: 1px solid rgba(255, 122, 47, .18) !important;
}

html[dir="rtl"] .portal-ess-layout .sidebar .submenu > ul {
    margin: 6px 18px 6px 0 !important;
    padding: 6px 13px 6px 0 !important;
    border-left: 0 !important;
    border-right: 1px solid rgba(255, 122, 47, .18) !important;
}

.portal-ess-layout .sidebar .submenu > ul > li > a {
    min-height: 34px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(226, 232, 240, .68) !important;
}

.portal-ess-layout .sidebar .submenu > ul > li > a:hover,
.portal-ess-layout .sidebar .submenu > ul > li.active > a,
.portal-ess-layout .sidebar .submenu > ul > li > a.active {
    background: rgba(255, 122, 47, .11) !important;
    color: #ffffff !important;
}

.portal-ess-layout.portal-menu-light .sidebar #sidebar-menu > ul > li > ul > li > a {
    border-color: rgba(15, 23, 42, .06) !important;
    background: rgba(15, 23, 42, .025) !important;
    color: rgba(22, 30, 45, .74) !important;
}

.portal-ess-layout.portal-menu-light .sidebar #sidebar-menu > ul > li > ul > li > a:hover,
.portal-ess-layout.portal-menu-light .sidebar #sidebar-menu > ul > li > ul > li.active > a,
.portal-ess-layout.portal-menu-light .sidebar #sidebar-menu > ul > li > ul > li > a.active,
.portal-ess-layout.portal-menu-light .sidebar #sidebar-menu > ul > li > ul > li.submenu > a.subdrop {
    border-color: rgba(255, 122, 47, .32) !important;
    background: linear-gradient(135deg, rgba(255, 122, 47, .16), rgba(255, 180, 94, .09)) !important;
    color: #151a22 !important;
}

.portal-ess-layout.portal-menu-light .sidebar .submenu > ul > li > a {
    color: rgba(22, 30, 45, .62) !important;
}

.portal-ess-layout.portal-menu-light .sidebar .submenu > ul > li > a:hover,
.portal-ess-layout.portal-menu-light .sidebar .submenu > ul > li.active > a,
.portal-ess-layout.portal-menu-light .sidebar .submenu > ul > li > a.active {
    color: #151a22 !important;
}

/* Sidebar scroll: logo and theme switch stay fixed, menu body scrolls naturally. */
.portal-ess-layout .sidebar {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.portal-ess-layout .sidebar .sidebar-logo {
    flex: 0 0 auto !important;
}

.portal-ess-layout .sidebar .slimScrollDiv {
    position: relative !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
}

.portal-ess-layout .sidebar .sidebar-inner.slimscroll {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 47, .48) transparent;
    padding-bottom: 22px !important;
}

.portal-ess-layout .sidebar .sidebar-inner.slimscroll::-webkit-scrollbar {
    width: 6px;
}

.portal-ess-layout .sidebar .sidebar-inner.slimscroll::-webkit-scrollbar-track {
    background: transparent;
}

.portal-ess-layout .sidebar .sidebar-inner.slimscroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 122, 47, .48);
}

.portal-ess-layout .sidebar .sidebar-inner.slimscroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 122, 47, .7);
}

.portal-ess-layout .sidebar .slimScrollBar,
.portal-ess-layout .sidebar .slimScrollRail {
    display: none !important;
}

.portal-ess-layout .portal-menu-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(390px, 92vw);
    max-height: 340px;
    overflow-y: auto;
    z-index: 1080;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 14px;
    background: rgba(15, 20, 27, .96);
    box-shadow: 0 24px 60px -16px rgba(2, 6, 12, .72);
    backdrop-filter: blur(14px);
    display: none;
}

.portal-ess-layout .portal-menu-search-results.is-open {
    display: block;
}

.portal-ess-layout .portal-menu-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    color: #d8dee8;
    text-decoration: none;
}

.portal-ess-layout .portal-menu-search-result span {
    min-width: 0;
    display: grid;
    gap: 3px;
    font-weight: 850;
}

.portal-ess-layout .portal-menu-search-result small {
    overflow: hidden;
    color: rgba(170, 180, 197, .68);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-ess-layout .portal-menu-search-result i {
    flex: 0 0 auto;
    color: #ff9345;
}

.portal-ess-layout .portal-menu-search-result:hover,
.portal-ess-layout .portal-menu-search-result.is-active {
    background: rgba(242, 101, 34, .16);
    color: #fff;
}

.portal-ess-layout .portal-menu-search-empty {
    padding: 14px 12px;
    color: #8a95a8;
    font-size: 13px;
}

html[dir="rtl"] .portal-ess-layout .portal-menu-search-results {
    right: 0;
    left: auto;
    text-align: right;
}

.portal-ess-layout .sidebar .sidebar-theme-dock {
    display: none !important;
}

/* ESS sidebar hide/show controlled by #toggle_btn. */
@media (min-width: 992px) {
    body.portal-ess-layout.mini-sidebar {
        --portal-sidebar-mini-width: 0px;
    }

    body.portal-ess-layout.mini-sidebar .sidebar {
        width: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        overflow: hidden !important;
        transform: translateX(-18px);
        transition: width .22s ease, opacity .18s ease, transform .22s ease, padding .22s ease !important;
    }

    body.portal-ess-layout.mini-sidebar .page-wrapper {
        margin-left: 0 !important;
    }

    body.portal-ess-layout.mini-sidebar .header {
        left: 0 !important;
    }

    html[dir="rtl"] body.portal-dir-rtl.portal-ess-layout.mini-sidebar .page-wrapper {
        margin: 0 !important;
    }

    html[dir="rtl"] body.portal-dir-rtl.portal-ess-layout.mini-sidebar .header {
        right: 0 !important;
        left: 0 !important;
    }

    html[dir="rtl"] body.portal-dir-rtl.portal-ess-layout.mini-sidebar .sidebar {
        transform: translateX(18px);
    }

    body.portal-ess-layout.mini-sidebar #toggle_btn i {
        transform: none !important;
    }
}

/* Remove legacy green submenu markers from every nested menu. */
.portal-ess-layout .sidebar .submenu ul::before,
.portal-ess-layout .sidebar .submenu ul li a::before,
.portal-ess-layout .sidebar .submenu ul li a::after,
.portal-ess-layout .sidebar .submenu > ul::before,
.portal-ess-layout .sidebar .submenu > ul > li > a::before,
.portal-ess-layout .sidebar .submenu > ul > li > a::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.portal-ess-layout .sidebar .submenu > ul {
    border-color: rgba(255, 122, 47, .18) !important;
}

.portal-ess-layout .sidebar .submenu > ul > li > a,
.portal-ess-layout .sidebar .submenu ul li a {
    padding-inline: 14px !important;
}

.portal-ess-layout .sidebar .submenu > ul > li > a:hover,
.portal-ess-layout .sidebar .submenu > ul > li.active > a,
.portal-ess-layout .sidebar .submenu > ul > li > a.active,
.portal-ess-layout .sidebar .submenu ul li a:hover,
.portal-ess-layout .sidebar .submenu ul li.active > a,
.portal-ess-layout .sidebar .submenu ul li a.active {
    background: rgba(255, 122, 47, .11) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Global ESS page shell patch for older pages such as leaves, overtime, payments. */
body.portal-ess-layout:not(.portal-atoms-login) {
    background: #07090d !important;
}

body.portal-ess-layout:not(.portal-atoms-login) #global-loader.enpro-loader,
body.portal-ess-layout:not(.portal-atoms-login) #global-loader.enpro-loader.is-active,
html[data-loader="enable"] body.portal-ess-layout:not(.portal-atoms-login) #global-loader.enpro-loader,
html[data-loader="enable"] body.portal-ess-layout:not(.portal-atoms-login) #global-loader.enpro-loader.is-active {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.portal-ess-layout:not(.portal-atoms-login).ess-hydrating .content > .card,
body.portal-ess-layout:not(.portal-atoms-login).ess-hydrating .content .card,
body.portal-ess-layout:not(.portal-atoms-login).ess-hydrating .content .table-responsive,
body.portal-ess-layout:not(.portal-atoms-login).ess-hydrating .content .page-header {
    position: relative !important;
    overflow: hidden !important;
}

body.portal-ess-layout:not(.portal-atoms-login).ess-hydrating .content > .card::before,
body.portal-ess-layout:not(.portal-atoms-login).ess-hydrating .content .card::before,
body.portal-ess-layout:not(.portal-atoms-login).ess-hydrating .content .table-responsive::before,
body.portal-ess-layout:not(.portal-atoms-login).ess-hydrating .content .page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 12;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent),
        linear-gradient(145deg, rgba(20, 24, 31, .96), rgba(14, 18, 24, .9));
    background-size: 220% 100%, 100% 100%;
    animation: ess-shimmer 1s linear infinite;
}

body.portal-ess-layout:not(.portal-atoms-login).ess-hydrating::after,
body.portal-ess-layout:not(.portal-atoms-login).ess-route-loading::after {
    content: "";
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 9999;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff7a2f, #38d9c8, transparent);
    animation: ess-progress 1s ease-in-out infinite;
}

/* Dashboard card interaction: subtle lift, glow, and light sweep on hover. */
.portal-ess-layout .content .ess-card {
    transition:
        transform .22s cubic-bezier(.2, .8, .2, 1),
        box-shadow .22s ease,
        border-color .22s ease,
        filter .22s ease !important;
    will-change: transform;
}

.portal-ess-layout .content .ess-card::after {
    transition: opacity .22s ease, background .22s ease !important;
}

.portal-ess-layout .content .ess-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transform: translateX(-36%);
    background:
        linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .12) 46%, transparent 68%),
        radial-gradient(circle at 18% 0%, rgba(255, 122, 47, .2), transparent 34%),
        radial-gradient(circle at 86% 8%, rgba(56, 217, 200, .16), transparent 32%);
    transition: opacity .2s ease, transform .42s cubic-bezier(.2, .8, .2, 1);
}

.portal-ess-layout .content .ess-card:hover {
    transform: translateY(-7px) scale(1.008);
    border-color: rgba(255, 147, 69, .34) !important;
    filter: saturate(1.04);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .42),
        0 14px 42px rgba(255, 122, 47, .14),
        inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.portal-ess-layout .content .ess-card:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.portal-ess-layout .content .ess-card:hover::after {
    opacity: .62;
}

.portal-ess-layout .content .ess-beta-ticker:hover,
.portal-ess-layout .content .ess-person-card:hover {
    transform: translateY(-4px) scale(1.004);
}

@media (prefers-reduced-motion: reduce) {
    .portal-ess-layout .content .ess-card,
    .portal-ess-layout .content .ess-card::before,
    .portal-ess-layout .content .ess-card::after {
        transition: none !important;
    }

    .portal-ess-layout .content .ess-card:hover,
    .portal-ess-layout .content .ess-beta-ticker:hover,
    .portal-ess-layout .content .ess-person-card:hover {
        transform: none;
    }
}

/* Keep the beta notice icon and message aligned on one row. */
.portal-ess-layout .content .ess-card.ess-beta-ticker,
.portal-ess-layout .ess-card.ess-beta-ticker {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

.portal-ess-layout .ess-beta-ticker__badge {
    flex: 0 0 34px !important;
}

.portal-ess-layout .ess-beta-ticker__track {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.portal-ess-layout .ess-beta-ticker__line,
.portal-ess-layout .ess-beta-ticker__line span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (max-width: 575.98px) {
    .portal-ess-layout .content .ess-card.ess-beta-ticker,
    .portal-ess-layout .ess-card.ess-beta-ticker {
        align-items: flex-start !important;
    }

    .portal-ess-layout .ess-beta-ticker__line,
    .portal-ess-layout .ess-beta-ticker__line span {
        white-space: normal !important;
    }
}

/* Hotfix: keep ESS shell active and let submenu JS control nested panels. */
body.portal-ess-layout.ess-app-bg,
body.portal-ess-layout:not(.portal-atoms-login) {
    min-height: 100vh !important;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 122, 47, .16), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(56, 217, 200, .09), transparent 28%),
        linear-gradient(135deg, #080b11 0%, #10131b 46%, #090a0d 100%) !important;
}

.portal-ess-layout .sidebar #sidebar-menu .submenu > ul,
.portal-ess-layout .sidebar .sidebar-menu .submenu > ul {
    display: none !important;
}

.portal-ess-layout .sidebar #sidebar-menu .submenu > a.subdrop + ul,
.portal-ess-layout .sidebar #sidebar-menu .submenu.is-open > ul,
.portal-ess-layout .sidebar .sidebar-menu .submenu > a.subdrop + ul,
.portal-ess-layout .sidebar .sidebar-menu .submenu.is-open > ul {
    display: grid !important;
}

/* Submenu reliability fix for legacy and redesigned sidebars. */
.portal-ess-layout .sidebar .submenu:not(.is-open) > ul {
    display: none !important;
}

.portal-ess-layout .sidebar .submenu.is-open > ul,
.portal-ess-layout .sidebar .submenu > a.subdrop ~ ul,
.portal-ess-layout .sidebar .submenu > a.active.subdrop ~ ul {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

body.portal-ess-layout .sidebar #sidebar-menu li.submenu.is-open > ul,
body.portal-ess-layout .sidebar #sidebar-menu li.submenu > a.subdrop + ul,
body.portal-ess-layout .sidebar #sidebar-menu li.submenu > a.active.subdrop + ul,
body.portal-ess-layout .sidebar .sidebar-menu li.submenu.is-open > ul,
body.portal-ess-layout .sidebar .sidebar-menu li.submenu > a.subdrop + ul,
body.portal-ess-layout .sidebar .sidebar-menu li.submenu > a.active.subdrop + ul {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Global ESS portal tables: apply the Assigned Requests table language everywhere. */
body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive,
body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_wrapper,
body.portal-ess-layout:not(.portal-atoms-login) .content .ess-table-wrap {
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 122, 47, .11), transparent 32%),
        radial-gradient(circle at 92% 8%, rgba(56, 217, 200, .08), transparent 28%),
        linear-gradient(145deg, rgba(18, 24, 32, .96), rgba(11, 15, 21, .98)) !important;
    box-shadow: 0 24px 70px -42px rgba(0, 0, 0, .78), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    overflow: hidden !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content .card .table-responsive,
body.portal-ess-layout:not(.portal-atoms-login) .content .card .dataTables_wrapper {
    border-radius: 18px !important;
    margin: 0 !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content table.table,
body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable,
body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table {
    width: 100% !important;
    margin: 0 !important;
    color: var(--color-fg-secondary, #cbd5e1) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content table.table thead th,
body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable thead th,
body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table thead th {
    padding: 16px 18px !important;
    color: var(--color-fg-muted, #94a3b8) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    background: rgba(15, 20, 28, .82) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .18) !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content table.table tbody td,
body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable tbody td,
body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table tbody td {
    padding: 16px 18px !important;
    color: var(--color-fg-secondary, #cbd5e1) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    vertical-align: middle !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .12) !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content table.table tbody tr,
body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable tbody tr,
body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table tbody tr {
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

body.portal-ess-layout:not(.portal-atoms-login) .content table.table tbody tr:hover,
body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable tbody tr:hover,
body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 122, 47, .1), rgba(56, 217, 200, .045)) !important;
    box-shadow: inset 3px 0 0 var(--color-brand-500, #ff7a2f);
}

body.portal-ess-layout:not(.portal-atoms-login) .content table.table tbody tr:hover td,
body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable tbody tr:hover td,
body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table tbody tr:hover td {
    color: var(--color-fg-primary, #f8fafc) !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content table.table tbody tr:last-child td,
body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable tbody tr:last-child td,
body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content table.table .btn,
body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable .btn,
body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table .btn {
    border-radius: 12px !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_wrapper {
    padding: 16px !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_wrapper .row:first-child,
body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_wrapper .row:last-child {
    align-items: center !important;
    row-gap: 12px !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_filter input,
body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_length select {
    min-height: 40px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    background: rgba(12, 17, 24, .86) !important;
    color: var(--color-fg-primary, #f8fafc) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03) !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_filter label,
body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_length label,
body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_info {
    color: var(--color-fg-muted, #94a3b8) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content .page-link {
    border-color: rgba(148, 163, 184, .16) !important;
    background: rgba(15, 20, 28, .88) !important;
    color: var(--color-fg-secondary, #cbd5e1) !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content .page-item.active .page-link,
body.portal-ess-layout:not(.portal-atoms-login) .content .page-link:hover {
    border-color: rgba(255, 122, 47, .42) !important;
    background: rgba(255, 122, 47, .22) !important;
    color: #fff !important;
}

body.portal-ess-layout:not(.portal-atoms-login) .content .page-item.disabled .page-link {
    opacity: .45 !important;
}

@keyframes ess-shimmer {
    from {
        background-position: 220% 0, 0 0;
    }
    to {
        background-position: -220% 0, 0 0;
    }
}

@keyframes ess-progress {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.portal-ess-layout .ess-datepicker-popover {
    position: fixed !important;
    z-index: 12120 !important;
    width: min(336px, calc(100vw - 28px));
    border: 1px solid rgba(148, 163, 184, .24) !important;
    border-radius: 18px !important;
    color: var(--color-fg-primary) !important;
    background: #141b24 !important;
    box-shadow: 0 24px 70px -34px rgba(0, 0, 0, .92) !important;
    overflow: visible !important;
    padding: 14px !important;
    display: none;
}

.portal-ess-layout .ess-datepicker-popover.is-open {
    display: block;
}

.portal-ess-layout .ess-datepicker-popover__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.portal-ess-layout .ess-datepicker-popover__head strong {
    color: var(--color-fg-primary);
    font-size: 15px;
    font-weight: 900;
}

.portal-ess-layout .ess-datepicker-popover__nav {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--color-fg-secondary);
    background: rgba(12, 17, 24, .84);
}

.portal-ess-layout .ess-datepicker-popover__nav:hover {
    color: #15120f;
    border-color: #ff9a42;
    background: #ff9a42;
}

.portal-ess-layout .ess-datepicker-popover__week,
.portal-ess-layout .ess-datepicker-popover__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.portal-ess-layout .ess-datepicker-popover__week span {
    min-height: 28px;
    display: grid;
    place-items: center;
    color: var(--color-fg-muted);
    font-size: 12px;
    font-weight: 900;
}

.portal-ess-layout .ess-datepicker-popover__day {
    min-height: 38px;
    border: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--color-fg-secondary) !important;
    background: transparent;
    font-weight: 800;
}

.portal-ess-layout .ess-datepicker-popover__day:hover {
    color: #15120f !important;
    background: #ff9a42 !important;
}

.portal-ess-layout .ess-datepicker-popover__day.is-muted {
    color: rgba(148, 163, 184, .42) !important;
}

.portal-ess-layout .ess-datepicker-popover__day.is-weekend {
    color: rgba(255, 178, 95, .82) !important;
}

.portal-ess-layout .ess-datepicker-popover__day.is-today {
    box-shadow: inset 0 0 0 1px rgba(56, 217, 200, .58);
}

.portal-ess-layout .ess-datepicker-popover__day.is-selected {
    color: #15120f !important;
    background: #38d9c8 !important;
    box-shadow: 0 14px 30px -20px rgba(56, 217, 200, .95);
}

body.portal-ess-layout.modal-open .modal-backdrop,
body.portal-ess-layout.modal-open .modal-backdrop.show {
    z-index: 12040 !important;
    opacity: .18 !important;
    background: #000 !important;
}

body.portal-ess-layout .modal {
    z-index: 12050 !important;
}

body.portal-ess-layout .modal.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.portal-ess-layout .modal-dialog {
    position: relative;
    z-index: 12060 !important;
    pointer-events: auto !important;
}

body.portal-ess-layout .modal-content {
    position: relative;
    z-index: 12061 !important;
    opacity: 1 !important;
    color: var(--color-fg-primary, #f8fafc) !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 122, 47, .12), transparent 34%),
        linear-gradient(145deg, rgba(18, 24, 32, .98), rgba(9, 13, 19, .99)) !important;
    box-shadow: 0 34px 90px -38px rgba(0, 0, 0, .92), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

body.portal-ess-layout .modal-header,
body.portal-ess-layout .modal-footer {
    border-color: rgba(148, 163, 184, .16) !important;
    background: rgba(15, 20, 28, .82) !important;
}

body.portal-ess-layout .modal-body {
    background: transparent !important;
}

body.portal-ess-layout .modal-title {
    color: var(--color-fg-primary, #f8fafc) !important;
    font-weight: 900;
}

body.portal-ess-layout .modal .text-muted,
body.portal-ess-layout .modal .form-text {
    color: var(--color-fg-muted, #94a3b8) !important;
}

body.portal-ess-layout .modal .form-label {
    color: var(--color-fg-secondary, #cbd5e1) !important;
    font-weight: 800;
}

body.portal-ess-layout .modal .form-control,
body.portal-ess-layout .modal .form-select,
body.portal-ess-layout .modal textarea.form-control {
    border-color: rgba(148, 163, 184, .22) !important;
    color: var(--color-fg-primary, #f8fafc) !important;
    background: rgba(12, 17, 24, .88) !important;
}

body.portal-ess-layout .modal .btn-close,
body.portal-ess-layout .modal .custom-btn-close,
body.portal-ess-layout .modal .btn-close.custom-btn-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, .26) !important;
    border-radius: 999px !important;
    display: inline-grid !important;
    place-items: center !important;
    color: var(--color-fg-secondary, #cbd5e1) !important;
    background: rgba(31, 41, 55, .9) !important;
    opacity: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.portal-ess-layout .modal .btn-close:hover,
body.portal-ess-layout .modal .custom-btn-close:hover {
    color: #15120f !important;
    border-color: #ff9a42 !important;
    background: #ff9a42 !important;
}

body.portal-ess-layout .modal .btn-close::before,
body.portal-ess-layout .modal .custom-btn-close::before {
    content: none !important;
}

/* Header and search final polish. Keep the top bar in normal page flow. */
body.portal-ess-layout .header,
html[dir="rtl"] body.portal-ess-layout .header,
html[dir="rtl"] body.portal-dir-rtl.portal-ess-layout .header,
body.portal-ess-layout.mini-sidebar .header,
body.portal-ess-layout.expand-menu.mini-sidebar .header {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: auto !important;
    z-index: 20 !important;
}

body.portal-ess-layout .main-header {
    position: relative !important;
    inset: auto !important;
}

@media (min-width: 992px) {
    body.portal-ess-layout .page-wrapper,
    html[dir="rtl"] body.portal-dir-rtl.portal-ess-layout .page-wrapper {
        padding-top: 0 !important;
    }
}

body.portal-ess-layout #header-search .input-group-flat {
    min-height: 48px !important;
    padding: 0 14px !important;
    gap: 8px;
    border-color: rgba(148, 163, 184, .2) !important;
    border-radius: 18px !important;
    background:
        linear-gradient(135deg, rgba(18, 25, 34, .72), rgba(9, 14, 20, .58)) !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

body.portal-ess-layout .nav.user-menu.nav-list > .d-flex.align-items-center:not(#header-search) {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

html[dir="rtl"] body.portal-ess-layout .nav.user-menu.nav-list > .d-flex.align-items-center:not(#header-search) {
    order: 1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

body.portal-ess-layout #header-search .input-group-flat:focus-within {
    border-color: rgba(255, 139, 61, .58) !important;
    background:
        radial-gradient(circle at 12% 50%, rgba(255, 139, 61, .12), transparent 34%),
        linear-gradient(135deg, rgba(18, 25, 34, .86), rgba(9, 14, 20, .72)) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22), 0 0 0 4px rgba(255, 139, 61, .08) !important;
}

body.portal-ess-layout #header-search .form-control {
    height: 46px !important;
    padding-inline: 4px !important;
    font-weight: 700;
}

body.portal-ess-layout #header-search .input-group-text:empty,
body.portal-ess-layout #header-search kbd {
    display: none !important;
}

/* RTL sidebar containment. The Arabic menu must reserve layout space instead of
   floating over the dashboard content. */
@media (min-width: 992px) {
    html[dir="rtl"] body.portal-ess-layout:not(.mini-sidebar) .sidebar:not(.sidebar-horizontal),
    html[dir="rtl"] body.portal-dir-rtl.portal-ess-layout:not(.mini-sidebar) .sidebar:not(.sidebar-horizontal),
    html[dir="rtl"] body.portal-ess-layout:not(.mini-sidebar) #sidebar {
        right: 0 !important;
        left: auto !important;
        width: var(--portal-sidebar-width, 276px) !important;
        max-width: var(--portal-sidebar-width, 276px) !important;
        transform: none !important;
    }

    html[dir="rtl"] body.portal-ess-layout:not(.mini-sidebar) .page-wrapper,
    html[dir="rtl"] body.portal-dir-rtl.portal-ess-layout:not(.mini-sidebar) .page-wrapper {
        margin-right: var(--portal-sidebar-width, 276px) !important;
        margin-left: 0 !important;
        width: calc(100% - var(--portal-sidebar-width, 276px)) !important;
        max-width: calc(100% - var(--portal-sidebar-width, 276px)) !important;
    }

    html[dir="rtl"] body.portal-ess-layout.mini-sidebar .page-wrapper,
    html[dir="rtl"] body.portal-dir-rtl.portal-ess-layout.mini-sidebar .page-wrapper {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

body.portal-ess-layout .sidebar.sidebar-horizontal,
body.portal-ess-layout #horizontal-single,
body.portal-ess-layout #horizontal-overlay,
body.portal-ess-layout #horizontal-box,
body.portal-ess-layout #two-col-sidebar,
body.portal-ess-layout .sidebar-twocol {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html[dir="rtl"] body.portal-ess-layout .sidebar .sidebar-menu ul li a span:not(.menu-arrow) {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body .header,
body .header .main-header {
    position: relative !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    inset: auto !important;
    transform: none !important;
}

body #header-search kbd,
body .main-header kbd,
body #header-search .input-group-text:has(kbd),
body .main-header .input-group-text:has(kbd) {
    display: none !important;
}

html,
body.portal-ess-layout,
body.portal-ess-layout .main-wrapper,
body.portal-ess-layout .page-wrapper,
body.portal-ess-layout .content {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
}

body.portal-ess-layout {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Header layout correction after making it non-sticky: keep it beside the
   sidebar and keep search in a predictable slot for LTR and RTL. */
@media (min-width: 992px) {
    body.portal-ess-layout:not(.mini-sidebar) .header {
        margin-left: var(--portal-sidebar-width, 276px) !important;
        margin-right: 0 !important;
        width: calc(100% - var(--portal-sidebar-width, 276px)) !important;
        max-width: calc(100% - var(--portal-sidebar-width, 276px)) !important;
    }

    html[dir="rtl"] body.portal-ess-layout:not(.mini-sidebar) .header,
    html[dir="rtl"] body.portal-dir-rtl.portal-ess-layout:not(.mini-sidebar) .header {
        margin-right: var(--portal-sidebar-width, 276px) !important;
        margin-left: 0 !important;
        width: calc(100% - var(--portal-sidebar-width, 276px)) !important;
        max-width: calc(100% - var(--portal-sidebar-width, 276px)) !important;
    }

    body.portal-ess-layout.mini-sidebar .header,
    html[dir="rtl"] body.portal-ess-layout.mini-sidebar .header {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

body.portal-ess-layout .header-user,
body.portal-ess-layout .nav.user-menu.nav-list {
    width: 100% !important;
    min-width: 0 !important;
}

body.portal-ess-layout .nav.user-menu.nav-list {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

body.portal-ess-layout #header-search {
    flex: 1 1 560px !important;
    max-width: 680px !important;
    min-width: 280px !important;
    margin: 0 auto 0 0 !important;
}

html[dir="rtl"] body.portal-ess-layout #header-search {
    margin: 0 0 0 auto !important;
}

body.portal-ess-layout #header-search .input-group-flat {
    width: 100% !important;
}

html[dir="rtl"] body.portal-ess-layout #header-search .form-control {
    direction: rtl !important;
    text-align: right !important;
}

body.portal-ess-layout #header-search::before {
    content: "\ea4a";
    font-family: "tabler-icons";
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: rgba(203, 213, 225, .68);
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

body.portal-ess-layout #header-search {
    position: relative !important;
}

body.portal-ess-layout #header-search .form-control {
    padding-left: 44px !important;
}

html[dir="rtl"] body.portal-ess-layout #header-search .form-control {
    padding-right: 44px !important;
    padding-left: 12px !important;
}

html[dir="rtl"] body.portal-ess-layout #header-search::before {
    right: 4px;
    left: auto;
}

html:not([dir="rtl"]) body.portal-ess-layout #header-search::before {
    left: 4px;
    right: auto;
}

@media (max-width: 1199.98px) {
    body.portal-ess-layout #header-search {
        flex-basis: 420px !important;
        max-width: 520px !important;
    }
}

/* Stable topbar flow: the sidebar owns its column; the header content never
   renders under it. */
@media (min-width: 992px) {
    body.portal-ess-layout .header,
    body.portal-ess-layout:not(.mini-sidebar) .header {
        display: block !important;
        margin-left: var(--portal-sidebar-width, 276px) !important;
        margin-right: 0 !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
        width: calc(100vw - var(--portal-sidebar-width, 276px)) !important;
        max-width: calc(100vw - var(--portal-sidebar-width, 276px)) !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    html[dir="rtl"] body.portal-ess-layout .header,
    html[dir="rtl"] body.portal-ess-layout:not(.mini-sidebar) .header,
    html[dir="rtl"] body.portal-dir-rtl.portal-ess-layout:not(.mini-sidebar) .header {
        margin-right: var(--portal-sidebar-width, 276px) !important;
        margin-left: 0 !important;
    }

    body.portal-ess-layout .main-header {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        overflow: visible !important;
    }
}

body.portal-ess-layout .nav.user-menu.nav-list {
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
}

body.portal-ess-layout #header-search {
    order: 1 !important;
    flex: 0 1 620px !important;
    width: min(620px, 45vw) !important;
    max-width: min(620px, 45vw) !important;
    min-width: 320px !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

body.portal-ess-layout .nav.user-menu.nav-list > .d-flex.align-items-center.gap-2 {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

html[dir="rtl"] body.portal-ess-layout #header-search {
    order: 2 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

html[dir="rtl"] body.portal-ess-layout .nav.user-menu.nav-list > .d-flex.align-items-center.gap-2 {
    order: 1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

@media (max-width: 1199.98px) {
    body.portal-ess-layout #header-search {
        width: min(480px, 38vw) !important;
        max-width: min(480px, 38vw) !important;
        min-width: 260px !important;
    }
}

/* The portal logo lives in the sidebar. The legacy header logo was still
   reserving a full sidebar column and pushing the search field off position. */
@media (min-width: 992px) {
    body.portal-ess-layout .header .header-left {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        flex: 0 0 0 !important;
    }

    body.portal-ess-layout .header .header-user {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

body.portal-ess-layout #header-search {
    display: grid !important;
    grid-template-columns: 48px minmax(260px, 560px) 48px !important;
    align-items: center !important;
    column-gap: 10px !important;
    flex: 0 1 686px !important;
    width: min(686px, 52vw) !important;
    max-width: min(686px, 52vw) !important;
    min-width: 386px !important;
}

body.portal-ess-layout #header-search > #toggle_btn,
body.portal-ess-layout #header-search > a[href$="profile-settings"] {
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    flex: 0 0 48px !important;
}

body.portal-ess-layout #header-search .input-group-flat {
    position: relative !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

body.portal-ess-layout #header-search::before {
    content: none !important;
    display: none !important;
}

body.portal-ess-layout #header-search .input-group-flat::before {
    content: "\ea4a";
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: rgba(203, 213, 225, .68);
    font-family: "tabler-icons";
    font-size: 19px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
}

html[dir="rtl"] body.portal-ess-layout #header-search .input-group-flat::before {
    right: 12px;
    left: auto;
}

body.portal-ess-layout #header-search .input-group-flat .form-control {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 46px !important;
}

html[dir="rtl"] body.portal-ess-layout #header-search .input-group-flat .form-control {
    padding-right: 46px !important;
    padding-left: 14px !important;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    body.portal-ess-layout #header-search {
        grid-template-columns: 44px minmax(220px, 1fr) 44px !important;
        flex-basis: 520px !important;
        width: min(520px, 48vw) !important;
        max-width: min(520px, 48vw) !important;
        min-width: 328px !important;
    }
}

@media (max-width: 991.98px) {
    body.portal-ess-layout #header-search {
        display: flex !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        gap: 8px !important;
    }

    body.portal-ess-layout #header-search .input-group-flat {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }
}

/* Header weather and search finishing rules. Keep these last so the shared
   component defaults cannot restore an opaque input background. */
body.portal-ess-layout .ess-header-weather__icon {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 50% !important;
    background: rgba(255, 122, 47, .16) !important;
    color: #ff9a4f !important;
    opacity: 1 !important;
    overflow: visible !important;
}

body.portal-ess-layout .ess-header-weather__icon > i,
body.portal-ess-layout .ess-header-weather__icon > .ti {
    display: block !important;
    color: inherit !important;
    font-size: 18px !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

body.portal-ess-layout #header-search .input-group-flat,
body.portal-ess-layout #header-search .input-group-flat:focus-within {
    border-color: rgba(148, 163, 184, .2) !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field,
body.portal-ess-layout .header #header-search .portal-header-search-field .form-control,
body.portal-ess-layout .header #header-search .input-group-flat,
body.portal-ess-layout .header #header-search .input-group-flat .form-control {
    border-radius: 16px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field .form-control,
body.portal-ess-layout .header #header-search .input-group-flat .form-control {
    border: 0 !important;
    color: rgba(245, 247, 250, .94) !important;
    -webkit-appearance: none;
    appearance: none;
}

body.portal-ess-layout #header-search .input-group-flat:focus-within {
    border-color: rgba(255, 139, 61, .58) !important;
}

/* Rebuilt portal search control. */
body.portal-ess-layout .header #header-search .portal-header-search-field {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 38px !important;
    align-items: center !important;
    gap: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 5px !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 14px !important;
    background: transparent !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field::before {
    content: none !important;
    display: none !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field:focus-within {
    border-color: rgba(255, 139, 61, .72) !important;
    background-color: rgba(255, 139, 61, .025) !important;
    box-shadow: 0 0 0 3px rgba(255, 139, 61, .08) !important;
}

body.portal-ess-layout .portal-header-search-icon,
body.portal-ess-layout .portal-header-search-clear {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(203, 213, 225, .62);
    font-size: 18px;
    line-height: 1;
}

body.portal-ess-layout .portal-header-search-icon {
    pointer-events: none;
}

body.portal-ess-layout .portal-header-search-clear {
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(.86);
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease, color .16s ease, background-color .16s ease;
}

body.portal-ess-layout .portal-header-search-clear.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

body.portal-ess-layout .portal-header-search-clear:hover,
body.portal-ess-layout .portal-header-search-clear:focus-visible {
    background: rgba(255, 139, 61, .12);
    color: #ff9a4f;
    outline: none;
}

body.portal-ess-layout .header #header-search .portal-header-search-field .form-control {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(245, 247, 250, .96) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    outline: none !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field .form-control::placeholder {
    color: rgba(203, 213, 225, .5) !important;
    opacity: 1 !important;
}

html[dir="rtl"] body.portal-ess-layout .header #header-search .portal-header-search-field .form-control {
    padding: 0 8px !important;
    direction: rtl !important;
    text-align: right !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field .portal-menu-search-results {
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 320px;
    border-radius: 12px;
}

/* Unified glass surface: transparent enough to preserve the page atmosphere,
   but consistent across the warm-to-cool header background. */
body.portal-ess-layout .header #header-search .portal-header-search-field {
    height: 46px !important;
    min-height: 46px !important;
    border-color: rgba(226, 232, 240, .16) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, .025) !important;
    background-color: rgba(255, 255, 255, .025) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    backdrop-filter: blur(18px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(120%) !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field:focus-within {
    border-color: rgba(255, 139, 61, .68) !important;
    background: rgba(255, 255, 255, .045) !important;
    background-color: rgba(255, 255, 255, .045) !important;
    box-shadow: 0 0 0 3px rgba(255, 139, 61, .07), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

body.portal-ess-layout .portal-header-search-icon {
    background: transparent !important;
    color: rgba(226, 232, 240, .68) !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field:focus-within .portal-header-search-icon {
    color: #ff9a4f !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field .form-control {
    height: 44px !important;
    min-height: 44px !important;
    background: transparent !important;
    background-color: transparent !important;
    font-weight: 600 !important;
}

@media (min-width: 1200px) {
    body.portal-ess-layout #header-search {
        grid-template-columns: 46px minmax(300px, 520px) 46px !important;
        flex-basis: 632px !important;
        width: min(632px, 46vw) !important;
        max-width: min(632px, 46vw) !important;
        min-width: 410px !important;
    }
}

body.portal-ess-layout .portal-header-search-field input[type="search"]::-webkit-search-cancel-button,
body.portal-ess-layout .portal-header-search-field input[type="search"]::-webkit-search-decoration,
body.portal-ess-layout .portal-header-search-field input[type="search"]::-webkit-search-results-button,
body.portal-ess-layout .portal-header-search-field input[type="search"]::-webkit-search-results-decoration {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field .portal-menu-search-results {
    max-height: min(330px, calc(100vh - 120px)) !important;
    padding: 8px !important;
    border-color: rgba(148, 163, 184, .2) !important;
    background: rgba(10, 16, 23, .96) !important;
    box-shadow: 0 22px 54px rgba(0, 0, 0, .42) !important;
    backdrop-filter: blur(20px) saturate(120%) !important;
}

body.portal-ess-layout .header #header-search .portal-menu-search-result {
    min-height: 64px;
    padding: 11px 13px;
    border-radius: 9px;
}

/* Final header search reset: older inner pages ship competing input-group rules. */
body.portal-ess-layout .header #header-search {
    align-items: center !important;
    overflow: visible !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 14px !important;
    background: rgba(13, 22, 31, .72) !important;
    background-color: rgba(13, 22, 31, .72) !important;
    background-image: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    backdrop-filter: blur(14px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(115%) !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field:focus-within {
    border-color: rgba(255, 139, 61, .64) !important;
    background: rgba(13, 22, 31, .86) !important;
    background-color: rgba(13, 22, 31, .86) !important;
    box-shadow: 0 0 0 3px rgba(255, 139, 61, .08), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-icon,
body.portal-ess-layout .header #header-search .portal-header-search-clear {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 42px !important;
    height: 50px !important;
    min-width: 42px !important;
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(203, 213, 225, .72) !important;
    line-height: 1 !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-icon i,
body.portal-ess-layout .header #header-search .portal-header-search-clear i {
    font-size: 20px !important;
    line-height: 1 !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-clear {
    grid-column: 3 !important;
    cursor: pointer !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-clear.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-clear:hover,
body.portal-ess-layout .header #header-search .portal-header-search-clear:focus-visible {
    color: #ff9a4f !important;
    background: rgba(255, 139, 61, .09) !important;
    outline: 0 !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field .form-control {
    grid-column: 2 !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: rgba(245, 247, 250, .94) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 50px !important;
    outline: 0 !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field .form-control::placeholder {
    color: rgba(203, 213, 225, .56) !important;
    opacity: 1 !important;
}

body.portal-ess-layout .header #header-search .portal-header-search-field .portal-menu-search-results {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    inset-inline: 0 !important;
    z-index: 13000 !important;
    width: 100% !important;
}

html[dir="rtl"] body.portal-ess-layout .header #header-search .portal-header-search-field .form-control {
    text-align: right !important;
}

/* Same search shell everywhere, including dashboard-rendered header variants. */
body.portal-ess-layout .portal-header-search-field {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 14px !important;
    background: rgba(13, 22, 31, .72) !important;
    background-color: rgba(13, 22, 31, .72) !important;
    background-image: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    backdrop-filter: blur(14px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(115%) !important;
}

body.portal-ess-layout .portal-header-search-field:focus-within {
    border-color: rgba(255, 139, 61, .64) !important;
    background: rgba(13, 22, 31, .86) !important;
    background-color: rgba(13, 22, 31, .86) !important;
    box-shadow: 0 0 0 3px rgba(255, 139, 61, .08), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

body.portal-ess-layout .portal-header-search-field > .portal-header-search-icon,
body.portal-ess-layout .portal-header-search-field > .portal-header-search-clear {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 42px !important;
    height: 50px !important;
    min-width: 42px !important;
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(203, 213, 225, .72) !important;
    line-height: 1 !important;
}

body.portal-ess-layout .portal-header-search-field > .portal-header-search-clear {
    grid-column: 3 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.portal-ess-layout .portal-header-search-field > .portal-header-search-clear.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.portal-ess-layout .portal-header-search-field > .form-control {
    grid-column: 2 !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: rgba(245, 247, 250, .94) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 50px !important;
    outline: 0 !important;
}

body.portal-ess-layout .portal-header-search-field > .portal-menu-search-results {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    inset-inline: 0 !important;
    z-index: 13000 !important;
    width: 100% !important;
}

/* Light theme support lives as an override layer so the dark theme remains untouched. */
.enpro-theme-toggle {
    min-height: 42px;
    border: 1px solid var(--color-surface-border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    color: var(--color-fg-secondary);
    background: color-mix(in oklab, var(--color-surface-1) 82%, transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.enpro-theme-toggle:hover {
    transform: translateY(-1px);
    border-color: color-mix(in oklab, var(--color-brand-500) 42%, var(--color-surface-border));
    color: var(--color-brand-400);
}

.enpro-theme-toggle i {
    font-size: 18px;
}

.enpro-theme-toggle span[data-theme-label] {
    font-size: 12px;
    font-weight: 850;
}

.portal-ess-layout .header .enpro-theme-toggle {
    min-width: 42px;
    padding-inline: 12px;
}

.portal-ess-layout .sidebar-theme-dock .sidebar-theme-switch {
    color: var(--color-fg-secondary);
    background: color-mix(in oklab, var(--color-surface-1) 86%, transparent) !important;
    border-color: var(--color-surface-border) !important;
}

html[data-theme="light"] body.portal-ess-layout {
    background:
        radial-gradient(circle at 15% 8%, rgba(255, 131, 56, .14), transparent 26%),
        radial-gradient(circle at 86% 18%, rgba(50, 207, 192, .13), transparent 30%),
        linear-gradient(135deg, #fff7f1 0%, #f5f8fc 44%, #effaf7 100%) !important;
}

html[data-theme="light"] .portal-ess-layout .header,
html[data-theme="light"] .portal-ess-layout .main-header {
    background: rgba(255,255,255,.78) !important;
    border-bottom-color: rgba(23, 36, 52, .1) !important;
    backdrop-filter: blur(18px) saturate(140%);
}

html[data-theme="light"] .portal-ess-layout .sidebar {
    background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(246,249,252,.97)) !important;
    border-inline-end-color: rgba(23,36,52,.1) !important;
    box-shadow: 18px 0 44px rgba(28,45,68,.08);
}

html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li > a,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a {
    color: #26364d !important;
    background: rgba(255,255,255,.74) !important;
    border-color: rgba(23,36,52,.1) !important;
}

html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li > a:hover,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a:hover,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li.active > a,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a.subdrop {
    color: #172033 !important;
    background: linear-gradient(135deg, rgba(255,131,56,.18), rgba(255,255,255,.88)) !important;
    border-color: rgba(255,131,56,.35) !important;
    box-shadow: 0 16px 34px rgba(242,101,34,.12);
}

html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li ul {
    background: rgba(255,255,255,.74) !important;
}

html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li ul > li a {
    color: #5b6678 !important;
}

html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li ul > li.active a,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li ul > li a:hover {
    color: #172033 !important;
    background: rgba(255,131,56,.12) !important;
}

html[data-theme="light"] .portal-ess-layout .ess-card,
html[data-theme="light"] .portal-ess-layout .ess-stat,
html[data-theme="light"] .portal-ess-layout .ess-table-wrap,
html[data-theme="light"] .portal-ess-layout .dropdown-menu,
html[data-theme="light"] .portal-ess-layout .modal-content {
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,253,.94)) !important;
    border-color: rgba(23,36,52,.12) !important;
    color: var(--color-fg-primary) !important;
    box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .portal-ess-layout .ess-card::after {
    opacity: .42;
}

html[data-theme="light"] .portal-ess-layout .ess-field,
html[data-theme="light"] .portal-ess-layout .form-control,
html[data-theme="light"] .portal-ess-layout .form-select,
html[data-theme="light"] .portal-ess-layout textarea,
html[data-theme="light"] .portal-ess-layout input[type="text"],
html[data-theme="light"] .portal-ess-layout input[type="search"],
html[data-theme="light"] .portal-ess-layout input[type="date"],
html[data-theme="light"] .portal-ess-layout input[type="number"],
html[data-theme="light"] .portal-ess-layout input[type="email"],
html[data-theme="light"] .portal-ess-layout input[type="password"] {
    background: rgba(255,255,255,.86) !important;
    border-color: rgba(23,36,52,.14) !important;
    color: #172033 !important;
}

html[data-theme="light"] body.portal-ess-layout .portal-header-search-field {
    background: rgba(255,255,255,.72) !important;
    background-color: rgba(255,255,255,.72) !important;
    border-color: rgba(23,36,52,.13) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65) !important;
}

html[data-theme="light"] body.portal-ess-layout .portal-header-search-field:focus-within {
    background: rgba(255,255,255,.9) !important;
    background-color: rgba(255,255,255,.9) !important;
}

html[data-theme="light"] body.portal-ess-layout .portal-header-search-field > .form-control {
    color: #172033 !important;
}

html[data-theme="light"] body.portal-ess-layout .portal-header-search-field > .portal-header-search-icon,
html[data-theme="light"] body.portal-ess-layout .portal-header-search-field > .portal-header-search-clear {
    color: rgba(66,82,106,.78) !important;
}

html[data-theme="light"] .portal-ess-layout .ess-table,
html[data-theme="light"] .portal-ess-layout .table {
    color: var(--color-fg-secondary) !important;
}

html[data-theme="light"] .portal-ess-layout .ess-table thead th {
    background: rgba(238,243,248,.8) !important;
    color: #5b6678 !important;
}

html[data-theme="light"] .portal-ess-layout .ess-table tbody tr {
    border-color: rgba(23,36,52,.08) !important;
}

html[data-theme="light"] .portal-ess-layout .modal-backdrop.show {
    opacity: .34 !important;
}

html[data-theme="light"] .portal-ess-layout .footer {
    background: rgba(255,255,255,.72) !important;
    border-top-color: rgba(23,36,52,.1) !important;
}

html[data-theme="light"] .portal-ess-layout .dark-logo {
    display: none !important;
}

html[data-theme="light"] .portal-ess-layout .logo:not(.dark-logo),
html[data-theme="light"] .portal-ess-layout .logo-normal {
    display: inline-flex !important;
}

/* Polished Light/Dark switcher. Keep this last so Bootstrap/header rules cannot expose the raw button style. */
body.portal-ess-layout .header .enpro-theme-toggle,
body.portal-ess-layout .enpro-theme-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-height: 44px !important;
    height: 44px !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 0 14px 0 8px !important;
    color: var(--color-fg-primary) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
        color-mix(in oklab, var(--color-surface-1) 78%, transparent) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 28px rgba(0,0,0,.14) !important;
    outline: 0 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

body.portal-ess-layout .header .enpro-theme-toggle:hover,
body.portal-ess-layout .enpro-theme-toggle:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(255, 139, 61, .42) !important;
    background:
        linear-gradient(180deg, rgba(255,139,61,.1), rgba(255,255,255,.02)),
        color-mix(in oklab, var(--color-surface-1) 82%, transparent) !important;
}

body.portal-ess-layout .header .enpro-theme-toggle:focus-visible,
body.portal-ess-layout .enpro-theme-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(255,139,61,.18), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

body.portal-ess-layout .header .enpro-theme-toggle [data-theme-icon],
body.portal-ess-layout .enpro-theme-toggle [data-theme-icon] {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 999px !important;
    display: inline-grid !important;
    place-items: center !important;
    color: #ffb15f !important;
    background: rgba(255, 139, 61, .16) !important;
    border: 1px solid rgba(255, 139, 61, .22) !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

body.portal-ess-layout .header .enpro-theme-toggle [data-theme-label],
body.portal-ess-layout .enpro-theme-toggle [data-theme-label] {
    color: var(--color-fg-primary) !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
}

html[data-theme="light"] body.portal-ess-layout .header .enpro-theme-toggle,
html[data-theme="light"] body.portal-ess-layout .enpro-theme-toggle {
    border-color: rgba(23,36,52,.12) !important;
    color: #172033 !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.62)),
        rgba(255,255,255,.78) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 12px 28px rgba(28,45,68,.08) !important;
}

html[data-theme="light"] body.portal-ess-layout .header .enpro-theme-toggle [data-theme-icon],
html[data-theme="light"] body.portal-ess-layout .enpro-theme-toggle [data-theme-icon] {
    color: #f26522 !important;
    background: rgba(242, 101, 34, .13) !important;
    border-color: rgba(242, 101, 34, .2) !important;
}

html[data-theme="light"] body.portal-ess-layout .header .enpro-theme-toggle [data-theme-label],
html[data-theme="light"] body.portal-ess-layout .enpro-theme-toggle [data-theme-label] {
    color: #172033 !important;
}

body.portal-ess-layout .sidebar-theme-dock .sidebar-theme-switch[data-enpro-theme-toggle] {
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 35px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

body.portal-ess-layout .sidebar-theme-dock .sidebar-theme-switch[data-enpro-theme-toggle] [data-theme-icon] {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 21px !important;
}

/* Light theme readability fixes. Scoped to light only so dark remains exactly as designed. */
html[data-theme="light"] body.portal-ess-layout {
    color: #152033 !important;
}

html[data-theme="light"] .portal-ess-layout .sidebar-logo {
    background: transparent !important;
}

html[data-theme="light"] .portal-ess-layout .sidebar-logo a.logo-normal {
    display: inline-flex !important;
}

html[data-theme="light"] .portal-ess-layout .sidebar-logo a.logo-small,
html[data-theme="light"] .portal-ess-layout .sidebar-logo a.dark-logo {
    display: none !important;
}

html[data-theme="light"] .portal-ess-layout .sidebar-logo img {
    filter: none !important;
    opacity: 1 !important;
}

html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li > a span,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a span,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li > a .menu-arrow,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a .menu-arrow {
    color: #3f4d63 !important;
    opacity: 1 !important;
}

html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li.active > a span,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li > a:hover span,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a.subdrop span,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a:hover span {
    color: #172033 !important;
}

html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li > a i,
html[data-theme="light"] .portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a i {
    color: #ff8338 !important;
    background: rgba(255,131,56,.1) !important;
    border-color: rgba(255,131,56,.18) !important;
}

html[data-theme="light"] .portal-ess-layout .ess-card,
html[data-theme="light"] .portal-ess-layout .ess-card *,
html[data-theme="light"] .portal-ess-layout .ess-stat,
html[data-theme="light"] .portal-ess-layout .ess-stat *,
html[data-theme="light"] .portal-ess-layout .ess-table-wrap,
html[data-theme="light"] .portal-ess-layout .ess-table-wrap *,
html[data-theme="light"] .portal-ess-layout .ess-quick-services-card,
html[data-theme="light"] .portal-ess-layout .ess-quick-services-card *,
html[data-theme="light"] .portal-ess-layout .ess-profile-card,
html[data-theme="light"] .portal-ess-layout .ess-profile-card * {
    text-shadow: none !important;
}

html[data-theme="light"] .portal-ess-layout .ess-card h1,
html[data-theme="light"] .portal-ess-layout .ess-card h2,
html[data-theme="light"] .portal-ess-layout .ess-card h3,
html[data-theme="light"] .portal-ess-layout .ess-card h4,
html[data-theme="light"] .portal-ess-layout .ess-card h5,
html[data-theme="light"] .portal-ess-layout .ess-card h6,
html[data-theme="light"] .portal-ess-layout .ess-card strong,
html[data-theme="light"] .portal-ess-layout .ess-stat-value,
html[data-theme="light"] .portal-ess-layout .ess-quick-service__body strong,
html[data-theme="light"] .portal-ess-layout .ess-request-row__body strong,
html[data-theme="light"] .portal-ess-layout .ess-profile-card h3,
html[data-theme="light"] .portal-ess-layout .ess-profile-card h4,
html[data-theme="light"] .portal-ess-layout .ess-profile-card strong {
    color: #152033 !important;
    opacity: 1 !important;
}

html[data-theme="light"] .portal-ess-layout .ess-card p,
html[data-theme="light"] .portal-ess-layout .ess-card small,
html[data-theme="light"] .portal-ess-layout .ess-stat-label,
html[data-theme="light"] .portal-ess-layout .ess-quick-service__body small,
html[data-theme="light"] .portal-ess-layout .ess-request-row__body small,
html[data-theme="light"] .portal-ess-layout .ess-profile-card p,
html[data-theme="light"] .portal-ess-layout .ess-profile-card small,
html[data-theme="light"] .portal-ess-layout .ess-profile-card span:not(.ess-badge):not(.avatar):not(.ess-profile-avatar):not(.ess-profile-status) {
    color: #64748b !important;
    opacity: 1 !important;
}

html[data-theme="light"] .portal-ess-layout .ess-profile-card {
    background:
        radial-gradient(circle at 48% 22%, rgba(255,131,56,.12), transparent 30%),
        radial-gradient(circle at 78% 60%, rgba(50,207,192,.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,252,.96)) !important;
}

html[data-theme="light"] .portal-ess-layout .ess-profile-card .ess-profile-meta,
html[data-theme="light"] .portal-ess-layout .ess-profile-card dl > div,
html[data-theme="light"] .portal-ess-layout .ess-profile-id,
html[data-theme="light"] .portal-ess-layout .ess-profile-info-card {
    background: rgba(255,255,255,.72) !important;
    border-color: rgba(23,36,52,.1) !important;
}

html[data-theme="light"] .portal-ess-layout .ess-beta-ticker {
    background: rgba(255,255,255,.78) !important;
    border-color: rgba(255,131,56,.2) !important;
}

html[data-theme="light"] .portal-ess-layout .ess-beta-ticker__line,
html[data-theme="light"] .portal-ess-layout .ess-beta-ticker__line span {
    color: #334155 !important;
    opacity: 1 !important;
}

html[data-theme="light"] .portal-ess-layout .ess-quick-service {
    border-color: rgba(23,36,52,.1) !important;
}

html[data-theme="light"] .portal-ess-layout .ess-quick-service:hover {
    background: rgba(255,131,56,.08) !important;
}

html[data-theme="light"] .portal-ess-layout .ess-request-row {
    border-color: rgba(23,36,52,.1) !important;
}

html[data-theme="light"] .portal-ess-layout .ess-request-row.has-assigned-alert {
    background: rgba(255,131,56,.09) !important;
}

html[data-theme="light"] .portal-ess-layout .ess-header-weather,
html[data-theme="light"] .portal-ess-layout .portal-language-switcher .ess-btn,
html[data-theme="light"] .portal-ess-layout .notification_item .ess-btn,
html[data-theme="light"] .portal-ess-layout .profile-dropdown > a {
    background: rgba(255,255,255,.72) !important;
    border-color: rgba(23,36,52,.11) !important;
    color: #172033 !important;
}

html[data-theme="light"] body.portal-ess-layout .portal-header-search-field {
    background: rgba(255,255,255,.82) !important;
    border-color: rgba(23,36,52,.12) !important;
}

html[data-theme="light"] body.portal-ess-layout .portal-header-search-field > .form-control::placeholder {
    color: #718096 !important;
    opacity: 1 !important;
}

/* Light mode polish v4: keep the dark theme untouched while making every surface readable. */
html[data-theme="light"] body.portal-ess-layout .sidebar {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,252,.98)) !important;
    color: #172033 !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-logo {
    min-height: 76px !important;
    height: 76px !important;
    padding: 18px 16px !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    border-bottom: 1px solid rgba(23,36,52,.08) !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-logo > a.logo.logo-normal {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-logo > a.logo-small,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-logo > a.dark-logo,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-logo > a:not(.logo-normal) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-logo img {
    width: auto !important;
    max-width: 220px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    filter: none !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > a,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.submenu > a,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > a,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a {
    color: #273449 !important;
    background: rgba(255,255,255,.7) !important;
    border-color: rgba(23,36,52,.1) !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > a span,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.submenu > a span,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > a span,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a span {
    color: #273449 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > a:hover,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.active > a,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.submenu > a.subdrop,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > a:hover,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.active > a,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a.subdrop {
    background: linear-gradient(135deg, rgba(255,131,56,.18), rgba(255,255,255,.93)) !important;
    border-color: rgba(255,131,56,.42) !important;
    color: #111827 !important;
    box-shadow: 0 16px 36px rgba(242,101,34,.12) !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > a:hover span,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.active > a span,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.submenu > a.subdrop span,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > a:hover span,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.active > a span,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a.subdrop span {
    color: #111827 !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu ul li a > i:first-child,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu ul li a > i:first-child {
    color: #f26522 !important;
    background: rgba(242,101,34,.1) !important;
    border-color: rgba(242,101,34,.18) !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > ul {
    background: rgba(255,255,255,.84) !important;
    border-color: rgba(23,36,52,.08) !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > ul > li > a {
    color: #475569 !important;
    background: transparent !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a:hover,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li.active > a,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > ul > li > a:hover,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > ul > li.active > a {
    color: #111827 !important;
    background: rgba(255,131,56,.12) !important;
}

html[data-theme="light"] body.portal-ess-layout .content,
html[data-theme="light"] body.portal-ess-layout .page-wrapper,
html[data-theme="light"] body.portal-ess-layout .page-wrapper .content {
    color: #152033 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-card,
html[data-theme="light"] body.portal-ess-layout .card,
html[data-theme="light"] body.portal-ess-layout .ess-table-wrap,
html[data-theme="light"] body.portal-ess-layout .table-responsive,
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper,
html[data-theme="light"] body.portal-ess-layout .report-card,
html[data-theme="light"] body.portal-ess-layout .profile-card {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,253,.96)) !important;
    border-color: rgba(23,36,52,.12) !important;
    color: #152033 !important;
    box-shadow: 0 20px 60px rgba(28,45,68,.09) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-card *,
html[data-theme="light"] body.portal-ess-layout .card *,
html[data-theme="light"] body.portal-ess-layout .ess-table-wrap *,
html[data-theme="light"] body.portal-ess-layout .table-responsive *,
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper *,
html[data-theme="light"] body.portal-ess-layout .report-card *,
html[data-theme="light"] body.portal-ess-layout .profile-card * {
    text-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout h1,
html[data-theme="light"] body.portal-ess-layout h2,
html[data-theme="light"] body.portal-ess-layout h3,
html[data-theme="light"] body.portal-ess-layout h4,
html[data-theme="light"] body.portal-ess-layout h5,
html[data-theme="light"] body.portal-ess-layout h6,
html[data-theme="light"] body.portal-ess-layout .card-title,
html[data-theme="light"] body.portal-ess-layout .fw-bold,
html[data-theme="light"] body.portal-ess-layout .fw-semibold,
html[data-theme="light"] body.portal-ess-layout strong,
html[data-theme="light"] body.portal-ess-layout label {
    color: #152033 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout p,
html[data-theme="light"] body.portal-ess-layout small,
html[data-theme="light"] body.portal-ess-layout .text-muted,
html[data-theme="light"] body.portal-ess-layout .form-text {
    color: #64748b !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .table,
html[data-theme="light"] body.portal-ess-layout table {
    color: #273449 !important;
    --bs-table-bg: transparent !important;
    --bs-table-color: #273449 !important;
    --bs-table-border-color: rgba(23,36,52,.09) !important;
}

html[data-theme="light"] body.portal-ess-layout .table thead th,
html[data-theme="light"] body.portal-ess-layout table thead th {
    background: rgba(241,245,249,.88) !important;
    color: #475569 !important;
    border-color: rgba(23,36,52,.1) !important;
}

html[data-theme="light"] body.portal-ess-layout .table tbody td,
html[data-theme="light"] body.portal-ess-layout table tbody td {
    color: #273449 !important;
    border-color: rgba(23,36,52,.08) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal {
    --bs-modal-color: #152033;
    --bs-modal-bg: #ffffff;
    --bs-modal-border-color: rgba(23,36,52,.14);
}

html[data-theme="light"] body.portal-ess-layout .modal .modal-dialog {
    color: #152033 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .modal-content,
html[data-theme="light"] body.portal-ess-layout .modal-dialog .modal-content,
html[data-theme="light"] body.portal-ess-layout.ess .modal-content,
html[data-theme="light"] body.ess .modal-content,
body.portal-menu-light.ess .modal-content,
body.portal-menu-light .ess .modal-content,
body.portal-menu-light .modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%) !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(23,36,52,.14) !important;
    color: #152033 !important;
    box-shadow: 0 30px 90px rgba(28,45,68,.2) !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    --bs-modal-bg: #ffffff;
    --bs-modal-color: #152033;
}

html[data-theme="light"] body.portal-ess-layout .modal .modal-header,
html[data-theme="light"] body.portal-ess-layout .modal .modal-footer {
    background: rgba(248,250,252,.9) !important;
    border-color: rgba(23,36,52,.1) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .modal-title,
html[data-theme="light"] body.portal-ess-layout .modal h1,
html[data-theme="light"] body.portal-ess-layout .modal h2,
html[data-theme="light"] body.portal-ess-layout .modal h3,
html[data-theme="light"] body.portal-ess-layout .modal h4,
html[data-theme="light"] body.portal-ess-layout .modal h5,
html[data-theme="light"] body.portal-ess-layout .modal h6,
html[data-theme="light"] body.portal-ess-layout .modal strong,
html[data-theme="light"] body.portal-ess-layout .modal label {
    color: #152033 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal p,
html[data-theme="light"] body.portal-ess-layout .modal small,
html[data-theme="light"] body.portal-ess-layout .modal .text-muted,
html[data-theme="light"] body.portal-ess-layout .modal .form-text {
    color: #64748b !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .btn-close,
html[data-theme="light"] body.portal-ess-layout .modal [data-bs-dismiss="modal"],
html[data-theme="light"] body.portal-ess-layout .modal .modal-close,
html[data-theme="light"] body.portal-ess-layout .modal button[aria-label="Close"] {
    color: #334155 !important;
    background-color: rgba(241,245,249,.9) !important;
    border-color: rgba(23,36,52,.14) !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .request-service-card,
html[data-theme="light"] body.portal-ess-layout .modal .ess-request-service,
html[data-theme="light"] body.portal-ess-layout .modal .quick-service-option,
html[data-theme="light"] body.portal-ess-layout .modal .request-option,
html[data-theme="light"] body.portal-ess-layout .modal [class*="service-card"],
html[data-theme="light"] body.portal-ess-layout .modal [class*="request-card"],
html[data-theme="light"] body.portal-ess-layout .modal [class*="request-option"] {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%) !important;
    border-color: rgba(23,36,52,.14) !important;
    color: #152033 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .request-service-card:hover,
html[data-theme="light"] body.portal-ess-layout .modal .ess-request-service:hover,
html[data-theme="light"] body.portal-ess-layout .modal .quick-service-option:hover,
html[data-theme="light"] body.portal-ess-layout .modal .request-option:hover,
html[data-theme="light"] body.portal-ess-layout .modal [class*="service-card"]:hover,
html[data-theme="light"] body.portal-ess-layout .modal [class*="request-card"]:hover,
html[data-theme="light"] body.portal-ess-layout .modal [class*="request-option"]:hover {
    border-color: rgba(242,101,34,.36) !important;
    box-shadow: 0 18px 42px rgba(242,101,34,.12) !important;
    transform: translateY(-2px);
}

html[data-theme="light"] body.portal-ess-layout .modal .form-control,
html[data-theme="light"] body.portal-ess-layout .modal .form-select,
html[data-theme="light"] body.portal-ess-layout .modal textarea,
html[data-theme="light"] body.portal-ess-layout .modal input {
    background: #ffffff !important;
    border-color: rgba(23,36,52,.16) !important;
    color: #152033 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .select2-container--default .select2-selection--single,
html[data-theme="light"] body.portal-ess-layout .modal .select2-container--default .select2-selection--multiple,
html[data-theme="light"] body.portal-ess-layout .select2-dropdown {
    background: #ffffff !important;
    border-color: rgba(23,36,52,.16) !important;
    color: #152033 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal-backdrop.show {
    opacity: .24 !important;
}

/* Light mode polish v5: stronger contrast for menu text and washed-out dashboard cards. */
html[data-theme="light"] body.portal-ess-layout .sidebar,
html[data-theme="light"] body.portal-ess-layout .sidebar * {
    text-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > a,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.submenu > a,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > a,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a {
    color: #0f172a !important;
    background: rgba(255,255,255,.9) !important;
    border-color: rgba(15,23,42,.11) !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > a span:not(.menu-arrow),
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.submenu > a span:not(.menu-arrow),
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > a span:not(.menu-arrow),
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a span:not(.menu-arrow) {
    color: #0f172a !important;
    opacity: 1 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > a .menu-arrow,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.submenu > a .menu-arrow,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > a .menu-arrow,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a .menu-arrow {
    color: #334155 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > ul > li > a {
    color: #111827 !important;
    font-weight: 750 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a span,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > ul > li > a span {
    color: #111827 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.active > a,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.submenu > a.subdrop,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.active > a,
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a.subdrop {
    background: linear-gradient(135deg, rgba(255,131,56,.2), rgba(255,255,255,.96)) !important;
    border-color: rgba(242,101,34,.5) !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.active > a span:not(.menu-arrow),
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li.submenu > a.subdrop span:not(.menu-arrow),
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.active > a span:not(.menu-arrow),
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a.subdrop span:not(.menu-arrow) {
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-card,
html[data-theme="light"] body.portal-ess-layout .ess-news-card,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card,
html[data-theme="light"] body.portal-ess-layout .ess-profile-card,
html[data-theme="light"] body.portal-ess-layout .ess-table-wrap,
html[data-theme="light"] body.portal-ess-layout .card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,253,.98)) !important;
    border-color: rgba(15,23,42,.13) !important;
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-card::before,
html[data-theme="light"] body.portal-ess-layout .ess-card::after,
html[data-theme="light"] body.portal-ess-layout .ess-news-card::before,
html[data-theme="light"] body.portal-ess-layout .ess-news-card::after,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card::before,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card::after,
html[data-theme="light"] body.portal-ess-layout .ess-profile-card::before,
html[data-theme="light"] body.portal-ess-layout .ess-profile-card::after {
    opacity: .12 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-news-card .carousel-item > div {
    background:
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,250,248,.9)) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-news-card h1,
html[data-theme="light"] body.portal-ess-layout .ess-news-card h2,
html[data-theme="light"] body.portal-ess-layout .ess-news-card h3,
html[data-theme="light"] body.portal-ess-layout .ess-news-card h4,
html[data-theme="light"] body.portal-ess-layout .ess-news-card h5,
html[data-theme="light"] body.portal-ess-layout .ess-news-card h6,
html[data-theme="light"] body.portal-ess-layout .ess-news-card strong,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card h1,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card h2,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card h3,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card h4,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card h5,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card h6,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card strong {
    color: #0f172a !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-news-card p,
html[data-theme="light"] body.portal-ess-layout .ess-news-card small,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card p,
html[data-theme="light"] body.portal-ess-layout .ess-quick-services-card small,
html[data-theme="light"] body.portal-ess-layout .ess-quick-service__body small,
html[data-theme="light"] body.portal-ess-layout .ess-request-row__body small {
    color: #475569 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-quick-service,
html[data-theme="light"] body.portal-ess-layout .ess-request-row {
    background: rgba(255,255,255,.72) !important;
    border-color: rgba(15,23,42,.1) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-quick-service__body strong,
html[data-theme="light"] body.portal-ess-layout .ess-request-row__body strong {
    color: #0f172a !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .leave-summary-value,
html[data-theme="light"] body.portal-ess-layout [data-leave-balance],
html[data-theme="light"] body.portal-ess-layout [data-ticket-balance],
html[data-theme="light"] body.portal-ess-layout [data-assigned-requests],
html[data-theme="light"] body.portal-ess-layout [data-pending-requests] {
    color: #0f172a !important;
    opacity: 1 !important;
}

/* Light mode polish v6: premium background, true light tables, and dashboard request modal cards. */
html[data-theme="light"] body.portal-ess-layout {
    background:
        radial-gradient(circle at 18% 9%, rgba(255, 131, 56, .13), transparent 24%),
        radial-gradient(circle at 78% 4%, rgba(56, 217, 200, .16), transparent 26%),
        radial-gradient(circle at 90% 58%, rgba(59, 130, 246, .07), transparent 30%),
        linear-gradient(135deg, #fffaf5 0%, #f8fafc 42%, #effbf8 100%) !important;
}

html[data-theme="light"] body.portal-ess-layout .page-wrapper,
html[data-theme="light"] body.portal-ess-layout .page-wrapper .content {
    background: transparent !important;
}

html[data-theme="light"] body.portal-ess-layout .content::before {
    opacity: .18 !important;
    background:
        linear-gradient(120deg, rgba(255,131,56,.16), transparent 35%),
        linear-gradient(300deg, rgba(56, 217, 200,.16), transparent 42%) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_wrapper,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .ess-table-wrap {
    background: rgba(255,255,255,.96) !important;
    border-color: rgba(15,23,42,.12) !important;
    color: #0f172a !important;
    box-shadow: 0 18px 52px rgba(28,45,68,.08) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.table,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table {
    background: #ffffff !important;
    color: #0f172a !important;
    --bs-table-bg: #ffffff !important;
    --bs-table-color: #0f172a !important;
    --bs-table-striped-bg: #f8fafc !important;
    --bs-table-striped-color: #0f172a !important;
    --bs-table-hover-bg: #fff3eb !important;
    --bs-table-hover-color: #0f172a !important;
    --bs-table-border-color: rgba(15,23,42,.1) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.table thead,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable thead,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table thead {
    background: #f1f5f9 !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.table thead th,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable thead th,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table thead th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: rgba(15,23,42,.12) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.table tbody,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable tbody,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table tbody,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.table tbody tr,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable tbody tr,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table tbody tr {
    background: #ffffff !important;
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.table tbody tr:nth-child(even),
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable tbody tr:nth-child(even),
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table tbody tr:nth-child(even) {
    background: #f8fafc !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.table tbody td,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable tbody td,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table tbody td {
    background: transparent !important;
    color: #1e293b !important;
    border-color: rgba(15,23,42,.08) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.table tbody tr:hover,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable tbody tr:hover,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table tbody tr:hover {
    background: #fff3eb !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_filter input,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_length select,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dt-input {
    background: #ffffff !important;
    border-color: rgba(15,23,42,.14) !important;
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-modal__title h5,
html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-modal__title .modal-title {
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-modal__title p {
    color: #64748b !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-grid {
    gap: 18px !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-card {
    min-height: 154px !important;
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 28px !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 22px !important;
    background:
        radial-gradient(circle at 12% 10%, rgba(255,131,56,.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f7fafc 100%) !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    border-radius: 20px !important;
    color: #0f172a !important;
    box-shadow: 0 16px 36px rgba(28,45,68,.08) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-card:hover {
    border-color: rgba(242,101,34,.42) !important;
    background:
        radial-gradient(circle at 12% 10%, rgba(255,131,56,.18), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fff7f1 100%) !important;
    box-shadow: 0 22px 50px rgba(242,101,34,.16) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-card__icon {
    width: 58px !important;
    height: 58px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #ff7a2f, #ffac58) !important;
    color: #111827 !important;
    box-shadow: 0 14px 28px rgba(242,101,34,.22) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-card__icon i {
    color: #111827 !important;
    font-size: 24px !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-card__copy strong {
    color: #0f172a !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-card__copy small {
    color: #64748b !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-card__arrow {
    color: #f26522 !important;
    opacity: 1 !important;
}

/* Light mode polish v7: neutralize legacy dark tables/modals on every portal page. */
html[data-theme="light"] body.portal-ess-layout,
html[data-theme="light"] body.portal-dir-rtl {
    --color-surface-1: #ffffff;
    --color-surface-2: #f8fafc;
    --color-surface-3: #f1f5f9;
    --color-surface-border: rgba(15, 23, 42, .12);
    --color-surface-border-soft: rgba(15, 23, 42, .08);
    --color-fg-primary: #0f172a;
    --color-fg-secondary: #334155;
    --color-fg-muted: #64748b;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_wrapper,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_scroll,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_scrollHead,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_scrollBody,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dt-scroll,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dt-scroll-head,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dt-scroll-body,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .ess-table-wrap,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content .table-responsive,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content .dataTables_wrapper,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content .ess-table-wrap {
    background: #ffffff !important;
    background-image: none !important;
    border-color: rgba(15, 23, 42, .1) !important;
    color: #0f172a !important;
    box-shadow: 0 12px 32px rgba(28, 45, 68, .07) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content .table-responsive {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive::before,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive::after,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_wrapper::before,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_wrapper::after,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .ess-table-wrap::before,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .ess-table-wrap::after,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content .table-responsive::before,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content .table-responsive::after,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content .dataTables_wrapper::before,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content .dataTables_wrapper::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive::-webkit-scrollbar,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_scrollBody::-webkit-scrollbar,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content .table-responsive::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive::-webkit-scrollbar-track,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_scrollBody::-webkit-scrollbar-track,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content .table-responsive::-webkit-scrollbar-track {
    background: #eef2f7 !important;
    border-radius: 999px;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive::-webkit-scrollbar-thumb,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_scrollBody::-webkit-scrollbar-thumb,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content .table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ff8a3d, #f26522) !important;
    border-radius: 999px;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.table,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content table,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content table.table,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content table.datatable,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content table.ess-table {
    background: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, .08) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table thead,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content table thead {
    background: #f8fafc !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table thead th,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-color: rgba(15, 23, 42, .1) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table tbody,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table tbody tr,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content table tbody,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content table tbody tr {
    background: #ffffff !important;
    background-image: none !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table tbody tr:nth-child(even),
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content table tbody tr:nth-child(even) {
    background: #f8fafc !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table tbody td,
html[data-theme="light"] body.portal-dir-rtl:not(.portal-atoms-login) .content table tbody td {
    background: transparent !important;
    color: #1e293b !important;
    border-color: rgba(15, 23, 42, .08) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal-backdrop,
html[data-theme="light"] body.portal-ess-layout.modal-open .modal-backdrop,
html[data-theme="light"] body.portal-ess-layout.modal-open .modal-backdrop.show,
html[data-theme="light"] body.portal-dir-rtl.modal-open .modal-backdrop,
html[data-theme="light"] body.portal-dir-rtl.modal-open .modal-backdrop.show {
    background: rgba(15, 23, 42, .42) !important;
    opacity: .28 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal-content,
html[data-theme="light"] body.portal-ess-layout .modal .modal-content,
html[data-theme="light"] body.portal-ess-layout .modal-dialog .modal-content,
html[data-theme="light"] body.portal-dir-rtl .modal-content,
html[data-theme="light"] body.portal-dir-rtl .modal .modal-content,
html[data-theme="light"] body.portal-dir-rtl .modal-dialog .modal-content,
html[data-theme="light"] body .modal-content {
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 131, 56, .1), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-color: rgba(15, 23, 42, .14) !important;
    color: #0f172a !important;
    box-shadow: 0 30px 80px rgba(28, 45, 68, .18) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal-header,
html[data-theme="light"] body.portal-ess-layout .modal-footer,
html[data-theme="light"] body.portal-dir-rtl .modal-header,
html[data-theme="light"] body.portal-dir-rtl .modal-footer,
html[data-theme="light"] body .modal-header,
html[data-theme="light"] body .modal-footer {
    background: rgba(248, 250, 252, .96) !important;
    border-color: rgba(15, 23, 42, .1) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal-body,
html[data-theme="light"] body.portal-dir-rtl .modal-body,
html[data-theme="light"] body .modal-body {
    background: transparent !important;
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .modal-title,
html[data-theme="light"] body.portal-ess-layout .modal label,
html[data-theme="light"] body.portal-ess-layout .modal h1,
html[data-theme="light"] body.portal-ess-layout .modal h2,
html[data-theme="light"] body.portal-ess-layout .modal h3,
html[data-theme="light"] body.portal-ess-layout .modal h4,
html[data-theme="light"] body.portal-ess-layout .modal h5,
html[data-theme="light"] body.portal-ess-layout .modal h6,
html[data-theme="light"] body.portal-ess-layout .modal strong,
html[data-theme="light"] body.portal-dir-rtl .modal-title,
html[data-theme="light"] body.portal-dir-rtl .modal label,
html[data-theme="light"] body.portal-dir-rtl .modal strong,
html[data-theme="light"] body .modal-title,
html[data-theme="light"] body .modal label,
html[data-theme="light"] body .modal strong {
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .text-muted,
html[data-theme="light"] body.portal-ess-layout .modal .form-text,
html[data-theme="light"] body.portal-ess-layout .modal p,
html[data-theme="light"] body.portal-ess-layout .modal small,
html[data-theme="light"] body.portal-dir-rtl .modal .text-muted,
html[data-theme="light"] body.portal-dir-rtl .modal .form-text,
html[data-theme="light"] body.portal-dir-rtl .modal p,
html[data-theme="light"] body.portal-dir-rtl .modal small,
html[data-theme="light"] body .modal .text-muted,
html[data-theme="light"] body .modal .form-text {
    color: #64748b !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .form-control,
html[data-theme="light"] body.portal-ess-layout .modal .form-select,
html[data-theme="light"] body.portal-ess-layout .modal textarea.form-control,
html[data-theme="light"] body.portal-dir-rtl .modal .form-control,
html[data-theme="light"] body.portal-dir-rtl .modal .form-select,
html[data-theme="light"] body.portal-dir-rtl .modal textarea.form-control,
html[data-theme="light"] body .modal .form-control,
html[data-theme="light"] body .modal .form-select,
html[data-theme="light"] body .modal textarea.form-control {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, .16) !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .btn-close,
html[data-theme="light"] body.portal-ess-layout .modal .custom-btn-close,
html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-modal__close,
html[data-theme="light"] body.portal-dir-rtl .modal .btn-close,
html[data-theme="light"] body.portal-dir-rtl .modal .custom-btn-close,
html[data-theme="light"] body .modal .btn-close,
html[data-theme="light"] body .modal .custom-btn-close {
    color: #334155 !important;
    background-color: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, .14) !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-datepicker-popover,
html[data-theme="light"] body.portal-dir-rtl .ess-datepicker-popover {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, .14) !important;
    color: #0f172a !important;
    box-shadow: 0 24px 70px rgba(28, 45, 68, .16) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-datepicker-popover__head strong,
html[data-theme="light"] body.portal-ess-layout .ess-datepicker-popover__day,
html[data-theme="light"] body.portal-dir-rtl .ess-datepicker-popover__head strong,
html[data-theme="light"] body.portal-dir-rtl .ess-datepicker-popover__day {
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .select2-dropdown,
html[data-theme="light"] body.portal-ess-layout .select2-container--default .select2-selection--single,
html[data-theme="light"] body.portal-ess-layout .select2-container--default .select2-selection--multiple,
html[data-theme="light"] body.portal-dir-rtl .select2-dropdown,
html[data-theme="light"] body.portal-dir-rtl .select2-container--default .select2-selection--single,
html[data-theme="light"] body.portal-dir-rtl .select2-container--default .select2-selection--multiple,
html[data-theme="light"] body .select2-dropdown {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, .16) !important;
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .select2-results__option,
html[data-theme="light"] body.portal-dir-rtl .select2-results__option,
html[data-theme="light"] body .select2-results__option {
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .swal2-popup,
html[data-theme="light"] body.portal-dir-rtl .swal2-popup,
html[data-theme="light"] body .swal2-popup,
html[data-theme="light"] body.portal-ess-layout .offcanvas,
html[data-theme="light"] body.portal-dir-rtl .offcanvas,
html[data-theme="light"] body .offcanvas {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, .14) !important;
}

/* Light mode polish v8: loaded last; make redesigned/private surfaces premium light. */
html[data-theme="light"],
html[data-theme="light"] body {
    color-scheme: light !important;
    background:
        radial-gradient(circle at 17% 6%, rgba(255, 131, 56, .12), transparent 24%),
        radial-gradient(circle at 82% 7%, rgba(56, 217, 200, .16), transparent 27%),
        linear-gradient(135deg, #fffaf6 0%, #f8fafc 46%, #f0fbf8 100%) !important;
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .header,
html[data-theme="light"] body.portal-ess-layout .main-header {
    background: rgba(255, 255, 255, .86) !important;
    border-color: rgba(15, 23, 42, .08) !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout #header-search .input-group-flat,
html[data-theme="light"] body.portal-ess-layout .portal-header-search-field {
    background: rgba(255, 255, 255, .88) !important;
    border-color: rgba(15, 23, 42, .14) !important;
    box-shadow: 0 12px 30px rgba(28, 45, 68, .06) !important;
}

html[data-theme="light"] body.portal-ess-layout #header-search .form-control,
html[data-theme="light"] body.portal-ess-layout .portal-header-search-field .form-control {
    background: transparent !important;
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .content .card,
html[data-theme="light"] body.portal-ess-layout .content .ess-card,
html[data-theme="light"] body.portal-ess-layout .content .ess-stat,
html[data-theme="light"] body.portal-ess-layout .content .profile-card,
html[data-theme="light"] body.portal-ess-layout .content .report-card,
html[data-theme="light"] body.portal-ess-layout .content [class*="card"]:not(.ess-loyalty-card) {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,253,.98)) !important;
    background-color: #ffffff !important;
    border-color: rgba(15, 23, 42, .12) !important;
    color: #0f172a !important;
    box-shadow: 0 16px 42px rgba(28, 45, 68, .08) !important;
}

html[data-theme="light"] body.portal-ess-layout .content .ess-card::before,
html[data-theme="light"] body.portal-ess-layout .content .ess-card::after,
html[data-theme="light"] body.portal-ess-layout .content .card::before,
html[data-theme="light"] body.portal-ess-layout .content .card::after {
    opacity: .08 !important;
}

html[data-theme="light"] body.portal-ess-layout .content .ess-profile-hero,
html[data-theme="light"] body.portal-ess-layout .content .employee-profile-hero,
html[data-theme="light"] body.portal-ess-layout .content .profile-hero,
html[data-theme="light"] body.portal-ess-layout .content [class*="profile"][class*="hero"] {
    background:
        radial-gradient(circle at 14% 22%, rgba(255, 131, 56, .16), transparent 30%),
        radial-gradient(circle at 86% 20%, rgba(56, 217, 200, .18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7fafc 100%) !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    color: #0f172a !important;
    box-shadow: 0 24px 70px rgba(28, 45, 68, .1) !important;
}

html[data-theme="light"] body.portal-ess-layout .content .ess-profile-hero *,
html[data-theme="light"] body.portal-ess-layout .content .employee-profile-hero *,
html[data-theme="light"] body.portal-ess-layout .content .profile-hero *,
html[data-theme="light"] body.portal-ess-layout .content [class*="profile"][class*="hero"] * {
    text-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout .content .ess-profile-hero h1,
html[data-theme="light"] body.portal-ess-layout .content .ess-profile-hero h2,
html[data-theme="light"] body.portal-ess-layout .content .ess-profile-hero h3,
html[data-theme="light"] body.portal-ess-layout .content .employee-profile-hero h1,
html[data-theme="light"] body.portal-ess-layout .content .profile-hero h1,
html[data-theme="light"] body.portal-ess-layout .content [class*="profile"][class*="hero"] h1,
html[data-theme="light"] body.portal-ess-layout .content [class*="profile"][class*="hero"] h2,
html[data-theme="light"] body.portal-ess-layout .content [class*="profile"][class*="hero"] h3 {
    color: #0f172a !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .content .ess-profile-hero p,
html[data-theme="light"] body.portal-ess-layout .content .employee-profile-hero p,
html[data-theme="light"] body.portal-ess-layout .content .profile-hero p,
html[data-theme="light"] body.portal-ess-layout .content [class*="profile"][class*="hero"] p,
html[data-theme="light"] body.portal-ess-layout .content [class*="profile"][class*="hero"] small,
html[data-theme="light"] body.portal-ess-layout .content [class*="profile"][class*="hero"] span {
    color: #475569 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .content .nav-tabs,
html[data-theme="light"] body.portal-ess-layout .content .profile-tabs,
html[data-theme="light"] body.portal-ess-layout .content [class*="tab"][class*="nav"] {
    background: rgba(255, 255, 255, .94) !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    box-shadow: 0 16px 44px rgba(28, 45, 68, .08) !important;
}

html[data-theme="light"] body.portal-ess-layout .content .nav-tabs .nav-link,
html[data-theme="light"] body.portal-ess-layout .content .profile-tabs .nav-link,
html[data-theme="light"] body.portal-ess-layout .content [class*="tab"] .nav-link {
    color: #334155 !important;
    background: transparent !important;
}

html[data-theme="light"] body.portal-ess-layout .content .nav-tabs .nav-link.active,
html[data-theme="light"] body.portal-ess-layout .content .profile-tabs .nav-link.active,
html[data-theme="light"] body.portal-ess-layout .content [class*="tab"] .nav-link.active {
    color: #0f172a !important;
    background: linear-gradient(135deg, #38d9c8, #7ee7d3) !important;
}

html[data-theme="light"] body.portal-ess-layout .content .alert,
html[data-theme="light"] body.portal-ess-layout .content [class*="notice"],
html[data-theme="light"] body.portal-ess-layout .content [class*="warning"],
html[data-theme="light"] body.portal-ess-layout .content [class*="empty"] {
    background: rgba(255, 255, 255, .92) !important;
    border-color: rgba(15, 23, 42, .1) !important;
    color: #334155 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal-content,
html[data-theme="light"] body.portal-ess-layout .modal .modal-content,
html[data-theme="light"] body.portal-ess-layout .modal-dialog .modal-content,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-content {
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 131, 56, .1), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, .14) !important;
    box-shadow: 0 32px 90px rgba(28, 45, 68, .2) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .modal-header,
html[data-theme="light"] body.portal-ess-layout .modal .modal-footer,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-header,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-footer {
    background: rgba(248, 250, 252, .96) !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, .1) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .modal-title,
html[data-theme="light"] body.portal-ess-layout .modal h1,
html[data-theme="light"] body.portal-ess-layout .modal h2,
html[data-theme="light"] body.portal-ess-layout .modal h3,
html[data-theme="light"] body.portal-ess-layout .modal h4,
html[data-theme="light"] body.portal-ess-layout .modal h5,
html[data-theme="light"] body.portal-ess-layout .modal h6,
html[data-theme="light"] body.portal-ess-layout .modal label,
html[data-theme="light"] body.portal-ess-layout .modal strong {
    color: #0f172a !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal p,
html[data-theme="light"] body.portal-ess-layout .modal small,
html[data-theme="light"] body.portal-ess-layout .modal .form-text,
html[data-theme="light"] body.portal-ess-layout .modal .text-muted {
    color: #64748b !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .modal-body,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-body {
    background: transparent !important;
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .form-control,
html[data-theme="light"] body.portal-ess-layout .modal .form-select,
html[data-theme="light"] body.portal-ess-layout .modal textarea,
html[data-theme="light"] body.portal-ess-layout .modal input:not([type="checkbox"]):not([type="radio"]) {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, .16) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-card {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 131, 56, .12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, .12) !important;
    box-shadow: 0 18px 44px rgba(28, 45, 68, .1) !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-card strong {
    color: #0f172a !important;
}

html[data-theme="light"] body.portal-ess-layout .modal .ess-dashboard-request-card small {
    color: #64748b !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .dataTables_wrapper,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .card .table-responsive {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, .1) !important;
    box-shadow: 0 14px 36px rgba(28, 45, 68, .07) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.table tbody tr:hover td,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.datatable tbody tr:hover td,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content table.ess-table tbody tr:hover td {
    color: #0f172a !important;
}

/* ==================================================================
   Light-mode NUCLEAR overrides — Create Request modal (v9, 2026-07-26)
   Highest specificity + !important to win against inline blade styles.
   ================================================================== */

html[data-theme="light"] body.portal-ess-layout #dashboard_request_modal.ess-dashboard-request-modal .modal-dialog .modal-content,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal.modal .modal-dialog .modal-content {
    background:
        radial-gradient(circle at 4% 0%, rgba(255, 131, 56, .14), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%) !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    box-shadow: 0 40px 100px -30px rgba(15, 23, 42, .32), inset 0 1px 0 rgba(255, 255, 255, .8) !important;
}

html[data-theme="light"] body.portal-ess-layout #dashboard_request_modal.ess-dashboard-request-modal .modal-header,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal.modal .modal-header {
    background: linear-gradient(180deg, rgba(247, 249, 252, .96), rgba(240, 244, 250, .82)) !important;
    border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
}

html[data-theme="light"] body.portal-ess-layout #dashboard_request_modal.ess-dashboard-request-modal .modal-footer,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal.modal .modal-footer {
    background: linear-gradient(0deg, rgba(247, 249, 252, .96), rgba(240, 244, 250, .82)) !important;
    border-top: 1px solid rgba(15, 23, 42, .08) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-title,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal h5.modal-title {
    color: #0f172a !important;
    font-weight: 900 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .ess-dashboard-request-modal__title p {
    color: #475569 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .ess-dashboard-request-modal__close {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    color: #334155 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .ess-dashboard-request-modal__close:hover {
    color: #f26732 !important;
    border-color: rgba(255, 131, 56, .5) !important;
    background: #fff5ec !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .ess-dashboard-request-modal__close svg,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .ess-dashboard-request-modal__close i {
    color: inherit !important;
    stroke: currentColor !important;
    fill: currentColor !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-body {
    background: transparent !important;
    color: #0f172a !important;
}

/* Request cards inside the modal */
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .ess-dashboard-request-grid .ess-dashboard-request-card,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal a.ess-dashboard-request-card {
    background:
        radial-gradient(circle at top right, rgba(255, 131, 56, .12), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #fafcff 100%) !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, .10) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .ess-dashboard-request-card:hover {
    background:
        radial-gradient(circle at top right, rgba(255, 131, 56, .18), transparent 46%),
        linear-gradient(180deg, #ffffff 0%, #fff8f1 100%) !important;
    border-color: rgba(255, 131, 56, .45) !important;
    box-shadow: 0 22px 44px -18px rgba(255, 131, 56, .38) !important;
    transform: translateY(-3px);
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .ess-dashboard-request-card__copy strong {
    color: #0f172a !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .ess-dashboard-request-card__copy small {
    color: #475569 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .ess-dashboard-request-card__arrow {
    color: #f26732 !important;
    opacity: .55 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .ess-dashboard-request-card:hover .ess-dashboard-request-card__arrow {
    opacity: 1 !important;
    color: #ea580c !important;
}

/* Bootstrap modal backdrop — soften and slightly warm in light mode */
html[data-theme="light"] body.portal-ess-layout .modal-backdrop,
html[data-theme="light"] body.portal-ess-layout .modal-backdrop.show {
    background-color: rgba(15, 23, 42, .32) !important;
    opacity: 1 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

/* Secondary Close button in modal footer */
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-footer .ess-btn-secondary,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-footer .btn-secondary,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-footer button[data-bs-dismiss="modal"] {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, .16) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-footer .ess-btn-secondary:hover,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-footer .btn-secondary:hover,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-request-modal .modal-footer button[data-bs-dismiss="modal"]:hover {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, .22) !important;
}

/* =====================================================================
   ENPRO ESS — LIGHT MODE FINAL POLISH (v11, 2026-07-26)
   Comprehensive theme sweep across dashboard, header, notifications,
   forms, tables, alerts, focus, scrollbar, selection. Dark mode is
   never touched — every rule below is scoped to html[data-theme="light"].
   ===================================================================== */

/* ---- Global text selection ---- */
html[data-theme="light"] body.portal-ess-layout ::selection {
    background: rgba(255, 131, 56, .28);
    color: #0f172a;
}

/* ---- Custom scrollbars ---- */
html[data-theme="light"] body.portal-ess-layout * {
    scrollbar-color: rgba(15, 23, 42, .18) transparent;
}
html[data-theme="light"] body.portal-ess-layout *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
html[data-theme="light"] body.portal-ess-layout *::-webkit-scrollbar-track {
    background: transparent;
}
html[data-theme="light"] body.portal-ess-layout *::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, .15);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
html[data-theme="light"] body.portal-ess-layout *::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 131, 56, .55);
    background-clip: padding-box;
}

/* ---- Universal focus ring ---- */
html[data-theme="light"] body.portal-ess-layout button:focus-visible,
html[data-theme="light"] body.portal-ess-layout a:focus-visible,
html[data-theme="light"] body.portal-ess-layout input:focus-visible,
html[data-theme="light"] body.portal-ess-layout textarea:focus-visible,
html[data-theme="light"] body.portal-ess-layout select:focus-visible,
html[data-theme="light"] body.portal-ess-layout [tabindex]:focus-visible {
    outline: 2px solid rgba(255, 131, 56, .55);
    outline-offset: 2px;
}

/* ---- Dashboard heading ---- */
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-heading h2 {
    color: #0f172a !important;
}
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-heading p {
    color: #64748b !important;
}
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-new-request {
    background: linear-gradient(135deg, #ff7a2f 0%, #ffa34f 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 12px 32px -12px rgba(255, 131, 56, .5) !important;
}
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-new-request:hover {
    box-shadow: 0 18px 40px -14px rgba(255, 131, 56, .6) !important;
    transform: translateY(-1px);
}

/* ---- Request row alert (assigned) ---- */
html[data-theme="light"] body.portal-ess-layout .ess-request-row.has-assigned-alert {
    background:
        radial-gradient(circle at 12% 50%, rgba(255, 143, 61, .18), transparent 36%),
        linear-gradient(90deg, rgba(255, 143, 61, .10), rgba(56, 217, 200, .04)) !important;
    border: 1px solid rgba(255, 143, 61, .42) !important;
    box-shadow: 0 0 0 1px rgba(255, 143, 61, .10), 0 8px 24px rgba(255, 143, 61, .12) !important;
}
html[data-theme="light"] body.portal-ess-layout .ess-request-row.has-assigned-alert .ess-request-row__pill {
    background: rgba(255, 176, 82, .16) !important;
    color: #b8570e !important;
}
html[data-theme="light"] body.portal-ess-layout .ess-request-row.has-assigned-alert .ess-request-row__pill::after {
    border: 2px solid #ffffff !important;
}

/* ---- Header: search, notifications, profile trigger ---- */
html[data-theme="light"] body.portal-ess-layout .header .notification-bell,
html[data-theme="light"] body.portal-ess-layout .header .notification_item > a {
    color: #334155 !important;
    background: rgba(255, 255, 255, .85) !important;
    border: 1px solid rgba(15, 23, 42, .08) !important;
}
html[data-theme="light"] body.portal-ess-layout .header .notification-bell:hover,
html[data-theme="light"] body.portal-ess-layout .header .notification_item > a:hover {
    background: #ffffff !important;
    color: #f26732 !important;
    border-color: rgba(255, 131, 56, .35) !important;
}
html[data-theme="light"] body.portal-ess-layout .header .notification-dropdown,
html[data-theme="light"] body.portal-ess-layout .notification-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .10) !important;
    color: #0f172a !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .14) !important;
}
html[data-theme="light"] body.portal-ess-layout .notification-dropdown .noti-content,
html[data-theme="light"] body.portal-ess-layout .notification-dropdown .noti-title {
    color: #0f172a !important;
}
html[data-theme="light"] body.portal-ess-layout .notification-dropdown .noti-time,
html[data-theme="light"] body.portal-ess-layout .notification-dropdown small,
html[data-theme="light"] body.portal-ess-layout .notification-dropdown .text-muted {
    color: #64748b !important;
}
html[data-theme="light"] body.portal-ess-layout .notification-dropdown .list-group-item,
html[data-theme="light"] body.portal-ess-layout .notification-dropdown li a {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, .06) !important;
    color: #334155 !important;
}
html[data-theme="light"] body.portal-ess-layout .notification-dropdown .list-group-item:hover,
html[data-theme="light"] body.portal-ess-layout .notification-dropdown li a:hover {
    background: #fff5ec !important;
    color: #0f172a !important;
}

/* Profile dropdown (user menu) */
html[data-theme="light"] body.portal-ess-layout .header .user-menu .dropdown-menu,
html[data-theme="light"] body.portal-ess-layout .header .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .10) !important;
    color: #0f172a !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .14) !important;
}
html[data-theme="light"] body.portal-ess-layout .header .dropdown-menu .dropdown-item,
html[data-theme="light"] body.portal-ess-layout .header .dropdown-menu a {
    color: #334155 !important;
}
html[data-theme="light"] body.portal-ess-layout .header .dropdown-menu .dropdown-item:hover,
html[data-theme="light"] body.portal-ess-layout .header .dropdown-menu a:hover {
    background: #fff5ec !important;
    color: #0f172a !important;
}
html[data-theme="light"] body.portal-ess-layout .header .dropdown-menu .dropdown-divider,
html[data-theme="light"] body.portal-ess-layout .header .dropdown-menu hr {
    border-color: rgba(15, 23, 42, .08) !important;
}

/* ---- DataTables (jquery datatables) ---- */
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper {
    color: #334155 !important;
}
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper .dataTables_length label,
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper .dataTables_filter label,
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper .dataTables_info {
    color: #334155 !important;
}
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper .dataTables_length select,
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper .dataTables_filter input {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    color: #0f172a !important;
    box-shadow: none !important;
}
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .10) !important;
    color: #334155 !important;
}
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #fff5ec !important;
    border-color: rgba(255, 131, 56, .35) !important;
    color: #f26732 !important;
}
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #ff7a2f, #ffa34f) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 131, 56, .3) !important;
}
html[data-theme="light"] body.portal-ess-layout .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #cbd5e1 !important;
    background: #f8fafc !important;
}
html[data-theme="light"] body.portal-ess-layout .table > :not(caption) > * > * {
    color: #334155 !important;
    border-color: rgba(15, 23, 42, .06) !important;
}
html[data-theme="light"] body.portal-ess-layout .table thead th,
html[data-theme="light"] body.portal-ess-layout table.dataTable thead th {
    background: #f7fafc !important;
    color: #64748b !important;
    border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
    font-weight: 700;
}
html[data-theme="light"] body.portal-ess-layout .table tbody tr:hover td,
html[data-theme="light"] body.portal-ess-layout table.dataTable tbody tr:hover td {
    background: #f8fafc !important;
}
html[data-theme="light"] body.portal-ess-layout .table-striped tbody tr:nth-of-type(odd) td {
    background: rgba(15, 23, 42, .015) !important;
}

/* ---- Badges ---- */
html[data-theme="light"] body.portal-ess-layout .badge.bg-primary,
html[data-theme="light"] body.portal-ess-layout .badge.badge-primary {
    background: rgba(255, 131, 56, .16) !important;
    color: #b8570e !important;
    border: 1px solid rgba(255, 131, 56, .3) !important;
}
html[data-theme="light"] body.portal-ess-layout .badge.bg-success,
html[data-theme="light"] body.portal-ess-layout .badge.badge-success {
    background: rgba(34, 197, 94, .14) !important;
    color: #15803d !important;
    border: 1px solid rgba(34, 197, 94, .3) !important;
}
html[data-theme="light"] body.portal-ess-layout .badge.bg-warning,
html[data-theme="light"] body.portal-ess-layout .badge.badge-warning {
    background: rgba(245, 158, 11, .14) !important;
    color: #a16207 !important;
    border: 1px solid rgba(245, 158, 11, .3) !important;
}
html[data-theme="light"] body.portal-ess-layout .badge.bg-danger,
html[data-theme="light"] body.portal-ess-layout .badge.badge-danger {
    background: rgba(239, 68, 68, .12) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(239, 68, 68, .3) !important;
}
html[data-theme="light"] body.portal-ess-layout .badge.bg-info,
html[data-theme="light"] body.portal-ess-layout .badge.badge-info {
    background: rgba(59, 130, 246, .12) !important;
    color: #1e40af !important;
    border: 1px solid rgba(59, 130, 246, .3) !important;
}
html[data-theme="light"] body.portal-ess-layout .badge.bg-secondary,
html[data-theme="light"] body.portal-ess-layout .badge.badge-secondary {
    background: rgba(100, 116, 139, .12) !important;
    color: #334155 !important;
    border: 1px solid rgba(100, 116, 139, .28) !important;
}
html[data-theme="light"] body.portal-ess-layout .badge.bg-light,
html[data-theme="light"] body.portal-ess-layout .badge.badge-light {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid rgba(15, 23, 42, .1) !important;
}

/* ---- Alerts ---- */
html[data-theme="light"] body.portal-ess-layout .alert-success,
html[data-theme="light"] body.portal-ess-layout .alert.alert-success {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid rgba(34, 197, 94, .3) !important;
}
html[data-theme="light"] body.portal-ess-layout .alert-warning,
html[data-theme="light"] body.portal-ess-layout .alert.alert-warning {
    background: #fffbeb !important;
    color: #a16207 !important;
    border: 1px solid rgba(245, 158, 11, .3) !important;
}
html[data-theme="light"] body.portal-ess-layout .alert-danger,
html[data-theme="light"] body.portal-ess-layout .alert.alert-danger {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid rgba(239, 68, 68, .3) !important;
}
html[data-theme="light"] body.portal-ess-layout .alert-info,
html[data-theme="light"] body.portal-ess-layout .alert.alert-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid rgba(59, 130, 246, .3) !important;
}
html[data-theme="light"] body.portal-ess-layout .alert-primary,
html[data-theme="light"] body.portal-ess-layout .alert.alert-primary {
    background: #fff5ec !important;
    color: #b8570e !important;
    border: 1px solid rgba(255, 131, 56, .3) !important;
}

/* ---- Buttons: Bootstrap default variants ---- */
html[data-theme="light"] body.portal-ess-layout .btn-primary {
    background: linear-gradient(135deg, #ff7a2f, #ffa34f) !important;
    border: 0 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -8px rgba(255, 131, 56, .5) !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-primary:hover,
html[data-theme="light"] body.portal-ess-layout .btn-primary:focus {
    background: linear-gradient(135deg, #f26732, #ff8f43) !important;
    box-shadow: 0 12px 26px -8px rgba(255, 131, 56, .58) !important;
    color: #ffffff !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-outline-primary {
    background: #ffffff !important;
    border: 1px solid rgba(255, 131, 56, .5) !important;
    color: #f26732 !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-outline-primary:hover {
    background: #fff5ec !important;
    color: #f26732 !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-secondary,
html[data-theme="light"] body.portal-ess-layout .btn-light {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06) !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-secondary:hover,
html[data-theme="light"] body.portal-ess-layout .btn-light:hover {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, .2) !important;
    color: #0f172a !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-outline-secondary {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    color: #334155 !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-outline-secondary:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-danger {
    background: #ef4444 !important;
    border: 0 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -8px rgba(239, 68, 68, .5) !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-danger:hover {
    background: #dc2626 !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-success {
    background: #22c55e !important;
    border: 0 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -8px rgba(34, 197, 94, .5) !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-success:hover {
    background: #16a34a !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-warning {
    background: #f59e0b !important;
    border: 0 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -8px rgba(245, 158, 11, .5) !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-warning:hover {
    background: #d97706 !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-info {
    background: #3b82f6 !important;
    border: 0 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -8px rgba(59, 130, 246, .5) !important;
}
html[data-theme="light"] body.portal-ess-layout .btn-info:hover {
    background: #2563eb !important;
}

/* ---- Tooltips & popovers ---- */
html[data-theme="light"] body.portal-ess-layout .tooltip .tooltip-inner {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
}
html[data-theme="light"] body.portal-ess-layout .tooltip .tooltip-arrow::before {
    border-top-color: #0f172a !important;
    border-bottom-color: #0f172a !important;
    border-left-color: #0f172a !important;
    border-right-color: #0f172a !important;
}
html[data-theme="light"] body.portal-ess-layout .popover {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .10) !important;
    color: #0f172a !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14) !important;
}
html[data-theme="light"] body.portal-ess-layout .popover-header {
    background: #f7fafc !important;
    color: #0f172a !important;
    border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
}
html[data-theme="light"] body.portal-ess-layout .popover-body {
    color: #334155 !important;
}

/* ---- Flatpickr / date picker ---- */
html[data-theme="light"] body.portal-ess-layout .flatpickr-calendar {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .1) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14) !important;
    color: #0f172a !important;
}
html[data-theme="light"] body.portal-ess-layout .flatpickr-months .flatpickr-month,
html[data-theme="light"] body.portal-ess-layout .flatpickr-current-month,
html[data-theme="light"] body.portal-ess-layout .flatpickr-monthDropdown-months,
html[data-theme="light"] body.portal-ess-layout .flatpickr-weekdays {
    background: #ffffff !important;
    color: #0f172a !important;
}
html[data-theme="light"] body.portal-ess-layout .flatpickr-weekday {
    color: #64748b !important;
    background: #f7fafc !important;
}
html[data-theme="light"] body.portal-ess-layout .flatpickr-day {
    color: #334155 !important;
    border-color: transparent !important;
}
html[data-theme="light"] body.portal-ess-layout .flatpickr-day:hover {
    background: #fff5ec !important;
    border-color: rgba(255, 131, 56, .3) !important;
    color: #f26732 !important;
}
html[data-theme="light"] body.portal-ess-layout .flatpickr-day.selected,
html[data-theme="light"] body.portal-ess-layout .flatpickr-day.selected:hover {
    background: linear-gradient(135deg, #ff7a2f, #ffa34f) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}
html[data-theme="light"] body.portal-ess-layout .flatpickr-day.today {
    border-color: rgba(255, 131, 56, .5) !important;
    color: #f26732 !important;
}

/* ---- Empty states / no-data ---- */
html[data-theme="light"] body.portal-ess-layout .empty-state,
html[data-theme="light"] body.portal-ess-layout .no-data {
    color: #64748b !important;
}
html[data-theme="light"] body.portal-ess-layout .empty-state h3,
html[data-theme="light"] body.portal-ess-layout .empty-state strong {
    color: #0f172a !important;
}

/* ---- Pagination (Bootstrap standard) ---- */
html[data-theme="light"] body.portal-ess-layout .pagination .page-link {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .1) !important;
    color: #334155 !important;
}
html[data-theme="light"] body.portal-ess-layout .pagination .page-link:hover {
    background: #fff5ec !important;
    border-color: rgba(255, 131, 56, .35) !important;
    color: #f26732 !important;
}
html[data-theme="light"] body.portal-ess-layout .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #ff7a2f, #ffa34f) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}
html[data-theme="light"] body.portal-ess-layout .pagination .page-item.disabled .page-link {
    color: #cbd5e1 !important;
    background: #f8fafc !important;
}

/* ---- Nav tabs ---- */
html[data-theme="light"] body.portal-ess-layout .nav-tabs {
    border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
}
html[data-theme="light"] body.portal-ess-layout .nav-tabs .nav-link {
    color: #64748b !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
}
html[data-theme="light"] body.portal-ess-layout .nav-tabs .nav-link:hover {
    color: #0f172a !important;
    border-bottom-color: rgba(255, 131, 56, .35) !important;
}
html[data-theme="light"] body.portal-ess-layout .nav-tabs .nav-link.active {
    color: #f26732 !important;
    background: transparent !important;
    border-bottom-color: #f26732 !important;
    font-weight: 700;
}

/* ---- Progress bar ---- */
html[data-theme="light"] body.portal-ess-layout .progress {
    background: #f1f5f9 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05) !important;
}
html[data-theme="light"] body.portal-ess-layout .progress-bar {
    background: linear-gradient(90deg, #ff7a2f, #ffa34f) !important;
}

/* ---- Text muted helpers ---- */
html[data-theme="light"] body.portal-ess-layout .text-muted,
html[data-theme="light"] body.portal-ess-layout .text-secondary {
    color: #64748b !important;
}
html[data-theme="light"] body.portal-ess-layout .text-body {
    color: #0f172a !important;
}
html[data-theme="light"] body.portal-ess-layout .text-primary {
    color: #f26732 !important;
}

/* ---- Portal Leaf page ---- */
html[data-theme="light"] body.portal-ess-layout .portal-leaf-page,
html[data-theme="light"] body.portal-ess-layout .portal-leaf-page * {
    color: #0f172a;
}
html[data-theme="light"] body.portal-ess-layout .portal-leaf-page .card,
html[data-theme="light"] body.portal-ess-layout .portal-leaf-page .card-body {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* ---- Vacations / Module home dashboards ---- */
html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard .card,
html[data-theme="light"] body.portal-ess-layout .module-home-dashboard .card {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
    border: 1px solid rgba(15, 23, 42, .09) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05) !important;
}

/* ---- Bootstrap close button (dark X on light bg) ---- */
html[data-theme="light"] body.portal-ess-layout .btn-close {
    filter: none !important;
    opacity: .7;
}
html[data-theme="light"] body.portal-ess-layout .btn-close:hover {
    opacity: 1;
}

/* ---- ApexCharts (partial theming; more via JS) ---- */
html[data-theme="light"] body.portal-ess-layout .apexcharts-tooltip {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, .1) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12) !important;
}
html[data-theme="light"] body.portal-ess-layout .apexcharts-tooltip-title {
    background: #f7fafc !important;
    color: #0f172a !important;
    border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
    font-weight: 700;
}
html[data-theme="light"] body.portal-ess-layout .apexcharts-legend-text {
    color: #334155 !important;
}
html[data-theme="light"] body.portal-ess-layout .apexcharts-xaxis text,
html[data-theme="light"] body.portal-ess-layout .apexcharts-yaxis text,
html[data-theme="light"] body.portal-ess-layout .apexcharts-datalabel {
    fill: #64748b !important;
}
html[data-theme="light"] body.portal-ess-layout .apexcharts-gridline {
    stroke: rgba(15, 23, 42, .08) !important;
}

/* ---- Sidebar theme toggle icons/buttons at bottom ---- */
html[data-theme="light"] body.portal-ess-layout .enpro-theme-toggle {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .10) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06) !important;
}
html[data-theme="light"] body.portal-ess-layout .enpro-theme-toggle [data-theme-label] {
    color: #0f172a !important;
}
html[data-theme="light"] body.portal-ess-layout .enpro-theme-toggle [data-theme-icon] {
    color: #f26732 !important;
}

/* ---- Cards with orange banner header (used in generic views) ---- */
html[data-theme="light"] body.portal-ess-layout .card > .card-header {
    background: #f7fafc !important;
    border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
    color: #0f172a !important;
}

/* ---- Breadcrumb ---- */
html[data-theme="light"] body.portal-ess-layout .breadcrumb .breadcrumb-item a {
    color: #64748b !important;
}
html[data-theme="light"] body.portal-ess-layout .breadcrumb .breadcrumb-item.active {
    color: #0f172a !important;
}
html[data-theme="light"] body.portal-ess-layout .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e1 !important;
}

/* ---- Modal-backdrop consistent dim ---- */
html[data-theme="light"] body.portal-ess-layout .modal-backdrop {
    background: rgba(15, 23, 42, .32) !important;
    opacity: 1 !important;
}

/* End LIGHT MODE FINAL POLISH v11 */

/* =========================================================
   ENPRO ESS — LIGHT MODE SURFACE NORMALIZATION (v12, 2026-07-27)
   Final light-only layer for legacy dark surfaces inside portal pages.
   ========================================================= */
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) {
    --ess-light-bg: #f7fafb;
    --ess-light-bg-warm: #fff7f0;
    --ess-light-surface: rgba(255, 255, 255, .92);
    --ess-light-surface-solid: #ffffff;
    --ess-light-surface-soft: #f8fbfd;
    --ess-light-border: rgba(15, 23, 42, .10);
    --ess-light-border-strong: rgba(15, 23, 42, .16);
    --ess-light-text: #111827;
    --ess-light-text-soft: #334155;
    --ess-light-muted: #64748b;
    --ess-light-faint: #94a3b8;
    --ess-light-brand: #ff7a2f;
    --ess-light-brand-strong: #e85f18;
    --ess-light-mint: #43d7b4;
    --ess-light-shadow: 0 18px 45px -28px rgba(15, 23, 42, .28);
    --ess-light-shadow-hover: 0 24px 56px -30px rgba(15, 23, 42, .32), 0 16px 34px -26px rgba(255, 122, 47, .36);
    background:
        radial-gradient(circle at 14% 3%, rgba(255, 122, 47, .15), transparent 30rem),
        radial-gradient(circle at 82% 1%, rgba(56, 217, 200, .16), transparent 32rem),
        linear-gradient(180deg, #fbfcfd 0%, #f4f8fa 44%, #f8fafc 100%) !important;
    color: var(--ess-light-text) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .main-wrapper,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .page-wrapper,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content {
    background: transparent !important;
    color: var(--ess-light-text) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .page-wrapper::before,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content::before,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content::after {
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content > [style*="background"],
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content > [style*="background-color"] {
    background: transparent !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.card, .ess-card, .modal-content, .dropdown-menu, .offcanvas, .accordion-item, .tab-content, .list-group-item, .ess-table-wrap, .table-responsive, .workflow-card, .request-card, .request-service-card, .ess-profile-section, .ess-profile-alert, .ess-profile-tabs, .ess-profile-info-card, .ess-profile-team-card, .ess-person-card, .visa-ops-card, .visa-table-scroll-shell, .salary-card, .salary-analytics-card, .report-card, .portal-report-card, .module-card, .module-panel, .employee-ai-panel-card)[style*="background"],
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.card, .ess-card, .modal-content, .dropdown-menu, .offcanvas, .accordion-item, .tab-content, .list-group-item, .ess-table-wrap, .table-responsive, .workflow-card, .request-card, .request-service-card, .ess-profile-section, .ess-profile-alert, .ess-profile-tabs, .ess-profile-info-card, .ess-profile-team-card, .ess-person-card, .visa-ops-card, .visa-table-scroll-shell, .salary-card, .salary-analytics-card, .report-card, .portal-report-card, .module-card, .module-panel, .employee-ai-panel-card)[style*="background-color"] {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(248, 251, 253, .94) 100%) !important;
    color: var(--ess-light-text) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) :is(.bg-dark, .bg-black, .bg-transparent-dark, .bg-secondary, .bg-dark-transparent) {
    background: var(--ess-light-surface-solid) !important;
    color: var(--ess-light-text) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.card, .ess-card, .workflow-card, .request-card, .request-service-card, .module-card, .module-panel, .ess-profile-section, .ess-profile-alert, .ess-profile-tabs, .ess-profile-info-card, .ess-profile-team-card, .ess-person-card, .visa-ops-card, .salary-card, .salary-analytics-card, .report-card, .portal-report-card, .employee-ai-panel-card) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(248, 251, 253, .94) 100%) !important;
    border: 1px solid var(--ess-light-border) !important;
    color: var(--ess-light-text) !important;
    box-shadow: var(--ess-light-shadow) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.ess-card, .card, .workflow-card, .request-card, .request-service-card, .module-card, .module-panel, .ess-profile-info-card, .ess-profile-team-card, .ess-person-card, .visa-ops-card, .salary-card, .salary-analytics-card, .report-card, .portal-report-card):hover {
    transform: translateY(-3px);
    border-color: rgba(255, 122, 47, .28) !important;
    box-shadow: var(--ess-light-shadow-hover) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .card-title, .modal-title, .page-title, label, .form-label, strong, b, th) {
    color: var(--ess-light-text) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(p, small, .text-muted, .text-secondary, .form-text, .help-text, .card-subtitle, .modal-subtitle, .fs-12, .fs-13) {
    color: var(--ess-light-muted) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.text-white, .text-light):not(.btn):not(.badge):not(.ess-btn):not(.dropdown-item):not([class*="bg-"]) {
    color: var(--ess-light-text) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content a:not(.btn):not(.ess-btn):not(.badge) {
    color: var(--ess-light-brand-strong) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(input, textarea, select, .form-control, .form-select, .select2-selection, .select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple) {
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    color: var(--ess-light-text) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(input, textarea, select, .form-control, .form-select, .select2-selection):focus,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(input, textarea, select, .form-control, .form-select, .select2-selection):focus-within {
    border-color: rgba(255, 122, 47, .58) !important;
    box-shadow: 0 0 0 4px rgba(255, 122, 47, .12) !important;
    outline: 0 !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(input, textarea, .form-control)::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(input:disabled, textarea:disabled, select:disabled, .form-control:disabled, .form-select:disabled) {
    background: #eef3f7 !important;
    color: #94a3b8 !important;
    border-color: rgba(15, 23, 42, .10) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .modal .modal-dialog {
    filter: none !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .modal .modal-content {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%) !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    color: var(--ess-light-text) !important;
    box-shadow: 0 30px 90px -36px rgba(15, 23, 42, .42) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .modal .modal-header,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .modal .modal-body,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .modal .modal-footer {
    background: transparent !important;
    color: var(--ess-light-text) !important;
    border-color: rgba(15, 23, 42, .10) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .modal .btn-close,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .modal button[data-bs-dismiss="modal"]:not(.btn):not(.ess-btn),
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .modal .ess-dashboard-request-modal__close {
    background: #eef3f7 !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    color: #334155 !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .modal-backdrop,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .offcanvas-backdrop {
    background: rgba(15, 23, 42, .30) !important;
    opacity: 1 !important;
    backdrop-filter: blur(2px);
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .ess-dashboard-request-modal .modal-content,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) #dashboard_request_modal .modal-content {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 122, 47, .12), transparent 18rem),
        linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .ess-dashboard-request-modal .ess-dashboard-request-card,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) #dashboard_request_modal .ess-dashboard-request-card {
    background:
        linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%) !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    color: var(--ess-light-text) !important;
    box-shadow: 0 16px 36px -26px rgba(15, 23, 42, .28) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .ess-dashboard-request-modal .ess-dashboard-request-card:hover,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) #dashboard_request_modal .ess-dashboard-request-card:hover {
    background:
        linear-gradient(135deg, #fff9f4 0%, #ffffff 58%, #f4fffc 100%) !important;
    border-color: rgba(255, 122, 47, .38) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .ess-dashboard-request-modal .ess-dashboard-request-card__copy strong,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) #dashboard_request_modal .ess-dashboard-request-card__copy strong {
    color: var(--ess-light-text) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .ess-dashboard-request-modal .ess-dashboard-request-card__copy small,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) #dashboard_request_modal .ess-dashboard-request-card__copy small {
    color: var(--ess-light-muted) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.table-responsive, .ess-table-wrap, .dataTables_wrapper, .visa-table-scroll-shell) {
    background: var(--ess-light-surface-solid) !important;
    border: 1px solid var(--ess-light-border) !important;
    color: var(--ess-light-text) !important;
    box-shadow: 0 18px 42px -30px rgba(15, 23, 42, .25) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.table, table),
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.table, table) :is(thead, tbody, tfoot, tr, th, td) {
    background-color: transparent !important;
    color: var(--ess-light-text-soft) !important;
    border-color: rgba(15, 23, 42, .09) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.table, table) thead th,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.table, table) thead td {
    background: #f2f6f9 !important;
    color: #66758a !important;
    border-bottom: 1px solid rgba(15, 23, 42, .10) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.table, table) tbody tr {
    background: #ffffff !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.table, table) tbody tr:nth-child(even) {
    background: #fbfdff !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.table, table) tbody tr:hover,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.table, table) tbody tr:hover td {
    background: #fff4ec !important;
    color: var(--ess-light-text) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive::before,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .table-responsive::after,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .visa-table-scroll-shell::before,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content .visa-table-scroll-shell::after {
    display: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.table-responsive, .ess-table-wrap, .visa-table-scroll-shell)::-webkit-scrollbar-thumb,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.table-responsive, .ess-table-wrap, .visa-table-scroll-shell) *::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffad7a, #f26522) !important;
    border: 3px solid #f8fafc !important;
    border-radius: 999px;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.badge, .status-badge, .badge-soft, .badge-soft-warning, .badge-soft-success, .badge-soft-danger, .badge-soft-info) {
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.ess-btn-secondary, .btn-secondary, .btn-light, .btn-outline-secondary) {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, .14) !important;
    color: #334155 !important;
    box-shadow: 0 10px 22px -18px rgba(15, 23, 42, .28) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.ess-btn-secondary, .btn-secondary, .btn-light, .btn-outline-secondary):hover {
    background: #fff7f0 !important;
    border-color: rgba(255, 122, 47, .36) !important;
    color: var(--ess-light-brand-strong) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.btn-primary, .ess-btn-primary, .ess-btn-accent, .btn-warning) {
    background: linear-gradient(135deg, #ff8b3d, #f26522) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px -20px rgba(242, 101, 34, .65) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-header-search-field {
    background: rgba(255, 255, 255, .86) !important;
    border: 1px solid rgba(15, 23, 42, .13) !important;
    box-shadow: 0 14px 34px -26px rgba(15, 23, 42, .35) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-header-search-field > .portal-header-search-icon,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-header-search-field > .portal-header-search-clear {
    background: rgba(15, 23, 42, .04) !important;
    border-color: rgba(15, 23, 42, .08) !important;
    color: #64748b !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-header-search-field > .form-control {
    background: transparent !important;
    color: var(--ess-light-text) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-header-search-field:focus-within {
    border-color: rgba(255, 122, 47, .42) !important;
    box-shadow: 0 0 0 4px rgba(255, 122, 47, .10), 0 18px 44px -28px rgba(15, 23, 42, .32) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-results {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    box-shadow: 0 22px 54px -28px rgba(15, 23, 42, .34) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-results a,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-results button {
    background: transparent !important;
    color: var(--ess-light-text) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-results a:hover,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-results button:hover,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-results .active {
    background: #fff1e7 !important;
    color: var(--ess-light-brand-strong) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .ess-profile-hero {
    background:
        radial-gradient(circle at 12% 30%, rgba(255, 122, 47, .16), transparent 18rem),
        radial-gradient(circle at 90% 10%, rgba(56, 217, 200, .10), transparent 20rem),
        linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%) !important;
    color: var(--ess-light-text) !important;
    border-color: rgba(15, 23, 42, .12) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .ess-profile-hero :is(h1, h2, h3, strong) {
    color: var(--ess-light-text) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .ess-profile-hero :is(p, small, span:not(.badge):not([class*="icon"])) {
    color: var(--ess-light-muted) !important;
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .content :is(.ess-card, .card, .workflow-card, .request-card, .request-service-card, .module-card, .module-panel, .ess-profile-info-card, .ess-profile-team-card, .ess-person-card, .visa-ops-card, .salary-card, .salary-analytics-card, .report-card, .portal-report-card):hover {
        transform: none;
    }
}

/* End LIGHT MODE SURFACE NORMALIZATION v12 */

/* Light mode refinement v13: dashboard employee card, profile workspace orange theme, and sidebar submenu hover. */
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) {
    --ess-light-brand-strong: #e75f18;
    --ess-light-brand-soft: rgba(255, 122, 47, .13);
    --ess-light-brand-border: rgba(242, 101, 34, .24);
}

html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li > a span:not(.menu-arrow),
html[data-theme="light"] body.portal-ess-layout .sidebar .sidebar-menu > ul > li.submenu > a span:not(.menu-arrow) {
    color: #111827 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar .submenu ul {
    border-inline-start-color: rgba(242, 101, 34, .24) !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar .submenu ul li a,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a {
    min-height: 34px !important;
    padding-inline: 14px !important;
    border-radius: 12px !important;
    color: #334155 !important;
    background: rgba(255, 255, 255, .46) !important;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar .submenu ul li a:hover,
html[data-theme="light"] body.portal-ess-layout .sidebar .submenu ul li a.active,
html[data-theme="light"] body.portal-ess-layout .sidebar .submenu ul li.active > a,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a:hover,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a.active,
html[data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li.active > a {
    color: #e75f18 !important;
    background: linear-gradient(135deg, rgba(255, 122, 47, .16), rgba(255, 247, 240, .92)) !important;
    box-shadow: inset 3px 0 0 rgba(242, 101, 34, .75), 0 10px 24px -22px rgba(242, 101, 34, .55) !important;
    transform: translateX(3px);
}

html[dir="rtl"][data-theme="light"] body.portal-ess-layout .sidebar .submenu ul li a:hover,
html[dir="rtl"][data-theme="light"] body.portal-ess-layout .sidebar .submenu ul li a.active,
html[dir="rtl"][data-theme="light"] body.portal-ess-layout .sidebar .submenu ul li.active > a,
html[dir="rtl"][data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a:hover,
html[dir="rtl"][data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li > a.active,
html[dir="rtl"][data-theme="light"] body.portal-ess-layout .sidebar #sidebar-menu > ul > li > ul > li.active > a {
    box-shadow: inset -3px 0 0 rgba(242, 101, 34, .75), 0 10px 24px -22px rgba(242, 101, 34, .55) !important;
    transform: translateX(-3px);
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card {
    min-height: 372px !important;
    border-color: rgba(242, 101, 34, .24) !important;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 179, 95, .30), transparent 28%),
        radial-gradient(circle at 22% 56%, rgba(242, 101, 34, .14), transparent 30%),
        radial-gradient(circle at 88% 78%, rgba(255, 122, 47, .10), transparent 34%),
        linear-gradient(180deg, #fffaf6 0%, #ffffff 48%, #f8fbfd 100%) !important;
    box-shadow: 0 22px 56px -36px rgba(89, 57, 36, .36), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card::before {
    opacity: .55 !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .36), transparent 44%),
        radial-gradient(circle at 50% 31%, rgba(242, 101, 34, .12), transparent 24%) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card:hover {
    border-color: rgba(242, 101, 34, .42) !important;
    box-shadow: 0 30px 72px -42px rgba(242, 101, 34, .34), inset 0 1px 0 rgba(255, 255, 255, .98) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-profile-hero {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-profile-avatar {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .96), rgba(255, 248, 241, .82)) !important;
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, .88),
        0 0 0 16px rgba(242, 101, 34, .10),
        0 22px 52px -30px rgba(15, 23, 42, .36) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-profile-avatar::after {
    background: radial-gradient(circle, rgba(255, 122, 47, .20), transparent 66%) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-profile-avatar img {
    border-color: rgba(255, 255, 255, .96) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-profile-content {
    border-top: 0 !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .72)) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-profile-copy h5 {
    color: #111827 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-profile-copy p,
html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-profile-copy p span {
    color: #5f6f84 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-profile-details div {
    border-color: rgba(15, 23, 42, .10) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(241, 245, 249, .86)) !important;
    box-shadow: 0 14px 26px -22px rgba(15, 23, 42, .42) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-profile-details span {
    color: #64748b !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-profile-details strong {
    color: #111827 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-dashboard-hero .ess-profile-card .ess-loyalty-trigger {
    background: linear-gradient(135deg, #ff8b3d, #f26522) !important;
    border-color: rgba(242, 101, 34, .48) !important;
    color: #ffffff !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page > .ess-profile-hero {
    background:
        radial-gradient(circle at 9% 38%, rgba(255, 122, 47, .16), transparent 19rem),
        radial-gradient(circle at 86% 12%, rgba(255, 178, 95, .13), transparent 22rem),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 251, 253, .96)) !important;
    border-color: rgba(242, 101, 34, .18) !important;
    box-shadow: 0 30px 78px -50px rgba(15, 23, 42, .30) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-avatar-wrap {
    background: linear-gradient(145deg, rgba(255, 178, 95, .36), rgba(255, 122, 47, .10)) !important;
    border-color: rgba(242, 101, 34, .28) !important;
    box-shadow: 0 24px 70px -36px rgba(242, 101, 34, .52) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-verified {
    background: linear-gradient(135deg, #ff8b3d, #f26522) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 14px 32px -20px rgba(242, 101, 34, .85) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-identity h2 {
    color: #111827 !important;
    font-size: clamp(28px, 3vw, 46px) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-identity p,
html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-identity p * {
    color: #64748b !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-chips span {
    background: rgba(255, 255, 255, .82) !important;
    border-color: rgba(242, 101, 34, .22) !important;
    color: #334155 !important;
    box-shadow: 0 14px 26px -24px rgba(15, 23, 42, .36) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-chips i,
html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-label,
html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-tabs button i {
    color: #f26522 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-sync {
    color: #d35400 !important;
    background: rgba(255, 122, 47, .10) !important;
    border-color: rgba(242, 101, 34, .24) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-tabs {
    background: rgba(255, 255, 255, .82) !important;
    border-color: rgba(15, 23, 42, .10) !important;
    box-shadow: 0 18px 42px -34px rgba(15, 23, 42, .26) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-tabs button {
    color: #526174 !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-tabs button:hover {
    color: #e75f18 !important;
    background: rgba(255, 122, 47, .09) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-tabs button.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff8b3d, #f26522) !important;
    box-shadow: 0 16px 34px -24px rgba(242, 101, 34, .78) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-tabs button.active i,
html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-tabs button.active span {
    color: #ffffff !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-actions button,
html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-otp,
html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-upload-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff8b3d, #f26522) !important;
    border-color: transparent !important;
    box-shadow: 0 16px 34px -24px rgba(242, 101, 34, .72) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-team-card img {
    border-color: rgba(242, 101, 34, .42) !important;
}

html[data-theme="light"] body.portal-ess-layout .ess-profile-page .ess-profile-team-card a:hover {
    color: #ffffff !important;
    background: #f26522 !important;
    border-color: #f26522 !important;
}

/* Light mode refinement v14: header search dropdown and empty state. */
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .header #header-search .portal-header-search-field > .portal-menu-search-results,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-header-search-field > .portal-menu-search-results,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-results {
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 253, .98)) !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    box-shadow: 0 24px 58px -30px rgba(15, 23, 42, .38), 0 8px 22px -18px rgba(242, 101, 34, .35) !important;
    color: #111827 !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-result,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-result span {
    color: #111827 !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-result small {
    color: #6b778c !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-result:hover,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-result.is-active {
    background: linear-gradient(135deg, rgba(255, 122, 47, .14), rgba(255, 247, 241, .94)) !important;
    color: #e75f18 !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-result:hover span,
html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-result.is-active span {
    color: #e75f18 !important;
}

html[data-theme="light"] body.portal-ess-layout:not(.portal-atoms-login) .portal-menu-search-empty {
    display: flex !important;
    align-items: center !important;
    min-height: 56px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    background: rgba(255, 122, 47, .08) !important;
    color: #4b5b70 !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
}

/* Light mode refinement v15: AI assistant panel. */
html[data-theme="light"] body.portal-ess-layout .employee-ai-panel-card {
    overflow: hidden !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 122, 47, .13), transparent 15rem),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 249, 252, .96)) !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    box-shadow: 0 24px 62px -34px rgba(15, 23, 42, .42), 0 8px 24px -18px rgba(242, 101, 34, .32) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-panel-header {
    background: rgba(255, 255, 255, .86) !important;
    border-bottom: 1px solid rgba(15, 23, 42, .10) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-panel-header .fw-semibold {
    color: #111827 !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-panel-header .fs-12,
html[data-theme="light"] body.portal-ess-layout .employee-ai-toggle-head small,
html[data-theme="light"] body.portal-ess-layout .employee-ai-toggle-foot {
    color: #65758b !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-avatar,
html[data-theme="light"] body.portal-ess-layout .employee-ai-bubble-icon,
html[data-theme="light"] body.portal-ess-layout .employee-ai-toggle-icon {
    background: linear-gradient(135deg, #ff8b3d, #f26522) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 26px -18px rgba(242, 101, 34, .70) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-status-dot {
    background: #f26522 !important;
    box-shadow: 0 0 0 4px rgba(242, 101, 34, .14) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-close {
    color: #667085 !important;
    background: rgba(15, 23, 42, .04) !important;
    border: 1px solid rgba(15, 23, 42, .08) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-close:hover {
    color: #e85f1c !important;
    background: #fff1e7 !important;
    border-color: rgba(242, 101, 34, .26) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-shell {
    background: rgba(246, 249, 252, .60) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-bubble {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .10) !important;
    color: #1f2937 !important;
    box-shadow: 0 14px 28px -24px rgba(15, 23, 42, .36) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-bubble .fs-12 {
    color: #7a8798 !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-row.user .employee-ai-bubble {
    background: linear-gradient(135deg, #ff8b3d, #f26522) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-prompts {
    background: transparent !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-prompt {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .10) !important;
    color: #48576b !important;
    box-shadow: 0 10px 20px -20px rgba(15, 23, 42, .38) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-prompt:hover,
html[data-theme="light"] body.portal-ess-layout .employee-ai-prompt:focus-visible {
    background: #fff4ec !important;
    border-color: rgba(242, 101, 34, .34) !important;
    color: #e85f1c !important;
    transform: translateY(-1px);
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-form {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    box-shadow: 0 18px 34px -28px rgba(15, 23, 42, .42) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-form:focus-within {
    border-color: rgba(242, 101, 34, .48) !important;
    box-shadow: 0 0 0 4px rgba(242, 101, 34, .10), 0 18px 34px -28px rgba(242, 101, 34, .40) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-form input {
    color: #111827 !important;
    background: transparent !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-form input::placeholder {
    color: #8793a4 !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-send {
    background: linear-gradient(135deg, #ff8b3d, #f26522) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 26px -18px rgba(242, 101, 34, .66) !important;
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-send:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

html[data-theme="light"] body.portal-ess-layout .employee-ai-toggle {
    background: linear-gradient(135deg, #ff8b3d, #ef5b1a) !important;
    border-color: rgba(255, 255, 255, .72) !important;
    box-shadow: 0 18px 36px -18px rgba(242, 101, 34, .62) !important;
}

/* Light mode refinement v23: vacations dashboard contrast. */
html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard {
    --color-fg-primary: #152033;
    --color-fg-secondary: #334155;
    --color-fg-muted: #64748b;
    --color-surface-3: #eef3f7;
    --color-surface-4: #e2e8f0;
    --color-surface-border-soft: rgba(15, 23, 42, .10);
    color: #152033 !important;
}

html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard :is(.ess-card, .ess-stat, .ess-table-wrap) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 251, 253, .96) 100%) !important;
    border-color: rgba(15, 23, 42, .10) !important;
    color: #152033 !important;
    box-shadow: 0 18px 42px -34px rgba(15, 23, 42, .34) !important;
}

html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard :is(h1, h2, h3, h4, h5, h6, .ess-stat-value, .ess-cell-primary, strong, b, th) {
    color: #152033 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard :is(p, small, .fs-12, .fs-13, .ess-stat-label, td, span):not(.badge):not(.ess-badge):not(.ess-stat-icon):not([class*="bg-"]) {
    color: #64748b !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard .ess-table {
    color: #334155 !important;
    background: transparent !important;
}

html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard .ess-table thead th {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: rgba(15, 23, 42, .10) !important;
}

html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard .ess-table tbody td {
    color: #334155 !important;
    border-color: rgba(15, 23, 42, .08) !important;
}

html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard .ess-table tbody tr:hover td {
    background: #fff7f0 !important;
    color: #152033 !important;
}

html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard .ess-stat-icon:not([style*="color"]) {
    color: #f26522 !important;
    background: #fff1e7 !important;
}

html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard .apexcharts-text,
html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard .apexcharts-datalabel,
html[data-theme="light"] body.portal-ess-layout .vacations-home-dashboard .apexcharts-legend-text {
    fill: #64748b !important;
    color: #64748b !important;
}

/* Temporary feature discovery badge. Visibility is controlled server-side. */
body.portal-ess-layout .sidebar .portal-nav-new-tag {
    flex: 0 0 auto !important;
    min-width: 30px !important;
    width: auto !important;
    height: 18px !important;
    margin-inline-start: auto !important;
    padding: 0 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ff934f, #f26522) !important;
    box-shadow: 0 6px 16px -9px rgba(242, 101, 34, .9) !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
}

html[data-theme="light"] body.portal-ess-layout .sidebar .portal-nav-new-tag {
    border-color: rgba(242, 101, 34, .22) !important;
    color: #9a3c0c !important;
    background: #fff0e7 !important;
    box-shadow: none !important;
}

/* ==================================================================
   PWA: install card + update banner
   Lives here rather than in resources/css/app.css because this file is
   served directly (no Vite build step on the server), and it is loaded
   after app.css so these rules win without !important.
   ================================================================== */
/* ---------- PWA: install card + update banner ----------
   Deliberately not scoped to `.ess`: both live in the shared layout and must
   render on legacy pages too. Each starts `hidden` and is only revealed by
   resources/js/pwa.js when it is genuinely applicable. */
.ess-pwa-install { margin: 0 0 1.25rem; }
.ess-pwa-install[hidden] { display: none !important; }
.ess-pwa-install__card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.15rem;
	border: 1px solid color-mix(in oklab, var(--color-brand-500) 30%, var(--color-surface-border));
	border-radius: var(--radius-ess-lg);
	background:
		radial-gradient(600px 200px at 0% 0%, color-mix(in oklab, var(--color-brand-500) 12%, transparent), transparent 70%),
		var(--color-surface-2);
}
.ess-pwa-install__icon { flex: 0 0 56px; border-radius: 14px; }
.ess-pwa-install__body { flex: 1 1 auto; min-width: 0; }
.ess-pwa-install__title { margin: 0 0 .2rem; color: var(--color-fg-primary); font-size: 1rem; font-weight: 600; }
.ess-pwa-install__text { margin: 0; color: var(--color-fg-secondary); font-size: .8125rem; line-height: 1.55; }
.ess-pwa-install__steps {
	margin: .6rem 0 0;
	padding-inline-start: 1.1rem;
	color: var(--color-fg-secondary);
	font-size: .8125rem;
	line-height: 1.7;
}
.ess-pwa-install__actions { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.ess-pwa-install__btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	height: 40px;
	padding: 0 1rem;
	border: 0;
	border-radius: var(--radius-ess-md);
	background: linear-gradient(135deg, var(--color-brand-400), var(--color-brand-500));
	color: #fff;
	font-size: .8125rem;
	font-weight: 600;
	cursor: pointer;
}
.ess-pwa-install__btn:hover { filter: brightness(1.06); }
.ess-pwa-install__btn[disabled] { opacity: .6; cursor: progress; }
.ess-pwa-install__dismiss {
	height: 40px;
	padding: 0 .75rem;
	border: 1px solid var(--color-surface-border);
	border-radius: var(--radius-ess-md);
	background: transparent;
	color: var(--color-fg-muted);
	font-size: .8125rem;
	cursor: pointer;
}
.ess-pwa-install__dismiss:hover { color: var(--color-fg-primary); }
.ess-pwa-install__close {
	position: absolute;
	inset-block-start: .5rem;
	inset-inline-end: .5rem;
	width: 26px;
	height: 26px;
	display: none;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--color-fg-muted);
	cursor: pointer;
}

/* Phones: a title, a paragraph and two buttons cannot sit in one row at
   360px, so the card stacks and the text dismiss becomes a corner close. */
@media (max-width: 639.98px) {
	.ess-pwa-install__card { flex-wrap: wrap; padding-block: 1.15rem; }
	.ess-pwa-install__icon { flex-basis: 44px; width: 44px; height: 44px; }
	.ess-pwa-install__body { flex: 1 1 100%; order: 2; }
	.ess-pwa-install__actions { flex: 1 1 100%; order: 3; }
	.ess-pwa-install__btn { flex: 1 1 auto; justify-content: center; }
	.ess-pwa-install__dismiss { display: none; }
	.ess-pwa-install__close { display: inline-flex; }
}

.ess-pwa-update {
	position: fixed;
	inset-block-end: 1rem;
	inset-inline-end: 1rem;
	z-index: 12060;
	display: flex;
	align-items: center;
	gap: .6rem;
	max-width: min(420px, calc(100vw - 2rem));
	padding: .7rem .9rem;
	border: 1px solid var(--color-surface-border);
	border-radius: var(--radius-ess-md);
	background: var(--color-surface-3);
	box-shadow: var(--shadow-ess-lg);
	color: var(--color-fg-primary);
	font-size: .8125rem;
}
.ess-pwa-update[hidden] { display: none !important; }
.ess-pwa-update__text { flex: 1 1 auto; }
.ess-pwa-update__btn {
	flex: 0 0 auto;
	height: 32px;
	padding: 0 .8rem;
	border: 0;
	border-radius: 999px;
	background: var(--color-brand-500);
	color: #fff;
	font-size: .75rem;
	font-weight: 600;
	cursor: pointer;
}
.ess-pwa-update__close { flex: 0 0 auto; border: 0; background: transparent; color: var(--color-fg-muted); cursor: pointer; }
