:root {
    --clr-primary: #111111;
    --admin-black: #111111;
    --admin-charcoal: #181818;
    --admin-ink: #202020;
    --admin-muted: #737373;
    --admin-soft: #f4f4f5;
    --admin-line: #e5e5e5;
    --admin-white: #ffffff;
}

body {
    background: var(--admin-soft);
    color: var(--admin-ink);
}

.side-bar {
    width: 280px;
    background: var(--admin-black);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 18px 0 45px rgba(17, 17, 17, 0.12);
    scrollbar-width: thin;
    scrollbar-color: #5f5f5f transparent;
}

.side-bar::-webkit-scrollbar {
    width: 6px;
}

.side-bar::-webkit-scrollbar-track {
    background: transparent;
}

.side-bar::-webkit-scrollbar-thumb {
    background: #5f5f5f;
    border-radius: 999px;
}

.side-bar-logo {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 18px 20px;
    background: rgba(17, 17, 17, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.side-bar-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: calc(100% - 44px);
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--admin-white);
    color: var(--admin-black) !important;
    text-decoration: none;
}

.side-bar-logo a span,
.side-bar-logo a p,
.side-bar-logo a h1,
.side-bar-logo a h2,
.side-bar-logo a h3,
.side-bar-logo a h4,
.side-bar-logo a h5,
.side-bar-logo a h6 {
    color: var(--admin-black) !important;
    margin: 0;
}

.side-bar-logo img {
    max-width: 150px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

.close-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #262626;
    color: var(--admin-white);
}

.side-bar-manu {
    padding: 14px 12px 24px;
}

.side-bar-manu li {
    margin: 3px 0;
}

.side-bar-manu li::before,
.side-bar-manu li:hover::before,
.side-bar-manu li.active::before {
    display: none;
}

.side-bar-manu li a {
    min-height: 42px;
    gap: 10px;
    padding: 10px 12px;
    color: #d4d4d4;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500 !important;
    line-height: 1.35;
    letter-spacing: 0;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.side-bar-manu li a .sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-right: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.side-bar-manu .sidebar-icon img,
.side-bar-manu .sidebar-icon svg {
    width: 17px;
    height: 17px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.86;
}

.side-bar-manu li:hover > a,
.side-bar-manu li.active > a {
    background: var(--admin-white);
    color: var(--admin-black) !important;
    border-color: var(--admin-white);
}

.side-bar-manu li:hover > a .sidebar-icon,
.side-bar-manu li.active > a .sidebar-icon {
    background: #eeeeee;
}

.side-bar-manu li:hover > a .sidebar-icon img,
.side-bar-manu li.active > a .sidebar-icon img,
.side-bar-manu li:hover > a .sidebar-icon svg,
.side-bar-manu li.active > a .sidebar-icon svg {
    filter: grayscale(1) brightness(0);
    opacity: 1;
}

.side-bar-manu .dropdown::before {
    right: 14px;
    top: 20px;
    color: #a3a3a3;
    transition: color 0.18s ease, transform 0.18s ease;
}

.side-bar-manu .dropdown:hover::before,
.side-bar-manu .dropdown.active::before {
    color: var(--admin-black);
}

.side-bar-manu .dropdown.active::before {
    transform: rotate(90deg);
}

.side-bar-manu li .dropdown-menu,
.side-bar-manu .dropdown-menu,
.side-bar .dropdown-menu,
.side-bar li ul {
    margin: 5px 0 8px 24px;
    padding: 4px 0 4px 12px;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
}

.side-bar-manu li .dropdown-menu li {
    margin: 2px 0;
}

.side-bar-manu li .dropdown-menu li a {
    min-height: 34px;
    padding: 8px 10px;
    color: #bdbdbd;
    background: transparent;
    border-radius: 7px;
    font-size: 0.82rem;
}

.side-bar-manu li .dropdown-menu li a:hover,
.side-bar-manu li .dropdown-menu li a.active,
.side-bar-manu li .dropdown-menu li.active > a {
    background: #2f2f2f;
    color: var(--admin-white) !important;
}

.side-bar-addon,
.side-bar-addon-2,
.side-bar-addon-3,
.badge.bg-warning {
    background: #e5e5e5 !important;
    color: var(--admin-black) !important;
    border: 1px solid #cfcfcf;
    border-radius: 999px;
    font-weight: 700;
}

.section-container {
    padding-left: 280px;
    background: var(--admin-soft);
}

.section-container.active {
    padding-left: 72px;
}

.side-bar.active {
    width: 72px;
}

.side-bar.active:hover {
    width: 280px;
}

.side-bar.active .side-bar-logo {
    padding-inline: 12px;
    justify-content: center;
}

.side-bar.active:hover .side-bar-logo {
    padding-inline: 20px;
    justify-content: space-between;
}

.side-bar.active .side-bar-logo img {
    max-width: 42px;
}

.side-bar.active:hover .side-bar-logo img {
    max-width: 150px;
}

.side-bar.active .side-bar-logo a {
    max-width: 48px;
    padding: 8px;
    overflow: hidden;
}

.side-bar.active:hover .side-bar-logo a {
    max-width: calc(100% - 44px);
    padding: 8px 10px;
}

.side-bar.active .side-bar-manu li a {
    justify-content: center;
    padding-inline: 10px;
}

.side-bar.active .side-bar-manu li a .sidebar-icon {
    left: 0;
    margin-right: 0;
}

.side-bar.active .sidebar-icon img {
    width: 17px;
}

.side-bar.active:hover .side-bar-manu li a {
    justify-content: flex-start;
    padding-inline: 12px;
}

.side-bar.active:hover .side-bar-manu li a .sidebar-icon {
    margin-right: 0;
}

.side-bar.active:hover .sidebar-icon img {
    width: 17px;
}

.main-header-section {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--admin-line);
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.05);
    backdrop-filter: blur(14px);
}

.header-wrapper {
    min-height: 72px;
}

.sidebar-opner {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-white);
    color: var(--admin-black);
}

.text-custom-primary,
.text-custom-primary:hover,
.text-primary,
.custom-text-primary {
    color: var(--admin-black) !important;
}

.btn-primary,
.bg-primary,
.search-btn,
.btn-custom-primary {
    background: var(--admin-black) !important;
    border-color: var(--admin-black) !important;
    color: var(--admin-white) !important;
}

.btn-primary:hover,
.btn-custom-primary:hover {
    background: #303030 !important;
    border-color: #303030 !important;
}

.card,
.new-card,
.dashboard-card,
.erp-table-section,
.modal-content {
    border-color: var(--admin-line) !important;
    box-shadow: 0 14px 36px rgba(17, 17, 17, 0.06);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--admin-black);
    box-shadow: 0 0 0 0.2rem rgba(17, 17, 17, 0.12);
}

.gpt-dashboard-card .couter-box {
    background: var(--admin-white) !important;
    border: 1px solid var(--admin-line);
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.06);
}

.gpt-dashboard-card .couter-box h5 {
    color: var(--admin-black) !important;
}

.gpt-dashboard-card .couter-box p {
    color: #525252 !important;
}

.gpt-dashboard-card .couter-box .icons {
    background: #f1f1f1 !important;
    border: 1px solid #d8d8d8;
    box-shadow: inset 0 0 0 1px var(--admin-white);
}

.gpt-dashboard-card .couter-box .icons img {
    filter: grayscale(1) brightness(0);
    opacity: 0.88;
}

.dashboard-chart-header {
    border-bottom-color: var(--admin-line);
}

.dashboard-chart-header h4,
.dashboard-card .dashboard-card-header h4,
.gpt-dashboard-chart .card-header h4,
.gpt-dashboard-chart .new-card .four-card h4,
.gpt-dashboard-chart .new-card .four-card .time h6 {
    color: var(--admin-black) !important;
}

.dashboard-chart-header p,
.dashboard-card .dashboard-card-header p,
.dashboard-card .dashboard-card-footer p,
.gpt-dashboard-chart .new-card .four-card h6,
.gpt-dashboard-chart .new-card .four-card span,
.gpt-dashboard-chart .new-card .four-card .time p {
    color: #525252 !important;
}

.gpt-dashboard-chart .new-card .four-card,
.gpt-dashboard-chart .new-card .col-sm-6:nth-child(1) .four-card,
.gpt-dashboard-chart .new-card .col-sm-6:nth-child(2) .four-card,
.gpt-dashboard-chart .new-card .col-sm-6:nth-child(3) .four-card,
.gpt-dashboard-chart .new-card .col-sm-6:nth-child(4) .four-card {
    background: #f7f7f7 !important;
    border: 1px solid var(--admin-line);
}

[dir="rtl"] .side-bar {
    right: 0;
    left: auto;
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -18px 0 45px rgba(17, 17, 17, 0.12);
}

[dir="rtl"] .section-container {
    padding-right: 280px;
    padding-left: 0;
}

[dir="rtl"] .section-container.active {
    padding-right: 72px;
    padding-left: 0;
}

[dir="rtl"] .side-bar-manu li a .sidebar-icon,
[dir="rtl"] .side-bar.active .side-bar-manu li a .sidebar-icon {
    margin-left: 0;
    margin-right: 0;
    right: 0;
}

[dir="rtl"] .side-bar-manu .dropdown::before {
    right: auto;
    left: 14px;
}

[dir="rtl"] .side-bar-manu li .dropdown-menu,
[dir="rtl"] .side-bar-manu .dropdown-menu,
[dir="rtl"] .side-bar .dropdown-menu,
[dir="rtl"] .side-bar li ul {
    margin: 5px 24px 8px 0;
    padding: 4px 12px 4px 0;
    border-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1400px) {
    .side-bar {
        width: 260px;
    }

    .section-container {
        padding-left: 260px;
    }

    .side-bar.active:hover {
        width: 260px;
    }

    [dir="rtl"] .section-container {
        padding-right: 260px;
        padding-left: 0;
    }
}

@media (max-width: 1150px) {
    .side-bar {
        left: -100%;
        width: 300px !important;
    }

    .side-bar.active {
        left: 0;
        width: 300px !important;
    }

    .section-container,
    .section-container.active {
        padding-left: 0 !important;
    }

    [dir="rtl"] .side-bar {
        right: -100%;
        left: auto;
    }

    [dir="rtl"] .side-bar.active {
        right: 0;
        left: auto;
    }

    [dir="rtl"] .section-container,
    [dir="rtl"] .section-container.active {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

@media print {
    .side-bar,
    .main-header-section {
        display: none !important;
    }

    .section-container {
        padding: 0 !important;
    }
}

/* Minimal SaaS admin refinement */
:root {
    --admin-page: #f7f7f8;
    --admin-surface: #ffffff;
    --admin-surface-soft: #fafafa;
    --admin-border: #e6e6e8;
    --admin-border-strong: #d8d8dc;
    --admin-text: #111111;
    --admin-text-soft: #3f3f46;
    --admin-text-muted: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--admin-page) !important;
    color: var(--admin-text) !important;
    font-family: Inter, "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.section-container {
    background: var(--admin-page) !important;
}

.main-header-section {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid var(--admin-border) !important;
    box-shadow: none !important;
}

.header-wrapper {
    min-height: 68px;
}

.main-header-section h1,
.main-header-section h2,
.main-header-section h3,
.main-header-section h4,
.main-header-section h5,
.main-header-section h6,
.main-header-section a,
.main-header-section span,
.main-header-section p {
    color: var(--admin-text) !important;
}

.sidebar-opner,
.main-header-section .dropdown-toggle,
.main-header-section .btn,
.language-btn {
    min-height: 40px;
    border-radius: 8px !important;
    border: 1px solid var(--admin-border) !important;
    background: var(--admin-surface) !important;
    color: var(--admin-text) !important;
    box-shadow: none !important;
}

.main-header-section .dropdown-menu,
.profile-info .dropdown-menu,
.notification-dropdown,
.dropdown-menu {
    border: 1px solid var(--admin-border) !important;
    border-radius: 8px !important;
    background: var(--admin-surface) !important;
    box-shadow: 0 20px 45px rgba(17, 17, 17, 0.08) !important;
}

.side-bar {
    background: var(--admin-surface) !important;
    border-right: 1px solid var(--admin-border) !important;
    box-shadow: none !important;
    scrollbar-color: #c7c7cc transparent;
}

.side-bar::-webkit-scrollbar-thumb {
    background: #c7c7cc;
}

.side-bar-logo {
    min-height: 72px;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid var(--admin-border) !important;
    box-shadow: none !important;
}

.side-bar-logo a {
    background: transparent !important;
    color: var(--admin-text) !important;
    padding: 4px 0 !important;
}

.side-bar-logo a span,
.side-bar-logo a p,
.side-bar-logo a h1,
.side-bar-logo a h2,
.side-bar-logo a h3,
.side-bar-logo a h4,
.side-bar-logo a h5,
.side-bar-logo a h6 {
    color: var(--admin-text) !important;
}

.side-bar-logo img {
    max-height: 40px;
    filter: none !important;
}

.close-btn {
    background: var(--admin-surface-soft) !important;
    color: var(--admin-text) !important;
    border-color: var(--admin-border) !important;
    box-shadow: none !important;
}

.side-bar-manu {
    padding: 16px 12px 28px;
}

.side-bar-manu li {
    margin: 2px 0;
}

.side-bar-manu li a {
    min-height: 42px;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--admin-text-soft) !important;
    font-size: 14px;
    font-weight: 620 !important;
    letter-spacing: 0;
    box-shadow: none !important;
}

.side-bar-manu li a .title,
.side-bar-manu li a span:not(.sidebar-icon):not(.badge),
.side-bar-manu li a p {
    color: inherit !important;
}

.side-bar-manu li a .sidebar-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px !important;
    background: var(--admin-surface-soft) !important;
    border: 1px solid var(--admin-border) !important;
}

.side-bar-manu .sidebar-icon img,
.side-bar-manu .sidebar-icon svg,
.side-bar-manu li a i {
    filter: grayscale(1) brightness(0) !important;
    opacity: 0.72;
    color: var(--admin-text-soft) !important;
}

.side-bar-manu li:hover > a {
    background: var(--admin-surface-soft) !important;
    color: var(--admin-text) !important;
    border-color: var(--admin-border) !important;
}

.side-bar-manu li.active > a,
.side-bar-manu li > a.active {
    background: var(--admin-text) !important;
    color: var(--admin-white) !important;
    border-color: var(--admin-text) !important;
}

.side-bar-manu li.active > a .title,
.side-bar-manu li.active > a span:not(.sidebar-icon):not(.badge),
.side-bar-manu li.active > a p,
.side-bar-manu li > a.active .title,
.side-bar-manu li > a.active span:not(.sidebar-icon):not(.badge),
.side-bar-manu li > a.active p {
    color: var(--admin-white) !important;
}

.side-bar-manu li:hover > a .sidebar-icon {
    background: var(--admin-surface) !important;
    border-color: var(--admin-border-strong) !important;
}

.side-bar-manu li.active > a .sidebar-icon,
.side-bar-manu li > a.active .sidebar-icon {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.side-bar-manu li.active > a .sidebar-icon img,
.side-bar-manu li.active > a .sidebar-icon svg,
.side-bar-manu li.active > a i,
.side-bar-manu li > a.active .sidebar-icon img,
.side-bar-manu li > a.active .sidebar-icon svg,
.side-bar-manu li > a.active i {
    filter: grayscale(1) brightness(0) invert(1) !important;
    opacity: 1;
    color: var(--admin-white) !important;
}

.side-bar-manu .dropdown::before {
    color: var(--admin-text-muted) !important;
}

.side-bar-manu .dropdown:hover::before {
    color: var(--admin-text) !important;
}

.side-bar-manu .dropdown.active::before {
    color: var(--admin-white) !important;
}

.side-bar-manu li .dropdown-menu,
.side-bar-manu .dropdown-menu,
.side-bar .dropdown-menu,
.side-bar li ul {
    margin: 5px 0 8px 22px !important;
    padding: 4px 0 4px 12px !important;
    border-left: 1px solid var(--admin-border) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.side-bar-manu li .dropdown-menu li a {
    min-height: 34px;
    padding: 8px 10px !important;
    color: var(--admin-text-muted) !important;
    font-size: 13px;
    border-radius: 7px !important;
}

.side-bar-manu li .dropdown-menu li a:hover,
.side-bar-manu li .dropdown-menu li a.active,
.side-bar-manu li .dropdown-menu li.active > a {
    background: #eeeeef !important;
    color: var(--admin-text) !important;
}

.side-bar-addon,
.side-bar-addon-2,
.side-bar-addon-3,
.badge.bg-warning {
    background: #f1f1f2 !important;
    color: var(--admin-text) !important;
    border-color: var(--admin-border-strong) !important;
}

.card,
.new-card,
.dashboard-card,
.erp-table-section,
.modal-content,
.gpt-dashboard-chart .card,
.gpt-dashboard-chart .new-card {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.card-header,
.card-footer,
.dashboard-chart-header,
.dashboard-card .dashboard-card-header,
.dashboard-card-footer,
.modal-header,
.modal-footer {
    background: transparent !important;
    border-color: var(--admin-border) !important;
}

.gpt-dashboard-card .couter-box {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 20px !important;
}

.gpt-dashboard-card .couter-box:hover,
.card:hover,
.new-card:hover,
.dashboard-card:hover {
    border-color: var(--admin-border-strong) !important;
}

.gpt-dashboard-card .couter-box h5,
.dashboard-chart-header h4,
.dashboard-card .dashboard-card-header h4,
.gpt-dashboard-chart .card-header h4,
.gpt-dashboard-chart .new-card .four-card h4,
.table th,
.table td {
    color: var(--admin-text) !important;
}

.gpt-dashboard-card .couter-box p,
.dashboard-chart-header p,
.dashboard-card .dashboard-card-header p,
.dashboard-card .dashboard-card-footer p,
.gpt-dashboard-chart .new-card .four-card h6,
.gpt-dashboard-chart .new-card .four-card span,
.gpt-dashboard-chart .new-card .four-card .time p,
.text-muted,
.table small {
    color: var(--admin-text-muted) !important;
}

.gpt-dashboard-card .couter-box .icons {
    width: 44px;
    height: 44px;
    border-radius: 8px !important;
    background: var(--admin-surface-soft) !important;
    border: 1px solid var(--admin-border) !important;
    box-shadow: none !important;
}

.gpt-dashboard-card .couter-box .icons img {
    filter: grayscale(1) brightness(0) !important;
    opacity: 0.8;
}

.gpt-dashboard-chart .new-card .four-card,
.gpt-dashboard-chart .new-card .col-sm-6:nth-child(1) .four-card,
.gpt-dashboard-chart .new-card .col-sm-6:nth-child(2) .four-card,
.gpt-dashboard-chart .new-card .col-sm-6:nth-child(3) .four-card,
.gpt-dashboard-chart .new-card .col-sm-6:nth-child(4) .four-card {
    background: var(--admin-surface-soft) !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.table,
.table-responsive,
.dashboard-table-content {
    color: var(--admin-text) !important;
}

.table thead th,
.dashboard-table-content thead th {
    background: var(--admin-surface-soft) !important;
    color: var(--admin-text-soft) !important;
    border-color: var(--admin-border) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.table tbody td,
.dashboard-table-content tbody td {
    border-color: var(--admin-border) !important;
}

.btn,
.form-control,
.form-select,
.input-group-text,
.nice-select,
textarea,
input {
    border-radius: 8px !important;
}

.form-control,
.form-select,
textarea,
input,
.nice-select {
    background: var(--admin-surface) !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-text) !important;
    box-shadow: none !important;
}

.form-control::placeholder,
textarea::placeholder,
input::placeholder {
    color: #9ca3af !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus {
    border-color: var(--admin-text) !important;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1) !important;
}

.btn-primary,
.btn-custom-primary,
.search-btn,
.submit-btn,
.custom-btn,
.bg-primary {
    background: var(--admin-text) !important;
    border-color: var(--admin-text) !important;
    color: var(--admin-white) !important;
    box-shadow: none !important;
}

.btn-primary *,
.btn-custom-primary *,
.search-btn *,
.submit-btn *,
.custom-btn * {
    color: var(--admin-white) !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-light {
    background: var(--admin-surface) !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-text) !important;
}

.btn-primary:hover,
.btn-custom-primary:hover,
.search-btn:hover,
.submit-btn:hover,
.custom-btn:hover {
    background: #2b2b2b !important;
    border-color: #2b2b2b !important;
}

.badge,
.page-link {
    border-radius: 999px !important;
}

.page-link {
    color: var(--admin-text) !important;
    background: var(--admin-surface) !important;
    border-color: var(--admin-border) !important;
}

.page-item.active .page-link,
.page-link:hover {
    color: var(--admin-white) !important;
    background: var(--admin-text) !important;
    border-color: var(--admin-text) !important;
}

[dir="rtl"] .side-bar {
    border-left: 1px solid var(--admin-border) !important;
    border-right: 0 !important;
    box-shadow: none !important;
}

[dir="rtl"] .side-bar-manu li .dropdown-menu,
[dir="rtl"] .side-bar-manu .dropdown-menu,
[dir="rtl"] .side-bar .dropdown-menu,
[dir="rtl"] .side-bar li ul {
    margin: 5px 22px 8px 0 !important;
    padding: 4px 12px 4px 0 !important;
    border-right: 1px solid var(--admin-border) !important;
    border-left: 0 !important;
}

@media (max-width: 1150px) {
    .side-bar {
        box-shadow: 0 24px 60px rgba(17, 17, 17, 0.14) !important;
    }

    [dir="rtl"] .side-bar {
        box-shadow: 0 24px 60px rgba(17, 17, 17, 0.14) !important;
    }
}

/* Sidebar active-state correction and cleaner SaaS polish */
.side-bar {
    background: #ffffff !important;
}

.side-bar-manu > ul > li > a,
.side-bar-manu > ul > li > a.active {
    position: relative;
    background: transparent !important;
    color: var(--admin-text-soft) !important;
    border-color: transparent !important;
}

.side-bar-manu > ul > li > a::before,
.side-bar-manu > ul > li > a.active::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 6px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
}

.side-bar-manu > ul > li > a .sidebar-icon,
.side-bar-manu > ul > li > a.active .sidebar-icon {
    background: #f4f4f5 !important;
    border-color: #ececee !important;
}

.side-bar-manu > ul > li > a svg,
.side-bar-manu > ul > li > a.active svg {
    color: var(--admin-text-soft) !important;
}

.side-bar-manu > ul > li > a svg path,
.side-bar-manu > ul > li > a.active svg path {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.side-bar-manu > ul > li > a:hover,
.side-bar-manu > ul > li > a.active:hover {
    background: #f6f6f7 !important;
    color: var(--admin-text) !important;
    border-color: #ededf0 !important;
}

.side-bar-manu > ul > li.active > a,
.side-bar-manu > ul > li.active > a.active {
    background: #f1f1f2 !important;
    color: #111111 !important;
    border-color: #e4e4e7 !important;
}

.side-bar-manu > ul > li.active > a::before,
.side-bar-manu > ul > li.active > a.active::before {
    background: #111111;
}

.side-bar-manu > ul > li.active > a .sidebar-icon,
.side-bar-manu > ul > li.active > a.active .sidebar-icon {
    background: #ffffff !important;
    border-color: #dcdce0 !important;
}

.side-bar-manu > ul > li.active > a svg,
.side-bar-manu > ul > li.active > a.active svg,
.side-bar-manu > ul > li.active > a i,
.side-bar-manu > ul > li.active > a.active i {
    color: #111111 !important;
}

.side-bar-manu > ul > li.active > a svg path,
.side-bar-manu > ul > li.active > a.active svg path {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.side-bar-manu > ul > li.dropdown.active > ul,
.side-bar-manu > ul > li.dropdown.active > .dropdown-menu {
    margin-top: 8px !important;
}

.side-bar-manu > ul > li.dropdown:not(.active) > ul,
.side-bar-manu > ul > li.dropdown:not(.active) > .dropdown-menu {
    display: none;
}

.side-bar-manu > ul > li > ul li a,
.side-bar-manu > ul > li > .dropdown-menu li a {
    background: transparent !important;
    color: var(--admin-text-muted) !important;
    border-color: transparent !important;
}

.side-bar-manu > ul > li > ul li a:hover,
.side-bar-manu > ul > li > .dropdown-menu li a:hover {
    background: #f6f6f7 !important;
    color: var(--admin-text) !important;
}

.side-bar-manu > ul > li > ul li a.active,
.side-bar-manu > ul > li > .dropdown-menu li a.active {
    background: #efeff1 !important;
    color: var(--admin-text) !important;
    font-weight: 720 !important;
}

.side-bar.active .side-bar-manu > ul > li > a::before {
    left: 4px;
}

.side-bar.active:hover .side-bar-manu > ul > li > a::before {
    left: 6px;
}

[dir="rtl"] .side-bar-manu > ul > li > a::before,
[dir="rtl"] .side-bar-manu > ul > li > a.active::before {
    right: 6px;
    left: auto;
}

[dir="rtl"] .side-bar.active .side-bar-manu > ul > li > a::before {
    right: 4px;
    left: auto;
}

[dir="rtl"] .side-bar.active:hover .side-bar-manu > ul > li > a::before {
    right: 6px;
    left: auto;
}

/* Admin-wide neutral SaaS components */
.text-danger,
.text-warning,
.text-success,
.text-info,
.text-primary,
.custom-text-primary,
.text-custom-primary {
    color: var(--admin-text) !important;
}

.border-danger,
.border-warning,
.border-success,
.border-primary {
    border-color: var(--admin-border-strong) !important;
}

.bg-danger,
.bg-warning,
.bg-success,
.bg-info,
.bg-primary,
.badge.bg-danger,
.badge.bg-warning,
.badge.bg-success,
.badge.bg-info,
.badge.bg-primary {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}

.btn-danger,
.btn-outline-danger,
.btn-warning,
.btn-outline-warning,
.btn-success,
.btn-outline-success,
.btn-info,
.btn-outline-info,
.btn-outline-primary {
    min-height: 40px;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid var(--admin-border-strong) !important;
    color: var(--admin-text) !important;
    box-shadow: none !important;
}

.btn-danger:hover,
.btn-outline-danger:hover,
.btn-warning:hover,
.btn-outline-warning:hover,
.btn-success:hover,
.btn-outline-success:hover,
.btn-info:hover,
.btn-outline-info:hover,
.btn-outline-primary:hover {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}

.btn-danger *,
.btn-outline-danger *,
.btn-warning *,
.btn-outline-warning *,
.btn-success *,
.btn-outline-success *,
.btn-info *,
.btn-outline-info *,
.btn-outline-primary * {
    color: inherit !important;
}

.trash,
.remove-btn,
.remove-btn-features,
.delete-btn,
.delete-item,
.action-btn,
.table-action-btn,
.table-btn {
    border-radius: 8px !important;
}

.trash,
.remove-btn,
.remove-btn-features,
.delete-btn,
.delete-item {
    color: var(--admin-text) !important;
    background: #ffffff !important;
    border-color: var(--admin-border-strong) !important;
}

.trash:hover,
.remove-btn:hover,
.remove-btn-features:hover,
.delete-btn:hover,
.delete-item:hover {
    color: #ffffff !important;
    background: #111111 !important;
    border-color: #111111 !important;
}

.erp-table-section {
    padding-top: 22px;
    padding-bottom: 28px;
}

.erp-table-section > .container-fluid {
    max-width: 100%;
}

.table-header,
.cards-header,
.card-bodys > .table-header,
.order-form-section .table-header {
    padding: 20px 22px !important;
    border-bottom: 1px solid var(--admin-border) !important;
    background: #ffffff !important;
}

.table-header h3,
.table-header h4,
.table-header h5,
.cards-header h3,
.cards-header h4,
.cards-header h5 {
    margin: 0 !important;
    color: var(--admin-text) !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 760 !important;
    letter-spacing: 0 !important;
}

.card-bodys,
.card-body {
    color: var(--admin-text) !important;
}

.order-form-section,
.permission,
.modal-body,
.add-suplier-modal-wrapper {
    background: #ffffff !important;
}

.order-form-section {
    padding: 22px !important;
}

.order-form-section label,
.modal-body label,
.custom-label,
.custom-top-label,
.settings-image-upload .title,
.form-label {
    margin-bottom: 8px;
    color: var(--admin-text-soft) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.order-form-section .row,
.add-suplier-modal-wrapper .row {
    row-gap: 14px;
}

.order-form-section .col-lg-6,
.order-form-section .col-lg-12,
.add-suplier-modal-wrapper .col-lg-6,
.add-suplier-modal-wrapper .col-lg-12 {
    margin-top: 0 !important;
}

.settings-image-upload {
    padding-top: 0 !important;
}

.upload-img-v2,
.upload-v4,
.settings-upload-v4,
.settings-image-upload .settings-upload-v4 {
    width: 100%;
}

.upload-img-v2 .settings-upload-v4,
.settings-image-upload .settings-upload-v4 {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 18px !important;
    border: 1px dashed var(--admin-border-strong) !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.upload-img-v2 .settings-upload-v4:hover,
.settings-image-upload .settings-upload-v4:hover {
    border-color: #111111 !important;
    background: #ffffff !important;
}

.upload-img-v2 .settings-upload-v4 .img-wrp,
.settings-image-upload .settings-upload-v4 .img-wrp {
    width: 100%;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    background: #ffffff !important;
}

.upload-img-v2 .settings-upload-v4 .img-wrp img,
.settings-image-upload .settings-upload-v4 .img-wrp img {
    max-width: 180px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.settings-link {
    color: var(--admin-text-soft) !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}

.settings-link:hover,
.settings-link.active {
    color: var(--admin-text) !important;
    background: #f1f1f2 !important;
    border-color: var(--admin-border-strong) !important;
}

.settings-link.active::after {
    background: #111111 !important;
}

.settings-box-container {
    gap: 14px !important;
}

.settings-box-container .setting-box,
.settings-popup,
.settings-list,
.language-settings-container {
    border: 1px solid var(--admin-border) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.settings-box-container .setting-box:hover {
    border-color: var(--admin-border-strong) !important;
    background: #fafafa !important;
    transform: translateY(-1px);
}

.settings-box-container .setting-box .settings-icon {
    background: #f4f4f5 !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: 8px !important;
}

.settings-box-container .setting-box .settings-icon svg path,
.settings-box-container .setting-box:hover .settings-icon svg path {
    fill: #111111 !important;
    stroke: #111111 !important;
}

.settings-box-container .setting-box h6,
.settings-list label {
    color: var(--admin-text) !important;
}

.table-top-form,
.table-top-left,
.table-top-right,
.table-search {
    gap: 10px;
}

.table-top-form .form-control,
.table-top-left .form-control,
.table-search .form-control,
.searchInput {
    min-height: 42px;
}

.table-responsive {
    border-radius: 8px;
}

.table {
    margin-bottom: 0;
}

.table tbody tr:hover td,
.dashboard-table-content tbody tr:hover td {
    background: #fafafa !important;
}

.modal-content {
    overflow: hidden;
}

.modal-header,
.modal-footer {
    padding: 18px 22px !important;
}

.modal-title {
    color: var(--admin-text) !important;
    font-size: 18px !important;
    font-weight: 760 !important;
}

.jconfirm .jconfirm-box {
    border-radius: 8px !important;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.14) !important;
}

.jconfirm .jconfirm-buttons button {
    border-radius: 8px !important;
}

.alert,
.toast,
.toast-success,
.toast-error,
.toast-warning,
.toast-info {
    border-radius: 8px !important;
    border-color: var(--admin-border) !important;
}

.alert-danger,
.alert-warning,
.alert-success,
.alert-info {
    background: #fafafa !important;
    color: var(--admin-text) !important;
    border-color: var(--admin-border-strong) !important;
}

/* Final sidebar icon color normalization */
.side-bar .side-bar-manu li a .sidebar-icon,
.side-bar .side-bar-manu li a.active .sidebar-icon,
.side-bar .side-bar-manu li.active > a .sidebar-icon,
.side-bar .side-bar-manu li.active > a.active .sidebar-icon {
    color: #111111 !important;
    background: #f4f4f5 !important;
    border-color: #ececee !important;
}

.side-bar .side-bar-manu li a .sidebar-icon i,
.side-bar .side-bar-manu li a.active .sidebar-icon i,
.side-bar .side-bar-manu li.active > a .sidebar-icon i,
.side-bar .side-bar-manu li.active > a.active .sidebar-icon i,
.side-bar .side-bar-manu li a .sidebar-icon svg,
.side-bar .side-bar-manu li a.active .sidebar-icon svg,
.side-bar .side-bar-manu li.active > a .sidebar-icon svg,
.side-bar .side-bar-manu li.active > a.active .sidebar-icon svg {
    color: #111111 !important;
    opacity: 0.86 !important;
}

.side-bar .side-bar-manu li a .sidebar-icon svg path,
.side-bar .side-bar-manu li a.active .sidebar-icon svg path,
.side-bar .side-bar-manu li.active > a .sidebar-icon svg path,
.side-bar .side-bar-manu li.active > a.active .sidebar-icon svg path {
    fill: #111111 !important;
    stroke: #111111 !important;
}

.side-bar .side-bar-manu li a .sidebar-icon svg *,
.side-bar .side-bar-manu li a.active .sidebar-icon svg *,
.side-bar .side-bar-manu li.active > a .sidebar-icon svg *,
.side-bar .side-bar-manu li.active > a.active .sidebar-icon svg * {
    color: #111111 !important;
    stroke: #111111 !important;
}

.side-bar .side-bar-manu li a .sidebar-icon svg *:not([fill="none"]),
.side-bar .side-bar-manu li a.active .sidebar-icon svg *:not([fill="none"]),
.side-bar .side-bar-manu li.active > a .sidebar-icon svg *:not([fill="none"]),
.side-bar .side-bar-manu li.active > a.active .sidebar-icon svg *:not([fill="none"]) {
    fill: #111111 !important;
}

.side-bar .side-bar-manu li a .sidebar-icon svg [fill="none"],
.side-bar .side-bar-manu li a.active .sidebar-icon svg [fill="none"],
.side-bar .side-bar-manu li.active > a .sidebar-icon svg [fill="none"],
.side-bar .side-bar-manu li.active > a.active .sidebar-icon svg [fill="none"] {
    fill: none !important;
}

.side-bar .side-bar-manu li a .sidebar-icon img,
.side-bar .side-bar-manu li a.active .sidebar-icon img,
.side-bar .side-bar-manu li.active > a .sidebar-icon img,
.side-bar .side-bar-manu li.active > a.active .sidebar-icon img {
    filter: grayscale(1) brightness(0) !important;
    opacity: 0.86 !important;
}

.side-bar .side-bar-manu li a:hover .sidebar-icon i,
.side-bar .side-bar-manu li a:hover .sidebar-icon svg,
.side-bar .side-bar-manu li a:hover .sidebar-icon img,
.side-bar .side-bar-manu li.active > a .sidebar-icon i,
.side-bar .side-bar-manu li.active > a .sidebar-icon svg,
.side-bar .side-bar-manu li.active > a .sidebar-icon img {
    opacity: 1 !important;
}

/* Final monochrome enforcement for admin UI */
:root {
    --bs-primary: #111111;
    --bs-secondary: #6b7280;
    --bs-success: #111111;
    --bs-info: #3f3f46;
    --bs-warning: #737373;
    --bs-danger: #111111;
    --bs-primary-rgb: 17, 17, 17;
    --bs-success-rgb: 17, 17, 17;
    --bs-info-rgb: 63, 63, 70;
    --bs-warning-rgb: 115, 115, 115;
    --bs-danger-rgb: 17, 17, 17;
}

.side-bar .side-bar-manu .sidebar-icon,
.side-bar .side-bar-manu li:hover > a .sidebar-icon,
.side-bar .side-bar-manu li.active > a .sidebar-icon,
.side-bar .side-bar-manu li > a.active .sidebar-icon {
    color: #111111 !important;
    background: #f4f4f5 !important;
    border: 1px solid #e6e6e8 !important;
}

.side-bar .side-bar-manu .sidebar-icon i,
.side-bar .side-bar-manu .sidebar-icon svg,
.side-bar .side-bar-manu .sidebar-icon svg *,
.side-bar .side-bar-manu li:hover > a .sidebar-icon i,
.side-bar .side-bar-manu li:hover > a .sidebar-icon svg,
.side-bar .side-bar-manu li:hover > a .sidebar-icon svg *,
.side-bar .side-bar-manu li.active > a .sidebar-icon i,
.side-bar .side-bar-manu li.active > a .sidebar-icon svg,
.side-bar .side-bar-manu li.active > a .sidebar-icon svg *,
.side-bar .side-bar-manu li > a.active .sidebar-icon i,
.side-bar .side-bar-manu li > a.active .sidebar-icon svg,
.side-bar .side-bar-manu li > a.active .sidebar-icon svg * {
    color: #111111 !important;
    stroke: #111111 !important;
}

.side-bar .side-bar-manu .sidebar-icon svg *:not([fill="none"]),
.side-bar .side-bar-manu li:hover > a .sidebar-icon svg *:not([fill="none"]),
.side-bar .side-bar-manu li.active > a .sidebar-icon svg *:not([fill="none"]),
.side-bar .side-bar-manu li > a.active .sidebar-icon svg *:not([fill="none"]) {
    fill: #111111 !important;
}

.side-bar .side-bar-manu .sidebar-icon svg [fill="none"],
.side-bar .side-bar-manu li:hover > a .sidebar-icon svg [fill="none"],
.side-bar .side-bar-manu li.active > a .sidebar-icon svg [fill="none"],
.side-bar .side-bar-manu li > a.active .sidebar-icon svg [fill="none"] {
    fill: none !important;
}

.side-bar .side-bar-manu .sidebar-icon img,
.side-bar .side-bar-manu li:hover > a .sidebar-icon img,
.side-bar .side-bar-manu li.active > a .sidebar-icon img,
.side-bar .side-bar-manu li > a.active .sidebar-icon img {
    filter: brightness(0) saturate(100%) !important;
    opacity: 1 !important;
}

.text-danger,
.btn.text-danger,
a.text-danger,
i.text-danger,
span.text-danger,
[class*="text-danger"] {
    color: #111111 !important;
}

.border-danger,
[class*="border-danger"] {
    border-color: #d8d8dc !important;
}

.bg-danger,
[class*="bg-danger"],
.badge.bg-danger,
.badge-danger {
    background-color: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}

.btn-danger,
.btn-outline-danger,
[class*="btn-danger"],
[class*="btn-outline-danger"] {
    background: #ffffff !important;
    border-color: #d8d8dc !important;
    color: #111111 !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
[class*="btn-danger"]:hover,
[class*="btn-danger"]:focus,
[class*="btn-danger"]:active,
[class*="btn-outline-danger"]:hover,
[class*="btn-outline-danger"]:focus,
[class*="btn-outline-danger"]:active {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}

.form-control.is-invalid,
.was-validated .form-control:invalid,
.form-select.is-invalid,
.was-validated .form-select:invalid,
.invalid-feedback,
.invalid-tooltip {
    border-color: #111111 !important;
    color: #111111 !important;
}

/* Active sidebar icons stay dark grey */
.side-bar .side-bar-manu li.active > a .sidebar-icon,
.side-bar .side-bar-manu li.active > a.active .sidebar-icon,
.side-bar .side-bar-manu li > a.active .sidebar-icon {
    color: #3f3f46 !important;
    background: #f4f4f5 !important;
    border-color: #e6e6e8 !important;
}

.side-bar .side-bar-manu li.active > a .sidebar-icon i,
.side-bar .side-bar-manu li.active > a .sidebar-icon svg,
.side-bar .side-bar-manu li.active > a .sidebar-icon svg *,
.side-bar .side-bar-manu li.active > a.active .sidebar-icon i,
.side-bar .side-bar-manu li.active > a.active .sidebar-icon svg,
.side-bar .side-bar-manu li.active > a.active .sidebar-icon svg *,
.side-bar .side-bar-manu li > a.active .sidebar-icon i,
.side-bar .side-bar-manu li > a.active .sidebar-icon svg,
.side-bar .side-bar-manu li > a.active .sidebar-icon svg * {
    color: #3f3f46 !important;
    stroke: #3f3f46 !important;
}

.side-bar .side-bar-manu li.active > a .sidebar-icon svg *:not([fill="none"]),
.side-bar .side-bar-manu li.active > a.active .sidebar-icon svg *:not([fill="none"]),
.side-bar .side-bar-manu li > a.active .sidebar-icon svg *:not([fill="none"]) {
    fill: #3f3f46 !important;
}

.side-bar .side-bar-manu li.active > a .sidebar-icon img,
.side-bar .side-bar-manu li.active > a.active .sidebar-icon img,
.side-bar .side-bar-manu li > a.active .sidebar-icon img {
    filter: brightness(0) saturate(100%) opacity(0.78) !important;
}

/* Folded sidebar should show icons only */
.side-bar.active:not(:hover) .side-bar-manu {
    padding-inline: 10px !important;
}

.side-bar.active:not(:hover) .side-bar-manu > ul > li > a {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 44px !important;
    padding: 6px !important;
    justify-content: center !important;
    gap: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.side-bar.active:not(:hover) .side-bar-manu > ul > li > a .sidebar-icon {
    margin: 0 !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
}

.side-bar.active:not(:hover) .side-bar-manu > ul > li > a > :not(.sidebar-icon),
.side-bar.active:not(:hover) .side-bar-manu > ul > li > a .title,
.side-bar.active:not(:hover) .side-bar-manu > ul > li > a sup,
.side-bar.active:not(:hover) .side-bar-manu > ul > li > ul,
.side-bar.active:not(:hover) .side-bar-manu > ul > li > .dropdown-menu,
.side-bar.active:not(:hover) .side-bar-manu .dropdown::before,
.side-bar.active:not(:hover) .version-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.side-bar.active:not(:hover) .side-bar-logo a {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    padding: 6px !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.side-bar.active:not(:hover) .side-bar-logo a > :not(img),
.side-bar.active:not(:hover) .side-bar-logo a span,
.side-bar.active:not(:hover) .side-bar-logo a p,
.side-bar.active:not(:hover) .close-btn {
    display: none !important;
}

/* Absolute final Superadmin active icon override */
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon {
    color: #3f3f46 !important;
    background-color: #f4f4f5 !important;
    border-color: #e6e6e8 !important;
}

body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon i,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon svg,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon path,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon rect,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon circle,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon line,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon polyline,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon polygon,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon i,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon svg,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon path,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon rect,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon circle,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon line,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon polyline,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon polygon {
    color: #3f3f46 !important;
    fill: #3f3f46 !important;
    stroke: #3f3f46 !important;
}

body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon [fill="none"],
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon [fill="none"] {
    fill: none !important;
}

/* Hard stop for Superadmin active icons and folded labels */
body .side-bar .side-bar-manu > ul > li.active > a,
body .side-bar .side-bar-manu > ul > li.active > a.active {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon {
    color: #3f3f46 !important;
    -webkit-text-fill-color: #3f3f46 !important;
}

body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon *,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon * {
    color: #3f3f46 !important;
    -webkit-text-fill-color: #3f3f46 !important;
    border-color: #3f3f46 !important;
}

body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon svg,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon svg {
    color: #3f3f46 !important;
    fill: #3f3f46 !important;
    stroke: #3f3f46 !important;
    filter: none !important;
}

body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon svg path,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon svg rect,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon svg circle,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon svg ellipse,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon svg line,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon svg polyline,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon svg polygon,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon svg path,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon svg rect,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon svg circle,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon svg ellipse,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon svg line,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon svg polyline,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon svg polygon {
    fill: #3f3f46 !important;
    stroke: #3f3f46 !important;
    filter: none !important;
}

body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon svg [fill="none"],
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon svg [fill="none"] {
    fill: none !important;
}

body .side-bar.active:not(:hover) .side-bar-manu > ul > li > a {
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: 0 !important;
}

body .side-bar.active:not(:hover) .side-bar-manu > ul > li > a .sidebar-icon,
body .side-bar.active:not(:hover) .side-bar-manu > ul > li > a .sidebar-icon svg,
body .side-bar.active:not(:hover) .side-bar-manu > ul > li > a .sidebar-icon i,
body .side-bar.active:not(:hover) .side-bar-manu > ul > li > a .sidebar-icon img {
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Header notification count badge */
.main-header-section .notifications .bg-red,
.main-header-section .notifications .dropdown-toggleer > span {
    background: #2563eb !important;
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* Minimal language selector */
.main-header-section .language-change {
    margin-inline: 8px;
}

.main-header-section .language-change .dropdown-toggle,
.main-header-section .language-change .btn {
    min-height: 40px;
    padding: 0 12px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e6e6e8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.main-header-section .language-change .dropdown-toggle:hover,
.main-header-section .language-change .dropdown-toggle:focus,
.main-header-section .language-change .btn:hover,
.main-header-section .language-change .btn:focus {
    background: #f7f7f8 !important;
    border-color: #d8d8dc !important;
    color: #111111 !important;
    box-shadow: none !important;
}

.main-header-section .language-change .dropdown-toggle::after {
    margin-inline-start: 2px;
    border-top-color: #6b7280;
}

.main-header-section .language-change .flag-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 2px;
    border: 1px solid #e6e6e8;
    border-radius: 50%;
    background: #ffffff;
    object-fit: cover;
}

.main-header-section .language-change .lang-name {
    color: #111111 !important;
    line-height: 1;
}

.main-header-section .language-change .dropdown-menu {
    min-width: 180px;
    padding: 6px !important;
    margin-top: 8px !important;
    border: 1px solid #e6e6e8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.1) !important;
}

.main-header-section .language-change .dropdown-item {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px !important;
    border-radius: 7px !important;
    color: #3f3f46 !important;
    font-size: 13px;
    font-weight: 650;
}

.main-header-section .language-change .dropdown-item:hover,
.main-header-section .language-change .dropdown-item:focus,
.main-header-section .language-change .dropdown-item.active {
    background: #f4f4f5 !important;
    color: #111111 !important;
}

.main-header-section .language-change .language-li {
    position: relative;
}

.main-header-section .language-change .language-check {
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #111111 !important;
    font-size: 11px;
}

/* Active icon filters must not invert dark grey icons */
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon,
body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon *,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon * {
    filter: none !important;
}

body .side-bar .side-bar-manu > ul > li.active > a .sidebar-icon img,
body .side-bar .side-bar-manu > ul > li.active > a.active .sidebar-icon img {
    filter: brightness(0) saturate(100%) opacity(0.78) !important;
}

/* SaaS dashboard */
.saas-dashboard {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.saas-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0 2px;
}

.saas-dashboard-header h1 {
    margin: 6px 0 6px;
    color: var(--admin-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.saas-dashboard-header p,
.saas-table-section .table-header p,
.saas-panel .dashboard-chart-header p {
    margin: 0;
    color: var(--admin-text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.saas-eyebrow {
    color: var(--admin-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.saas-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.saas-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.saas-button-primary {
    background: var(--admin-text);
    border: 1px solid var(--admin-text);
    color: var(--admin-white) !important;
}

.saas-button-secondary {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    color: var(--admin-text) !important;
}

.saas-button-secondary:hover {
    border-color: var(--admin-border-strong);
}

.saas-kpi-grid.gpt-dashboard-card.counter-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.saas-kpi-grid .saas-kpi-card.couter-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 18px !important;
    min-height: 154px;
    padding: 18px !important;
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: var(--admin-text) !important;
}

.saas-kpi-card.is-primary {
    border-color: #cfd4dc !important;
}

.saas-kpi-card.is-warning {
    background: #fffdf7 !important;
}

.saas-kpi-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.saas-kpi-top span {
    color: var(--admin-text-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.saas-kpi-grid .couter-box h5,
.saas-kpi-card h5 {
    margin: 0 0 4px !important;
    color: var(--admin-text) !important;
    font-size: 26px !important;
    font-weight: 750 !important;
    line-height: 1.15 !important;
}

.saas-kpi-grid .couter-box p,
.saas-kpi-card p {
    margin: 0 !important;
    color: var(--admin-text-muted) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.saas-kpi-grid .couter-box .icons {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px;
    border-radius: 8px !important;
    background: var(--admin-surface-soft) !important;
    border: 1px solid var(--admin-border) !important;
    color: var(--admin-text) !important;
    font-size: 22px !important;
}

.saas-kpi-grid .couter-box .icons i {
    color: var(--admin-text) !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

.saas-kpi-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--admin-surface-soft);
    color: var(--admin-text-soft);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
}

.saas-dashboard-main {
    row-gap: 0;
}

.saas-panel {
    overflow: hidden;
    border-radius: 8px !important;
}

.saas-panel .dashboard-chart-header {
    align-items: flex-start;
    gap: 16px;
    padding: 18px 18px 14px;
}

.saas-panel .dashboard-chart-header h4,
.saas-table-section .table-header h4 {
    margin: 0 0 4px;
    color: var(--admin-text) !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.saas-panel .card-body {
    padding: 18px !important;
}

.saas-panel .income-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 10px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface-soft);
    color: var(--admin-text-soft);
    font-size: 13px;
    font-weight: 650;
}

.saas-insight-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-border);
}

.saas-insight-strip > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 14px 16px;
    background: var(--admin-surface);
}

.saas-insight-strip span {
    color: var(--admin-text-muted);
    font-size: 13px;
    font-weight: 650;
}

.saas-insight-strip strong {
    color: var(--admin-text);
    font-size: 14px;
    font-weight: 750;
    text-align: right;
}

.saas-table-section {
    margin-top: 0 !important;
}

.saas-table-section .card {
    border: 1px solid var(--admin-border) !important;
    box-shadow: none !important;
}

.saas-table-section .table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--admin-border);
}

.saas-table-section .top-customer-table {
    overflow-x: auto;
}

.saas-table-section .table {
    margin: 0;
}

.saas-table-section .table thead th {
    padding: 12px 16px;
    background: var(--admin-surface-soft) !important;
    color: var(--admin-text-muted) !important;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.saas-table-section .table tbody td {
    padding: 14px 16px;
    color: var(--admin-text-soft) !important;
    vertical-align: middle;
    border-color: var(--admin-border) !important;
}

.saas-store-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.saas-store-cell > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    background: var(--admin-text);
    color: var(--admin-white);
    font-size: 13px;
    font-weight: 800;
}

.saas-store-cell strong {
    display: block;
    color: var(--admin-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.saas-store-cell small {
    display: block;
    margin-top: 3px;
    color: var(--admin-text-muted);
    font-size: 12px;
    line-height: 1.25;
}

.saas-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

.saas-status.is-active {
    background: #ecfdf3;
    color: #027a48;
}

.saas-status.is-expired {
    background: #fff1f0;
    color: #b42318;
}

@media (max-width: 1500px) {
    .saas-kpi-grid.gpt-dashboard-card.counter-grid-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .saas-dashboard-header {
        flex-direction: column;
    }

    .saas-kpi-grid.gpt-dashboard-card.counter-grid-6,
    .saas-insight-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .saas-dashboard-header h1 {
        font-size: 24px;
    }

    .saas-header-actions,
    .saas-header-actions .saas-button {
        width: 100%;
    }

    .saas-kpi-grid.gpt-dashboard-card.counter-grid-6,
    .saas-insight-strip {
        grid-template-columns: 1fr;
    }

    .saas-insight-strip > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .saas-insight-strip strong {
        text-align: left;
    }
}
