/* BusiKit (11-11-2026): gedeelde stijl van de losse tools op busimatch.tools (zelfde lichte stijl als BusiTrace en Busi Halftone) */
:root { --bk-ink: #0f172a; --bk-stil: #64748b; --bk-lijn: #e2e8f0; --bk-vlak: #ffffff; --bk-achter: #f1f5f9; --bk-accent: #2563eb; --bk-accent2: #1d4ed8; --bk-zacht: #eff6ff; --bk-zachtlijn: #bfdbfe; --bk-groen: #0f766e; --bk-fout: #dc2626; --bk-waar: #b45309; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bk-achter); color: var(--bk-ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bk-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--bk-vlak); border-bottom: 1px solid var(--bk-lijn); min-height: 52px; }
.bk-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--bk-ink); text-decoration: none; }
.bk-logo img { width: 26px; height: 26px; }
.bk-sp { flex: 1; }
.bk-tknop { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--bk-lijn); border-radius: 9px; background: #fff; color: var(--bk-ink); font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.bk-tknop::-webkit-details-marker { display: none; }
.bk-taal { position: relative; }
.bk-taalmenu { position: absolute; inset-inline-end: 0; top: 40px; background: #fff; border: 1px solid var(--bk-lijn); border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.15); padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 320px; max-width: calc(100vw - 24px); }
.bk-taalmenu a { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 7px; color: var(--bk-ink); text-decoration: none; }
.bk-taalmenu a:hover, .bk-taalmenu a.aan { background: var(--bk-achter); }
.bk-wie { color: var(--bk-stil); font-size: 13px; }

.bk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: calc(100vh - 52px); }
.bk.bk-vol { height: calc(100vh - 52px); min-height: 560px; }
.bk-links { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bk-werk { position: relative; flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; padding: 16px 16px 72px; }
.bk-werk.slepen { outline: 4px dashed var(--bk-accent); outline-offset: -10px; }
.bk-leeg { margin: auto; max-width: 480px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px; background: var(--bk-vlak); border: 2px dashed var(--bk-lijn); border-radius: 18px; }
.bk-leeg h1 { margin: 0; font-size: 26px; }
.bk-leeg p { margin: 0; }
.bk-leegicoon { font-size: 52px; line-height: 1; }
.bk-balk { position: sticky; top: 0; z-index: 4; align-self: flex-start; display: flex; align-items: center; gap: 4px; padding: 4px; margin-bottom: 12px; background: rgba(255,255,255,.96); border: 1px solid var(--bk-lijn); border-radius: 10px; box-shadow: 0 4px 16px rgba(15,23,42,.12); flex-wrap: wrap; }
.bk-zknop { border: 0; background: transparent; padding: 6px 10px; border-radius: 7px; font: inherit; font-weight: 600; color: var(--bk-ink); cursor: pointer; }
.bk-zknop:hover { background: var(--bk-achter); }
.bk-zknop.aan { background: var(--bk-accent); color: #fff; }
.bk-melding { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); background: var(--bk-ink); color: #fff; padding: 8px 14px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90%; text-align: center; z-index: 5; }
.bk-melding.zicht { opacity: 1; }
.bk-melding.fout { background: var(--bk-fout); }

.bk-paneel { background: var(--bk-vlak); border-inline-start: 1px solid var(--bk-lijn); overflow-y: auto; padding: 16px 16px 90px; display: flex; flex-direction: column; gap: 14px; }
.bk-vol .bk-paneel { max-height: calc(100vh - 52px); }
.bk-kop h1 { margin: 0; font-size: 20px; }
.bk-kop p { margin: 4px 0 0; color: var(--bk-stil); }
.bk-blok { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--bk-lijn); }
.bk-blok h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bk-stil); }
.bk-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.bk-rijlabel { flex-direction: row; align-items: center; gap: 8px; }
.bk-schuifkop { display: flex; justify-content: space-between; }
.bk-label input[type=range] { width: 100%; accent-color: var(--bk-accent); }
.bk-label input[type=checkbox] { accent-color: var(--bk-accent); width: 16px; height: 16px; }
.bk-veld { width: 100%; padding: 7px 9px; border: 1px solid var(--bk-lijn); border-radius: 8px; font: inherit; background: #fff; color: var(--bk-ink); }
.bk-klein { margin: 0; color: var(--bk-stil); font-size: 12.5px; }
.bk-waarsch { margin: 0; color: var(--bk-waar); font-size: 12.5px; }
.bk-waarsch:empty { display: none; }
.bk-ok { margin: 0; color: var(--bk-groen); font-weight: 600; font-size: 13px; }
.bk-gratis { margin: 0; padding: 10px 12px; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0; font-size: 13px; }
.bk-hoofdknop { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 0; border-radius: 10px; padding: 11px 18px; background: var(--bk-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.bk-hoofdknop:hover:not(:disabled) { background: var(--bk-accent2); }
.bk-knop { border: 1px solid var(--bk-lijn); border-radius: 9px; padding: 8px 14px; background: #fff; font: inherit; font-weight: 600; color: var(--bk-ink); cursor: pointer; }
.bk-knop:hover:not(:disabled) { background: var(--bk-achter); }
button:disabled { opacity: .5; cursor: not-allowed; }
.bk-volle { width: 100%; }
.bk-rij { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-link { color: var(--bk-accent2); font-weight: 600; text-decoration: none; }

.bk-uitleg { background: var(--bk-vlak); border-top: 1px solid var(--bk-lijn); padding: 40px 16px 120px; }
.bk-uitbinnen { max-width: 1100px; margin: 0 auto; }
.bk-groot { margin: 0; font-size: 28px; }
.bk-lead { margin: 6px 0 24px; color: var(--bk-stil); font-size: 16px; white-space: pre-line; }
.bk-uitraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bk-kaart { padding: 18px; border: 1px solid var(--bk-lijn); border-radius: 14px; background: #fff; }
.bk-kaart h3 { margin: 0 0 8px; font-size: 17px; }
.bk-kaart p { margin: 0; white-space: pre-line; color: #334155; }

/* tabellen (rekentools) */
.bk-tabel { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bk-lijn); border-radius: 12px; overflow: hidden; }
.bk-tabel th, .bk-tabel td { padding: 6px 8px; border-bottom: 1px solid var(--bk-lijn); text-align: start; vertical-align: middle; }
.bk-tabel th { background: var(--bk-achter); font-size: 12px; color: var(--bk-stil); text-transform: uppercase; letter-spacing: .04em; }
.bk-tabel td input, .bk-tabel td select { width: 100%; min-width: 60px; padding: 6px 7px; border: 1px solid var(--bk-lijn); border-radius: 7px; font: inherit; }
.bk-tabel td.getal, .bk-tabel th.getal { text-align: end; white-space: nowrap; }
.bk-kaartjes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 16px; }
.bk-cijfer { padding: 14px; border: 1px solid var(--bk-lijn); border-radius: 12px; background: #fff; }
.bk-cijfer span { display: block; color: var(--bk-stil); font-size: 12.5px; }
.bk-cijfer b { display: block; font-size: 22px; margin-top: 2px; }
.bk-cijfer.goed { border-color: #a7f3d0; background: #ecfdf5; }
.bk-cijfer.let { border-color: #fde68a; background: #fffbeb; }
.bk-cijfer.slecht { border-color: #fecaca; background: #fef2f2; }

#bk-afdruk { display: none; }
@media print {
  body > *:not(#bk-afdruk) { display: none !important; }
  #bk-afdruk { display: block !important; }
  #bk-afdruk img { max-width: 100%; }
}
@media (max-width: 860px) {
  .bk { grid-template-columns: 1fr; }
  .bk.bk-vol { height: auto; min-height: 0; }
  .bk-vol .bk-links { height: 62vh; min-height: 360px; }
  .bk-vol .bk-paneel { max-height: none; }
  .bk-paneel { border-inline-start: 0; border-top: 1px solid var(--bk-lijn); padding-bottom: 24px; }
  .bk-taalmenu { grid-template-columns: 1fr; width: 220px; }
  .bk-wie { display: none; }
}
/* kopbalk-smal (14-11-2026): een lange toolnaam mag de pagina op een gsm niet breder maken dan het scherm */
.bk-top > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-top .bk-logo, .bk-top .bk-tknop, .bk-top .bk-taal { flex: none; }
@media (max-width: 520px) { .bk-top { gap: 6px; padding: 8px 10px; } .bk-logo { font-size: 0; gap: 0; } .bk-sp { display: none; } .bk-top > span:first-of-type { flex: 1 1 0; } .bk-top > a.bk-tknop:last-child { display: inline-block; flex: 0 1 auto; max-width: 132px; line-height: 32px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* BusiToDo (27-11-2026), voorvoegsel .td-. Kleuren: groen = nog te doen, oranje = bijna, rood = over de deadline. */
:root { --td-groen: #16a34a; --td-oranje: #f59e0b; --td-rood: #dc2626; --td-grijs: #94a3b8; }
@keyframes td-flik { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes td-flikz { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes td-gloed { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); } 50% { box-shadow: 0 0 0 9px rgba(220,38,38,0); } }
@keyframes td-gloedo { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.6); } 50% { box-shadow: 0 0 0 9px rgba(245,158,11,0); } }
@keyframes td-in { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* de strook bovenaan */
.td-strook { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; margin-bottom: 12px; background: var(--bk-vlak); border: 1px solid var(--bk-lijn); border-radius: 16px; }
.td-ring { width: 48px; height: 48px; flex: none; }
.td-ringa { fill: none; stroke: var(--bk-lijn); stroke-width: 7; }
.td-ringb { fill: none; stroke: var(--td-groen); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .5s; }
.td-ringt { font: 800 15px system-ui, sans-serif; fill: var(--bk-ink); }
.td-moti { display: flex; flex-wrap: wrap; gap: 1px 12px; min-width: 190px; flex: 1; }
.td-moti b { flex-basis: 100%; }
.td-moti b { font-size: 15px; }
.td-moti span { color: var(--bk-stil); font-size: 12.5px; }
.td-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.td-chip { display: flex; align-items: baseline; gap: 6px; padding: 4px 11px; border-radius: 999px; color: #fff; line-height: 1.3; }
.td-chip b { font-size: 15px; }
.td-chip span { font-size: 12px; font-weight: 600; white-space: nowrap; }
.td-chip.td-c-groen { background: var(--td-groen); }
.td-chip.td-c-oranje { background: var(--td-oranje); color: #1f1300; }
.td-chip.td-c-rood { background: var(--td-rood); }
.td-chip.td-c-klaar { background: #475569; }
.td-flik { animation: td-flikz 1s steps(2, jump-none) infinite; }

/* de deadline-lamp rechtsboven */
.td-lamp { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; padding: 10px 14px; min-width: 250px; max-width: 380px; text-align: start; font: inherit; color: #fff; border: 0; border-radius: 14px; cursor: pointer; background: var(--td-groen); }
.td-lamp:disabled { background: var(--td-grijs); cursor: default; opacity: 1; }
.td-lampbol { width: 18px; height: 18px; flex: none; border-radius: 50%; background: #fff; }
.td-lamptxt { display: flex; flex-direction: column; min-width: 0; }
.td-lamptxt small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.td-lamptxt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-lampklok { font: 800 17px ui-monospace, Consolas, monospace; white-space: nowrap; }
.td-lamplaat { margin-inline-start: auto; align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: var(--td-rood); color: #fff; font-size: 11.5px; font-weight: 800; white-space: nowrap; animation: td-flikz .7s steps(2, jump-none) infinite; }
.td-lamp.td-l-oranje { background: var(--td-oranje); color: #1f1300; animation: td-gloedo 1s infinite; }
.td-lamp.td-l-oranje .td-lampbol { background: #1f1300; animation: td-flik 1s steps(2, jump-none) infinite; }
.td-lamp.td-l-rood { background: var(--td-rood); animation: td-gloed .6s infinite; }
.td-lamp.td-l-rood .td-lampbol { animation: td-flik .5s steps(2, jump-none) infinite; }

/* balk en invoer */
.td-balk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.td-balk .bk-balk { position: static; margin: 0; }
.td-lijstf { width: auto; min-width: 130px; }
.td-zoek { width: auto; flex: 1; min-width: 140px; }
.td-kl { white-space: nowrap; padding: 8px 12px; }
.td-invoer { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin-bottom: 12px; background: var(--bk-vlak); border: 2px solid var(--bk-accent); border-radius: 14px; }
.td-invrij { display: flex; gap: 8px; }
.td-nieuw { flex: 1; font-size: 16px; padding: 11px 13px; }
.td-snel { display: flex; gap: 6px; flex-wrap: wrap; }
.td-snelknop, .td-mini { border: 1px solid var(--bk-lijn); background: var(--bk-achter); color: var(--bk-ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.td-snelknop.aan { background: var(--bk-accent); border-color: var(--bk-accent); color: #fff; }
.td-hint { margin: 0; }
.td-vb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 12px; margin-bottom: 12px; border-radius: 10px; background: rgba(245,158,11,.16); border: 1px solid rgba(245,158,11,.5); }

/* de tabel */
.td-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; border: 1px solid var(--bk-lijn); border-radius: 14px; background: var(--bk-vlak); }
.td-tabel { width: 100%; min-width: 880px; border-collapse: collapse; }
.td-tabel th { padding: 0; text-align: start; border-bottom: 2px solid var(--bk-lijn); background: var(--bk-achter); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--bk-stil); white-space: nowrap; }
.td-tabel th.td-k-vink { text-align: center; }
.td-th { width: 100%; text-align: start; border: 0; background: none; padding: 9px 8px; font: inherit; font-weight: 700; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.td-th.aan { color: var(--bk-ink); }
.td-tabel td { padding: 5px 3px; border-bottom: 1px solid var(--bk-lijn); vertical-align: middle; }
.td-rij { border-inline-start: 7px solid var(--td-grijs); transition: background .3s; }
.td-rij.td-s-geen { border-inline-start-color: var(--td-groen); background: rgba(22,163,74,.05); }
.td-rij.td-s-groen { border-inline-start-color: var(--td-groen); background: rgba(22,163,74,.12); }
.td-rij.td-s-oranje { border-inline-start-color: var(--td-oranje); background: rgba(245,158,11,.22); }
.td-rij.td-s-rood { border-inline-start-color: var(--td-rood); background: rgba(220,38,38,.18); }
.td-rij.td-s-klaar { opacity: .72; }
.td-rij.td-s-klaar .td-cel-titel { text-decoration: line-through; }
.td-rij.td-gekozen { outline: 2px solid var(--bk-accent); outline-offset: -2px; }
.td-k-vink { width: 40px; text-align: center; }
.td-vink { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bk-stil); background: var(--bk-vlak); color: #fff; font-weight: 800; font-size: 15px; line-height: 1; cursor: pointer; transition: transform .12s; }
.td-vink:hover { transform: scale(1.15); border-color: var(--td-groen); }
.td-vink.aan { background: var(--td-groen); border-color: var(--td-groen); }
.td-cel { width: 100%; min-width: 0; border: 1px solid transparent; border-radius: 7px; padding: 6px 7px; background: transparent; color: var(--bk-ink); font: inherit; }
.td-cel:hover { border-color: var(--bk-lijn); }
.td-cel:focus { outline: none; border-color: var(--bk-accent); background: var(--bk-vlak); }
.td-cel-titel { font-weight: 700; font-size: 15px; }
.td-k-taak { min-width: 170px; }
.td-k-plaats { width: 96px; }
.td-k-lijst { width: 84px; }
.td-k-tegen { width: 152px; }
.td-cel-tegen { font-size: 12.5px; padding-inline: 3px; color-scheme: light dark; }
.td-k-teller { width: 158px; padding-inline: 8px !important; }
.td-klok { font: 800 14px ui-monospace, Consolas, monospace; white-space: nowrap; }
.td-s-rood .td-klok { white-space: normal; font-size: 13px; }
.td-s-geen .td-klok { font: 13px system-ui, sans-serif; color: var(--bk-stil); }
.td-s-groen .td-klok { color: color-mix(in srgb, var(--td-groen) 72%, var(--bk-ink)); }
.td-s-oranje .td-klok { color: color-mix(in srgb, var(--td-oranje) 62%, var(--bk-ink)); animation: td-flikz 1s steps(2, jump-none) infinite; }
.td-s-rood .td-klok { color: color-mix(in srgb, var(--td-rood) 75%, var(--bk-ink)); animation: td-flikz .7s steps(2, jump-none) infinite; }
.td-s-klaar .td-klok { color: color-mix(in srgb, var(--td-groen) 72%, var(--bk-ink)); font-family: system-ui, sans-serif; white-space: normal; }
.td-s-klaar .td-klok.td-mislukt { color: color-mix(in srgb, var(--td-rood) 75%, var(--bk-ink)); }
.td-spoor { height: 7px; margin-top: 4px; border-radius: 99px; background: rgba(100,116,139,.25); overflow: hidden; }
.td-s-geen .td-spoor, .td-s-klaar .td-spoor { display: none; }
.td-vul { display: block; height: 100%; border-radius: 99px; background: var(--td-groen); transition: width 1s linear; }
.td-s-oranje .td-vul { background: var(--td-oranje); }
.td-s-rood .td-vul { background: var(--td-rood); }
.td-prio { border: 0; border-radius: 999px; padding: 5px 9px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; background: #e2e8f0; color: #0f172a; }
.td-prio.td-p-laag { background: #cbd5e1; color: #334155; }
.td-prio.td-p-hoog { background: #7c3aed; color: #fff; }
.td-k-prio { width: 84px; }
.td-ik { border: 0; background: none; font-size: 16px; padding: 4px 5px; border-radius: 7px; cursor: pointer; }
.td-ik:hover { background: var(--bk-achter); }
.td-leeg { text-align: center; padding: 38px 16px; color: var(--bk-stil); background: var(--bk-vlak); border: 2px dashed var(--bk-lijn); border-radius: 14px; }
.td-leegicoon { font-size: 46px; }

/* paneel */
.td-bewerk { display: flex; flex-direction: column; gap: 8px; }
.td-btitel { font-size: 15px; }
.td-notitie { resize: vertical; min-height: 60px; }
.td-legenda { display: flex; flex-direction: column; gap: 5px; }
.td-leg { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.td-leg i { width: 16px; height: 16px; border-radius: 5px; flex: none; }
.td-leg.td-c-groen i { background: var(--td-groen); }
.td-leg.td-c-oranje i { background: var(--td-oranje); }
.td-leg.td-c-rood i { background: var(--td-rood); }
.td-toetsen { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; align-items: center; font-size: 13px; }
.td-toetsen kbd { justify-self: start; padding: 2px 7px; border: 1px solid var(--bk-lijn); border-bottom-width: 2px; border-radius: 6px; background: var(--bk-achter); color: var(--bk-ink); font: 600 12px ui-monospace, Consolas, monospace; white-space: nowrap; }

/* alarm (bel, waarschuwing, gemist) */
.td-alarmvak { position: fixed; top: 62px; inset-inline-end: 14px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 28px)); pointer-events: none; }
.td-alarm { pointer-events: auto; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; color: #fff; background: var(--td-rood); box-shadow: 0 14px 40px rgba(0,0,0,.35); animation: td-in .25s, td-gloed .7s infinite; }
.td-alarm b { font-size: 18px; }
.td-alarm.td-a-bijna { background: var(--td-oranje); color: #1f1300; animation: td-in .25s, td-gloedo 1s infinite; }
.td-alarm.td-a-gemist { animation: td-in .25s; }
.td-alarmkn { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.td-alarm .bk-knop, .td-alarm .bk-hoofdknop { padding: 7px 11px; font-size: 13px; border: 0; background: #fff; color: #0f172a; }
.td-alarm .bk-hoofdknop { background: #0f172a; color: #fff; }

/* focusstand */
.td-focus { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: var(--bk-achter); color: var(--bk-ink); overflow: auto; }
.td-focus[hidden] { display: none; }
.td-fkop { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--bk-stil); font-weight: 700; }
.td-ftitel { margin: 0; font-size: clamp(24px, 5vw, 44px); max-width: 900px; }
.td-fsub { margin: 0; color: var(--bk-stil); }
.td-fmidden { position: relative; width: min(62vmin, 380px); aspect-ratio: 1; display: grid; place-items: center; }
.td-fring { position: absolute; inset: 0; width: 100%; height: 100%; }
.td-fring .td-ringa, .td-fring .td-ringb { stroke-width: 12; }
.td-focus.td-s-oranje .td-ringb { stroke: var(--td-oranje); }
.td-focus.td-s-rood .td-ringb { stroke: var(--td-rood); }
.td-fklok { position: relative; font: 800 clamp(20px, 5.4vmin, 38px) ui-monospace, Consolas, monospace; max-width: 78%; }
.td-focus.td-s-groen .td-fklok { color: var(--td-groen); }
.td-focus.td-s-oranje .td-fklok { color: color-mix(in srgb, var(--td-oranje) 62%, var(--bk-ink)); animation: td-flikz 1s steps(2, jump-none) infinite; }
.td-focus.td-s-rood .td-fklok { color: color-mix(in srgb, var(--td-rood) 75%, var(--bk-ink)); animation: td-flikz .7s steps(2, jump-none) infinite; }
.td-focus .td-alarmkn { justify-content: center; }
.td-confetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; }

/* afdrukken */
.td-druk h1 { font-size: 18px; margin: 0 0 10px; }
.td-druktabel { width: 100%; border-collapse: collapse; font-size: 12px; }
.td-druktabel th, .td-druktabel td { border: 1px solid #94a3b8; padding: 5px 7px; text-align: start; vertical-align: top; white-space: pre-line; }
.td-druktabel th { background: #e2e8f0; }

@media (max-width: 900px) {
  .td-lamp { margin-inline-start: 0; width: 100%; max-width: none; order: -1; }
  .td-invrij { flex-direction: column; }
  .td-kl { padding: 7px 9px; font-size: 12.5px; }
}
/* het flikkeren blijft onder 3 keer per seconde (veilig), en blijft ook aan als Windows-animaties uit staan: Didier vroeg er uitdrukkelijk om */

/* ---- stap 1 schikking (27-11-2026): rijknoppen, paneel als schuiflade, kaartjes als het werkvlak smal is ---- */
.td-k-acties { width: 164px; }
.td-acties { display: flex; gap: 3px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.td-uit { border: 1px solid var(--bk-lijn); background: var(--bk-vlak); color: var(--bk-ink); border-radius: 999px; padding: 4px 8px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.td-uit:hover { border-color: var(--bk-accent); color: var(--bk-accent); }

.bk.td-breed { grid-template-columns: minmax(0, 1fr); }
.td-breed > .bk-links > .bk-werk { container: tdwerk / inline-size; }
.td-breed > .bk-paneel { display: none; position: fixed; top: 52px; bottom: 0; inset-inline-end: 0; z-index: 58; width: min(380px, 100vw); max-height: none; border-top: 0; border-inline-start: 1px solid var(--bk-lijn); box-shadow: 0 0 60px rgba(0,0,0,.45); padding-top: 0; animation: td-lade .18s; }
.td-breed.td-open > .bk-paneel { display: flex; }
.td-breed > .bk-paneel > .bk-kop { display: none; }
@keyframes td-lade { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
[dir="rtl"] .td-breed > .bk-paneel { animation: none; }
.td-doek { display: none; position: fixed; inset: 0; z-index: 57; background: rgba(2,6,23,.55); }
.td-open > .td-doek { display: block; }
.td-ladekop { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-inline: -16px; padding: 12px 16px; background: var(--bk-vlak); border-bottom: 1px solid var(--bk-lijn); font-size: 16px; }
.bk-paneel[data-m="taak"] > .td-b-inst, .bk-paneel[data-m="inst"] > .td-b-taak { display: none; }
.td-b-taak > h3 { display: none; }

@container tdwerk (max-width: 900px) {
  .td-scroll { overflow: visible; padding: 8px; }
  .td-tabel, .td-tabel tbody { display: block; min-width: 0; }
  .td-tabel thead { display: none; }
  .td-tabel tbody { display: flex; flex-direction: column; gap: 9px; }
  .td-tabel tr.td-rij { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "vink taak taak" "vink teller teller" "tegen tegen prio" "plaats plaats lijst" "acties acties acties"; gap: 5px 6px; align-items: center; padding: 10px 10px 8px; border-radius: 14px; border-block: 1px solid var(--bk-lijn); border-inline-end: 1px solid var(--bk-lijn); }
  .td-tabel td { display: block; width: auto; padding: 0 !important; border: 0; }
  .td-k-vink { grid-area: vink; align-self: start; padding-top: 3px !important; }
  .td-vink { width: 36px; height: 36px; font-size: 18px; }
  .td-k-taak { grid-area: taak; min-width: 0; }
  .td-cel-titel { font-size: 16px; }
  .td-k-teller { grid-area: teller; padding-inline: 7px !important; }
  .td-klok { font-size: 19px; }
  .td-s-rood .td-klok { font-size: 16px; }
  .td-k-tegen { grid-area: tegen; }
  .td-cel-tegen { font-size: 14px; }
  .td-k-prio { grid-area: prio; justify-self: end; }
  .td-k-plaats { grid-area: plaats; }
  .td-k-lijst { grid-area: lijst; }
  .td-k-acties { grid-area: acties; border-top: 1px solid var(--bk-lijn) !important; padding-top: 6px !important; margin-top: 2px; }
  .td-uit { padding: 7px 12px; font-size: 13px; }
  .td-ik { font-size: 19px; padding: 5px 9px; }
  .td-cel { border-color: var(--bk-lijn); }
}

/* venster bij Toevoegen: naam, datum en uur, Bevestigen (27-11-2026) */
.td-pop { width: min(460px, calc(100vw - 24px)); padding: 18px; border: 1px solid var(--bk-lijn); border-radius: 18px; background: var(--bk-vlak); color: var(--bk-ink); box-shadow: 0 24px 70px rgba(0,0,0,.5); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.td-pop[open] { display: flex; flex-direction: column; gap: 12px; animation: td-in .18s; }
.td-pop::backdrop { background: rgba(2,6,23,.72); }
.td-poptitel { margin: 0; font-size: 18px; }
.td-pop .td-nieuw { width: 100%; }
.td-popdt { width: 100%; font-size: 17px; padding: 11px 13px; color-scheme: light dark; }
.td-popkn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.td-popkn .bk-hoofdknop { flex: 1 1 100%; padding: 12px; font-size: 16px; }
.td-fout { border-color: var(--td-rood) !important; box-shadow: 0 0 0 3px rgba(220,38,38,.3); }

