:root,
[data-bs-theme="light"] {
    --highdmin-topbar-height: 64px;
    --brand-white: #ffffff;
    --brand-blue: #2cc8df;
    --brand-blue-rgb: 44, 200, 223;
    --brand-black: #000000;
    --brand-gray: #2e353b;

    --brand-bg: #f3f6f7;
    --brand-surface: #ffffff;
    --brand-surface-soft: #f8fbfc;
    --brand-text: #2e353b;
    --brand-heading: #000000;
    --brand-border: rgba(46, 53, 59, 0.14);
    --brand-border-strong: rgba(46, 53, 59, 0.24);
    --brand-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    --brand-shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.05);

    --site-scrollbar-size: 10px;
    --site-scrollbar-track: rgba(46, 53, 59, 0.12);
    --site-scrollbar-thumb: rgba(44, 200, 223, 0.72);
    --site-scrollbar-thumb-hover: rgba(44, 200, 223, 0.9);

    --site-popup-bg: #ffffff;
    --site-popup-bg-soft: #f6fbfc;
    --site-popup-border: rgba(46, 53, 59, 0.18);
    --site-popup-text: #2e353b;
    --site-popup-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
    --site-popup-accent: #2cc8df;
    --site-panel-header-bg: rgba(44, 200, 223, 0.14);
    --site-field-border: rgba(44, 200, 223, 0.9);
    --site-picker-filter: brightness(0) saturate(100%) invert(14%) sepia(8%) saturate(475%) hue-rotate(165deg) brightness(95%) contrast(90%);

    --highdmin-blue: #2cc8df;
    --highdmin-primary: #2cc8df;
    --highdmin-primary-rgb: 44, 200, 223;
    --highdmin-link-color: #2cc8df;
    --highdmin-link-color-rgb: 44, 200, 223;
    --highdmin-link-hover-color: #19bad1;
    --highdmin-link-hover-color-rgb: 25, 186, 209;

    --highdmin-body-bg: #f3f6f7;
    --highdmin-body-bg-rgb: 243, 246, 247;
    --highdmin-font-sans-serif: "Inter", sans-serif;
    --highdmin-body-font-family: var(--highdmin-font-sans-serif);
    --highdmin-body-color: #2e353b;
    --highdmin-body-color-rgb: 46, 53, 59;
    --highdmin-heading-color: #000000;
    --highdmin-secondary-color: rgba(46, 53, 59, 0.72);
    --highdmin-secondary-bg: #ffffff;
    --highdmin-tertiary-bg: #f8fbfc;
    --highdmin-border-color: rgba(46, 53, 59, 0.14);
    --highdmin-border-color-translucent: rgba(46, 53, 59, 0.14);
    --highdmin-box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);

    --highdmin-menu-bg: #fbfcfd;
    --highdmin-content-bg: #ffffff;
    --highdmin-sidenav-divider: rgba(46, 53, 59, 0.14);
    --highdmin-menu-item-color: #2e353b;
    --highdmin-menu-item-hover-color: #000000;
    --highdmin-menu-item-hover-bg: rgba(44, 200, 223, 0.14);
    --highdmin-menu-item-active-color: #000000;
    --highdmin-menu-item-active-bg: rgba(44, 200, 223, 0.22);

    --highdmin-topbar-bg: #ffffff;
    --highdmin-topbar-item-color: #2e353b;
    --highdmin-topbar-item-hover-color: #000000;
    --highdmin-topbar-search-bg: #f2f7f9;
    --highdmin-topbar-divider: rgba(148, 163, 184, 0.38);
}

[data-bs-theme="dark"] {
    --highdmin-topbar-height: 64px;
    --brand-bg: #1a1a1e;
    --brand-surface: #232328;
    --brand-surface-soft: #171c20;
    --brand-text: #e5edf0;
    --brand-heading: #ffffff;
    --brand-border: rgba(229, 237, 240, 0.22);
    --brand-border-strong: rgba(229, 237, 240, 0.32);
    --brand-shadow: 0 18px 40px rgba(0, 0, 0, 0.56);
    --brand-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.44);

    --site-scrollbar-track: rgba(44, 200, 223, 0.16);
    --site-scrollbar-thumb: rgba(44, 200, 223, 0.74);
    --site-scrollbar-thumb-hover: rgba(44, 200, 223, 0.92);

    --site-popup-bg: #232328;
    --site-popup-bg-soft: #171c20;
    --site-popup-border: rgba(229, 237, 240, 0.24);
    --site-popup-text: #e5edf0;
    --site-popup-shadow: 0 20px 44px rgba(0, 0, 0, 0.62);
    --site-popup-accent: #2cc8df;
    --site-panel-header-bg: #333338;
    --site-field-border: #b8c0c8;
    --site-picker-filter: brightness(0) saturate(100%) invert(97%) sepia(12%) saturate(368%) hue-rotate(164deg) brightness(95%) contrast(96%);

    --highdmin-blue: #2cc8df;
    --highdmin-primary: #2cc8df;
    --highdmin-primary-rgb: 44, 200, 223;
    --highdmin-link-color: #2cc8df;
    --highdmin-link-color-rgb: 44, 200, 223;
    --highdmin-link-hover-color: #62d6e8;
    --highdmin-link-hover-color-rgb: 98, 214, 232;

    --highdmin-body-bg: #1a1a1e;
    --highdmin-body-bg-rgb: 26, 26, 30;
    --highdmin-font-sans-serif: "Inter", sans-serif;
    --highdmin-body-font-family: var(--highdmin-font-sans-serif);
    --highdmin-body-color: #e5edf0;
    --highdmin-body-color-rgb: 229, 237, 240;
    --highdmin-heading-color: #ffffff;
    --highdmin-secondary-color: rgba(229, 237, 240, 0.76);
    --highdmin-secondary-bg: #232328;
    --highdmin-tertiary-bg: #171c20;
    --highdmin-border-color: rgba(229, 237, 240, 0.24);
    --highdmin-border-color-translucent: rgba(229, 237, 240, 0.24);
    --highdmin-box-shadow: 0 18px 40px rgba(0, 0, 0, 0.56);

    --highdmin-menu-bg: #121214;
    --highdmin-content-bg: #1a1a1e;
    --highdmin-sidenav-divider: rgba(229, 237, 240, 0.24);
    --highdmin-menu-item-color: #d9e4e8;
    --highdmin-menu-item-hover-color: #ffffff;
    --highdmin-menu-item-hover-bg: rgba(44, 200, 223, 0.18);
    --highdmin-menu-item-active-color: #ffffff;
    --highdmin-menu-item-active-bg: rgba(44, 200, 223, 0.26);

    --highdmin-topbar-bg: #121214;
    --highdmin-topbar-item-color: #e5edf0;
    --highdmin-topbar-item-hover-color: #ffffff;
    --highdmin-topbar-search-bg: #252c31;
    --highdmin-topbar-divider: rgba(148, 163, 184, 0.34);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--site-scrollbar-thumb) var(--site-scrollbar-track);
}

*::-webkit-scrollbar {
    width: var(--site-scrollbar-size);
    height: var(--site-scrollbar-size);
}

*::-webkit-scrollbar-track {
    border-radius: 12px;
    background: var(--site-scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    border-radius: 12px;
    border: 2px solid transparent;
    background-clip: padding-box;
    background: var(--site-scrollbar-thumb);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--site-scrollbar-thumb-hover);
}

.simplebar-scrollbar:before {
    background: var(--site-scrollbar-thumb) !important;
    border-radius: 10px;
    opacity: 0.62 !important;
}

.simplebar-track.simplebar-vertical {
    width: 12px;
}

.simplebar-track.simplebar-horizontal {
    height: 12px;
}

body {
    font-family: var(--highdmin-body-font-family);
    color: var(--brand-text);
    background-color: var(--brand-bg);
}

[data-bs-theme="light"] body {
    background-image: none;
    background-color: #ffffff;
}

[data-bs-theme="dark"] body {
    background-image: none;
    background-color: #1a1a1e;
}

.color-line,
.app-topbar,
.topnav {
    position: sticky !important;
}

.color-line {
    top: 0 !important;
    z-index: 1100;
    background: linear-gradient(90deg,
        #2cc8df 0%,
        #2cc8df 60%,
        #7CB342 60%,
        #7CB342 70%,
        #DC2626 70%,
        #DC2626 80%,
        #F59E0C 80%,
        #F59E0C 90%,
        #B4530A 90%,
        #B4530A 100%) !important;
}

.app-topbar {
    top: 5px !important;
    z-index: 1055 !important;
    background: var(--highdmin-topbar-bg) !important;
    border-bottom: 1px solid var(--highdmin-topbar-divider);
    box-shadow: var(--brand-shadow-soft);
    overflow: visible !important;
}

.app-topbar .topbar-menu,
.app-topbar .dropdown {
    overflow: visible !important;
}

.app-topbar .dropdown-menu {
    z-index: 1060 !important;
}

.topnav {
    top: calc(var(--highdmin-topbar-height) + 5px) !important;
}


.sidenav-menu {
    background: var(--highdmin-menu-bg) !important;
    border-left: 0 !important;
    border-right: 1px solid var(--highdmin-topbar-divider) !important;
    box-shadow: none !important;
    z-index: 1100 !important;
    overflow: hidden !important;
    isolation: isolate;
    position: fixed;
    display: flex;
    flex-direction: column;
}

.sidenav-menu::before,
.sidenav-menu::after {
    content: "";
    position: absolute;
    top: 0;
    width: 6px;
    height: 100%;
    background: var(--highdmin-menu-bg);
    pointer-events: none;
    z-index: 5;
}

.sidenav-menu::before {
    left: 0;
}

.sidenav-menu::after {
    right: 0;
}

.sidenav-menu .simplebar-track.simplebar-vertical,
.sidenav-menu .simplebar-track.simplebar-horizontal {
    display: none !important;
}


.sidenav-menu [data-simplebar],
.sidenav-menu .simplebar-content-wrapper,
.sidenav-menu .simplebar-content,
.sidenav-menu .side-nav {
    background: var(--highdmin-menu-bg) !important;
}

.sidenav-menu .button-sm-hover {
    display: none !important;
}

.sidenav-menu .logo {
    justify-content: center;
    align-items: center;
    padding: 18px 16px 16px !important;
}

.sidenav-menu .logo .logo-lg {
    width: 100%;
    justify-content: center;
}


[data-bs-theme="dark"] .sidenav-menu .logo .logo-light {
    display: none !important;
}

[data-bs-theme="dark"] .sidenav-menu .logo .logo-dark {
    display: inline-flex !important;
}

[data-bs-theme="light"] .sidenav-menu .logo .logo-light {
    display: inline-flex !important;
}

[data-bs-theme="light"] .sidenav-menu .logo .logo-dark {
    display: none !important;
}

html[data-bs-theme="dark"][data-menu-color="dark"] .sidenav-menu .logo .logo-light {
    display: none !important;
}

html[data-bs-theme="dark"][data-menu-color="dark"] .sidenav-menu .logo .logo-dark {
    display: inline-flex !important;
}
.sidenav-menu .logo .logo-lg img[data-branding-logo^="main-"],
.app-topbar .logo .logo-lg img[data-branding-logo^="main-"] {
    height: 44px !important;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

.sidenav-nav-shell {
    flex: 1 1 auto;
    min-height: 0;
}

.sidenav-menu .sidenav-nav-shell .simplebar-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px 0 20px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
}

.auth-brand img[data-branding-logo^="main-"] {
    height: 72px !important;
    width: auto;
    max-width: min(100%, 320px);
    object-fit: contain;
}

.page-content {
    position: relative;
    z-index: 1;
    background: var(--highdmin-content-bg);
}

@media (max-width: 767.98px) {
    .sidenav-menu .logo {
        padding: 0 8px !important;
    }

    .sidenav-menu .logo .logo-lg img[data-branding-logo^="main-"],
    .app-topbar .logo .logo-lg img[data-branding-logo^="main-"] {
        height: 36px !important;
        max-width: 150px;
    }

    .auth-brand img[data-branding-logo^="main-"] {
        height: 58px !important;
        max-width: min(100%, 240px);
    }
}

@media (min-width: 1141px) {
    html:not([data-layout="topnav"]):not([data-sidenav-size="full"]):not([data-sidenav-size="fullscreen"]) .page-content,
    html:not([data-layout="topnav"]):not([data-sidenav-size="full"]):not([data-sidenav-size="fullscreen"]) .app-topbar {
        margin-left: var(--highdmin-sidenav-width) !important;
    }
}

.side-nav .side-nav-link {
    position: relative;
    border-radius: 10px;
    margin: 3px 10px;
    color: var(--highdmin-menu-item-color) !important;
    border: 0;
    background: transparent !important;
    transition: color 0.22s ease, transform 0.22s ease;
    padding-bottom: 18px;
}

.side-nav .side-nav-link::after {
    content: "";
    position: absolute;
    left: 56px;
    right: 30px;
    bottom: 2px;
    height: 3px;
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg,
        #2cc8df 0%, #2cc8df 60%,
        #7CB342 60%, #7CB342 70%,
        #DC2626 70%, #DC2626 80%,
        #F59E0C 80%, #F59E0C 90%,
        #B4530A 90%, #B4530A 100%);
    background-size: 220% 100%;
}

.side-nav .side-nav-link:hover,
.side-nav .side-nav-link:focus {
    color: var(--highdmin-menu-item-hover-color) !important;
    transform: translateX(2px);
}

.side-nav .side-nav-link:hover::after,
.side-nav .side-nav-link:focus::after {
    opacity: 1;
    transform: scaleX(1);
    animation: sideNavLineCycle 0.85s ease-out 1 forwards;
}

.side-nav .side-nav-item.menuitem-active > .side-nav-link,
.side-nav .side-nav-link.active {
    color: var(--highdmin-menu-item-active-color) !important;
    background: transparent !important;
}

.side-nav .side-nav-item.menuitem-active > .side-nav-link::after,
.side-nav .side-nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
    animation: sideNavLineCycle 0.85s ease-out 1;
    background: linear-gradient(90deg,
        #2cc8df 0%, #2cc8df 60%,
        #7CB342 60%, #7CB342 70%,
        #DC2626 70%, #DC2626 80%,
        #F59E0C 80%, #F59E0C 90%,
        #B4530A 90%, #B4530A 100%);
    background-size: 100% 100%;
}

@keyframes sideNavLineCycle {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.dropdown-menu,
.modal-content,
.popover,
dialog,
.select2-dropdown,
.flatpickr-calendar,
.swal2-popup,
.offcanvas,
.card,
.accordion-item,
.list-group-item {
    background: linear-gradient(160deg, var(--site-popup-bg), var(--site-popup-bg-soft)) !important;
    color: var(--site-popup-text);
    border: 1px solid var(--site-popup-border) !important;
    box-shadow: var(--site-popup-shadow) !important;
}

[data-bs-theme="light"] .card,
[data-bs-theme="light"] .offcanvas,
[data-bs-theme="light"] .accordion-item,
[data-bs-theme="light"] .list-group-item,
[data-bs-theme="light"] .table-responsive,
[data-bs-theme="light"] .overview-panel,
[data-bs-theme="light"] .overview-head,
[data-bs-theme="light"] .nine-box,
[data-bs-theme="light"] .team-card {
    border: 1px solid var(--brand-border) !important;
    box-shadow: var(--brand-shadow) !important;
}

.card-header,
.accordion-button,
.offcanvas-header,
.modal-header {
    border-color: var(--site-popup-border) !important;
    background: linear-gradient(180deg, rgba(44, 200, 223, 0.14), rgba(255, 255, 255, 0)) !important;
}

[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .accordion-button,
[data-bs-theme="dark"] .offcanvas-header,
[data-bs-theme="dark"] .modal-header {
    background: var(--site-panel-header-bg) !important;
}

.dropdown-item,
.modal-title,
.popover-header,
.popover-body,
.swal2-title,
.swal2-html-container,
.swal2-footer,
.table,
.table thead th,
.table tbody td,
.breadcrumb-item {
    color: var(--site-popup-text) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title {
    color: var(--brand-heading) !important;
}

.text-muted {
    color: rgba(var(--highdmin-body-color-rgb), 0.72) !important;
}

.popover-header,
.modal-header,
.modal-footer,
.swal2-footer,
.dropdown-divider,
.table > :not(caption) > * > * {
    border-color: var(--site-popup-border) !important;
}

.btn-primary,
.swal2-styled.swal2-confirm {
    background: linear-gradient(130deg, #2cc8df, #57d6e8) !important;
    border-color: rgba(44, 200, 223, 0.75) !important;
    color: #000000 !important;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus,
.swal2-styled.swal2-confirm:hover,
.swal2-styled.swal2-confirm:focus {
    background: linear-gradient(130deg, #1dbbd2, #48cfe3) !important;
    border-color: rgba(44, 200, 223, 0.9) !important;
    color: #000000 !important;
}

.btn-outline-primary {
    color: #2cc8df !important;
    border-color: rgba(44, 200, 223, 0.58) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #000000 !important;
    background: rgba(44, 200, 223, 0.9) !important;
    border-color: rgba(44, 200, 223, 0.9) !important;
}

.form-control,
.form-select,
.select2-container .select2-selection,
.choices__inner,
.input-group-text {
    color: var(--site-popup-text) !important;
    background-color: var(--brand-surface) !important;
    border-color: var(--site-popup-border) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .select2-container .select2-selection,
[data-bs-theme="dark"] .choices__inner,
[data-bs-theme="dark"] .input-group-text {
    background-color: #252c31 !important;
}

.form-control:focus,
.form-select:focus,
.select2-container--focus .select2-selection,
.choices[data-type*="select-one"].is-focused .choices__inner,
.choices.is-focused .choices__inner {
    border-color: var(--site-field-border) !important;
    box-shadow: 0 0 0 0.2rem rgba(184, 192, 200, 0.24) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: var(--site-picker-filter);
    opacity: 0.9;
}

.swal2-styled.swal2-cancel {
    background: rgba(46, 53, 59, 0.16) !important;
    color: var(--site-popup-text) !important;
    border: 1px solid var(--site-popup-border) !important;
}

[data-bs-theme="dark"] .swal2-styled.swal2-cancel {
    background: rgba(44, 200, 223, 0.18) !important;
}

a,
.nav-link,
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--highdmin-link-color);
}

a:hover,
.nav-link:hover,
.nav-link:focus {
    color: var(--highdmin-link-hover-color);
}

::selection {
    color: #000000;
    background: rgba(44, 200, 223, 0.72);
}

/* Dark-mode repair pass */
.app-topbar {
    margin-bottom: 12px;
}

.page-content .page-container {
    padding-top: 2px;
}

[data-bs-theme="dark"] body {
    background-color: #1a1a1e !important;
    background-image: none !important;
    color: #e5edf0 !important;
}

[data-bs-theme="dark"] .app-topbar {
    position: sticky !important;
    top: 5px !important;
    background: #121214 !important;
    border-bottom: 1px solid var(--highdmin-topbar-divider) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45) !important;
}

[data-bs-theme="dark"] .sidenav-menu {
    background: #121214 !important;
    border-left: 0 !important;
    border-right: 1px solid var(--highdmin-topbar-divider) !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .sidenav-menu [data-simplebar],
[data-bs-theme="dark"] .sidenav-menu .simplebar-content-wrapper,
[data-bs-theme="dark"] .sidenav-menu .simplebar-content,
[data-bs-theme="dark"] .sidenav-menu .side-nav {
    background: #121214 !important;
}


[data-bs-theme="dark"] .page-content {
    background: #1a1a1e !important;
}

[data-bs-theme="dark"] .side-nav .side-nav-link {
    color: #d9e4e8 !important;
}

[data-bs-theme="dark"] .side-nav .side-nav-link:hover,
[data-bs-theme="dark"] .side-nav .side-nav-link:focus {
    background: transparent !important;
}

[data-bs-theme="dark"] .side-nav .side-nav-item.menuitem-active > .side-nav-link,
[data-bs-theme="dark"] .side-nav .side-nav-link.active {
    background: transparent !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .offcanvas,
[data-bs-theme="dark"] .accordion-item,
[data-bs-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .popover,
[data-bs-theme="dark"] .table-responsive {
    background: #232328 !important;
    border-color: var(--site-popup-border) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42) !important;
}

[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .accordion-button,
[data-bs-theme="dark"] .offcanvas-header,
[data-bs-theme="dark"] .modal-header {
    background: var(--site-panel-header-bg) !important;
    border-color: var(--site-popup-border) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .select2-container .select2-selection,
[data-bs-theme="dark"] .choices__inner,
[data-bs-theme="dark"] .input-group-text {
    background-color: #171c20 !important;
    color: #e5edf0 !important;
    border-color: var(--site-field-border) !important;
}

[data-bs-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] textarea::placeholder {
    color: rgba(229, 237, 240, 0.62) !important;
}

[data-bs-theme="dark"] .table,
[data-bs-theme="dark"] .table thead th,
[data-bs-theme="dark"] .table tbody td {
    color: #e5edf0 !important;
    border-color: rgba(44, 200, 223, 0.2) !important;
}

[data-bs-theme="dark"] .text-muted {
    color: rgba(229, 237, 240, 0.68) !important;
}

@media (max-width: 575.98px) {
    #topbar-notification-dropdown .dropdown-menu {
        position: fixed !important;
        top: calc(var(--highdmin-topbar-height) + 12px) !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 1rem) !important;
        transform: none !important;
        margin: 0 !important;
    }

    #topbar-notification-dropdown .dropdown-item.notification-item {
        white-space: normal !important;
        word-break: break-word;
    }
}

/* Notification avatars for review items (page + topbar dropdown) */
.hr-notif-avatar-stack {
    position: relative;
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    overflow: visible;
}

.hr-notif-avatar-skeleton {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid var(--highdmin-border-color);
    background:
        linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%),
        var(--highdmin-secondary-bg);
    background-size: 220% 100%, 100% 100%;
    animation: hrNotifAvatarShimmer 1.1s linear infinite;
    box-shadow: 0 6px 16px rgba(46, 53, 59, 0.10);
    z-index: 0;
}

.hr-notif-avatar-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--highdmin-border-color);
    box-shadow: 0 6px 16px rgba(46, 53, 59, 0.14);
    background: var(--highdmin-secondary-bg);
    opacity: 0;
    transition: opacity .18s ease;
}

.hr-notif-avatar-stack.is-loaded .hr-notif-avatar-image {
    opacity: 1;
}

.hr-notif-avatar-stack.is-loaded .hr-notif-avatar-skeleton {
    opacity: 0;
    animation: none;
    pointer-events: none;
}

.hr-notif-avatar-badge {
    position: absolute;
    right: -0.15rem;
    bottom: -0.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(46, 53, 59, 0.18);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
    font-size: 0.65rem;
    line-height: 1;
    z-index: 2;
}

[data-bs-theme="dark"] .hr-notif-avatar-badge {
    background: #232328;
    border-color: rgba(229, 237, 240, 0.28);
}

#topbar-notification-list .hr-notif-avatar-stack {
    width: 2.25rem;
    height: 2.25rem;
}

@keyframes hrNotifAvatarShimmer {
    0% { background-position: 200% 0, 0 0; }
    100% { background-position: -20% 0, 0 0; }
}


/* Ensure full sidebar shell (including logo panel) uses the requested dark shade */
:root[data-menu-color="dark"],
:root[data-bs-theme="dark"][data-menu-color="dark"],
:root[data-bs-theme="dark"][data-menu-color="light"] {
    --highdmin-menu-bg: #121214;
}

html[data-menu-color="dark"] .sidenav-menu,
html[data-bs-theme="dark"] .sidenav-menu,
html[data-menu-color="dark"] .sidenav-menu .logo,
html[data-bs-theme="dark"] .sidenav-menu .logo,
html[data-menu-color="dark"] .sidenav-menu .simplebar-mask,
html[data-menu-color="dark"] .sidenav-menu .simplebar-offset,
html[data-bs-theme="dark"] .sidenav-menu .simplebar-mask,
html[data-bs-theme="dark"] .sidenav-menu .simplebar-offset {
    background: #121214 !important;
}

/* Footer divider above copyright and links */
.footer {
    border-top-color: #e5e7eb;
}
