/* Wisselbalk van de control room. Wordt ook in Winst en Inkoop geladen, dus alles hangt onder #tbc-balk
   en heeft eigen kleuren: de balk mag niet afhangen van (of botsen met) de stijl van een omgeving.
   Beeld: de zelfkant van een stof, donker met een rode stiknaad; het actieve label is een geweven etiket. */
#tbc-balk {
  position: relative; z-index: 50; background: #0b0b0b; color: #f4f3ef;
  font: 500 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
#tbc-balk::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px;
  border-bottom: 1px dashed rgba(224,103,90,0.85); pointer-events: none;
}
#tbc-balk *, #tbc-balk *::before { box-sizing: border-box; margin: 0; }
/* Eerst alles neutraal: omgevingen hebben eigen regels voor nav, a en span (Inkoop: "nav a" als witte pil).
   Deze regel wint daarvan door de #id; de regels hieronder met een klasse winnen weer van deze. */
#tbc-balk a, #tbc-balk nav, #tbc-balk span {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font: inherit; color: inherit; text-decoration: none; text-transform: none; letter-spacing: normal;
  width: auto; height: auto; min-width: 0; min-height: 0; flex-wrap: nowrap;
}
#tbc-balk a:focus-visible { outline: 2px solid #f4f3ef; outline-offset: 2px; border-radius: 2px; }
#tbc-balk .tbc-binnen {
  max-width: 1120px; height: 50px; margin: 0 auto; padding: 0 24px 3px;
  display: flex; align-items: center; gap: 22px;
}
#tbc-balk .tbc-merk { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
#tbc-balk .tbc-merk-groot { font-size: 11.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
#tbc-balk .tbc-merk-kort { display: none; font-size: 11.5px; font-weight: 700; letter-spacing: 0.24em; }
#tbc-balk .tbc-merk-klein { font-size: 11.5px; color: rgba(244,243,239,0.5); }
#tbc-balk .tbc-labels { display: flex; align-items: center; gap: 4px; }
#tbc-balk .tbc-label {
  position: relative; display: inline-flex; align-items: center; height: 28px;
  padding: 0 calc(13px - 0.18em) 0 13px; border-radius: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244,243,239,0.68); transition: color 0.15s ease, background-color 0.15s ease;
}
#tbc-balk .tbc-label:hover { color: #f4f3ef; background: rgba(244,243,239,0.08); }
#tbc-balk .tbc-label.tbc-aan { background: #f4f3ef; color: #0b0b0b; }
#tbc-balk .tbc-label.tbc-aan::before {
  content: ""; position: absolute; inset: 3px; border: 1px dashed #c13a2c; border-radius: 1px; pointer-events: none;
}
#tbc-balk .tbc-wie { margin-left: auto; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
#tbc-balk .tbc-ini {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(244,243,239,0.14);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
#tbc-balk .tbc-naam { font-size: 12.5px; color: rgba(244,243,239,0.85); }
#tbc-balk .tbc-uit { padding: 6px 2px; font-size: 12px; color: rgba(244,243,239,0.58); }
#tbc-balk .tbc-uit:hover { color: #f4f3ef; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-color-scheme: dark) {
  #tbc-balk { background: #1a1a19; box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
}
@media (max-width: 640px) {
  #tbc-balk .tbc-binnen { padding: 0 12px 3px; gap: 12px; }
  #tbc-balk .tbc-merk-groot, #tbc-balk .tbc-merk-klein, #tbc-balk .tbc-naam { display: none; }
  #tbc-balk .tbc-merk-kort { display: inline; }
  #tbc-balk .tbc-label { padding: 0 calc(9px - 0.14em) 0 9px; letter-spacing: 0.14em; }
}
@media (prefers-reduced-motion: reduce) {
  #tbc-balk .tbc-label { transition: none; }
}
@media print { #tbc-balk { display: none; } }
