/* TransportManager – huisstijl De Vreugd Transport (gelijk aan WorkPortal / De Vreugd Productietechniek) */
:root {
  --basic: #0A0A96;
  --basic-dark: #07076E;
  --accent: #0080FF;
  --accent-soft: #E6F2FF;
  --ink: #14163A;
  --ink-2: #3A3F66;
  --muted: #5A5F80;
  --line: #E1E5F0;
  --line-2: #EEF0F6;
  --bg: #F3F5FA;
  --card: #FFFFFF;
  --ok: #1A6B43; --ok-bg: #E7F5EE;
  --okplus: #0E4D2E; --okplus-bg: #CDEBDB;
  --warn: #8A4B08; --warn-bg: #FEF3E2;
  --bad: #9B1C12; --bad-bg: #FDECEA;
  --radius: 14px;
  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--basic); }
a:hover { color: var(--accent); }
h1, h2, h3 { color: var(--basic); line-height: 1.2; }
h1 { font-size: 28px; margin: 0; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0 0 8px; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 24px 16px; gap: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; flex-direction: column; gap: 8px; padding: 0 8px; text-decoration: none; }
.brand img { width: 190px; }
.brand span { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--bg); color: var(--basic); }
.nav a.active { background: var(--basic); color: #fff; font-weight: 500; }
.nav svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav .sep { height: 1px; background: var(--line); margin: 10px 6px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 68px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; position: sticky; top: 0; z-index: 20; }
.search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 460px; height: 42px; padding: 0 14px; border: 1px solid #D5DAE8; border-radius: 10px; color: var(--muted); background: #fff; }
.search input { border: 0; outline: 0; flex: 1; font: inherit; color: var(--ink); background: transparent; min-width: 0; }
.userbox { display: flex; align-items: center; gap: 12px; }
.userbox .who { text-align: right; line-height: 1.25; }
.userbox .who b { display: block; font-weight: 500; }
.userbox .who span { font-size: 13px; color: var(--muted); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--basic); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.content { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 22px; max-width: 1400px; width: 100%; }
.mobile-top { display: none; }
.bottomnav { display: none; }

.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pagehead .eyebrow { font-size: 13px; color: var(--accent); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.pagehead p { margin: 6px 0 0; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi .label { font-size: 14px; color: var(--muted); }
.kpi .value { font-size: 32px; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.kpi .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.kpi.dark { background: var(--basic); border-color: var(--basic); color: #fff; }
.kpi.dark .label, .kpi.dark .sub { color: #C9D4FF; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: 14px; }
.dl dd { margin: 0; font-weight: 500; }

/* ---------- lists & tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 12px 14px; background: #F7F8FC; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.link { cursor: pointer; }
.table tr.link:hover td { background: #FAFBFE; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 700; background: #F7F8FC; }
.tablewrap { overflow-x: auto; }
.rows { display: flex; flex-direction: column; }
.rowitem { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.rowitem:last-child { border-bottom: 0; }
.rowitem .grow { flex: 1; min-width: 0; }
.rowitem .t { font-weight: 500; }
.rowitem .s { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 18px 0; text-align: center; }

/* ---------- badges ---------- */
.badge { display: inline-block; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.b-blue { background: var(--accent-soft); color: #0059B3; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-okplus { background: var(--okplus-bg); color: var(--okplus); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-dark { background: var(--basic); color: #fff; }

/* ---------- forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--basic); background: #fff; color: var(--basic); font: 500 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #F3F4FF; color: var(--basic); }
.btn.primary { background: var(--basic); color: #fff; border-color: var(--basic); }
.btn.primary:hover { background: var(--basic-dark); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { border-color: #C62828; color: #B42318; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { border-color: transparent; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.iconbtn { width: 36px; height: 36px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn:hover { color: #B42318; border-color: #F1B5AE; }
form { margin: 0; }
.form { display: flex; flex-direction: column; gap: 16px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.fgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input[type=text], input[type=url], input:not([type]), input[type=email], input[type=number], input[type=date], input[type=datetime-local], input[type=password], input[type=search], input[type=tel], select, textarea {
  font: 15px var(--font); color: var(--ink); background: #fff; border: 1px solid #D5DAE8; border-radius: 10px; padding: 0 12px; height: 44px; width: 100%; outline: none; }
textarea { padding: 10px 12px; height: auto; min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #D6EAFF; }
input[readonly] { background: #F7F8FC; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--basic); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid #D5DAE8; border-radius: 10px; background: #fff; cursor: pointer; font-size: 15px; }
.chip input:checked + span { background: var(--basic); color: #fff; border-color: var(--basic); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px #D6EAFF; }
.hint { font-size: 13px; color: var(--muted); }

/* ---------- flash ---------- */
.flash { padding: 12px 16px; border-radius: 10px; font-size: 14.5px; border: 1px solid; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: #BFE3CF; }
.flash.error { background: var(--bad-bg); color: var(--bad); border-color: #F3C2BC; }
.flash.info { background: var(--accent-soft); color: #0059B3; border-color: #BCDDFF; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 16px; text-decoration: none; color: var(--muted); border: 0; background: none; font: 500 15px var(--font); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs a.active, .tabs button.active { color: var(--basic); border-bottom-color: var(--basic); }

/* ---------- photos ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #DCE3F2; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .cap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(10,10,60,.65); color: #fff; font-size: 11px; padding: 3px 6px; }
.addphoto { aspect-ratio: 1; border: 2px dashed var(--accent); border-radius: 10px; background: #F3F7FF; color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; cursor: pointer; }
.addphoto input { display: none; }
.filelist a { display: block; padding: 6px 0; }

/* ---------- timer & test ---------- */
.timer { background: var(--basic); color: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.timer .lbl { font-size: 14px; color: #C9D4FF; }
.timer .clock { font-size: 46px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.timer .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; }
.timer .bar div { height: 8px; background: var(--accent); width: 0; transition: width 1s linear; }
.timer.due { background: #B45309; }
.timeline { display: flex; flex-direction: column; gap: 14px; }
.tl { display: flex; gap: 12px; align-items: flex-start; }
.tl .thumbs { display: flex; gap: 6px; }
.tl .thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.tl .grow { flex: 1; }

/* ---------- signature ---------- */
.sigpad { border: 1px dashed #AEB6D0; border-radius: 10px; background: #FBFCFF; touch-action: none; width: 100%; height: 180px; display: block; }

/* ---------- calc editor ---------- */
.calc-part { display: flex; flex-direction: column; gap: 16px; }
.calc-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calc-sec-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #F7F8FC; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.calc-sec-head .pos { width: 80px; }
.calc-sec-head .title { font-weight: 700; color: var(--basic); flex: 1; }
.calc-sec-head .tot { font-weight: 700; }
.calc-table { width: 100%; border-collapse: collapse; }
.calc-table th { font-size: 12px; color: var(--muted); font-weight: 500; text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line-2); }
.calc-table td { padding: 4px 6px; border-bottom: 1px solid var(--line-2); }
.calc-table input, .calc-table select { height: 38px; font-size: 14px; padding: 0 8px; }
.calc-table .n { width: 92px; }
.calc-table .u { width: 84px; }
.calc-table .out { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-right: 12px; }
.calc-table tr.kd td { background: #F7FAFF; }
.calc-foot { display: flex; gap: 12px; padding: 10px 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.stickybar { position: sticky; bottom: 0; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 12px 32px; display: flex; gap: 16px; align-items: center; justify-content: space-between; z-index: 15; margin: 0 -32px -48px; backdrop-filter: blur(4px); }
.stickybar .tot { font-size: 20px; font-weight: 700; color: var(--basic); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
details.item > summary { list-style: none; cursor: pointer; }
details.item > summary::-webkit-details-marker { display: none; }
details.item[open] > summary .chev { transform: rotate(90deg); }
.chev { display: inline-block; transition: transform .15s; color: var(--muted); }
.subtable td, .subtable th { font-size: 13px; padding: 7px 10px; }

/* ---------- result box ---------- */
.result { border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.result.big .val { font-size: 34px; font-weight: 700; }
.result.ok { background: var(--ok-bg); color: var(--ok); }
.result.okplus { background: var(--okplus-bg); color: var(--okplus); }
.result.warn { background: var(--warn-bg); color: var(--warn); }
.result.bad { background: var(--bad-bg); color: var(--bad); }
.result.info { background: var(--accent-soft); color: #0059B3; }
.formula { font-family: ui-monospace, Menlo, Consolas, monospace; background: #F7F8FC; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.diagram { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; justify-content: center; }
.prose { white-space: pre-wrap; line-height: 1.6; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(180deg, #fff 0, #fff 60%, var(--bg) 100%); }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth-card .logo { width: 220px; }
.auth-card .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.auth-card h1 { font-size: 26px; }
.auth-card p { margin: 0; color: var(--ink-2); }
.code-input { font-size: 28px !important; letter-spacing: 12px; text-align: center; height: 60px !important; font-weight: 700; color: var(--basic) !important; }
.payoff { display: block; width: 220px; max-width: 70%; height: auto; margin: 18px auto 0; }
.auth-brand { display: flex; flex-direction: column; gap: 10px; }
.side-payoff { width: 170px; margin: 0 8px 10px; }

/* ---------- print ---------- */
@media print {
  .sidebar, .topbar, .bottomnav, .mobile-top, .actions, .stickybar, .noprint { display: none !important; }
  .content { padding: 0; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .sidebar, .topbar { display: none; }
  .mobile-top { display: flex; position: sticky; top: 0; z-index: 20; height: calc(58px + env(safe-area-inset-top)); background: var(--basic); color: #fff; align-items: center; justify-content: space-between; padding: env(safe-area-inset-top) 12px 0 16px; gap: 10px; }
  .mobile-top img { height: 30px; }
  .mobile-top a, .mobile-top button { color: #fff; }
  .mobile-top .iconbtn { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; width: 40px; height: 40px; }
  .content { padding: 18px 14px 96px; gap: 16px; }
  h1 { font-size: 22px; }
  .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .g2.stack, .g3.stack { grid-template-columns: 1fr; }
  .fgrid, .fgrid.three { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .kpi .value { font-size: 26px; }
  .dl { grid-template-columns: 120px 1fr; }
  .bottomnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: #fff; border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 11.5px; }
  .bottomnav a.active { color: var(--basic); font-weight: 700; }
  .bottomnav svg { width: 22px; height: 22px; }
  .stickybar { margin: 0 -14px -96px; padding: 10px 14px 80px; }
  .table th, .table td { padding: 10px 10px; }
  .hide-m { display: none; }
  .pagehead .actions { width: 100%; }
  .pagehead .actions .btn { flex: 1; }
  .timer .clock { font-size: 40px; }
}
@media (max-width: 520px) {
  .g4, .g3 { grid-template-columns: 1fr 1fr; }
  .g2 { grid-template-columns: 1fr; }
}

/* iconen: vaste maat, wrappers bepalen zelf */
.search svg { width: 18px; height: 18px; flex-shrink: 0; }
.iconbtn svg { width: 18px; height: 18px; }
span > svg { width: 100%; height: 100%; }
.calc-table td:first-child { min-width: 300px; }
.calc-table td:first-child input { min-width: 280px; }
.search input[type=search], .search input[type=text] { border: 0; height: auto; padding: 0; box-shadow: none; background: transparent; }
.search input[type=search]:focus { box-shadow: none; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #D6EAFF; }

/* inlogscherm mobiel: compact, past zonder scrollen */
@media (max-width: 600px) {
  .auth { min-height: 100vh; min-height: 100dvh; height: 100dvh; padding: calc(env(safe-area-inset-top) + 20px) 20px max(16px, env(safe-area-inset-bottom)); align-items: stretch; overflow: hidden; background: #fff; }
  .auth-card { max-width: none; justify-content: flex-start; gap: 14px; height: 100%; }
  .auth-brand { position: static; align-items: flex-start; gap: 6px; margin: 4px 0 18px; }
  .auth-card .logo { width: 190px; }
  .auth-card .eyebrow { font-size: 11px; }
  .auth-card h1 { font-size: 23px; }
  .auth-card p { font-size: 14.5px; }
  .auth-card .flash { font-size: 13.5px; padding: 10px 12px; }
  .auth-card .form { gap: 12px; }
  .code-input { height: 54px !important; font-size: 24px !important; }
  .payoff { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: 180px; margin: 0; }
}
@media (max-width: 600px) and (max-height: 600px) {
  .payoff { display: none; }
}

.navhead { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: 16px 14px 6px; }

/* rechtenpagina: rollen links, vinkjes rechts */
.rights { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.rights-roles { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px; position: sticky; top: 84px; }
.rolebtn { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-radius: 10px; background: none; font: 500 15px var(--font); color: var(--ink-2); cursor: pointer; }
.rolebtn:hover { background: var(--bg); color: var(--basic); }
.rolebtn.active { background: var(--basic); color: #fff; }
.rolebtn.active .rolecount { color: #C9D4FF; }
.rolecount { color: var(--muted); font-weight: 400; white-space: nowrap; }
.rights-panel { display: flex; flex-direction: column; gap: 16px; }
.rights-group + .rights-group { margin-top: 6px; }
.rights-group .navhead { padding-left: 0; }
.rights-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.rights-mod { font-weight: 500; }
.rights-checks { display: flex; gap: 8px; flex-wrap: wrap; }
.tick { position: relative; }
.tick input { position: absolute; opacity: 0; }
.tick span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 10px; border: 1px solid #D5DAE8; border-radius: 10px; font-size: 14px; cursor: pointer; background: #fff; }
.tick span::before { content: ""; width: 16px; height: 16px; border: 2px solid #AEB6D0; border-radius: 4px; box-sizing: border-box; }
.tick input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: #0059B3; }
.tick input:checked + span::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--accent); }
.tick input:focus-visible + span { box-shadow: 0 0 0 3px #D6EAFF; }
@media (max-width: 900px) {
  .rights { grid-template-columns: 1fr; }
  .rights-roles { position: static; flex-direction: row; overflow-x: auto; padding: 8px; }
  .rights-roles .navhead { display: none; }
  .rolebtn { width: auto; white-space: nowrap; }
  .rolecount { display: none; }
}

/* geïnstalleerde app (iPhone): blauwe balk achter klok/batterij */
html { background: var(--basic); }
body { min-height: 100vh; }
body.authbody { background: #fff; }
body.authbody::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--basic); z-index: 50; }
@media (min-width: 901px) { html { background: var(--bg); } }
.content .search, .content form .search { flex: none; width: 100%; }

/* hoofdknoppen Relaties / Projecten en filterknoppen */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; align-self: flex-start; }
.seg a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.seg a svg { width: 18px; height: 18px; }
.seg a:hover { background: var(--bg); color: var(--basic); }
.seg a.active { background: var(--basic); color: #fff; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid #D5DAE8; border-radius: 999px; background: #fff; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.fchip span { font-size: 12px; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 1px 8px; }
.fchip:hover { border-color: var(--accent); color: var(--basic); }
.fchip.active { background: var(--accent-soft); border-color: var(--accent); color: #0059B3; }
.fchip.active span { background: #fff; color: #0059B3; }
@media (max-width: 900px) { .seg { align-self: stretch; } .seg a { flex: 1; justify-content: center; padding: 0 10px; } }

/* zoekvelden: tekst begint iets van het icoon af, plaatshoudertekst verdwijnt zodra je klikt */
.search input[type=search], .search input[type=text] { padding-left: 4px; caret-color: var(--basic); }
.search input:focus::placeholder { color: transparent; }
.search input::-webkit-search-decoration { -webkit-appearance: none; }

/* meldingen bij machine / relatie */
.alertbox { background: var(--warn-bg); border: 1px solid #F5C98A; color: #5C3205; border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.alertbox-head { display: flex; align-items: center; gap: 10px; color: var(--warn); font-size: 16px; }
.bringlist { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.bringlist li { background: #fff; border: 1px solid #F5C98A; border-radius: 999px; padding: 4px 12px; font-weight: 500; font-size: 14px; }
.alertdlg { border: 0; border-radius: 16px; padding: 22px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(10,10,60,.3); }
.alertdlg::backdrop { background: rgba(10,10,60,.45); }
.bringcheck { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; }
.badge-alert { background: var(--warn-bg); color: var(--warn); }

/* SharePoint projectmap */
.dl svg, .rowitem .s svg, .card-head h2 svg, .choice svg { width: 16px; height: 16px; vertical-align: -3px; }
.card-head h2 svg { width: 20px; height: 20px; color: var(--accent); }
.files .rowitem { gap: 12px; align-items: center; }
.files a.grow { color: inherit; text-decoration: none; min-width: 0; }
.files .t { overflow-wrap: anywhere; }
.ficon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--basic); flex-shrink: 0; }
.ficon svg { width: 18px; height: 18px; }
.ficon.dir { background: #FFF4D6; color: #A86B00; }
.card.flush .files .rowitem { padding-left: 18px; padding-right: 18px; }
.pathbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 15px; }
.pathbar a { display: inline-flex; align-items: center; gap: 6px; }
.pathbar svg { width: 16px; height: 16px; }
.pathbar span { color: var(--muted); }
.choice-list { display: grid; gap: 8px; margin: 6px 0 16px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: #F0F7FF; }
.sptable td { vertical-align: middle; }
.sptable input[list] { min-width: 220px; }
.check.full { align-items: flex-start; grid-column: 1 / -1; }
.check.full input { margin-top: 2px; flex-shrink: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input[list] { flex: 1; min-width: 180px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.steps-list { margin: 8px 0 0 20px; line-height: 1.6; }
.spdot svg { width: 15px; height: 15px; vertical-align: -2px; color: #A86B00; }
.rolepick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rolechip { cursor: pointer; }
.rolechip input { position: absolute; opacity: 0; pointer-events: none; }
.rolechip span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff; color: var(--ink-2); }
.rolechip span i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); }
.rolechip input:checked + span { background: var(--rb); border-color: var(--rc); color: var(--rt); font-weight: 500; }
.rolechip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Kleuren per functierol */
.role-administratie { --rc: #7C6CF0; --rb: #EFEDFE; --rt: #4B3FB8; }
.role-directie      { --rc: #1FA35B; --rb: #E6F6EC; --rt: #16733F; }
.role-engineering   { --rc: #F2711C; --rb: #FEEFE5; --rt: #B24E0C; }
.role-verkoop       { --rc: #3AA3EC; --rb: #E5F3FD; --rt: #1A6AA6; }
.role-werkplaats    { --rc: #F2A516; --rb: #FEF4E0; --rt: #9A6508; }
:where(.rolepill) { --rc: #8A90B0; --rb: #F0F2F8; --rt: var(--ink-2); }
.rolepill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--rb); color: var(--rt); font-size: 13px; font-weight: 500; white-space: nowrap; line-height: 1.5; }
.rolepill i, .roledot { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); flex-shrink: 0; display: inline-block; }
.rolepill.lg { font-size: 17px; padding: 5px 14px 5px 11px; }
.rolepill.lg i { width: 10px; height: 10px; }
.rolepills { display: flex; flex-wrap: wrap; gap: 6px; }
.rolename { display: inline-flex; align-items: center; gap: 10px; }
.rolebtn.active { background: var(--rb); color: var(--rt); box-shadow: inset 3px 0 0 var(--rc); }
.rolebtn.active .rolecount { color: var(--rt); opacity: .75; }

/* Orders: actievenster */
.navbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 12px; font-weight: 700; margin-left: 6px; line-height: 1; }
.nav a .navbadge { margin-left: auto; }
.actionbar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin: 0 0 16px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); text-decoration: none; border: 1px solid #F5D9A8; }
.actionbar svg { width: 20px; height: 20px; flex-shrink: 0; }
.actionbar .go { margin-left: auto; font-weight: 600; white-space: nowrap; }
.kindpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.kindopt { cursor: pointer; }
.kindopt input { position: absolute; opacity: 0; pointer-events: none; }
.kindopt span { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; line-height: 1.35; }
.kindopt small { color: var(--muted); }
.kindopt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.kindopt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-head h2 svg { vertical-align: -3px; }
.dash-action { display: flex; align-items: center; gap: 14px; }
.bonbox { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; background: var(--bg); }
.bonhead { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.bonhead svg { width: 18px; height: 18px; color: var(--basic); }
.dl.compact dt, .dl.compact dd { padding-top: 3px; padding-bottom: 3px; }
.worklist p { margin: 0 0 4px; }
.workdetails summary { cursor: pointer; }

/* Gespreksnotities */
.noteform { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.notes { display: grid; gap: 10px; }
.note { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.notehead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.notebody { white-space: pre-wrap; line-height: 1.5; }
.noteedit { margin-top: 8px; }
.noteedit summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.noteedit form { margin-top: 10px; }
.followup { margin-left: auto; }
.followup button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #F5D9A8; background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 3px 10px; font: 500 13px var(--font); cursor: pointer; }
.followup button svg { width: 14px; height: 14px; }
.followup.done button { background: var(--ok-bg); color: var(--ok); border-color: #BfE3CE; text-decoration: line-through; }
.nk-telefoon { background: #E5F3FD; color: #1A6AA6; } .nk-bezoek { background: #E6F6EC; color: #16733F; }
.nk-mail { background: #EFEDFE; color: #4B3FB8; } .nk-overleg { background: #FEF4E0; color: #9A6508; }
.nk-teams { background: #EAF0FF; color: #0A0A96; } .nk-anders { background: #F0F2F8; color: var(--ink-2); }
.table th.chk, .table td.chk { width: 44px; text-align: center; padding-left: 14px; padding-right: 4px; cursor: default; }
.table td.chk input, .table th.chk input { width: 18px; height: 18px; accent-color: var(--basic); cursor: pointer; }
.bulkbar { position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 12px; background: var(--basic); color: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(10,10,150,.18); }
.bulkbar .btn.primary { background: #fff; color: var(--basic); border-color: #fff; }
.bulkbar .btn.ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.55); }
.bulkbar .btn.ghost:hover { background: rgba(255,255,255,.12); }
@media (max-width: 760px) { .bulkbar { top: 64px; } }
.iconlink { display: inline-flex; align-items: center; gap: 5px; } .iconlink svg { width: 16px; height: 16px; }
.ficon.cube { background: #EFEDFE; color: #4B3FB8; }
.m3dform { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* Nederlandse bestandskiezer */
.filepick { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 4px; cursor: pointer; flex-wrap: wrap; }
.filepick .fp-native { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.filepick .fp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* vinkjes van de orderbon */
.oprops { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; }
.oprop { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.oprop.on { background: #E6F6EC; color: #11703A; }
.oprop.off { background: #F1F3F7; color: var(--muted); font-weight: 500; }

.copyval { border: 0; background: none; font: inherit; color: inherit; cursor: copy; padding: 2px 4px; border-radius: 6px; }
.copyval:hover { background: var(--accent-soft); }
.copyval.done { background: #E6F6EC; color: #11703A; }
.copyval.done::after { content: " ✓"; }
.nc-var input[type=text], .nc-var input:not([type]) { min-width: 220px; }
.nc-top { margin-bottom: 14px; } .grouprow td { background: #F6F8FC; }
.show-m { display: none; }
@media (max-width: 900px) { .show-m { display: block; } }

/* ---------- telefoon: nooit breder dan het scherm ---------- */
.grid > *, .fgrid > *, .card, label.f, .form > * { min-width: 0; }
input, select, textarea { max-width: 100%; min-width: 0; }
select { text-overflow: ellipsis; }
@media (max-width: 900px) {
  .content { overflow-x: clip; }
  .chips { flex-wrap: wrap; }
  .chip span { white-space: normal; }
}

/* ---------- telefoon: alles wat compacter ---------- */
@media (max-width: 600px) {
  body { font-size: 14px; }
  h1 { font-size: 20px; }
  h2 { font-size: 16px; margin-bottom: 10px; }
  h3 { font-size: 15px; }
  .small, .hint, .rowitem .s { font-size: 12.5px; }
  .content { padding: 14px 12px 88px; gap: 12px; }
  .card { padding: 13px; border-radius: 12px; }
  .pagehead p { font-size: 13.5px; margin-top: 2px; }
  .kpi .label { font-size: 12.5px; }
  .kpi .value { font-size: 21px; margin-top: 3px; }
  .kpi .sub { font-size: 12px; }
  .btn { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
  .btn.sm { height: 34px; padding: 0 10px; font-size: 13px; }
  input[type=text], input[type=url], input:not([type]), input[type=email], input[type=number], input[type=date], input[type=datetime-local],
  input[type=password], input[type=search], input[type=tel], select { height: 42px; font-size: 16px; }
  label.f { font-size: 12.5px; gap: 4px; }
  .check { font-size: 14px; }
  .chip span { height: 38px; padding: 0 12px; font-size: 14px; }
  .table th { font-size: 12px; }
  .table th, .table td { padding: 8px 8px; }
  .dl { grid-template-columns: 105px 1fr; gap: 6px 10px; }
  .dl dt { font-size: 13px; }
  .badge { font-size: 11.5px; padding: 2px 8px; }
  .tabs a, .tabs button { padding: 8px 12px; font-size: 14px; }
  .flash { font-size: 13.5px; padding: 10px 12px; }
  .mobile-top { height: calc(52px + env(safe-area-inset-top)); }
  .mobile-top img { height: 26px; }
  .mobile-top .iconbtn { width: 36px; height: 36px; }
  .bottomnav { height: 60px; }
  .bottomnav a { font-size: 10.5px; gap: 2px; }
  .bottomnav svg { width: 20px; height: 20px; }
  .rowitem { padding: 10px 0; }
  .nav a { padding: 9px 12px; font-size: 14.5px; }
}

/* =====================================================================
   TransportManager: extra rollen, iconen en de bestaande Transport-
   schermen in exact dezelfde huisstijl (knoppen, kaarten, tabellen,
   velden en meldingen gelijk aan WorkPortal).
   ===================================================================== */
.role-planning  { --rc: #3AA3EC; --rb: #E5F3FD; --rt: #1A6AA6; }
.role-chauffeur { --rc: #F2711C; --rb: #FEEFE5; --rt: #B24E0C; }
input[type=time], input[type=month], input[type=week] {
  font: 15px var(--font); color: var(--ink); background: #fff; border: 1px solid #D5DAE8; border-radius: 10px; padding: 0 12px; height: 44px; width: 100%; outline: none; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--basic); }
input[type=file] { font: 14px var(--font); color: var(--ink-2); }

/* oude kleurvariabelen → huisstijl */
:root {
  --kleur-primair: var(--basic); --kleur-primair-donker: var(--basic-dark); --kleur-accent: var(--accent);
  --kleur-tekst-op-primair: #fff; --kleur-achtergrond: var(--bg); --kleur-kaart: var(--card);
  --kleur-tekst: var(--ink); --kleur-subtekst: var(--muted); --kleur-rand: var(--line);
  --kleur-groen: var(--ok); --kleur-rood: var(--bad);
}

/* pagina en koppen */
.inhoud > h1 { margin: 0; }
.paginakop { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.paginakop h1 { margin: 0; }
.kaart h2:first-child, .kaart > h3:first-child { margin-top: 0; }

/* kaarten */
.kaart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; }
:not(.content) > .kaart + .kaart { margin-top: 16px; }
.kaart.tabel-wrap { padding: 0; overflow-x: auto; }
.kaart.tabel-wrap > :not(table) { margin-left: 18px; margin-right: 18px; }
.tabel-wrap { overflow-x: auto; }
.rit-kaart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.rit-kaart .rit-adressen { font-weight: 500; margin: 4px 0; }
.taak-te-laat { border-color: #F1B5AE; background: #FFF8F7; }
.rit-meta, .sectie-sub { color: var(--muted); font-size: 14px; }
.leeg { color: var(--muted); padding: 18px 0; text-align: center; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }

/* tabellen (zonder class) krijgen de tabelstijl van WorkPortal */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 12px 14px; background: #F7F8FC; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; background: #F7F8FC; border-top: 1px solid var(--line); }

/* knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--basic); background: #fff; color: var(--basic); font: 500 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.2; }
.knop:hover { background: #F3F4FF; color: var(--basic); }
.knop.knop-primair { background: var(--basic); color: #fff; border-color: var(--basic); }
.knop.knop-primair:hover { background: var(--basic-dark); color: #fff; }
.knop.knop-gevaar { border-color: #C62828; color: #B42318; background: #fff; }
.knop.knop-gevaar:hover { background: var(--bad-bg); }
.knop.knop-klein { height: 36px; padding: 0 12px; font-size: 14px; }
.knop[disabled] { opacity: .5; cursor: not-allowed; }
.knoppenrij { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link-knop { background: none; border: 0; color: var(--basic); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.inhoud .inline-form { display: inline-flex; }

/* formulieren */
.content .form { max-width: 560px; }
.form-rij { display: flex; gap: 14px 18px; flex-wrap: wrap; }
.form-rij > label { flex: 1; min-width: 180px; }
label:not(.check):not(.chip):not(.tick):not(.rolechip):not(.kindopt):not(.choice):not(.tol-optie) { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.tol-optie { display: flex; flex-direction: row; }
.tol-lijst { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; }
.tol-optie { align-items: center; gap: 10px !important; font-size: 15px; color: var(--ink); font-weight: 400; }
.tol-optie input { width: auto; }
.prijs-overzicht { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

/* meldingen */
.melding { padding: 12px 16px; border-radius: 10px; font-size: 14.5px; border: 1px solid; background: var(--accent-soft); color: #0059B3; border-color: #BCDDFF; }
.melding-fout { background: var(--bad-bg); color: var(--bad); border-color: #F3C2BC; }
.melding-succes { background: var(--ok-bg); color: var(--ok); border-color: #BFE3CF; }
.melding-info { background: var(--accent-soft); color: #0059B3; border-color: #BCDDFF; }
td.melding-fout, span.melding-fout, strong.melding-fout { background: none; border: 0; color: var(--bad); font-weight: 500; }

/* statusbadges */
.badge-gepland { background: var(--accent-soft); color: #0059B3; }
.badge-onderweg { background: var(--warn-bg); color: var(--warn); }
.badge-afgerond { background: var(--ok-bg); color: var(--ok); }
.badge-geannuleerd { background: var(--bad-bg); color: var(--bad); }

/* urenregistratie: genummerd START/stop/EIND-overzicht */
.dagoverzicht { display: flex; flex-direction: column; margin: 10px 0; }
.dagoverzicht-item { display: flex; gap: 12px; padding: 8px 0 8px 16px; border-left: 2px solid var(--line); margin-left: 14px; }
.dagoverzicht-item:last-child { border-left-color: transparent; }
.dagoverzicht-marker { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-left: -30px; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.dagoverzicht-marker-start, .dagoverzicht-marker-eind { background: var(--basic); border-color: var(--basic); color: #fff; font-size: 11px; }
.dagoverzicht-marker-stop { background: var(--accent-soft); border-color: var(--accent); color: var(--basic); }
.dagoverzicht-inhoud { flex: 1 1 auto; }
.dagoverzicht-titel { font-weight: 500; }
.stop-bewerken { margin-top: 4px; }
.stop-bewerken summary { cursor: pointer; color: var(--basic); font-size: 14px; font-weight: 500; }

/* weekoverzicht: kaartjes per datum */
.dagkaarten-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dagkaart { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.dagkaart-datum { font-weight: 700; color: var(--basic); margin-bottom: 8px; }
.dagkaart-opdracht { padding: 6px 0; border-top: 1px solid var(--line-2); }
.dagkaart-opdracht:first-of-type { border-top: 0; }

/* zoekresultaten */
.zoekgroep h2 svg { width: 20px; height: 20px; color: var(--accent); vertical-align: -3px; margin-right: 6px; }

@media (max-width: 600px) {
  .knop { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
  .knop.knop-klein { height: 34px; padding: 0 10px; font-size: 13px; }
  .kaart { padding: 13px; border-radius: 12px; }
  th, td { padding: 8px 8px; }
  th { font-size: 12px; }
  .melding { font-size: 13.5px; padding: 10px 12px; }
  .rit-meta { font-size: 13px; }
  input[type=time], input[type=month], input[type=week] { height: 42px; font-size: 16px; }
}

/* actieknoppen in een tabelcel naast elkaar (lopen door als het niet past) */
td.knoppenrij { display: table-cell; white-space: normal; }
td.knoppenrij > * { margin: 2px 6px 2px 0; vertical-align: middle; }
td.knoppenrij .inline-form { display: inline-flex; }
@media (max-width: 900px) { td:first-child { white-space: nowrap; } }
