/*
  Huisstijl van het gezamenlijke automotive-product.

  Geport uit de Den Engelsen / Top Used-demo:
  sitejob-nl/den-engelsen -> demo/src/app/globals.css.
  Zelfde tokens, zelfde maten (px, klein en dicht), zelfde componenten.

  Deel 1: schil en componenten uit de bronstijl.
  Deel 2: Filament-onderdelen (tabellen, knoppen, koppen, badges) in dezelfde maat gezet.
  Deel 3: de zoekassistent.
*/

/* ============================ 1. tokens en basis ============================ */
:root {
  --navy-950: #071827; --navy-900: #0b2134; --navy-800: #123149; --navy-700: #1b4561;
  --ink: #14293a; --muted: #66798a; --line: #dbe4e9; --surface: #ffffff; --canvas: #f4f7f8;
  --teal: #008c8b; --teal-100: #dff5f3;
  --blue: #2563eb; --amber: #d97706; --green: #18864b; --violet: #7650c7;
  --shadow: 0 12px 30px rgba(7, 24, 39, 0.08);
  --sidebar-w: 252px;
}
* { box-sizing: border-box; }
html, body, .fi body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); }
body, .fi { font-family: "DM Sans", system-ui, sans-serif !important; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }

/* ============================ schil ============================ */
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: var(--sidebar-w); position: fixed; inset: 0 auto 0 0; z-index: 40;
  display: flex; flex-direction: column; padding: 22px 16px 16px;
  background: linear-gradient(180deg, var(--navy-950), #0a2031 64%, #0c293b); color: white;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; padding: 0 2px 22px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 11px; background: rgba(255,255,255,.07); color: #79bfbe;
}
.brand-product { min-width: 0; }
.brand-product strong { display: block; font-family: Manrope, sans-serif; font-size: 10px; letter-spacing: .08em; }
.brand-product small { display: block; margin-top: 3px; color: #91a9b8; font-size: 8px; line-height: 1.25; }
.tenant-card { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.05); padding: 12px; }
.eyebrow { display: inline-block; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.eyebrow.light { color: #76c9c5; }
.tenant-name { margin-top: 7px; color: white; font-size: 13px; font-weight: 600; }
.tenant-status { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: #8fb0bf; font-size: 10px; }
.main-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.nav-section { padding: 0 11px 7px; color: #698798; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.main-nav a {
  width: 100%; display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px;
  border: 0; border-radius: 9px; background: transparent; color: #a9bdc9; text-align: left;
  text-decoration: none; transition: .18s ease;
}
.main-nav a:hover { color: white; background: rgba(255,255,255,.055); }
.main-nav a.active { color: white; background: rgba(0,140,139,.2); box-shadow: inset 3px 0 var(--teal); }
.main-nav a span { flex: 1; font-size: 13px; font-weight: 600; }
.main-nav a em {
  min-width: 23px; padding: 3px 5px; border-radius: 10px; background: #e99324; color: white;
  font-size: 9px; font-style: normal; text-align: center;
}
.main-nav .nav-icon { width: 18px; height: 18px; flex: 0 0 auto; color: #7d97a7; }
.main-nav a:hover .nav-icon, .main-nav a.active .nav-icon { color: #8fd3d1; }
.sidebar-footer { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer p { margin: 0; color: #5f7d8f; font-size: 10px; }

.workspace { width: calc(100% - var(--sidebar-w)); min-height: 100vh; margin-left: var(--sidebar-w); }
.topbar { height: 70px; display: flex; align-items: center; padding: 0 28px; background: white; border-bottom: 1px solid var(--line); }
.scope-switcher { display: flex; align-items: center; gap: 11px; }
.scope-switcher > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.scope-switcher b { color: var(--ink); font-size: 13px; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.global-search {
  width: 250px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #f7f9fa; color: #7c8d99; text-decoration: none;
}
.global-search span { flex: 1; font-size: 12px; }
kbd { padding: 2px 5px; border: 1px solid #d3dde2; border-radius: 4px; background: white; color: #81919d; font-size: 10px; }
.role-switcher { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border-left: 1px solid var(--line); margin-left: 4px; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--navy-900); color: white; font-size: 10px; font-weight: 800; }
.role-switcher label span { display: block; color: #8a99a4; font-size: 9px; }
.role-switcher label b { display: block; font-size: 11px; font-weight: 700; white-space: nowrap; }
.logout-form { margin-left: 6px; }
.context-strip {
  min-height: 35px; display: flex; align-items: center; gap: 7px; padding: 0 28px;
  background: #eaf3f4; border-bottom: 1px solid #d8e7e9; color: #55717d; font-size: 10px;
}
.context-sep { color: #9ab3bc; }
.context-role { margin-left: auto; color: #3e646e; font-weight: 600; }
.page-content { max-width: 1480px; margin: 0 auto; padding: 30px 34px 56px; outline: none; }

/* ============================ componenten uit de bronstijl ============================ */
.primary-button, .secondary-button, .text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 9px; font-weight: 700; transition: .18s ease; white-space: nowrap; text-decoration: none;
}
.primary-button { min-height: 42px; padding: 0 16px; border: 1px solid var(--teal); background: var(--teal); color: white; box-shadow: 0 6px 16px rgba(0,140,139,.18); }
.primary-button:hover { background: #007c7b; transform: translateY(-1px); }
.secondary-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); background: white; color: #294458; }
.secondary-button:hover { border-color: #a9bbc4; }
.text-button { padding: 4px 0; border: 0; background: transparent; color: var(--teal); font-size: 12px; }
.section-card { border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 5px 16px rgba(7,24,39,.035); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.section-heading h2 { margin: 3px 0 0; font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.02em; }
.count-badge { padding: 4px 8px; border-radius: 12px; background: #eef4f6; color: #5b7180; font-size: 10px; font-weight: 700; }
.status-chip { width: fit-content; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 14px; font-size: 9px; font-weight: 700; }
.status-chip.slate { background: #edf2f4; color: #587080; }
.status-chip.blue { background: #e6efff; color: #245fc9; }
.status-chip.amber { background: #fff0d9; color: #a95e08; }
.status-chip.violet { background: #eee9fb; color: #6542a8; }
.status-chip.green { background: #e3f5e9; color: #15713f; }
.status-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.insight { display: flex; align-items: flex-start; gap: 7px; margin: 18px 0 0; padding: 10px; border-radius: 9px; background: #eef8f7; color: #32666b; font-size: 10px; line-height: 1.4; }
.nl-plate { width: fit-content; display: inline-flex; overflow: hidden; border: 2px solid #152637; border-radius: 5px; background: #f9cf32; }
.nl-plate span { width: 24px; display: grid; place-items: center; background: #1767ac; color: white; font-size: 7px; font-weight: 700; }
.nl-plate strong { padding: 4px 10px; color: #111; letter-spacing: .07em; font-family: Manrope, sans-serif; font-size: 13px; }
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
.cost-grid > div { padding: 13px; background: white; }
.cost-grid small, .cost-grid strong { display: block; }
.cost-grid small { color: #84949d; font-size: 8px; text-transform: uppercase; letter-spacing: .04em; }
.cost-grid strong { margin-top: 5px; font-family: Manrope, sans-serif; font-size: 14px; }
.margin-break-even { padding: 15px; border: 1px solid #cbe1df; border-radius: 11px; background: linear-gradient(105deg, #f4fbfa, #edf7f6); }
.margin-break-even.pressure { border-color: #f1c982; background: linear-gradient(105deg, #fffaf0, #fff4df); }
.margin-meter { height: 7px; margin-top: 13px; overflow: hidden; border-radius: 5px; background: #dbe8e9; }
.margin-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #efae43 72%, #d95f55); }
.margin-numbers { display: flex; justify-content: space-between; margin-top: 8px; color: #788b95; font-size: 8px; }
.margin-numbers b { color: var(--ink); }

/* ============================ 2. Filament in dezelfde maat ============================ */
/* Paginakop -> .page-heading */
.fi-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.fi-header-heading { margin: 5px 0 4px !important; font-family: Manrope, sans-serif !important; font-size: clamp(25px, 2.2vw, 34px) !important; line-height: 1.15 !important; letter-spacing: -.035em !important; font-weight: 600 !important; }
.fi-header-subheading { margin: 0 !important; color: var(--muted) !important; font-size: 13px !important; }
.fi-breadcrumbs { display: none !important; }

/* Knoppen */
.fi-btn { border-radius: 9px !important; font-weight: 700 !important; font-size: 13px !important; transition: .18s ease; }
.fi-btn.fi-size-md { min-height: 40px; padding-inline: 15px; }
.fi-btn.fi-color-primary, .fi-btn-color-primary {
  background: var(--teal) !important; border-color: var(--teal) !important; color: white !important;
  box-shadow: 0 6px 16px rgba(0,140,139,.18) !important;
}
.fi-btn.fi-color-primary:hover, .fi-btn-color-primary:hover { background: #007c7b !important; transform: translateY(-1px); }
.fi-btn.fi-color-gray { background: white !important; border: 1px solid var(--line) !important; color: #294458 !important; box-shadow: none !important; }

/* Tabellen -> .table-card / .vehicle-row */
.fi-ta-ctn { border: 1px solid var(--line) !important; border-radius: 14px !important; background: white !important; box-shadow: 0 5px 16px rgba(7,24,39,.035) !important; }
.fi-ta-header-ctn { min-height: 60px; padding: 10px 16px !important; }
/* Kolomkoppen: Filament zet het label los in de cel, zonder wrapper; dus de cel zelf stylen. */
.fi-ta-header-cell, .fi-ta-header-cell-label, .fi-ta-header-cell-sort-btn {
  color: #758792 !important; font-size: 9px !important; font-weight: 700 !important; letter-spacing: .04em; text-transform: uppercase;
}
.fi-ta-header-cell { background: #f5f8f9 !important; border-top: 1px solid var(--line); padding: 9px 12px !important; }
.fi-ta-row { border-top: 1px solid #e9eef1; }
.fi-ta-row:hover { background: #f8fbfb !important; }
/* Rijhoogte: Filament 5 legt de ruimte in .fi-ta-text (14px boven en onder), niet in de cel. */
.fi-ta-cell { padding: 6px 12px !important; }
.fi-ta-text { padding: 6px 0 !important; }
.fi-ta-text-item-label, .fi-ta-text { font-size: 12px !important; }
.fi-ta-text-item-description { font-size: 10px !important; color: #788994 !important; margin-top: 3px; }
.fi-ta-cell .fi-badge { font-size: 9px !important; font-weight: 700 !important; padding: 4px 8px !important; border-radius: 14px !important; }
.fi-badge.fi-color-primary { background: #e0f2f1 !important; color: #0f6f6e !important; }
.fi-badge.fi-color-success { background: #e3f5e9 !important; color: #15713f !important; }
.fi-badge.fi-color-info { background: #e6efff !important; color: #245fc9 !important; }
.fi-badge.fi-color-warning { background: #fff0d9 !important; color: #a95e08 !important; }
.fi-badge.fi-color-gray { background: #edf2f4 !important; color: #587080 !important; }
.fi-badge.fi-color-danger { background: #fde7e7 !important; color: #b53d35 !important; }
.fi-ta-search-field .fi-input-wrp, .fi-input-wrp { border-radius: 9px !important; box-shadow: none !important; border: 1px solid var(--line) !important; }
.fi-ta-search-field .fi-input-wrp { background: #f8fafb !important; height: 39px; }
.fi-ta-search-field input { font-size: 11px !important; }
.fi-pagination, .fi-pagination * { font-size: 11px; }
.fi-ta-record-count { color: #7d8d97; font-size: 10px; }
.fi-ta-empty-state-heading { font-family: Manrope, sans-serif; }
.fi-icon-btn { border-radius: 8px; }

/* Secties en formulieren */
.fi-section { border: 1px solid var(--line) !important; border-radius: 14px !important; box-shadow: 0 5px 16px rgba(7,24,39,.035) !important; }
.fi-section-header-heading { font-family: Manrope, sans-serif !important; font-size: 17px !important; letter-spacing: -.02em; }
.fi-fo-field-label-content { font-size: 12px; font-weight: 600; }
.fi-input { font-size: 13px !important; }

/* Notificaties, dropdowns: niets aanpassen; die zijn van Filament. */

/* ============================ 3. zoekassistent ============================ */
.aas-cijfer { font-family: Manrope, sans-serif; letter-spacing: -.03em; }
.aas-leeg { color: #95a5ad; font-style: italic; }
.aas-zoekkop {
  margin-bottom: 18px; padding: 17px 19px; border: 1px solid #c9e1e3; border-radius: 14px;
  background: linear-gradient(100deg, white 0%, #f4fbfb 58%, #e9f7f5 100%); box-shadow: 0 9px 24px rgba(10,72,76,.045);
}
.aas-zoekkop h2 { margin: 4px 0 0; font-size: 19px; font-family: Manrope, sans-serif; letter-spacing: -.02em; }
.aas-banden { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aas-band { display: flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #dce7ea; border-radius: 8px; background: white; }
.aas-band small { color: #82929c; font-size: 8px; letter-spacing: .04em; font-weight: 700; }
.aas-band b { font-size: 11px; }
.aas-band-uitleg { border-style: dashed; color: #6d8290; font-size: 10px; }
.aas-melding { margin-top: 12px; padding: 9px 12px; border: 1px solid #f2d7ae; border-radius: 9px; background: #fff7e9; color: #9b5c0d; font-size: 10px; line-height: 1.45; }

.aas-banen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 300px; gap: 14px; align-items: start; }
@media (max-width: 1180px) { .aas-banen { grid-template-columns: 1fr; } .aas-rail { position: static; } }

.aas-baan { border: 1px solid var(--line); border-radius: 14px; background: #fbfcfc; overflow: hidden; }
.aas-baankop { padding: 12px 14px; background: #f5f8f9; border-bottom: 1px solid var(--line); }
.aas-baankop-rij { display: flex; align-items: center; justify-content: space-between; }
.aas-baankop h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 14px; letter-spacing: -.02em; }
.aas-telling { padding: 3px 7px; border-radius: 12px; background: #eef4f6; color: #5b7180; font-size: 10px; font-weight: 700; }
.aas-bewijs { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 8px; font-weight: 700; letter-spacing: .02em; }
.aas-bewijs i { width: 6px; height: 6px; border-radius: 50%; }
.aas-kaarten { display: flex; flex-direction: column; gap: 10px; padding: 11px; }
.aas-kaart {
  width: 100%; padding: 12px; text-align: left; background: white; border: 1px solid var(--line); border-radius: 11px;
  box-shadow: 0 4px 12px rgba(7,24,39,.03); transition: .16s ease;
}
.aas-kaart:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(7,24,39,.07); }
.aas-kaart-gekozen { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(0,140,139,.16); }
.aas-kaart strong { display: block; font-size: 12px; }
.aas-spec { display: block; margin-top: 3px; color: #788994; font-size: 10px; }
.aas-prijs { display: block; margin-top: 8px; font-size: 17px; font-family: Manrope, sans-serif; letter-spacing: -.03em; }
.aas-prijs em { margin-left: 5px; color: #82929c; font-size: 9px; font-style: normal; font-family: "DM Sans", sans-serif; }
.aas-voet { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef2f4; color: #6d8290; font-size: 9px; line-height: 1.5; }

.aas-rail { position: sticky; top: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 5px 16px rgba(7,24,39,.035); }
.aas-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid; border-radius: 14px; font-size: 9px; font-weight: 700; }
.aas-chip i { width: 6px; height: 6px; border-radius: 50%; }
.aas-railtitel { margin: 10px 0 0; font-size: 17px; }
.aas-rail .aas-spec { font-size: 11px; color: var(--muted); }
.aas-rail .nl-plate, .aas-plaat { margin-top: 10px; }
.aas-plaat { display: inline-flex; overflow: hidden; border: 2px solid #152637; border-radius: 5px; background: #f9cf32; }
.aas-plaat > span { width: 24px; display: grid; place-items: center; background: #1767ac; color: white; font-size: 7px; font-weight: 700; }
.aas-plaat strong { padding: 4px 10px; color: #111; font-family: Manrope, sans-serif; letter-spacing: .07em; font-size: 13px; }
.aas-herkomst { margin: 8px 0 14px; color: #82939d; font-size: 9px; }
.aas-marge { padding: 15px; border: 1px solid #cbe1df; border-radius: 11px; background: linear-gradient(105deg, #f4fbfa, #edf7f6); }
.aas-marge-leeg { border-style: dashed; border-color: var(--line); background: #fafcfc; }
.aas-marge strong { display: block; margin-top: 4px; font-size: 24px; font-family: Manrope, sans-serif; letter-spacing: -.03em; }
.aas-marge p { margin: 6px 0 0; color: #7e8f98; font-size: 9px; line-height: 1.5; }
.aas-marge .aas-eindkost { margin-top: 5px; color: #5b7180; }
.aas-aanname { display: inline-block; margin-top: 6px; padding: 3px 7px; border-radius: 12px; background: #eee9fb; color: #6542a8; font-size: 8px; font-weight: 700; }
.aas-naast { display: grid; gap: 1px; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
.aas-naast > div { padding: 12px 13px; background: white; }
.aas-naast small { display: block; color: #84949d; font-size: 8px; letter-spacing: .04em; font-weight: 700; }
.aas-naast strong { display: block; margin-top: 5px; font-size: 14px; font-family: Manrope, sans-serif; }
.aas-naast span { display: block; margin-top: 4px; color: #8a99a3; font-size: 8px; line-height: 1.45; }
.aas-uitleg { margin-top: 11px; padding: 10px; border-radius: 9px; background: #eef8f7; color: #32666b; font-size: 10px; line-height: 1.45; }
.aas-acties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.aas-knop-primair { min-height: 40px; padding: 0 15px; border: 1px solid var(--teal); border-radius: 9px; background: var(--teal); color: white; font-size: 12px; font-weight: 700; box-shadow: 0 6px 16px rgba(0,140,139,.18); }
.aas-knop-primair:hover { background: #007c7b; transform: translateY(-1px); }
.aas-knop { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #294458; font-size: 12px; font-weight: 700; }
.aas-mandaat { margin: 10px 0 0; color: #82939d; font-size: 9px; line-height: 1.5; font-style: italic; }

/* ============================ 4. leespagina-patroon ============================ */
/* Eén hoofdkolom met het verhaal, een rail met de vaste feiten. Ticket 2. */
.lees-kolommen { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .lees-kolommen { grid-template-columns: 1fr; } }
.lees-hoofd { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lees-rail { display: flex; flex-direction: column; gap: 14px; }

.lees-blok { padding: 17px 19px 19px; }
.lees-blok .insight { margin-top: 14px; }
.lees-lagen { margin-top: 15px; }
.lees-lagen strong { font-size: 19px; letter-spacing: -.03em; }
.lees-uitleg { display: block; margin-top: 6px; color: #8a99a3; font-size: 9px; line-height: 1.45; }

.lees-laag { overflow: hidden; }
.lees-laagkop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 13px 17px; background: #f5f8f9; border-bottom: 1px solid var(--line); }
.lees-laagkop h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 14px; letter-spacing: -.02em; }
.lees-laagkop p { margin: 4px 0 0; color: #7c8d99; font-size: 10px; }
.lees-laagtotaal { text-align: right; white-space: nowrap; }
.lees-laagtotaal small { display: block; color: #84949d; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.lees-laagtotaal strong { display: block; margin-top: 4px; font-size: 17px; letter-spacing: -.03em; }

.lees-regels { width: 100%; border-collapse: collapse; }
.lees-regels th { padding: 9px 17px; background: white; border-bottom: 1px solid var(--line); color: #758792; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: left; }
.lees-regels td { padding: 11px 17px; border-bottom: 1px solid #eef2f4; vertical-align: top; color: #4d6373; font-size: 11px; line-height: 1.45; }
.lees-regels tbody tr:hover { background: #f8fbfb; }
.lees-regels td b { display: block; color: var(--ink); font-size: 12px; }
.lees-regels tfoot td { border-bottom: 0; background: #fafcfc; color: #66798a; font-size: 10px; font-weight: 700; }
.lees-rechts { text-align: right; white-space: nowrap; }
.lees-regels td.lees-rechts { font-size: 13px; color: var(--ink); }
.lees-klein { display: block; margin-top: 4px; color: #8a99a3; font-size: 9px; line-height: 1.5; }
.lees-geenregels { margin: 0; padding: 15px 17px; font-size: 11px; }

.lees-kaart { padding: 17px; }
.lees-kaart h3 { margin: 8px 0 0; font-family: Manrope, sans-serif; font-size: 16px; letter-spacing: -.02em; }
.lees-spec { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.lees-kaart .nl-plate { margin-top: 11px; }
.lees-status { margin-top: 11px; }
.lees-groot { display: block; margin-top: 6px; font-size: 30px; letter-spacing: -.04em; }

.lees-feiten { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 15px 0 0; padding-top: 14px; border-top: 1px solid #eef2f4; }
.lees-feiten dt { color: #8a99a3; font-size: 10px; }
.lees-feiten dd { margin: 0; color: var(--ink); font-size: 11px; font-weight: 600; text-align: right; }

.margin-break-even .eyebrow { color: #2f7a78; }
.margin-break-even h3 { margin: 7px 0 0; font-family: Manrope, sans-serif; font-size: 16px; letter-spacing: -.02em; }
.lees-bevroren { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 13px; overflow: hidden; border: 1px solid #cfe3e1; border-radius: 9px; background: #cfe3e1; }
.lees-bevroren > div { padding: 11px 12px; background: white; }
.lees-bevroren small { display: block; color: #84949d; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.lees-bevroren strong { display: block; margin-top: 5px; font-size: 16px; letter-spacing: -.03em; }
.lees-vergelijking { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed #c6ddda; }
.lees-vergelijking span { color: #5f7d84; font-size: 10px; }
.lees-vergelijking b { font-size: 12px; text-align: right; }

.lees-voorraadlast { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #eef2f4; }
.lees-voorraadlast b { font-size: 11px; }
.lees-voorraadlast .lees-klein { grid-column: 1 / -1; margin-top: 2px; }

/* ============================ 5. werkorder-leespagina ============================ */
/* Zelfde tokens en maten als deel 4; alleen wat de werkorder er extra bij vraagt. Ticket 6. */
.werk-stap { display: block; margin-top: 7px; color: #3d7d7b; font-size: 9px; font-weight: 700; line-height: 1.45; }
.werk-stap.hoger { color: #a95e08; }
.werk-stap.aas-leeg { font-weight: 400; }

.werk-afwijking { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin: 15px 0 0; padding: 12px 14px; border: 1px solid #cbe1df; border-radius: 11px; background: linear-gradient(105deg, #f4fbfa, #edf7f6); }
.werk-afwijking.hoger { border-color: #f1c982; background: linear-gradient(105deg, #fffaf0, #fff4df); }
.werk-afwijking span { color: #45636b; font-size: 11px; font-weight: 700; }
.werk-afwijking b { font-size: 17px; text-align: right; letter-spacing: -.03em; }
.werk-afwijking small { grid-column: 1 / -1; color: #7c8d99; font-size: 9px; }
p.werk-afwijking { display: block; font-size: 11px; line-height: 1.5; }

.werk-reden { padding: 17px 19px 19px; border-left: 4px solid var(--teal); }
.werk-reden.hoger { border-left-color: var(--amber); }
.werk-reden h2 { margin: 3px 0 0; font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.02em; }
.werk-redentekst { margin: 13px 0 0; color: var(--ink); font-size: 14px; line-height: 1.62; }
.werk-reden .lees-klein { margin-top: 12px; padding-top: 11px; border-top: 1px solid #eef2f4; }

.werk-sporen { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
@media (max-width: 720px) { .werk-sporen { grid-template-columns: 1fr; } }
.werk-sporen > div { padding: 13px; background: white; }
.werk-sporen small { display: block; color: #84949d; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.werk-sporen ol { margin: 9px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.werk-sporen li { padding: 6px 9px; border-radius: 7px; background: #f5f8f9; color: #8a99a3; font-size: 11px; }
.werk-sporen li.nu { background: var(--teal-100); color: #1f6a68; font-weight: 700; box-shadow: inset 3px 0 var(--teal); }
.werk-sporen .lees-uitleg { margin-top: 9px; }
.werk-sporen p { margin: 9px 0 0; font-size: 11px; line-height: 1.5; }

.werk-knop { width: 100%; margin-top: 14px; }
.lees-doorklik { color: var(--teal); text-decoration: none; }
.lees-doorklik:hover { text-decoration: underline; }
/* ============ 6. aanvraag en voertuigdossier als leespagina ============ */
/* Ticket 3. Zelfde tokens en maten als deel 4; alleen wat daar nog niet stond. */
.lees-status-uitleg { margin: 13px 0 0; color: #4d6373; font-size: 12px; line-height: 1.55; }
.lees-tussenkop { margin: 18px 0 0; font-family: Manrope, sans-serif; font-size: 13px; letter-spacing: -.02em; }
.lees-opgave { margin-top: 15px; }
.lees-opgave strong { font-size: 15px; }

/* Wat de aanbieder zelf schreef, als citaat en niet als veldwaarde. */
.lees-citaat { margin: 9px 0 0; padding: 13px 15px; border-left: 3px solid var(--teal); border-radius: 0 9px 9px 0; background: #f6fafa; color: #3f5a68; font-size: 12px; line-height: 1.6; }
.lees-citaat cite { display: block; margin-top: 8px; color: #82939d; font-size: 9px; font-style: normal; }

/* De vervolgstappen. Een stap die er nog niet is staat gestippeld en zegt dat. */
.lees-stappen { counter-reset: stap; list-style: none; margin: 15px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lees-stap { position: relative; padding: 13px 15px 13px 44px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.lees-stap::before {
  counter-increment: stap; content: counter(stap);
  position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 50%; background: var(--teal-100); color: #2f7a78; font-size: 10px; font-weight: 800;
}
.lees-stap-open { border-style: dashed; background: #fbfcfc; }
.lees-stap-open::before { background: #eef2f4; color: #7b8d99; }
.lees-stapkop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lees-stapkop h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 13px; letter-spacing: -.02em; }
.lees-stap p { margin: 7px 0 0; color: #5c7181; font-size: 11px; line-height: 1.55; }

/* Eén weg naar een ander scherm, als tekstlink in de stijl van .text-button. */
.lees-schakel { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; color: var(--teal); font-size: 11px; font-weight: 700; text-decoration: none; }
.lees-schakel::after { content: "›"; font-size: 13px; }
.lees-schakel:hover { color: #007c7b; }

/* De herkomst van de voertuiggegevens. Leeg is een eigen, zichtbare toestand. */
.lees-bron { padding: 15px; border: 1px solid #cbe1df; border-radius: 11px; background: linear-gradient(105deg, #f4fbfa, #edf7f6); }
.lees-bron .eyebrow { color: #2f7a78; }
.lees-bron h3 { margin: 7px 0 0; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.02em; }
.lees-bron-tijdstip { margin: 5px 0 0; color: #35646a; font-size: 12px; font-weight: 700; }
.lees-bron-leeg { border-style: dashed; border-color: var(--line); background: #fafcfc; }
.lees-bron-leeg .eyebrow, .lees-bron-leeg .lees-bron-tijdstip { color: #7b8d99; }
.lees-bron-breed { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 15px; }
.lees-bron-breed small { display: block; color: #84949d; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.lees-bron-breed strong { display: block; margin-top: 5px; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.02em; }

.lees-velden { margin-top: 16px; }
/* Staat in een blok dat zelf al padding heeft, dus zonder de eigen zijmarge van .lees-regels. */
.lees-velden th { padding: 9px 12px 9px 0; }
.lees-velden td { padding: 8px 12px 8px 0; }
.lees-velden td:last-child, .lees-velden th:last-child { padding-right: 0; }
/* ============================ 7. marktbeeld, eigen historie en de inkoopkandidaat ============================ */
/* Wat bij de zoekopdracht hoort staat één keer in beeld, boven de drie banen. Ticket 5. */
.aas-beeld { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; align-items: start; }
@media (max-width: 1180px) { .aas-beeld { grid-template-columns: 1fr; } }
.aas-beeldpaneel { padding: 15px 17px 16px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 5px 16px rgba(7,24,39,.035); }
.aas-beeldgetal { display: block; margin-top: 6px; font-size: 22px; font-family: Manrope, sans-serif; letter-spacing: -.03em; }
.aas-beeldleeg { display: block; margin-top: 6px; font-size: 18px; }
.aas-beeldregel { margin: 6px 0 0; color: #6d8290; font-size: 10px; line-height: 1.5; }
.aas-beeldmelding { margin: 8px 0 0; padding: 9px 12px; border: 1px solid #e2e9ec; border-radius: 9px; background: #f7fafb; color: #5b7180; font-size: 10px; line-height: 1.5; }
.aas-beeldvoet { margin: 11px 0 0; padding-top: 10px; border-top: 1px solid #eef2f4; color: #8a99a3; font-size: 9px; line-height: 1.5; }
.aas-beelduitleg { margin-bottom: 16px; }

.aas-bronnen { width: 100%; margin-top: 12px; border-collapse: collapse; }
.aas-bronnen th { padding: 7px 0; border-bottom: 1px solid var(--line); color: #758792; font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: left; }
.aas-bronnen td { padding: 8px 0; border-bottom: 1px solid #eef2f4; color: #4d6373; font-size: 11px; vertical-align: top; }
.aas-bronnen tr:last-child td { border-bottom: 0; }
.aas-bronnen .aas-rechts { text-align: right; white-space: nowrap; }
.aas-bronklein { display: block; margin-top: 2px; color: #8a99a3; font-size: 9px; }

.aas-kaartchip { display: inline-block; margin-bottom: 7px; padding: 3px 7px; border: 1px solid; border-radius: 12px; font-size: 8px; font-weight: 700; }
.aas-bewijsregel { margin: 7px 0 0; color: #7e8f98; font-size: 9px; line-height: 1.45; }
.aas-knop-link { display: inline-flex; align-items: center; text-decoration: none; }

/* De leespagina van de inkoopkandidaat leent het patroon van het voorraadvoertuig. */
.kand-herkomst { margin-top: 15px; }
.kand-herkomst strong { font-size: 15px; }
.kand-feiten { grid-template-columns: 150px 1fr; }
.kand-feiten dd { text-align: left; font-weight: 500; word-break: break-word; }
.kand-link { color: var(--teal); font-weight: 700; text-decoration: none; }
.kand-link:hover { text-decoration: underline; }
.kand-leeg { margin: 15px 0 0; font-size: 11px; }
.kand-toelichting { margin: 14px 0 0; color: #4d6373; font-size: 11px; line-height: 1.55; }
.kand-mandaat { margin: 0; padding: 13px 17px; border-top: 1px solid #eef2f4; background: #fafcfc; color: #6d8290; font-size: 10px; line-height: 1.55; font-style: italic; }
.kand-knop { margin-top: 12px; }

/* ============================ 8. verkoop- en afleverpagina ============================ */
/* Zelfde tokens en maten als deel 4 en 5; alleen wat de verkoop en de aflevering er extra bij vragen. Ticket 7. */
.lees-knop { width: 100%; margin-top: 14px; }

.verkoop-verloop { display: flex; flex-direction: column; gap: 1px; margin: 15px 0 0; padding: 0; list-style: none; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
.verkoop-verloop li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 13px; background: white; }
.verkoop-verloop li b { color: var(--ink); font-size: 12px; }
.verkoop-verloop li > span:not(.lees-uitleg) { color: var(--ink); font-size: 12px; text-align: right; }
.verkoop-verloop li .lees-uitleg { grid-column: 1 / -1; margin-top: 3px; }
.verkoop-verloop li.nu { background: var(--teal-100); box-shadow: inset 3px 0 var(--teal); }
.verkoop-verloop li.nu b, .verkoop-verloop li.nu > span:not(.lees-uitleg) { color: #1f6a68; }
.verkoop-verloop li.open b, .verkoop-verloop li.open > span:not(.lees-uitleg) { color: #95a5ad; font-style: italic; }

/* Het gerealiseerde resultaat is de uitkomst waar dit scherm om draait; die cel draagt het accent. */
.lever-uitkomst > div.uitkomst { background: linear-gradient(105deg, #f4fbfa, #edf7f6); box-shadow: inset 0 3px var(--teal); }
.lever-uitkomst > div.uitkomst small { color: #2f7a78; }

.lever-reden { display: block; margin-top: 7px; padding-left: 9px; border-left: 3px solid var(--amber); color: #7a5312; font-size: 10px; line-height: 1.55; }

/* ============================ 9. taxatie als leespagina ============================ */
/* Ticket 4. Zelfde tokens en maten als deel 4; alleen wat de taxatie er extra bij vraagt. */
.tax-marktcijfers { grid-template-columns: repeat(4, 1fr); margin-top: 15px; }
@media (max-width: 900px) { .tax-marktcijfers { grid-template-columns: repeat(2, 1fr); } }

/* De spreiding als band. De mediaan is een streep erín, nooit een los getal ernaast. */
.tax-band { margin-top: 17px; }
.tax-band-spoor { position: relative; height: 10px; margin-top: 22px; border-radius: 5px; background: linear-gradient(90deg, #dff5f3, var(--teal-100) 45%, #cfe8e6); box-shadow: inset 0 0 0 1px #cfe3e1; }
.tax-mediaan { position: absolute; top: -6px; width: 2px; height: 22px; margin-left: -1px; background: var(--teal); border-radius: 1px; }
.tax-mediaan em { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); color: #1f6a68; font-size: 8px; font-weight: 800; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.tax-band-uiteinden { display: flex; justify-content: space-between; margin-top: 8px; }
.tax-band-uiteinden span { display: flex; flex-direction: column; font-family: Manrope, sans-serif; font-size: 13px; letter-spacing: -.03em; }
.tax-band-uiteinden span:last-child { text-align: right; }
.tax-band-uiteinden em { margin-top: 2px; color: #8a99a3; font-size: 9px; font-style: normal; letter-spacing: 0; }
.tax-mediaanregel { margin: 11px 0 0; padding: 9px 12px; border: 1px dashed #cbe1df; border-radius: 9px; background: #f6fbfa; color: #1f6a68; font-size: 13px; font-weight: 700; text-align: center; }

/* De marge. Leeg is een eigen, zichtbare toestand en geen ontbrekend veld. */
.tax-margeblok { border-left: 4px solid var(--teal); }
.tax-margeblok-green { border-left-color: var(--teal); }
.tax-margeblok-amber { border-left-color: var(--amber); }
.tax-margeblok-slate { border-left-color: var(--line); background: #fbfcfc; }
.tax-margebedrag { display: block; margin-top: 14px; font-size: 30px; letter-spacing: -.04em; }
.tax-margeblok-slate .tax-margebedrag { font-size: 17px; }

.tax-som { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafcfc; }
.tax-som span { color: #5f7d84; font-size: 11px; }
.tax-som b { font-size: 13px; text-align: right; }
.tax-som .tax-som-uitkomst { padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }

.tax-grond { margin-top: 14px; padding: 13px 15px; border: 1px solid #cbe1df; border-radius: 11px; background: linear-gradient(105deg, #f4fbfa, #edf7f6); }
.tax-grond .eyebrow { color: #2f7a78; }
.tax-grond h3 { margin: 6px 0 0; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.02em; }
.tax-grond p { margin: 7px 0 0; color: #3f5a68; font-size: 12px; line-height: 1.6; }
.tax-grond-aanname { border-color: #f1c982; background: linear-gradient(105deg, #fffaf0, #fff4df); }
.tax-grond-aanname .eyebrow { color: #a95e08; }

/* ============ 10. de opvraging op de aanvraag ============ */
/* Ticket 9. Zelfde tokens en maten als deel 4 en 6; alleen wat de handeling er extra bij vraagt. */

/* Wat de laatste opvraging opleverde. Grijs is nog niets gedaan, oranje is
   opgevraagd zonder antwoord, groen is een bewaard antwoord met tijdstip. */
.lees-opvraging { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 11px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
@media (max-width: 620px) { .lees-opvraging { grid-template-columns: 1fr; } }
.lees-opvraging > div { padding: 10px 12px; background: white; }
.lees-opvraging small { display: block; color: #84949d; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.lees-opvraging strong { display: block; margin-top: 5px; font-size: 13px; letter-spacing: -.03em; }
.lees-opvraging.amber { border-color: #f1c982; background: #f1c982; }
.lees-opvraging.amber > div { background: #fffaf0; }
.lees-opvraging.amber strong { color: #a95e08; }
.lees-opvraging.green { border-color: #cbe1df; background: #cbe1df; }
.lees-opvraging.green > div { background: #f4fbfa; }
.lees-opvraging.green strong { color: #1f6a68; }

/* De handeling zelf, naast de weg naar het dossier. */
.lees-handeling { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.lees-handeling .lees-schakel { margin-top: 0; }
.lees-handeling .fi-btn.fi-size-md { min-height: 36px; padding-inline: 13px; font-size: 12px !important; }
