html[data-theme] body,
html[data-theme] .app-shell {
    background: var(--bg) !important;
    color: var(--text) !important;
}

html[data-theme] .app-main,
html[data-theme] main {
    background: transparent;
    color: var(--text);
}

html[data-theme] .app-topbar,
html[data-theme] .navbar,
html[data-theme] header {
    background: var(--topbar-bg) !important;
    color: var(--topbar-text) !important;
    border-color: var(--border) !important;
}

html[data-theme] .navbar .navbar-brand,
html[data-theme] .navbar .nav-link,
html[data-theme] .app-topbar .navbar-brand,
html[data-theme] .app-topbar .nav-link,
html[data-theme] header .nav-link,
html[data-theme] header .brand-text,
html[data-theme] .user-info {
    color: var(--topbar-text) !important;
}

html[data-theme] .app-sidebar,
html[data-theme] #sidebar,
html[data-theme] .sidebar {
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--border) !important;
}

html[data-theme] .app-sidebar .nav-link,
html[data-theme] #sidebar .nav-link,
html[data-theme] .sidebar .nav-link {
    color: var(--sidebar-text) !important;
    border-radius: 8px;
    margin: 2px 8px;
}

html[data-theme] .app-sidebar .nav-link:hover,
html[data-theme] #sidebar .nav-link:hover,
html[data-theme] .sidebar .nav-link:hover,
html[data-theme] .app-sidebar .nav-link.active,
html[data-theme] #sidebar .nav-link.active,
html[data-theme] .sidebar .nav-link.active {
    background: var(--sidebar-active-bg) !important;
    color: var(--sidebar-active-text) !important;
}

html[data-theme] .card,
html[data-theme] .panel,
html[data-theme] .table-responsive,
html[data-theme] .stat-box,
html[data-theme] .invoice-summary-box,
html[data-theme] .router-panel,
html[data-theme] .noc-card {
    background: var(--card-bg) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

html[data-theme] .card-header,
html[data-theme] .router-head,
html[data-theme] .noc-head {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

html[data-theme] .table,
html[data-theme] table {
    --bs-table-color: var(--text);
    --bs-table-bg: var(--card-bg);
    --bs-table-border-color: var(--border);
    color: var(--text) !important;
}

html[data-theme] .table thead th,
html[data-theme] table thead th {
    background: var(--table-head-bg) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

html[data-theme] .table tbody tr:hover td,
html[data-theme] .table tbody tr:hover th {
    background: color-mix(in srgb, var(--surface-2) 86%, transparent) !important;
}

html[data-theme] .mpesa-reconcile-list {
    background: #ffffff !important;
    border-radius: 10px;
    border: 1px solid var(--border) !important;
}

html[data-theme] .mpesa-reconcile-list .table {
    --bs-table-bg: #ffffff;
    --bs-table-color: #111827;
    --bs-table-border-color: #e5e7eb;
    color: #111827 !important;
    margin-bottom: 0;
}

html[data-theme] .mpesa-reconcile-list .table thead th,
html[data-theme] .mpesa-reconcile-list .table tbody td,
html[data-theme] .mpesa-reconcile-list .table tbody th {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

html[data-theme] .mpesa-reconcile-list .table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: #f9fafb !important;
}

html[data-theme] .mpesa-reconcile-list .table.table-hover > tbody > tr:hover > * {
    background: #f3f4f6 !important;
}

html[data-theme] .mpesa-reconcile-list .btn {
    font-weight: 600;
}

html[data-theme] .mpesa-reconcile-list .btn-outline-info {
    background: #facc15 !important;
    border-color: #facc15 !important;
    color: #111827 !important;
}

html[data-theme] .mpesa-reconcile-list .btn-outline-info:hover,
html[data-theme] .mpesa-reconcile-list .btn-outline-info:focus {
    background: #eab308 !important;
    border-color: #eab308 !important;
    color: #111827 !important;
}

html[data-theme] .mpesa-reconcile-list .btn-primary {
    background: #f97316 !important;
    border-color: #f97316 !important;
    color: #ffffff !important;
}

html[data-theme] .mpesa-reconcile-list .btn-primary:hover,
html[data-theme] .mpesa-reconcile-list .btn-primary:focus {
    background: #ea580c !important;
    border-color: #ea580c !important;
    color: #ffffff !important;
}

html[data-theme] .btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-contrast) !important;
}

html[data-theme] .btn-secondary,
html[data-theme] .btn-outline-secondary,
html[data-theme] .btn-outline-light,
html[data-theme] .btn-outline-info,
html[data-theme] .btn-outline-warning,
html[data-theme] .btn-outline-primary,
html[data-theme] .btn-outline-success,
html[data-theme] .btn-outline-danger {
    background: transparent !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

html[data-theme] .btn:hover {
    filter: brightness(1.03);
}

html[data-theme] .form-control,
html[data-theme] .form-select,
html[data-theme] input,
html[data-theme] select,
html[data-theme] textarea {
    background: var(--input-bg) !important;
    color: var(--input-text) !important;
    border-color: var(--border) !important;
}

html[data-theme] .form-control:focus,
html[data-theme] .form-select:focus,
html[data-theme] input:focus,
html[data-theme] select:focus,
html[data-theme] textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent) 24%, transparent) !important;
}

html[data-theme] .badge.bg-success { background: var(--success) !important; }
html[data-theme] .badge.bg-warning { background: var(--warning) !important; }
html[data-theme] .badge.bg-danger { background: var(--danger) !important; }
html[data-theme] .badge.bg-secondary,
html[data-theme] .badge.bg-dark,
html[data-theme] .badge.bg-info { color: var(--text) !important; }

html[data-theme] a,
html[data-theme] .table-action-link,
html[data-theme] .nav-link {
    color: var(--link);
}

html[data-theme] .text-muted,
html[data-theme] .subtitle,
html[data-theme] small,
html[data-theme] .noc-sub {
    color: var(--muted) !important;
}

html[data-theme] .app-footer,
html[data-theme] footer {
    background: var(--surface) !important;
    color: var(--muted) !important;
    border-top: 1px solid var(--border) !important;
}

html[data-theme] .theme-preview-tile {
    border: 1px solid var(--border) !important;
    background: var(--card-bg) !important;
    color: var(--text) !important;
}

html[data-theme] .theme-preview-active {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.theme-swatch-row {
    display: flex;
    gap: 8px;
}

.theme-swatch {
    width: 28px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.theme-save-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 3000;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    border-radius: 10px;
    padding: 10px 14px;
    opacity: 0;
    transform: translateY(8px);
    transition: all .22s ease;
}

.theme-save-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* FieldOps legacy dark utility cleanup so pages inherit global theme */
html[data-theme] .bg-dark,
html[data-theme] .list-group-item.bg-dark,
html[data-theme] .card.bg-dark {
    background: var(--card-bg) !important;
    color: var(--text) !important;
}

html[data-theme] .text-light,
html[data-theme] .text-secondary {
    color: var(--muted) !important;
}

html[data-theme] .border-secondary,
html[data-theme] .border-secondary-subtle {
    border-color: var(--border) !important;
}

html[data-theme] .navbar-dark .navbar-brand,
html[data-theme] .navbar-dark .navbar-nav .nav-link {
    color: var(--topbar-text) !important;
}

.theme-gallery-card {
    overflow: hidden;
}

.theme-mini-preview {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}

.theme-mini-header {
    height: 18px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
}

.theme-mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
}

.theme-mini-body {
    display: flex;
    min-height: 66px;
}

.theme-mini-sidebar {
    width: 28%;
    background: var(--sidebar-bg);
}

.theme-mini-content {
    width: 72%;
    background: var(--bg);
    padding: 6px;
}

.theme-mini-table-head {
    height: 10px;
    border-radius: 5px;
    background: var(--table-head-bg);
    margin-bottom: 5px;
}

.theme-mini-row {
    height: 7px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--surface-2) 70%, transparent);
    margin-bottom: 4px;
}

.theme-mini-btn {
    width: 48px;
    height: 12px;
    border-radius: 6px;
    background: var(--primary);
}

.theme-gallery-card[data-preview-theme] {
    --preview-bg: #0f172a;
    --preview-surface: #111827;
    --preview-surface-2: #1f2937;
    --preview-sidebar: #0b1220;
    --preview-primary: #3b82f6;
    --preview-table-head: #334155;
}

.theme-gallery-card[data-preview-theme] .theme-mini-preview { background: var(--preview-surface); border-color: color-mix(in srgb, var(--preview-surface-2) 65%, #000); }
.theme-gallery-card[data-preview-theme] .theme-mini-header { background: var(--preview-surface-2); }
.theme-gallery-card[data-preview-theme] .theme-mini-dot { background: color-mix(in srgb, var(--preview-primary) 42%, #fff); }
.theme-gallery-card[data-preview-theme] .theme-mini-sidebar { background: var(--preview-sidebar); }
.theme-gallery-card[data-preview-theme] .theme-mini-content { background: var(--preview-bg); }
.theme-gallery-card[data-preview-theme] .theme-mini-table-head { background: var(--preview-table-head); }
.theme-gallery-card[data-preview-theme] .theme-mini-row { background: color-mix(in srgb, var(--preview-surface-2) 82%, transparent); }
.theme-gallery-card[data-preview-theme] .theme-mini-btn { background: var(--preview-primary); }

.theme-gallery-card[data-preview-theme="saas_light"] { --preview-bg: #f4f7fb; --preview-surface: #ffffff; --preview-surface-2: #f8fafc; --preview-sidebar: #ffffff; --preview-primary: #4f63d9; --preview-table-head: #f1f5f9; }
.theme-gallery-card[data-preview-theme="modern_cloud"] { --preview-bg: #f4f9ff; --preview-surface: #ffffff; --preview-surface-2: #eef5ff; --preview-sidebar: #e9f2ff; --preview-primary: #2563eb; --preview-table-head: #eaf2ff; }
.theme-gallery-card[data-preview-theme="modern_slate"] { --preview-bg: #f5f7fa; --preview-surface: #ffffff; --preview-surface-2: #eef2f7; --preview-sidebar: #e7ebf2; --preview-primary: #4f46e5; --preview-table-head: #e3e8f2; }
.theme-gallery-card[data-preview-theme="modern_graphite"] { --preview-bg: #0e141b; --preview-surface: #141d28; --preview-surface-2: #1c2733; --preview-sidebar: #111926; --preview-primary: #06b6d4; --preview-table-head: #213042; }
.theme-gallery-card[data-preview-theme="modern_carbon"] { --preview-bg: #07090d; --preview-surface: #10161f; --preview-surface-2: #17212b; --preview-sidebar: #0a1118; --preview-primary: #10b981; --preview-table-head: #1e2936; }
.theme-gallery-card[data-preview-theme="catppuccin_latte"] { --preview-bg: #eff1f5; --preview-surface: #ffffff; --preview-surface-2: #e6e9ef; --preview-sidebar: #dce0e8; --preview-primary: #1e66f5; --preview-table-head: #dde2eb; }
.theme-gallery-card[data-preview-theme="catppuccin_frappe"] { --preview-bg: #303446; --preview-surface: #414559; --preview-surface-2: #51576d; --preview-sidebar: #292c3c; --preview-primary: #8caaee; --preview-table-head: #626880; }
.theme-gallery-card[data-preview-theme="catppuccin_macchiato"] { --preview-bg: #24273a; --preview-surface: #363a4f; --preview-surface-2: #494d64; --preview-sidebar: #1e2030; --preview-primary: #8aadf4; --preview-table-head: #5b6078; }
.theme-gallery-card[data-preview-theme="catppuccin_mocha"] { --preview-bg: #1e1e2e; --preview-surface: #313244; --preview-surface-2: #45475a; --preview-sidebar: #181825; --preview-primary: #89b4fa; --preview-table-head: #585b70; }
.theme-gallery-card[data-preview-theme="tokyo_night"] { --preview-bg: #1a1b26; --preview-surface: #24283b; --preview-surface-2: #2a3048; --preview-sidebar: #16161e; --preview-primary: #7aa2f7; --preview-table-head: #2f3b56; }
.theme-gallery-card[data-preview-theme="tokyo_storm"] { --preview-bg: #1f2335; --preview-surface: #24283b; --preview-surface-2: #30374f; --preview-sidebar: #1a1e2e; --preview-primary: #7dcfff; --preview-table-head: #394860; }
.theme-gallery-card[data-preview-theme="tokyo_moon"] { --preview-bg: #1e2030; --preview-surface: #2a2e45; --preview-surface-2: #363d59; --preview-sidebar: #181c2b; --preview-primary: #82aaff; --preview-table-head: #3d4a66; }
.theme-gallery-card[data-preview-theme="rose_pine"] { --preview-bg: #191724; --preview-surface: #1f1d2e; --preview-surface-2: #2a273f; --preview-sidebar: #151320; --preview-primary: #eb6f92; --preview-table-head: #312c48; }
.theme-gallery-card[data-preview-theme="rose_pine_moon"] { --preview-bg: #232136; --preview-surface: #2a273f; --preview-surface-2: #393552; --preview-sidebar: #1f1d30; --preview-primary: #9ccfd8; --preview-table-head: #463f64; }
.theme-gallery-card[data-preview-theme="rose_pine_dawn"] { --preview-bg: #faf4ed; --preview-surface: #fffaf3; --preview-surface-2: #f2e9e1; --preview-sidebar: #f1e7dd; --preview-primary: #b4637a; --preview-table-head: #e9ddd2; }
.theme-gallery-card[data-preview-theme="nord"] { --preview-bg: #2e3440; --preview-surface: #3b4252; --preview-surface-2: #434c5e; --preview-sidebar: #2a303b; --preview-primary: #88c0d0; --preview-table-head: #4c566a; }
.theme-gallery-card[data-preview-theme="dracula"] { --preview-bg: #282a36; --preview-surface: #303341; --preview-surface-2: #3c3f51; --preview-sidebar: #1f202b; --preview-primary: #bd93f9; --preview-table-head: #44475a; }
.theme-gallery-card[data-preview-theme="everforest"] { --preview-bg: #272e33; --preview-surface: #2d353b; --preview-surface-2: #374145; --preview-sidebar: #232a2f; --preview-primary: #a7c080; --preview-table-head: #424c50; }
.theme-gallery-card[data-preview-theme="forest_green"] { --preview-bg: #0f1c14; --preview-surface: #17261d; --preview-surface-2: #213429; --preview-sidebar: #0c1711; --preview-primary: #2fb36d; --preview-table-head: #2a4435; }
.theme-gallery-card[data-preview-theme="onedark"] { --preview-bg: #282c34; --preview-surface: #303641; --preview-surface-2: #3a4150; --preview-sidebar: #21252b; --preview-primary: #61afef; --preview-table-head: #464f63; }

html[data-theme] .portal-shell {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

html[data-theme] .portal-header.card {
    border-radius: 16px;
}

html[data-theme] .portal-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

html[data-theme] .portal-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e40af;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

html[data-theme] .portal-kpi.card,
html[data-theme] .portal-instruction-box {
    background: #f8fafc !important;
    border: 1px solid #e5e7eb;
}

html[data-theme] .portal-instruction-box {
    box-shadow: 0 2px 10px rgba(2, 6, 23, 0.05);
}

html[data-theme] .portal-shell .btn-lg {
    padding: 0.8rem 1.1rem;
    font-weight: 600;
}

html[data-theme] .portal-shell .card {
    border-radius: 16px;
}

@media (max-width: 767.98px) {
    html[data-theme] .portal-shell {
        max-width: 100%;
    }

    html[data-theme] .portal-shell .card {
        border-radius: 14px;
    }

    html[data-theme] .portal-shell .table {
        font-size: 0.92rem;
    }
}


/* Consistent module page chrome */
.app-page-shell {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.app-page-shell > .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.app-page-shell-portal {
    max-width: 1240px;
}

.app-page-shell-auth {
    max-width: 100%;
}

.page-toolbar,
.module-toolbar,
.app-page-header,
.d-flex.justify-content-between.align-items-center.mb-3 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.page-toolbar > div:first-child,
.module-toolbar > div:first-child,
.app-page-header > div:first-child {
    min-width: min(100%, 320px);
}

.page-toolbar h1,
.page-toolbar h2,
.page-toolbar h3,
.module-toolbar h1,
.module-toolbar h2,
.module-toolbar h3,
.app-page-header h1,
.app-page-header h2,
.app-page-header h3 {
    margin: 0;
    font-size: clamp(1.35rem, 1rem + 0.8vw, 2rem);
    line-height: 1.15;
}

.page-toolbar .text-muted,
.module-toolbar .text-muted,
.app-page-header .text-muted,
.subtitle {
    max-width: 72ch;
    margin: 0;
}

.page-toolbar .btn,
.page-toolbar .btn-group,
.module-toolbar .btn,
.app-page-header .btn {
    white-space: nowrap;
}

.page-section-card,
.module-card {
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-section-card .card-header,
.module-card .card-header,
.app-section-heading {
    padding: 0.95rem 1.15rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.page-section-card .card-body,
.module-card .card-body {
    padding: 1.15rem;
}

.page-filter-card .card-body,
.app-filter-card .card-body {
    padding: 1rem 1.15rem;
}

.card,
.table-responsive,
.alert {
    box-shadow: var(--shadow);
    border-radius: 16px !important;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.page-section-card .table-responsive,
.module-card .table-responsive {
    border-radius: 0 !important;
}

.table {
    margin-bottom: 0;
}

.table td,
.table th {
    vertical-align: middle;
}

.table thead th {
    white-space: nowrap;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.table > :not(caption) > * > * {
    padding: 0.8rem 0.85rem;
}

.btn-group .btn,
.action-buttons .btn,
td .btn,
td form .btn {
    margin: 0;
}

.action-buttons,
td.text-end .btn-group,
td.text-end .d-inline-flex,
td.text-end .d-flex {
    justify-content: flex-end;
}

.action-buttons {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

td form.d-inline,
td form.d-inline-block {
    display: inline-flex !important;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 44px;
}

textarea.form-control {
    min-height: 96px;
}

.form-text {
    font-size: 0.82rem;
}

.app-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-inline-details {
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0.8rem 0.95rem;
    background: rgba(255, 255, 255, 0.02);
}

.app-inline-details summary {
    cursor: pointer;
    font-weight: 600;
}

.app-metric-card {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-metric-card .metric-label {
    font-size: 0.82rem;
    color: var(--bs-secondary-color, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.app-metric-card .metric-value {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(1.45rem, 1rem + 0.85vw, 2.1rem);
    line-height: 1.05;
}

.app-kpi-grid .card,
.app-kpi-grid .page-section-card {
    height: 100%;
}

.invoice-client-results {
    position: absolute;
    inset: calc(100% + 0.35rem) 0 auto 0;
    z-index: 1060;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(9, 14, 26, 0.98);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.28);
}

.invoice-client-results[hidden] {
    display: none !important;
}

.invoice-client-result {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    padding: 0.8rem 0.95rem;
    display: grid;
    gap: 0.2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.invoice-client-result:last-child {
    border-bottom: 0;
}

.invoice-client-result:hover,
.invoice-client-result.is-active {
    background: rgba(59, 130, 246, 0.18);
}

.invoice-client-result-title {
    font-weight: 600;
}

.invoice-client-result-meta {
    font-size: 0.82rem;
    color: #cbd5e1;
}

.invoice-client-empty {
    padding: 0.85rem 0.95rem;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.invoice-client-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #dbeafe;
    font-size: 0.86rem;
    font-weight: 600;
}

.noc-toolbar.mb-0 {
    margin: 0;
}

#sidebar .nav-link,
.app-sidebar .nav-link {
    font-weight: 600;
}
html[data-theme="blue_tile"] .btn-outline-primary,
html[data-theme="blue_tile"] .btn-outline-secondary,
html[data-theme="blue_tile"] .btn-outline-info,
html[data-theme="blue_tile"] .btn-outline-success,
html[data-theme="blue_tile"] .btn-outline-warning,
html[data-theme="blue_tile"] .btn-outline-danger,
html[data-theme="blue_tile"] .btn-outline-light {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
}
html[data-theme="blue_tile"] .table thead th {
    color: #0f172a !important;
}
html[data-theme="blue_tile"] .badge.text-dark {
    color: #0f172a !important;
}


.sidebar-group {background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: .35rem .5rem;}
.sidebar-group summary {cursor: pointer; color: #fff; font-weight: 700; list-style: none;}
.sidebar-group summary::-webkit-details-marker {display:none;}
.sidebar-submenu {padding-top: .5rem; display: grid; gap: .2rem;}
.sidebar-submenu .nav-link {padding: .45rem .65rem; border-radius: .6rem;}
.sidebar-submenu .nav-link:hover, .sidebar-submenu .nav-link.active {background: rgba(13,110,253,.25);}
.card, .table, .btn, .form-control, .form-select, .alert {border-radius: 12px;}

@media (max-width: 991.98px) {
    .app-page-shell {
        gap: 1rem;
    }

    .page-toolbar,
    .module-toolbar,
    .app-page-header {
        align-items: stretch;
    }

    .page-toolbar > div:last-child,
    .module-toolbar > div:last-child,
    .app-page-header > div:last-child {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .page-section-card .card-body,
    .module-card .card-body,
    .page-section-card .card-header,
    .module-card .card-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .table > :not(caption) > * > * {
        padding: 0.7rem 0.72rem;
    }

    .app-form-actions {
        justify-content: stretch;
    }

    .app-form-actions .btn {
        width: 100%;
    }
}

/* Screenshot-inspired global light SaaS admin surface */
html[data-theme="saas_light"] {
    --bg: #f4f7fb;
    --bg-main: #f4f7fb;
    --bg-soft: #eef3f8;
    --surface: #ffffff;
    --surface-2: #f8faff;
    --card-bg: #ffffff;
    --text: #1f2937;
    --text-main: #1f2937;
    --muted: #6b7280;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-soft: #e5e7eb;
    --primary: #4f63d9;
    --primary-dark: #3f51c7;
    --primary-contrast: #ffffff;
    --accent: #6366f1;
    --link: #4f63d9;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --sidebar-bg: #ffffff;
    --sidebar-text: #1f2937;
    --sidebar-hover: #eef2ff;
    --sidebar-active-bg: #4f63d9;
    --sidebar-active-text: #ffffff;
    --topbar-bg: rgba(255, 255, 255, 0.9);
    --topbar-text: #1f2937;
    --table-head-bg: #f8fafc;
    --input-bg: #ffffff;
    --input-text: #1f2937;
    --shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.08);
    --radius-card: 18px;
    --radius-control: 14px;
}

html[data-theme="saas_light"] body,
html[data-theme="saas_light"] .app-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.98) 28%, rgba(244, 247, 251, 1) 58%, rgba(238, 243, 248, 1) 100%) !important;
    color: var(--text-main) !important;
    font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="saas_light"] ::selection {
    background: rgba(79, 99, 217, 0.16);
    color: var(--text-main);
}

html[data-theme="saas_light"] a {
    color: var(--link);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.16em;
}

html[data-theme="saas_light"] a:hover {
    color: var(--primary-dark);
}

html[data-theme="saas_light"] .app-topbar,
html[data-theme="saas_light"] .navbar.app-topbar,
html[data-theme="saas_light"] header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--topbar-bg) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(18px);
}

html[data-theme="saas_light"] .app-brand-copy strong,
html[data-theme="saas_light"] .app-sidebar-title,
html[data-theme="saas_light"] .app-user-copy strong,
html[data-theme="saas_light"] .page-toolbar h1,
html[data-theme="saas_light"] .page-toolbar h2,
html[data-theme="saas_light"] .page-toolbar h3,
html[data-theme="saas_light"] .module-toolbar h1,
html[data-theme="saas_light"] .module-toolbar h2,
html[data-theme="saas_light"] .module-toolbar h3 {
    color: var(--text-main) !important;
}

html[data-theme="saas_light"] .app-brand-copy small,
html[data-theme="saas_light"] .app-topbar-context-kicker,
html[data-theme="saas_light"] .app-sidebar-kicker,
html[data-theme="saas_light"] .app-user-copy small {
    color: var(--text-muted) !important;
}

html[data-theme="saas_light"] .app-topbar-context,
html[data-theme="saas_light"] .app-topbar-theme-form,
html[data-theme="saas_light"] .app-user-chip {
    background: rgba(248, 250, 252, 0.9) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: none !important;
}

html[data-theme="saas_light"] .app-sidebar,
html[data-theme="saas_light"] #sidebar,
html[data-theme="saas_light"] .sidebar {
    background: var(--sidebar-bg) !important;
    border-right: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.04);
}

html[data-theme="saas_light"] .sidebar-group-card.is-open,
html[data-theme="saas_light"] .sidebar-group-card.is-active {
    background: rgba(248, 250, 252, 0.96) !important;
    border-color: rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="saas_light"] .sidebar-parent,
html[data-theme="saas_light"] .sidebar-child,
html[data-theme="saas_light"] .sidebar-group summary,
html[data-theme="saas_light"] .app-sidebar .nav-link,
html[data-theme="saas_light"] #sidebar .nav-link,
html[data-theme="saas_light"] .sidebar .nav-link {
    color: var(--sidebar-text) !important;
}

html[data-theme="saas_light"] .sidebar-parent:hover,
html[data-theme="saas_light"] .sidebar-child:hover,
html[data-theme="saas_light"] .app-sidebar .nav-link:hover,
html[data-theme="saas_light"] #sidebar .nav-link:hover,
html[data-theme="saas_light"] .sidebar .nav-link:hover {
    background: var(--sidebar-hover) !important;
    color: var(--primary) !important;
}

html[data-theme="saas_light"] .sidebar-parent-icon,
html[data-theme="saas_light"] .sidebar-child-icon,
html[data-theme="saas_light"] .sidebar-parent-chevron {
    color: #94a3b8 !important;
}

html[data-theme="saas_light"] .sidebar-group-card.is-active .sidebar-parent,
html[data-theme="saas_light"] .sidebar-group-card.is-open .sidebar-parent {
    color: var(--primary) !important;
}

html[data-theme="saas_light"] .sidebar-group-card.is-open .sidebar-parent-chevron {
    color: var(--primary) !important;
}

html[data-theme="saas_light"] .sidebar-child.is-active,
html[data-theme="saas_light"] .app-sidebar .nav-link.active,
html[data-theme="saas_light"] #sidebar .nav-link.active,
html[data-theme="saas_light"] .sidebar .nav-link.active {
    background: linear-gradient(135deg, #4f63d9, #6366f1) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 14px 28px rgba(79, 99, 217, 0.22) !important;
}

html[data-theme="saas_light"] .app-sidebar-footer {
    background: rgba(248, 250, 252, 0.92) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
}

html[data-theme="saas_light"] .app-main,
html[data-theme="saas_light"] main {
    background: transparent !important;
    color: var(--text-main) !important;
}

html[data-theme="saas_light"] .app-page-shell {
    max-width: 1680px;
    gap: 1.35rem;
}

html[data-theme="saas_light"] .page-toolbar,
html[data-theme="saas_light"] .module-toolbar,
html[data-theme="saas_light"] .app-page-header {
    align-items: center;
    gap: 1rem;
}

html[data-theme="saas_light"] .page-toolbar .text-muted,
html[data-theme="saas_light"] .module-toolbar .text-muted,
html[data-theme="saas_light"] .app-page-header .text-muted,
html[data-theme="saas_light"] .subtitle,
html[data-theme="saas_light"] .text-muted,
html[data-theme="saas_light"] small,
html[data-theme="saas_light"] .noc-sub {
    color: var(--text-muted) !important;
}

html[data-theme="saas_light"] .card,
html[data-theme="saas_light"] .panel,
html[data-theme="saas_light"] .table-responsive,
html[data-theme="saas_light"] .alert,
html[data-theme="saas_light"] .dropdown-menu,
html[data-theme="saas_light"] .modal-content,
html[data-theme="saas_light"] .offcanvas,
html[data-theme="saas_light"] .list-group,
html[data-theme="saas_light"] .page-section-card,
html[data-theme="saas_light"] .module-card,
html[data-theme="saas_light"] .stat-box,
html[data-theme="saas_light"] .invoice-summary-box,
html[data-theme="saas_light"] .router-panel,
html[data-theme="saas_light"] .noc-card {
    background: var(--card-bg) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--radius-card) !important;
    box-shadow: var(--shadow) !important;
}

html[data-theme="saas_light"] .page-section-card,
html[data-theme="saas_light"] .module-card,
html[data-theme="saas_light"] .app-metric-card,
html[data-theme="saas_light"] .card {
    overflow: hidden;
}

html[data-theme="saas_light"] .page-section-card .card-header,
html[data-theme="saas_light"] .module-card .card-header,
html[data-theme="saas_light"] .card-header,
html[data-theme="saas_light"] .router-head,
html[data-theme="saas_light"] .noc-head,
html[data-theme="saas_light"] .app-section-heading {
    padding: 1rem 1.15rem;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fafc 100%) !important;
    color: var(--text-main) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    font-weight: 700;
}

html[data-theme="saas_light"] .page-section-card .card-body,
html[data-theme="saas_light"] .module-card .card-body,
html[data-theme="saas_light"] .card-body {
    padding: 1.15rem;
}

html[data-theme="saas_light"] .app-metric-card,
html[data-theme="saas_light"] .dashboard-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
    border-color: #e6ebf2 !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

html[data-theme="saas_light"] .app-metric-card:hover,
html[data-theme="saas_light"] .dashboard-stat-card:hover,
html[data-theme="saas_light"] .page-section-card:hover {
    border-color: rgba(79, 99, 217, 0.18) !important;
}

html[data-theme="saas_light"] a.app-metric-card:hover,
html[data-theme="saas_light"] a.page-section-card:hover,
html[data-theme="saas_light"] .dashboard-overview-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg) !important;
}

html[data-theme="saas_light"] .metric-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted) !important;
}

html[data-theme="saas_light"] .metric-value {
    color: var(--text-main) !important;
}

html[data-theme="saas_light"] .app-inline-details {
    background: #f8fafc !important;
    border: 1px dashed #d8e0ea !important;
    color: var(--text-muted) !important;
}

html[data-theme="saas_light"] .table,
html[data-theme="saas_light"] table {
    --bs-table-color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #fcfdff;
    --bs-table-hover-bg: #f8faff;
    --bs-table-border-color: #e6ebf2;
    color: var(--text-main) !important;
}

html[data-theme="saas_light"] .table thead th,
html[data-theme="saas_light"] table thead th {
    background: var(--table-head-bg) !important;
    color: var(--text-muted) !important;
    border-color: #e6ebf2 !important;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

html[data-theme="saas_light"] .table tbody tr,
html[data-theme="saas_light"] table tbody tr {
    transition: background 0.18s ease;
}

html[data-theme="saas_light"] .table tbody tr:hover > *,
html[data-theme="saas_light"] table tbody tr:hover > * {
    background: #f8faff !important;
}

html[data-theme="saas_light"] .btn {
    min-height: 42px;
    border-radius: 12px !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

html[data-theme="saas_light"] .btn-sm {
    min-height: 36px;
    border-radius: 10px !important;
}

html[data-theme="saas_light"] .btn:hover {
    transform: translateY(-1px);
    filter: none;
}

html[data-theme="saas_light"] .btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-contrast) !important;
    box-shadow: 0 12px 24px rgba(79, 99, 217, 0.16);
}

html[data-theme="saas_light"] .btn-primary:hover,
html[data-theme="saas_light"] .btn-primary:focus {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #ffffff !important;
}

html[data-theme="saas_light"] .btn-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: #ffffff !important;
}

html[data-theme="saas_light"] .btn-warning {
    background: var(--warning) !important;
    border-color: var(--warning) !important;
    color: #ffffff !important;
}

html[data-theme="saas_light"] .btn-danger {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    color: #ffffff !important;
}

html[data-theme="saas_light"] .btn-outline-secondary,
html[data-theme="saas_light"] .btn-outline-light,
html[data-theme="saas_light"] .btn-outline-info,
html[data-theme="saas_light"] .btn-outline-warning,
html[data-theme="saas_light"] .btn-outline-primary,
html[data-theme="saas_light"] .btn-outline-success,
html[data-theme="saas_light"] .btn-outline-danger,
html[data-theme="saas_light"] .btn-secondary {
    background: #ffffff !important;
    border-color: #dbe2ea !important;
    color: #334155 !important;
}

html[data-theme="saas_light"] .btn-outline-secondary:hover,
html[data-theme="saas_light"] .btn-outline-light:hover,
html[data-theme="saas_light"] .btn-outline-info:hover,
html[data-theme="saas_light"] .btn-outline-warning:hover,
html[data-theme="saas_light"] .btn-outline-primary:hover,
html[data-theme="saas_light"] .btn-outline-success:hover,
html[data-theme="saas_light"] .btn-outline-danger:hover,
html[data-theme="saas_light"] .btn-secondary:hover {
    background: var(--sidebar-hover) !important;
    border-color: rgba(79, 99, 217, 0.24) !important;
    color: var(--primary) !important;
}

html[data-theme="saas_light"] .form-label {
    color: #334155 !important;
    font-weight: 600;
}

html[data-theme="saas_light"] .form-control,
html[data-theme="saas_light"] .form-select,
html[data-theme="saas_light"] input,
html[data-theme="saas_light"] select,
html[data-theme="saas_light"] textarea,
html[data-theme="saas_light"] .input-group-text {
    background: var(--input-bg) !important;
    color: var(--input-text) !important;
    border: 1px solid #dbe2ea !important;
    border-radius: var(--radius-control) !important;
    box-shadow: none !important;
}

html[data-theme="saas_light"] .form-control::placeholder,
html[data-theme="saas_light"] input::placeholder,
html[data-theme="saas_light"] textarea::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="saas_light"] .form-control:focus,
html[data-theme="saas_light"] .form-select:focus,
html[data-theme="saas_light"] input:focus,
html[data-theme="saas_light"] select:focus,
html[data-theme="saas_light"] textarea:focus {
    border-color: rgba(79, 99, 217, 0.56) !important;
    box-shadow: 0 0 0 0.22rem rgba(79, 99, 217, 0.14) !important;
}

html[data-theme="saas_light"] .input-group-text {
    background: #f8fafc !important;
    color: var(--text-muted) !important;
}

html[data-theme="saas_light"] .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px !important;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

html[data-theme="saas_light"] .badge.bg-success {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.18) !important;
    color: #15803d !important;
}

html[data-theme="saas_light"] .badge.bg-warning {
    background: rgba(245, 158, 11, 0.14) !important;
    border-color: rgba(245, 158, 11, 0.18) !important;
    color: #b45309 !important;
}

html[data-theme="saas_light"] .badge.bg-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.18) !important;
    color: #b91c1c !important;
}

html[data-theme="saas_light"] .badge.bg-info,
html[data-theme="saas_light"] .badge.bg-primary {
    background: rgba(79, 99, 217, 0.12) !important;
    border-color: rgba(79, 99, 217, 0.18) !important;
    color: var(--primary) !important;
}

html[data-theme="saas_light"] .badge.bg-secondary,
html[data-theme="saas_light"] .badge.bg-dark,
html[data-theme="saas_light"] .badge.text-bg-light {
    background: #f8fafc !important;
    border-color: #e5e7eb !important;
    color: #475569 !important;
}

html[data-theme="saas_light"] .alert {
    padding: 0.95rem 1rem;
    border-width: 1px !important;
    border-left-width: 4px !important;
}

html[data-theme="saas_light"] .alert-success {
    background: rgba(34, 197, 94, 0.08) !important;
    border-color: rgba(34, 197, 94, 0.18) !important;
    color: #166534 !important;
}

html[data-theme="saas_light"] .alert-info,
html[data-theme="saas_light"] .alert-primary {
    background: rgba(79, 99, 217, 0.08) !important;
    border-color: rgba(79, 99, 217, 0.18) !important;
    color: #3246b5 !important;
}

html[data-theme="saas_light"] .alert-warning {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.18) !important;
    color: #b45309 !important;
}

html[data-theme="saas_light"] .alert-danger {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.18) !important;
    color: #b91c1c !important;
}

html[data-theme="saas_light"] .breadcrumb,
html[data-theme="saas_light"] .pagination,
html[data-theme="saas_light"] .nav-tabs,
html[data-theme="saas_light"] .dropdown-menu,
html[data-theme="saas_light"] .modal-content {
    border-color: var(--border-soft) !important;
}

html[data-theme="saas_light"] .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8 !important;
}

html[data-theme="saas_light"] .page-link {
    border-radius: 10px !important;
    border-color: #dbe2ea !important;
    color: #475569 !important;
}

html[data-theme="saas_light"] .page-link:hover,
html[data-theme="saas_light"] .page-item.active .page-link {
    background: var(--sidebar-hover) !important;
    border-color: rgba(79, 99, 217, 0.24) !important;
    color: var(--primary) !important;
}

html[data-theme="saas_light"] .theme-save-toast {
    background: #ffffff;
    color: var(--text-main);
    border-color: var(--border-soft);
    box-shadow: var(--shadow-lg);
}

html[data-theme="saas_light"] .app-footer,
html[data-theme="saas_light"] footer {
    background: transparent !important;
    border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
    color: var(--text-muted) !important;
}

html[data-theme="saas_light"] .dashboard-overview-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(79, 99, 217, 0.1), rgba(255, 255, 255, 0.98) 44%, rgba(14, 165, 233, 0.08));
}

html[data-theme="saas_light"] .dashboard-overview-hero::after {
    content: "";
    position: absolute;
    right: -72px;
    bottom: -88px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(79, 99, 217, 0.14), transparent 70%);
}

html[data-theme="saas_light"] .dashboard-overview-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[data-theme="saas_light"] .dashboard-overview-title {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
    line-height: 1.05;
    color: #0f172a;
}

html[data-theme="saas_light"] .dashboard-overview-copy {
    max-width: 58rem;
    color: var(--text-muted) !important;
}

html[data-theme="saas_light"] .dashboard-overview-signal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

html[data-theme="saas_light"] .dashboard-overview-signal {
    min-width: 180px;
    padding: 0.92rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

html[data-theme="saas_light"] .dashboard-overview-signal span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 0.24rem;
}

html[data-theme="saas_light"] .dashboard-overview-focus {
    height: 100%;
    padding: 1.4rem;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, #111827, #3246b5);
    color: #f8fafc;
    box-shadow: 0 26px 52px rgba(79, 99, 217, 0.18);
}

html[data-theme="saas_light"] .dashboard-overview-focus small {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="saas_light"] .dashboard-overview-focus strong {
    display: block;
    font-size: clamp(1.55rem, 1.2rem + 1vw, 2.1rem);
    line-height: 1.08;
    margin: 0.75rem 0 0.6rem;
}

html[data-theme="saas_light"] .dashboard-stat-meta {
    margin-top: 0.9rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

html[data-theme="saas_light"] .dashboard-stat-trend {
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(79, 99, 217, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}

html[data-theme="saas_light"] .dashboard-overview-chart,
html[data-theme="saas_light"] .noc-chart,
html[data-theme="saas_light"] .business-chart {
    position: relative;
    min-height: 300px;
}

html[data-theme="saas_light"] .dashboard-overview-chart canvas,
html[data-theme="saas_light"] .noc-chart canvas,
html[data-theme="saas_light"] .business-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

html[data-theme="saas_light"] .dashboard-overview-actions {
    display: grid;
    gap: 0.85rem;
}

html[data-theme="saas_light"] .dashboard-overview-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid #e6ebf2;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

html[data-theme="saas_light"] .dashboard-overview-action strong {
    font-size: 1rem;
    color: var(--text-main);
}

html[data-theme="saas_light"] .dashboard-overview-action span:last-child {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    html[data-theme="saas_light"] .page-toolbar,
    html[data-theme="saas_light"] .module-toolbar,
    html[data-theme="saas_light"] .app-page-header {
        align-items: stretch;
    }

    html[data-theme="saas_light"] .page-toolbar > div:last-child,
    html[data-theme="saas_light"] .module-toolbar > div:last-child,
    html[data-theme="saas_light"] .app-page-header > div:last-child {
        width: 100%;
    }

    html[data-theme="saas_light"] .dashboard-overview-chart,
    html[data-theme="saas_light"] .noc-chart,
    html[data-theme="saas_light"] .business-chart {
        min-height: 260px;
    }
}

@media (max-width: 767.98px) {
    html[data-theme="saas_light"] .app-main {
        padding: 1rem 0.95rem 1.5rem;
    }

    html[data-theme="saas_light"] .page-section-card,
    html[data-theme="saas_light"] .module-card,
    html[data-theme="saas_light"] .card,
    html[data-theme="saas_light"] .table-responsive,
    html[data-theme="saas_light"] .alert {
        border-radius: 16px !important;
    }

    html[data-theme="saas_light"] .dashboard-overview-signal {
        min-width: calc(50% - 0.45rem);
    }
}

@media (max-width: 575.98px) {
    html[data-theme="saas_light"] .dashboard-overview-signal {
        min-width: 100%;
    }

    html[data-theme="saas_light"] .btn,
    html[data-theme="saas_light"] .page-toolbar .btn,
    html[data-theme="saas_light"] .module-toolbar .btn,
    html[data-theme="saas_light"] .app-page-header .btn {
        width: 100%;
    }
}
