/* -----------------------------------------------------------------------
 * app.css — Minimal custom overrides for Bootstrap 5.3 UI overhaul.
 * Bootstrap handles all spacing, colors, and typography via utility classes.
 * Only rules that Bootstrap cannot express as utilities belong here.
 * ----------------------------------------------------------------------- */

:root {
    --sidebar-width: 260px;
    --bottom-nav-height: 68px;
    --color-photo-uploaded: #20c997;
}

/* -----------------------------------------------------------------------
 * Typography — font families per locale direction
 * ----------------------------------------------------------------------- */

[dir="rtl"] body {
    font-family: 'Cairo', system-ui, sans-serif;
}

[dir="ltr"] body {
    font-family: 'Inter', system-ui, sans-serif;
}

/* -----------------------------------------------------------------------
 * Admin layout — main content offset to clear the fixed sidebar.
 * margin-inline-start is logical: maps to left in LTR, right in RTL.
 * ----------------------------------------------------------------------- */

@media (min-width: 992px) {
    .ms-lg-260px {
        margin-inline-start: 260px !important;
    }
}

/* -----------------------------------------------------------------------
 * Admin sidebar — fixed desktop position
 * ----------------------------------------------------------------------- */

.sidebar-fixed {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    z-index: 1040;
    background-color: #fff;
    border-inline-end: 1px solid var(--bs-border-color);
}

/* -----------------------------------------------------------------------
 * Worker / Customer — bottom nav safe-area padding (iOS home indicator)
 * ----------------------------------------------------------------------- */

#bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
}

body.has-bottom-nav {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

/* -----------------------------------------------------------------------
 * Custom teal color (photo_uploaded status — not in Bootstrap default palette)
 * ----------------------------------------------------------------------- */

.bg-teal {
    background-color: var(--color-photo-uploaded) !important;
}

.text-teal {
    color: var(--color-photo-uploaded) !important;
}

.border-teal {
    border-color: var(--color-photo-uploaded) !important;
}

/* -----------------------------------------------------------------------
 * Worker camera button — minimum 80px touch target (FR-009)
 * ----------------------------------------------------------------------- */

.camera-btn {
    min-height: 80px;
    font-size: 1.2rem;
    border-radius: 16px;
}

/* -----------------------------------------------------------------------
 * Wash photo thumbnail — consistent aspect ratio in cards
 * ----------------------------------------------------------------------- */

.wash-photo-thumb {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

/* -----------------------------------------------------------------------
 * Flash messages — fixed top-center positioning (FR-011)
 * ----------------------------------------------------------------------- */

.flash-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1055;
    min-width: 300px;
    max-width: 500px;
    width: max-content;
}

/* -----------------------------------------------------------------------
 * Toast container — for programmatic toasts from upload.js / app.js
 * ----------------------------------------------------------------------- */

#toast-container {
    position: fixed;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 1090;
}

/* -----------------------------------------------------------------------
 * Complaint / support step indicator — horizontal stepper
 * ----------------------------------------------------------------------- */

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding-block: 0.5rem;
}

.step-indicator__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
    position: relative;
    text-align: center;
}

.step-indicator__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    inset-inline-start: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--bs-border-color);
    z-index: 0;
}

.step-indicator__item.completed::after,
.step-indicator__item.active::after {
    background-color: var(--bs-primary);
}

.step-indicator__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bs-border-color);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    position: relative;
    z-index: 1;
}

.step-indicator__item.completed .step-indicator__dot {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.step-indicator__item.active .step-indicator__dot {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    font-weight: 700;
}

.step-indicator__label {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

.step-indicator__item.completed .step-indicator__label,
.step-indicator__item.active .step-indicator__label {
    color: var(--bs-primary);
    font-weight: 600;
}

/* -----------------------------------------------------------------------
 * Notification badge — absolute position on bell icon
 * ----------------------------------------------------------------------- */

.notif-bell-wrapper {
    position: relative;
    display: inline-block;
}

/* -----------------------------------------------------------------------
 * Empty state — centered placeholder for zero-record pages
 * ----------------------------------------------------------------------- */

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.4;
}

/* -----------------------------------------------------------------------
 * Batch action bar — admin wash-job bulk assign
 * ----------------------------------------------------------------------- */

#batch-action-bar {
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* -----------------------------------------------------------------------
 * RTL-aware FAB button (customer cars page)
 * ----------------------------------------------------------------------- */

.fab-btn {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 1rem);
    inset-inline-end: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1030;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════
   AUTH PAGES — login, register, register-pending
   ═══════════════════════════════════════════════════════ */

.auth-brand__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 0.875rem;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    overflow: hidden;
}

.auth-card__body {
    padding: 1.5rem;
}

.auth-card__footer {
    padding: 0.875rem 1.5rem;
    border-top: 1px solid #eeeeee;
    text-align: center;
    background: transparent;
}

.auth-submit {
    min-height: 46px;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.auth-notice {
    background: #e7f0ff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: #2c4a7a;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.auth-notice i {
    color: #0d6efd;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.auth-pending-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fff4e0;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.auth-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    text-align: start;
}

.auth-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1rem;
}

/* -----------------------------------------------------------------------
 * Print — preserve print.css separation
 * ----------------------------------------------------------------------- */

@media print {
    .sidebar-fixed,
    #bottom-nav,
    .flash-container,
    #toast-container,
    #batch-action-bar {
        display: none !important;
    }
}

/* -----------------------------------------------------------------------
 * Worker dashboard — hero banner
 * ----------------------------------------------------------------------- */

.worker-hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.30);
}

.worker-hero__inner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.worker-hero__icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.worker-hero__date {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.worker-hero__sub {
    font-size: 0.78rem;
    opacity: 0.80;
    margin-top: 2px;
}

/* -----------------------------------------------------------------------
 * Worker dashboard — KPI cards
 * ----------------------------------------------------------------------- */

.worker-kpi {
    border-radius: 14px;
    padding: 0.9rem 0.5rem 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.worker-kpi--blue   { background: #e7f0ff; }
.worker-kpi--green  { background: #e6f9f0; }
.worker-kpi--orange { background: #fff4e0; }

.worker-kpi__value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.worker-kpi--blue   .worker-kpi__value { color: #0d6efd; }
.worker-kpi--green  .worker-kpi__value { color: #198754; }
.worker-kpi--orange .worker-kpi__value { color: #e07000; }

.worker-kpi__icon {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    opacity: 0.55;
}

.worker-kpi--blue   .worker-kpi__icon { color: #0d6efd; }
.worker-kpi--green  .worker-kpi__icon { color: #198754; }
.worker-kpi--orange .worker-kpi__icon { color: #e07000; }

.worker-kpi__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
    line-height: 1.2;
}

/* -----------------------------------------------------------------------
 * Worker dashboard — progress card & section blocks
 * ----------------------------------------------------------------------- */

.worker-progress-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.worker-progress-card__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}

.worker-progress-card__pct {
    font-size: 1rem;
    font-weight: 800;
}

.worker-section {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.worker-section__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #333;
    padding: 0.7rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.worker-section__body {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.worker-zone-row__name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
}

.worker-zone-row__count {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
}

/* -----------------------------------------------------------------------
 * Worker layout — improved bottom nav
 * ----------------------------------------------------------------------- */

#bottom-nav .nav-label {
    font-size: 0.65rem;
    margin-top: 2px;
    font-weight: 600;
}

/* -----------------------------------------------------------------------
 * Worker — wash detail card (show.php, photo/upload.php, report-problem.php)
 * ----------------------------------------------------------------------- */

.wash-detail-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    border-inline-start: 4px solid #dee2e6;
}

.wash-detail-card.border-warning  { border-inline-start-color: #ffc107; }
.wash-detail-card.border-primary  { border-inline-start-color: #0d6efd; }
.wash-detail-card.border-success  { border-inline-start-color: #198754; }
.wash-detail-card.border-danger   { border-inline-start-color: #dc3545; }
.wash-detail-card.border-secondary{ border-inline-start-color: #6c757d; }

.wash-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wash-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.wash-info-row:last-child { border-bottom: none; }

.wash-info-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
    min-width: 90px;
}

.wash-info-value {
    font-size: 0.82rem;
    color: #111;
    text-align: end;
}

/* -----------------------------------------------------------------------
 * Worker — today page
 * ----------------------------------------------------------------------- */

.worker-today-summary {
    background: #fff;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.worker-today-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.worker-today-kpi__num {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: #333;
}

.worker-today-kpi--green .worker-today-kpi__num { color: #198754; }
.worker-today-kpi--orange .worker-today-kpi__num { color: #e07000; }

.worker-today-kpi__label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #888;
    margin-top: 2px;
}

.worker-today-pct {
    font-size: 1.25rem;
    font-weight: 800;
}

.worker-zone-sticky {
    position: sticky;
    background: #f1f3f5;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.5rem;
    z-index: 20;
}

.worker-building-label {
    font-size: 0.78rem;
    color: #666;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
}

.worker-job-card {
    background: #fff;
    border-radius: 12px;
    border-inline-start: 4px solid #dee2e6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}

.worker-job-card.border-warning  { border-inline-start-color: #ffc107; }
.worker-job-card.border-primary  { border-inline-start-color: #0d6efd; }
.worker-job-card.border-success  { border-inline-start-color: #198754; }
.worker-job-card.border-secondary{ border-inline-start-color: #6c757d; }

.worker-job-card--done { opacity: 0.75; }

.worker-job-card__header {
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
}

.worker-job-card__footer {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

/* -----------------------------------------------------------------------
 * Worker — history page
 * ----------------------------------------------------------------------- */

.worker-filter-tab {
    border-bottom: 3px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}

.worker-filter-tab--active {
    color: #0d6efd !important;
    border-bottom-color: #0d6efd;
}

.worker-history-card {
    background: #fff;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ═══════════════════════════════════════════════════════
   CUSTOMER PORTAL — Layout
   ═══════════════════════════════════════════════════════ */

.cust-body {
    background: #f8f9fa;
    min-height: 100vh;
}

/* ── Sidebar (desktop lg+) ───────────────────────────── */

.cust-sidebar {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 240px;
    height: 100vh;
    background: #fff;
    border-inline-end: 1px solid #dee2e6;
    z-index: 1040;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cust-sidebar__logo {
    display: flex;
    align-items: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cust-sidebar__nav {
    padding: 0.625rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.cust-sidebar__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    text-decoration: none;
    color: #6c757d;
    font-size: .875rem;
    font-weight: 500;
    transition: background .12s, color .12s;
    min-height: 44px;
}

.cust-sidebar__item:hover {
    background: #f1f3f5;
    color: #333;
}

.cust-sidebar__item--active {
    background: #e7f0ff;
    color: #0d6efd;
    font-weight: 600;
}

.cust-sidebar__item i {
    font-size: 1rem;
    width: 1.125rem;
    text-align: center;
    flex-shrink: 0;
}

.cust-sidebar__footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.cust-sidebar__user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.cust-sidebar__user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e7f0ff;
    color: #0d6efd;
    font-size: .875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cust-sidebar__user-avatar--sm {
    width: 30px;
    height: 30px;
    font-size: .78rem;
}

.cust-sidebar__user-info {
    min-width: 0;
}

.cust-sidebar__user-name {
    font-size: .82rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cust-sidebar__logout {
    font-size: .72rem;
    color: #6c757d;
    text-decoration: none;
}

.cust-sidebar__logout:hover {
    color: #dc3545;
}

/* ── Topbar ──────────────────────────────────────────── */

.cust-topbar {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 52px;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    z-index: 1035;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 0.875rem;
}

@media (min-width: 992px) {
    .cust-topbar {
        inset-inline-start: 240px;
    }
}

.cust-topbar__menu-btn {
    color: #555;
    line-height: 1;
}

/* ── Main content ────────────────────────────────────── */

.cust-main {
    padding-top: calc(52px + 1rem);
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px) + 1rem);
    padding-inline: 1rem;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .cust-main {
        margin-inline-start: 240px;
        padding-top: calc(52px + 1.5rem);
        padding-bottom: 2rem;
        padding-inline: 2rem;
    }
    .cust-main > * {
        max-width: 760px;
    }
}

/* ── Bottom nav (mobile) ─────────────────────────────── */

.cust-bottom-nav {
    position: fixed;
    bottom: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: #fff;
    border-top: 1px solid #dee2e6;
    display: flex;
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cust-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    gap: 2px;
    padding-block: 0.5rem;
    min-height: 52px;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: color .12s;
}

.cust-bottom-nav__item i {
    font-size: 1.2rem;
    line-height: 1;
}

.cust-bottom-nav__item--active {
    color: #0d6efd;
}

/* ═══════════════════════════════════════════════════════
   CUSTOMER PORTAL — Dashboard Components
   ═══════════════════════════════════════════════════════ */

/* ── Greeting ────────────────────────────────────────── */

.cust-greeting-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
}

.cust-greeting-date {
    font-size: .78rem;
    color: #6c757d;
    margin-top: 2px;
    font-weight: 500;
}

/* ── Subscription panel ──────────────────────────────── */

.cust-sub {
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.cust-sub--warn {
    background: #fffbf0;
    border: 1px solid #ffd591;
}

.cust-sub--expired {
    background: #fff5f5;
    border: 1px solid #ffc9c9;
}

.cust-sub__plan {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

.cust-sub__expiry {
    font-size: .78rem;
    color: #6c757d;
    font-weight: 500;
}

.cust-sub__progress-bar {
    height: 7px;
    border-radius: 9999px;
    background: #e9ecef;
    overflow: hidden;
    margin-top: 0.875rem;
}

.cust-sub__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #4d9bff);
    border-radius: 9999px;
}

.cust-sub__wash-label {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: #6c757d;
    font-weight: 600;
    margin-top: 0.375rem;
}

/* ── Status badges (inline, pill style) ──────────────── */

.cust-badge {
    border-radius: 9999px;
    font-size: .68rem;
    font-weight: 700;
    padding: .3em .75em;
    white-space: nowrap;
    flex-shrink: 0;
}

.cust-badge--green  { background: #e6f9f0; color: #198754; }
.cust-badge--amber  { background: #fff4e0; color: #c87000; }
.cust-badge--red    { background: #fff1f1; color: #dc3545; }

/* ── Expiry & complaint alert banners ────────────────── */

.cust-expiry-warn,
.cust-alert-link {
    background: #fffbf0;
    border: 1px solid #ffd591;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    align-items: center;
    gap: 0.625rem;
    font-size: .82rem;
    color: #7a5400;
    font-weight: 600;
    cursor: pointer;
}

/* ── KPI tiles ───────────────────────────────────────── */

.cust-kpi {
    border-radius: 14px;
    padding: 0.875rem 0.375rem 0.75rem;
    text-align: center;
}

.cust-kpi--blue   { background: #e7f0ff; }
.cust-kpi--green  { background: #e6f9f0; }
.cust-kpi--amber  { background: #fff4e0; }
.cust-kpi--red    { background: #fff1f1; }

.cust-kpi__icon {
    font-size: .95rem;
    opacity: .55;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.cust-kpi--blue   .cust-kpi__icon { color: #0d6efd; }
.cust-kpi--green  .cust-kpi__icon { color: #198754; }
.cust-kpi--amber  .cust-kpi__icon { color: #c87000; }
.cust-kpi--red    .cust-kpi__icon { color: #dc3545; }

.cust-kpi__value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.cust-kpi--blue   .cust-kpi__value { color: #0d6efd; }
.cust-kpi--green  .cust-kpi__value { color: #198754; }
.cust-kpi--amber  .cust-kpi__value { color: #c87000; }
.cust-kpi--red    .cust-kpi__value { color: #dc3545; }

.cust-kpi__label {
    font-size: .65rem;
    font-weight: 600;
    color: #555;
    line-height: 1.2;
}

/* ── Section heading ─────────────────────────────────── */

.cust-section-hd {
    font-size: .82rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 0.625rem;
}

/* ── Plate number chip ───────────────────────────────── */

.cust-plate {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    font-family: ui-monospace, monospace;
    font-size: .78rem;
    font-weight: 700;
    border-radius: 6px;
    padding: .2rem .6rem;
    letter-spacing: .04em;
    white-space: nowrap;
}

.cust-plate--sm {
    font-size: .72rem;
    padding: .15rem .5rem;
    border-radius: 5px;
    margin-bottom: .25rem;
}

/* ── Last wash card ──────────────────────────────────── */

.cust-wash-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.cust-wash-card__body {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cust-wash-card__date {
    font-size: .75rem;
    color: #6c757d;
    font-weight: 500;
}

.cust-wash-card__worker {
    font-size: .75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.cust-wash-card__footer {
    padding: 0.625rem 0.75rem;
    border-top: 1px solid #eee;
}

/* ── Car chips (horizontal scroll) ──────────────────── */

.cust-car-chip {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem 0.875rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    min-width: 140px;
    color: inherit;
    gap: 0;
    transition: box-shadow .12s, transform .12s;
}

.cust-car-chip:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,.10);
    transform: translateY(-1px);
}

.cust-car-chip__name {
    font-size: .78rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
}

.cust-car-chip__loc {
    font-size: .68rem;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .2rem;
}

/* ── Quick action buttons ────────────────────────────── */

.cust-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 0.5rem;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    gap: 0.5rem;
    min-height: 88px;
    width: 100%;
    transition: transform .12s ease-out, box-shadow .12s ease-out;
    text-align: center;
}

.cust-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.10);
    color: #333;
}

.cust-quick-btn i {
    font-size: 1.4rem;
    line-height: 1;
}

.cust-quick-btn__label {
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}
