/* ============================================================
   SMET.DAT — web UI design system
   1:1 reproductie van de WPF-app (App.xaml + MainWindow.xaml).
   Alle kleuren komen rechtstreeks uit de XAML-bronnen.
   ============================================================ */
:root {
    /* ── Smet brand (App.xaml) ── */
    --accent:        #E83A0A;   /* AccentColor  */
    --accent-hover:  #CF330A;   /* button hover */
    --accent-light:  #FEEDE8;   /* AccentColorLight */
    --tint:          #FFF8F6;   /* BackgroundTint */

    /* ── Neutralen (slate-schaal, zoals in de views) ── */
    --content-bg: #F9FAFB;      /* witte content-zone in MainWindow */
    --panel:      #FFFFFF;
    --ink:        #0F172A;      /* slate-900 — titels */
    --ink-700:    #334155;
    --ink-600:    #475569;
    --muted:      #64748B;      /* slate-500 — subtitels */
    --faint:      #94A3B8;      /* slate-400 — kleine labels */
    --line-300:   #CBD5E1;
    --line:       #E2E8F0;      /* slate-200 — scheiders */
    --border:     #E5E7EB;      /* kaartrand (MainWindow) */
    --chip:       #F1F5F9;      /* slate-100 — segmenten/chips */
    --surface:    #F8FAFC;      /* slate-50 — metric-panelen */

    /* ── Statuskleuren (jobsite-kaarten) ── */
    --ok-bg:   #DCFCE7;  --ok:   #16A34A;   /* geanalyseerd  */
    --warn-bg: #FEF3C7;  --warn: #D97706;   /* verouderd     */
    --info-bg: #DBEAFE;  --info: #2563EB;   /* bezig/analyse */
    --info-light: #EFF6FF;
    --bad-bg:  #FEE2E2;  --bad:  #DC2626;   /* verwijderen   */
    --indigo-bg: #EEF2FF; --indigo: #4F46E5; --indigo-line: #C7D2FE; /* groepen */

    --radius:  10px;
    --radius-sm: 5px;
    --shadow-sm: 0 1px 8px rgba(15,23,42,.06);
    --shadow-md: 0 4px 16px rgba(15,23,42,.14);
    --shadow-pop: 0 10px 28px rgba(15,23,42,.18);
    --sidebar-w: 216px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden-attribuut wint van component-display */
html, body { margin: 0; height: 100%; }
body {
    font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui,
        -apple-system, Roboto, Arial, sans-serif;
    color: var(--ink); background: var(--content-bg); font-size: 13px; line-height: 1.45;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a[data-href] { cursor: pointer; }   /* URL-preview verborgen: link via JS, hand-cursor behouden */
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

/* Iconen — Fluent System Icons (fill-based), exact als de WPF-app. Kleur via currentColor. */
.sidebar svg, .content svg, .auth-card svg { fill: currentColor; stroke: none; }
svg.ic { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }

/* ============================================================
   LAYOUT  (Grid: sidebar | content) — MainWindow.xaml
   ============================================================ */
/* App-shell vast op de viewport: de sidebar blijft staan, scrollen gebeurt
   binnen een paneel (de .content-zone of een interne scrollcontainer van een
   scherm) i.p.v. dat het hele document — inclusief de linkse kader — meescrolt. */
.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; grid-template-rows: 100vh; height: 100vh; overflow: hidden; }

/* ── SIDEBAR ── (blijft vast; scrollt alleen intern bij een héél lage viewport) */
.sidebar { display: flex; flex-direction: column; background: var(--accent); min-width: 0; min-height: 0; overflow-y: auto; }

/* witte logo-zone (border-bottom #E5E7EB, padding 22 32 22 18) */
.sidebar-logo {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 32px 22px 18px;
}
.sidebar-logo img { height: 40px; display: block; }
.badge-toolbox {
    display: inline-block; margin-top: 10px; background: var(--accent);
    color: #fff; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 4px;
}

/* rode nav-zone */
.sidebar-nav { flex: 1; display: flex; flex-direction: column; padding: 0; }
.nav-label {
    color: rgba(255,255,255,.5); font-size: 10px; font-weight: 600;
    letter-spacing: .04em; margin: 22px 0 10px 22px;
}
.nav-list { display: flex; flex-direction: column; padding: 0 12px; gap: 4px; }
.nav-item {
    display: flex; align-items: center; gap: 13px; height: 46px; padding: 0 16px;
    border-radius: 8px; color: #fff; cursor: pointer;
}
.nav-item .nav-ico { width: 18px; height: 18px; opacity: .7; flex: none; }
.nav-item .nav-text { font-size: 13px; opacity: .75; }
.nav-item:hover { background: rgba(255,255,255,.2); }
.nav-item.active { background: #fff; }
.nav-item.active .nav-ico { opacity: 1; color: var(--accent); }
.nav-item.active .nav-text { opacity: 1; color: var(--accent); font-weight: 600; }
/* Telbadge (lokale-map-sync): aantal werven met nieuwe ASCII-bestanden. */
.nav-item .nav-badge {
    margin-left: auto; flex: none; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: #F59E0B; color: #fff; font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.nav-item.active .nav-badge { background: var(--accent); }

.nav-spacer { flex: 1; }

/* Instellingen + footer onderaan */
.nav-settings { padding: 4px 12px 8px; }
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,.15); padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.sidebar-footer .copy { color: rgba(255,255,255,.45); font-size: 11px; }
.sidebar-user { min-width: 0; }
.sidebar-user .u-name { color: #fff; font-weight: 600; font-size: 12px; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .u-role { color: rgba(255,255,255,.6); font-size: 10.5px; text-transform: capitalize; }
.btn-logout {
    background: rgba(255,255,255,.15); color: #fff; border: none; cursor: pointer;
    width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: none;
}
.btn-logout:hover { background: rgba(255,255,255,.3); }
.btn-logout svg { width: 16px; height: 16px; }

/* ── CONTENT ── (witte zone met #F9FAFB, padding 28 20 28 28)
   De eigen verticale scrollcontainer van de app: enkel deze zone scrollt,
   de sidebar blijft vast. Schermen met een eigen 100%/100vh-layout
   (processen, planning, attachments, instellingen) vullen exact deze hoogte
   en beheren hun interne scroll zelf. */
.content { background: var(--content-bg); min-width: 0; min-height: 0; padding: 20px 28px 28px; overflow-x: hidden; overflow-y: auto; }

/* ============================================================
   APP-WIDE ANALYSE-VOORTGANGSBALK  (#smet-progress)
   .EXE-stijl: één dunne, horizontale balk over de VOLLEDIGE contentbreedte,
   onderaan vastgepind — Smet-oranje fill (i.p.v. het oude per-kaart blauw),
   met statustekst links + percentage rechts. sync.js vult 'm (singleton op
   <body>; left = sidebarbreedte zodat hij exact de contentkolom vult).
   ============================================================ */
#smet-progress {
    position: fixed; left: var(--sidebar-w); right: 0; bottom: 0; z-index: 9998;
    background: var(--panel); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(15,23,42,.08);
    padding: 9px 28px 11px;
    transform: translateY(100%); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
}
#smet-progress.show { transform: translateY(0); opacity: 1; }
#smet-progress .gp-row { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; font-size: 12px; line-height: 1.3; }
#smet-progress .gp-spin { width: 14px; height: 14px; flex: none; fill: var(--accent); animation: gp-rotate 1s linear infinite; }
#smet-progress .gp-label { flex: 1 1 auto; min-width: 0; color: var(--ink-700); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#smet-progress .gp-pct { flex: none; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
#smet-progress .gp-track { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
/* width is written directly by sync.js (no rAF — that froze in background tabs); this transition
   gives the glide. CSS transitions keep their end-state in a hidden tab, so the bar stays truthful. */
#smet-progress .gp-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .35s linear; }
@keyframes gp-rotate { to { transform: rotate(360deg); } }

/* ============================================================
   SCHERM-HEADER (titel + subtitel, in elk blad)
   ============================================================ */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.page-head h1 { font-size: 26px; font-weight: 600; color: var(--ink); }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.page-head .meta { color: var(--faint); font-size: 11px; display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   COMPONENTEN
   ============================================================ */
/* Kaart */
.card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px;
}
.card-hover:hover { border-color: var(--line-300); }
.card-pad-lg { padding: 20px; }
.card h2 { font-size: 15px; margin-bottom: 12px; }

/* Metric-paneel (M³ / OPERATIES / M DIEP) */
.metrics {
    display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; align-items: center;
    background: var(--surface); border: 1px solid #EEF1F4; border-radius: 4px; padding: 13px 8px;
}
.metrics .sep { background: var(--line); align-self: stretch; margin: 2px 0; }
.metric { text-align: center; }
.metric .val { font-size: 19px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric .lbl { font-size: 9px; font-weight: 600; color: var(--faint); margin-top: 3px; letter-spacing: .02em; }

/* Status-strip (klikbare teller-tabs) */
.statusstrip { display: inline-flex; gap: 0; background: var(--chip); border-radius: 10px; padding: 3px; height: 42px; align-items: center; }
.statustab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 12.5px; }
.statustab .t-lbl { color: var(--muted); font-weight: 500; }
.statustab .t-cnt { font-weight: 700; }
.statustab:hover { background: #E5EAF0; }
.statustab.active { background: #fff; }
.statustab.active .t-lbl { color: var(--ink); font-weight: 600; }

/* Filterbalk (dropdowns) */
.filterbar {
    display: inline-flex; align-items: center; height: 42px; gap: 0; padding: 0 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm);
}
.filterbar .fb-ico { width: 15px; height: 15px; color: var(--faint); }
.filterbar input[type=text], .filterbar select {
    border: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--ink-700);
    padding: 0 0 0 9px; outline: none;
}
.filterbar select { cursor: pointer; font-weight: 500; padding-right: 20px; width: auto; }
.filterbar .fb-div { width: 1px; align-self: stretch; background: #EAEFF4; margin: 7px 10px; }

/* Pills / knoppen */
.btn {
    display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px;
    border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-700);
    font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--line); }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff;
    box-shadow: 0 2px 12px rgba(232,58,10,.30); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-sm { height: auto; padding: 7px 14px; border-radius: 4px; font-size: 12px; box-shadow: none; }
.btn-cta { background: var(--accent); color: #fff; border: 0; }
.btn-cta:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--chip); color: var(--ink-700); border: 0; }
.btn-secondary:hover { background: var(--line); }
/* quiet icon button (delete e.d.) */
.icon-btn { background: transparent; border: 0; cursor: pointer; padding: 6px; border-radius: 4px; color: var(--faint); display: inline-grid; place-items: center; }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.icon-btn:hover { background: var(--chip); }

/* Toolbar (wrap) */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar .count { color: var(--faint); font-size: 12px; }
.toolbar .count b { color: var(--ink-700); font-weight: 600; }
.spacer { flex: 1; }

/* Kaart-grid (3 koloms zoals UniformGrid Columns=3) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1200px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px)  { .card-grid { grid-template-columns: 1fr; } }
.section-title { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 8px 2px; }

/* status-tegel (gekleurd vierkant icoon) */
.tile { width: 30px; height: 30px; border-radius: 4px; display: grid; place-items: center; flex: none; background: var(--chip); color: var(--faint); }
.tile svg { width: 15px; height: 15px; }
.tile.ok   { background: var(--ok-bg);   color: var(--ok); }
.tile.warn { background: var(--warn-bg); color: var(--warn); }
.tile.info { background: var(--info-bg); color: var(--info); }
.tile.indigo { background: var(--indigo-bg); color: var(--indigo); }

/* statuswoord */
.status-word { font-size: 11px; font-weight: 600; }
.status-word.ok   { color: var(--ok); }
.status-word.warn { color: var(--warn); }
.status-word.info { color: var(--info); }
.status-word.none { color: var(--faint); }
.status-word.pending { color: var(--muted); }

/* Badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--chip);
    color: var(--ink-700); font-size: 11px; font-weight: 600; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }

/* Tabellen */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Key/value */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }

/* Detail-grid */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }

/* Forms */
input[type=text], input[type=password], input[type=number], input[type=date], input[type=email], select, textarea {
    width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; outline: none; background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }

/* Muted helper */
.muted { color: var(--muted); }
.faint { color: var(--faint); }
code { background: var(--chip); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

/* Paginatie */
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 14px 8px; }

/* Berichten */
.messages { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.message { padding: 10px 14px; border-radius: 8px; font-size: 12.5px; }
.message-error   { background: var(--bad-bg);  color: #b91c1c; }
.message-success { background: var(--ok-bg);   color: #15803d; }
.message-info    { background: var(--info-light); color: #1d4ed8; }
.message-warning { background: var(--warn-bg); color: #b45309; }

/* Empty-state */
.empty { text-align: center; color: var(--faint); padding: 40px 16px; }

/* ============================================================
   DASHBOARD  (DashboardView.xaml)
   ============================================================ */
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; gap: 16px; }
.dash-head h1 { font-size: 28px; font-weight: 700; color: var(--ink); }
.dash-head .actions { display: flex; gap: 10px; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-700);
    font-size: 13px; font-weight: 500; cursor: pointer; }
.hbtn:hover { background: var(--surface); border-color: var(--line-300); }
.hbtn svg { width: 15px; height: 15px; }

.kicker { font-size: 10px; font-weight: 700; color: var(--line-300); letter-spacing: .06em; margin: 0 0 14px; }
.kicker.mt { margin-top: 12px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 6px; }
@media (max-width: 1180px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .kpi-grid { grid-template-columns: 1fr; } }
.kpi-card { display: flex; flex-direction: column; min-height: 152px; background: #fff;
    border: 1px solid var(--line); border-radius: 14px; padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); cursor: pointer; }
.kpi-card:hover { background: #F5F9FF; border-color: #93C5FD; }
.kpi-card:active { background: var(--info-light); }
.kpi-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.kpi-tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none;
    background: var(--tile-bg); color: var(--tile-fg); }
.kpi-tile svg { width: 18px; height: 18px; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value { font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1; margin-top: auto;
    font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.kpi-value .unit { font-size: 17px; color: var(--faint); font-weight: 700; letter-spacing: 0; }
.kpi-link { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; margin-top: 14px; color: var(--link); }
.kpi-link svg { width: 12px; height: 12px; }

.datacard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.recent { width: 100%; border-collapse: collapse; }
.recent th { text-align: left; font-size: 10px; font-weight: 600; color: var(--faint);
    text-transform: uppercase; letter-spacing: .04em; padding: 0 8px 10px 0; border-bottom: 1px solid var(--chip); }
.recent td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--chip); font-size: 13px; color: var(--ink-600);
    font-variant-numeric: tabular-nums; }
.recent tbody tr:last-child td { border-bottom: 0; }
.recent tbody tr { cursor: pointer; }
.recent tbody tr:hover td { background: #F5F9FF; }
.recent .nm { display: flex; align-items: center; gap: 10px; color: #1E293B; font-weight: 500; }
.recent .nm::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: #BFDBFE; flex: none; }
.morelink { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 12px; color: var(--info); }
.morelink:hover { text-decoration: underline; }
.morelink svg { width: 12px; height: 12px; }

/* ============================================================
   JOBSITES  (JobsiteView.xaml)
   ============================================================ */
/* status-strip teller-kleuren */
.statustab .t-cnt.c-all   { color: var(--ink); }
.statustab .t-cnt.c-ok    { color: var(--ok); }
.statustab .t-cnt.c-open  { color: var(--info); }
.statustab .t-cnt.c-warn  { color: var(--warn); }
.statustab .t-cnt.c-empty { color: var(--faint); }

/* merge-toggle "Werven samenvoegen" */
.merge-toggle { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm);
    color: var(--muted); font-size: 12px; cursor: pointer; }
.merge-toggle svg { width: 13px; height: 13px; }
.merge-toggle:hover { background: var(--line); }
.merge-toggle.active { background: var(--indigo-bg); border-color: var(--indigo-line); color: var(--indigo); font-weight: 600; }

/* BATCH ANALYSE pill + popup */
.batch-pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
    background: var(--accent); color: #fff; border: 0; border-radius: 10px; cursor: pointer;
    font-size: 12.5px; font-weight: 600; box-shadow: 0 2px 12px rgba(232,58,10,.30); }
.batch-pill:hover { background: var(--accent-hover); }
.batch-pill svg { width: 14px; height: 14px; }
.batch-wrap { position: relative; }
.batch-pop { position: absolute; right: 0; top: 48px; z-index: 30; width: 304px; padding: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-pop); }
.batch-pop h4 { font-size: 15px; color: var(--ink); }
.batch-pop .hint { font-size: 11.5px; color: var(--faint); margin: 2px 0 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--chip); border-radius: 8px; padding: 3px; margin-top: 14px; }
.seg button { border: 0; background: transparent; border-radius: 6px; padding: 8px 0; font-size: 12.5px;
    color: var(--muted); font-weight: 500; cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; }
.batch-pop label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin: 14px 0 5px; }
.batch-pop select { min-height: 34px; }

/* Status-dropdown (vervangt statusstrip als toolbar omslaat) */
.status-drop {
    display: none; height: 42px; padding: 0 8px; background: var(--chip);
    border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm);
    font-size: 12.5px; font-weight: 600; color: var(--ink-700); cursor: pointer; width: auto;
}

/* werf-groep kaart — identieke opbouw als .job-card, blauw geaccentueerd.
   Erft alle .job-* stijlen; enkel de kleuraccenten verschillen. */
.job-card.is-group { border-color: var(--indigo-line); background: var(--indigo-bg); }
.job-card.is-group:hover { border-color: var(--indigo); }
.status-word.group { color: var(--indigo); }

/* merge-balk */
.merge-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--indigo-bg); border: 1px solid var(--indigo-line); border-radius: 10px;
    padding: 10px 14px; margin-bottom: 14px; }
.merge-bar .mb-txt { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4338CA; }
.merge-bar .mb-txt svg { width: 14px; height: 14px; color: var(--indigo); }

/* jobsite-kaart */
.section-title { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 8px 2px; }
.job-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; display: flex; flex-direction: column; min-height: 224px;
    overflow: hidden; container-type: inline-size; }
.job-card:hover { border-color: var(--line-300); }
.job-card.dim { opacity: .45; }
.job-card.selected { border-color: var(--indigo); background: var(--indigo-bg); }
.job-head { display: flex; align-items: flex-start; gap: 11px; }
.job-name { font-size: 14.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11px; }
.job-sub .dot { color: var(--line-300); }
.job-sub .contract { color: var(--faint); }
.job-mid { flex: 1; display: flex; align-items: center; margin: 12px 0; }
.job-mid .metrics { width: 100%; }
.empty-mid { text-align: center; width: 100%; color: var(--faint); }
.empty-mid svg { width: 22px; height: 22px; color: var(--line-300); }
.empty-mid div { font-size: 11px; margin-top: 7px; }
/* progress */
.prog { width: 100%; }
.prog-top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 7px; }
.prog-top .lbl { color: var(--ink-600); }
.prog-top .pct { color: var(--info); font-weight: 600; }
.prog-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.prog-bar > i { display: block; height: 100%; background: var(--info); }
/* machine + proces rij */
.job-mp { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job-machine { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-600); cursor: pointer; }
.job-machine svg { width: 12px; height: 12px; color: var(--faint); }
.job-machine:hover, .job-machine:hover svg { color: var(--accent); }
.proc-chip { font-size: 11px; font-weight: 600; color: var(--ink-600); background: var(--chip); border-radius: 4px; padding: 3px 9px; cursor: pointer; }
.proc-chip:hover { background: var(--line); }
.proc-chip.none { background: #FFF7ED; color: var(--warn); }
/* footer */
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
    border-top: 1px solid var(--chip); margin-top: 12px; padding-top: 11px; }
.job-date { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--faint); }
.job-date svg { width: 12px; height: 12px; color: var(--line-300); }
.job-actions { display: flex; gap: 8px; }
.icon-del { background: transparent; border: 0; cursor: pointer; padding: 6px; border-radius: 4px; color: var(--faint); display: inline-grid; place-items: center; }
.icon-del svg { width: 14px; height: 14px; }
.icon-del:hover { background: var(--bad-bg); color: var(--bad); }

/* Kaart-inhoud verbergen als kaart te smal is (container query) */
@container (max-width: 330px) {
    .job-mp { display: none; }
}

/* paginatie (Jobsites) */
.pg { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 4px; }
.pg a, .pg span.pgbtn { display: inline-flex; align-items: center; gap: 4px; background: var(--chip);
    border: 1px solid var(--line); border-radius: 6px; padding: 6px 14px; font-size: 12px; color: var(--ink-700); }
.pg a:hover { background: var(--line); }
.pg .pgbtn.off { opacity: .4; pointer-events: none; }
.pg .pgnum { font-size: 13px; font-weight: 500; color: #374151; }
.pg svg { width: 12px; height: 12px; }

/* ============================================================
   AUTH (login) — Smet-merk
   ============================================================ */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--tint); }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 36px 34px; width: 360px; box-shadow: var(--shadow-md); }
.auth-card .auth-logo { height: 42px; display: block; margin: 0 auto 6px; }
.auth-badge { display: block; text-align: center; margin: 0 auto 22px; }
.auth-badge span { background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.auth-card .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.auth-sub { text-align: center; color: var(--muted); margin: 4px 0 22px; }
.auth-card form label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
.auth-card form label:first-of-type { margin-top: 0; }
.auth-alt { text-align: center; font-size: 12.5px; color: var(--muted); margin: 20px 0 0; }
.auth-alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-field-error { color: #b91c1c; font-size: 11.5px; margin: 4px 0 0; }
.auth-card .message { margin-bottom: 16px; }
