/*
 * v5-cs-ops.css — Cars Services operational UI layer
 *
 * Shared classes used across the CS operational desk and queue templates
 * (advisor desk, reception desk, service manager desk, delivery desk,
 * exceptions, QC review, parts staging, technician workbench, schedule).
 * Centralised here so per-template <style> blocks stay lean.
 *
 * Scope: Cars Services only (cs- prefix). Does not touch RAC, garage,
 * or any non-CS surface. No finance, no model, no migration dependency.
 */

/* ---------------------------------------------------------------------------
 * Table scroll wrapper — shared across CS desk/queue table views
 * Each page keeps its own min-width rule for the inner .flow5-audit-table.
 * --------------------------------------------------------------------------- */
.cs-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------------------------------------
 * KPI tile strip + tiles — shared across CS desks (Today / This week /
 * WIP-by-tech / reception snapshot / schedule tech-load strips).
 * Works for both <div> plain tiles and <a> linked tiles; hover is
 * harmless on block elements.
 * --------------------------------------------------------------------------- */
.cs-kpi-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.cs-kpi-tile {
    display: flex;
    flex-direction: column;
    min-width: 110px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
}

.cs-kpi-tile:hover {
    border-color: rgba(255,255,255,0.28);
}

.cs-kpi-tile__n { font-size: 20px; font-weight: 700; }
.cs-kpi-tile__l { font-size: 11px; color: var(--muted); }

/* ---------------------------------------------------------------------------
 * Age / stall-age badges — shared across advisor desk and exceptions dashboard.
 * data-testid values (cs-adv-age, cs-exc-stall-age, cs-adv-overdue-badge) are
 * separate from these CSS class names and are preserved in the templates.
 * --------------------------------------------------------------------------- */
.cs-age { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cs-age--warn  { color: #d4a017; font-weight: 600; }
.cs-age--alert { color: #e67e22; font-weight: 700; }
.cs-age--overdue {
    font-size: 11px;
    font-weight: 700;
    color: #e74c3c;
    white-space: nowrap;
    margin-left: 4px;
}

/* ---------------------------------------------------------------------------
 * Recent-items list — shared across all CS desk/queue views
 * --------------------------------------------------------------------------- */
.cs-recent {
    list-style: none;
    margin: 6px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cs-recent__item {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 13px;
}

.cs-recent__link {
    margin-left: auto;
    font-size: 12px;
}

/* ---------------------------------------------------------------------------
 * Status chip — compact status label used in desk row items
 * --------------------------------------------------------------------------- */
.cs-desk-status {
    font-size: 12px;
    color: var(--muted);
}
