/* ==========================================================================
   Boost Creators admin - groep BEHEER (Admin met alle tabs, inlogpagina, wachtscherm, accountscherm).
   Alleen samenstellingen van bestaande bc-ds-* onderdelen; tokens uit admin-ds.css. Geen eigen kleuren, groottes of radii buiten de tokens.
   Geladen in templates/shell.php na admin-ds-werk.css; login.php en pending-approval.php laden admin-ds.css + dit bestand zelf.
     1. Gebruikers & rechten (rollenmatrix)   2. Integraties (koppelingskaarten)   3. Instellingen / Boost Center (uploadslots)   4. Mailtemplates   5. Groeiscan-instellingen   6. Inloggen en wachtscherm (.bc-ds-auth)   7. Logging (.bc-log-*)
   ========================================================================== */

/* ---------- 1. GEBRUIKERS & RECHTEN ---------- */
.bc-ds-bh-matrixhead { align-items: flex-end; padding-top: 14px; padding-bottom: 14px; }
.bc-ds-bh-rolehead { display: flex; flex-direction: column; align-items: center; gap: 4px; text-transform: none; letter-spacing: normal; color: var(--bc-ds-ink); }
.bc-ds-bh-rolename { font: 600 12.5px var(--bc-ds-font); color: var(--bc-ds-ink); }
.bc-ds-bh-roleusers { font: 400 10.5px var(--bc-ds-mono); color: var(--bc-ds-muted); }
.bc-ds-bh-roleacts { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 2px; min-height: 20px; }
.bc-ds-bh-prow { padding-top: 11px; padding-bottom: 11px; }
.bc-ds-check--locked[aria-checked="false"] { opacity: .5; cursor: not-allowed; }
.bc-ds-bh-roleacts .bc-ds-link { display: inline-flex; align-items: center; min-height: 24px; }
/* vinkvak 18px (contract 2.12) met een klikvlak van 24px (R-11) */
.bc-ds-bh-savebar[hidden] { display: none; }

/* ---------- 2. INTEGRATIES ---------- */
.bc-ds-bh-chipgap { margin-left: 11px; font-weight: 400; vertical-align: 1px; }
.bc-ds-bh-meta { margin-left: auto; font: 400 11.5px var(--bc-ds-mono); color: var(--bc-ds-muted); }
.bc-ds-bh-infotext { margin: 9px 0 0; }
.bc-ds-card-body .bc-ds-intro { margin-bottom: 18px; }
.bc-ds-inline-fill { flex: 1 1 0; min-width: 0; width: auto; }
.bc-ds-bh-result:empty { display: none; }
.bc-ds-bh-result { margin-top: 16px; }
.bc-ds-kvlist { margin-bottom: 4px; max-width: 520px; }
.bc-ds-kvlist .bc-ds-kv-v { text-align: left; }
.bc-ds-bh-steps { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--bc-ds-line-2); border-radius: var(--bc-ds-r-inset); background: var(--bc-ds-surface-2); font: 400 12.5px/1.6 var(--bc-ds-font); color: var(--bc-ds-ink-2); }
.bc-ds-bh-steps-title { margin-bottom: 6px; font: 600 12.5px var(--bc-ds-font); color: var(--bc-ds-ink); }
.bc-ds-bh-steps ol { margin: 0; padding-left: 18px; }
.bc-ds-bh-steps li + li { margin-top: 4px; }
.bc-ds-bh-steps code, .bc-ds-intro code, .bc-ds-hint code { font: 500 12px var(--bc-ds-mono); color: var(--bc-ds-ink); }
.bc-ds-bh-inset { padding: 14px 16px; border: 1px solid var(--bc-ds-line-2); border-radius: var(--bc-ds-r-inset); background: var(--bc-ds-surface-2); }
.bc-ds-bh-insethead { margin-bottom: 12px; }
.bc-ds-bh-toggleline { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; }
.bc-ds-bh-toggletitle { font: 600 13px var(--bc-ds-font); letter-spacing: -0.01em; color: var(--bc-ds-ink); }
.bc-ds-bh-togglesub { margin-top: 2px; max-width: 720px; font: 400 12px/1.5 var(--bc-ds-font); color: var(--bc-ds-muted); }
.bc-ds-card-foot .bc-ds-toggle-wrap { margin-right: 6px; }

/* ---------- 3. INSTELLINGEN / BOOST CENTER (uploadslots) ---------- */
.bc-ds-bh-slot { min-width: 0; }
.bc-ds-bh-slotbox { width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bc-ds-line-2); border-radius: var(--bc-ds-r-inset); background: var(--bc-ds-slot-bg, var(--bc-ds-surface-2)); overflow: hidden; }
.bc-ds-bh-slotbox img { max-width: 72px; max-height: 72px; object-fit: contain; }
.bc-ds-bh-slotbox.bc-ds-dashbox { border: 1px dashed var(--bc-ds-line-dash); }
.bc-ds-bh-slotacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bc-ds-bh-slot .bc-ds-label { margin-bottom: 8px; }
.bc-ds-bh-slot .bc-ds-hint { margin-top: 10px; }
.bc-ds-bh-cardcols > .bc-ds-card { display: flex; flex-direction: column; }
.bc-ds-bh-cardcols > .bc-ds-card > .bc-ds-card-body { flex: 1; }

/* Boost Center */
.bc-ds-bh-intro-wide { max-width: 900px; margin-bottom: 18px; }
.bc-ds-bh-tile { padding: 18px 22px; border-bottom: 1px solid var(--bc-ds-line-5); }
.bc-ds-bh-tile:last-child { border-bottom: 0; }
.bc-ds-bh-tilehead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bc-ds-bh-tilehead .bc-ds-dot { width: 9px; height: 9px; }
.bc-ds-bh-tiletitle { font: 700 14px var(--bc-ds-font); letter-spacing: -0.015em; color: var(--bc-ds-ink); }
.bc-ds-bh-insettitle { font: 700 13px var(--bc-ds-font); color: var(--bc-ds-ink); }
.bc-ds-bh-pricegrid { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(260px, 2fr); gap: 18px; }
@media (max-width: 640px) { .bc-ds-bh-pricegrid { grid-template-columns: minmax(0, 1fr); } }
.bc-ds-bh-upload { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bc-ds-bh-upload + .bc-ds-hint { margin-top: 8px; }
.bc-ds-bh-slotbox--44 { width: 44px; height: 44px; flex: 0 0 44px; }
.bc-ds-bh-slotbox--44 img { max-width: 36px; max-height: 36px; }
.bc-ds-bh-slotbox--78 { width: 78px; height: 60px; flex: 0 0 78px; }
.bc-ds-bh-slotbox--78 img { max-width: 70px; max-height: 52px; }
.bc-ds-bh-editor { min-height: 120px; padding: 16px 18px; border: 1px solid var(--bc-ds-line-input); border-radius: var(--bc-ds-r-ctl); background: #fff; font: 400 12.5px/1.65 var(--bc-ds-font); color: var(--bc-ds-ink-2); outline: none; }
.bc-ds-bh-editor:focus { border-color: var(--bc-ds-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc-ds-accent) 15%, transparent); }
.bc-ds-bh-editor h3 { margin: 0 0 12px; font: 700 13.5px var(--bc-ds-font); color: var(--bc-ds-ink); }
.bc-ds-bh-editor p { margin: 0 0 12px; }
.bc-ds-bh-editor p:last-child, .bc-ds-bh-editor ul:last-child { margin-bottom: 0; }
.bc-ds-bh-editor ul { margin: 0 0 12px; padding-left: 20px; }
.bc-ds-bh-editor a { color: var(--bc-ds-accent); }

/* ---------- 4. MAILTEMPLATES ---------- */
.bc-mailtemplate-editor { padding: 20px 22px 22px; border-top: 1px solid var(--bc-ds-line-3); background: var(--bc-ds-surface); }
.bc-mailtemplate-editor[hidden] { display: none; }
.bc-ds-bh-editorgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.bc-ds-bh-editorgrid > * { min-width: 0; }
.bc-ds-bh-editoracts { display: flex; flex-wrap: wrap; gap: 9px; }
.bc-ds-bh-tokenintro { margin: 0 0 6px; }
.bc-ds-bh-token { padding: 12px 0; border-top: 1px solid var(--bc-ds-line-4); }
.bc-ds-bh-tokenname { font: 500 12.5px var(--bc-ds-mono); color: #db2777; background: none; padding: 0; }
.bc-ds-bh-tokendesc { margin-top: 4px; }
.bc-ds-bh-mailframe { display: block; width: 100%; height: 480px; border: 1px solid var(--bc-ds-line-2); border-radius: var(--bc-ds-r-inset); background: #fff; }

/* ---------- 5. GROEISCAN-INSTELLINGEN ---------- */
.bc-ds-bh-nomb { margin-bottom: 0; }
.bc-ds-bh-nowrap { flex-wrap: nowrap; }
.bc-ds-bh-nowrap .bc-ds-input { width: 72px; }
.bc-ds-bh-hours { margin-top: 3px; font-size: 11px; }
.bc-ds-bh-hours:empty { display: none; }

/* ---------- 6. INLOGGEN EN WACHTSCHERM (buiten de shell: eigen pagina's zonder .bc-ds-page) ---------- */
.bc-ds-auth { margin: 0; background: var(--bc-ds-bg); color: var(--bc-ds-ink); font: 400 13px var(--bc-ds-font); -webkit-font-smoothing: antialiased; }
.bc-ds-auth :where(button, input) { font-family: inherit; }
.bc-ds-auth :where(button, a, input):focus-visible { outline: 2px solid var(--bc-ds-accent); outline-offset: 2px; }
.bc-ds-auth, .bc-ds-auth *, .bc-ds-auth *::before, .bc-ds-auth *::after { box-sizing: border-box; }
.bc-ds-auth :where(h1, p) { margin: 0; }
.bc-ds-auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 18px; }
.bc-ds-auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; max-width: 880px; min-height: 520px; background: #fff; border: 1px solid var(--bc-ds-line); border-radius: var(--bc-ds-r-modal); overflow: hidden; }
.bc-ds-auth-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 36px; background: var(--bc-ds-side-bg); color: #fff; }
.bc-ds-auth-wordmark { padding: 0; }
.bc-ds-auth-brand .bc-ds-brand-word { font-size: 28px; }
.bc-ds-auth-brand .bc-ds-brand-arrow { font-size: 18px; }
.bc-ds-auth-title { font: 700 26px/1.15 var(--bc-ds-font); letter-spacing: -0.03em; color: #fff; }
.bc-ds-auth-sub { margin-top: 8px; font: 400 13px/1.5 var(--bc-ds-font); color: var(--bc-ds-side-text); }
.bc-ds-auth-foot { font: 400 10.5px var(--bc-ds-mono); color: var(--bc-ds-side-muted); }
.bc-ds-auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; }
.bc-ds-auth-lead { margin: 5px 0 26px; }
.bc-ds-auth-alert { margin-bottom: 18px; }
.bc-ds-auth-alert[hidden] { display: none; }
.bc-ds-auth-or { margin: 22px 0; }
.bc-ds-auth-ms { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; width: 14px; height: 14px; }
.bc-ds-auth-ms span:nth-child(1) { background: #f25022; }
.bc-ds-auth-ms span:nth-child(2) { background: #7fba00; }
.bc-ds-auth-ms span:nth-child(3) { background: #00a4ef; }
.bc-ds-auth-ms span:nth-child(4) { background: #ffb900; }
.bc-ds-auth-card { width: 100%; max-width: 440px; padding: 36px 36px 32px; background: #fff; border: 1px solid var(--bc-ds-line); border-radius: var(--bc-ds-r-modal); }
.bc-ds-auth-logo { display: block; max-width: 140px; max-height: 48px; object-fit: contain; }
.bc-ds-auth-markbox { display: inline-block; margin-bottom: 26px; padding: 14px 18px; border-radius: var(--bc-ds-r-card); background: var(--bc-ds-side-bg); }
.bc-ds-auth-mark { display: block; padding: 0; }
.bc-ds-auth-cardtitle { font-size: 22px; letter-spacing: -0.025em; }
.bc-ds-auth-card .bc-ds-auth-lead { margin-bottom: 20px; line-height: 1.55; }
.bc-ds-auth-logout { margin-top: 20px; }
@media (max-width: 760px) { .bc-ds-auth-shell { grid-template-columns: minmax(0, 1fr); max-width: 440px; min-height: 0; } .bc-ds-auth-brand { display: none; } .bc-ds-auth-panel { padding: 32px 26px; } }

/* prototype r2538: het achtervoegsel (.simplicate.nl, min) is mono 500 12.5px; vet in uitleg- en stappenteksten is 600 in inkt (typeschaal A18) */

.bc-ds-intro strong, .bc-ds-bh-steps strong { font-weight: 600; color: var(--bc-ds-ink); }

/* ---------- 7. LOGGING (Admin > Logging: omschrijving, onderwerp, uitklapdetails) ---------- */
.bc-admin-logging { container: bclog / inline-size; }   /* de kaartweergave volgt de breedte van de ruimte (zijbalk open of dicht), niet die van het scherm */
.bc-log-item { border-bottom: 1px solid var(--bc-ds-line-5); }
.bc-log-item:last-child { border-bottom: 0; }
.bc-log-item .bc-ds-trow { border-bottom: 0; align-items: start; }
.bc-log-item:hover .bc-log-row, .bc-log-item.is-open .bc-log-row { background: var(--bc-ds-hover); }
.bc-log-row { cursor: pointer; }
.bc-log-row > .bc-ds-td { padding-top: 1px; }
.bc-log-what, .bc-log-subj { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bc-log-what-main { font: 600 13px/1.35 var(--bc-ds-font); letter-spacing: -0.01em; color: var(--bc-ds-ink); overflow-wrap: anywhere; }
.bc-log-sub { font: 400 12px/1.35 var(--bc-ds-font); color: var(--bc-ds-muted); overflow-wrap: anywhere; }
.bc-log-subj-name { font: 600 13px/1.35 var(--bc-ds-font); letter-spacing: -0.01em; color: var(--bc-ds-ink); overflow-wrap: anywhere; }
.bc-log-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }   /* lange namen (tickettitels) op maximaal twee regels, volledige naam in de tooltip */
a.bc-log-subj-name { color: var(--bc-ds-accent); }
.bc-log-subj .bc-ds-link.bc-log-subj-name { line-height: 1.35; padding: 4px 0; margin: -4px 0; }   /* DS-link in een cel heeft regelhoogte 24px; hier compacte regels met een klikvlak van minstens 24px */
a.bc-log-subj-name:hover { color: var(--bc-ds-accent-hover); }
.bc-log-subj-name--gone { font: italic 400 13px/1.35 var(--bc-ds-font); letter-spacing: 0; color: var(--bc-ds-muted); }
.bc-log-who { overflow-wrap: anywhere; }
.bc-log-none { color: var(--bc-ds-faint); }
.bc-log-tog { display: flex; justify-content: flex-end; }
.bc-ds-btn.bc-log-toggle { width: 28px; height: 28px; margin: -4px 0; padding: 0; border: 0; background: none; color: var(--bc-ds-ink-3); }
.bc-ds-btn.bc-log-toggle:hover { background: var(--bc-ds-fill); color: var(--bc-ds-ink); }
.bc-log-chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .15s ease; }
.bc-log-toggle[aria-expanded="true"] .bc-log-chev { transform: rotate(-135deg); margin-top: 3px; }

.bc-log-panel { padding: 4px 20px 18px; background: var(--bc-ds-hover); }
.bc-log-panel[hidden] { display: none; }
.bc-log-panel-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 28px; align-items: start; }
.bc-log-sec { min-width: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--bc-ds-line-3); border-radius: var(--bc-ds-r-inset); }
.bc-log-sec .bc-ds-sec-label { margin-bottom: 8px; }
.bc-log-sec .bc-ds-kv-v { text-align: left; overflow-wrap: anywhere; }
.bc-log-sec .bc-ds-kv-k { flex: 0 0 38%; max-width: 220px; }
.bc-log-subhead { margin-top: 10px; padding-top: 8px; font: 500 10.5px var(--bc-ds-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--bc-ds-muted); }
.bc-log-nodetail { margin: 0; font: 400 12.5px/1.5 var(--bc-ds-font); color: var(--bc-ds-muted); }
.bc-log-tech > summary { cursor: pointer; font: 600 12.5px var(--bc-ds-font); color: var(--bc-ds-ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
.bc-log-tech > summary::-webkit-details-marker { display: none; }
.bc-log-tech > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--bc-ds-ink-3); border-bottom: 1.5px solid var(--bc-ds-ink-3); transform: rotate(-45deg); transition: transform .15s ease; }
.bc-log-tech[open] > summary::before { transform: rotate(45deg); }
.bc-log-tech-body { margin-top: 10px; }
.bc-log-mono { font: 500 12px var(--bc-ds-mono); color: var(--bc-ds-ink-2); }
.bc-log-jsonlabel { margin: 12px 0 5px; font: 500 10.5px var(--bc-ds-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--bc-ds-muted); }
.bc-log-json { margin: 0; max-height: 240px; overflow: auto; padding: 10px 12px; background: var(--bc-ds-surface-2); border: 1px solid var(--bc-ds-line-3); border-radius: var(--bc-ds-r-ctl); font: 400 11.5px/1.55 var(--bc-ds-mono); color: var(--bc-ds-ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }

/* smalle ruimte (onder de 940px die de zes kolommen nodig hebben): elke regel wordt een kaart (omschrijving, onderwerp, daaronder tijd, medewerker en IP); geen horizontale scroll */
@container bclog (max-width: 940px) {
  .bc-admin-logging .bc-ds-table { min-width: 0; }
  .bc-admin-logging .bc-ds-thead { display: none; }
  .bc-log-row { grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto) 34px; grid-template-areas: "what what what tog" "subj subj subj tog" "when when ip ip" "who who who who"; gap: 8px 12px; padding: 14px 16px; }
  .bc-log-what { grid-area: what; }
  .bc-log-subj { grid-area: subj; }
  .bc-log-when { grid-area: when; font-size: 11.5px; color: var(--bc-ds-muted); }
  .bc-log-who { grid-area: who; font-size: 12px; color: var(--bc-ds-muted); }
  .bc-log-who::before { content: "Door "; }
  .bc-log-ip { grid-area: ip; text-align: right; font-size: 11.5px; }
  .bc-log-tog { grid-area: tog; align-self: start; }
  .bc-log-panel { padding: 2px 12px 14px; }
  .bc-log-panel-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bc-log-sec .bc-ds-kv { flex-direction: column; gap: 1px; align-items: flex-start; }
  .bc-log-sec .bc-ds-kv-k { flex: 0 0 auto; max-width: none; }
}
