:root {
    --luster-teal: #149ca0;
    --luster-teal-dark: #0f767a;
    --luster-teal-soft: #e9fbfb;
    --luster-burgundy: #8a0f45;
    --luster-ink: #1f2937;
    --luster-muted: #6b7280;
    --luster-line: #e5ebf3;
    --luster-page: #f4f7fb;
    --luster-surface: #ffffff;
    --luster-sidebar: #20243b;
    --luster-sidebar-deep: #171a2b;
    --luster-warning: #d9961a;
    --luster-danger: #d94b57;
    --luster-success: #16a36b;
    --luster-info: #3380cc;
    --luster-radius: 8px;
    --luster-shadow: 0 12px 32px rgba(24, 39, 75, .08);
    --luster-shadow-sm: 0 6px 18px rgba(24, 39, 75, .06);
}

html,
body {
    min-height: 100%;
}

body {
    color: var(--luster-ink);
    background: var(--luster-page);
    font-family: "Cairo", "Tajawal", "DM Sans", sans-serif;
}

.luster-dashboard #content-wrapper,
.luster-dashboard #content {
    background: var(--luster-page);
}

.luster-page-shell {
    max-width: 1500px;
    padding: 0 1.35rem 2rem;
}

.luster-page-shell > .row:first-child h1,
.luster-page-title {
    margin: 0 0 1.25rem;
    color: var(--luster-ink) !important;
    font-size: 1.45rem;
    font-weight: 800;
}

.luster-page-shell > .row:first-child {
    align-items: center;
}

.luster-dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
    background: #fff;
    border: 1px solid var(--luster-line);
    border-radius: var(--luster-radius);
    box-shadow: var(--luster-shadow-sm);
}

.luster-dashboard-heading h1 {
    margin: 0;
    color: var(--luster-ink);
    font-size: 1.45rem;
    font-weight: 900;
}

.luster-dashboard-heading p {
    margin: .25rem 0 0;
    color: var(--luster-muted);
    font-size: .92rem;
}

.luster-dashboard-heading .luster-heading-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: var(--luster-teal-dark);
    background: var(--luster-teal-soft);
    border-radius: 999px;
}

.luster-topbar {
    min-height: 4rem;
    margin-bottom: 1.5rem !important;
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid rgba(229, 235, 243, .9);
    box-shadow: 0 10px 28px rgba(24, 39, 75, .06) !important;
    backdrop-filter: blur(10px);
}

.luster-topbar .nav-link {
    height: 3.25rem !important;
    color: var(--luster-muted) !important;
}

.luster-topbar .nav-link:hover {
    color: var(--luster-teal) !important;
}

.luster-topbar .badge-counter {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: .24rem .36rem !important;
    background: var(--luster-burgundy);
    border: 2px solid #fff;
    border-radius: 999px !important;
    transform: translate(30%, -28%);
}

.luster-topbar .img-profile {
    width: 2.3rem;
    height: 2.3rem;
    object-fit: cover;
    border: 2px solid var(--luster-teal-soft);
    box-shadow: 0 4px 14px rgba(20, 156, 160, .18);
}

.luster-topbar .topbar-divider {
    border-color: var(--luster-line);
}

.sidebar {
    background: var(--luster-sidebar) !important;
    border-left: 1px solid rgba(255, 255, 255, .07);
    box-shadow: -14px 0 34px rgba(17, 24, 39, .12);
}

.sidebar .sidebar-brand {
    height: auto;
    padding: 1.4rem 1rem 1.1rem;
    margin: 0 !important;
    background: var(--luster-sidebar-deep);
}

.sidebar .sidebar-brand img {
    width: 72% !important;
    max-width: 120px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .24));
}

.sidebar hr.sidebar-divider {
    margin: .65rem 1rem;
    border-color: rgba(255, 255, 255, .08);
}

.sidebar .nav-item {
    margin: .15rem .65rem;
    border-radius: var(--luster-radius);
}

.sidebar .nav-item.active,
.sidebar .nav-item:hover {
    background: rgba(20, 156, 160, .14) !important;
}

.sidebar .nav-item.active {
    box-shadow: inset -3px 0 0 var(--luster-teal);
}

.sidebar .nav-item .nav-link {
    width: 100%;
    padding: .72rem .85rem !important;
    color: rgba(255, 255, 255, .72) !important;
    border-radius: var(--luster-radius);
}

.sidebar .nav-item .nav-link i {
    width: 1.35rem;
    margin-left: .45rem;
    color: rgba(255, 255, 255, .5);
    text-align: center;
}

.sidebar .nav-item.active .nav-link,
.sidebar .nav-item .nav-link:hover,
.sidebar .nav-item.active .nav-link i,
.sidebar .nav-item .nav-link:hover i {
    color: #fff !important;
}

.sidebar .nav-item .nav-link span {
    font-size: .88rem;
    font-weight: 700;
}

.sidebar .collapse-inner {
    padding: .45rem !important;
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(229, 235, 243, .8);
    border-radius: var(--luster-radius) !important;
    box-shadow: var(--luster-shadow-sm);
}

.sidebar .collapse-item {
    padding: .65rem .85rem !important;
    margin: .08rem 0;
    color: var(--luster-ink) !important;
    font-weight: 700;
    border-radius: 6px !important;
}

.sidebar .collapse-item:hover {
    color: var(--luster-teal-dark) !important;
    background: var(--luster-teal-soft) !important;
}

.card,
.modal-content,
.dropdown-menu,
.swal2-popup {
    border: 1px solid var(--luster-line) !important;
    border-radius: var(--luster-radius) !important;
    box-shadow: var(--luster-shadow) !important;
}

.card {
    overflow: hidden;
    background: var(--luster-surface);
}

.card-header {
    padding: 1rem 1.15rem;
    background: #fbfdff;
    border-bottom: 1px solid var(--luster-line);
}

.card-header h6,
.card-header .m-0 {
    color: var(--luster-ink) !important;
    font-size: 1rem;
    font-weight: 800;
}

.card-body {
    padding: 1.15rem;
}

.dashboard-page {
    margin-bottom: .3rem;
}

.dashboard-page .card {
    min-height: 118px;
    border-right: 0 !important;
    border-left: 0 !important;
    transition: transform .16s ease, box-shadow .16s ease;
}

.dashboard-page .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(24, 39, 75, .11) !important;
}

.dashboard-page .card::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    content: "";
    background: var(--luster-teal);
}

.dashboard-page .border-left-primary::before {
    background: var(--luster-info);
}

.dashboard-page .border-left-warning::before {
    background: var(--luster-warning);
}

.dashboard-page .border-left-info::before {
    background: var(--luster-burgundy);
}

.dashboard-page .card .h4 {
    color: var(--luster-muted) !important;
    font-size: .86rem;
    font-weight: 800;
}

.dashboard-page .card .h5 {
    color: var(--luster-ink) !important;
    font-size: 1.55rem;
    font-weight: 900;
}

.dashboard-page .card .fa-2x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: var(--luster-teal) !important;
    background: var(--luster-teal-soft);
    border-radius: 999px;
}

.luster-section {
    padding: 1.15rem;
    margin-bottom: 1.35rem;
    background: #fff;
    border: 1px solid var(--luster-line);
    border-radius: var(--luster-radius);
    box-shadow: var(--luster-shadow-sm);
}

.row.luster-section {
    margin-right: 0;
    margin-left: 0;
}

.luster-section .card-body {
    padding: 0;
}

.luster-section-title,
.luster-page-shell h5 {
    margin: 0 0 1rem;
    color: var(--luster-ink);
    font-size: 1rem;
    font-weight: 900;
}

hr {
    border-color: var(--luster-line);
}

.table-responsive {
    padding: 0;
    background: #fff;
    border: 1px solid var(--luster-line);
    border-radius: var(--luster-radius);
    box-shadow: var(--luster-shadow-sm);
}

.table {
    margin-bottom: 0;
    color: var(--luster-ink);
}

.table-bordered,
.table-bordered td,
.table-bordered th {
    border-color: var(--luster-line) !important;
}

.table thead th {
    padding: .95rem .85rem;
    color: #374151;
    font-size: .82rem;
    font-weight: 900;
    white-space: nowrap;
    background: #f8fafc;
    border-bottom-width: 1px !important;
}

.table tbody td {
    padding: .85rem;
    color: #4b5563;
    vertical-align: middle;
    background: #fff;
}

.table tbody tr:hover td {
    background: #fbfefe;
}

.table img {
    max-width: 72px;
    max-height: 72px;
    object-fit: cover;
    border: 1px solid var(--luster-line);
    border-radius: 8px;
}

.table td .btn,
.table td form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
}

.table td form {
    margin-bottom: 0;
}

.dataTables_wrapper {
    color: var(--luster-muted);
}

.dataTables_wrapper .row:first-child,
.dataTables_wrapper .row:last-child {
    align-items: center;
    padding: .95rem 1rem;
    margin: 0;
    background: #fff;
}

.dataTables_wrapper .row:first-child {
    border: 1px solid var(--luster-line);
    border-bottom: 0;
    border-radius: var(--luster-radius) var(--luster-radius) 0 0;
}

.dataTables_wrapper .row:last-child {
    border: 1px solid var(--luster-line);
    border-top: 0;
    border-radius: 0 0 var(--luster-radius) var(--luster-radius);
}

.dataTables_wrapper .table-responsive {
    border-radius: 0;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin: 0;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.form-control,
.custom-select,
.select2-container--default .select2-selection--single {
    min-height: 42px;
    color: var(--luster-ink);
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus,
.custom-select:focus,
.dataTables_wrapper .dataTables_filter input:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--luster-teal) !important;
    box-shadow: 0 0 0 .18rem rgba(20, 156, 160, .14) !important;
}

label {
    color: #374151;
}

.btn {
    min-height: 38px;
    padding: .48rem .9rem;
    font-weight: 800;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.btn-sm {
    min-width: 34px;
    min-height: 34px;
    padding: .35rem .62rem;
}

.btn-primary {
    background: var(--luster-teal) !important;
    border-color: var(--luster-teal) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--luster-teal-dark) !important;
    border-color: var(--luster-teal-dark) !important;
}

.btn-success {
    background: var(--luster-success) !important;
    border-color: var(--luster-success) !important;
}

.btn-info {
    background: var(--luster-info) !important;
    border-color: var(--luster-info) !important;
}

.btn-warning {
    color: #fff !important;
    background: var(--luster-warning) !important;
    border-color: var(--luster-warning) !important;
}

.btn-danger {
    background: var(--luster-danger) !important;
    border-color: var(--luster-danger) !important;
}

.btn-secondary {
    background: #6b7280 !important;
    border-color: #6b7280 !important;
}

.badge {
    min-width: 34px;
    padding: .4rem .65rem !important;
    font-weight: 800;
    border-radius: 999px !important;
}

.badge-success {
    background: #dff8ee !important;
    color: #08734d !important;
}

.badge-danger {
    background: #ffe5e8 !important;
    color: #a82433 !important;
}

.badge-warning {
    background: #fff4d8 !important;
    color: #98640a !important;
}

.badge-info,
.badge-primary {
    background: var(--luster-teal-soft) !important;
    color: var(--luster-teal-dark) !important;
}

.dropdown-list {
    overflow: hidden;
}

.dropdown-header {
    padding: .85rem 1rem;
    background: var(--luster-sidebar) !important;
    color: #fff !important;
    font-weight: 900;
}

.dropdown-item {
    padding: .72rem 1rem;
    color: var(--luster-ink);
}

.dropdown-item:hover {
    color: var(--luster-teal-dark);
    background: var(--luster-teal-soft);
}

.notifications-dropdown-list {
    max-height: min(70vh, 520px);
}

.pagination .page-link {
    color: var(--luster-teal-dark);
    border-color: var(--luster-line);
}

.pagination .page-item.active .page-link {
    background: var(--luster-teal);
    border-color: var(--luster-teal);
}

.alert {
    border: 0;
    border-radius: var(--luster-radius);
    box-shadow: var(--luster-shadow-sm);
}

.modal-header {
    background: #fbfdff;
    border-bottom-color: var(--luster-line);
}

.modal-footer {
    border-top-color: var(--luster-line);
}

.scroll-to-top {
    background: var(--luster-sidebar) !important;
    border-radius: 999px !important;
}

.luster-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 15%, rgba(20, 156, 160, .22), transparent 24rem),
        radial-gradient(circle at 85% 80%, rgba(138, 15, 69, .17), transparent 26rem),
        linear-gradient(135deg, #111827, #20243b 46%, #eff6fb 46%, #f7fbff 100%) !important;
}

.luster-login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.luster-login-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    width: min(100%, 1020px);
    min-height: 610px;
    overflow: hidden;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 26px;
    box-shadow: 0 38px 90px rgba(15, 23, 42, .28);
}

.luster-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.2rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(20, 156, 160, .92), rgba(138, 15, 69, .88)),
        #20243b;
}

.luster-login-brand::before {
    position: absolute;
    inset: 1.4rem;
    content: "";
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    pointer-events: none;
}

.luster-login-brand img {
    position: absolute;
    top: 40%;
    right: 50%;
    width: 300px;
    transform: translate(50%, -50%);
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .26));
}

.luster-login-brand h1 {
    position: relative;
    margin: 0 0 .8rem;
    color: #fff;
    font-size: 2.65rem;
    font-weight: 900;
}

.luster-login-brand p {
    position: relative;
    max-width: 31rem;
    margin: 0 0 1.4rem;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    line-height: 1.9;
}

.luster-login-points {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.luster-login-points span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    font-weight: 800;
}

.luster-login-card {
    width: 100%;
    padding: 3rem 2.35rem;
    align-self: center;
    background: #fff;
}

.luster-login-kicker {
    display: inline-flex;
    padding: .35rem .7rem;
    margin-bottom: 1rem;
    color: var(--luster-teal-dark);
    background: var(--luster-teal-soft);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

.luster-login-title {
    margin-bottom: .35rem;
    color: var(--luster-ink);
    font-size: 1.8rem;
    font-weight: 900;
}

.luster-login-subtitle {
    margin-bottom: 1.7rem;
    color: var(--luster-muted);
}

.luster-login-card .form-control-user {
    height: 48px;
    padding: .75rem 1rem;
    border-radius: 8px !important;
}

.luster-login-card .btn-user {
    height: 48px;
    margin-top: .4rem;
    border-radius: 12px !important;
}

.luster-login-card .custom-control-label {
    color: var(--luster-muted);
    cursor: pointer;
    font-size: .9rem;
}

.luster-login-card .custom-control-input:checked ~ .custom-control-label {
    color: var(--luster-ink);
    font-weight: 700;
}

@media (max-width: 900px) {
    .luster-login-wrap {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .luster-login-brand {
        min-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .luster-page-shell {
        padding: 0 .85rem 1.4rem;
    }

    .luster-topbar {
        margin-bottom: 1rem !important;
    }

    .table thead th,
    .table tbody td {
        padding: .72rem;
        font-size: .82rem;
    }

    .dashboard-page .card {
        min-height: 104px;
    }

    .luster-login-card {
        padding: 1.35rem;
    }
}

/* Dashboard UI rebuild overrides */
.luster-dashboard {
    --luster-shell-gap: 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(20, 156, 160, .10), transparent 28rem),
        linear-gradient(180deg, #f7fbff 0%, #eef4f8 100%);
}

.luster-dashboard #wrapper {
    min-height: 100vh;
}

.luster-dashboard #content-wrapper {
    overflow-x: hidden;
}

.luster-page-shell {
    max-width: none;
    padding: 0 var(--luster-shell-gap) 2.5rem;
}

.luster-topbar {
    position: sticky;
    top: 0;
    z-index: 1038;
    min-height: 4.4rem;
    padding: 0 1.25rem;
    margin: 0 0 1.35rem !important;
    background: rgba(255, 255, 255, .88) !important;
    border-bottom: 1px solid rgba(211, 222, 234, .75);
    box-shadow: 0 18px 45px rgba(31, 41, 55, .08) !important;
}

.luster-topbar-title {
    flex-direction: column;
    gap: .05rem;
    padding-right: .75rem;
}

.luster-topbar-title span {
    color: #172033;
    font-size: 1rem;
    font-weight: 900;
}

.luster-topbar-title small {
    color: #708094;
    font-size: .74rem;
}

.luster-topbar .navbar-nav {
    align-items: center;
    gap: .45rem;
}

.luster-icon-trigger,
.luster-user-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 2.85rem !important;
    min-width: 2.85rem;
    padding: 0 .7rem !important;
    background: #f4f8fb;
    border: 1px solid #e3ebf3;
    border-radius: 12px;
}

.luster-icon-trigger:hover,
.luster-user-trigger:hover,
.show > .luster-icon-trigger,
.show > .luster-user-trigger {
    color: var(--luster-teal-dark) !important;
    background: #e9fbfb;
    border-color: rgba(20, 156, 160, .32);
}

.luster-user-trigger {
    gap: .65rem;
    justify-content: flex-start;
    min-width: 12rem;
}

.luster-user-copy {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.luster-user-copy strong {
    color: #172033;
    font-size: .86rem;
    font-weight: 900;
}

.luster-user-copy small {
    color: #8291a3;
    font-size: .72rem;
}

.luster-topbar .dropdown-menu {
    top: calc(100% + .7rem) !important;
    right: auto !important;
    left: 0 !important;
    min-width: 17rem;
    padding: .65rem;
    overflow: visible;
    background: #fff;
    border: 1px solid #dfe8f1;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18) !important;
    z-index: 2050;
}

.luster-topbar .dropdown-menu::before {
    position: absolute;
    top: -7px;
    left: 1.25rem;
    width: 14px;
    height: 14px;
    content: "";
    background: #fff;
    border-top: 1px solid #dfe8f1;
    border-right: 1px solid #dfe8f1;
    transform: rotate(-45deg);
}

.notifications-dropdown-list {
    width: min(390px, calc(100vw - 2rem));
    max-height: min(72vh, 560px);
    padding: 0 !important;
    overflow: hidden auto !important;
}

.luster-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem .85rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(20, 156, 160, .96), rgba(138, 15, 69, .92));
    border-radius: 14px 14px 0 0;
}

.luster-dropdown-head strong,
.luster-dropdown-head span {
    display: block;
}

.luster-dropdown-head strong {
    font-size: 1rem;
}

.luster-dropdown-head span {
    margin-top: .18rem;
    color: rgba(255, 255, 255, .76);
    font-size: .78rem;
}

.luster-dropdown-head i {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
}

.luster-notification-item {
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: .8rem;
    padding: .9rem 1rem !important;
    white-space: normal !important;
    border-bottom: 1px solid #edf2f7;
}

.luster-notification-item.is-unread {
    background: #f0fbfb;
}

.luster-notification-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--luster-teal-dark);
    background: var(--luster-teal-soft);
    border-radius: 12px;
}

.luster-notification-icon.is-read {
    color: #64748b;
    background: #eef2f7;
}

.luster-notification-copy {
    min-width: 0;
}

.luster-notification-copy strong,
.luster-notification-copy span {
    display: block;
}

.luster-notification-copy strong {
    color: #172033;
    font-size: .9rem;
    font-weight: 900;
}

.luster-notification-copy span {
    margin-top: .25rem;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.6;
}

.luster-notification-date {
    margin-bottom: .2rem;
    color: #94a3b8;
    font-size: .72rem;
}

.luster-dropdown-footer,
.luster-dropdown-empty {
    display: block;
    padding: .9rem 1rem !important;
    text-align: center;
    font-weight: 900;
}

.luster-dropdown-footer {
    color: var(--luster-teal-dark) !important;
    background: #f8fafc;
    border-radius: 0 0 14px 14px;
}

.luster-profile-menu {
    width: 250px;
}

.luster-profile-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .85rem;
    margin-bottom: .18rem;
    border-radius: 10px;
    font-weight: 800;
}

.luster-profile-menu .dropdown-item i {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--luster-teal-dark);
    background: var(--luster-teal-soft);
    border-radius: 10px;
}

.luster-profile-menu .dropdown-divider {
    margin: .45rem 0;
}

.luster-sidebar:not(.toggled) {
    width: 15.5rem !important;
    background:
        linear-gradient(180deg, #161b32 0%, #20243b 45%, #151927 100%) !important;
}

.luster-sidebar {
    background:
        linear-gradient(180deg, #161b32 0%, #20243b 45%, #151927 100%) !important;
}

.luster-sidebar .sidebar-brand {
    margin-bottom: .4rem !important;
    background: transparent;
}

.luster-sidebar .nav-item {
    margin: .16rem .7rem;
    overflow: hidden;
    border-radius: 12px;
}

.luster-sidebar .nav-item.active,
.luster-sidebar .nav-item:hover {
    background: rgba(255, 255, 255, .06) !important;
}

.luster-sidebar .nav-item.active {
    box-shadow: inset -4px 0 0 #28d2c8, 0 10px 22px rgba(0, 0, 0, .13);
}

.luster-sidebar .nav-link {
    display: flex !important;
    align-items: center;
    gap: .65rem;
    min-height: 2.9rem;
    padding: .7rem .85rem !important;
}

.luster-sidebar .nav-link i {
    width: 2rem !important;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    color: rgba(255, 255, 255, .72) !important;
    background: rgba(255, 255, 255, .08);
    border-radius: 10px;
}

.luster-sidebar .nav-item.active .nav-link i,
.luster-sidebar .nav-link:hover i {
    color: #fff !important;
    background: rgba(40, 210, 200, .20);
}

.luster-sidebar .nav-link span {
    font-weight: 800;
}

.luster-sidebar .collapse-inner {
    margin: 0 .75rem .65rem;
    padding: .5rem !important;
    background: rgba(255, 255, 255, .07) !important;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px !important;
}

.luster-sidebar .collapse-item {
    margin: .12rem 0;
    padding: .7rem .8rem !important;
    color: rgba(255, 255, 255, .76) !important;
    border-radius: 10px !important;
}

.luster-sidebar .collapse-item:hover,
.luster-sidebar .collapse-item.active {
    color: #fff !important;
    background: rgba(20, 156, 160, .25) !important;
}

.luster-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    min-height: 9.5rem;
    padding: 1.35rem;
    margin-bottom: 1.25rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(238, 251, 251, .92)),
        #fff;
    border: 1px solid rgba(214, 226, 238, .9);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .08);
}

.luster-page-shell > h1.h3,
.luster-page-shell > h1.text-gray-800 {
    display: flex;
    align-items: flex-end;
    min-height: 7.25rem;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.15rem !important;
    color: #172033 !important;
    font-size: 1.75rem !important;
    font-weight: 900 !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(238, 251, 251, .9)),
        #fff;
    border: 1px solid rgba(214, 226, 238, .9);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .07);
}

.luster-page-kicker {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    margin-bottom: .75rem;
    color: var(--luster-teal-dark);
    background: var(--luster-teal-soft);
    border: 1px solid rgba(20, 156, 160, .18);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

.luster-page-header h1 {
    margin: 0;
    color: #172033;
    font-size: 2rem;
    font-weight: 900;
}

.luster-page-header p {
    max-width: 42rem;
    margin: .45rem 0 0;
    color: #64748b;
    line-height: 1.7;
}

.luster-page-actions,
.luster-table-toolbar,
.luster-actions,
.luster-pagination {
    display: flex;
    align-items: center;
}

.luster-page-actions {
    gap: .55rem;
    flex-wrap: wrap;
}

.luster-page-actions .btn,
.luster-table-toolbar .btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.luster-table-card,
.luster-notifications-page,
.luster-section {
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(214, 226, 238, .95);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .07);
}

.luster-page-shell > .card,
.luster-page-shell .card.shadow {
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(214, 226, 238, .95) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .07) !important;
}

.luster-page-shell .card-header {
    min-height: 4.25rem;
    padding: 1rem 1.1rem !important;
    background: linear-gradient(180deg, #fff, #f8fbfd) !important;
    border-bottom: 1px solid #edf2f7 !important;
}

.luster-page-shell .card-header .float-right,
.luster-page-shell .card-header .float-left {
    float: none !important;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

.luster-table-card .card-body,
.luster-notifications-page .card-body {
    padding: 1rem;
}

.luster-table-toolbar {
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, #fff, #f8fbfd);
    border-bottom: 1px solid #edf2f7;
}

.luster-table-toolbar h2 {
    margin: 0;
    color: #172033;
    font-size: 1.05rem;
    font-weight: 900;
}

.luster-table-toolbar span {
    display: block;
    margin-top: .2rem;
    color: #7b8b9e;
    font-size: .8rem;
}

.luster-search-form {
    width: min(100%, 430px);
    margin: 0;
}

.luster-search-box {
    position: relative;
}

.luster-search-box i {
    position: absolute;
    top: 50%;
    left: .9rem;
    z-index: 4;
    color: #94a3b8;
    transform: translateY(-50%);
}

.luster-search-box .form-control {
    height: 46px;
    padding-left: 2.45rem;
    border-radius: 12px !important;
}

.table-responsive {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.luster-table-card .table,
.luster-section .table,
.dataTables_wrapper table {
    border-collapse: separate !important;
    border-spacing: 0 .55rem !important;
}

.luster-table-card .table-bordered,
.luster-table-card .table-bordered td,
.luster-table-card .table-bordered th,
.luster-section .table-bordered,
.luster-section .table-bordered td,
.luster-section .table-bordered th,
.dataTables_wrapper .table-bordered,
.dataTables_wrapper .table-bordered td,
.dataTables_wrapper .table-bordered th {
    border: 0 !important;
}

.table thead th {
    padding: .85rem .95rem !important;
    color: #607087;
    font-size: .78rem;
    font-weight: 900;
    background: transparent !important;
    border: 0 !important;
}

.table tbody td {
    padding: .95rem !important;
    color: #2f3a4a;
    background: #fff !important;
    border-top: 1px solid #edf2f7 !important;
    border-bottom: 1px solid #edf2f7 !important;
}

.table tbody tr td:first-child {
    border-right: 1px solid #edf2f7 !important;
    border-top-right-radius: 13px;
    border-bottom-right-radius: 13px;
}

.table tbody tr td:last-child {
    border-left: 1px solid #edf2f7 !important;
    border-top-left-radius: 13px;
    border-bottom-left-radius: 13px;
}

.table tbody tr {
    transition: transform .18s ease, box-shadow .18s ease;
}

.table tbody tr:hover {
    transform: translateY(-1px);
}

.table tbody tr:hover td {
    background: #fbfefe !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.table img,
.w_200 {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: cover;
    border: 1px solid #dfe8f1;
    border-radius: 12px;
}

.luster-empty-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.25rem;
    min-height: 2rem;
    padding: .32rem .65rem;
    color: #73839a;
    background: #f4f7fb;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 800;
}

.luster-actions {
    justify-content: center;
    gap: .35rem;
}

.luster-actions form {
    margin: 0;
}

.luster-actions .btn,
.table td .btn-sm {
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
}

.luster-pagination {
    justify-content: center;
    padding: .9rem 1rem 1.15rem;
}

.dashboard-page {
    row-gap: 1rem;
}

.dashboard-page .card {
    min-height: 138px;
    padding: 0 !important;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(245, 250, 253, .96)) !important;
    border: 1px solid rgba(214, 226, 238, .92) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07) !important;
}

.dashboard-page .card::before {
    width: 100%;
    height: 4px;
    bottom: auto;
}

.dashboard-page .card-body {
    padding: 1.25rem !important;
}

.dashboard-page .card .h4 {
    margin-bottom: .45rem !important;
    color: #64748b !important;
    font-size: .82rem;
}

.dashboard-page .card .h5 {
    color: #172033 !important;
    font-size: 1.8rem;
}

.dashboard-page .card .fa-2x {
    width: 3.4rem;
    height: 3.4rem;
    color: #0f767a !important;
    background: linear-gradient(135deg, #e9fbfb, #d8f7f4);
    border-radius: 16px;
}

.luster-dashboard-heading {
    min-height: 11rem;
    padding: 1.6rem;
    background:
        linear-gradient(135deg, rgba(20, 156, 160, .92), rgba(32, 36, 59, .96)),
        #20243b;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.luster-dashboard-heading h1,
.luster-dashboard-heading p {
    color: #fff;
}

.luster-dashboard-heading p {
    opacity: .78;
}

.luster-dashboard-heading .luster-heading-mark {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-radius: 18px;
}

.luster-section {
    padding: 1rem;
    margin-bottom: 1.4rem;
}

.luster-section-title {
    padding: .15rem .15rem .85rem;
    font-size: 1.08rem;
}

.luster-notification-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: .8rem;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.luster-notification-card.is-unread {
    border-color: rgba(20, 156, 160, .28);
    background: #f4fefe;
}

.luster-notification-card-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem;
}

.luster-notification-card-icon {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--luster-teal-dark);
    background: var(--luster-teal-soft);
    border-radius: 14px;
}

.luster-notification-card h5 {
    margin: 0 0 .2rem;
    color: #172033;
    font-size: 1rem;
}

.luster-notification-card-date {
    color: #94a3b8;
    font-size: .78rem;
}

.luster-notification-card p {
    margin: .5rem 0 0;
    color: #64748b;
}

.luster-notification-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
    flex-wrap: wrap;
    min-width: 260px;
}

.luster-notification-card-actions form {
    margin: 0;
}

.luster-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    padding: 4rem 1rem;
    color: #73839a;
    font-weight: 900;
}

.luster-empty-state i {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f4f7fb;
    border-radius: 18px;
    font-size: 1.4rem;
}

/* Product details */
.product-detail-header {
    align-items: center;
    min-height: 8.75rem;
    margin-bottom: 1rem;
    background:
        radial-gradient(circle at 92% 18%, rgba(20, 156, 160, .12), transparent 15rem),
        linear-gradient(135deg, #fff, #f5fbfc);
}

.product-detail-title h1 {
    display: inline-block;
    margin: 0;
    color: #172033;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 900;
}

.product-detail-heading-line {
    gap: .75rem;
}

.product-detail-title p {
    margin: .55rem 0 0;
    color: #64748b;
    font-size: .88rem;
}

.product-detail-title code {
    padding: .2rem .5rem;
    color: var(--luster-teal-dark);
    background: var(--luster-teal-soft);
    border-radius: 6px;
    font-size: .8rem;
}

.product-sku-label {
    margin-left: .35rem;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.product-category-chip,
.product-detail-count {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .7rem;
    color: var(--luster-teal-dark);
    background: var(--luster-teal-soft);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 900;
}

.product-detail-actions {
    align-self: flex-end;
}

.product-detail-actions .btn-light {
    color: #526176;
    background: #fff;
    border: 1px solid #dfe8f1;
}

.product-detail-summary {
    display: grid;
    grid-template-columns: 1.15fr repeat(3, 1fr);
    gap: 1rem;
}

.product-detail-price-panel,
.product-detail-stat {
    position: relative;
    min-height: 9rem;
    padding: 1.15rem 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--luster-line);
    border-radius: 16px;
    box-shadow: var(--luster-shadow-sm);
}

.product-detail-price-panel {
    color: #fff;
    background: linear-gradient(145deg, var(--luster-sidebar), #2b3152);
    border: 0;
}

.product-detail-price-panel::after {
    position: absolute;
    right: -1.5rem;
    bottom: -2.5rem;
    width: 8rem;
    height: 8rem;
    content: "";
    background: rgba(20, 156, 160, .28);
    border-radius: 50%;
}

.product-detail-price-panel > span,
.product-detail-stat > span {
    display: block;
    color: #8291a5;
    font-size: .78rem;
    font-weight: 800;
}

.product-detail-price-panel > span { color: rgba(255,255,255,.7); }

.product-detail-price-panel strong {
    display: block;
    margin: .4rem 0 .8rem;
    color: #fff;
    font-size: 1.9rem;
    font-weight: 900;
}

.product-detail-price-panel strong small {
    font-size: .85rem;
    font-weight: 700;
}

.product-summary-meta {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.74);
    font-size: .76rem;
}

.product-detail-stat strong {
    display: block;
    margin-top: .55rem;
    color: #172033;
    font-size: 1.85rem;
    font-weight: 900;
}

.product-detail-stat small {
    color: #94a3b8;
    font-size: .72rem;
}

.product-detail-stat > span i {
    width: 1.7rem;
    margin-left: .25rem;
    color: var(--luster-info);
}

.product-detail-stat--teal > span i { color: var(--luster-teal); }
.product-detail-stat--warning > span i { color: var(--luster-warning); }

.product-detail-description {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem 1.15rem;
    color: #526176;
    background: #fff;
    border: 1px solid var(--luster-line);
    border-radius: 14px;
    box-shadow: var(--luster-shadow-sm);
}

.product-detail-description > div:last-child { flex: 1; }
.product-detail-description span { color: #172033; font-size: .82rem; font-weight: 900; }
.product-detail-description p { margin: .25rem 0 0; font-size: .86rem; line-height: 1.8; }

.product-detail-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    color: var(--luster-teal-dark);
    background: var(--luster-teal-soft);
    border-radius: 10px;
}

.product-detail-card-header {
    align-items: center;
}

.product-detail-card-header > div { display: flex; flex-direction: column; gap: .15rem; }
.product-detail-card-header .product-detail-eyebrow {
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.product-detail-card-header h6 { font-size: 1.05rem !important; }
.product-detail-card .card-body { padding: 1.1rem 1.15rem 1.2rem; }
.product-detail-card .form-group label { font-size: .8rem; font-weight: 800; }
.product-detail-card .table-responsive { box-shadow: none; }
.product-detail-card .table tbody tr:first-child td { border-top: 0 !important; }

/* Keep the product-items header opaque while its rows scroll underneath it. */
.product-items-scroll {
    position: relative;
    isolation: isolate;
    scrollbar-color: #9aa6b2 #eef2f6;
    scrollbar-width: thin;
}

.product-items-scroll .product-items-table {
    min-width: 760px;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.product-items-scroll .product-items-table thead {
    position: sticky;
    top: 0;
    z-index: 30;
}

.product-items-scroll .product-items-table thead th,
.product-items-scroll .product-items-table thead th[style] {
    position: sticky;
    top: 0;
    z-index: 31;
    min-height: 3.7rem;
    padding: .95rem .85rem !important;
    color: #526176 !important;
    background: #f8fafc !important;
    box-shadow: inset 0 -1px 0 #dfe8f1, 0 4px 10px rgba(15, 23, 42, .06);
    white-space: nowrap;
}

.product-items-scroll .product-items-table tbody td {
    position: relative;
    z-index: 1;
    background: #fff !important;
}

.product-items-scroll .product-items-table tbody tr:hover td {
    background: #fbfefe !important;
}

@media (max-width: 991.98px) {
    .product-detail-summary { grid-template-columns: repeat(2, 1fr); }
    .product-detail-price-panel { grid-column: span 2; }
}

@media (max-width: 767.98px) {
    .product-detail-header { align-items: stretch; }
    .product-detail-actions { align-self: stretch; }
    .product-detail-actions .btn { flex: 1; }
    .product-detail-summary { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .product-detail-price-panel { grid-column: span 2; }
    .product-detail-price-panel,
    .product-detail-stat { min-height: 8.25rem; padding: .9rem; }
    .product-detail-stat strong { font-size: 1.5rem; }
    .product-detail-card-header { align-items: flex-start !important; gap: .75rem; }
    .product-detail-card-header .product-detail-count { align-self: flex-start; }
}

.dataTables_wrapper .row:first-child,
.dataTables_wrapper .row:last-child {
    border: 0;
    background: transparent;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.form-control,
.custom-select {
    border-radius: 12px !important;
}

@media (max-width: 991.98px) {
    .luster-page-header,
    .luster-table-toolbar,
    .luster-notification-card {
        align-items: stretch;
        flex-direction: column;
    }

    .luster-search-form,
    .luster-notification-card-actions {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .luster-dashboard {
        --luster-shell-gap: .85rem;
    }

    .luster-topbar {
        padding: 0 .8rem;
    }

    .luster-page-header {
        min-height: auto;
        padding: 1rem;
        border-radius: 16px;
    }

    .luster-page-header h1 {
        font-size: 1.45rem;
    }

    .dashboard-page .card {
        min-height: 112px;
    }

    .luster-topbar .dropdown-menu {
        left: .5rem !important;
        right: .5rem !important;
        width: auto;
        min-width: 0;
    }

    .luster-topbar .luster-user-nav .luster-profile-menu {
        position: fixed !important;
        top: 4.35rem !important;
        right: auto !important;
        left: 1rem !important;
        width: min(17rem, calc(100vw - 2rem)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 2rem);
    }

    .luster-topbar .luster-user-nav .luster-profile-menu::before {
        left: 1.4rem;
        right: auto;
    }

    .luster-profile-menu .dropdown-item {
        white-space: nowrap;
        font-size: .86rem;
    }
}

/* Sidebar state fixes */
.luster-dashboard-heading h1,
.luster-dashboard-heading p {
    color: #fff !important;
}

@media (min-width: 768px) {
    #wrapper {
        align-items: stretch;
    }

    #content-wrapper {
        min-width: 0;
    }

    .luster-sidebar:not(.toggled) {
        width: 14.75rem !important;
        min-width: 14.75rem;
        flex: 0 0 14.75rem;
        overflow: visible;
    }

    .luster-sidebar:not(.toggled) .nav-link {
        width: auto !important;
        justify-content: flex-start;
        text-align: right !important;
    }

    .luster-sidebar:not(.toggled) .nav-link span {
        display: inline !important;
        min-width: 0;
        overflow: visible;
        color: rgba(255, 255, 255, .86);
        font-size: .86rem !important;
        line-height: 1.45;
        white-space: normal;
    }

    .luster-sidebar:not(.toggled) .nav-link[data-toggle=collapse]::after {
        margin-right: auto;
        margin-left: 0;
    }

    .luster-sidebar.toggled {
        width: 5.75rem !important;
        min-width: 5.75rem;
        flex: 0 0 5.75rem;
        overflow: visible;
    }

    .luster-sidebar.toggled .sidebar-brand {
        padding-right: .55rem;
        padding-left: .55rem;
    }

    .luster-sidebar.toggled .nav-item {
        margin: .22rem .48rem;
    }

    .luster-sidebar.toggled .nav-link {
        width: auto !important;
        justify-content: center;
        padding: .68rem !important;
        text-align: center !important;
    }

    .luster-sidebar.toggled .nav-link i {
        margin: 0 !important;
    }

    .luster-sidebar.toggled .nav-link span,
    .luster-sidebar.toggled .nav-link[data-toggle=collapse]::after {
        display: none !important;
    }

    #wrapper .luster-sidebar.toggled .nav-item .collapse,
    #wrapper .luster-sidebar.toggled .nav-item .collapsing {
        right: calc(5.75rem + .65rem) !important;
        left: auto !important;
        min-width: 12rem;
        margin: 0;
    }

    .luster-sidebar.toggled .collapse-inner {
        margin: 0 !important;
        background: #20243b !important;
        border-color: rgba(255, 255, 255, .10);
        box-shadow: 0 20px 45px rgba(15, 23, 42, .22);
    }
}

/* Final hard overrides for the redesigned sidebar and dashboard hero */
body.luster-dashboard .luster-page-shell .luster-dashboard-heading h1,
body.luster-dashboard .luster-page-shell .luster-dashboard-heading p {
    color: #fff !important;
}

body.luster-dashboard #wrapper .luster-sidebar,
body.luster-dashboard #wrapper .luster-sidebar.toggled {
    width: 16rem !important;
    min-width: 16rem !important;
    flex: 0 0 16rem !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.luster-dashboard #wrapper .luster-sidebar .sidebar-brand,
body.luster-dashboard #wrapper .luster-sidebar.toggled .sidebar-brand {
    min-height: 5.7rem;
    padding: 1rem .9rem !important;
}

body.luster-dashboard #wrapper .luster-sidebar .sidebar-brand .sidebar-brand-text,
body.luster-dashboard #wrapper .luster-sidebar.toggled .sidebar-brand .sidebar-brand-text {
    display: flex !important;
    width: 100%;
}

body.luster-dashboard #wrapper .luster-sidebar .sidebar-brand img,
body.luster-dashboard #wrapper .luster-sidebar.toggled .sidebar-brand img {
    width: 108px !important;
    max-width: 108px !important;
}

body.luster-dashboard #wrapper .luster-sidebar .nav-item,
body.luster-dashboard #wrapper .luster-sidebar.toggled .nav-item {
    width: auto !important;
    margin: .16rem .75rem !important;
}

body.luster-dashboard #wrapper .luster-sidebar .nav-link,
body.luster-dashboard #wrapper .luster-sidebar.toggled .nav-link {
    display: grid !important;
    grid-template-columns: 2rem 1fr auto;
    align-items: center;
    gap: .65rem;
    width: 100% !important;
    min-height: 2.9rem;
    padding: .68rem .8rem !important;
    text-align: right !important;
}

body.luster-dashboard #wrapper .luster-sidebar .nav-link i,
body.luster-dashboard #wrapper .luster-sidebar.toggled .nav-link i {
    grid-column: 1;
    width: 2rem !important;
    height: 2rem;
    margin: 0 !important;
}

body.luster-dashboard #wrapper .luster-sidebar .nav-link span,
body.luster-dashboard #wrapper .luster-sidebar.toggled .nav-link span {
    display: block !important;
    grid-column: 2;
    width: auto !important;
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .88) !important;
    font-size: .85rem !important;
    font-weight: 800 !important;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.luster-dashboard #wrapper .luster-sidebar .nav-link[data-toggle=collapse]::after,
body.luster-dashboard #wrapper .luster-sidebar.toggled .nav-link[data-toggle=collapse]::after {
    display: inline-flex !important;
    grid-column: 3;
    align-items: center;
    justify-content: center;
    width: 1rem;
    margin: 0 !important;
    color: rgba(255, 255, 255, .52);
    float: none !important;
}

body.luster-dashboard #wrapper .luster-sidebar .nav-item .collapse,
body.luster-dashboard #wrapper .luster-sidebar.toggled .nav-item .collapse,
body.luster-dashboard #wrapper .luster-sidebar .nav-item .collapsing,
body.luster-dashboard #wrapper .luster-sidebar.toggled .nav-item .collapsing {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body.luster-dashboard #wrapper .luster-sidebar .collapse-inner,
body.luster-dashboard #wrapper .luster-sidebar.toggled .collapse-inner {
    margin: 0 .65rem .7rem !important;
    padding: .45rem !important;
    background: rgba(255, 255, 255, .07) !important;
    border: 1px solid rgba(255, 255, 255, .09) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.luster-dashboard #wrapper .luster-sidebar .collapse-item,
body.luster-dashboard #wrapper .luster-sidebar.toggled .collapse-item {
    padding: .62rem .75rem !important;
    margin: .1rem 0 !important;
    color: rgba(255, 255, 255, .78) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.luster-dashboard #wrapper .luster-sidebar .collapse-item:hover,
body.luster-dashboard #wrapper .luster-sidebar .collapse-item.active,
body.luster-dashboard #wrapper .luster-sidebar.toggled .collapse-item:hover,
body.luster-dashboard #wrapper .luster-sidebar.toggled .collapse-item.active {
    color: #fff !important;
    background: rgba(20, 156, 160, .24) !important;
}

/* Rebuilt sidebar, detached from SB Admin sizing rules */
body.luster-dashboard #wrapper {
    align-items: stretch;
}

body.luster-dashboard #content-wrapper {
    min-width: 0;
}

.luster-topbar {
    min-height: 3.75rem !important;
    padding-top: .35rem;
    padding-bottom: .35rem;
}

.luster-sidebar-rebuilt {
    position: sticky;
    top: 0;
    z-index: 1030;
    flex: 0 0 18rem;
    width: 18rem;
    min-width: 18rem;
    height: 100vh;
    padding: 1rem .85rem;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    direction: rtl;
    list-style: none;
    background:
        linear-gradient(180deg, #171c31 0%, #1f243b 54%, #151927 100%);
    border-left: 1px solid rgba(255, 255, 255, .08);
    box-shadow: -18px 0 42px rgba(15, 23, 42, .16);
}

.luster-sidebar-rebuilt::-webkit-scrollbar {
    width: 6px;
}

.luster-sidebar-rebuilt::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
}

.luster-sidebar-rebuilt .sidebar-brand {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 5.4rem;
    padding: .65rem .5rem 1rem;
    margin: 0 0 .35rem !important;
    text-decoration: none;
}

.luster-sidebar-rebuilt .sidebar-brand .sidebar-brand-text {
    display: flex !important;
    width: 100%;
    margin: 0 !important;
}

.luster-sidebar-rebuilt .sidebar-brand .center {
    width: 100%;
}

.luster-sidebar-rebuilt .sidebar-brand img {
    width: 112px !important;
    max-width: 112px !important;
    height: auto;
    padding: 0 !important;
    margin: 0 !important;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .24));
}

.luster-sidebar-rebuilt .sidebar-divider {
    margin: .7rem .45rem;
    border-color: rgba(255, 255, 255, .08);
}

.luster-sidebar-rebuilt .nav-item {
    position: relative;
    width: 100%;
    margin: .16rem 0 !important;
    overflow: visible;
    background: transparent !important;
    border-radius: 14px;
}

.luster-sidebar-rebuilt .nav-item.active {
    background: rgba(255, 255, 255, .07) !important;
    box-shadow: inset -4px 0 0 #2bd4cb;
}

.luster-sidebar-rebuilt .nav-link {
    display: flex !important;
    align-items: center;
    gap: .7rem;
    width: 100% !important;
    min-height: 3rem;
    padding: .68rem .75rem !important;
    color: rgba(255, 255, 255, .82) !important;
    text-align: right !important;
    text-decoration: none !important;
    border-radius: 14px;
}

.luster-sidebar-rebuilt .nav-link:hover,
.luster-sidebar-rebuilt .nav-item.active > .nav-link {
    color: #fff !important;
    background: rgba(20, 156, 160, .15) !important;
}

.luster-sidebar-rebuilt .nav-link i {
    flex: 0 0 2.1rem;
    width: 2.1rem !important;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    color: rgba(255, 255, 255, .74) !important;
    background: rgba(255, 255, 255, .08);
    border-radius: 11px;
    font-size: .9rem;
}

.luster-sidebar-rebuilt .nav-link span {
    flex: 1 1 auto;
    min-width: 0;
    display: block !important;
    overflow: visible;
    color: inherit !important;
    font-size: .88rem !important;
    font-weight: 800;
    line-height: 1.45;
    white-space: normal;
}

.luster-sidebar-rebuilt .nav-link[data-toggle=collapse]::after {
    flex: 0 0 auto;
    width: 1.1rem;
    margin: 0 !important;
    color: rgba(255, 255, 255, .55);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f107";
    border: 0;
    float: none !important;
    transform: rotate(0deg);
}

.luster-sidebar-rebuilt .nav-link[data-toggle=collapse].collapsed::after {
    content: "\f104";
}

.luster-sidebar-rebuilt .collapse,
.luster-sidebar-rebuilt .collapsing {
    position: static !important;
    width: 100%;
    margin: 0 !important;
}

.luster-sidebar-rebuilt .collapse-inner {
    display: grid;
    gap: .2rem;
    padding: .45rem !important;
    margin: .15rem .4rem .65rem !important;
    background: rgba(255, 255, 255, .065) !important;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 13px !important;
    box-shadow: none !important;
}

.luster-sidebar-rebuilt .collapse-item {
    display: block;
    padding: .7rem .8rem !important;
    margin: 0 !important;
    overflow: visible;
    color: rgba(255, 255, 255, .78) !important;
    font-size: .82rem;
    font-weight: 800;
    text-align: right;
    text-decoration: none !important;
    white-space: normal;
    background: transparent !important;
    border-radius: 10px !important;
}

.luster-sidebar-rebuilt .collapse-item:hover,
.luster-sidebar-rebuilt .collapse-item.active {
    color: #fff !important;
    background: rgba(20, 156, 160, .26) !important;
}

.luster-sidebar-rebuilt #sidebarToggle,
.dashboard-sidebar-restore-toggle {
    display: none !important;
}

@media (max-width: 767.98px) {
    .luster-sidebar-rebuilt {
        position: fixed;
        inset-block: 0;
        right: 0;
        z-index: 1050;
        width: min(84vw, 18rem);
        min-width: 0;
        max-width: 18rem;
        box-shadow: -.75rem 0 2rem rgba(15, 23, 42, .28);
        transform: translateX(100%);
        transition: transform .2s ease;
    }

    body.sidebar-open .luster-sidebar-rebuilt,
    body.dashboard-sidebar-mobile-open .luster-sidebar-rebuilt {
        transform: translateX(0);
    }

    body.dashboard-sidebar-mobile-open .dashboard-sidebar-backdrop {
        display: block;
    }
}

/* The rebuilt sidebar participates in flex layout, so remove the old fixed-sidebar offset. */
@media (min-width: 768px) {
    body.fixed-nav.luster-dashboard #wrapper #content-wrapper,
    body.fixed-nav.luster-dashboard.sidebar-toggled #wrapper #content-wrapper {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin-right: 0 !important;
    }
}
