/* ═══════════════════════════════════════════════════════════════
   ServiceIt Admin — Cuba Theme Overrides
   ═══════════════════════════════════════════════════════════════ */

/* ── Brand palette — change here to retheme everything ───────── */
:root {
    --si-primary:        #34b87a;
    --si-primary-dark:   #34b87a;
    --si-primary-rgb:    85, 198, 152;
    --si-logo-main-h:    44px;
    --si-logo-collapsed-h: 36px;
    --si-logo-login-h:   80px;

    /* Override Cuba's theme variable */
    --theme-deafult:     #03ca45;
    /* Override Bootstrap 5 primary */
    --bs-primary:        #34b87a;
    --bs-primary-rgb:    85, 198, 152;
    --bs-link-color:     #34b87a;
    --bs-link-hover-color: #34b87a;
}

/* ── Bootstrap btn-primary override ─────────────────────────── */
.btn-primary {
    background-color: var(--si-primary) !important;
    border-color:     var(--si-primary) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--si-primary-dark) !important;
    border-color:     var(--si-primary-dark) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--si-primary-rgb), .35) !important;
}
.btn-outline-primary {
    color:        var(--si-primary) !important;
    border-color: var(--si-primary) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:active {
    background-color: var(--si-primary) !important;
    border-color:     var(--si-primary) !important;
    color: #fff !important;
}
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--si-primary-rgb), .35) !important;
}
/* form focus rings */
.form-control:focus, .form-select:focus {
    border-color: var(--si-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--si-primary-rgb), .2) !important;
}

/* ── Buttons: align Feather/SVG with label (inline-block + baseline skews icons up) ── */
.page-wrapper .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}
.page-wrapper .btn > svg,
.page-wrapper .btn i[data-feather] {
    flex-shrink: 0;
}
.page-wrapper .btn-group > .btn,
.page-wrapper .btn-group-vertical > .btn {
    display: inline-flex;
}

/* ── Full-page navigation loader ─────────────────────────────── */
body.si-nav-loading {
    cursor: progress;
    overflow: hidden;
}

.si-page-loader {
    position: fixed;
    inset: 0;
    z-index: 10900;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dark-only .si-page-loader,
[class*='dark-sidebar'] body .si-page-loader {
    background: rgba(26, 28, 35, 0.88);
}

.si-page-loader.si-page-loader--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.si-page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.si-page-loader-spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(var(--si-primary-rgb), 0.22);
    border-top-color: var(--si-primary);
    animation: si-page-loader-spin 0.75s linear infinite;
    box-shadow: 0 4px 24px rgba(var(--si-primary-rgb), 0.18);
}

@keyframes si-page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.si-page-loader-text {
    font-family: Rubik, Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #64748b;
}

.dark-only .si-page-loader-text {
    color: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
    .si-page-loader-spinner {
        animation: none;
        border-color: rgba(var(--si-primary-rgb), 0.35);
        border-top-color: var(--si-primary);
        opacity: 0.92;
    }
}

/* ── Logo — header ───────────────────────────────────────────── */
.si-header-logo {
    height: var(--si-logo-main-h) !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
    object-fit: contain;
}
.page-header .header-logo-wrapper .logo-wrapper {
    display: flex !important;
    align-items: center;
    padding: 0 16px 0 20px !important;
    box-shadow: none !important;
    background: transparent !important;
}
.page-header .header-logo-wrapper {
    min-width: 200px;
}

/* ── Logo — sidebar ──────────────────────────────────────────── */
.sidebar-wrapper > div > .logo-wrapper {
    display: flex;              /* no !important — lets Cuba's close_icon display:none win */
    align-items: center !important;
}
/* Collapsed: explicitly mirror Cuba's own rules so icon shows cleanly */
.sidebar-wrapper.close_icon > div > .logo-wrapper {
    display: none !important;
}
.sidebar-wrapper.close_icon:hover > div > .logo-wrapper {
    display: flex !important;
}
.si-sidebar-logo-link {
    display: flex !important;
    align-items: center !important;
    flex: 1;
    min-width: 0;
    line-height: 0;
}
.si-sidebar-logo {
    height: 50px!important;
    width: 200px !important;
    max-width: min(200px, calc(100% - 8px)) !important;
    display: block !important;
    /* object-fit: contain;
    object-position: left center; */
}
.si-logo-icon {
    height: var(--si-logo-collapsed-h) !important;
    width: auto !important;
    max-height: var(--si-logo-collapsed-h) !important;
    display: block !important;
    margin: 0 auto;
    object-fit: contain;
}
.si-sidebar-logo-mobile {
    max-height: 32px !important;
    width: auto !important;
    object-fit: contain;
}
.sidebar-wrapper .logo-wrapper {
    padding: 18px 20px 18px 22px !important;
}

/* ── Logo — login ────────────────────────────────────────────── */
.si-login-brand {
    margin-bottom: 1.25rem;
}
.login-card .si-login-brand .logo {
    margin-bottom: 0;
}
.login-card .si-login-logo {
    height: var(--si-logo-login-h) !important;
    width: auto !important;
    max-width: min(260px, 90vw);
    margin-left: auto;
    margin-right: auto;
    display: block !important;
    object-fit: contain;
    object-position: center;
}

/* ── Nav avatar initial ──────────────────────────────────────── */
.si-nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--si-primary), var(--si-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 8px;
}

/* ── Dark / Light mode toggle button ────────────────────────── */
.si-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
    padding: 0;
    color: #6b7280;
}
.si-theme-toggle:hover {
    background: rgba(var(--si-primary-rgb), .1);
    border-color: rgba(var(--si-primary-rgb), .35);
    color: var(--si-primary);
    transform: rotate(12deg);
}
.si-theme-toggle--dark {
    background: #1e2130;
    border-color: #374151;
    color: #fbbf24 !important;
}
.si-theme-toggle--dark svg,
.si-theme-toggle--dark i[data-feather] {
    stroke: #fbbf24 !important;
    color: #fbbf24 !important;
}
.si-theme-toggle--dark:hover {
    background: #262d40;
    border-color: #4b5563;
    color: #fbbf24 !important;
    transform: rotate(-12deg);
}
.si-theme-icon {
    width: 15px;
    height: 15px;
    pointer-events: none;
    transition: opacity .15s;
}
/* sun hidden by default (shown in dark mode via JS) */
.si-icon-sun { display: none; }

/* ── Navbar cleanup ──────────────────────────────────────────── */
.page-header {
    box-shadow: 0 1px 10px rgba(0,0,0,.07) !important;
}
.page-header .header-wrapper {
    align-items: center;
    min-height: 70px;
}
.page-header .nav-menus {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

/* ── Card header title (Hyper compat) ────────────────────────── */
.header-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .15px;
}

/* ── Status & payment badges ─────────────────────────────────── */
.badge-soft-pending     { background: #fff3cd; color: #7d5a0a; border: 1px solid #ffe69c; }
.badge-soft-assigned    { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-soft-travelling  { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-soft-arrived     { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-soft-in_progress { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-soft-completed   { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-soft-cancelled   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-soft-paid        { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-soft-unpaid      { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-soft-open        { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-soft-resolved    { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-soft-pending, .badge-soft-assigned, .badge-soft-travelling,
.badge-soft-arrived, .badge-soft-in_progress, .badge-soft-completed,
.badge-soft-cancelled, .badge-soft-paid, .badge-soft-unpaid,
.badge-soft-open, .badge-soft-resolved {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
}

/* ── Elegant tables ──────────────────────────────────────────── */
.table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 11px 16px;
    white-space: nowrap;
}
.table tbody td {
    padding: 11px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    color: #344054;
    font-size: 13.5px;
}
.table tbody tr:hover td { background: rgba(var(--si-primary-rgb),.03); }
.table tbody tr:last-child td { border-bottom: none; }

/* ── Button sizes ────────────────────────────────────────────── */
.btn-xs {
    padding: 3px 10px;
    font-size: 11.5px;
    border-radius: 5px;
    line-height: 1.5;
}
.btn-xs svg, .btn-xs i[data-feather] { width: 13px; height: 13px; }
.btn-soft-secondary {
    background: #e9ecef; color: #495057; border: 1px solid #dee2e6;
}
.btn-soft-secondary:hover { background: #dee2e6; color: #212529; }

/* ── Filter bar ──────────────────────────────────────────────── */
.si-filter-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.si-filter-card .card-body { padding: 14px 18px; }
.si-filter-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9ca3af;
    margin-bottom: 5px;
}
.si-filter-card .form-control,
.si-filter-card .form-select {
    font-size: 13px;
    border-radius: 7px;
    border-color: #e5e7eb;
    min-width: 130px;
}
.si-filter-card .form-control:focus,
.si-filter-card .form-select:focus {
    border-color: var(--si-primary);
    box-shadow: 0 0 0 3px rgba(var(--si-primary-rgb),.12);
}
.si-filter-divider { width: 1px; background: #e9ecef; align-self: stretch; margin: 0 4px; }

/* ── Dashboard stat cards ────────────────────────────────────── */
.si-stat-card { transition: transform .15s ease, box-shadow .15s ease; }
.si-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--si-primary-rgb),.12) !important; }
.si-stat-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.si-stat-icon-box svg { width: 24px; height: 24px; color: #fff; stroke-width: 2; }
.si-stat-icon-box i[data-feather] { width: 24px; height: 24px; color: #fff; }

/* ── KPI stat cards ──────────────────────────────────────────── */
.si-kpi-card {
    border-radius: 14px;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.si-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.si-kpi-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9ca3af;
}
.si-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.si-kpi-icon i[data-feather] {
    width: 22px;
    height: 22px;
    color: #fff;
    stroke-width: 2;
}
.si-kpi-number {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.si-kpi-sub {
    font-size: 12px;
    color: #9ca3af;
    min-height: 1.4em;
}
.si-kpi-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ── Booking timeline stepper ────────────────────────────────── */
.si-stepper { display: flex; align-items: flex-start; padding: 6px 0; }
.si-stepper-item { flex: 1; text-align: center; position: relative; z-index: 1; }
.si-stepper-line { flex: 1; height: 2px; background: #e9ecef; margin-top: 18px; z-index: 0; }
.si-stepper-line.done { background: var(--si-primary); }
.si-stepper-dot {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px; font-size: 12px; font-weight: 700;
    border: 2px solid transparent;
}
.si-stepper-dot.pending-dot { background: #f8f9fa; border-color: #dee2e6; color: #adb5bd; }
.si-stepper-dot.active-dot  { background: var(--si-primary); color: #fff; box-shadow: 0 3px 8px rgba(var(--si-primary-rgb),.4); }
.si-stepper-dot.done-dot    { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.si-stepper-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: #9ca3af; }
.si-stepper-label.done-label, .si-stepper-label.active-label { color: var(--si-primary); }

/* ── Info rows ───────────────────────────────────────────────── */
.si-info-row { display: flex; padding: 9px 0; border-bottom: 1px solid #f3f4f6; align-items: center; }
.si-info-row:last-child { border-bottom: none; }
.si-info-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: #9ca3af; min-width: 130px; flex-shrink: 0; }
.si-info-value { font-size: 13.5px; color: #344054; font-weight: 500; }

/* ── Avatars ─────────────────────────────────────────────────── */
.si-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0; object-fit: cover;
}
.si-avatar-lg {
    width: 86px; height: 86px; border-radius: 18px;
    font-size: 28px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
img.si-avatar { border-radius: 10px; }
img.si-avatar-lg { border-radius: 18px; object-fit: cover; }

/* ── Stars ───────────────────────────────────────────────────── */
.si-star     { color: #fbbf24 !important; }
.si-star.empty { color: #d1d5db !important; }

/* ── Action buttons ──────────────────────────────────────────── */
.si-action-btns { display: flex; gap: 5px; }

/* ── Form card (gradient header) ─────────────────────────────── */
.si-form-card .card-header {
    background: linear-gradient(135deg, var(--si-primary) 0%, var(--si-primary-dark) 100%);
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 14px 20px;
}
.si-form-card .card-header .header-title,
.si-form-card .card-header * { color: #fff; }

/* ── Complaint card left border ──────────────────────────────── */
.si-complaint-card { border-left: 4px solid #e9ecef !important; }
.si-complaint-card.open { border-left-color: #ef4444 !important; }
.si-complaint-card.resolved { border-left-color: #10b981 !important; }

/* ── Top-worker progress bar ─────────────────────────────────── */
.si-worker-progress .progress { height: 5px; border-radius: 10px; background: #f0f0f8; }
.si-worker-progress .progress-bar { border-radius: 10px; background: linear-gradient(90deg, var(--si-primary), var(--si-primary-dark)); }

/* ── Chart cards ─────────────────────────────────────────────── */
.si-chart-card .card-header {
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 20px;
}
.si-chart-card .card-header h6 { font-size: 14px; font-weight: 600; margin: 0; }
.si-chart-card .card-header small { font-size: 11.5px; color: #9ca3af; }

/* ── Stat card revenue number ────────────────────────────────── */
.si-stat-revenue {
    font-size: clamp(1.1rem, 2.2vw, 1.75rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Dashboard date-range toggle button ──────────────────────── */
.si-range-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
    white-space: nowrap;
    line-height: 1;
}
.si-range-toggle-btn:hover {
    background: rgba(var(--si-primary-rgb),.08);
    color: var(--si-primary);
    border-color: rgba(var(--si-primary-rgb),.3);
}
.si-range-toggle-btn[aria-expanded="true"],
.si-range-toggle-btn.si-range-toggle-active {
    background: rgba(var(--si-primary-rgb),.1);
    color: var(--si-primary);
    border-color: rgba(var(--si-primary-rgb),.4);
    box-shadow: 0 0 0 3px rgba(var(--si-primary-rgb),.1);
}
.si-range-toggle-badge {
    display: inline-block;
    background: var(--si-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: .2px;
}

/* ── Dashboard date-range preset buttons ─────────────────────── */
.si-preset-btn {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    line-height: 1.5;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.si-preset-btn:hover {
    background: rgba(var(--si-primary-rgb),.1);
    color: var(--si-primary);
    border-color: rgba(var(--si-primary-rgb),.3);
}

/* ── Dashboard (redesigned) ──────────────────────────────────── */
.si-dash-hero {
    position: relative;
    border-radius: 18px;
    padding: 22px 24px 20px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    background:
        radial-gradient(1200px 280px at 12% -20%, rgba(var(--si-primary-rgb), 0.28), transparent 55%),
        radial-gradient(900px 220px at 88% 0%, rgba(59, 130, 246, 0.12), transparent 50%),
        linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.si-dash-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2334b87a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.85;
    pointer-events: none;
}
.si-dash-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.si-dash-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--si-primary);
    margin-bottom: 6px;
}
.si-dash-hero-title {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.2;
}
.si-dash-hero-meta {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    max-width: 42rem;
}
.si-dash-hero-meta strong {
    color: #334155;
    font-weight: 600;
}
.si-dash-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.si-dash-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.si-dash-hero-btn:hover {
    color: var(--si-primary);
    border-color: rgba(var(--si-primary-rgb), 0.45);
    box-shadow: 0 2px 8px rgba(var(--si-primary-rgb), 0.12);
}
.si-dash-hero-btn i[data-feather] {
    width: 15px;
    height: 15px;
}

.si-dash-stat {
    --si-dash-accent: var(--si-primary);
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.si-dash-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--si-dash-accent);
    border-radius: 4px 0 0 4px;
}
.si-dash-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 16px 40px rgba(15, 23, 42, 0.06);
}
.si-dash-stat .card-body {
    padding: 1.15rem 1.25rem 1.15rem 1.35rem;
}
.si-dash-stat--bookings {
    --si-dash-accent: #34b87a;
}
.si-dash-stat--active {
    --si-dash-accent: #f59e0b;
}
.si-dash-stat--done {
    --si-dash-accent: #10b981;
}
.si-dash-stat--revenue {
    --si-dash-accent: #0ea5e9;
}
.si-dash-stat--workers {
    --si-dash-accent: #8b5cf6;
}
.si-dash-stat--customers {
    --si-dash-accent: #34b87a;
}
.si-dash-stat--alerts {
    --si-dash-accent: #ef4444;
}
.si-dash-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.si-dash-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}
.si-dash-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--si-dash-accent) 88%, #fff), var(--si-dash-accent));
    box-shadow: 0 4px 14px color-mix(in srgb, var(--si-dash-accent) 35%, transparent);
}
.si-dash-stat-icon i[data-feather] {
    width: 20px;
    height: 20px;
    color: #fff;
    stroke-width: 2;
}
.si-dash-stat-value {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 4px;
}
.si-dash-stat-foot {
    font-size: 12px;
    color: #94a3b8;
    min-height: 1.35em;
}
.si-dash-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
}

.si-dash-panel {
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.si-dash-panel .card-header {
    background: #fafbfc;
    border-bottom: 1px solid #eef2f7;
    padding: 14px 18px;
}
.si-dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.si-dash-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.si-dash-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(var(--si-primary-rgb), 0.12);
    color: var(--si-primary);
}
.si-dash-panel-icon i[data-feather] {
    width: 18px;
    height: 18px;
}
.si-dash-panel-title h6 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.si-dash-panel-title small {
    display: block;
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}
.si-dash-panel-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(var(--si-primary-rgb), 0.12);
    color: var(--si-primary);
}

.si-dash-leaders .card-header {
    background: #fafbfc;
    border-bottom: 1px solid #eef2f7;
    padding: 14px 18px;
}
.si-dash-leaders .card-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.si-dash-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #64748b;
}
.si-dash-rank--1 {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    color: #78350f;
}
.si-dash-rank--2 {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #334155;
}
.si-dash-rank--3 {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #7c2d12;
}

.si-dash-bookings .card-header {
    background: #fafbfc;
    border-bottom: 1px solid #eef2f7;
    padding: 14px 18px;
}
.si-dash-bookings .table thead th {
    background: #f8fafc;
    font-size: 10.5px;
    letter-spacing: 0.06em;
}
.si-dash-bookings .table tbody td {
    vertical-align: middle;
}
.si-dash-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--si-primary), var(--si-primary-dark));
}

body.dark-only .si-dash-hero {
    background:
        radial-gradient(900px 240px at 10% -30%, rgba(var(--si-primary-rgb), 0.22), transparent 55%),
        radial-gradient(700px 200px at 92% 10%, rgba(59, 130, 246, 0.1), transparent 50%),
        linear-gradient(145deg, #1a1d26 0%, #151820 100%);
    border-color: #374558;
    box-shadow: none;
}
body.dark-only .si-dash-hero-title {
    color: rgba(255, 255, 255, 0.92);
}
body.dark-only .si-dash-hero-meta {
    color: rgba(255, 255, 255, 0.55);
}
body.dark-only .si-dash-hero-meta strong {
    color: rgba(255, 255, 255, 0.78);
}
body.dark-only .si-dash-hero-btn {
    background: #1e2130;
    border-color: #374558;
    color: rgba(255, 255, 255, 0.85);
}
body.dark-only .si-dash-hero-btn:hover {
    border-color: rgba(var(--si-primary-rgb), 0.5);
    color: #7ee8b8;
}

body.dark-only .si-dash-stat {
    background: #1d1e26;
    box-shadow: none;
    border: 1px solid #374558;
}
body.dark-only .si-dash-stat:hover {
    border-color: rgba(var(--si-primary-rgb), 0.35);
}
body.dark-only .si-dash-stat-label {
    color: rgba(255, 255, 255, 0.45);
}
body.dark-only .si-dash-stat-value {
    color: rgba(255, 255, 255, 0.94);
}
body.dark-only .si-dash-stat-foot {
    color: rgba(255, 255, 255, 0.45);
}

body.dark-only .si-dash-panel,
body.dark-only .si-dash-leaders,
body.dark-only .si-dash-bookings {
    background: #1d1e26;
    border: 1px solid #374558;
    box-shadow: none;
}
body.dark-only .si-dash-panel .card-header,
body.dark-only .si-dash-leaders .card-header,
body.dark-only .si-dash-bookings .card-header {
    background: #1a1c24;
    border-bottom-color: #374558;
}
body.dark-only .si-dash-panel-title h6 {
    color: rgba(255, 255, 255, 0.92);
}
body.dark-only .si-dash-panel-title small {
    color: rgba(255, 255, 255, 0.45);
}
body.dark-only .si-dash-panel-icon {
    background: rgba(var(--si-primary-rgb), 0.18);
}
body.dark-only .si-dash-bookings .table thead th {
    background: #1a1c24 !important;
}

body.dark-only .si-dash-rank {
    background: #2a2d3a;
    color: rgba(255, 255, 255, 0.65);
}
body.dark-only .si-dash-rank--1 {
    color: #78350f;
}
body.dark-only .si-dash-rank--2 {
    color: #334155;
}
body.dark-only .si-dash-rank--3 {
    color: #7c2d12;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .si-dash-stat-icon {
        background: var(--si-dash-accent);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 575px) {
    .si-dash-hero {
        padding: 18px 16px;
    }
    .si-dash-stat .card-body {
        padding: 1rem 1.05rem;
    }
}

/* ── Bookings index ──────────────────────────────────────────── */
.si-book-filters .card-body {
    padding: 16px 18px 18px;
}
.si-book-filters-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.si-book-filters-head h6 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.si-book-filters-head small {
    display: block;
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}
.si-book-filters-hr {
    margin: 14px 0 16px;
    border: 0;
    border-top: 1px solid #eef2f7;
    opacity: 1;
}
.si-book-filter-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(var(--si-primary-rgb), 0.12);
    color: var(--si-primary);
}
.si-book-filter-icon i[data-feather] {
    width: 18px;
    height: 18px;
}
.si-book-input .input-group-text {
    border-color: #e5e7eb;
    background: #f8fafc !important;
}
.si-book-input .form-control {
    border-color: #e5e7eb;
}
.si-book-input .form-control:focus {
    border-color: var(--si-primary);
}
.si-book-active-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(var(--si-primary-rgb), 0.12);
    color: var(--si-primary);
    align-self: center;
}

.si-book-table-wrap .card-body {
    border-top: 1px solid #eef2f7;
}
.si-book-table-wrap .table thead th {
    background: #f8fafc;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    border-bottom: 1px solid #eef2f7;
    white-space: nowrap;
}
.si-book-table-wrap .table thead th:first-child {
    padding-left: 18px;
}
.si-book-table-wrap .table tbody td:first-child {
    padding-left: 18px;
}
.si-book-table-wrap .table tbody td {
    vertical-align: middle;
}
.si-book-table-wrap .table tbody tr:last-child td {
    border-bottom: none;
}

.si-book-m-card.si-list-card {
    border-radius: 14px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.si-book-m-card .si-list-card-footer {
    border-top-color: #eef2f7;
}
.si-book-m-amount {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.si-book-m-detail {
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
.si-book-empty-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.si-book-empty {
    padding: 3rem 1.5rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
}
.si-book-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--si-primary-rgb), 0.1);
    color: var(--si-primary);
}
.si-book-empty-icon i[data-feather] {
    width: 26px;
    height: 26px;
}

.si-book-modal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.si-book-modal .modal-header {
    border-bottom: 1px solid #eef2f7;
    padding: 14px 18px;
}
.si-book-modal .modal-title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
}
.si-book-modal .modal-body {
    padding: 16px 18px;
}
.si-book-modal .modal-footer {
    border-top: 1px solid #eef2f7;
    padding: 12px 18px;
}

body.dark-only .si-book-filters-head h6 {
    color: rgba(255, 255, 255, 0.92);
}
body.dark-only .si-book-filters-head small {
    color: rgba(255, 255, 255, 0.45);
}
body.dark-only .si-book-filters-hr {
    border-top-color: #374558;
}
body.dark-only .si-book-input .input-group-text {
    background: #1a1c24 !important;
    border-color: #374558;
    color: rgba(255, 255, 255, 0.5);
}
body.dark-only .si-book-input .form-control {
    background: #1d1e26;
    border-color: #374558;
    color: rgba(255, 255, 255, 0.9);
}
body.dark-only .si-book-m-card.si-list-card {
    border-color: #374558;
    background: #1d1e26;
}
body.dark-only .si-book-m-amount {
    color: rgba(255, 255, 255, 0.92);
}
body.dark-only .si-book-m-detail {
    background: #1a1c24;
    border-color: #374558;
}
body.dark-only .si-book-empty-title {
    color: rgba(255, 255, 255, 0.92);
}
body.dark-only .si-book-empty {
    background: #1a1c24;
    border-color: #374558;
}
body.dark-only .si-book-modal .modal-content {
    background: #1d1e26;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
body.dark-only .si-book-modal .modal-header,
body.dark-only .si-book-modal .modal-footer {
    border-color: #374558;
}
body.dark-only .si-book-table-wrap .card-body {
    border-top-color: #374558;
}
body.dark-only .si-book-table-wrap .table thead th {
    background: #1a1c24 !important;
    color: rgba(255, 255, 255, 0.45);
    border-bottom-color: #374558;
}

.si-book-header-actions {
    flex-shrink: 0;
}
@media (max-width: 575px) {
    .si-book-header-actions {
        width: 100%;
        justify-content: flex-start !important;
    }
    .si-book-header-actions .btn {
        flex: 1;
        min-width: 0;
    }
}

.si-book-table-wrap .si-book-pager {
    background: #fafbfc;
    border-top: 1px solid #eef2f7 !important;
    padding-top: 14px;
    padding-bottom: 14px;
}
body.dark-only .si-book-table-wrap .si-book-pager {
    background: #1a1c24;
    border-top-color: #374558 !important;
}

/* ── Complaints index (modern tiles) ───────────────────────── */
.si-complaint-page {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.si-complaint-hero {
    position: relative;
    border-radius: 20px;
    padding: 22px 24px 20px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    background:
        radial-gradient(700px 200px at 0% 0%, rgba(239, 68, 68, 0.14), transparent 55%),
        radial-gradient(600px 180px at 100% 20%, rgba(var(--si-primary-rgb), 0.18), transparent 50%),
        linear-gradient(155deg, #f8fafc 0%, #f1f5f9 55%, #ecfdf5 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
}
.si-complaint-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 48%, transparent 56%);
    opacity: 0.35;
    pointer-events: none;
}
.si-complaint-hero-inner {
    position: relative;
    z-index: 1;
}
.si-complaint-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}
.si-complaint-hero-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.15;
}
.si-complaint-hero-lead {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    max-width: 36rem;
    line-height: 1.5;
}
.si-complaint-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.si-complaint-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #475569;
    backdrop-filter: blur(8px);
}
.si-complaint-hero-chip strong {
    color: #0f172a;
    font-weight: 800;
}

.si-complaint-filter-wrap {
    margin-bottom: 1.5rem;
}
.si-complaint-filter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 28px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(10px);
}
.si-complaint-filter-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-right: 4px;
}
.si-complaint-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.si-complaint-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #64748b;
    border: 1px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.si-complaint-pill:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
}
.si-complaint-pill.is-active {
    color: #fff !important;
    background: linear-gradient(135deg, #475569, #334155);
    box-shadow: 0 4px 14px rgba(51, 65, 85, 0.25);
}
.si-complaint-pill.is-active i[data-feather],
.si-complaint-pill.is-active svg {
    stroke: #fff;
}
.si-complaint-pill.is-active.si-complaint-pill--open {
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.28);
}
.si-complaint-pill.is-active.si-complaint-pill--resolved {
    background: linear-gradient(135deg, #10b981, var(--si-primary));
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.28);
}
.si-complaint-pill i[data-feather] {
    width: 14px;
    height: 14px;
}

.si-complaint-tile {
    position: relative;
    border-radius: 18px;
    border: 1px solid #e8ecf1;
    background: #fff;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.si-complaint-tile:hover {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
    border-color: rgba(var(--si-primary-rgb), 0.22);
}
.si-complaint-tile::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(180deg, #94a3b8, #cbd5e1);
}
.si-complaint-tile--open::before {
    background: linear-gradient(180deg, #ef4444, #fb923c);
}
.si-complaint-tile--resolved::before {
    background: linear-gradient(180deg, #10b981, #34b87a);
}
.si-complaint-tile__body {
    padding: 20px 22px 20px 24px;
}
.si-complaint-tile__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.si-complaint-tile__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.si-complaint-tile__booking {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.si-complaint-tile__booking:hover {
    border-color: rgba(var(--si-primary-rgb), 0.45);
    color: var(--si-primary);
    background: rgba(var(--si-primary-rgb), 0.08);
}
.si-complaint-tile__booking code {
    font-size: 12px;
    font-weight: 800;
    color: inherit;
    background: none;
}
.si-complaint-tile__time {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}
.si-complaint-tile__message {
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 500;
    color: #0f172a;
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 3px solid rgba(var(--si-primary-rgb), 0.35);
    word-break: break-word;
}
.si-complaint-tile__reporter {
    display: flex;
    align-items: center;
    gap: 12px;
}
.si-complaint-tile__reporter-info {
    min-width: 0;
}
.si-complaint-tile__reporter-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}
.si-complaint-tile__reporter-phone {
    font-size: 12.5px;
    color: #64748b;
    margin: 2px 0 0;
}
.si-complaint-tile__service {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.si-complaint-tile__service i[data-feather] {
    width: 13px;
    height: 13px;
    color: var(--si-primary);
}
.si-complaint-tile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.si-complaint-tile__actions .btn {
    border-radius: 10px;
    font-weight: 600;
}
.si-complaint-note-box {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(var(--si-primary-rgb), 0.08));
    border: 1px solid rgba(14, 165, 233, 0.2);
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}
.si-complaint-note-box strong {
    color: #0c4a6e;
    font-weight: 700;
}

.si-complaint-resolve {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}
.si-complaint-resolve-panel {
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
}
.si-complaint-resolve-panel .form-control {
    border-radius: 10px;
    border-color: #e2e8f0;
}
.si-complaint-resolve-toggle {
    border-radius: 10px;
    font-weight: 600;
}

.si-complaint-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, #f8fafc, #fff);
}
.si-complaint-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(var(--si-primary-rgb), 0.12));
    color: var(--si-primary);
}
.si-complaint-empty-icon i[data-feather] {
    width: 28px;
    height: 28px;
}
.si-complaint-empty h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}
.si-complaint-empty p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.si-complaint-pager {
    margin-top: 1.25rem;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fafbfc;
    border: 1px solid #eef2f7;
}

/* Dark — complaints index */
body.dark-only .si-complaint-hero {
    background:
        radial-gradient(700px 200px at 0% 0%, rgba(239, 68, 68, 0.18), transparent 55%),
        radial-gradient(600px 180px at 100% 20%, rgba(var(--si-primary-rgb), 0.15), transparent 50%),
        linear-gradient(155deg, #1a1d26 0%, #151820 100%);
    border-color: #374558;
    box-shadow: none;
}
body.dark-only .si-complaint-hero-title {
    color: rgba(255, 255, 255, 0.94);
}
body.dark-only .si-complaint-hero-lead,
body.dark-only .si-complaint-hero-eyebrow {
    color: rgba(255, 255, 255, 0.5);
}
body.dark-only .si-complaint-hero-chip {
    background: rgba(30, 33, 48, 0.85);
    border-color: #374558;
    color: rgba(255, 255, 255, 0.65);
}
body.dark-only .si-complaint-hero-chip strong {
    color: rgba(255, 255, 255, 0.92);
}

body.dark-only .si-complaint-filter-inner {
    background: rgba(29, 30, 38, 0.92);
    border-color: #374558;
    box-shadow: none;
}
body.dark-only .si-complaint-filter-label {
    color: rgba(255, 255, 255, 0.4);
}
body.dark-only .si-complaint-pill {
    color: rgba(255, 255, 255, 0.55);
}
body.dark-only .si-complaint-pill:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

body.dark-only .si-complaint-tile {
    background: #1d1e26;
    border-color: #374558;
    box-shadow: none;
}
body.dark-only .si-complaint-tile:hover {
    border-color: rgba(var(--si-primary-rgb), 0.35);
}
body.dark-only .si-complaint-tile__message {
    color: rgba(255, 255, 255, 0.92);
}
body.dark-only .si-complaint-tile__reporter-name {
    color: rgba(255, 255, 255, 0.9);
}
body.dark-only .si-complaint-tile__reporter-phone,
body.dark-only .si-complaint-tile__service {
    color: rgba(255, 255, 255, 0.5);
}
body.dark-only .si-complaint-tile__booking {
    background: #1a1c24;
    border-color: #374558;
    color: rgba(255, 255, 255, 0.65);
}
body.dark-only .si-complaint-tile__time {
    color: rgba(255, 255, 255, 0.4);
}
body.dark-only .si-complaint-note-box {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.25);
    color: rgba(255, 255, 255, 0.75);
}
body.dark-only .si-complaint-note-box strong {
    color: #7dd3fc;
}
body.dark-only .si-complaint-resolve {
    border-top-color: #374558;
}
body.dark-only .si-complaint-resolve-panel {
    background: linear-gradient(180deg, #1a1c24, #151820);
    border-color: #374558;
}
body.dark-only .si-complaint-resolve-panel .form-control {
    background: #1d1e26;
    border-color: #374558;
    color: rgba(255, 255, 255, 0.9);
}
body.dark-only .si-complaint-empty {
    background: linear-gradient(180deg, #1a1c24, #1d1e26);
    border-color: #374558;
}
body.dark-only .si-complaint-empty h3 {
    color: rgba(255, 255, 255, 0.92);
}
body.dark-only .si-complaint-empty p {
    color: rgba(255, 255, 255, 0.5);
}
body.dark-only .si-complaint-pager {
    background: #1a1c24;
    border-color: #374558;
}

@media (max-width: 575px) {
    .si-complaint-tile__top {
        flex-direction: column;
    }
    .si-complaint-tile__actions {
        width: 100%;
    }
    .si-complaint-tile__actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ── Pricing page ────────────────────────────────────────────── */
.fs-12 { font-size: 12px; }


/* ── Breadcrumb icon size ────────────────────────────────────── */
.breadcrumb-item a svg { width: 16px; height: 16px; vertical-align: sub; }

/* ── Stat icon (legacy, keep for compat) ─────────────────────── */
.si-stat-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Dark mode overrides ─────────────────────────────────────── */

/* Table headers & body */
body.dark-only .table thead th {
    background: #1d1e26 !important;
    color: rgba(255,255,255,.45) !important;
    border-bottom-color: #374558 !important;
}
body.dark-only .table tbody td {
    color: rgba(255,255,255,.75) !important;
    border-bottom-color: #374558 !important;
}
body.dark-only .table tbody tr:hover td {
    background: rgba(255,255,255,.04) !important;
}
body.dark-only .table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Force sun icon visible in dark mode — beats Cuba's SVG stroke overrides */
body.dark-only #si-theme-toggle svg,
body.dark-only #si-theme-toggle i[data-feather] {
    stroke: #fbbf24 !important;
    color: #fbbf24 !important;
}

/* ── Settings table ──────────────────────────────────────────── */
.si-setting-key {
    background: rgba(var(--si-primary-rgb), .10);
    color: var(--si-primary-dark);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 600;
}
.si-setting-value {
    max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.dark-only .si-setting-key {
    background: rgba(var(--si-primary-rgb), .18);
    color: #7ee8b8;
}

/* ── Clickable status badge ──────────────────────────────────── */
.si-status-btn { cursor: pointer; }
.si-status-btn:hover .badge { filter: brightness(.92); }

/* ── SweetAlert2 overrides ───────────────────────────────────── */
.si-swal-popup { border-radius: 12px !important; font-family: 'Rubik', sans-serif !important; }
.swal2-confirm { border-radius: 6px !important; font-weight: 500 !important; }
.swal2-cancel  { border-radius: 6px !important; font-weight: 500 !important; }


/* ═══════════════════════════════════════════════════════════════
   Mobile / Responsive
   ═══════════════════════════════════════════════════════════════ */

/* ── Mobile hamburger button in header ───────────────────────── */
.si-hamburger {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #6b7280;
    transition: background .15s, border-color .15s, color .15s;
    flex-shrink: 0;
}
.si-hamburger:hover {
    background: rgba(var(--si-primary-rgb), .10);
    border-color: rgba(var(--si-primary-rgb), .35);
    color: var(--si-primary);
}
.si-hamburger i[data-feather],
.si-hamburger svg { width: 18px; height: 18px; pointer-events: none; }
.dark-only .si-hamburger {
    background: #1e2130;
    border-color: #374151;
    color: rgba(255, 255, 255, .7);
}
.dark-only .si-hamburger:hover {
    background: #262d40;
    border-color: rgba(var(--si-primary-rgb), .4);
    color: var(--si-primary);
}

/* ── Page title row — breadcrumb already hidden via d-none d-sm-block,
      but ensure h3 doesn't overflow narrow screens ─────────────── */
.page-title h3 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
}

/* ── Stepper — scrollable on small screens ───────────────────── */
@media (max-width: 767px) {
    .si-stepper-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        flex-wrap: nowrap;
    }
    .si-stepper-scroll .si-stepper-item { min-width: 58px; }
    .si-stepper-scroll .si-stepper-dot  { width: 28px; height: 28px; font-size: 10px; }
    .si-stepper-scroll .si-stepper-label { font-size: 9px; letter-spacing: 0.1px; }
    .si-stepper-scroll .si-stepper-line  { min-width: 16px; }
}

/* ── Booking detail — right column border only on md+ ────────── */
@media (min-width: 768px) {
    .si-detail-right-col { border-left: 1px solid #f0f0f0; }
}
@media (max-width: 767px) {
    .si-detail-right-col { border-top: 1px solid #f0f0f0; padding-top: 4px; }
}

/* ── Info rows — stack on very small screens ─────────────────── */
@media (max-width: 400px) {
    .si-info-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .si-info-label { min-width: 0; }
}

/* ── Filter card — tighter padding on xs ─────────────────────── */
@media (max-width: 575px) {
    .si-filter-card .card-body { padding: 12px 14px; }
    .si-filter-card .d-flex.gap-3 { gap: 10px !important; }
}

/* ── KPI secondary cards — compact on xs ────────────────────── */
@media (max-width: 400px) {
    .si-kpi-card .card-body.p-4 { padding: 14px !important; }
    .si-kpi-number { font-size: 1.5rem; }
    .si-kpi-icon { width: 38px; height: 38px; }
    .si-kpi-icon i[data-feather] { width: 18px; height: 18px; }
}

/* ── Table — allow tighter padding on xs ─────────────────────── */
@media (max-width: 575px) {
    .table thead th,
    .table tbody td { padding: 9px 10px; }
}

/* ── Pagination — brand colours + card-footer layout ─────────── */
.card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 12px 18px;
}
.card-footer nav {
    width: 100%;
}

/* Use theme colour for all pagination on this panel */
.pagination .page-link {
    color: var(--si-primary);
    border-color: #dee2e6;
    font-size: 13px;
    padding: 5px 11px;
    border-radius: 6px !important;
    margin: 0 2px;
    transition: background .15s, color .15s, border-color .15s;
}
.pagination .page-link:hover,
.pagination .page-link:focus {
    background: rgba(var(--si-primary-rgb), .10);
    border-color: rgba(var(--si-primary-rgb), .40);
    color: var(--si-primary);
    box-shadow: none;
}
.pagination .page-item.active .page-link {
    background: var(--si-primary) !important;
    border-color: var(--si-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(var(--si-primary-rgb), .35);
}
.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    border-color: #e9ecef;
    background: transparent;
}

/* Wrap on xs screens */
@media (max-width: 575px) {
    .card-footer { padding: 10px 14px; }
    .pagination .page-link { font-size: 12px; padding: 4px 9px; }
}

/* Dark mode */
body.dark-only .card-footer {
    background: #1d1e26;
    border-top-color: #374558;
}
body.dark-only .pagination .page-link {
    background: #262932;
    border-color: #374558;
    color: var(--si-primary);
}
body.dark-only .pagination .page-link:hover {
    background: rgba(var(--si-primary-rgb), .15);
    border-color: rgba(var(--si-primary-rgb), .4);
}
body.dark-only .pagination .page-item.active .page-link {
    background: var(--si-primary) !important;
    border-color: var(--si-primary) !important;
    color: #fff !important;
}
body.dark-only .pagination .page-item.disabled .page-link {
    background: #1d1e26;
    border-color: #374558;
    color: #4b5563;
}
body.dark-only .card-footer .small.text-muted {
    color: rgba(255,255,255,.45) !important;
}

/* ── Pricing page — full-width service cards below lg ────────── */
@media (max-width: 991px) {
    .pricing-service-card { width: 100%; }
}

/* ── Worker / customer profile card — centred stats on xs ────── */
@media (max-width: 400px) {
    .si-profile-stats h4 { font-size: 1.2rem; }
}

/* ── Dark mode — stepper lines ───────────────────────────────── */
body.dark-only .si-detail-right-col { border-color: #374558 !important; }
body.dark-only .si-stepper-line { background: #374558; }
body.dark-only .si-stepper-line.done { background: var(--si-primary); }

/* ── Mobile list cards (bookings / customers / workers) ──────── */
.si-list-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px;
    transition: box-shadow .15s;
}
.si-list-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.si-list-card-footer {
    border-top: 1px solid #f0f0f0;
}
.min-width-0 { min-width: 0; }

body.dark-only .si-list-card {
    background: #1d1e26;
    border-color: #374558;
}
body.dark-only .si-list-card-footer { border-color: #374558; }
