:root {
    --idx-bg: #07120d;
    --idx-surface: #101b15;
    --idx-surface-alt: #14231b;
    --idx-surface-soft: rgba(20, 35, 27, 0.74);
    --idx-panel-strong: rgba(12, 23, 18, 0.9);
    --idx-panel-soft: rgba(18, 31, 24, 0.82);
    --idx-border: rgba(132, 170, 149, 0.16);
    --idx-border-strong: rgba(132, 170, 149, 0.24);
    --idx-text: #eef7f1;
    --idx-muted: #9fb4a6;
    --idx-primary: #2ecc71;
    --idx-primary-dark: #1f8f56;
    --idx-blue: #4f93ff;
    --idx-red: #ef6b6b;
    --idx-gold: #e0ad3b;
    --idx-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
    --idx-sidebar-width: 258px;
    --idx-radius-xl: 28px;
    --idx-radius-lg: 20px;
    --idx-radius-md: 16px;
}

body.index-rebuild-app {
    min-height: 100vh;
    margin: 0;
    color: var(--idx-text);
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.12), transparent 24%),
        linear-gradient(180deg, #07120d 0%, #091510 34%, #050b08 100%);
    overflow-x: hidden;
}

body.index-rebuild-app,
body.index-rebuild-app[data-bs-theme],
html[data-bs-theme] body.index-rebuild-app {
    --bs-body-bg: transparent;
    --bs-body-color: var(--idx-text);
    --bs-border-color: var(--idx-border);
    --bs-border-color-translucent: var(--idx-border);
    --bs-card-bg: var(--idx-surface-soft);
    --bs-card-border-color: var(--idx-border);
    --bs-secondary-bg: rgba(255, 255, 255, 0.04);
    --bs-tertiary-bg: rgba(255, 255, 255, 0.02);
    --bs-secondary-color: var(--idx-muted);
    --bs-emphasis-color: var(--idx-text);
    --bs-primary: var(--idx-primary);
    --bs-primary-rgb: 46, 204, 113;
    --bs-link-color: var(--idx-text);
    --bs-link-hover-color: #ffffff;
}

html[data-bs-theme="light"] body.index-rebuild-app,
body.index-rebuild-app[data-theme-mode="light"] {
    --idx-bg: #e7ebe8;
    --idx-surface: #f0f3f1;
    --idx-surface-alt: #e7ece9;
    --idx-surface-soft: rgba(243, 246, 244, 0.97);
    --idx-panel-strong: rgba(236, 240, 237, 0.98);
    --idx-panel-soft: rgba(230, 235, 232, 0.95);
    --idx-border: rgba(42, 60, 50, 0.11);
    --idx-border-strong: rgba(42, 60, 50, 0.16);
    --idx-text: #1f2c25;
    --idx-muted: #68776f;
    --idx-primary: #6ea889;
    --idx-primary-dark: #568368;
    --idx-blue: #5e88c2;
    --idx-red: #c97a80;
    --idx-gold: #b89455;
    --idx-shadow: 0 14px 32px rgba(40, 56, 47, 0.08);
    --bs-body-color: #1b2a22;
    --bs-card-bg: rgba(241, 245, 242, 0.96);
    --bs-card-border-color: rgba(41, 63, 51, 0.12);
    --bs-secondary-bg: rgba(27, 42, 34, 0.045);
    --bs-tertiary-bg: rgba(27, 42, 34, 0.028);
    --bs-secondary-color: #62746a;
    --bs-emphasis-color: #1b2a22;
    background:
        radial-gradient(circle at top left, rgba(110, 168, 137, 0.07), transparent 22%),
        linear-gradient(180deg, #e7ebe8 0%, #eef1ef 42%, #e8ece9 100%);
}

body.index-rebuild-app a {
    color: inherit;
}

body.index-rebuild-app .swal2-container.swal2-backdrop-show,
body.index-rebuild-app .swal2-container.swal2-noanimation {
    background: rgba(3, 10, 7, 0.72) !important;
    backdrop-filter: blur(10px);
}

body.index-rebuild-app .swal2-popup {
    width: min(34rem, calc(100vw - 32px)) !important;
    padding: 1.4rem 1.4rem 1.25rem !important;
    border: 1px solid var(--idx-border-strong) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(17, 31, 24, 0.98), rgba(10, 17, 14, 0.98)) !important;
    color: var(--idx-text) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42) !important;
}

body.index-rebuild-app .idx-flash-toast {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: min(320px, calc(100vw - 24px));
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid var(--idx-border-strong);
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(15, 28, 21, 0.98), rgba(9, 16, 13, 0.98));
    color: var(--idx-text);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

body.index-rebuild-app .idx-flash-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

body.index-rebuild-app .idx-flash-toast-icon {
    width: 22px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .95rem;
}

body.index-rebuild-app .idx-flash-toast-success .idx-flash-toast-icon {
    color: #8df0a9;
    background: rgba(46, 204, 113, 0.12);
}

body.index-rebuild-app .idx-flash-toast-error .idx-flash-toast-icon {
    color: #ff9b9b;
    background: rgba(239, 107, 107, 0.12);
}

body.index-rebuild-app .idx-flash-toast-text {
    flex: 1;
    min-width: 0;
    font-size: .9rem;
    line-height: 1.35;
    font-weight: 600;
}

body.index-rebuild-app .idx-flash-toast-close {
    width: 24px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--idx-muted);
    transition: background .18s ease, color .18s ease;
}

body.index-rebuild-app .idx-flash-toast-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--idx-text);
}

body.index-rebuild-app .idx-flash-toast-close i {
    font-size: .72rem;
    line-height: 1;
}

html[data-bs-theme="light"] body.index-rebuild-app .swal2-popup,
body.index-rebuild-app[data-theme-mode="light"] .swal2-popup {
    background:
        radial-gradient(circle at top left, rgba(95, 187, 131, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(241, 245, 242, 0.99), rgba(232, 238, 234, 0.99)) !important;
}

body.index-rebuild-app .swal2-title {
    padding: 0 !important;
    color: var(--idx-text) !important;
    font-size: 1.32rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

body.index-rebuild-app .swal2-html-container,
body.index-rebuild-app .swal2-content {
    margin: .8rem 0 0 !important;
    color: var(--idx-muted) !important;
    font-size: .96rem !important;
    line-height: 1.6 !important;
}

body.index-rebuild-app .swal2-icon {
    margin: .2rem auto .9rem !important;
}

body.index-rebuild-app .swal2-actions {
    gap: 10px;
    margin-top: 1.2rem !important;
}

body.index-rebuild-app .swal2-styled {
    margin: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    padding: .72rem 1.1rem !important;
    transition: .2s ease !important;
}

body.index-rebuild-app .swal2-styled:focus {
    box-shadow: 0 0 0 .2rem rgba(46, 204, 113, 0.14) !important;
}

body.index-rebuild-app .swal2-confirm {
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.96), rgba(31, 143, 86, 0.96)) !important;
    color: #f5fff8 !important;
    border-color: rgba(46, 204, 113, 0.28) !important;
}

body.index-rebuild-app .swal2-confirm:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

body.index-rebuild-app .swal2-cancel {
    background: linear-gradient(180deg, rgba(239, 107, 107, 0.94), rgba(194, 64, 64, 0.94)) !important;
    color: #fff7f7 !important;
    border-color: rgba(239, 107, 107, 0.22) !important;
}

body.index-rebuild-app .swal2-cancel:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

body.index-rebuild-app .swal2-deny {
    background: linear-gradient(180deg, rgba(79, 147, 255, 0.94), rgba(53, 104, 195, 0.94)) !important;
    color: #f4f8ff !important;
    border-color: rgba(79, 147, 255, 0.2) !important;
}

body.index-rebuild-app .swal2-close {
    color: var(--idx-muted) !important;
    transition: .2s ease !important;
}

body.index-rebuild-app .swal2-close:hover {
    color: var(--idx-text) !important;
    transform: scale(1.04);
}

body.index-rebuild-app .swal2-input,
body.index-rebuild-app .swal2-textarea,
body.index-rebuild-app .swal2-select,
body.index-rebuild-app .swal2-file {
    border: 1px solid var(--idx-border) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)) !important;
    color: var(--idx-text) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.index-rebuild-app .swal2-input:focus,
body.index-rebuild-app .swal2-textarea:focus,
body.index-rebuild-app .swal2-select:focus {
    border-color: rgba(46, 204, 113, 0.34) !important;
    box-shadow: 0 0 0 .18rem rgba(46, 204, 113, 0.12) !important;
}

body.index-rebuild-app .swal2-input::placeholder,
body.index-rebuild-app .swal2-textarea::placeholder {
    color: var(--idx-muted) !important;
}

body.index-rebuild-app .swal2-validation-message {
    margin-top: .8rem !important;
    border-radius: 12px !important;
    background: rgba(239, 107, 107, 0.12) !important;
    color: #ffb2b2 !important;
}

body.index-rebuild-app .swal-month-picker {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

body.index-rebuild-app .swal-month-copy {
    color: var(--idx-muted);
    font-size: .96rem;
    line-height: 1.55;
}

body.index-rebuild-app .swal-month-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.index-rebuild-app .swal-month-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--idx-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    color: var(--idx-text);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    text-align: center;
    overflow: hidden;
}

body.index-rebuild-app .swal-month-option:hover {
    transform: translateY(-1px);
    border-color: rgba(46, 204, 113, 0.28);
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.12), rgba(46, 204, 113, 0.04));
}

body.index-rebuild-app .swal-month-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

body.index-rebuild-app .swal-month-option span {
    position: relative;
    z-index: 1;
    font-weight: 600;
    letter-spacing: .01em;
}

body.index-rebuild-app .swal-month-option:has(input:checked) {
    border-color: rgba(46, 204, 113, 0.45);
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.18), rgba(46, 204, 113, 0.07));
    box-shadow:
        0 0 0 .16rem rgba(46, 204, 113, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.index-rebuild-app .swal-month-option:has(input:focus-visible) {
    box-shadow:
        0 0 0 .18rem rgba(46, 204, 113, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="light"] body.index-rebuild-app .swal2-validation-message,
body.index-rebuild-app[data-theme-mode="light"] .swal2-validation-message {
    color: #9c2626 !important;
}

body.index-rebuild-app .swal2-timer-progress-bar {
    background: linear-gradient(90deg, rgba(46, 204, 113, 0.95), rgba(79, 147, 255, 0.8)) !important;
}

@media (max-width: 575.98px) {
    body.index-rebuild-app .swal-month-grid {
        grid-template-columns: 1fr;
    }
}

body.index-rebuild-app .dashboard-shell {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-shell,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-shell {
    background: transparent;
}

html[data-bs-theme="light"] body.index-rebuild-app .sidebar-wrapper,
body.index-rebuild-app[data-theme-mode="light"] .sidebar-wrapper {
    background:
        radial-gradient(circle at top left, rgba(110, 168, 137, 0.07), transparent 30%),
        linear-gradient(180deg, rgba(227, 233, 229, 0.98), rgba(218, 225, 221, 0.98));
    box-shadow: 0 14px 34px rgba(40, 56, 47, 0.08);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-brand-icon,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-brand-icon {
    border-color: rgba(110, 168, 137, 0.16);
    background: linear-gradient(135deg, rgba(110, 168, 137, 0.12), rgba(86, 131, 104, 0.14));
}

html[data-bs-theme="light"] body.index-rebuild-app .sidebar-close,
html[data-bs-theme="light"] body.index-rebuild-app .btn-toggle-menu,
html[data-bs-theme="light"] body.index-rebuild-app .dashboard-topbar-action,
body.index-rebuild-app[data-theme-mode="light"] .sidebar-close,
body.index-rebuild-app[data-theme-mode="light"] .btn-toggle-menu,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-topbar-action {
    border-color: rgba(41, 63, 51, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-bs-theme="light"] body.index-rebuild-app .sidebar-close:hover,
html[data-bs-theme="light"] body.index-rebuild-app .btn-toggle-menu:hover,
html[data-bs-theme="light"] body.index-rebuild-app .dashboard-topbar-action:hover,
body.index-rebuild-app[data-theme-mode="light"] .sidebar-close:hover,
body.index-rebuild-app[data-theme-mode="light"] .btn-toggle-menu:hover,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-topbar-action:hover {
    background: rgba(41, 63, 51, 0.06);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-nav a,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-nav a {
    box-shadow: none;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-nav a:hover,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-nav a:hover {
    border-color: rgba(42, 60, 50, 0.08);
    background: rgba(42, 60, 50, 0.04);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-nav-icon,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-nav-icon {
    background: rgba(42, 60, 50, 0.05);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-nav a.active,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-nav a.active {
    color: #1d2c24;
    border-color: rgba(110, 168, 137, 0.18);
    background: linear-gradient(135deg, rgba(110, 168, 137, 0.30), rgba(110, 168, 137, 0.20));
    box-shadow: 0 8px 18px rgba(86, 131, 104, 0.10);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-nav a.active .dashboard-nav-icon,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-nav a.active .dashboard-nav-icon {
    background: rgba(255, 255, 255, 0.34);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-shortcut,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-shortcut {
    border-color: rgba(110, 168, 137, 0.14);
    background: linear-gradient(135deg, rgba(110, 168, 137, 0.08), rgba(110, 168, 137, 0.03));
    box-shadow: none;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-shortcut-icon,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-shortcut-icon {
    background: rgba(255, 255, 255, 0.42);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-shortcut-copy span,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-shortcut-copy span {
    color: #597066;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-settings-toggle,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-settings-toggle {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.20)),
        rgba(226, 232, 228, 0.88);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 8px 20px rgba(40, 56, 47, 0.05);
    backdrop-filter: blur(12px);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-settings-toggle:hover,
html[data-bs-theme="light"] body.index-rebuild-app .dashboard-settings-toggle:focus,
html[data-bs-theme="light"] body.index-rebuild-app .show > .dashboard-settings-toggle,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-settings-toggle:hover,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-settings-toggle:focus,
body.index-rebuild-app[data-theme-mode="light"] .show > .dashboard-settings-toggle {
    background:
        linear-gradient(180deg, rgba(110, 168, 137, 0.10), rgba(110, 168, 137, 0.04)),
        rgba(228, 234, 230, 0.95);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-settings-toggle .dashboard-nav-icon,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-settings-toggle .dashboard-nav-icon {
    background:
        linear-gradient(180deg, rgba(110, 168, 137, 0.10), rgba(86, 131, 104, 0.06)),
        rgba(255, 255, 255, 0.40);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-settings-toggle .dashboard-nav-icon,
html[data-bs-theme="light"] body.index-rebuild-app .dashboard-settings-toggle .material-symbols-outlined:last-child,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-settings-toggle .dashboard-nav-icon,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-settings-toggle .material-symbols-outlined:last-child {
    color: #264034;
}

body.index-rebuild-app .sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--idx-sidebar-width);
    z-index: 30;
    display: flex;
    flex-direction: column;
    min-height: auto;
    border: 1px solid var(--idx-border);
    border-left: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(17, 31, 24, 0.98), rgba(10, 17, 14, 0.98));
    box-shadow: var(--idx-shadow);
    transform: translateX(0);
    transition: transform .22s ease;
}

body.index-rebuild-app.sidebar-collapsed .sidebar-wrapper {
    transform: translateX(-100%);
}

body.index-rebuild-app .sidebar-wrapper::after {
    content: none;
}

body.index-rebuild-app .dashboard-header-panel::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: inherit;
    pointer-events: none;
}

body.index-rebuild-app .dashboard-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 0;
    background: transparent;
}

body.index-rebuild-app .dashboard-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

body.index-rebuild-app .dashboard-brand-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 16px;
    border: 1px solid rgba(46, 204, 113, 0.18);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.18), rgba(31, 143, 86, 0.24));
}

body.index-rebuild-app .dashboard-brand-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: none;
}

body.index-rebuild-app .dashboard-brand-copy {
    min-width: 0;
}

body.index-rebuild-app .dashboard-brand-copy span {
    display: block;
    margin-bottom: 3px;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--idx-muted);
}

body.index-rebuild-app .dashboard-brand-copy strong {
    display: block;
    font-size: 1.18rem;
    line-height: 1.1;
}

body.index-rebuild-app .sidebar-close,
body.index-rebuild-app .btn-toggle-menu,
body.index-rebuild-app .dashboard-topbar-action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--idx-text);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: .2s ease;
}

body.index-rebuild-app .sidebar-close:hover,
body.index-rebuild-app .btn-toggle-menu:hover,
body.index-rebuild-app .dashboard-topbar-action:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transform: translateY(-1px);
}

body.index-rebuild-app .btn-toggle-menu {
    display: none;
}

body.index-rebuild-app .sidebar-close {
    background: transparent;
}

body.index-rebuild-app .btn-toggle-menu {
    background: transparent;
}

body.index-rebuild-app.sidebar-collapsed .btn-toggle-menu {
    display: inline-flex;
}

body.index-rebuild-app .sidebar-nav {
    flex: 1;
    min-height: 0;
    padding: 14px 12px 14px 14px;
}

body.index-rebuild-app .sidebar-nav .simplebar-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
}

body.index-rebuild-app .dashboard-sidebar-section {
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--idx-muted);
    padding-left: 4px;
}

body.index-rebuild-app .dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.index-rebuild-app .dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: var(--idx-muted);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.01);
    transition: .2s ease;
}

body.index-rebuild-app .dashboard-nav a:hover {
    color: var(--idx-text);
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

body.index-rebuild-app .dashboard-nav a.active {
    color: #062111;
    border-color: transparent;
    background: linear-gradient(135deg, var(--idx-primary), var(--idx-primary-dark));
    box-shadow: 0 1px 28px rgba(46, 204, 113, 0.18);
}

body.index-rebuild-app .dashboard-nav-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
}

body.index-rebuild-app .dashboard-nav a.active .dashboard-nav-icon {
    background: rgba(6, 33, 17, 0.1);
}

body.index-rebuild-app .dashboard-nav-label {
    font-size: .92rem;
    font-weight: 600;
}

body.index-rebuild-app .dashboard-shortcut {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(46, 204, 113, 0.16);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.16), rgba(31, 143, 86, 0.12));
    text-decoration: none;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.16);
}

body.index-rebuild-app .dashboard-shortcut-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

body.index-rebuild-app .dashboard-shortcut-copy strong {
    display: block;
    font-size: .9rem;
}

body.index-rebuild-app .dashboard-shortcut-copy span {
    display: block;
    font-size: .78rem;
    color: rgba(238, 247, 241, 0.76);
}

body.index-rebuild-app .sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 0;
    background: transparent;
}

body.index-rebuild-app .sidebar-utility-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.index-rebuild-app .sidebar-utility-actions .dashboard-topbar-action {
    width: auto;
    min-width: 0;
    padding: 0 12px;
    gap: 8px;
}

body.index-rebuild-app .sidebar-utility-label {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
}

body.index-rebuild-app .dashboard-settings-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    min-height: 52px;
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid var(--idx-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
        rgba(8, 20, 15, 0.72);
    color: var(--idx-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 24px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(14px);
    cursor: pointer;
    user-select: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.index-rebuild-app .dashboard-settings-toggle::after {
    display: none;
}

body.index-rebuild-app .dashboard-settings-toggle:hover,
body.index-rebuild-app .dashboard-settings-toggle:focus,
body.index-rebuild-app .show > .dashboard-settings-toggle {
    border-color: rgba(46, 204, 113, 0.24);
    background:
        linear-gradient(180deg, rgba(46, 204, 113, 0.12), rgba(31, 143, 86, 0.08)),
        rgba(8, 20, 15, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 28px rgba(0, 0, 0, 0.18);
}

body.index-rebuild-app .dashboard-settings-toggle .dashboard-nav-icon,
body.index-rebuild-app .dashboard-settings-toggle .material-symbols-outlined:last-child {
    color: #e9fff0;
}

body.index-rebuild-app .dashboard-settings-toggle .dashboard-nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background:
        linear-gradient(180deg, rgba(46, 204, 113, 0.2), rgba(31, 143, 86, 0.12)),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.index-rebuild-app .dashboard-settings-toggle .material-symbols-outlined:last-child {
    font-size: 1.18rem;
    opacity: .82;
}

body.index-rebuild-app .dashboard-settings-copy {
    min-width: 0;
}

body.index-rebuild-app .dashboard-settings-copy strong {
    display: block;
    font-size: .9rem;
}

body.index-rebuild-app .dashboard-settings-copy span {
    display: block;
    font-size: .73rem;
    color: var(--idx-muted);
}

body.index-rebuild-app .dashboard-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: calc(100vh - 32px);
    margin-left: var(--idx-sidebar-width);
    background: transparent;
    transition: margin-left .22s ease;
}

body.index-rebuild-app.sidebar-collapsed .dashboard-main {
    margin-left: 0;
}

body.index-rebuild-app .dashboard-main-toggle {
    display: none;
}

body.index-rebuild-app.sidebar-collapsed .dashboard-main-toggle {
    display: flex;
    align-items: center;
    padding: 16px 18px 0;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-main,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-main {
    background: transparent;
}

body.index-rebuild-app .page-content {
    flex: 1 1 auto;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

body.index-rebuild-app .dashboard-header-panel {
    position: sticky;
    z-index: 20;
    overflow: hidden;
    padding: 16px 18px 12px;
    border-left: 0;
}

body.index-rebuild-app .dashboard-header-panel::before {
    content: none;
}

body.index-rebuild-app .dashboard-header-panel::after {
    content: none;
}

body.index-rebuild-app .dashboard-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

body.index-rebuild-app .dashboard-topbar-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

body.index-rebuild-app .dashboard-topbar-copy {
    min-width: 0;
    max-width: 760px;
}

body.index-rebuild-app .dashboard-topbar-copy span {
    display: block;
    margin-bottom: 3px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--idx-muted);
}

body.index-rebuild-app .dashboard-topbar-copy h1 {
    margin: 0 0 4px;
    font-size: 1.72rem;
    line-height: 1;
    letter-spacing: -.03em;
}

body.index-rebuild-app .dashboard-topbar-copy p {
    margin: 0;
    font-size: .84rem;
    line-height: 1.45;
    color: var(--idx-muted);
}

body.index-rebuild-app .dashboard-topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 6px;
    border-radius: 14px;
}

body.index-rebuild-app .dashboard-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
}

body.index-rebuild-app .dashboard-topbar-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.index-rebuild-app .dashboard-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    color: var(--idx-muted);
    font-size: .8rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.index-rebuild-app .dashboard-topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

body.index-rebuild-app .dashboard-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--idx-text);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: .2s ease;
    font-size: .84rem;
}

body.index-rebuild-app .dashboard-link-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.07);
}

body.index-rebuild-app .dashboard-link-btn.primary {
    border-color: transparent;
    color: #062111;
    background: linear-gradient(135deg, var(--idx-primary), var(--idx-primary-dark));
    box-shadow: 0 16px 28px rgba(46, 204, 113, 0.18);
}

body.index-rebuild-app .dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 0px 10px 0;
}

body.index-rebuild-app .dashboard-stats-accordion .accordion-item {
    border: 1px solid var(--idx-border);
    border-radius: var(--idx-radius-lg);
    background: var(--idx-surface-soft);
    box-shadow: var(--idx-shadow);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

body.index-rebuild-app .dashboard-stats-accordion .accordion-header {
    margin: 0;
}

body.index-rebuild-app .dashboard-stats-accordion.accordion {
    margin-top: 10px;
}

body.index-rebuild-app .dashboard-stats-accordion .accordion-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px 16px;
    color: var(--idx-text);
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    box-shadow: none;
}

body.index-rebuild-app .dashboard-stats-accordion .accordion-button:not(.collapsed) {
    color: var(--idx-text);
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: none;
}

body.index-rebuild-app .dashboard-stats-accordion .accordion-button::after {
    width: 16px;
    height: 16px;
    background-size: 16px;
    filter: brightness(0) saturate(100%) invert(82%) sepia(11%) saturate(286%) hue-rotate(94deg) brightness(90%) contrast(87%);
}

body.index-rebuild-app .dashboard-stats-accordion .accordion-button:focus {
    box-shadow: none;
}

body.index-rebuild-app .dashboard-stats-accordion-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.index-rebuild-app .dashboard-stats-accordion-copy strong {
    font-size: .92rem;
    font-weight: 700;
}

body.index-rebuild-app .dashboard-stats-accordion-copy span {
    font-size: .76rem;
    color: var(--idx-muted);
}

body.index-rebuild-app .dashboard-stats-accordion .accordion-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-stats-accordion .accordion-button,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-stats-accordion .accordion-button {
    background:
        radial-gradient(circle at top left, rgba(110, 168, 137, 0.04), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.14));
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-stats-accordion .accordion-button:not(.collapsed),
body.index-rebuild-app[data-theme-mode="light"] .dashboard-stats-accordion .accordion-button:not(.collapsed) {
    background:
        radial-gradient(circle at top left, rgba(110, 168, 137, 0.06), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.18));
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-stats-accordion .accordion-collapse,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-stats-accordion .accordion-collapse {
    border-top-color: rgba(41, 63, 51, 0.10);
}

body.index-rebuild-app .dashboard-stats-accordion .accordion-body {
    padding: 14px;
}

body.index-rebuild-app .dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

body.index-rebuild-app .dashboard-card,
body.index-rebuild-app .dashboard-table-panel,
body.index-rebuild-app .modal-content,
body.index-rebuild-app .offcanvas,
body.index-rebuild-app .dropdown-menu {
    border: 1px solid var(--idx-border);
    border-radius: var(--idx-radius-lg);
    background: var(--idx-surface-soft);
    color: var(--idx-text);
    box-shadow: var(--idx-shadow);
    backdrop-filter: blur(16px);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-card,
html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-panel,
html[data-bs-theme="light"] body.index-rebuild-app .modal-content,
html[data-bs-theme="light"] body.index-rebuild-app .offcanvas,
html[data-bs-theme="light"] body.index-rebuild-app .dropdown-menu,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-card,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-panel,
body.index-rebuild-app[data-theme-mode="light"] .modal-content,
body.index-rebuild-app[data-theme-mode="light"] .offcanvas,
body.index-rebuild-app[data-theme-mode="light"] .dropdown-menu {
    background: linear-gradient(180deg, rgba(243, 246, 244, 0.98), rgba(236, 240, 237, 0.98));
    box-shadow: 0 10px 24px rgba(40, 56, 47, 0.06);
    backdrop-filter: blur(8px);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-card::after,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-card::after {
    background: radial-gradient(circle, rgba(110, 168, 137, 0.05), transparent 70%);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-card-icon,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-card-icon {
    background: rgba(42, 60, 50, 0.04);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-card-progress,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-card-progress {
    background: rgba(42, 60, 50, 0.07);
}

body.index-rebuild-app .dashboard-card {
    position: relative;
    overflow: hidden;
}

body.index-rebuild-app .dashboard-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -48% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    pointer-events: none;
}

body.index-rebuild-app .dashboard-card-body {
    position: relative;
    z-index: 1;
    padding: 22px;
}

body.index-rebuild-app .dashboard-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

body.index-rebuild-app .dashboard-card-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.2rem;
}

body.index-rebuild-app .dashboard-card-label {
    margin: 0 0 4px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--idx-muted);
}

body.index-rebuild-app .dashboard-card-value {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
}

body.index-rebuild-app .dashboard-card-note {
    margin: 0 0 14px;
    color: var(--idx-muted);
    font-size: .82rem;
}

body.index-rebuild-app .dashboard-card-progress {
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
}

body.index-rebuild-app .dashboard-card-progress .progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 0 8px;
    font-size: .66rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
}

body.index-rebuild-app .dashboard-card.primary .dashboard-card-icon {
    color: var(--idx-blue);
    background: rgba(79, 147, 255, 0.14);
}

body.index-rebuild-app .dashboard-card.primary .progress-bar {
    background: linear-gradient(135deg, #4f93ff, #2e74ea);
}

body.index-rebuild-app .dashboard-card.success .dashboard-card-icon {
    color: var(--idx-primary);
    background: rgba(46, 204, 113, 0.14);
}

body.index-rebuild-app .dashboard-card.success .progress-bar {
    background: linear-gradient(135deg, var(--idx-primary), var(--idx-primary-dark));
}

body.index-rebuild-app .dashboard-card.danger .dashboard-card-icon {
    color: var(--idx-red);
    background: rgba(239, 107, 107, 0.14);
}

body.index-rebuild-app .dashboard-card.danger .progress-bar {
    background: linear-gradient(135deg, var(--idx-red), #cc4d4d);
}

body.index-rebuild-app .dashboard-card.warning .dashboard-card-icon {
    color: var(--idx-gold);
    background: rgba(224, 173, 59, 0.14);
}

body.index-rebuild-app .dashboard-card.warning .progress-bar {
    background: linear-gradient(135deg, var(--idx-gold), #c08a15);
}

body.index-rebuild-app .dashboard-table-panel {
    padding: 24px;
}

body.index-rebuild-app .dashboard-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

body.index-rebuild-app .dashboard-table-title h2 {
    margin: 0 0 8px;
    font-size: 1.55rem;
}

body.index-rebuild-app .dashboard-table-title p {
    margin: 0;
    color: var(--idx-muted);
}

body.index-rebuild-app .dashboard-table-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

body.index-rebuild-app .dashboard-expiry-filter {
    display: flex;
    align-items: center;
}

body.index-rebuild-app .dashboard-date-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

body.index-rebuild-app .dashboard-date-range-inputs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    min-width: 0;
}

body.index-rebuild-app .dashboard-expiry-filter .form-select {
    min-width: 220px;
    min-height: 44px;
    padding: 0 42px 0 14px;
    border-radius: 14px;
    font-size: .96rem;
    color: var(--idx-text);
    border-color: rgba(46, 204, 113, 0.22);
    background-color: rgba(12, 26, 19, 0.96);
    background-image:
        linear-gradient(180deg, rgba(46, 204, 113, 0.08), rgba(31, 143, 86, 0.04)),
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dff7e9' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right .95rem center;
    background-size: auto, 16px 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 24px rgba(0, 0, 0, 0.16);
    color-scheme: dark;
}

body.index-rebuild-app .dashboard-expiry-filter .form-select:hover {
    border-color: rgba(46, 204, 113, 0.3);
    background-color: rgba(14, 30, 22, 0.98);
}

body.index-rebuild-app .dashboard-expiry-filter .form-select option {
    color: var(--idx-text);
    background-color: #0d1712;
}

body.index-rebuild-app .dashboard-expiry-filter .form-select option:checked,
body.index-rebuild-app .dashboard-expiry-filter .form-select option:hover,
body.index-rebuild-app .dashboard-expiry-filter .form-select option:focus {
    color: #ecfff4;
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.28), rgba(31, 143, 86, 0.18));
}

body.index-rebuild-app .dashboard-date-range-inputs .form-control,
body.index-rebuild-app .dashboard-date-range-inputs .flatpickr-theme-input {
    width: 128px;
    min-width: 128px;
    min-height: 44px;
    border-radius: 14px;
}

body.index-rebuild-app .dashboard-date-range .btn-outline-secondary {
    min-height: 44px;
    padding-inline: 16px;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-expiry-filter .form-select,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-expiry-filter .form-select {
    color: var(--idx-text);
    border-color: rgba(41, 63, 51, 0.12);
    background-color: rgba(255, 255, 255, 0.78);
    background-image:
        linear-gradient(180deg, rgba(110, 168, 137, 0.08), rgba(110, 168, 137, 0.03)),
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23264034' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 8px 16px rgba(40, 56, 47, 0.05);
    color-scheme: light;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-expiry-filter .form-select option,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-expiry-filter .form-select option {
    color: #1f2c25;
    background-color: #f2f5f3;
}

body.index-rebuild-app .dashboard-table-tools .btn-outline-secondary {
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

body.index-rebuild-app .dashboard-table-tools .btn-outline-secondary:hover {
    color: #f4fff8;
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(46, 204, 113, 0.14), rgba(31, 143, 86, 0.1));
    border-color: rgba(46, 204, 113, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 28px rgba(16, 79, 47, 0.22);
    transform: translateY(-1px);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-tools .btn-outline-secondary:hover,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-tools .btn-outline-secondary:hover {
    color: #1a2c22;
    background:
        radial-gradient(circle at top left, rgba(110, 168, 137, 0.10), transparent 55%),
        linear-gradient(180deg, rgba(110, 168, 137, 0.07), rgba(110, 168, 137, 0.02));
    border-color: rgba(110, 168, 137, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 8px 16px rgba(40, 56, 47, 0.05);
}

body.index-rebuild-app .dashboard-table-shell {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(7, 18, 13, 0.78), rgba(5, 11, 8, 0.92));
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 16px 30px rgba(0, 0, 0, 0.12);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-shell,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-shell {
    border-color: rgba(41, 63, 51, 0.10);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.14)),
        linear-gradient(180deg, rgba(232, 237, 234, 0.98), rgba(225, 231, 227, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.46),
        0 10px 22px rgba(40, 56, 47, 0.06);
}

body.index-rebuild-app .dashboard-table-shell .dataTables_wrapper {
    padding: 18px;
}

body.index-rebuild-app .dashboard-table-shell .dt-toolbar,
body.index-rebuild-app .dashboard-table-shell .dt-footer {
    display: grid;
    gap: 12px;
    align-items: center;
}

body.index-rebuild-app .dashboard-table-shell .dt-toolbar {
    grid-template-columns: minmax(240px, 1.5fr) auto auto;
    margin-bottom: 16px;
}

body.index-rebuild-app .dashboard-table-shell .dt-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 16px;
}

body.index-rebuild-app .dashboard-table-shell .dt-table-wrap {
    overflow-x: auto;
}

@media (min-width: 900px) {
    body.index-rebuild-app .dashboard-table-shell .dt-toolbar {
        grid-template-columns: minmax(320px, 1.75fr) auto auto;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-toolbar-search,
    body.index-rebuild-app .dashboard-table-shell .dataTables_filter {
        width: 100%;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_filter {
        max-width: 360px;
    }
}

body.index-rebuild-app .dashboard-table-shell .dt-toolbar-block,
body.index-rebuild-app .dashboard-table-shell .dt-footer-block {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.index-rebuild-app .dashboard-table-shell .dt-toolbar-search,
body.index-rebuild-app .dashboard-table-shell .dt-footer-info {
    justify-content: flex-start;
}

body.index-rebuild-app .dashboard-table-shell .dt-toolbar-meta {
    justify-content: center;
}

body.index-rebuild-app .dashboard-table-shell .dt-toolbar-actions,
body.index-rebuild-app .dashboard-table-shell .dt-footer-pagination {
    justify-content: flex-end;
}

body.index-rebuild-app .dashboard-table-shell .dataTables_filter,
body.index-rebuild-app .dashboard-table-shell .dataTables_length,
body.index-rebuild-app .dashboard-table-shell .dt-buttons,
body.index-rebuild-app .dashboard-table-shell .dataTables_info,
body.index-rebuild-app .dashboard-table-shell .dataTables_paginate {
    margin: 0;
}

body.index-rebuild-app .dashboard-table-shell .dataTables_filter label,
body.index-rebuild-app .dashboard-table-shell .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    color: var(--idx-muted);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.index-rebuild-app .dashboard-table-shell .dataTables_filter input,
body.index-rebuild-app .dashboard-table-shell .dataTables_length select {
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    color: var(--idx-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-shell .dataTables_filter input,
html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-shell .dataTables_length select,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-shell .dataTables_filter input,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-shell .dataTables_length select {
    border-color: rgba(41, 63, 51, 0.11);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

body.index-rebuild-app .dashboard-table-shell .dataTables_filter input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0 14px;
    font-size: 1rem;
}

body.index-rebuild-app .dashboard-table-shell .dataTables_filter input::placeholder {
    color: rgba(159, 180, 166, 0.84);
}

body.index-rebuild-app .dashboard-table-shell .dataTables_length select {
    min-width: 82px;
    padding: 0 34px 0 12px;
    margin: 0;
}

body.index-rebuild-app .dashboard-table-shell .dataTables_filter input:focus,
body.index-rebuild-app .dashboard-table-shell .dataTables_length select:focus {
    border-color: rgba(46, 204, 113, 0.34);
    box-shadow: 0 0 0 .18rem rgba(46, 204, 113, 0.12);
    outline: 0;
}

body.index-rebuild-app .dashboard-table-shell .dataTables_length select option {
    background: #101c16;
    color: #ecfff4;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-shell .dataTables_length select option,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-shell .dataTables_length select option {
    background: #edf2ee;
    color: #1b2a22;
}

body.index-rebuild-app .dashboard-table-shell .dt-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

body.index-rebuild-app .dashboard-table-shell .dt-action-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 18px rgba(0, 0, 0, 0.12);
    color: var(--idx-text);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
}

body.index-rebuild-app .dashboard-table-shell .dt-action-btn i {
    font-size: .9rem;
    line-height: 1;
}

body.index-rebuild-app .dashboard-table-shell .dt-action-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 22px rgba(0, 0, 0, 0.16);
    filter: brightness(1.04);
}

body.index-rebuild-app .dashboard-table-shell .dt-action-btn:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 .18rem rgba(46, 204, 113, 0.12),
        0 14px 22px rgba(0, 0, 0, 0.16);
}

body.index-rebuild-app .dashboard-table-shell .dt-action-btn-edit {
    color: #7fb0ff;
    border-color: rgba(79, 147, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(79, 147, 255, 0.12), rgba(79, 147, 255, 0.04));
}

body.index-rebuild-app .dashboard-table-shell .dt-action-btn-add-month {
    color: #49d98a;
    border-color: rgba(46, 204, 113, 0.22);
    background:
        linear-gradient(180deg, rgba(46, 204, 113, 0.12), rgba(46, 204, 113, 0.04));
}

body.index-rebuild-app .dashboard-table-shell .dt-action-btn-add-quarter {
    color: #6fd4ff;
    border-color: rgba(111, 212, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(111, 212, 255, 0.12), rgba(111, 212, 255, 0.04));
}

body.index-rebuild-app .dashboard-table-shell .dt-action-btn-add-custom {
    color: #f4c86a;
    border-color: rgba(244, 200, 106, 0.24);
    background:
        linear-gradient(180deg, rgba(244, 200, 106, 0.14), rgba(244, 200, 106, 0.05));
}

body.index-rebuild-app .dashboard-table-shell .dt-action-btn-delete {
    color: #ff7f8b;
    border-color: rgba(239, 107, 107, 0.22);
    background:
        linear-gradient(180deg, rgba(239, 107, 107, 0.12), rgba(239, 107, 107, 0.04));
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-shell .dt-action-btn,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-shell .dt-action-btn {
    border-color: rgba(41, 63, 51, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.20));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.54),
        0 6px 14px rgba(18, 40, 27, 0.05);
}

body.index-rebuild-app .btn-theme {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03)) !important;
    color: var(--idx-text) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.index-rebuild-app .btn-theme:hover,
body.index-rebuild-app .btn-theme:focus {
    background:
        linear-gradient(180deg, rgba(46, 204, 113, 0.22), rgba(31, 143, 86, 0.18)) !important;
    border-color: rgba(46, 204, 113, 0.28) !important;
    color: #ffffff !important;
}

body.index-rebuild-app .dashboard-table-shell .dt-button-collection {
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
    padding: 10px;
    min-width: 220px;
    width: max-content !important;
    max-width: min(280px, calc(100vw - 32px));
    overflow-x: auto;
    border-radius: 16px;
    background: var(--idx-panel-strong) !important;
    border: 1px solid var(--idx-border) !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

body.index-rebuild-app .dashboard-table-shell .dt-button-collection .dt-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    margin: 0 0 6px;
    border: 0 !important;
    border-radius: 12px;
    background: transparent !important;
    color: var(--idx-muted) !important;
    box-shadow: none !important;
    white-space: nowrap;
    overflow: visible;
}

body.index-rebuild-app .dashboard-table-shell .dt-button-collection .dt-button:last-child {
    margin-bottom: 0;
}

body.index-rebuild-app .dashboard-table-shell .dt-button-collection .dt-button:hover,
body.index-rebuild-app .dashboard-table-shell .dt-button-collection .dt-button:focus {
    color: var(--idx-text) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.index-rebuild-app .dashboard-table-shell .dt-button-collection .dt-button.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--idx-primary), var(--idx-primary-dark)) !important;
}

body.index-rebuild-app .dashboard-table-shell .dataTables_processing {
    border: 1px solid var(--idx-border);
    border-radius: 14px;
    background: var(--idx-panel-strong);
    color: var(--idx-text);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

body.index-rebuild-app .dashboard-table-shell table.dataTable {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

body.index-rebuild-app .dashboard-table-shell table.dataTable thead th,
body.index-rebuild-app .dashboard-table-shell table.dataTable thead td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    color: var(--idx-muted);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-shell table.dataTable thead th,
html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-shell table.dataTable thead td,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-shell table.dataTable thead th,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-shell table.dataTable thead td {
    border-bottom-color: rgba(41, 63, 51, 0.10) !important;
    background: rgba(41, 63, 51, 0.045) !important;
}

body.index-rebuild-app .dashboard-table-shell table.dataTable thead .sorting,
body.index-rebuild-app .dashboard-table-shell table.dataTable thead .sorting_asc,
body.index-rebuild-app .dashboard-table-shell table.dataTable thead .sorting_desc,
body.index-rebuild-app .dashboard-table-shell table.dataTable thead .sorting_disabled {
    background-image: none !important;
}

body.index-rebuild-app .dashboard-table-shell table.dataTable tbody td,
body.index-rebuild-app .dashboard-table-shell table.dataTable tbody th {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: transparent !important;
    color: var(--idx-text);
    text-align: center;
    vertical-align: middle;
}

body.index-rebuild-app .dashboard-table-shell table.dataTable tbody tr:first-child td {
    border-top: 0 !important;
}

body.index-rebuild-app .dashboard-table-shell table.dataTable tbody tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.015) !important;
}

body.index-rebuild-app .dashboard-table-shell table.dataTable tbody tr:hover td {
    background: rgba(46, 204, 113, 0.065) !important;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-shell table.dataTable tbody td,
html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-shell table.dataTable tbody th,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-shell table.dataTable tbody td,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-shell table.dataTable tbody th {
    border-top-color: rgba(41, 63, 51, 0.08) !important;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-shell table.dataTable tbody tr:nth-child(odd) td,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-shell table.dataTable tbody tr:nth-child(odd) td {
    background: rgba(41, 63, 51, 0.03) !important;
}

html[data-bs-theme="light"] body.index-rebuild-app .dashboard-table-shell table.dataTable tbody tr:hover td,
body.index-rebuild-app[data-theme-mode="light"] .dashboard-table-shell table.dataTable tbody tr:hover td {
    background: rgba(110, 168, 137, 0.06) !important;
}

body.index-rebuild-app .dashboard-table-shell table.dataTable.no-footer {
    border-bottom: 0 !important;
}

body.index-rebuild-app .dashboard-table-shell .dataTables_empty {
    padding: 32px 16px !important;
    color: var(--idx-muted) !important;
}

body.index-rebuild-app .dashboard-table-shell .dataTables_info {
    color: var(--idx-muted);
    font-size: .84rem;
}

body.index-rebuild-app .btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: .2s ease;
}

body.index-rebuild-app .btn-icon:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.18);
}

body.index-rebuild-app td.icone-acao {
    text-align: center;
    vertical-align: middle;
}

body.index-rebuild-app td.icone-acao .action-buttons {
    display: inline-flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

body.index-rebuild-app .dashboard-table-shell table.dataTable tbody td button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

body.index-rebuild-app .lable-table {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}

body.index-rebuild-app .font-text2 {
    font-size: .72rem;
    letter-spacing: .02em;
}

body.index-rebuild-app .table,
body.index-rebuild-app .table > :not(caption) > * > * {
    color: var(--idx-text);
    border-color: rgba(255, 255, 255, 0.06);
}

body.index-rebuild-app .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.018);
}

body.index-rebuild-app .table-hover > tbody > tr:hover > * {
    background-color: rgba(255, 255, 255, 0.04);
}

body.index-rebuild-app .form-control,
body.index-rebuild-app .form-select {
    min-height: 46px;
    border-radius: 14px;
    color: var(--idx-text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="light"] body.index-rebuild-app .form-control,
html[data-bs-theme="light"] body.index-rebuild-app .form-select,
body.index-rebuild-app[data-theme-mode="light"] .form-control,
body.index-rebuild-app[data-theme-mode="light"] .form-select {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.24));
    border-color: rgba(41, 63, 51, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

body.index-rebuild-app .form-control:focus,
body.index-rebuild-app .form-select:focus {
    color: var(--idx-text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(46, 204, 113, 0.35);
    box-shadow: 0 0 0 .2rem rgba(46, 204, 113, 0.12);
}

body.index-rebuild-app .theme-choice-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.index-rebuild-app .theme-choice-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    color: var(--idx-text);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

body.index-rebuild-app .theme-choice-option:hover {
    transform: translateY(-1px);
    border-color: rgba(46, 204, 113, 0.28);
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.12), rgba(46, 204, 113, 0.04));
}

body.index-rebuild-app .theme-choice-option input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

body.index-rebuild-app .theme-choice-option span {
    position: relative;
    z-index: 1;
    font-weight: 600;
    letter-spacing: .01em;
}

body.index-rebuild-app .theme-choice-option:has(input:checked) {
    border-color: rgba(46, 204, 113, 0.42);
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.18), rgba(46, 204, 113, 0.07));
    box-shadow:
        0 0 0 .16rem rgba(46, 204, 113, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.index-rebuild-app .theme-choice-option:has(input:focus-visible) {
    box-shadow:
        0 0 0 .18rem rgba(46, 204, 113, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.index-rebuild-app .idx-password-group {
    border-radius: 14px;
    overflow: hidden;
}

body.index-rebuild-app .idx-password-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body.index-rebuild-app .idx-password-toggle {
    min-width: 46px;
    border-color: rgba(255, 255, 255, 0.08) !important;
    border-left: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--idx-muted) !important;
    box-shadow: none !important;
}

body.index-rebuild-app .idx-password-toggle:hover,
body.index-rebuild-app .idx-password-toggle:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--idx-text) !important;
}

html[data-bs-theme="light"] body.index-rebuild-app .form-control:focus,
html[data-bs-theme="light"] body.index-rebuild-app .form-select:focus,
body.index-rebuild-app[data-theme-mode="light"] .form-control:focus,
body.index-rebuild-app[data-theme-mode="light"] .form-select:focus {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.30));
}

body.index-rebuild-app .flatpickr-theme-input[readonly] {
    cursor: pointer;
}

body.index-rebuild-app .flatpickr-calendar {
    width: 307px;
    padding: 8px;
    border: 1px solid var(--idx-border-strong);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(17, 31, 24, 0.98), rgba(10, 17, 14, 0.98));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
    color: var(--idx-text);
}

body.index-rebuild-app .flatpickr-calendar.open {
    z-index: 2000;
}

html[data-bs-theme="light"] body.index-rebuild-app .flatpickr-calendar,
body.index-rebuild-app[data-theme-mode="light"] .flatpickr-calendar {
    background:
        radial-gradient(circle at top left, rgba(110, 168, 137, 0.05), transparent 34%),
        linear-gradient(180deg, rgba(243, 246, 244, 0.99), rgba(236, 240, 237, 0.99));
    box-shadow: 0 12px 26px rgba(40, 56, 47, 0.08);
}

html[data-bs-theme="light"] body.index-rebuild-app .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
html[data-bs-theme="light"] body.index-rebuild-app .flatpickr-current-month input.cur-year:hover,
html[data-bs-theme="light"] body.index-rebuild-app .flatpickr-current-month .flatpickr-monthDropdown-months:focus,
html[data-bs-theme="light"] body.index-rebuild-app .flatpickr-current-month input.cur-year:focus,
body.index-rebuild-app[data-theme-mode="light"] .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
body.index-rebuild-app[data-theme-mode="light"] .flatpickr-current-month input.cur-year:hover,
body.index-rebuild-app[data-theme-mode="light"] .flatpickr-current-month .flatpickr-monthDropdown-months:focus,
body.index-rebuild-app[data-theme-mode="light"] .flatpickr-current-month input.cur-year:focus {
    background: rgba(42, 60, 50, 0.05);
}

html[data-bs-theme="light"] body.index-rebuild-app .flatpickr-prev-month:hover,
html[data-bs-theme="light"] body.index-rebuild-app .flatpickr-next-month:hover,
body.index-rebuild-app[data-theme-mode="light"] .flatpickr-prev-month:hover,
body.index-rebuild-app[data-theme-mode="light"] .flatpickr-next-month:hover {
    background: rgba(42, 60, 50, 0.05);
    color: #1f2c25;
}

html[data-bs-theme="light"] body.index-rebuild-app .flatpickr-day:hover,
html[data-bs-theme="light"] body.index-rebuild-app .flatpickr-day:focus,
body.index-rebuild-app[data-theme-mode="light"] .flatpickr-day:hover,
body.index-rebuild-app[data-theme-mode="light"] .flatpickr-day:focus {
    background: rgba(42, 60, 50, 0.05);
    border-color: rgba(42, 60, 50, 0.07);
}

html[data-bs-theme="light"] body.index-rebuild-app .flatpickr-day.today,
body.index-rebuild-app[data-theme-mode="light"] .flatpickr-day.today {
    border-color: rgba(110, 168, 137, 0.26);
    color: #4d7f64;
}

body.index-rebuild-app .flatpickr-months,
body.index-rebuild-app .flatpickr-weekdays {
    background: transparent;
}

body.index-rebuild-app .flatpickr-month {
    color: var(--idx-text);
    fill: var(--idx-text);
}

body.index-rebuild-app .flatpickr-current-month {
    padding-top: 8px;
    font-size: .95rem;
}

body.index-rebuild-app .flatpickr-current-month .flatpickr-monthDropdown-months,
body.index-rebuild-app .flatpickr-current-month input.cur-year {
    color: var(--idx-text);
    font-weight: 700;
}

body.index-rebuild-app .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
body.index-rebuild-app .flatpickr-current-month input.cur-year:hover,
body.index-rebuild-app .flatpickr-current-month .flatpickr-monthDropdown-months:focus,
body.index-rebuild-app .flatpickr-current-month input.cur-year:focus {
    background: rgba(255, 255, 255, 0.06);
}

body.index-rebuild-app .flatpickr-prev-month,
body.index-rebuild-app .flatpickr-next-month {
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: var(--idx-text);
}

body.index-rebuild-app .flatpickr-prev-month:hover,
body.index-rebuild-app .flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

body.index-rebuild-app .flatpickr-prev-month svg,
body.index-rebuild-app .flatpickr-next-month svg {
    display: none;
}

body.index-rebuild-app .flatpickr-prev-month .material-symbols-outlined,
body.index-rebuild-app .flatpickr-next-month .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

body.index-rebuild-app .flatpickr-weekday {
    color: var(--idx-muted);
    font-weight: 700;
}

body.index-rebuild-app .flatpickr-days {
    width: 100%;
}

body.index-rebuild-app .dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

body.index-rebuild-app .flatpickr-day {
    border-radius: 12px;
    color: var(--idx-text);
    border: 1px solid transparent;
}

body.index-rebuild-app .flatpickr-day:hover,
body.index-rebuild-app .flatpickr-day:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body.index-rebuild-app .flatpickr-day.today {
    border-color: rgba(46, 204, 113, 0.34);
    color: #b9f3cf;
}

body.index-rebuild-app .flatpickr-day.selected,
body.index-rebuild-app .flatpickr-day.startRange,
body.index-rebuild-app .flatpickr-day.endRange,
body.index-rebuild-app .flatpickr-day.selected:hover,
body.index-rebuild-app .flatpickr-day.startRange:hover,
body.index-rebuild-app .flatpickr-day.endRange:hover {
    border-color: transparent;
    background: linear-gradient(135deg, var(--idx-primary), var(--idx-primary-dark));
    box-shadow: 0 10px 22px rgba(46, 204, 113, 0.26);
    color: #04140c;
}

body.index-rebuild-app .flatpickr-day.flatpickr-disabled,
body.index-rebuild-app .flatpickr-day.flatpickr-disabled:hover,
body.index-rebuild-app .flatpickr-day.prevMonthDay,
body.index-rebuild-app .flatpickr-day.nextMonthDay {
    color: rgba(159, 180, 166, 0.45);
}

body.index-rebuild-app .btn {
    border-radius: 14px;
}

body.index-rebuild-app .btn-primary,
body.index-rebuild-app .btn-success {
    border-color: transparent;
    background: linear-gradient(135deg, var(--idx-primary), var(--idx-primary-dark));
    box-shadow: 0 14px 28px rgba(46, 204, 113, 0.18);
}

body.index-rebuild-app .btn-outline-secondary,
body.index-rebuild-app .btn-secondary {
    color: var(--idx-text);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="light"] body.index-rebuild-app .btn-outline-secondary,
html[data-bs-theme="light"] body.index-rebuild-app .btn-secondary,
html[data-bs-theme="light"] body.index-rebuild-app .btn-theme,
body.index-rebuild-app[data-theme-mode="light"] .btn-outline-secondary,
body.index-rebuild-app[data-theme-mode="light"] .btn-secondary,
body.index-rebuild-app[data-theme-mode="light"] .btn-theme {
    color: var(--idx-text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.20));
    border-color: rgba(41, 63, 51, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

html[data-bs-theme="light"] body.index-rebuild-app .btn-theme:hover,
html[data-bs-theme="light"] body.index-rebuild-app .btn-theme:focus,
body.index-rebuild-app[data-theme-mode="light"] .btn-theme:hover,
body.index-rebuild-app[data-theme-mode="light"] .btn-theme:focus {
    color: #173025 !important;
    background: linear-gradient(180deg, rgba(110, 168, 137, 0.12), rgba(110, 168, 137, 0.05)) !important;
    border-color: rgba(110, 168, 137, 0.16) !important;
}

body.index-rebuild-app .dropdown-menu {
    padding: 10px;
}

body.index-rebuild-app .sidebar-bottom .dropdown-menu {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

body.index-rebuild-app .dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 10px;
    color: var(--idx-muted);
    border-radius: 12px;
    white-space: normal;
}

body.index-rebuild-app .dropdown-item .material-symbols-outlined {
    flex: 0 0 auto;
    margin-top: 1px;
}

body.index-rebuild-app .sidebar-bottom .dropdown-menu .dropdown-item > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1.2;
    transition: font-size .16s ease;
}

body.index-rebuild-app .dropdown-item:hover,
body.index-rebuild-app .dropdown-item:focus {
    color: var(--idx-text);
    background: rgba(255, 255, 255, 0.06);
}

body.index-rebuild-app .sidebar-bottom .dropdown-menu .dropdown-item.active,
body.index-rebuild-app .sidebar-bottom .dropdown-menu .dropdown-item:active {
    color: #062111;
    background: linear-gradient(135deg, var(--idx-primary), var(--idx-primary-dark));
    box-shadow: 0 14px 24px rgba(46, 204, 113, 0.18);
}

body.index-rebuild-app .sidebar-bottom .dropdown-menu .dropdown-item.active .material-symbols-outlined,
body.index-rebuild-app .sidebar-bottom .dropdown-menu .dropdown-item:active .material-symbols-outlined,
body.index-rebuild-app .sidebar-bottom .dropdown-menu .dropdown-item.active > span:last-child,
body.index-rebuild-app .sidebar-bottom .dropdown-menu .dropdown-item:active > span:last-child {
    color: inherit;
}

html[data-bs-theme="light"] body.index-rebuild-app .dropdown-item:hover,
html[data-bs-theme="light"] body.index-rebuild-app .dropdown-item:focus,
body.index-rebuild-app[data-theme-mode="light"] .dropdown-item:hover,
body.index-rebuild-app[data-theme-mode="light"] .dropdown-item:focus {
    background: rgba(41, 63, 51, 0.06);
}

html[data-bs-theme="light"] body.index-rebuild-app .sidebar-bottom .dropdown-menu .dropdown-item.active,
html[data-bs-theme="light"] body.index-rebuild-app .sidebar-bottom .dropdown-menu .dropdown-item:active,
body.index-rebuild-app[data-theme-mode="light"] .sidebar-bottom .dropdown-menu .dropdown-item.active,
body.index-rebuild-app[data-theme-mode="light"] .sidebar-bottom .dropdown-menu .dropdown-item:active {
    color: #183124;
    background: linear-gradient(135deg, rgba(110, 168, 137, 0.28), rgba(83, 135, 107, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.index-rebuild-app .alert {
    border: 1px solid var(--idx-border);
    border-radius: 16px;
}

body.index-rebuild-app .sidebar-nav .simplebar-track.simplebar-vertical {
    width: 5px;
    margin-top: 0;
    margin-bottom: 8px;
    right: 3px;
    border-radius: 999px;
    opacity: 1;
    pointer-events: auto;
}

body.index-rebuild-app .sidebar-nav .simplebar-track.simplebar-vertical::before {
    content: none;
}

html[data-bs-theme="light"] body.index-rebuild-app .sidebar-nav .simplebar-track.simplebar-vertical::before,
body.index-rebuild-app[data-theme-mode="light"] .sidebar-nav .simplebar-track.simplebar-vertical::before {
    content: none;
}

body.index-rebuild-app .sidebar-nav .simplebar-scrollbar::before {
    display: block;
    left: 1px;
    right: 1px;
    top: 3px;
    bottom: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.28), rgba(31, 143, 86, 0.38));
    opacity: .42;
    transition: opacity .18s ease, background .18s ease;
}

body.index-rebuild-app .sidebar-nav .simplebar-track.simplebar-vertical:hover .simplebar-scrollbar::before,
body.index-rebuild-app .sidebar-nav .simplebar-scrollbar.simplebar-visible::before {
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.42), rgba(31, 143, 86, 0.52));
    opacity: .68;
}

@media (max-width: 1199px) {
    body.index-rebuild-app .dashboard-main-toggle {
        display: flex;
        align-items: center;
        padding: 20px 20px 0;
    }

    body.index-rebuild-app.toggled .dashboard-main-toggle {
        display: none;
    }

    body.index-rebuild-app .btn-toggle-menu {
        display: inline-flex;
    }

    body.index-rebuild-app.toggled .btn-toggle-menu {
        display: none;
    }

    body.index-rebuild-app .dashboard-shell {
        display: block;
        min-height: calc(100vh - 24px);
        margin: 12px;
        padding: 0;
        border-radius: 24px;
    }

    body.index-rebuild-app .sidebar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(var(--idx-sidebar-width), 100vw);
        border-right: 0;
        border: 1px solid var(--idx-border);
        border-left: 0;
        border-radius: 0 24px 24px 0;
        transform: translateX(-115%);
        transition: transform .22s ease;
        box-shadow: var(--idx-shadow);
    }

    body.index-rebuild-app.sidebar-collapsed .sidebar-wrapper {
        transform: translateX(-115%);
    }

    body.index-rebuild-app.toggled .sidebar-wrapper,
    body.index-rebuild-app.sidebar-hovered .sidebar-wrapper {
        transform: translateX(0);
    }

    body.index-rebuild-app .dashboard-main {
        min-height: auto;
        margin-left: 0;
    }

    body.index-rebuild-app.sidebar-collapsed .dashboard-main {
        margin-left: 0;
    }

    body.index-rebuild-app .page-content {
        padding: 0;
    }

    body.index-rebuild-app .dashboard-header-panel {
        position: relative;
        top: auto;
        padding: 20px 20px 16px;
        border-left: 1px solid var(--idx-border-strong);
        border-radius: 22px;
    }

    body.index-rebuild-app .dashboard-header-panel::after {
        inset: 8px;
        border-left: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: inherit;
    }

    body.index-rebuild-app .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.index-rebuild-app .dashboard-stats-accordion .accordion-button {
        min-height: 54px;
        padding: 11px 14px;
    }

    body.index-rebuild-app .dashboard-stats-accordion .accordion-body {
        padding: 12px;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-toolbar-search {
        grid-column: 1 / -1;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-toolbar-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    body.index-rebuild-app .sidebar-wrapper {
        width: min(320px, calc(100vw - 24px));
    }

    body.index-rebuild-app .sidebar-utility-actions {
        justify-content: center;
    }

    body.index-rebuild-app .dashboard-main-toggle {
        padding: 18px 16px 0;
    }

    body.index-rebuild-app .dashboard-table-head {
        flex-direction: column;
    }

    body.index-rebuild-app .dashboard-topbar {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    body.index-rebuild-app .dashboard-topbar-main {
        flex: 1 1 auto;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }

    body.index-rebuild-app .dashboard-topbar-tools {
        margin-left: auto;
        align-self: flex-start;
        flex: 0 0 auto;
    }

    body.index-rebuild-app .dashboard-topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.index-rebuild-app .dashboard-topbar-links,
    body.index-rebuild-app .dashboard-table-tools {
        width: 100%;
    }

    body.index-rebuild-app .dashboard-expiry-filter,
    body.index-rebuild-app .dashboard-expiry-filter .form-select,
    body.index-rebuild-app .dashboard-date-range,
    body.index-rebuild-app .dashboard-date-range-inputs,
    body.index-rebuild-app .dashboard-date-range-inputs .form-control,
    body.index-rebuild-app .dashboard-date-range-inputs .flatpickr-theme-input,
    body.index-rebuild-app .dashboard-date-range .btn-outline-secondary {
        width: 100%;
        min-width: 0;
    }

    body.index-rebuild-app .dashboard-date-range {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
        align-items: stretch;
    }

    body.index-rebuild-app .dashboard-date-range-inputs {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.index-rebuild-app .dashboard-date-range-inputs .form-control,
    body.index-rebuild-app .dashboard-date-range-inputs .flatpickr-theme-input {
        width: 100%;
        min-width: 0;
    }

    body.index-rebuild-app .dashboard-date-range .btn-outline-secondary {
        width: 100%;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_wrapper {
        padding: 14px;
    }

    body.index-rebuild-app .dashboard-table-shell,
    body.index-rebuild-app #listar-clientes_wrapper {
        width: 100% !important;
        max-width: 100%;
    }

    body.index-rebuild-app .dashboard-table-shell {
        width: calc(100% + 36px) !important;
        max-width: calc(100% + 36px);
        margin-inline: -18px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-table-wrap {
        width: calc(100% + 28px);
        margin-inline: -14px;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-toolbar {
        --idx-mobile-control-height: 48px;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-footer {
        grid-template-columns: 1fr;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-toolbar-search {
        grid-column: 1 / -1;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-toolbar-block,
    body.index-rebuild-app .dashboard-table-shell .dt-footer-block,
    body.index-rebuild-app .dashboard-table-shell .dt-toolbar-actions,
    body.index-rebuild-app .dashboard-table-shell .dt-toolbar-meta {
        justify-content: flex-start;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_filter,
    body.index-rebuild-app .dashboard-table-shell .dataTables_length {
        width: 100%;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-buttons {
        width: auto;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_filter label {
        flex-direction: column;
        align-items: stretch;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_filter input,
    body.index-rebuild-app .dashboard-table-shell .dataTables_length select,
    body.index-rebuild-app .dashboard-table-shell .dt-buttons .btn-theme {
        min-height: var(--idx-mobile-control-height) !important;
        height: var(--idx-mobile-control-height) !important;
        box-sizing: border-box;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_length label {
        justify-content: space-between;
        gap: 8px;
        white-space: nowrap;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-toolbar-meta,
    body.index-rebuild-app .dashboard-table-shell .dt-toolbar-actions {
        width: auto;
        min-width: 0;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-toolbar-actions {
        justify-content: flex-end;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_length,
    body.index-rebuild-app .dashboard-table-shell .dataTables_length label,
    body.index-rebuild-app .dashboard-table-shell .dt-buttons {
        width: auto;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-buttons .btn-theme {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: auto;
        padding: 0 12px !important;
        line-height: 1;
        white-space: nowrap;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate,
    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate .paginate_button,
    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate span,
    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate span .paginate_button {
        margin: 0 !important;
    }

    body.index-rebuild-app .dashboard-table-shell .dt-footer-pagination {
        justify-content: center;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate span {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
        white-space: nowrap;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate .paginate_button {
        float: none !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        min-height: 28px;
        padding: 0 2px !important;
        border: 1px solid transparent !important;
        border-radius: 999px;
        background: transparent !important;
        color: var(--idx-muted) !important;
        font-size: .83rem;
        font-weight: 700;
        line-height: 1;
        box-shadow: none !important;
        white-space: nowrap;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate .paginate_button.current,
    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate .paginate_button.current:hover {
        min-width: 30px;
        padding: 0 10px !important;
        border-color: rgba(46, 204, 113, 0.34) !important;
        background: rgba(46, 204, 113, 0.15) !important;
        color: #eafff2 !important;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate .paginate_button:not(.current):not(.disabled):hover {
        color: var(--idx-text) !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate .paginate_button.disabled,
    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate .paginate_button.disabled:hover {
        opacity: .38;
        background: transparent !important;
        color: var(--idx-muted) !important;
    }

    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate .paginate_button.ellipsis,
    body.index-rebuild-app .dashboard-table-shell .dataTables_paginate .paginate_button.ellipsis:hover {
        min-width: 16px;
        padding: 0 !important;
        background: transparent !important;
        color: var(--idx-muted) !important;
    }

    body.index-rebuild-app .dashboard-table-shell table.dataTable thead th,
    body.index-rebuild-app .dashboard-table-shell table.dataTable thead td,
    body.index-rebuild-app .dashboard-table-shell table.dataTable tbody td,
    body.index-rebuild-app .dashboard-table-shell table.dataTable tbody th {
        padding: 12px 10px;
    }

    body.index-rebuild-app .dashboard-topbar-copy h1 {
        font-size: 1.7rem;
    }

    body.index-rebuild-app .dashboard-header-panel {
        padding: 18px 16px 14px;
        border-radius: 20px;
        margin-bottom: 8px;
    }

    body.index-rebuild-app .dashboard-stats {
        grid-template-columns: 1fr;
    }

    body.index-rebuild-app .dashboard-stats-accordion .accordion-button {
        min-height: 50px;
        padding: 10px 12px;
    }

    body.index-rebuild-app .dashboard-stats-accordion .accordion-body {
        padding: 10px;
    }

    body.index-rebuild-app .dashboard-table-panel,
    body.index-rebuild-app .dashboard-card-body {
        padding: 18px;
    }
}
