/* TEUsoft – stijl op basis van het InfraEasy-designsysteem (Easy-familie) */
:root {
  --accent: #f08a24;
  --accent-hover: #d97614;
  --accent-soft: #fdf0e1;
  --accent-text: #8a4a06;
  --link: #b8600c;
  --ink: #58595b;
  --ink-strong: #2b2b2b;
  --text-2: #6b6b68;
  --surface: #ffffff;
  --sunken: #f4f4f2;
  --border: #e2e2df;
  --line: #efefec;
  --danger: #b3362d;
  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.06);
  --font: 'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--sunken); color: var(--ink); font: 500 15px/22px var(--font); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; color: var(--ink-strong); }
h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink-strong); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.strong { font-weight: 700; color: var(--ink-strong); }
.mono { font-variant-numeric: tabular-nums; }
.accent { color: var(--accent-hover); }
.link { font-weight: 600; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink); }

/* topbalk */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 8px 24px; }
.brand { display: flex; flex-direction: column; gap: 3px; }
.brand-logo { display: block; height: 26px; width: auto; }
.wordmark { font-size: 24px; line-height: 26px; font-weight: 800; letter-spacing: -.5px; }
.wordmark.big { font-size: 40px; line-height: 44px; }
.wordmark .teu { color: var(--ink-strong); }
.wordmark .soft { color: var(--accent); }
.tagline { font-size: 12px; line-height: 16px; color: var(--text-2); }
.mainnav { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; }
.navitem { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 12px 8px; color: var(--ink); font-size: 13px; font-weight: 600; border-bottom: 3px solid transparent; }
.navitem svg { color: var(--ink); }
.navitem.is-active { color: var(--ink-strong); font-weight: 700; border-bottom-color: var(--accent); }
.navitem.is-active svg { color: var(--accent); }
.navitem.is-disabled { opacity: .45; cursor: default; }
.navsep { width: 1px; height: 36px; background: var(--border); margin: 0 6px 10px; }
.userbox { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink-strong); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.username { color: var(--ink-strong); font-weight: 600; }

/* pagina */
.page { max-width: 1240px; margin: 0 auto; padding: 24px 24px 48px; display: flex; flex-direction: column; gap: 20px; }
.page.wide { max-width: 1720px; }
.page.narrow { max-width: 640px; }
.page.with-subnav { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.content { flex: 999 1 720px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pagehead > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs { font-size: 13px; color: var(--text-2); }
.crumbs span { color: var(--ink-strong); font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card.flush { padding: 6px 16px 12px; gap: 6px; }
.cardhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

/* knoppen en invoer */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--ink-strong); font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #cfcfcb; color: var(--ink-strong); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink-strong); font-weight: 700; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-dark { background: var(--ink-strong); border-color: var(--ink-strong); color: #fff; font-weight: 700; }
.btn-dark:hover { color: #fff; background: #000; }
.btn-danger { color: var(--danger); }
.btn-ghost[disabled] { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, .inp:focus-visible, a:focus-visible, .tab:focus-visible, .subnav-item:focus-visible { outline: 3px solid rgba(240,138,36,.45); outline-offset: 2px; }
.inp { min-height: 36px; width: 100%; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-strong); font: 500 14px/1.2 var(--font); }
select.inp { padding-right: 4px; }
.inp:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(240,138,36,.18); }
.inp[readonly] { background: var(--sunken); color: var(--text-2); }
.inp-num { text-align: right; font-variant-numeric: tabular-nums; }
.inp-area { min-height: 96px; padding: 8px 10px; resize: vertical; line-height: 1.4; }
.search .inp { width: 260px; min-height: 44px; font-size: 15px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

/* meldingen */
.flash { max-width: 1720px; margin: 12px auto 0; padding: 10px 16px; border-radius: var(--radius-sm); background: #e8f5ec; color: #1f5f35; font-weight: 600; width: calc(100% - 48px); }
.flash-error { background: #fbe9e7; color: #8f2a22; }

/* beheer-submenu */
.subnav { flex: 1 1 200px; max-width: 230px; padding: 10px; gap: 2px; position: sticky; top: 12px; }
.subnav .eyebrow { padding: 8px 10px 10px; }
.subnav-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: 14px; }
.subnav-item:hover { background: var(--sunken); color: var(--ink-strong); }
.subnav-item.is-active { background: var(--accent-soft); color: var(--ink-strong); font-weight: 700; }
.subnav-item .count { font-size: 12px; color: var(--text-2); }

/* tabellen */
.tablewrap { overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.grid th { text-align: left; color: var(--text-2); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; padding: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.grid td { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink-strong); }
.grid-list td { white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.grid-list tbody tr { cursor: pointer; }
.grid-list tbody tr:hover { background: #faf9f6; }
.grid-list tbody tr.is-selected { background: var(--accent-soft); }
.grid-list td a { color: var(--ink-strong); }
.grid-edit td { padding: 4px 6px; }
.grid-edit .inp { min-height: 32px; font-size: 13px; min-width: 90px; }
.grid-edit .newrow td { background: #fbfbf9; }
.grid .narrow { width: 40px; text-align: center; }
.del { display: inline-flex; align-items: center; gap: 4px; color: var(--danger); font-weight: 700; cursor: pointer; }
.tablefoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 8px 4px 2px; font-size: 13px; }
.pager { display: flex; gap: 14px; align-items: center; }
.empty { padding: 48px 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pill { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--sunken); border-radius: 999px; padding: 1px 8px; }
.pill-warn { color: var(--accent-text); background: var(--accent-soft); }

/* detail: tabbladen + kolommen zoals in Access */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border); }
.tab { min-height: 44px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: transparent; color: var(--ink); font: 600 14px/1 var(--font); cursor: pointer; }
.tab.is-active { color: var(--ink-strong); font-weight: 700; border-bottom-color: var(--accent); }
.tabpanel { padding: 24px; }
.al-beveiliging { margin-top: 16px; max-width: 760px; }
.al-gebr { margin-top: 12px; width: 100%; }
.al-gebr td, .al-gebr th { padding: 6px 8px; }
.ct-kaart { margin-bottom: 12px; gap: 4px; border-left: 0; }
.ct-kop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ct-kop h2 { margin: 0; font-size: 16px; }
.ct-kaart.is-let .kp-status { background: #fdecd9; color: #a4550c; }
.ct-kaart.is-fout .kp-status { background: #fbe3e3; color: #a32b2b; }
.ct-lijst { margin: 6px 0 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.bi-kop { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.bi-kop h1 { margin: 0; }
a.tab { display: inline-flex; align-items: center; text-decoration: none; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 36px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.row .lbl { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 17px; color: var(--ink); }
.row > .inp { flex: 0 0 58%; width: 58%; }
.row > .inp-small { flex: 0 0 116px; width: 116px; }
.row .unit { width: 14px; font-size: 13px; color: var(--text-2); text-align: right; }
.row-check { justify-content: space-between; cursor: pointer; }
.row-check input { margin-left: auto; }
.row-area { flex-direction: column; align-items: stretch; gap: 6px; padding: 4px 0; }
.row-area .inp { width: 100%; }
.is-red { color: var(--danger) !important; }
.colhead { font-size: 14px; font-weight: 700; color: var(--ink-strong); padding: 6px 0 2px; }
.gap { height: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0; }
.toolbar .btn { min-height: 38px; font-size: 14px; }
.subform { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* inline bewerken (schermen zonder details-formulier) */
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 36px; }
.formactions { display: flex; gap: 8px; padding-top: 12px; }

/* dashboard */
.db-rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.db-dag, .db-geld, .db-acties { gap: 8px; }
.db-dag { display: flex; flex-direction: column; min-width: 0; }
.db-dagen { gap: 0; }
.db-dagen .db-dag + .db-dag { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
@media (min-width: 1000px) {
  .db-rij { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .db-rij > .db-geld { grid-column: span 2; }
  .db-geld .db-cijfers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 28px; }
}
.db-lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.db-lijst li { padding-left: 14px; position: relative; }
.db-lijst li::before { content: ''; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.db-lijst li.is-groen::before { background: #3aa76d; } .db-lijst li.is-oranje::before { background: #f08a24; } .db-lijst li.is-rood::before { background: #d64545; }
.db-lijst a { color: var(--ink-strong); text-decoration: none; } .db-lijst a:hover { text-decoration: underline; }
.db-cijfers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.db-cijfers li > a, .db-cijfers li { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; color: inherit; text-decoration: none; }
.db-cijfers li > a:hover b { text-decoration: underline; }
.db-cijfers span { font-size: 13px; color: var(--ink); } .db-cijfers b { font-size: 18px; color: var(--ink-strong); text-align: right; }
.db-cijfers small { grid-column: 1 / -1; font-size: 12px; color: var(--text-2); }
.db-cijfers li.is-rood b { color: #c03535; }
.db-op { color: #2e8b57; font-weight: 700; } .db-neer { color: #c03535; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { gap: 6px; }
.statline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.statline strong { font-size: 30px; line-height: 36px; font-weight: 700; color: var(--ink-strong); }
.statline strong.accent { color: var(--accent-hover); }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split .grow { flex: 999 1 560px; min-width: 0; }
.split .side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.bar { display: flex; flex-direction: column; gap: 6px; }
.barlabel { display: flex; justify-content: space-between; font-size: 14px; }
.bartrack { height: 6px; background: var(--line); border-radius: 999px; }
.barfill { height: 6px; background: var(--accent); border-radius: 999px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* inloggen */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 36px 32px; display: flex; flex-direction: column; gap: 10px; }
.login-card .flash { width: auto; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.fld .inp, .fld input { min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: 500 15px var(--font); color: var(--ink-strong); }

@media (max-width: 760px) {
  .topbar { padding: 8px 16px; }
  .page { padding: 16px; }
  .subnav { max-width: none; position: static; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; }
  .subnav .eyebrow { flex-basis: 100%; }
  .row > .inp { flex-basis: 55%; width: 55%; }
  .search .inp { width: 100%; }
}

@media (min-width: 1100px) {
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1380px) {
  .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 28px; }
}
.row > .combo { flex: 0 0 58%; width: 58%; }
.inp.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179,54,45,.12); }

/* schermenoverzicht */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.screen-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); background: var(--surface); }
.screen-tile:hover { border-color: var(--accent); background: #fffaf4; color: var(--ink); }
.search-inp { width: 280px; min-height: 44px; }
.recnav { display: flex; gap: 14px; align-items: center; font-size: 13px; }

/* topknoppen: Yzy en Help (groen), zoals in InfraEasy */
.topknop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 12px; min-width: 64px; border-radius: 14px; border: 0; font: 700 13px/1 var(--font); cursor: pointer; }
.topknop-help { background: #e6f4ec; color: #1f6b3a; }
.topknop-help:hover { background: #d5ecdf; }
.topknop-yzy { background: #fff8f0; color: #c2570c; }
.topknop-yzy span:first-child { font-size: 20px; line-height: 22px; }
.topknop-ic { position: relative; display: flex; }
.hp-stip { position: absolute; top: -2px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }

/* hulppaneel */
dialog.hp, dialog.as { border: 0; padding: 0; background: #fff; color: var(--ink); font-family: inherit; display: none; flex-direction: column; overflow: hidden; max-width: 100%; max-height: 100vh; height: 100%; margin: 0 0 0 auto; box-shadow: -10px 0 30px rgba(0,0,0,.08); }
dialog.hp { width: 720px; }
dialog.as { width: 440px; }
dialog.hp[open], dialog.as[open] { display: flex; }
dialog.hp::backdrop, dialog.as::backdrop { background: rgba(30,30,30,.38); }
.hp-kop { display: flex; align-items: center; gap: 12px; padding: 14px 20px 10px; flex-shrink: 0; }
.hp-tegel { width: 40px; height: 40px; border-radius: 12px; background: #e6f4ec; color: #2e8a50; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.as-tegel { background: #fff8f0; color: #c2570c; font-size: 20px; }
.hp-kop small { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); }
.hp-kop b { display: block; font-size: 20px; font-weight: 800; color: var(--ink-strong); }
.hp-x { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--sunken); color: var(--ink); font-size: 22px; cursor: pointer; flex-shrink: 0; }
.hp-body { padding: 6px 20px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.hp-sec { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 8px; }
.hp-p { margin: 0; font-size: 15px; line-height: 22px; }
.hp-stap { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-strong); margin-bottom: 10px; }
.hp-nr { width: 24px; height: 24px; border-radius: 50%; background: #e6f4ec; color: #1f6b3a; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hp details { border-bottom: 1px solid #f0f0ee; }
.hp summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; padding: 13px 0; font-size: 14px; font-weight: 700; color: var(--ink-strong); }
.hp summary::-webkit-details-marker { display: none; }
.hp summary::after { content: "\203A"; font-size: 20px; line-height: 18px; color: #8a8a86; transition: transform .15s; }
.hp details[open] summary::after { transform: rotate(90deg); }
.hp details p { margin: 0; padding: 0 0 13px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.hp-voet { padding: 14px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.hp-nieuw { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff8f0; border: 1px solid #f6dcc0; font-size: 14px; font-weight: 700; color: var(--ink-strong); }
.hp-ster { color: #c46a12; }
.hp-tel { margin-left: auto; background: var(--accent); color: #fff; border-radius: 10px; padding: 2px 8px; font-size: 12px; }
.hp-fb { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.hp-fb span { margin-right: auto; }
.hp-fb button { height: 36px; min-width: 56px; border-radius: 10px; border: 1px solid #d6d6d2; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.hp-fb button:hover { background: #e6f4ec; }
.hp-fb-nee { display: flex; gap: 8px; }
.hp-fb-nee input { flex: 1; height: 40px; border: 1px solid #d6d6d2; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; }
.hp-fb-nee button { height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: #2e8a50; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hp-fb-dank { font-size: 13px; font-weight: 700; color: #1f6b3a; text-align: center; }
.hp-anim { position: relative; border-radius: 16px; background: var(--sunken); padding: 12px 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.hp-fr { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; border: 1px solid #e2e2de; background: #fff; }
.hp-fr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .45s ease; }
.hp-fr img.aan { opacity: 1; }
.hp-bs { min-height: 42px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink-strong); text-align: center; max-width: 520px; }
.hp-pr { display: flex; gap: 6px; align-items: center; }
.hp-pr i { width: 8px; height: 8px; border-radius: 50%; background: #d0d0cc; transition: all .2s; }
.hp-pr i.aan { background: var(--accent); width: 20px; border-radius: 4px; }
.hp-klein { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; color: #8a8a86; }
.hp-klein a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .hp-fr img { transition: none; } }

/* Yzy */
.as-lijst { flex: 1; overflow-y: auto; padding: 8px 18px 10px; display: flex; flex-direction: column; gap: 10px; background: var(--sunken); }
.as-b { max-width: 90%; padding: 10px 13px; font-size: 14px; line-height: 1.5; font-weight: 600; white-space: pre-wrap; word-wrap: break-word; }
.as-ik { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; }
.as-ai { align-self: flex-start; background: #fff; border: 1px solid var(--border); color: var(--ink-strong); border-radius: 16px 16px 16px 4px; }
.as-act { align-self: flex-start; display: flex; gap: 8px; flex-wrap: wrap; }
.as-act a, .as-chips button { border: 1px solid var(--accent); background: #fff; color: #c2570c; border-radius: 999px; padding: 0 14px; min-height: 40px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; }
.as-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 18px 0; background: var(--sunken); }
.as-chips button { border-color: var(--border); color: var(--ink-strong); font-weight: 700; }
.as-inv { display: flex; gap: 8px; padding: 12px 18px 18px; border-top: 1px solid var(--line); background: #fff; }
.as-inv input { flex: 1; min-width: 0; height: 46px; border: 1px solid #d6d6d2; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 15px; }
.as-inv button { width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; }
.as-open { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; border: 1px solid var(--accent); background: #fff8f0; color: #c2570c; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; width: 100%; }

/* wat is er nieuw */
.wn-r { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.wn-r:first-child { border-top: 0; }
.wn-r b { display: block; font-size: 18px; font-weight: 800; color: var(--ink-strong); }
.wn-i { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; padding: 6px 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink-strong); }
.wn-t { font-size: 11px; font-weight: 800; border-radius: 8px; height: 22px; line-height: 22px; text-align: center; text-transform: uppercase; letter-spacing: .3px; }
.wn-t.n { background: #fdeedd; color: #9a520d; } .wn-t.v { background: #e8f0fb; color: #1d4f91; } .wn-t.o { background: #e4f3e9; color: #226b3d; }
@media (max-width: 640px) { .wn-r, .wn-i { grid-template-columns: 1fr; gap: 4px; } }

/* tweestapsverificatie */
.totp-sleutel code{display:block;font-size:18px;letter-spacing:1px;padding:10px 12px;background:var(--surface-2,#f3f5f7);border-radius:8px;text-align:center;user-select:all}

/* ---------- lettergrootte per gebruiker (via je naam rechtsboven) ---------- */
html[data-lg="klein"] body { zoom: .9; }
html[data-lg="groot"] body { zoom: 1.12; }
.usermenu { position: relative; }
.usermenu > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px; border-radius: var(--radius-sm); }
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:hover { background: var(--sunken); }
.usermenu-pijl { font-size: 12px; color: var(--text-2); }
.usermenu-paneel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.usermenu-kop { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); }
.lg-keuze { display: flex; gap: 6px; }
.lg-keuze button { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 600 12px/1.2 var(--font); cursor: pointer; }
.lg-keuze button span { font-weight: 800; color: var(--ink-strong); }
.lg-keuze .lg-klein span { font-size: 13px; } .lg-keuze .lg-normaal span { font-size: 17px; } .lg-keuze .lg-groot span { font-size: 22px; }
.lg-keuze button.is-aan { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.usermenu-item { display: block; padding: 8px 4px 2px; border-top: 1px solid var(--line); font-weight: 600; }

/* ---------- planbord ---------- */
.page.pb-page { max-width: none; padding: 12px 16px 24px; }
.pb-pagina { display: flex; flex-direction: column; gap: 10px; }
.pb-kop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.pb-kop-titel { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pb-kop-titel .muted { font-size: 14px; }
.pb-knoppen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.pb-aantallen { min-height: 36px; display: flex; align-items: center; white-space: nowrap; font-size: 14px; color: var(--text-2); font-weight: 600; }
.pb-knop { min-height: 36px; padding: 0 10px; gap: 6px; font-size: 14px; }
.pb-knop.is-disabled { opacity: .45; cursor: not-allowed; }
.pb-knop.is-open { border-color: #2f80ed; background: #eef4fd; }
.pb-sep { width: 1px; height: 26px; background: var(--border); }
.pb-teller { font-size: 12px; font-weight: 700; background: var(--sunken); border-radius: 999px; padding: 0 7px; line-height: 18px; color: var(--ink); }
.pb-teller-blauw { background: #2f80ed; color: #fff; }
.pb-balk { position: sticky; top: 0; z-index: 20; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pb-veld { display: flex; flex-direction: column; gap: 4px; }
.pb-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); }
.pb-balk .inp { min-height: 36px; font-size: 14px; }
.pb-datum { display: flex; align-items: center; gap: 4px; }
.pb-datum .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
.pb-pijl { min-width: 36px; font-size: 20px !important; }
.pb-dag { width: 64px; padding: 0 4px !important; font-weight: 700; text-align: center; }
.pb-dagnaam { margin-left: 6px; font-weight: 700; color: var(--ink-strong); }
.pb-seg { display: flex; gap: 2px; padding: 2px; background: var(--sunken); border-radius: var(--radius-sm); }
.pb-seg a { min-height: 32px; display: flex; align-items: center; padding: 0 14px; border-radius: 6px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.pb-seg a.is-aan { background: var(--surface); color: var(--ink-strong); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.pb-zoek { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; flex-basis: 100%; }
.pb-zoek .inp { width: 160px; }
.pb-uit { display: flex; align-items: center; color: var(--text-2); opacity: .6; width: 120px !important; }
.pb-melding { margin: 0; align-self: center; color: var(--danger); font-weight: 600; font-size: 14px; }
.pb-melding:empty { display: none; }
.pb-tabellen { display: flex; flex-direction: column; gap: 0; --pb-hoogte: calc(100vh - 290px); }
.pb-blok { padding: 0; gap: 0; min-width: 0; }
.pb-titel { margin: 0; padding: 6px 12px 4px; font-size: 14px; line-height: 20px; }
.pb-titel .muted { font-size: 12px; font-weight: 600; }
.pb-scroll { overflow: auto; border-top: 1px solid var(--border); min-height: 80px; }
.pb-boven .pb-scroll { height: calc(var(--pb-hoogte) * var(--pb-boven) / 100); }
.pb-onder .pb-scroll { height: calc(var(--pb-hoogte) * (100 - var(--pb-boven)) / 100); }
.pb-vol .pb-scroll { height: var(--pb-hoogte); }
.pb-tabel { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11.5px; line-height: 15px; }
.pb-tabel th { position: sticky; top: 0; z-index: 1; background: #fafaf8; text-align: left; color: var(--text-2); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; padding: 5px 4px; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-tabel td { padding: 1px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-strong); height: 21px; }
.pb-tabel tbody tr:hover td { background: #fbf6ef; }
.pb-tabel tr.is-gevonden td { background: #fff1d6; }
.pb-tabel tr.is-bezig { opacity: .5; }
.pb-c { text-align: center; }
.pb-leeg { text-align: center; padding: 12px !important; }
.pb-stip { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pb-jn { display: inline-block; min-width: 28px; text-align: center; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 5px; line-height: 14px; border: 1px solid var(--border); color: var(--ink); background: var(--surface); }
.pb-jn.is-ja { background: #fff4e8; border-color: var(--accent); color: #a85808; }
.pb-kies { appearance: none; -webkit-appearance: none; width: 100%; height: 18px; padding: 0 2px; border: 1px solid transparent; border-radius: 4px; background: transparent; font: inherit; color: var(--ink-strong); cursor: pointer; text-overflow: ellipsis; }
.pb-kies:hover, .pb-kies:focus { border-color: #c9c9c4; background: var(--surface); }
.pb-gereed { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.pb-splitter { display: flex; justify-content: center; }
.pb-greep { width: 100%; height: 16px; border: 0; background: transparent; cursor: row-resize; display: flex; align-items: center; justify-content: center; padding: 0; touch-action: none; }
.pb-greep span { display: block; width: 64px; height: 6px; border-radius: 999px; background: #c9c9c4; }
.pb-greep:hover span, .pb-greep:focus-visible span { background: var(--accent); }
.pb-uitleg { margin: 0; }

/* ---------- venster Opzetten / Afzetten ---------- */
.tm-dlg { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.tm-dlg::backdrop { background: rgba(43,43,43,.45); }
.tm-inhoud { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.tm-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.tm-kop h2 { font-size: 20px; line-height: 26px; }
.tm-kop h2 .muted { font-size: 14px; font-weight: 600; }
.tm-sluit { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; color: var(--text-2); cursor: pointer; }
.tm-sluit:hover { background: var(--sunken); }
.tm-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.tm-info { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 2px 12px; font-size: 14px; line-height: 21px; color: var(--ink-strong); }
.tm-info > span:nth-child(odd) { color: var(--text-2); }
.tm-acties { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.tm-veld { display: flex; flex-direction: column; gap: 4px; }
.tm-veld label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); }
.tm-veld .inp { height: 34px; min-height: 34px; width: 190px; font-size: 15px; font-weight: 700; }
.tm-rond { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tm-licht { background: #4aa3f0; } .tm-blauw { background: #2f6fd6; } .tm-rood { background: #d93a3a; } .tm-groen { background: #3a9d5d; }
button.tm-rond { border: 0; padding: 0; cursor: pointer; } button.tm-rond:hover:not(:disabled) { filter: brightness(1.08); } button.tm-rond:disabled { cursor: not-allowed; }
.tm-rond.is-bezig { opacity: .6; cursor: progress; }
.tm-koppel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; } .tm-koppel label { font: 400 12px/1.2 var(--font-lbl); color: var(--text-2); } .tm-koppel select { max-width: 420px; flex: 1 1 260px; }
.tm-rond.is-uit { opacity: .4; cursor: not-allowed; }
.tm-reset { height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-strong); font: 600 13px/1 var(--font); cursor: pointer; }
.tm-reset:hover { border-color: #cfcfcb; }
.tm-melding { align-self: center; font-size: 13px; font-weight: 600; color: var(--danger); }
.tm-melding.is-ok { color: #1f6b3a; }
.tm-regels { border: 1px solid var(--border); border-radius: 12px; overflow: auto; max-height: 360px; }
.tm-regels table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.tm-regels th { position: sticky; top: 0; background: #fafaf8; text-align: left; color: var(--text-2); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tm-regels td { padding: 6px 10px; border-bottom: 1px solid var(--line); color: var(--ink-strong); vertical-align: top; }
.tm-regels td:first-child { white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.tm-voet { display: flex; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--border); background: #fafaf8; }
.tm-regels td:nth-child(2) { white-space: nowrap; }

/* ---------- planbord: kolommen per gebruiker ---------- */
.pb-tabel { min-width: 100%; }
.pb-tabel th { position: sticky; cursor: grab; user-select: none; }
.pb-tabel th.is-sleep { opacity: .4; }
.pb-tabel th.is-doel { box-shadow: inset 3px 0 0 var(--accent); }
.pb-rand { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 2; }
.pb-rand::after { content: ""; position: absolute; left: 6px; top: 5px; bottom: 5px; width: 1px; background: var(--border); }
.pb-rand:hover::after, .pb-rand.is-actief::after { width: 3px; left: 4px; background: var(--accent); border-radius: 2px; }
.pb-r { text-align: right; font-variant-numeric: tabular-nums; }
.pb-kolpaneel { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(380px, 100vw); padding: 0; border: 0; border-left: 1px solid var(--border); box-shadow: -8px 0 24px rgba(0,0,0,.1); display: none; flex-direction: column; }
.pb-kolpaneel[open] { display: flex; }
.pb-kolpaneel::backdrop { background: rgba(43,43,43,.15); }
.pb-kol-kop { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.pb-kol-kop h2 { font-size: 18px; }
.pb-kol-uitleg { margin: 0; padding: 10px 18px 4px; font-size: 13px; color: var(--text-2); }
.pb-kol-lijst { flex: 1 1 auto; overflow: auto; padding: 4px 12px 12px; }
.pb-kol-item { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 6px; border-radius: 6px; font-size: 14px; color: var(--ink-strong); cursor: grab; }
.pb-kol-item:hover { background: var(--sunken); }
.pb-kol-item.is-sleep { opacity: .4; }
.pb-kol-item.is-doel { box-shadow: inset 0 3px 0 var(--accent); }
.pb-kol-item input { width: 16px; height: 16px; accent-color: var(--accent); }
.pb-kol-greep { color: #b5b5b0; letter-spacing: -2px; }
.pb-kol-groep { margin-left: auto; font-size: 11px; color: var(--text-2); }
.pb-kol-voet { display: flex; justify-content: space-between; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); background: #fafaf8; }

/* planbord: velden direct wijzigen */
.pb-inv { width: 100%; height: 18px; padding: 0 1px; border: 1px solid transparent; border-radius: 4px; background: transparent; font: inherit; color: var(--ink-strong); text-overflow: ellipsis; }
.pb-r .pb-inv { text-align: right; }
.pb-inv:hover, .pb-inv:focus { border-color: #c9c9c4; background: var(--surface); }
.pb-inv:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.pb-inv.is-fout { border-color: var(--danger); background: #fdecea; }

/* voorwaardelijke opmaak zoals in het Access-planbord */
.pb-tabel td.pb-klaar { background: #e6edd7; }   /* opgezet / leeg-vol / ingeleverd */
.pb-tabel td.pb-adr { background: #efd3d2; }     /* ADR-tank */
.pb-tabel td.pb-ja { background: #e6edd7; }
.pb-tabel td.pb-nee { background: #efd3d2; }
.pb-tabel td.pb-ja .pb-jn, .pb-tabel td.pb-nee .pb-jn { border: 0; background: transparent; color: #0000ff; text-decoration: underline; font-weight: 600; }
.pb-inv::-webkit-calendar-picker-indicator { display: none !important; }
.pb-stip.pb-stip-los { margin-right: 0; }

/* één balk: icoonknoppen zonder tekst (naam bij hover) */
.pb-balk .pb-knoppen { margin-left: auto; }
.pb-ico { position: relative; width: 38px; min-width: 38px; padding: 0 !important; justify-content: center; }
.pb-teller-hoek { position: absolute; top: -7px; right: -7px; min-width: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.pb-logo { width: 20px; height: 20px; object-fit: contain; }

/* planbord: rechtermuisknop-menu en venster Dupliceren */
.pb-menu { position: fixed; z-index: 50; min-width: 150px; padding: 4px; background: var(--surface, #fff); border: 1px solid var(--line, #d6dbe3); border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .16); }
.pb-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: 0; background: none; border-radius: 6px; font: inherit; font-size: 13px; color: inherit; text-align: left; cursor: pointer; }
.pb-menu button:hover, .pb-menu button:focus-visible { background: var(--hover, #eef2f8); outline: none; }
.pb-menu svg { width: 16px; height: 16px; flex: none; }
.pb-dup { width: min(360px, calc(100vw - 32px)); }
.pb-dup-form { padding: 14px 16px; }
.pb-dup-rij { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; }
.pb-dup-rij[hidden] { display: none; }
.pb-dup-rij input[type=number] { width: 64px; margin-left: auto; padding: 4px 6px; }
.pb-dup-melding { min-height: 1em; margin: 6px 0 0; color: #b42318; font-size: 12px; }

/* ritten (Access: formulier Ritten) */
.rl-balk { align-items: flex-end; }
.rl-balk .pb-veld .inp { width: 108px; }
.rl-balk #rl-rit { width: 96px; } .rl-balk #rl-week, .rl-balk #rl-voet { width: 76px; }
.rl-blok { padding: 0; gap: 0; min-width: 0; }
.rl-scroll { overflow: auto; height: calc(100vh - 230px); min-height: 240px; }
.rl-tabel tfoot td { position: sticky; bottom: 0; z-index: 1; background: #f3f2ee; border-top: 1px solid var(--border); font-weight: 700; padding: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-tabel th { padding-right: 15px; position: sticky; }
.rl-tabel th.rt, .rl-tabel td.rt { text-align: right; }
.rl-tabel td.mid { text-align: center; }
.rl-tabel th[aria-sort] .rl-kl { color: var(--ink-strong); }
.rl-tabel th.is-filter { background: #fff1d6; }
.rl-kop { position: absolute; right: 8px; z-index: 3; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--text-2); font-size: 10px; line-height: 1; padding: 2px 3px; border-radius: 4px; cursor: pointer; }
.rl-kop:hover, .rl-kop:focus-visible { background: var(--hover, #eef2f8); color: var(--ink-strong); outline: none; }
.rl-tabel td.rl-rood { color: #d92d20; }
.rl-tabel td.rl-groen { color: #22b14c; }
.rl-pil { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 700 11px/18px var(--font-lbl); white-space: nowrap; }
.rl-pil.is-nieuw { background: #fde8e7; color: #b42318; }
.rl-pil.is-gereed { background: #fff1de; color: #a85808; }
.rl-pil.is-gefactureerd { background: #e3f5e9; color: #1d7a3e; }
.rl-marge { font-weight: 700; } .rl-marge.is-rood { color: #c62f2f; } .rl-marge.is-oranje { color: #c26a0a; } .rl-marge.is-groen { color: #1d7a3e; }
.rl-stip { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.rl-stip.is-nieuw { background: #e5484d; } .rl-stip.is-gereed { background: #f08a24; } .rl-stip.is-gefactureerd { background: #22b14c; }
.rl-status .rl-tel { margin-left: 4px; font-weight: 500; color: var(--text-2); }
.rl-status a.is-aan .rl-tel { color: inherit; }
.rl-tabel tr.rl-dag td { position: sticky; left: 0; background: #f6f4f1; border-top: 1px solid var(--border); padding: 7px 10px; font-size: 12px; }
.rl-tabel tr.rl-dag td b { font: 800 12px var(--font); color: var(--ink-strong); text-transform: capitalize; margin-right: 12px; }
.rl-tabel tr.rl-dag td span { color: var(--text-2); }
.rl-tabel td.rl-nul { background: #dfa7a5; }
.rl-tabel td.rl-grijs { color: #a3a3a3; }
.rl-check { margin: 0; width: 13px; height: 13px; vertical-align: middle; }
.rl-meer { padding: 8px 12px; min-height: 1px; }
.rl-voet { margin: 0; padding: 6px 12px; border-top: 1px solid var(--line); }
.rl-kopmenu { min-width: 200px; }
.rl-kopfilter { display: flex; align-items: center; gap: 6px; padding: 6px 10px; flex-wrap: wrap; }
.rl-kopfilter .pb-lbl { width: 100%; }
.rl-kopfilter .inp { flex: 1; min-width: 0; min-height: 30px; font-size: 13px; }

/* popup Portbase statusmeldingen */
.tm-dlg.tm-breed { width: min(1100px, calc(100vw - 32px)); }
.pbs-regels { max-height: calc(100vh - 290px); }
.pbs-regels td { white-space: nowrap; }
.pbs-regels td:last-child { white-space: normal; }
.pbs-type { font-weight: 700; }
.tm-acties .pbs-inp { width: 190px; font-size: 14px; font-weight: 400; }
.tm-reset.is-uit { opacity: .45; cursor: not-allowed; display: inline-flex; align-items: center; }
.pbs-tabel { table-layout: fixed; }
.pbs-regels td { overflow: hidden; text-overflow: ellipsis; }
.pbs-regels td:last-child { overflow-wrap: anywhere; }

/* rit-popup (Access: Ritten_Details) */
.tm-dlg.rp-dlg { width: fit-content; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
.rp-inhoud { display: flex; flex-direction: column; max-height: calc(100vh - 16px); }
.rp { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 16px); }
.rp-kop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 7px 16px; border-bottom: 1px solid var(--border); }
.rp-kop h2 { margin: 0; font-size: 19px; line-height: 24px; font-weight: 800; color: var(--ink-strong); }
.rp-kop h2 .muted { font-size: 14px; font-weight: 600; }
.rp-balk { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; justify-content: center; }
.rp-knop { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.rp-knop.is-uit { opacity: .45; cursor: not-allowed; }
.rp-sluit { min-height: 32px; padding-top: 0; padding-bottom: 0; }
.rp-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; padding: 6px 16px 0; background: #f4f4f2; border-bottom: 1px solid #d6d6d2; }
.rp-tab { min-height: 29px; min-width: 96px; padding: 0 14px; border: 1px solid #d6d6d2; border-radius: 10px 10px 0 0; margin-bottom: -1px; background: #e9e9e6; color: var(--text-2); font: 600 13px/1 var(--font); cursor: pointer; }
.rp-tab.is-aan { background: #ffffff; border-bottom-color: #ffffff; color: var(--ink-strong); font-weight: 800; box-shadow: inset 0 3px 0 var(--accent); }
.rp-body { display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; gap: 30px; padding: 8px 18px 8px; overflow: auto; }
.rp-body[hidden] { display: none; }
.rp-leeg { display: block; min-height: 300px; padding: 40px 20px; }
.rp-kolom.k1, .rp-kolom.k2 { --cw: 200px; }
.rp-kolom.k3 { --cw: 300px; }
.rp-kolom { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-rij { display: grid; grid-template-columns: 112px max-content; align-items: center; gap: 6px; }
.rp-rij:has(textarea) { align-items: start; }
.rp-rij:has(textarea) .rp-lbl { padding-top: 4px; }
.rp-lbl { font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 14px; }
.rp-ster { color: var(--accent); }
.rp-ctrl { min-width: 0; }
.rp-ctrl > .rp-inp, .rp-ctrl > select.rp-inp, .rp-ctrl > .rp-twee, .rp-ctrl > .rp-memo { width: var(--cw) !important; }
.rp .inp.rp-inp { height: 24px; min-height: 24px; width: 100%; min-width: 0; padding: 0 6px; font-size: 12.5px; border-radius: 5px; }
.rp select.inp.rp-inp { padding-right: 2px; }
.rp .inp.rp-inp.rt { text-align: right; }
.rp .inp.rp-vet { font-weight: 800; }
.rp .inp.rp-inp:disabled, .rp .inp.rp-alleen { background: #f4f4f2; color: var(--text-2); }
.rp .inp.is-fout { border-color: var(--danger); }
.rp-memo { width: 100%; min-width: 0; padding: 4px 6px; font-size: 12.5px; line-height: 16px; border-radius: 5px; resize: vertical; }
.rp-vink { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); flex: none; }
.rp-groep { display: flex; align-items: center; gap: 5px; min-width: 0; }
.rp-groep > :first-child.rp-inp, .rp-groep > :first-child.rp-twee { flex: 0 0 var(--cw); width: var(--cw) !important; }
.rp-groep > .rp-vink:first-child + .rp-groei, .rp-groep > .rp-vink:first-child + .rp-alleen { flex: 0 0 calc(var(--cw) - 21px); width: calc(var(--cw) - 21px) !important; }
.rp-groei > select { width: 100% !important; }
.rp-twee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; min-width: 0; }
.rp-twee-cont { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.rp-tus { height: 5px; }
.rp-sectie { margin: 4px 0 1px; font-size: 11.5px; font-weight: 800; color: var(--ink-strong); text-transform: uppercase; letter-spacing: .5px; }
.rp-sectie:first-child { margin-top: 0; }
.rp-hint { font-size: 12px; color: var(--text-2); }
.rp-i { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff !important; font: 800 11px/18px var(--font); text-align: center; text-decoration: none; }
.rp-i.is-uit { opacity: .35; }
.rp-plus { flex: none; width: 18px; height: 18px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--accent); border-radius: 50%; background: var(--surface); color: var(--accent) !important; font-weight: 800; font-size: 13px; line-height: 1; text-decoration: none; }
.rp-plus svg { width: 10px; height: 10px; }
.rp-plus:hover, .rp-i:hover { filter: brightness(.92); }
.rp-plus.is-uit { opacity: .35; }
.rp-pb { flex: none; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.rp-pb.is-uit { opacity: .45; cursor: not-allowed; }
button.rp-pb { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; } button.rp-pb:hover:not(:disabled) { background: #eef3fb; } button.rp-pb:disabled { cursor: not-allowed; }
.rp-voorgemeld select { background: #cddcaf; }
.rp-voet { padding: 5px 16px; border-top: 1px solid var(--border); background: #fafaf8; }
.rp-status { font-size: 12px; font-weight: 600; color: #1f6b3a; }
.rp-status.is-fout { color: var(--danger); }

/* eenheid met EasyTrip (Access): labels Segoe UI 9 pt, invoervelden Calibri 10 pt — overal */
:root { --font-lbl: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif; --font-inp: Calibri, Carlito, 'Segoe UI', system-ui, sans-serif; }
.row .lbl, .lbl, .pb-lbl, .tm-veld label, .rp-lbl, .fld, .pb-dup-rij, .rl-kopfilter .pb-lbl {
  font-family: var(--font-lbl) !important; font-size: 12px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text-2);
}
.inp, .fld .inp, .fld input, .rp .inp.rp-inp, .rp-memo, .tm-veld .inp, .pb-balk .inp, .rl-balk .inp, .pb-dup-rij input, .rl-kopfilter .inp, .inp-area {
  font-family: var(--font-inp) !important; font-size: 13.33px !important; font-weight: 400 !important;
}
.pb-tabel, .pb-tabel .pb-inv, .pb-tabel select { font-family: var(--font-inp); }
/* Sluiten: overal dezelfde knop rechtsboven */
.knop-sluit { min-height: 32px !important; padding: 0 14px !important; font: 600 13px/1 var(--font-lbl) !important; margin-left: auto; flex: none; }
.rp .inp.rp-vet { font-weight: 700 !important; }
/* datumveld met kalenderknopje */
.dt-veld { position: relative; display: inline-flex; align-items: center; width: 100%; min-width: 0; }
.dt-veld > input[data-datum] { padding-right: 26px !important; }
.dt-knop { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 5px; background: transparent; color: var(--accent); cursor: pointer; }
.dt-knop:hover { background: #fdf0e2; }
.dt-kies { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.rp-ctrl > .dt-veld { width: var(--cw); }
.pb-datum .dt-veld { width: auto; }
/* popup voor nieuw/openen (klant, charter …) bovenop de rit */
.tm-dlg.sub-dlg { width: min(1100px, calc(100vw - 40px)); max-height: calc(100vh - 40px); }
.sub-inhoud, .sub-pop, .sub-pop form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 40px); }
.sub-kop { gap: 10px; padding: 8px 16px; }
.sub-kop h2 { margin: 0 auto 0 0; font-size: 19px; }
.sub-kop .knop-sluit { margin-left: 0; }
.sub-opslaan { min-height: 32px !important; padding: 0 16px !important; }
.sub-melding { font-size: 12px; font-weight: 600; color: #1f6b3a; }
.sub-melding.is-fout { color: var(--danger); }
.sub-body { overflow: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.tm-dlg.sub-dlg { height: auto; }
.sub-pop .content { min-height: 0; flex: 0 1 auto; padding: 0; max-width: none; margin: 0; }
/* tablet (tot en met iPad mini): rit-popup in twee kolommen */
@media (max-width: 1180px) {
  .rp-body { grid-template-columns: max-content max-content; }
  .rp-kolom.k1 { grid-row: span 2; }
}
@media (max-width: 820px) {
  .rp-kolom.k1, .rp-kolom.k2 { --cw: 176px; }
  .rp-kolom.k3 { --cw: 176px; }
  .rp-rij { grid-template-columns: 100px max-content; }
  .rp-body { gap: 16px; padding: 8px 10px; }
  .rp-balk { justify-content: flex-start; }
}

/* visuele planning */
.vp-balk { gap: 8px 10px; }
.vp-seg button { border: 0; background: transparent; padding: 0 12px; min-height: 32px; border-radius: 8px; font: 600 13px/1 var(--font); color: var(--text-2); cursor: pointer; }
.vp-seg button.is-aan { background: #ffffff; color: var(--ink-strong); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.vp-legenda { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-left: auto; font: 400 12px/16px var(--font-lbl); color: var(--text-2); }
.vp-legenda span { display: inline-flex; align-items: center; gap: 5px; }
.vp-legenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.vp-legenda i.is-zonder { border: 1.5px dashed var(--text-2); box-sizing: border-box; }
.vp-bord-kaart { padding: 0; overflow: hidden; }
.vp-scroll { overflow: auto; height: calc(100vh - 190px); min-height: 300px; }
.vp-raster { position: relative; }
.vp-kop { display: flex; position: sticky; top: 0; z-index: 4; background: #fafaf8; border-bottom: 1px solid var(--border); }
.vp-hoek { flex: none; width: 170px; position: sticky; left: 0; z-index: 5; background: #fafaf8; border-right: 1px solid var(--border); }
.vp-dagkop { flex: none; box-sizing: border-box; border-right: 1px solid #d6d6d2; }
.vp-dagkop b { display: flex; align-items: center; gap: 6px; padding: 6px 8px 2px; font-size: 13px; font-weight: 800; color: var(--ink-strong); white-space: nowrap; }
.vp-dagkop b i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.vp-uren { position: relative; display: block; height: 18px; }
.vp-uren span { position: absolute; top: 0; height: 18px; padding-left: 3px; border-left: 1px solid #e9e9e6; font-size: 10px; color: var(--text-2); box-sizing: border-box; }
.vp-rij { display: flex; border-bottom: 1px solid #eeeeec; }
.vp-rij.is-open { background: #fff8ee; }
.vp-naam { flex: none; width: 170px; box-sizing: border-box; padding: 5px 10px; position: sticky; left: 0; z-index: 3; background: #ffffff; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.vp-rij.is-open .vp-naam { background: #fff3e0; color: #a85808; justify-content: flex-start; padding-top: 8px; }
.vp-naam span { font: 700 12px/15px var(--font-lbl); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-naam small { font: 400 10px/13px var(--font-lbl); color: var(--text-2); }
.vp-spoor { position: relative; flex: none; }
.vp-blok { position: absolute; box-sizing: border-box; height: 24px; padding: 0 4px; border: 1px solid; border-radius: 5px; color: #ffffff !important; font: 700 11px/22px var(--font-inp); white-space: nowrap; overflow: hidden; text-decoration: none; cursor: grab; user-select: none; touch-action: none; }
.vp-blok.is-zonder { background: #ffffff; border-style: dashed; border-width: 1.5px; color: var(--ink-strong) !important; font-weight: 600; }
.vp-blok:hover { filter: brightness(1.08); z-index: 2; }
.vp-blok:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 1px; }
.vp-blok.is-sleep { opacity: .85; cursor: grabbing; z-index: 6; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.vp-rand { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }

/* Beheer › Koppelingen */
.kp-kaart { gap: 12px; }
.kp-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kp-kop h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.kp-status { font: 700 12px/1 var(--font-lbl); padding: 5px 10px; border-radius: 999px; background: #efefec; color: var(--text-2); }
.kp-status.is-aan { background: #e6edd7; color: #1f6b3a; }
.kp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 28px; }
.kp-kol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kp-sub { margin: 6px 0 2px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-strong); }
.kp-rij { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 10px; }
.kp-rij .lbl { padding-top: 8px; }
.kp-rij input[type=checkbox] { margin-top: 9px; width: 16px; height: 16px; accent-color: var(--accent); }
.kp-ctrl .inp { min-height: 34px; }
.kp-kort { max-width: 110px; }
.kp-hint { margin: 4px 0 0; font: 400 12px/16px var(--font-lbl); color: var(--text-2); }
.kp-test { min-height: 34px !important; }
.kp-melding { font: 600 13px/1.3 var(--font-lbl); }
.kp-melding.is-ok { color: #1f6b3a; } .kp-melding.is-fout { color: var(--danger); }
@media (max-width: 560px) { .kp-rij { grid-template-columns: minmax(0, 1fr); } }
.usermenu-naam { font-weight: 700; color: var(--ink-strong); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
/* Help als menuknop (op de plek van Alle schermen) */
.navitem-help { border: 0; border-bottom: 3px solid transparent; background: transparent; font-family: inherit; cursor: pointer; }
.topknop-help .navitem-ic { position: relative; display: flex; color: #1f8a4c; }
.topknop-help .navitem-ic svg { width: 20px; height: 20px; }
.navitem-help:hover { color: var(--ink-strong); }
.kp-log { border-top: 1px solid var(--line); padding-top: 8px; }
.kp-logtabel { width: 100%; border-collapse: collapse; font: 400 12px/16px var(--font-lbl); }
.kp-logtabel td { padding: 3px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kp-logtabel td:first-child { white-space: nowrap; color: var(--text-2); width: 110px; }
.kp-logtabel tr.is-fout td:last-child { color: var(--danger); }

/* ---------- Materieel (uit InfraEasy) ---------- */
.mt-tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--border); }
.mt-tab { padding: 9px 14px; font: 600 14px/1 var(--font-lbl); color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mt-tab.is-aan { color: var(--ink-strong); border-bottom-color: var(--accent); }
.mt-badge { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #eef0ee; font-size: 11px; text-align: center; }
.mt-balk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.mt-balk .inp { width: auto; height: 38px; } .mt-balk input[type=search] { min-width: 280px; flex: 1 1 280px; max-width: 420px; }
.mt-lijst { padding: 0; overflow: hidden; }
.mt-kop, .mt-rij { display: grid; grid-template-columns: 52px 90px minmax(0,1.2fr) minmax(0,1.3fr) minmax(0,1.4fr) 100px 40px; align-items: center; gap: 10px; padding: 0 16px; }
.mt-kop { background: #fafaf8; font: 700 11px/1 var(--font-lbl); color: var(--text-2); text-transform: uppercase; letter-spacing: .4px; height: 36px; }
.mt-rij { height: 52px; border-top: 1px solid #f1f1f1; font-size: 13px; color: var(--ink-strong); text-decoration: none; }
.mt-rij:hover { background: #fafafa; }
.mt-rij > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-cat { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 16px; height: 40px; border: 0; border-top: 1px solid var(--border); background: #fcfcfb; font: 700 13px/1 var(--font-lbl); color: var(--ink-strong); cursor: pointer; text-align: left; }
.mt-pijl { transition: transform .15s; color: var(--text-2); } .mt-cat[aria-expanded=false] .mt-pijl { transform: rotate(-90deg); }
.mt-mini { width: 36px; height: 36px; border-radius: 50%; background: #eef0ee; display: flex; align-items: center; justify-content: center; color: #b5b8b5; overflow: hidden; }
.mt-mini img { width: 100%; height: 100%; object-fit: cover; }
.mt-vloot { font-weight: 800; color: var(--accent); letter-spacing: .3px; }
.mt-dot { width: 10px; height: 10px; border-radius: 50%; justify-self: center; }
.mt-dot.is-ok { background: #3a9d5d; } .mt-dot.is-oranje { background: #f08a24; } .mt-dot.is-rood { background: #d93a3a; }
.mt-r { text-align: right; } .mt-leeg { padding: 16px; margin: 0; }
@media (max-width: 800px) { .mt-kop, .mt-rij { grid-template-columns: 44px 70px 1fr 30px; } .mt-kop > :nth-child(n+4):nth-child(-n+6), .mt-rij > :nth-child(n+4):nth-child(-n+6) { display: none; } }
.mt-terug { margin: 0 0 12px; } .mt-terug a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.mt-kopblok { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; margin-bottom: 16px; }
.mt-foto { height: 210px; border-radius: 16px; background: #eef0ee; display: flex; align-items: center; justify-content: center; color: #b5b8b5; overflow: hidden; }
.mt-foto img { width: 100%; height: 100%; object-fit: cover; } .mt-foto-klein { height: 170px; }
.mt-naam { font-size: 22px; font-weight: 800; margin: 2px 0 0; }
.mt-kk { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; } .mt-kk h2 { margin: 0; }
.mt-kk-acties { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mt-pillen { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.mt-pil { padding: 3px 9px; border-radius: 20px; font: 700 11px/1.4 var(--font-lbl); white-space: nowrap; }
.mt-pil.is-ok { background: #e6f3ea; color: #1f6b3a; } .mt-pil.is-oranje { background: #fdf0e1; color: #b0620f; } .mt-pil.is-rood { background: #fbe7e6; color: #c62f2f; } .mt-pil.is-grijs { background: #f1f1ef; color: var(--text-2); }
.mt-gegevens { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 20px; }
.mt-gegevens .lbl { display: block; margin-bottom: 2px; } .mt-w { font-weight: 600; color: var(--ink-strong); }
.mt-twee { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.mt-kolom { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 860px) { .mt-kopblok, .mt-twee { grid-template-columns: 1fr; } }
.mt-link { font: 700 13px/1.3 var(--font-lbl); color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.mt-link-grijs { color: var(--text-2); font-weight: 600; font-size: 12px; } .mt-rood { color: #c62f2f !important; }
.mt-regel { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f1f1; font-size: 13px; }
.mt-regel:last-child { border-bottom: 0; } .mt-regel-r { display: flex; gap: 10px; align-items: center; }
.mt-teller b { font-size: 28px; font-weight: 800; }
.mt-voortgang { height: 6px; border-radius: 3px; background: #ececec; margin: 8px 0 4px; overflow: hidden; display: block; }
.mt-voortgang div { height: 6px; border-radius: 3px; } .mt-voortgang .is-ok { background: #3a9d5d; } .mt-voortgang .is-oranje { background: #f08a24; } .mt-voortgang .is-rood { background: #d93a3a; }
.mt-doc { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f1f1; font-size: 13px; }
.mt-doc:last-child { border-bottom: 0; } .mt-doc a { flex: 1; min-width: 0; color: var(--ink-strong); text-decoration: none; }
.mt-doc i { width: 30px; height: 36px; border-radius: 5px; background: #f1f1ef; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 9px; font-weight: 800; color: var(--text-2); flex-shrink: 0; }
.mt-beheer { display: flex; gap: 10px; flex-wrap: wrap; flex-direction: row; }
.mt-balk { margin-bottom: 16px; }
.mt-balk .pb-knoppen form { margin: 0; }
.mt-balk-titel { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mt-balk-titel h1 { margin: 0; font-size: 20px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-detail .rf-kop { margin-bottom: 10px; min-height: 30px; }
.mt-detail .mt-kosten { font: 500 12px var(--font); text-transform: none; letter-spacing: 0; }
.mt-detail .card { gap: 8px; }
.mt-tl { position: relative; padding-left: 22px; }
.mt-tl::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: #ececec; }
.mt-t { position: relative; padding: 8px 0 14px; --kl: #bdbdbd; }
.mt-t.is-keuring { --kl: #3a9d5d; } .mt-t.is-onderhoud { --kl: #f08a24; } .mt-t.is-reparatie { --kl: #2f6fd6; } .mt-t.is-storing { --kl: #d93a3a; }
.mt-t::before { content: ''; position: absolute; left: -20px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--kl); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--kl); }
.mt-t-d { font-size: 11px; color: var(--text-2); font-weight: 700; }
.mt-t-t { font-size: 14px; font-weight: 700; margin-top: 1px; display: flex; justify-content: space-between; gap: 10px; }
.mt-t-o { font-size: 12px; color: var(--text-2); margin-top: 1px; white-space: pre-line; }
.mt-t-foto { width: 90px; height: 68px; object-fit: cover; border-radius: 8px; margin-top: 6px; }
.mt-t-acties { display: flex; gap: 12px; margin-top: 4px; }
dialog.mt-pop { border: 0; border-radius: 16px; padding: 0; max-width: 600px; width: calc(100% - 32px); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog.mt-pop::backdrop { background: rgba(0,0,0,.35); }
.mt-pop-kop { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px 0; } .mt-pop-kop h2 { margin: 0; font-size: 18px; }
.mt-form { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 20px; }
.card .mt-form { padding: 0; }
.mt-velden2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; } @media (max-width: 560px) { .mt-velden2 { grid-template-columns: 1fr; } }
.mt-veld { display: flex; flex-direction: column; gap: 4px; } .mt-veld .inp { width: 100%; }
.mt-verpl { color: #c62f2f; }
.mt-knoppen { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.mt-details summary { cursor: pointer; color: var(--text-2); font-size: 13px; margin: 6px 0; }
.mt-smal { max-width: 640px; } .mt-smal h1 { font-size: 22px; margin: 0 0 12px; }
.mi-rij { display: grid; grid-template-columns: 1fr 120px 130px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f1f1f1; font-size: 13px; }
.mi-rij4 { grid-template-columns: 1fr 120px 90px 130px; }
.mi-kop { font: 700 11px/1 var(--font-lbl); color: var(--text-2); text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--border); }
.mt-dash h2 { margin-bottom: 8px; }
.mt-dash-rij { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f1f1f1; font-size: 13px; }
.mt-dash-rij a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); text-decoration: none; }

/* ---------- grafieken (dashboard) ---------- */
.gf-rij { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.gf-rij .gf-breed:last-child:nth-child(3) { grid-column: 1 / -1; }
.gf-rij2 { grid-template-columns: 1fr 1fr; } .gf-rij3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px) { .gf-rij, .gf-rij2, .gf-rij3 { grid-template-columns: 1fr; } }
.gf-kaart .cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gf { display: block; width: 100%; height: auto; }
.gf-lijn { stroke: #ececea; stroke-width: 1; } .gf-as { stroke: #d6d6d2; stroke-width: 1; }
.gf-staaf { opacity: .85; } .gf-staaf.is-nadruk { opacity: 1; filter: saturate(1.25); } .gf-staaf:hover { opacity: 1; }
.gf-getal { font: 700 12px var(--font, sans-serif); fill: #6b6b68; } .gf-getal.is-nadruk { fill: #2b2b2b; }
.gf-label { font: 600 11px var(--font, sans-serif); fill: #8a8a86; } .gf-label.is-nadruk { fill: #2b2b2b; font-weight: 800; }
.gf-legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.gf-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* ---------- ADR-overzicht ---------- */
.adr-balk { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 16px; margin-bottom: 12px; }
.adr-veld { display: flex; flex-direction: column; gap: 4px; } .adr-veld .inp { height: 34px; width: 140px; } .adr-zoek .inp { width: 300px; }
.adr-aantal { margin-left: auto; align-self: center; }
.adr-kaart { padding: 0; overflow: hidden; }
.adr-scroll { overflow: auto; max-height: calc(100vh - 290px); }
.adr-tabel { border-collapse: collapse; width: 100%; min-width: 1300px; font: 400 13px/1.3 var(--font-inp); table-layout: fixed; }
.adr-tabel th { position: sticky; top: 0; z-index: 1; background: #f4f4f2; text-align: left; font: 600 12px/1.2 var(--font-lbl); padding: 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.adr-tabel th a { color: var(--ink-strong); text-decoration: none; }
.adr-tabel td { padding: 5px 6px; border-bottom: 1px solid #efefed; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adr-tabel tbody tr:hover { background: #fbf6ef; }
.adr-tabel .rt { text-align: right; } .adr-tabel .ct { text-align: center; }
.adr-ritlink { color: #2f6fd6; font-weight: 600; text-decoration: underline; }
.adr-datum { width: 82px; } th.adr-rit { width: 60px; } .adr-klant { width: 110px; } .adr-uitgevoerd { width: 120px; } .adr-container { width: 115px; }
.adr-code { width: 50px; } .adr-gewicht { width: 68px; } .adr-lading { width: 130px; } .adr-un { width: 48px; } .adr-nl { width: 200px; } .adr-klasse { width: 55px; }
.adr-verpak { width: 58px; } .adr-tunnel { width: 58px; } .adr-etiketten { width: 110px; } .adr-product { width: 120px; } .adr-lq { width: 40px; }
.adr-meer { padding: 8px 16px; margin: 0; }
.adr-ex { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- rit-popup: tabbladen Financieel en Portbase ---------- */
.rp-geld { width: 92px; text-align: right; } .rp-num { width: 70px; text-align: right; } .rp-tijd { width: 92px; } .rp-btw { width: 70px; }
.rp-inp:disabled, .rf .inp:disabled { background: #f3f3f1; color: #9a9a96; }
.rpb { display: block; } .rpb-regels { max-height: 420px; overflow: auto; }
/* rit-popup: één vaste maat voor alle tabbladen */
.tm-dlg.rp-dlg { width: min(1480px, calc(100vw - 16px)); height: min(860px, calc(100vh - 16px)); }
.rp-dlg .rp-inhoud, .rp-dlg .rp { height: 100%; max-height: none; }
.rp-dlg .rp-body { flex: 1 1 auto; min-height: 0; align-content: start; }
.gf-kaart .barfill { background: #f7c59a; }
/* rit-popup, tabblad Financieel (ontwerp "Rit – Financieel") */
.rf { grid-template-columns: 330px minmax(0, 1fr) 300px; gap: 16px; padding: 14px 18px; background: #fafaf8; justify-content: stretch; }
.rf-kolom { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rf-kaart { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rf-kop { margin: 0 0 2px; font: 800 13px/1.2 var(--font); color: var(--ink-strong); text-transform: uppercase; letter-spacing: .5px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rf-link { font: 700 12px/1 var(--font); color: #c86a10; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.rf-link:hover { text-decoration: underline; }
.rf-lbl { font-size: 13px; color: var(--text-2); font-weight: 600; }
.rf-rij { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 8px; }
.rf-ctrl { display: flex; gap: 6px; align-items: center; min-width: 0; }
.rf .rp-inp { height: 30px; box-sizing: border-box; }
.rf .rp-inp.rp-geld { width: 104px !important; text-align: right; } .rf .rp-inp.rp-num { width: 70px !important; text-align: right; }
.rf .rp-inp.rp-tijd { width: 70px !important; text-align: center; } .rf .rp-inp.rp-btw { width: 80px !important; }
.rp-inp:disabled, .rf .inp:disabled { background: #f3f3f1; color: #9a9a96; }
.rf-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px; background: #f0f0ee; border-radius: 8px; margin-bottom: 2px; }
.rf-seg button { min-height: 30px; border: 0; border-radius: 6px; background: transparent; font: 600 12px/1 var(--font); color: var(--text-2); cursor: pointer; }
.rf-seg button[aria-checked="true"] { background: #fff; color: var(--ink-strong); font-weight: 800; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.rf-seg button:disabled { cursor: not-allowed; opacity: .6; }
.rf-verborgen { display: none; }
.rf-groep { display: flex; flex-direction: column; gap: 7px; } .rf-groep[hidden] { display: none; }
.rf-naam { font-size: 13px; font-weight: 700; }
.rf-factuur { padding: 0 4px; font-size: 13px; }
.rf-extra { gap: 3px; }
.rf-alleen { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font); color: var(--text-2); text-transform: none; letter-spacing: 0; cursor: pointer; }
.rf-alleen input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.rf-krij { display: grid; grid-template-columns: 22px minmax(0, 1fr) 104px 104px 146px; gap: 8px; align-items: center; min-height: 31px; }
.rf-krij[hidden] { display: none; }
.rf-krij .rp-vink { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.rf-krij.is-uit .rf-knaam, .rf-krij.is-uit .rf-bedrag, .rf-krij.is-uit .rf-aantal { opacity: .55; }
.rf-kkop { min-height: 0; padding: 2px 0 6px; border-bottom: 1px solid #ececea; margin-bottom: 3px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.rf-kkop span:nth-child(n+3) { text-align: right; }
.rf-knaam { font-size: 13px; font-weight: 600; cursor: pointer; }
.rf-bedrag { position: relative; display: block; }
.rf .rf-bedrag .rp-inp { width: 104px !important; }
.rf-bedrag.is-pct .rp-inp { padding-right: 22px; }
.rf-bedrag.is-pct::after { content: "%"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #9a9a96; pointer-events: none; }
.rf-aantal { display: flex; gap: 6px; justify-content: flex-end; }
.rf-leeg { margin: 6px 0; font-size: 13px; }
.rf-meer { align-self: flex-start; margin-top: 6px; } .rf-meer[hidden] { display: none; }
.rf-sub { display: flex; flex-direction: column; gap: 6px; }
.rf-subrij { display: grid; gap: 6px; align-items: center; }
.rf-subrij-derden { grid-template-columns: minmax(0, 1fr) 96px 20px; }
.rf-subrij-blanco { grid-template-columns: minmax(0, 1fr) 76px 76px 20px; }
.rf .rf-subrij .rp-inp { width: 100% !important; min-width: 0; }
.rf-weg { background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: var(--text-2); padding: 0; } .rf-weg:hover { color: var(--danger); }
.rf-totaal { background: #f0f0ee; border-color: var(--border); gap: 9px; }
.rf-tot { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.rf-tot span { color: var(--text-2); }
.rf-resultaat { padding-top: 8px; border-top: 1px solid #d6d6d2; }
.rf-resultaat b { font-size: 22px; color: #1f6b3a; } .rf-resultaat.is-min b { color: var(--danger); }
.rf-bereken { min-height: 40px; }
@media (max-width: 1100px) { .rf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rf-extra { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 760px) { .rf { grid-template-columns: minmax(0, 1fr); } .rf-extra { grid-row: auto; } .rf-krij { grid-template-columns: 22px minmax(0, 1fr) 90px 90px; } .rf-aantal { grid-column: 2 / -1; justify-content: flex-start; } }
.rf-seg button { white-space: nowrap; padding: 0 4px; }
/* rit-popup, tabblad Route en stops (ontwerp "Rit – Route en stops") */
.rr { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 14px 18px; background: #fafaf8; justify-content: stretch; }
.rr-route { display: flex; flex-direction: column; min-width: 0; }
.rr-stap { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.rr-as { display: flex; flex-direction: column; align-items: center; }
.rr-bol { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 13px/1 var(--font); color: #fff; margin-top: 12px; flex: none; }
.rr-bol-opzet { background: #2f6fd6; } .rr-bol-best1, .rr-bol-best2 { background: #f08a24; } .rr-bol-afzet { background: #3a9d5d; }
.rr-bol-extra { width: 14px; height: 14px; margin-top: 18px; background: #fff; border: 2px solid #b8b8b4; }
.rr-lijn { flex: 1 1 auto; width: 2px; background: #d6d6d2; min-height: 8px; }
.rr-stap[data-rr-soort="afzet"] .rr-lijn { background: transparent; }
.rr-kaart { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-bottom: 4px; }
.rr-kaart-extra { border-style: dashed; }
.rr-rij { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rr-rij2 { grid-template-columns: 130px minmax(0, 1fr); }
.rr-kop { margin: 0; font: 800 13px/1.2 var(--font); color: var(--ink-strong); text-transform: uppercase; letter-spacing: .5px; }
.rr-lbl { font-size: 13px; color: var(--text-2); font-weight: 600; }
.rr-loc-groep { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rr-loc-groep > select, .rr-loc-groep > .rr-loc { flex: 1 1 auto; min-width: 0; max-width: 460px; }
.rr .rp-inp { height: 30px; box-sizing: border-box; font-size: 13px; }
.rr select.rr-loc { font-weight: 700; }
.rr-pin { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #e5484d; }
.rr-pin svg { width: 16px; height: 16px; } .rr-pin.is-uit { color: #c9c9c5; }
.rr-vink, .rr-rechts { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; cursor: pointer; }
.rr-rechts { gap: 10px; cursor: default; }
.rr-vink input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.rr .rr-eta { width: 150px !important; flex: none !important; }
.rr-slot { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #fdecec; color: #b42318; white-space: nowrap; }
.rr-slot.is-aan { background: #e6f4ec; color: #1f6b3a; }
.rr-pbknoppen { display: flex; align-items: center; gap: 6px; }
.rr-rond { width: 30px; height: 30px; }
.rr-reset { height: 30px; }
.rr-koppel { max-width: 460px; }
.rr-ico { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #0e7490; cursor: pointer; padding: 0; }
.rr-ico svg { width: 16px; height: 16px; } .rr-ico:disabled { opacity: .4; cursor: not-allowed; }
.rr-wacht { display: grid; grid-template-columns: 130px repeat(3, minmax(0, 200px)); gap: 10px; align-items: end; padding: 8px 14px; margin: 0 -14px -10px; background: #fff8f0; border-top: 1px solid #f6e3cf; border-radius: 0 0 12px 12px; }
.rr-wacht[hidden] { display: none; }
.rr-wlbl { align-self: center; color: #c2570c; }
.rr-wveld { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rr-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 0; }
.rr .rr-paar .rp-inp { width: 100% !important; min-width: 0; }
.rr .rp-tijd { text-align: center; } .rr .rp-geld, .rr .rp-num { text-align: right; }
.rr-stopvelden { display: grid; grid-template-columns: 150px 210px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; }
.rr-extra .rr-rij > select { min-width: 0; }
.rr-plus { padding: 2px 0 8px 40px; }
.rr-groot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rr-groot > div { background: #f4f4f2; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.rr-groot b { font-size: 16px; }
.rr-stat { font-size: 13px; padding: 4px 0; border-bottom: 1px solid #f0f0ee; }
.rr-stat.is-sub { padding-left: 12px; } .rr-stat.is-totaal { border-bottom: 0; } .rr-stat.is-totaal span { color: var(--ink-strong); font-weight: 800; }
.rr-ptvknoppen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.rr-ptvknoppen .btn { min-height: 36px; font-size: 13px; padding: 0 8px; }
.rr-ptvknoppen .is-uit { opacity: .5; cursor: not-allowed; }
.rr-leeg { margin: 0; font-size: 13px; }
@media (max-width: 1100px) { .rr { grid-template-columns: minmax(0, 1fr); } .rr-rij { grid-template-columns: 110px minmax(0, 1fr); } .rr-rij > :nth-child(3) { grid-column: 2; } .rr-wacht { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rr-wlbl { grid-column: 1 / -1; } .rr-stopvelden { grid-template-columns: 1fr 1fr; } }
.rr-loc-groep > .dt-veld { flex: none; width: 160px; }
.rr .dt-veld .rr-eta { width: 100% !important; }
.rr-ptvknoppen .btn:disabled { opacity: .5; cursor: not-allowed; }
/* PTV-kaart in Route en stops */
.rr-kaartvak { position: relative; height: 190px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: #eef0f2; }
.rr-kaart-doek { position: absolute; inset: 0; }
.rr-kaart-groot { position: absolute; top: 8px; right: 8px; z-index: 500; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: 600 13px/1 var(--font); color: var(--ink-strong); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.rr-kaartvak.is-groot { position: fixed; inset: 64px 40px 40px; height: auto; z-index: 2000; box-shadow: 0 20px 60px rgba(0,0,0,.35); border-radius: 14px; }
.rr-kaartvak .leaflet-container { font: 12px/1.4 var(--font); }
/* Route en stops: compacter (alles op één scherm) */
.rr { padding: 10px 16px; gap: 14px; }
.rr .rf-kolom { gap: 10px; }
.rr .rf-kaart { padding: 10px 12px; gap: 6px; }
.rr-loc-groep > select, .rr-loc-groep > .rr-loc { flex: 0 1 300px; max-width: 300px; }
.rr select.rr-loc { font-weight: 400; }
.rr-rij { grid-template-columns: 130px minmax(0, 1fr) auto; }
.rr-loc-groep .rr-pbknoppen { margin-left: 10px; }
.rr-kaartvak { height: 170px; }
.rr-groot > div { padding: 6px 10px; }
.rr-groot b { font-size: 15px; font-weight: 600; }
.rr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.rr-stat { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 3px 0; border-bottom: 1px solid #f0f0ee; min-width: 0; }
.rr-stat span:first-child { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-stat .rr-w { color: var(--ink-strong); font-weight: 400; white-space: nowrap; }
.rr-rit { gap: 6px; }
.rr-kaart { padding: 8px 12px; gap: 6px; }
.rr-plus { padding: 0 0 6px 40px; }
.rr-stats { grid-template-columns: 1fr; gap: 0; }
.rr-stat { padding: 2px 0; }
.rr-route > .rr-rit { margin: 10px 0 0 40px; flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
.rr-rit .rf-kop { margin: 0; }
.rr-rit .rr-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.rr-rit .rr-stat { border: 0; gap: 10px; padding: 0; }
/* EENHEID (zoals EasyTrip): alle labels Segoe UI 9 pt, alle invoervelden Calibri 10 pt — ook in Financieel en Route en stops */
.rf-lbl, .rr-lbl, .rf-knaam, .rr-vink, .rf-alleen, .rr-wlbl, .rf-kkop, .rf-tot span, .rr-stat span:first-child, .rr-groot .rr-lbl, .rf-factuur, .rf-naam, .tm-koppel label, .rp-ctrl label {
  font-family: var(--font-lbl) !important; font-size: 12px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text-2);
}
.rf .inp, .rr .inp, .rp select.inp, .rp textarea.inp, .rf-subrij .inp, .rr-slot, .rr-stat .rr-w, .rf-tot b, .rr-groot b {
  font-family: var(--font-inp) !important; font-size: 13.33px !important; font-weight: 400 !important;
}
.rr-groot b, .rf-resultaat b { font-weight: 700 !important; }
.rr-kop, .rf-kop { font-family: var(--font-lbl) !important; font-size: 12px !important; font-weight: 700 !important; }
/* Algemeen: drie kolommen netjes over de hele breedte */
.rp-body[data-rp-paneel="0"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding: 10px 20px; justify-content: stretch; }
.rp-body[data-rp-paneel="0"] .rp-rij { grid-template-columns: 130px minmax(0, 1fr); }
.rp-body[data-rp-paneel="0"] .rp-kolom.k1, .rp-body[data-rp-paneel="0"] .rp-kolom.k2 { --cw: calc(100% - 64px); }
.rp-body[data-rp-paneel="0"] .rp-kolom.k3 { --cw: 100%; }
@media (max-width: 1100px) { .rp-body[data-rp-paneel="0"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Route en stops: rustig, nummers donkergrijs */
.rr-bol-opzet, .rr-bol-best1, .rr-bol-best2, .rr-bol-afzet { background: #5f5f5c; }
.rp-body[data-rp-paneel="0"] .rp-kolom.k1 { --cw: calc(100% - 100px); }
/* vinkjes overal neutraal (geen oranje) */
input[type="checkbox"], input[type="radio"] { accent-color: #5f5f5c !important; }
/* Route en stops: alle regels gelijk opgebouwd, knoppen even groot, keuzelijsten even breed */
.rr-r1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rr-r1 > .rr-kop, .rr-r1 > select { flex: 0 0 130px; width: 130px !important; }
.rr-vul { flex: 1 1 0; }
.rr .rr-loc-groep { gap: 6px; flex: none; }
.rr .rr-loc-groep > select.rr-loc { flex: 0 0 260px !important; width: 260px !important; max-width: 260px; }
.rr .rp-plus, .rr .rp-i, .rr-pin, .rr-ico, .rr-knop-plek { flex: none; width: 30px; height: 30px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 6px; background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0; }
.rr-knop-plek { border-color: transparent; background: transparent; }
.rr .rp-plus { color: var(--accent); } .rr .rp-plus svg { width: 14px; height: 14px; }
.rr .rp-i { color: var(--accent); font: 700 15px/1 Georgia, serif; text-decoration: none; }
.rr .rp-i.is-uit, .rr .rp-plus.is-uit { color: #d6d6d2; }
.rr .rr-pbknoppen { display: flex; gap: 6px; margin-left: 4px; }
.rr .rr-rond, .rr .rr-reset { width: 30px; height: 30px; }
.rr .rr-reset { width: auto; padding: 0 12px; }
.rr-koppel { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.rr-koppel select { width: 200px !important; flex: none; }
.rr-rij2 { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; align-items: center; }
.rr .rr-loc-groep > select.rr-loc { flex: 0 0 240px !important; width: 240px !important; max-width: 240px; }
.rr-koppel select { width: 170px !important; }
.rr a.rp-i, .rr span.rp-i { background: #fff !important; color: var(--accent) !important; border: 1px solid var(--border) !important; border-radius: 6px !important; width: 30px !important; height: 30px !important; font: 700 15px/1 Georgia, serif !important; }
.rr span.rp-i.is-uit { color: #d6d6d2 !important; }
.rr .rr-loc-groep > select.rr-loc { flex: 0 0 230px !important; width: 230px !important; max-width: 230px; }
.rr-koppel select { width: 150px !important; }
.rr-r1 { column-gap: 8px; }
/* extra stops op dezelfde lijn als de vaste regels: Wachturen recht onder elkaar */
.rr-weg-plek, .rr .rr-rechts .rf-weg { flex: none; width: 18px; text-align: center; }
.rr .rr-rechts { gap: 8px; }
.rr-r1 > .rr-vink { margin-right: 0; }
/* Financieel › Extra kosten: compact zoals in EasyTrip */
.rf-extra { gap: 0; }
.rf-krij { grid-template-columns: 20px 130px 92px 92px auto; gap: 4px 6px; min-height: 0; justify-content: start; }
.rf-krij .rp-inp, .rf .rf-bedrag .rp-inp, .rf-aantal .rp-inp { height: 21px !important; min-height: 21px !important; padding-top: 0; padding-bottom: 0; }
.rf .rf-bedrag .rp-inp { width: 92px !important; }
.rf-aantal .rp-inp.rp-num { width: 56px !important; }
.rf-aantal { justify-content: flex-start; gap: 4px; }
.rf-krij .rp-vink { width: 14px; height: 14px; }
.rf-kkop { padding: 0 0 3px; margin-bottom: 2px; }
.rf-kkop span:nth-child(5) { text-align: left !important; }
.rf-krij + .rf-krij { margin-top: 2px; }
/* Blanco's direct onder de extra kosten, in dezelfde kolommen */
.rf-blancos { margin-top: 10px; padding-top: 8px; border-top: 1px solid #ececea; display: flex; flex-direction: column; gap: 2px; }
.rf-subkop { margin-bottom: 4px !important; justify-content: flex-start !important; gap: 16px !important; }
.rf-blancos .rf-sub { gap: 2px; }
.rf .rf-blanco-rij { display: grid; grid-template-columns: 20px 130px 92px 92px auto; gap: 4px 6px; align-items: center; justify-content: start; }
.rf .rf-blanco-rij > select { grid-column: 1 / 3; width: 100% !important; height: 21px !important; min-height: 21px !important; }
.rf .rf-blanco-rij > input.rp-geld { width: 92px !important; height: 21px !important; min-height: 21px !important; }
.rf .rf-blanco-rij > .rf-weg, .rf .rf-blanco-rij > .rf-weg-plek { width: 18px; font-size: 16px; }
/* subformulieren als tabel: passend, niet scrollen, tekst links */
.grid-edit { table-layout: auto; width: auto; max-width: 100%; }
.grid-edit th { white-space: normal; }
.grid-edit .inp { min-width: 0; width: 100%; }
.grid-edit .inp:not(.inp-num) { text-align: left; }
.grid-edit td:has(> input[type="checkbox"]) { text-align: center; }
.grid-edit td { padding: 2px 4px; }
.grid-edit .inp { min-height: 26px; height: 26px; padding: 0 6px; }
.grid-edit th { padding: 4px; }
/* ===== HUISSTIJL FORMULIEREN (overal gelijk, zoals de rit-popup Algemeen) =====
   label 130 px links (Segoe UI 9), invoerveld 24 px hoog (Calibri 10), max. 300 px breed, 2 px tussen de regels */
:root { --veld-h: 24px; --lbl-w: 130px; --veld-w: 300px; }
.formgrid { gap: 2px 36px; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
.col { gap: 2px; }
.row { display: grid; grid-template-columns: var(--lbl-w) minmax(0, var(--veld-w)); align-items: center; gap: 6px; min-height: 0; }
.row:has(> .unit) { grid-template-columns: var(--lbl-w) 14px minmax(0, calc(var(--veld-w) - 20px)); }
.row > .inp, .row > .combo, .row > .combo > .inp, .row > .inp-small { width: 100% !important; flex: none; }
.row > .inp-small { max-width: 120px; }
.row .inp, .grid-edit .inp, .rp .inp.rp-inp, .rf .inp, .rr .inp, .rr .rp-inp, .rf-krij .rp-inp, .rf .rf-bedrag .rp-inp, .rf-aantal .rp-inp, .rf .rf-blanco-rij > select, .rf .rf-blanco-rij > input.rp-geld {
  height: var(--veld-h) !important; min-height: var(--veld-h) !important; padding-top: 0 !important; padding-bottom: 0 !important; border-radius: 5px;
}
.row-check { display: grid; grid-template-columns: var(--lbl-w) auto; justify-content: start; }
.row-check input { margin: 0; }
.row-area { display: grid; grid-template-columns: var(--lbl-w) minmax(0, var(--veld-w)); align-items: start; }
.row-area .lbl { padding-top: 4px; }
.row-area .inp-area { min-height: 72px; height: auto !important; }
.colhead { font: 700 12px/1.2 var(--font-lbl); text-transform: uppercase; letter-spacing: .5px; padding: 10px 0 4px; }
.grid-edit th { font: 600 12px/1.2 var(--font-lbl) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text-2); }
.grid-edit td { padding: 1px 3px; }
/* knoppen naast invoervelden in de rit-popup even hoog als de velden */
.rr .rp-plus, .rr a.rp-i, .rr span.rp-i, .rr-pin, .rr-ico, .rr-knop-plek, .rr .rr-rond, .rr .rr-reset { height: var(--veld-h) !important; }
.rr .rp-plus, .rr a.rp-i, .rr span.rp-i, .rr-pin, .rr-ico, .rr-knop-plek, .rr .rr-rond { width: var(--veld-h) !important; }
.rr .rr-rond svg { width: 13px; height: 13px; }
.rr .rr-reset { font-size: 12px; padding: 0 10px; }
.rf-seg button { min-height: var(--veld-h); }
/* rit-popup, tabblad Documenten (ontwerp "Rit – Documenten") */
.rd { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; padding: 14px 18px; background: #fafaf8; justify-content: stretch; }
.rd-dossier { gap: 6px; }
.rd-tel { font: 400 12px/1 var(--font-lbl); color: var(--text-2); text-transform: none; letter-spacing: 0; margin-left: 8px; }
.rd-rij { display: grid; grid-template-columns: 20px minmax(0, 1fr) 170px 80px 110px 24px; gap: 4px 10px; align-items: center; min-height: 28px; padding: 1px 4px; border-radius: 6px; }
.rd-rij.is-gekozen { background: #f1f1ef; }
.rd-rij.is-weg .rd-naam { color: var(--text-2); }
.rd-kop { min-height: 0; padding-bottom: 4px; border-bottom: 1px solid #ececea; border-radius: 0; font: 400 12px/1.2 var(--font-lbl); color: var(--text-2); }
.rd-mid { text-align: center; }
.rd-naam { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--font-inp); font-size: 13.33px; }
.rd-naam a, .rd-naam > span:not(.rd-soort):not(.rd-label) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-naam a { color: #1d5fb8; }
.rd-soort { flex: none; width: 34px; height: 18px; border-radius: 4px; font: 800 10px/18px var(--font); color: #fff; text-align: center; }
.rd-label { flex: none; font: 700 11px/1 var(--font); color: #0f8a7a; background: #e3f5f2; border-radius: 999px; padding: 3px 7px; }
.rd-datum { font: 400 12px/1 var(--font-lbl); color: var(--text-2); }
.rd-weg { width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--text-2); font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.rd-weg:hover { color: var(--danger); }
.rd-lijst { display: flex; flex-direction: column; gap: 2px; }
.rd-leeg { margin: 6px 4px; font-size: 13px; }
.rd-sleep { margin-top: 8px; border: 2px dashed #d6d6d2; background: #fafaf8; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; }
.rd-sleep:hover, .rd-sleep.is-over { border-color: var(--accent); background: #fff8f0; }
.rd-sleep:focus-within { outline: 3px solid rgba(240,138,36,.45); outline-offset: 2px; }
.rd-sleep-titel { font: 700 14px/1.2 var(--font); color: var(--ink-strong); }
.rd-sleep-uitleg { font: 400 12px/1.4 var(--font-lbl); color: var(--text-2); } .rd-sleep-uitleg b { color: #c86a10; }
.rd-knoppen { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid #ececea; }
.rd-knoppen .btn { gap: 6px; } .rd-knoppen .is-uit { opacity: .45; cursor: not-allowed; }
.rd-nr { display: grid; grid-template-columns: 90px minmax(0, 1fr) 24px; gap: 4px 6px; align-items: center; }
.rd-nr.rd-kop { border: 0; padding: 0; }
.rd-oms { grid-column: 1 / -1; font: 400 12px/1.2 var(--font-lbl); color: var(--text-2); margin: -2px 0 4px; }
.rd-info { margin: 0; font: 400 12px/1.5 var(--font-lbl); color: var(--text-2); } .rd-info b { color: var(--ink-strong); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd-knoppen .btn { min-height: 28px !important; height: 28px; padding: 0 12px !important; font: 600 13px/1 var(--font) !important; display: inline-flex; align-items: center; }
/* Beheer › Opslag */
.op-tegels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.op-tegel { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.op-tegel b { font-size: 22px; font-weight: 800; color: var(--ink-strong); }
.op-twee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.op-h2 { margin-top: 18px; }
.op-tabel { width: 100%; } .op-tabel .r { text-align: right; }
@media (max-width: 900px) { .op-tegels { grid-template-columns: 1fr 1fr; } .op-twee { grid-template-columns: 1fr; } }
/* WhatsApp: tekst handmatig kopiëren als het klembord geblokkeerd is */
.rp-wa { border: 1px solid var(--border); border-radius: 12px; padding: 16px; width: min(520px, 92vw); font: var(--font-lbl); }
.rp-wa textarea { width: 100%; height: auto; font: var(--font-inp); }
button.rp-knop { cursor: pointer; padding: 0; }
button.rp-knop:hover { border-color: #25d366; }
/* rit-popup, tabblad Splitsen */
.rs { display: flex; flex-direction: column; gap: 12px; }
.rs-kop { display: flex; align-items: center; gap: 24px; }
.rs-uitleg { margin: 0; font: var(--font-lbl); }
.rs-regels table { width: 100%; }
.rs-dlg { width: min(420px, 92vw); }
/* venster Nieuwe rit */
.rn-dlg { width: min(440px, 92vw); }
.rn-soort { border: 0; padding: 0; margin: 0 0 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.rn-soort legend { margin-bottom: 4px; }
.rn-rij { display: grid; grid-template-columns: var(--lbl-w) minmax(0, var(--veld-w)); align-items: center; }
.rn-rij .inp { height: var(--veld-h); }
/* keuzevenster (koppelen terminal/rederij) */
.teu-kies { width: min(460px, 92vw); padding: 16px; }
.teu-kies-tekst { white-space: pre-line; font: var(--font-lbl); margin: 0 0 8px; }
.teu-kies select { width: 100%; height: var(--veld-h); }
/* EasyReturn: berichten (planbord) en Return verzenden (rit) */
.er-twee { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 16px; padding: 0 16px 16px; }
.er-ritten tr[data-er-rit] { cursor: pointer; }
.er-ritten tr.is-aan td { background: var(--accent-zacht, #fff4e8); }
.er-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.er-kop .rf-kop { margin: 0; }
.er-dlg { width: min(980px, 96vw); }
.er-lijst { max-height: 60vh; overflow: auto; margin: 8px 0; }
.er-pijlen { white-space: nowrap; }
@media (max-width: 760px) { .er-twee { grid-template-columns: 1fr; } }
/* Beheer › Koppelingen: overige koppelingen */
.kp-blokken { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; align-items: start; }
.kp-blok .kp-rij { grid-template-columns: 170px minmax(0, 1fr); }
.kp-wis { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font: 400 12px/16px var(--font-lbl); color: var(--text-2); }
.kp-wis input { margin: 0 !important; }
@media (max-width: 560px) { .kp-blokken { grid-template-columns: 1fr; } }

/* Beheer › Huisstijl */
.hs-kaart { max-width: 640px; }
.hs-voorbeeld { display: flex; justify-content: flex-end; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; padding: 16px; background: #fff; margin-bottom: 8px; text-align: right; }
.hs-voorbeeld img { width: auto; max-width: 100%; height: auto; max-height: 90px; object-fit: contain; }
.hs-form { margin-top: 12px; }
.hs-form .inp { max-width: 100%; }

/* ---------- Facturen ---------- */
.ft-page .pb-tabel .rt, .ft-dlg .rt { text-align: right; }
.ft-page .pb-tabel .ct, .ft-dlg .ct { text-align: center; }
.ft-balk { align-items: flex-end; }
.ft-zoek { display: flex; flex-direction: column; gap: 4px; }
.ft-zoek .inp { width: 150px; }
.ft-seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.ft-seg a { padding: 5px 10px; font-size: 13px; color: var(--ink); background: #fff; }
.ft-seg a + a { border-left: 1px solid var(--border); }
.ft-seg a.is-aan { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.ft-knoppen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ft-balk { align-items: center; }
.ft-zoekpaneel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; flex-basis: 100%; }
.ft-zoekpaneel[hidden] { display: none; }
.ft-zoekpaneel input[name=zoek] { width: 240px; }
.btn-sm { padding: 4px 10px; font-size: 13px; min-height: 30px; }
.ft-scroll { height: calc(100vh - 250px); }
.ft-tabel { width: auto; min-width: 100%; }
.ft-tabel td.ft-ja { background: #cddcaf; }
.ft-tabel td.ft-nee, .ft-tabel td.ft-nee a, .ft-tabel td.ft-nee input { color: #c62828; }   /* openstaand: rode letters (Peter 20-10) */
.ft-tabel td.ft-ja input, .ft-tabel td.ft-nee input { background: transparent; }
.ft-inv { width: 100%; border: 1px solid transparent; background: transparent; padding: 1px 3px; font: inherit; color: inherit; border-radius: 4px; }
.ft-inv:hover { border-color: var(--border); background: #fff; }
.ft-inv:focus { border-color: var(--accent); background: #fff; outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.ft-weg { border: 0; background: transparent; color: var(--danger); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.ft-weg:hover, .ft-weg:focus-visible { background: #f7e1df; }
.ft-blader { display: flex; gap: 16px; align-items: center; padding: 6px 12px; margin: 0; }
.ft-dlg { width: min(1180px, calc(100vw - 32px)); }
.ft-dlg[open] { display: flex; flex-direction: column; }
.ft-dlg-in { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 48px); }
.ft-dlg-body { padding: 12px 18px; overflow: auto; flex: 1 1 auto; min-height: 120px; }
.ft-let { margin: 0 0 10px; color: var(--accent-text); font-weight: 600; font-size: 13px; }
.ft-filters, .ft-kop, .ft-print { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 12px; align-items: flex-end; }
.ft-filters .inp { min-width: 140px; }
.ft-filters[data-ft-selfilter] { flex-wrap: nowrap; }
.ft-filters[data-ft-selfilter] .pb-veld { flex: 1 1 0; min-width: 0; }
.ft-filters[data-ft-selfilter] .pb-veld:first-child { flex-grow: 2; }
.ft-filters[data-ft-selfilter] .inp { min-width: 0; width: 100%; }
@media (max-width: 900px) { .ft-filters[data-ft-selfilter] { flex-wrap: wrap; } .ft-filters[data-ft-selfilter] .pb-veld { flex-basis: 140px; } }
.ft-lijst { overflow: auto; max-height: calc(100vh - 300px); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ft-nt, .ft-regels { table-layout: auto; }
.ft-nt td { height: 28px; }
.ft-nt tfoot td, .ft-tabel tfoot td { font-weight: 700; background: #fafaf8; border-top: 1px solid var(--border); position: sticky; bottom: 0; }
.ft-ro { padding: 6px 0; font-weight: 700; color: var(--ink-strong); min-width: 80px; }
.ft-breed .inp { min-width: 280px; }
.ft-vol { flex: 1 1 260px; }
.ft-vol .inp { width: 100%; }
.ft-regels td { height: auto; vertical-align: top; padding: 2px 4px; white-space: normal; }
.ft-oms { resize: vertical; min-height: 22px; field-sizing: content; }
.ft-regels tr.ft-hoofd td { background: #fafaf8; font-weight: 600; }
.ft-kopknoppen { display: flex; gap: 6px; flex-wrap: wrap; }
.ft-toast { position: fixed; right: 20px; bottom: 20px; z-index: 1000; max-width: 420px; padding: 12px 16px; background: var(--ink-strong); color: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; }
.ft-toast a { color: #ffd29e; font-weight: 700; }
@media (max-width: 700px) { .ft-zoek .inp { width: 120px; } }
.ft-tabel { table-layout: auto; }
.ft-tabel input[data-veld$="atum"] { min-width: 80px; }
.ft-tabel input[data-veld="KlantNummer"] { min-width: 70px; }
.ft-tabel input[data-veld="Opmerking"] { min-width: 180px; }
.ft-tabel td:nth-child(4) { max-width: 220px; }
.pl-dagen { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.pl-keuze { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tm-tekst { margin: 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fafaf8; font: 400 13.5px/20px var(--font-inp, inherit); white-space: pre-wrap; color: var(--ink-strong); max-height: 40vh; overflow: auto; }
.pb-met-extra { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 10px; align-items: start; }
.pb-extra .pb-scroll { max-height: calc(var(--pb-hoogte, calc(100vh - 290px)) + 40px); overflow: auto; }
.pb-extra-tabel { table-layout: auto; width: 100%; }
.pb-extra-tabel td:first-child { max-width: 160px; }
@media (max-width: 900px) { .pb-met-extra { grid-template-columns: 1fr; } .pb-extra .pb-scroll { max-height: 220px; } }
/* tablet (tot en met iPad mini): kopbalk op één regel, rit-popup ruimer */
@media (max-width: 1024px) {
  .topbar { flex-wrap: nowrap; gap: 8px; padding: 6px 12px; }
  .brand-logo { height: 20px; }
  .mainnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; justify-content: center; }
  .mainnav::-webkit-scrollbar { display: none; }
  .navitem { padding: 4px 6px 6px; font-size: 11px; gap: 2px; white-space: nowrap; }
  .navitem svg { width: 20px; height: 20px; }
  .navsep { margin: 0 2px 8px; height: 30px; }
  .userbox { gap: 6px; flex: 0 0 auto; }
  .topknop span:not(.navitem-ic):not([aria-hidden]) { display: none; }
  .rp-body[data-rp-paneel="0"] { gap: 20px; padding: 10px 12px; }
  .rp-body[data-rp-paneel="0"] .rp-rij { grid-template-columns: 104px minmax(0, 1fr); }
  .rp-body[data-rp-paneel="0"] .rp-kolom.k1, .rp-body[data-rp-paneel="0"] .rp-kolom.k2 { --cw: calc(100% - 48px); }
}
@media (max-width: 640px) { .rp-body[data-rp-paneel="0"] { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1024px) {
  .brand .tagline { display: none; }
  .brand-logo { height: 18px; }
  .navitem { padding: 4px 4px 6px; font-size: 10.5px; }
  .topknop { min-width: 40px; padding: 6px 8px; }
  .avatar { width: 32px; height: 32px; }
}
/* ---------- Inkoop ---------- */
.ik-sb { font-weight: 600; }
.ik-twee { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.ik-velden { align-items: flex-start; }
.ik-vink { flex-direction: row; align-items: center; gap: 8px; }
.ik-h3 { margin: 4px 0 8px; font-size: 14px; color: var(--ink-strong); }
.ik-doclijst { list-style: none; margin: 0 0 10px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 320px; overflow: auto; }
.ik-doclijst li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ik-doclijst li:last-child { border-bottom: 0; }
.ik-doclijst li a { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ik-upload { cursor: pointer; }
.ikf-rij { display: flex; gap: 4px; }
.ikf-rij .inp { width: 110px; }
.ikf-verschil { color: #d00 !important; font-weight: 700; }
@media (max-width: 900px) { .ik-twee { grid-template-columns: 1fr; } }
.rl-tekstknop { font-size: 13px; padding: 0 10px; }
/* ---------- Depot ---------- */
.dp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.dp-tab { border: 0; background: transparent; padding: 8px 14px; font: 600 14px var(--font); color: var(--text-2); border-bottom: 3px solid transparent; cursor: pointer; }
.dp-tab.is-aan { color: var(--ink-strong); border-bottom-color: var(--accent); }
.dp-tab:disabled { opacity: .4; cursor: default; }
.dp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; margin-bottom: 16px; }
.dp-grid .inp { width: 100%; }
.dp-breed { grid-column: span 2; }
.dp-opm { width: 100%; min-height: 320px; }
@media (max-width: 1000px) { .dp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dp-grid { grid-template-columns: 1fr; } .dp-breed { grid-column: auto; } }

/* planbord: sortering (kolomkop en venster Kolommen) */
.pb-tabel th.is-srt { color: var(--ink-strong); }
.pb-tabel th.is-srt::after { content: attr(data-srt); margin-left: 3px; color: #2f80ed; font-size: 9px; }
.pb-srt { padding: 4px 18px 10px; border-top: 1px solid var(--border); }
.pb-srt-kop { margin: 10px 0 0; font: 600 14px/1.3 var(--font-lbl); }
.pb-srt .pb-kol-uitleg { padding: 4px 0 8px; }
.pb-srt-rij { display: grid; grid-template-columns: 44px 1fr 120px; gap: 8px; align-items: center; margin-bottom: 6px; }
.pb-srt-rij .inp { height: 32px; }
.pb-srt-nr { font-size: 13px; color: var(--text-2); }

/* rapportage: KPI */
.kpi-balk { gap: 10px; }
.kpi-balk .pb-veld .inp { height: 34px; }
.kpi-periode { font-size: 13px; }
.kpi-tegels .db-cijfers b { font-size: 20px; }
.kpi-tabel td.rt, .kpi-tabel th.rt { text-align: right; font-variant-numeric: tabular-nums; }
.kpi-tabel th { position: sticky; top: 0; }
.kpi-tabel thead th.rt { text-align: right; }
.kpi-page .gf-rij { grid-template-columns: 1fr; }
.kpi-inzichten { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.kpi-inzichten .kpi-uitleg { margin: -2px 0 4px; }
.kpi-inzichten .db-lijst li b { font-weight: 600; white-space: nowrap; }
.kpi-inzichten .db-lijst li { display: flex; justify-content: space-between; gap: 10px; }

/* documenten bij klant/charter/chauffeur */
.bst { margin: 0; }
.bst .rd-rij.bst-rij, .bst .bst-kop { grid-template-columns: minmax(0, 1fr) 110px 24px; }
.bst .rd-sleep.is-over { border-color: var(--accent); background: #fff7ee; }

/* Ritten: orders importeren uit Excel (slepen) */
.oi-sleep { position: fixed; inset: 0; z-index: 900; background: rgba(29,111,66,.08); border: 3px dashed #1d6f42; display: grid; place-items: center; pointer-events: none; }
.oi-sleep > div { background: #fff; border-radius: 16px; padding: 24px 32px; box-shadow: 0 12px 40px rgba(0,0,0,.15); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.oi-sleep span { color: var(--text-2); font-size: 13px; }
.oi-inhoud { padding: 18px 22px; }
.oi-inhoud h2 { margin: 0 0 10px; font-size: 18px; }
.oi-tabel { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.oi-tabel td, .oi-tabel th { padding: 4px 6px; text-align: left; border-bottom: 1px solid var(--border); }
.oi-tabel select { width: 100%; }
.oi-voet { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.oi-uitslag { list-style: none; padding: 0; margin: 0 0 8px; } .oi-uitslag li { display: flex; justify-content: space-between; padding: 3px 0; max-width: 260px; } .oi-uitslag b { font-variant-numeric: tabular-nums; }
.oi-let { background: #fff7ee; border-left: 3px solid #f08a24; padding: 8px 12px; margin: 8px 0; font-size: 13px; white-space: pre-line; }
/* planbord: marge */
.pb-tabel td.pb-verlies { color: #c62828; font-weight: 600; }
.pb-tabel td.pb-krap { color: #b45309; }
.pb-toast.is-verlies { background: #b42318; }
/* KPI-balk: knoppen op één lijn met de keuzelijsten (onder de labels) */
.kpi-balk { align-items: flex-end; }
.kpi-balk .ft-seg, .kpi-balk .kpi-toon, .kpi-balk .pb-knoppen .btn { height: 34px; display: inline-flex; align-items: center; }
.kpi-balk .ft-seg a { display: inline-flex; align-items: center; }
.kpi-balk .kpi-periode { align-self: flex-end; line-height: 34px; }
.rl-balk .ft-zoek { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }

.ft-gewijzigd { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #fff1de; color: #a85808; font: 700 10px/16px var(--font-lbl); white-space: nowrap; }
.ft-verouderd { margin: 0; padding: 8px 16px; background: #fff7ec; border-bottom: 1px solid #f6d7ae; color: #7a4a0a; font-size: 13px; }

.yz-knop span, .yz-ster { color: #d946ef; }
.yz-knop.is-bezig { opacity: .6; cursor: progress; }
.yz-groot { font-size: 40px; color: #d946ef; line-height: 1; }
.yz-body { display: flex; flex-direction: column; gap: 10px; }
.yz-samen { margin: 0; font-size: 13px; }
.yz-rood { color: #c62f2f; } .yz-groen { color: #1d7a3e; }
.yz-scroll { max-height: 46vh; }
.yz-tabel { width: 100%; table-layout: auto; }
.yz-tabel td, .yz-tabel th { white-space: nowrap; }
.yz-tabel td:nth-child(4) { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.yz-tabel tr.yz-los td { background: #fff7ec; }
.yz-ook { color: var(--text-2); font-size: 11px; }
.yz-tabel td.yz-rood { color: #c62f2f; font-weight: 700; } .yz-tabel td.yz-groen { color: #1d7a3e; font-weight: 700; }
.pb-menu-kop { padding: 6px 10px 2px; font: 700 10px/1.2 var(--font-lbl); text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); border-top: 1px solid var(--border); margin-top: 4px; }
.mv-dlg { width: min(760px, calc(100vw - 32px)); }
.mv-body { display: flex; flex-direction: column; gap: 8px; }
.mv-rij { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.mv-rij .inp { width: 100%; min-width: 0; }
.mv-rij > .inp:last-child { grid-column: 2 / -1; }
.mv-taal { white-space: nowrap; }
.mv-tekst { width: 100%; min-height: 220px; font: 400 14px/1.45 var(--font-inp); resize: vertical; }
.mv-bijlagen { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mv-bijlagen legend { width: 100%; margin-bottom: 4px; }
.mv-bijlagen label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.mv-toast { position: fixed; right: 16px; bottom: 16px; z-index: 80; }
.ms-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ms-grid { grid-template-columns: 1fr; } }
.ms-lijst ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ms-lijst li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ms-lijst li a { padding: 4px 8px; border-radius: 6px; color: var(--ink-strong); text-decoration: none; font-size: 14px; }
.ms-lijst li a.is-aan, .ms-lijst li a:hover { background: #fff1de; color: #a85808; }
.ms-talen { font: 600 10px var(--font-lbl); color: var(--text-2); letter-spacing: .5px; }
.ms-rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; }
.ms-form .hs-form { display: flex; flex-direction: column; gap: 12px; }
.ms-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); }
.ms-tab { border: 0; background: none; padding: 6px 10px; font: 600 13px var(--font-lbl); color: var(--text-2); border-bottom: 2px solid transparent; cursor: pointer; }
.ms-tab.heeft { color: var(--ink-strong); }
.ms-tab.heeft::after { content: ' ●'; color: #22b14c; font-size: 9px; }
.ms-tab.is-aan { color: #a85808; border-bottom-color: #f08a24; }
.ms-taal { display: flex; flex-direction: column; gap: 8px; }
.ms-taal .inp { width: 100%; }
.ms-velden { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ms-velden .pb-lbl { width: 100%; }
.ms-veld { border: 1px solid var(--border); background: #f6f4f1; border-radius: 6px; padding: 2px 6px; font: 600 12px var(--font-inp); cursor: pointer; }
.ms-veld:hover { background: #fff1de; }
.ms-knoppen { display: flex; gap: 8px; margin: 0; }

.totp-qr { display: flex; justify-content: center; margin: 4px 0 2px; }
.totp-qr svg { width: 200px; height: 200px; border: 1px solid var(--border); border-radius: 8px; }
.pb-tabel thead th .pb-kl { display: inline-block; max-width: calc(100% - 18px); overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.pb-tabel thead th .rl-kop { right: 8px; font-size: 9px; padding: 2px 1px; z-index: 3; }   /* naast de sleeprand (7px), niet eronder */
.pb-tabel thead th.is-filter { background: var(--accent-soft); }
.pb-verborgen { font-size: 12px; font-weight: 600; color: var(--accent-text); }

/* ▾-menu in een kolomkop: sorteren en de waarden aanvinken die je wilt zien (zoals in Excel) */
.pb-kopmenu { min-width: 240px; max-width: 320px; padding: 4px; }
.pb-kopmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.pb-kopmenu .pb-kzoek { min-height: 32px; margin: 2px 2px 4px; width: calc(100% - 4px); }
.pb-kflijst { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; margin: 0 2px; background: var(--surface); }
.pb-kfrij { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--ink-strong); white-space: nowrap; }
.pb-kfrij:hover { background: var(--accent-soft); }
.pb-kfrij input { width: 15px; height: 15px; margin: 0; flex: none; }
.pb-kfrij span { overflow: hidden; text-overflow: ellipsis; }
.pb-kfrij.is-alles { font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 2px; }
.pb-kfknoppen { display: flex; gap: 6px; justify-content: flex-end; padding: 6px 2px 2px; }
.pb-kfmeer { margin: 6px 4px; font-size: 12px; color: var(--text-2); }
table[data-teu-grid] thead th { position: relative; padding-right: 16px; }
table[data-teu-grid] thead th .rl-kop { right: 2px; }
table[data-teu-grid] thead th.is-filter { background: var(--accent-soft); }
