/* 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; } }

/* BusiMAC (02-12-2026): eigen stijl, voorvoegsel .bm- */
.bm-invoer { padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #2e1065, #7c3aed 55%, #db2777); color: #fff; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 30px rgba(124, 58, 237, .25); }
.bm-invoer .bk-klein { color: #ede9fe; margin: 0; }
.bm-lbl { font-size: 13px; opacity: .9; }
.bm-adres { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid transparent; font: 700 22px ui-monospace, SFMono-Regular, Consolas, monospace; background: #fff; color: #2e1065; letter-spacing: .03em; }
.bm-adres.bm-slecht { border-color: #f87171; }
.bm-fout { margin: 0; color: #fecaca; font-weight: 600; }
.bm-fout:empty { display: none; }
.bm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-chip { padding: 4px 10px !important; font-size: 12px !important; background: rgba(255,255,255,.14) !important; color: #fff !important; border-color: rgba(255,255,255,.28) !important; }
.bm-kop { margin: 22px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }

/* het label (wow) */
.bm-label { --kl: #7c3aed; position: relative; background: #fff; border: 2px solid var(--kl); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 30px rgba(46, 16, 101, .12); overflow: hidden; }
.bm-label::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: repeating-linear-gradient(90deg, var(--kl) 0 14px, transparent 14px 20px); opacity: .7; }
.bm-label.s-camera { --kl: #dc2626; } .bm-label.s-nas { --kl: #0891b2; } .bm-label.s-printer { --kl: #0d9488; }
.bm-label.s-router { --kl: #2563eb; } .bm-label.s-telefoon { --kl: #9333ea; } .bm-label.s-pc { --kl: #4b5563; }
.bm-label.s-slim { --kl: #d97706; } .bm-label.s-vm { --kl: #0ea5e9; } .bm-label.s-prive { --kl: #db2777; } .bm-label.s-groep { --kl: #64748b; }
.bm-lboven { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.bm-licoon { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 44px; background: color-mix(in srgb, var(--kl) 14%, #fff); border: 2px solid color-mix(in srgb, var(--kl) 40%, #fff); }
.bm-ltekst { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bm-lnaam { font-size: 24px; line-height: 1.15; color: #1f1147; word-break: break-word; }
.bm-lbij { font-size: 15px; color: var(--kl); font-weight: 700; }
.bm-lregel { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-pil { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; background: #f3f4f6; color: #374151; white-space: nowrap; }
.bm-pil.blok { background: #ede9fe; color: #5b21b6; font-weight: 700; font-family: ui-monospace, Consolas, monospace; }
.bm-pil.soort { background: color-mix(in srgb, var(--kl, #7c3aed) 12%, #fff); color: #1f2937; }
.bm-bytes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; direction: ltr; }
.bm-byte { position: relative; border-radius: 12px; padding: 10px 4px 6px; text-align: center; color: #fff; cursor: copy; background: hsl(var(--h) 65% 50%); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); transition: transform .15s; }
.bm-byte:hover { transform: translateY(-3px); }
.bm-byte.fab { outline: 3px solid #7c3aed; outline-offset: -3px; }
.bm-byte.dev { background: hsl(var(--h) 55% 40%); outline: 3px solid #10b981; outline-offset: -3px; }
.bm-byte.half { outline: 3px dashed #f59e0b; outline-offset: -3px; }
.bm-byte.leeg { background: #e5e7eb; color: #9ca3af; box-shadow: none; cursor: default; }
.bm-byte small { position: absolute; top: 3px; inset-inline-start: 6px; font-size: 10px; opacity: .75; }
.bm-byte b { display: block; font: 800 26px ui-monospace, Consolas, monospace; }
.bm-byte b span.d { color: #d1fae5; text-decoration: underline 2px #10b981; text-underline-offset: 4px; }
.bm-bitbalk { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 2px; direction: ltr; }
.bm-bitbalk i { height: 14px; border-radius: 2px; background: #7c3aed; }
.bm-bitbalk i:nth-child(8n) { margin-inline-end: 3px; }
.bm-bitbalk i.d { background: #10b981; }
.bm-bitbalk i.vlag { background: #e5e7eb; box-shadow: inset 0 0 0 2px #7c3aed; }
.bm-bitbalk i.vlag.aan { background: #db2777; box-shadow: none; }
.bm-bitbalk i.leeg { opacity: .25; }
.bm-legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.bm-l::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.bm-l.f::before { background: #7c3aed; } .bm-l.d::before { background: #10b981; } .bm-l.v::before { background: #db2777; }
.bm-luit { margin: 0; padding: 10px 12px; border-radius: 10px; background: #faf5ff; color: #3b0764; font-size: 14px; white-space: pre-line; line-height: 1.5; }
.bm-label.s-prive .bm-luit { background: #fdf2f8; color: #831843; }
.bm-kaarten { margin-top: 10px; }
.bm-cijfer b { font-family: ui-monospace, Consolas, monospace; font-size: 16px; cursor: copy; word-break: break-word; }
.bm-cijfer small { display: block; margin-top: 4px; color: var(--bk-stil); font-size: 12px; }

/* lijst */
.bm-lijstvak { background: #fff; border: 1px solid var(--bk-lijn); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bm-lijstvak > .bk-klein { margin: 0; }
.bm-lijst { width: 100%; min-height: 150px; padding: 10px; border-radius: 10px; border: 1px solid var(--bk-lijn); font: 12.5px/1.45 ui-monospace, Consolas, monospace; resize: vertical; background: #0f172a; color: #e2e8f0; }
.bm-knoppen { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-vink { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.bm-tel { margin: 0; font-weight: 700; }
.bm-tel:empty { display: none; }
.bm-soorten { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bm-scroll { overflow-x: auto; }
.bm-tab td { vertical-align: middle; }
.bm-tab .bm-ico { font-size: 22px; text-align: center; }
.bm-tab .bm-mono { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.bm-tab .bm-fab { min-width: 160px; }
.bm-tab tr.s-prive td { background: #fdf2f8; }
.bm-tab tr.s-groep td { color: #6b7280; }
.bm-link { border: 0; background: none; padding: 0; font: inherit; color: #6d28d9; text-decoration: underline dotted; cursor: pointer; }
.bm-naam { width: 100%; min-width: 130px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--bk-lijn); font: inherit; font-size: 13px; }

/* paneel */
.bm-dbtekst { margin: 0 0 8px; font-size: 13px; white-space: pre-line; }
.bm-dbtekst.fout { color: #b91c1c; }
.bm-laadbalk { display: none; height: 8px; border-radius: 99px; background: #ede9fe; overflow: hidden; margin-bottom: 8px; }
.bm-laadbalk.aan { display: block; }
.bm-laadbalk i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7c3aed, #db2777); transition: width .2s; }
.bm-stijlen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.bm-stijl { font-family: ui-monospace, Consolas, monospace !important; padding: 6px 8px !important; }
.bm-stijl.aan { background: #7c3aed !important; color: #fff !important; border-color: #7c3aed !important; }

@media (max-width: 700px) {
  .bm-bytes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bm-adres { font-size: 17px; }
  .bm-byte b { font-size: 22px; }
  .bm-licoon { width: 60px; height: 60px; font-size: 34px; }
  .bm-lnaam { font-size: 19px; }
  .bm-bitbalk i { height: 10px; }
  .bm-bitbalk i:nth-child(8n) { margin-inline-end: 1px; }
}
