/* ==========================================================================
   TORQY — Cloud platform voor autobedrijven
   Zelfde huisstijl als de TORQ-website: zwart canvas, wit vet condensed
   schrift, amber/oranje accent en het geblokte-vlag (racing) motief.
   ========================================================================== */

:root {
    /* Kleuren */
    --black:        #0b0b0d;
    --black-2:      #ffffff08;
    --surface:      #141418;
    --surface-2:    #1b1b21;
    --surface-3:    #23232b;
    --line:         rgba(255, 255, 255, .09);
    --line-strong:  rgba(255, 255, 255, .16);
    --white:        #ffffff;
    --text:         #e7e7ea;
    --muted:        #9a9aa4;
    --muted-2:      #6c6c76;

    --amber:        #f6a21e;
    --amber-light:  #fbb03b;
    --amber-dark:   #e0870b;
    --amber-grad:   linear-gradient(135deg, #fbb03b 0%, #f6a21e 50%, #e0870b 100%);
    --amber-soft:   rgba(246, 162, 30, .12);

    --green:        #3ecf7a;
    --green-soft:   rgba(62, 207, 122, .12);
    --red:          #e5484d;
    --red-soft:     rgba(229, 72, 77, .12);
    --blue:         #5ab0f0;
    --indigo:       #8b8bf5;
    --purple:       #c07df0;
    --wa:           #25d366;

    /* Type */
    --font-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
    --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono:    ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

    /* Maatvoering */
    --sidebar:      264px;
    --radius:       14px;
    --radius-lg:    20px;
    --shadow:       0 18px 40px -18px rgba(0, 0, 0, .7);
    --shadow-amber: 0 18px 44px -18px rgba(246, 162, 30, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--black);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.55;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-3); padding: 2px 6px; border-radius: 6px; color: var(--amber-light); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: .3px; color: var(--white); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12.5px;
    color: var(--amber);
    margin-bottom: 8px;
}
.amber { color: var(--amber); }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.hidden { display: none !important; }

/* ---- Geblokte-vlag strip (racing accent) ---- */
.flag-strip {
    height: 10px;
    background-color: var(--amber);
    background-image:
        linear-gradient(45deg, #fff 25%, transparent 25%),
        linear-gradient(-45deg, #fff 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #fff 75%),
        linear-gradient(-45deg, transparent 75%, #fff 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

/* ---- Merk ---- */
.brand-mark { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 30px; letter-spacing: -.5px; color: var(--amber); line-height: 1; display: inline-flex; align-items: center; gap: 0; }
.brand-mark span { color: var(--white); }
.brand-mark::before { content: ""; width: 30px; height: 30px; margin-right: 10px; border-radius: 8px; background: url("logo-mark.svg") center/cover; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
    letter-spacing: .6px; font-size: 14.5px; line-height: 1;
    padding: 13px 22px; border-radius: 10px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
    white-space: nowrap; color: var(--white); background: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 9px; }
.btn-xs { padding: 6px 10px; font-size: 12px; border-radius: 8px; gap: 6px; }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--amber-grad); color: #1a1206; box-shadow: var(--shadow-amber); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

.btn-ghost { background: rgba(255,255,255,.06); color: var(--white); border-color: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.btn-danger { background: var(--red-soft); color: #f3a0a2; border-color: rgba(229,72,77,.35); }
.btn-danger:hover { background: var(--red); color: #fff; }

.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 9px; background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; }
.btn-icon:hover { color: var(--amber); border-color: var(--amber); }
.btn-icon.danger:hover { color: var(--red); border-color: var(--red); }

.link { color: var(--amber); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; transition: gap .2s; }
.link:hover { gap: 11px; }

/* ==========================================================================
   APP LAYOUT
   ========================================================================== */
.app-shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar { position: sticky; top: 0; height: 100vh; background: #060608; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; z-index: 200; }
.sidebar-logo { display: flex; align-items: center; height: 72px; padding: 0 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sidebar-logo .brand-mark { font-size: 27px; }
.sidebar nav { padding: 14px 12px; flex: 1; }
.nav-section-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 11.5px; color: var(--muted-2); padding: 16px 12px 8px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s; position: relative; }
.side-link i { width: 18px; text-align: center; font-size: 15px; }
.side-link:hover { background: rgba(255,255,255,.04); color: var(--white); }
.side-link.active { background: var(--amber-soft); color: var(--amber); }
.side-link.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber); }
.side-count { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--text); padding: 1px 8px; border-radius: 20px; }
.side-link.active .side-count { background: var(--amber); color: #1a1206; }
.side-link.is-soon { opacity: .55; cursor: default; }
.side-link.is-soon:hover { background: none; color: var(--muted); }
.soon-badge { margin-left: auto; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted-2); border: 1px solid var(--line-strong); padding: 1px 6px; border-radius: 20px; }

.sidebar-company { margin: 12px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.sidebar-company .avatar { flex-shrink: 0; }
.sidebar-company strong { display: block; color: var(--white); font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.sidebar-company span { font-size: 12.5px; color: var(--muted); }
.sidebar .flag-strip { height: 6px; background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; flex-shrink: 0; }
.sidebar-overlay { display: none; }

/* ---- Main + topbar ---- */
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 100; height: 72px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: rgba(11,11,13,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-toggle { display: none; background: none; border: none; color: var(--white); font-size: 20px; cursor: pointer; padding: 6px; }
.topbar-search { position: relative; flex: 1; max-width: 460px; }
.topbar-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.topbar-search input { width: 100%; height: 42px; padding: 0 14px 0 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--white); font-family: var(--font-body); font-size: 14.5px; transition: border-color .2s; }
.topbar-search input::placeholder { color: var(--muted-2); }
.topbar-search input:focus { outline: none; border-color: var(--amber); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--amber-grad); color: #1a1206; font-family: var(--font-display); font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; }
.user-menu { position: relative; }
.user-dropdown { position: absolute; right: 0; top: 50px; width: 250px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.user-dropdown.open { display: block; }
.user-dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-dropdown-head strong { display: block; color: var(--white); }
.user-dropdown-head span { font-size: 13px; color: var(--muted); }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.user-dropdown a:hover { background: var(--surface-3); color: var(--amber); }
.user-dropdown a i { width: 16px; color: var(--muted); }

.app-content { padding: 30px 32px 50px; flex: 1; width: 100%; max-width: 1480px; }
.app-footer { padding: 18px 32px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-footer a:hover { color: var(--amber); }

/* ---- Paginakop ---- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; font-style: italic; }
.page-sub { color: var(--muted); margin-top: 8px; max-width: 680px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb i { font-size: 9px; color: var(--muted-2); }
.breadcrumb span { color: var(--text); }

/* ==========================================================================
   CARDS + GRIDS
   ========================================================================== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card + .card { margin-top: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h3 { font-size: 19px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.card-head h3 i { color: var(--amber); font-size: 16px; }
.card-head .card-sub { color: var(--muted); font-size: 13px; font-weight: 400; }
.card-body { padding: 22px; }
.card-body.flush { padding: 0; }
.card-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-main-aside { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.grid-aside-main { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 22px; align-items: start; }
.grid-2 > *, .grid-main-aside > *, .grid-aside-main > *, .stack > * { min-width: 0; }
.sticky-aside { position: sticky; top: 92px; }
.stack { display: grid; gap: 20px; }
.stack > .card + .card { margin-top: 0; }

.block-title { font-size: 20px; text-transform: uppercase; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); position: relative; }
.block-title::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 48px; height: 2px; background: var(--amber); }

/* ---- KPI ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; }
.kpi-ico { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); display: flex; align-items: center; justify-content: center; }
.kpi-label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12.5px; color: var(--muted); }
.kpi-value { font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--white); line-height: 1.1; margin-top: 6px; }
.kpi-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.kpi.highlight { background: var(--amber-grad); border-color: transparent; }
.kpi.highlight .kpi-label, .kpi.highlight .kpi-sub { color: #3a2a08; }
.kpi.highlight .kpi-value { color: #1a1206; }
.kpi.highlight .kpi-ico { background: rgba(0,0,0,.12); color: #1a1206; }

/* ---- Pipeline (statusflow) ---- */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.pipe-step { position: relative; padding: 18px 16px 18px 26px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); transition: background .15s; }
.pipe-step:last-child { border-right: none; }
.pipe-step:hover { background: rgba(255,255,255,.03); }
.pipe-step::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.pipe-step:last-child::after { display: none; }
.pipe-step i { color: var(--muted-2); font-size: 15px; }
.pipe-count { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--white); line-height: 1; }
.pipe-label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 13.5px; color: var(--muted); }
.pipe-step.has-items i { color: var(--amber); }
.pipe-step.has-items .pipe-label { color: var(--text); }

/* ==========================================================================
   BADGES, KENTEKEN, STATUS
   ========================================================================== */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 11.5px; padding: 4px 10px; border-radius: 40px; white-space: nowrap; background: var(--surface-3); color: var(--text); border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.status-inkoop        { color: var(--indigo); background: rgba(139,139,245,.12); }
.status-voorbereiding { color: var(--blue);   background: rgba(90,176,240,.12); }
.status-te_koop       { color: var(--amber);  background: var(--amber-soft); }
.status-gereserveerd  { color: var(--purple); background: rgba(192,125,240,.12); }
.status-verkocht      { color: var(--green);  background: var(--green-soft); }
.status-afgeleverd    { color: var(--muted);  background: rgba(255,255,255,.06); }
.badge-amber { color: #1a1206; background: var(--amber-grad); }
.badge-red { color: #f3a0a2; background: var(--red-soft); }
.badge-green { color: var(--green); background: var(--green-soft); }

/* Nederlands kenteken */
.plate { display: inline-flex; align-items: stretch; background: #f7c600; color: #111; font-family: var(--font-display); font-weight: 700; letter-spacing: 1.2px; border-radius: 5px; overflow: hidden; border: 1px solid rgba(0,0,0,.35); font-size: 14px; line-height: 1; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.plate::before { content: "NL"; background: #003399; color: #fff; font-size: 8px; letter-spacing: .5px; padding: 0 4px 3px; display: flex; align-items: flex-end; }
.plate span { padding: 5px 8px 4px; }
.plate.plate-lg { font-size: 22px; border-radius: 7px; }
.plate.plate-lg span { padding: 7px 12px 6px; }
.plate.plate-lg::before { font-size: 10px; padding: 0 6px 5px; }

.plate-input { display: flex; align-items: stretch; background: #f7c600; border-radius: 12px; overflow: hidden; border: 2px solid #111; box-shadow: 0 0 0 1px rgba(255,255,255,.1); max-width: 340px; }
.plate-input::before { content: "NL"; background: #003399; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; padding: 0 10px 8px; display: flex; align-items: flex-end; }
.plate-input input { flex: 1; min-width: 0; border: none; background: transparent; color: #111; font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: 3px; text-transform: uppercase; padding: 8px 14px; text-align: center; }
.plate-input input::placeholder { color: rgba(0,0,0,.28); }
.plate-input input:focus { outline: none; }
.plate-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ==========================================================================
   FORMULIEREN
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-grid .span-4 { grid-column: 1 / -1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; min-width: 0; }
.form-group label, .label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; display: flex; justify-content: space-between; gap: 8px; }
.form-group label .req { color: var(--amber); }
.form-group label small { color: var(--muted-2); font-weight: 400; }
.form-group input, .form-group select, .form-group textarea, .input {
    width: 100%; background: var(--black); border: 1px solid var(--line); color: var(--white);
    border-radius: 10px; padding: 11px 13px; font-family: var(--font-body); font-size: 14.5px; transition: border-color .2s, background .3s;
}
.form-group input[type="date"] { color-scheme: dark; }
.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
.form-group textarea.mono { font-family: var(--font-mono); font-size: 13.5px; min-height: 380px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .input:focus { outline: none; border-color: var(--amber); }
.form-group input.is-filled, .form-group select.is-filled { background: rgba(246,162,30,.07); border-color: rgba(246,162,30,.35); }
.form-group .hint { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.input-error { border-color: var(--red) !important; }
.form-note { color: var(--muted-2); font-size: 12.5px; margin-top: 12px; text-align: center; }
.form-section-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; color: var(--muted); margin: 8px 0 14px; display: flex; align-items: center; gap: 10px; }
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.input-affix { display: flex; align-items: stretch; background: var(--black); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.input-affix:focus-within { border-color: var(--amber); }
.input-affix span { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-size: 14px; background: var(--surface-2); }
.form-group .input-affix input { border: none; border-radius: 0; background: transparent; }
.input-affix.big input { font-family: var(--font-display); font-weight: 800; font-size: 26px; padding: 8px 12px; }

.check-inline { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; color: var(--text); user-select: none; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--amber); }

.segmented { display: inline-flex; background: var(--black); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.segmented label { margin: 0; cursor: pointer; position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: 0; top: 0; }
.segmented span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: all .15s; }
.segmented input:checked + span { background: var(--amber-grad); color: #1a1206; }

.form-alert { border-radius: 10px; padding: 13px 15px; margin-bottom: 16px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.form-alert i { margin-top: 3px; }
.form-alert.success { background: var(--green-soft); border: 1px solid rgba(62,207,122,.4); color: #8fe6b3; }
.form-alert.error { background: var(--red-soft); border: 1px solid rgba(229,72,77,.4); color: #f3a0a2; }
.form-alert.warning { background: var(--amber-soft); border: 1px solid rgba(246,162,30,.35); color: #fbc774; }
.form-alert.info { background: rgba(90,176,240,.1); border: 1px solid rgba(90,176,240,.3); color: #9fd0f6; }

/* ==========================================================================
   TABS + FILTERS
   ========================================================================== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--white); }
.tab.active { color: var(--amber); border-bottom-color: var(--amber); }
.tab .tab-count { font-family: var(--font-body); font-size: 11.5px; background: var(--surface-3); color: var(--text); padding: 1px 7px; border-radius: 20px; letter-spacing: 0; }
.tab.active .tab-count { background: var(--amber-soft); color: var(--amber); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filter-bar .search { position: relative; flex: 1; min-width: 220px; }
.filter-bar .search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.filter-bar input, .filter-bar select { height: 40px; background: var(--surface); border: 1px solid var(--line); color: var(--white); border-radius: 9px; padding: 0 12px; font-family: var(--font-body); font-size: 14px; }
.filter-bar .search input { width: 100%; padding-left: 38px; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--amber); }

/* ==========================================================================
   TABELLEN
   ========================================================================== */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; font-size: 12px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: rgba(255,255,255,.025); }
.data-table tr[data-href] { cursor: pointer; }
.data-table tfoot td { font-weight: 700; color: var(--white); border-bottom: none; background: var(--surface-2); }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table .actions { text-align: right; white-space: nowrap; }
.data-table.compact td, .data-table.compact th { padding: 9px 14px; }

.veh-cell { display: flex; align-items: center; gap: 13px; min-width: 240px; }
.veh-thumb { width: 72px; height: 50px; border-radius: 8px; overflow: hidden; background: var(--surface-3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.veh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.veh-title { font-weight: 600; color: var(--white); line-height: 1.3; }
.veh-sub { font-size: 12.5px; color: var(--muted); }

.days { font-weight: 600; font-variant-numeric: tabular-nums; }
.days.warn { color: var(--amber); }
.days.danger { color: var(--red); }
.margin-cell strong { display: block; }
.margin-cell small { color: var(--muted); }

.empty-state { text-align: center; padding: 56px 24px; }
.empty-state > i { font-size: 42px; color: var(--amber); margin-bottom: 16px; }
.empty-state h3 { font-size: 23px; text-transform: uppercase; }
.empty-state p { color: var(--muted); max-width: 440px; margin: 10px auto 22px; }

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.attention-list li { display: flex; align-items: center; gap: 13px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.attention-list li:last-child { border-bottom: none; }
.attention-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.attention-ico.high { background: var(--red-soft); color: var(--red); }
.attention-ico.mid { background: var(--amber-soft); color: var(--amber); }
.attention-body { flex: 1; min-width: 0; }
.attention-body strong { display: block; color: var(--white); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attention-body span { font-size: 13px; color: var(--muted); }

.mini-list li a { display: flex; align-items: center; gap: 13px; padding: 11px 22px; border-bottom: 1px solid var(--line); transition: background .12s; }
.mini-list li:last-child a { border-bottom: none; }
.mini-list li a:hover { background: rgba(255,255,255,.03); }
.mini-list .veh-thumb { width: 56px; height: 40px; }
.mini-list .price { margin-left: auto; font-family: var(--font-display); font-weight: 700; color: var(--white); white-space: nowrap; }

.quick-plate { display: flex; flex-direction: column; gap: 14px; }

/* ==========================================================================
   VOERTUIG DETAIL
   ========================================================================== */
.vehicle-head { display: grid; grid-template-columns: 180px minmax(0,1fr) auto; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 18px; }
.vehicle-head-img { aspect-ratio: 16/11; border-radius: 12px; overflow: hidden; background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 28px; }
.vehicle-head-img img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-brand { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--amber); font-size: 14px; }
.vehicle-title { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; margin: 4px 0 12px; }
.vehicle-title span { color: var(--muted); font-size: .6em; font-weight: 700; }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 40px; padding: 5px 12px; font-size: 13px; color: var(--text); display: inline-flex; align-items: center; gap: 7px; }
.chip i { color: var(--amber); font-size: 12px; }
.chip.warn { border-color: rgba(246,162,30,.4); color: #fbc774; }
.chip.danger { border-color: rgba(229,72,77,.4); color: #f3a0a2; }
.chip.danger i { color: var(--red); }
.vehicle-price-block { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.vehicle-price { font-family: var(--font-display); font-weight: 800; font-size: 36px; color: var(--white); line-height: 1; }
.vehicle-price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.status-flow { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; overflow-x: auto; }
.flow-step { flex: 1; min-width: 130px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--muted-2); font-size: 13.5px; position: relative; border: none; background: none; cursor: pointer; font-family: var(--font-body); text-align: left; transition: background .15s; }
.flow-step:hover { background: rgba(255,255,255,.03); }
.flow-step + .flow-step { border-left: 1px solid var(--line); }
.flow-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.flow-step strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .5px; font-size: 13.5px; }
.flow-step.done { color: var(--muted); }
.flow-step.done .flow-dot { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.flow-step.current { color: var(--white); background: var(--amber-soft); cursor: default; }
.flow-step.current .flow-dot { background: var(--amber-grad); border-color: transparent; color: #1a1206; }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spec-label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; display: flex; gap: 7px; align-items: center; }
.spec-label i { color: var(--amber); }
.spec-val { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.options-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.options-list li { display: flex; gap: 9px; align-items: flex-start; color: var(--text); font-size: 14px; }
.options-list i { color: var(--amber); margin-top: 4px; font-size: 12px; }

.checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checklist li:last-child { border-bottom: none; }
.check-ico { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; border: 2px solid var(--line-strong); color: transparent; }
.checklist li.done .check-ico { background: var(--green); border-color: var(--green); color: #04310f; }
.checklist li.partial .check-ico { border-color: var(--amber); color: var(--amber); }
.checklist li.required:not(.done) .check-ico { border-color: var(--red); }
.checklist li a { margin-left: auto; font-size: 12.5px; color: var(--amber); font-weight: 600; white-space: nowrap; }
.checklist li.done span { color: var(--muted); }
.readiness-bar { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; margin: 4px 0 14px; }
.readiness-bar div { height: 100%; background: var(--amber-grad); border-radius: 8px; transition: width .4s; }

.timeline li { position: relative; padding: 0 0 16px 24px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li span { display: block; font-size: 12px; color: var(--muted-2); }

/* Opties kiezen */
.option-cats { display: grid; gap: 22px; }
.option-cat h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 11px; }
.option-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip { cursor: pointer; user-select: none; }
.opt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.opt-chip span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 40px; border: 1px solid var(--line-strong); font-size: 13.5px; color: var(--text); transition: all .12s; }
.opt-chip span::before { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: var(--muted-2); }
.opt-chip:hover span { border-color: var(--amber); }
.opt-chip input:checked + span { background: var(--amber-soft); border-color: var(--amber); color: var(--amber-light); }
.opt-chip input:checked + span::before { content: "\f00c"; color: var(--amber); }

/* Foto's */
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 34px 20px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.dropzone:hover, .dropzone.over { border-color: var(--amber); background: var(--amber-soft); }
.dropzone i { font-size: 34px; color: var(--amber); margin-bottom: 10px; }
.dropzone h4 { font-size: 19px; text-transform: uppercase; }
.dropzone p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-progress { height: 6px; border-radius: 6px; background: var(--surface-3); margin-top: 14px; overflow: hidden; display: none; }
.upload-progress div { height: 100%; width: 0; background: var(--amber-grad); transition: width .2s; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 20px; }
.photo-item { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-3); aspect-ratio: 4/3; border: 2px solid transparent; cursor: grab; transition: border-color .15s, opacity .15s; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo-item.dragging { opacity: .4; }
.photo-item.drop-target { border-color: var(--amber); }
.photo-item:first-child { border-color: var(--amber); }
.photo-main-badge { position: absolute; top: 8px; left: 8px; display: none; }
.photo-item:first-child .photo-main-badge { display: inline-flex; }
.photo-actions { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.photo-item:hover .photo-actions { opacity: 1; }
.photo-actions .btn-icon { width: 32px; height: 32px; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.photo-index { position: absolute; bottom: 8px; left: 10px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }

/* Kosten */
.std-cost-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.std-cost-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-size: 13.5px; cursor: pointer; transition: all .15s; font-family: var(--font-body); }
.std-cost-btn:hover { border-color: var(--amber); color: var(--amber); }
.std-cost-btn i { color: var(--amber); font-size: 11px; }
.std-cost-btn strong { color: var(--white); font-weight: 600; }

/* ==========================================================================
   PRIJSBEPALING
   ========================================================================== */
.val-result { display: grid; gap: 18px; }
.val-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.val-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 56px); color: var(--white); line-height: 1; font-style: italic; }
.val-range { color: var(--muted); font-size: 14px; margin-top: 6px; }
.conf { display: flex; align-items: center; gap: 12px; }
.conf-ring { --p: 50; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--amber) calc(var(--p) * 1%), var(--surface-3) 0); display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.conf-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.conf-ring b { position: relative; font-family: var(--font-display); font-size: 17px; color: var(--white); }
.conf span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.conf span strong { display: block; color: var(--white); font-family: var(--font-display); text-transform: uppercase; font-size: 15px; letter-spacing: .5px; }
.conf.low .conf-ring { background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--surface-3) 0); }

.val-bar { position: relative; height: 10px; border-radius: 10px; background: linear-gradient(90deg, rgba(246,162,30,.15), var(--amber), rgba(246,162,30,.15)); margin: 6px 0 22px; }
.val-bar-marker { position: absolute; left: 50%; top: -5px; width: 4px; height: 20px; border-radius: 3px; background: var(--white); transform: translateX(-50%); box-shadow: 0 0 0 3px rgba(0,0,0,.4); }
.val-bar-labels { position: absolute; top: 16px; left: 0; right: 0; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.val-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.val-kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.val-kpi span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.val-kpi strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--white); line-height: 1.15; margin-top: 3px; }
.val-kpi small { font-size: 12px; color: var(--muted-2); }
.val-kpi.accent { border-color: rgba(246,162,30,.4); background: var(--amber-soft); }
.val-kpi.accent strong { color: var(--amber-light); }

.val-verdict { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.val-verdict i { font-size: 20px; }
.val-verdict.good { background: var(--green-soft); border: 1px solid rgba(62,207,122,.35); color: #8fe6b3; }
.val-verdict.bad { background: var(--red-soft); border: 1px solid rgba(229,72,77,.35); color: #f3a0a2; }
.val-verdict strong { color: var(--white); }

.val-details { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.val-details summary { cursor: pointer; padding: 13px 16px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--white); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.val-details summary::-webkit-details-marker { display: none; }
.val-details summary i { color: var(--amber); transition: transform .2s; }
.val-details[open] summary i { transform: rotate(180deg); }
.val-steps td { font-size: 13.5px; }
.val-steps td small { display: block; color: var(--muted-2); font-size: 12px; }
.val-disclaimer { font-size: 12px; color: var(--muted-2); }
.val-placeholder { text-align: center; padding: 30px 16px; color: var(--muted); }
.val-placeholder i { font-size: 32px; color: var(--amber); margin-bottom: 12px; display: block; }
.val-result.compact .val-price { font-size: 40px; }
.val-result.compact .val-kpis { grid-template-columns: 1fr 1fr; }
.val-result.compact .val-kpi:last-child { grid-column: 1 / -1; }

/* Marge-overzicht */
.margin-box { display: grid; gap: 0; }
.margin-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.margin-row span { color: var(--muted); }
.margin-row.subtotal { border-bottom: 1px solid var(--line-strong); }
.margin-row.subtotal span, .margin-row.subtotal strong { color: var(--white); font-weight: 600; }
.margin-row.total { border-bottom: none; padding-top: 14px; }
.margin-row.total span { color: var(--white); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 16px; }
.margin-row.total strong { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.margin-pct { text-align: right; font-size: 13px; color: var(--muted); }

/* ==========================================================================
   ADVERTENTIES
   ========================================================================== */
.md-toolbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.md-btn { min-width: 34px; height: 32px; padding: 0 10px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line); color: var(--white); cursor: pointer; font-family: var(--font-body); font-size: 14px; transition: all .15s; }
.md-btn:hover { border-color: var(--amber); color: var(--amber); }
.md-btn.bold { font-weight: 800; }
.md-btn.underline { text-decoration: underline; text-underline-offset: 3px; }
.md-hint { font-size: 12px; color: var(--muted-2); margin-left: auto; }
.md-hint code { font-size: 11.5px; }
.ad-preview-text strong { color: #111; font-weight: 700; }
.ad-preview-text u { text-underline-offset: 3px; }

.form-details { border: 1px solid var(--line); border-radius: 12px; margin-top: 4px; background: rgba(255,255,255,.015); }
.form-details summary { cursor: pointer; list-style: none; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--white); }
.form-details summary::-webkit-details-marker { display: none; }
.form-details summary small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted-2); margin-left: 6px; }
.form-details summary > span i { color: var(--amber); margin-right: 6px; }
.form-details summary > i { color: var(--amber); transition: transform .2s; }
.form-details[open] summary > i { transform: rotate(180deg); }
.form-details > .form-grid { padding: 4px 16px 0; }
.form-details .key-row .input-affix { flex: 1; min-width: 0; }

.char-count { font-size: 12px; color: var(--muted-2); font-weight: 400; }
.char-count.over { color: var(--red); font-weight: 700; }
.ad-preview { background: #fff; color: #1d1d1d; border-radius: 14px; overflow: hidden; font-family: Arial, Helvetica, sans-serif; }
.ad-preview-img { aspect-ratio: 4/3; background: #e9e9e9; display: flex; align-items: center; justify-content: center; color: #999; font-size: 34px; }
.ad-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-preview-body { padding: 16px 18px 20px; }
.ad-preview-title { font-size: 19px; font-weight: 700; color: #1d1d1d; line-height: 1.3; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
.ad-preview-price { font-size: 22px; font-weight: 700; color: #1d1d1d; margin: 8px 0 12px; }
.ad-preview-text { white-space: pre-wrap; font-size: 14px; line-height: 1.5; color: #333; max-height: 520px; overflow-y: auto; border-top: 1px solid #eee; padding-top: 12px; }
.ad-preview-label { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; background: #eaf2fb; color: #2d6ab3; padding: 3px 8px; border-radius: 4px; }

.var-groups { display: grid; gap: 14px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.var-group h5 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.var-list { display: flex; flex-wrap: wrap; gap: 6px; }
.var-btn { font-family: var(--font-mono); font-size: 12px; padding: 4px 8px; border-radius: 6px; background: var(--surface-3); color: var(--amber-light); border: 1px solid var(--line); cursor: pointer; }
.var-btn:hover { border-color: var(--amber); }

.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.template-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.template-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.template-card h3 { font-size: 21px; text-transform: uppercase; }
.template-card pre { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: pre-wrap; background: var(--black); border-radius: 10px; padding: 12px; max-height: 150px; overflow: hidden; mask-image: linear-gradient(to bottom, #000 60%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); flex: 1; }
.template-card-foot { display: flex; gap: 8px; align-items: center; }

/* API-code */
.code-block { background: var(--black); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text); white-space: pre; overflow-x: auto; line-height: 1.6; }
.key-row { display: flex; gap: 8px; align-items: center; }
.key-row input { flex: 1; font-family: var(--font-mono); font-size: 13px; }

/* ==========================================================================
   AUTH (login / registratie)
   ========================================================================== */
.auth-shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-brand { position: relative; background: radial-gradient(1200px 600px at 0% 0%, rgba(246,162,30,.18), transparent 60%), #060608; border-right: 1px solid var(--line); padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-brand .flag-strip { position: absolute; left: 0; right: 0; bottom: 0; }
.auth-brand h1 { font-size: clamp(38px, 4.4vw, 62px); text-transform: uppercase; font-style: italic; line-height: .98; margin: 28px 0 18px; }
.auth-brand p.lead { color: var(--muted); font-size: 17px; max-width: 500px; }
.auth-usps { display: grid; gap: 14px; margin-top: 30px; }
.auth-usps li { display: flex; gap: 14px; align-items: flex-start; }
.auth-usps i { width: 40px; height: 40px; border-radius: 11px; background: var(--amber-soft); color: var(--amber); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-usps strong { display: block; color: var(--white); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .5px; font-size: 16px; }
.auth-usps span { color: var(--muted); font-size: 14px; }
.auth-foot { color: var(--muted-2); font-size: 13px; margin-bottom: 14px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-single { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-single .auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.auth-title { font-size: 38px; text-transform: uppercase; font-style: italic; margin: 18px 0 6px; }
.auth-card > p.muted { margin-bottom: 24px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--amber); font-weight: 600; }
.auth-card .brand-mark.mobile-only { display: none; }

/* ---- Toastr in huisstijl ---- */
#toast-container > div { opacity: 1; border-radius: 12px; box-shadow: var(--shadow); font-family: var(--font-body); padding: 14px 16px 14px 50px; width: 340px; }
#toast-container > .toast-success { background-color: #16301f; border: 1px solid rgba(62,207,122,.4); }
#toast-container > .toast-error { background-color: #3a1618; border: 1px solid rgba(229,72,77,.45); }
#toast-container > .toast-warning { background-color: #3a2a0c; border: 1px solid rgba(246,162,30,.45); }
#toast-container > .toast-info { background-color: #122a3a; }
.toast-progress { background: var(--amber); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) {
    .grid-main-aside { grid-template-columns: minmax(0, 1fr) 340px; }
    .grid-aside-main { grid-template-columns: minmax(0, 1fr); }
    .pipeline { grid-template-columns: repeat(3, 1fr); }
    .pipe-step:nth-child(3) { border-right: none; }
    .pipe-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .pipe-step:nth-child(3)::after { display: none; }
}

@media (max-width: 1080px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; top: 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .28s ease; }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
    .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .25s; }
    .sidebar-overlay.open { opacity: 1; visibility: visible; }
    .topbar-toggle { display: block; }
    .grid-main-aside, .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .sticky-aside { position: static; }
    .vehicle-head { grid-template-columns: 140px minmax(0,1fr); }
    .vehicle-price-block { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; flex-wrap: wrap; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-card .brand-mark.mobile-only { display: inline-flex; }
}

@media (max-width: 760px) {
    .topbar { padding: 0 16px; gap: 10px; }
    .app-content { padding: 22px 16px 40px; }
    .app-footer { padding: 16px; }
    .hide-sm { display: none !important; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .span-3 { grid-column: 1 / -1; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .spec-grid { grid-template-columns: repeat(2, 1fr); }
    .options-list { grid-template-columns: 1fr; }
    .val-kpis { grid-template-columns: 1fr; }
    .val-result.compact .val-kpis { grid-template-columns: 1fr; }
    .pipeline { grid-template-columns: repeat(2, 1fr); }
    .pipe-step { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
    .pipe-step:nth-child(2n) { border-right: none !important; }
    .pipe-step::after { display: none; }
    .vehicle-head { grid-template-columns: 1fr; }
    .vehicle-head-img { max-height: 200px; }
    .kpi-value { font-size: 27px; }
    .plate-input input { font-size: 26px; }
    .card-body { padding: 18px; }
    .card-head { padding: 16px 18px; }
    .page-head { align-items: flex-start; }
    .template-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: 1 / -1; }
    .topbar-search { display: none; }
    .spec-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   WERKPLAATS: rapporten en checklists
   ========================================================================== */
.report-icon { width: 72px; height: 72px; border-radius: 16px; background: var(--amber-soft); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 28px; }

.progress-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.progress-bar { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; margin-bottom: 14px; }
.progress-bar div { height: 100%; background: var(--amber-grad); border-radius: 8px; transition: width .3s; }
.progress-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip.pos { border-color: rgba(62,207,122,.4); color: #8fe6b3; }
.chip.pos i { color: var(--green); }

/* ---- Controlepunt in een rapport ---- */
.check-item { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; transition: background .15s, border-color .15s; }
.check-item:last-child { border-bottom: none; }
.check-item:hover { background: rgba(255,255,255,.02); }
.check-item.result-ok { border-left-color: var(--green); }
.check-item.result-advies { border-left-color: var(--amber); }
.check-item.result-afgekeurd { border-left-color: var(--red); }
.check-item.result-nvt { border-left-color: var(--muted-2); opacity: .75; }
.check-item.is-done .check-results { opacity: .85; }

.check-main strong { display: block; color: var(--white); font-size: 14.5px; font-weight: 600; }
.check-main small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }

.check-input { display: grid; gap: 7px; min-width: 0; }
.check-input .input-affix { max-width: 170px; }
.check-input .check-value { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.check-input .check-note { font-size: 13px; padding: 8px 11px; }
.norm-text { font-size: 11.5px; color: var(--muted-2); }
.norm-text i { color: var(--amber); }

.check-results { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.res-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); font-family: var(--font-body); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .12s; white-space: nowrap; }
.res-btn:hover:not(:disabled) { color: var(--white); border-color: var(--white); }
.res-btn:disabled { cursor: default; opacity: .5; }
.res-btn.active.res-ok { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.res-btn.active.res-advies { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.res-btn.active.res-afgekeurd { background: var(--red-soft); border-color: var(--red); color: #f3a0a2; }
.res-btn.active.res-nvt { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); }

/* ---- Checklistbeheer ---- */
.cl-item { border-bottom: 1px solid var(--line); }
.cl-item:last-child { border-bottom: none; }
.cl-item.is-off { opacity: .55; }
.cl-item summary { cursor: pointer; list-style: none; padding: 13px 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.cl-item summary::-webkit-details-marker { display: none; }
.cl-item summary:hover { background: rgba(255,255,255,.02); }
.cl-item summary > i { color: var(--amber); transition: transform .2s; flex-shrink: 0; }
.cl-item[open] summary > i { transform: rotate(180deg); }
.cl-name strong { display: block; color: var(--white); font-size: 14.5px; font-weight: 600; }
.cl-name small { display: block; color: var(--muted-2); font-size: 12px; margin-top: 2px; }
.cl-form { padding: 4px 22px 20px; background: rgba(0,0,0,.18); }

@media (max-width: 980px) {
    .check-item { grid-template-columns: 1fr; gap: 10px; }
    .check-results { justify-content: flex-start; }
    .check-input .input-affix { max-width: none; }
}

.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn-icon.is-on { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }

/* ==========================================================================
   PLANNING: weekoverzicht
   ========================================================================== */
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.week-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 180px; }
.week-day.is-today { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(246,162,30,.25); }
.week-day-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.week-day-head span { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 12px; color: var(--muted); }
.week-day-head strong { font-size: 13px; color: var(--white); margin-left: auto; }
.week-day-head .btn-icon { width: 26px; height: 26px; font-size: 11px; }
.week-day.is-today .week-day-head span { color: var(--amber); }
.week-day-body { padding: 8px; display: grid; gap: 7px; align-content: start; }
.week-empty { color: var(--muted-2); text-align: center; padding: 10px 0; }

.appt { display: grid; gap: 2px; text-align: left; width: 100%; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-strong); border-left-width: 3px; background: var(--surface-2); color: var(--text); cursor: pointer; font-family: var(--font-body); transition: transform .12s, border-color .12s; }
.appt:hover { transform: translateY(-1px); border-color: var(--amber); }
.appt-time { font-size: 11.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.appt-title { font-size: 13px; font-weight: 600; color: var(--white); line-height: 1.25; }
.appt-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt.status-afgerond { opacity: .55; }
.appt.status-afgerond .appt-title { text-decoration: line-through; }
.appt-amber { border-left-color: var(--amber); } .appt-amber .appt-time i { color: var(--amber); }
.appt-green { border-left-color: var(--green); } .appt-green .appt-time i { color: var(--green); }
.appt-blue { border-left-color: var(--blue); } .appt-blue .appt-time i { color: var(--blue); }
.appt-purple { border-left-color: var(--purple); } .appt-purple .appt-time i { color: var(--purple); }
.appt-indigo { border-left-color: var(--indigo); } .appt-indigo .appt-time i { color: var(--indigo); }
.appt-muted { border-left-color: var(--muted-2); }

@media (max-width: 1200px) {
    .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .week-day { min-height: 120px; }
}
@media (max-width: 460px) {
    .week-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TO-DO PER VOERTUIG
   ========================================================================== */
.task-add { display: flex; gap: 8px; }
.task-add input { flex: 1; min-width: 0; background: var(--black); border: 1px solid var(--line); color: var(--white); border-radius: 10px; padding: 11px 13px; font-family: var(--font-body); font-size: 14.5px; }
.task-add input:focus { outline: none; border-color: var(--amber); }

.task-list { margin-top: 14px; display: grid; gap: 2px; }
.task { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: none; }
.task-check { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line-strong); background: none; color: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 10px; transition: all .15s; }
.task-check:hover { border-color: var(--amber); color: var(--amber); }
.task-check i.fa-circle { font-size: 5px; opacity: 0; }
.task.is-done .task-check { background: var(--green); border-color: var(--green); color: #04310f; }
.task-title { flex: 1; min-width: 0; font-size: 14.5px; color: var(--text); line-height: 1.35; }
.task-title small { display: block; font-size: 11.5px; color: var(--muted-2); }
.task.is-done .task-title { color: var(--muted-2); text-decoration: line-through; }
.task .btn-icon { width: 28px; height: 28px; font-size: 12px; opacity: 0; }
.task:hover .btn-icon { opacity: 1; }

.opt-chip-btn { padding: 7px 13px; border-radius: 40px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-family: var(--font-body); font-size: 13.5px; cursor: pointer; transition: all .12s; }
.opt-chip-btn:hover { border-color: var(--amber); color: var(--amber); }
.opt-chip-btn::before { content: "b"; margin-right: 6px; color: var(--muted-2); font-weight: 700; }
.opt-chip-btn:hover::before { color: var(--amber); }
