/* DVCPortal: schermspecifieke opmaak (na app.css en lists.css geladen). Prefix dvc- per scherm. */

/* Kleine tabellen (DataTableView) */
.dtv { overflow: auto; }
.dtv .pad { padding: 10px 4px; }
.dtv .dash-table td.num, .dtv .dash-table th.num { text-align: right; white-space: nowrap; }
.dtv .dash-table th { white-space: nowrap; }
.dtv .dash-table tr.is-link:hover td { background: var(--slate-50); }
.dtv .dash-table tr.is-selected td { background: var(--brand-50); font-weight: 600; }
.dtv .dash-table tr.row-danger td { background: #dc2626; color: #fff; }
.dtv .dash-table tr.row-total td { background: var(--slate-50); font-weight: 600; }
.dtv .dash-table tr.row-strong td { background: var(--slate-100); border-top: 2px solid var(--slate-300); }
.dtv .dash-table td.cell-success { background: #16a34a; color: #fff; }
.dtv + .dtv { margin-top: 6px; }
.dtv--sticky .dash-table thead th { position: sticky; top: 0; z-index: 1; }

.dash-card h3 small { font-weight: 400; font-size: 12px; margin-left: 6px; }
.dash-card__tools { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.dash-card > small.muted { display: block; margin-top: 8px; }

/* Dashboard */
.dvc-dash { margin-top: 0; }

/* Dashboard bookings: 2/3 + 1/3 */
.dvc-fin { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dvc-fin > .dash-card { min-width: 0; }
@media (max-width: 1200px) { .dvc-fin { grid-template-columns: minmax(0, 1fr); } }
.dvc-period { width: 130px; }

/* Bol-dashboard: alles onder elkaar, volle breedte */
.dvc-bol { display: flex; flex-direction: column; gap: 16px; }
.dvc-bol > .dash-card { min-width: 0; }

/* Types / perioden links */
.dvc-types { padding: 0; overflow: auto; flex: 1 1 0; min-height: 0; }
.dvc-types .dtv { max-height: none; }

/* Data uitwisseling: JSON onder de lijst */
.dvc-blob { flex: none; margin-top: 12px; }
.dvc-blob__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dvc-blob__head .section-title { margin: 0 0 6px; }
.dvc-blob__memo textarea { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; }

/* Gebruiker bewerken */
.usr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.usr-qr { display: flex; align-items: center; justify-content: center; min-height: 210px; border: 1px dashed var(--slate-200); border-radius: var(--radius-sm); margin-bottom: 10px; }
.usr-code { width: 140px; }
@media (max-width: 800px) { .usr-grid { grid-template-columns: minmax(0, 1fr); } }

/* Inloggen: annuleren bij de 2FA-stap */
.auth__link { display: block; text-align: center; margin-top: 12px; color: var(--text-muted); }

/* Payter: verzendlog */
.dvc-sendlog { flex: none; margin-top: 12px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 10px 14px; }
.dvc-sendlog__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.dvc-sendlog__head .section-title { margin: 0; }
.dvc-sendlog__sum { display: inline-flex; gap: 6px; margin-right: auto; }
.dvc-sendlog .dtv { max-height: 34vh; }
.dvc-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--slate-100); color: var(--text); }
.dvc-badge--ok { background: var(--success-50); color: var(--success); }
.dvc-badge--fail { background: var(--danger-50); color: var(--danger); }
.dvc-sendlog__row--ok td { color: var(--success); }
.dvc-sendlog__row--failed td { color: var(--danger); background: var(--danger-50); }
.dvc-sendlog__row--busy td { background: var(--info-50); font-weight: 600; }
.dvc-sendlog__row--waiting td { color: var(--text-muted); }
.dvc-sendlog .pp__spin { display: inline-block; width: 14px; height: 14px; }

/* Dashboard: compact zoals in Delphi (kleine letter, één regel per rij), panelen zonder scrollbalken */
.dvc-dash .dtv { overflow: visible; max-height: none !important; }
.dvc-dash .dash-table { table-layout: auto; font-size: 11px; line-height: 1.35; }
.dvc-dash .dash-table th, .dvc-dash .dash-table td { padding: 2px 5px; white-space: nowrap; }
.dvc-dash .dash-table th { width: auto !important; min-width: 0 !important; }
/* lange tekst in de eerste kolom (bijv. seller_protection_credit_reversal) afkappen met … ; volledige tekst als tooltip */
.dvc-dash .dash-table td:first-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* Smalle lijst links (perioden / types) met dezelfde donkere balk als de lijst rechts */
.fill__col > .dvc-side { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; margin-bottom: 0; }
.dvc-side > .filterbar { min-height: 48px; }
.dvc-side .dash-table thead th { background: var(--slate-500); }

/* Dashboard-indeling: geen scrollbalk op de pagina. Boven de vier betaalproviders (eigen hoogte),
   onder Weborders / Dataexchange / Missing curr. / Scheduled tasks (2x breed) over de resterende hoogte;
   past de inhoud niet, dan scrolt alleen dat paneel. */
.dvc-dash { display: grid; gap: 16px; }
.dvc-dash--top { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.page--full > .dvc-dash--bottom { flex: 1 1 0; min-height: 240px; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); }
.dvc-dash--bottom > .dash-card { display: flex; flex-direction: column; min-height: 0; }
.dvc-dash--bottom > .dash-card > h3 { flex: none; }
.dvc-dash--bottom .dtv { flex: 1 1 0; min-height: 0; overflow: auto !important; }
.dvc-dash--bottom .dash-table td:first-child { max-width: 220px; }
@media (max-width: 1400px) {
    .dvc-dash--top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page--full > .dvc-dash--bottom { flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dvc-dash--bottom .dtv { max-height: 50vh !important; }
}

/* Data uitwisseling: gekleurde JSON (bekijken) */
.dvc-json { margin: 0; height: 440px; overflow: auto; resize: vertical; padding: 10px 12px; background: #fbfcfd; border: 1px solid var(--slate-200);
            border-radius: var(--radius-sm); font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; line-height: 1.45; white-space: pre; color: var(--text); }
.dvc-json .jk { color: #8b1a3a; }          /* sleutel */
.dvc-json .js { color: #1f7a3f; }          /* tekst */
.dvc-json .jn { color: #1f5fb2; }          /* getal */
.dvc-json .jl { color: #b26b00; font-weight: 600; } /* true / false / null */
.dvc-json .jp { color: var(--slate-500); } /* haakjes, komma's */

/* Kolomlijnen in alle kleine tabellen (dashboards, draaitabellen) */
.dtv .dash-table th, .dtv .dash-table td { border-right: 1px solid var(--slate-200); }
.dtv .dash-table th { border-right-color: rgba(255, 255, 255, .25); }
.dtv .dash-table th:last-child, .dtv .dash-table td:last-child { border-right: 0; }
.dtv .dash-table td { border-bottom: 1px solid var(--slate-200); }

/* Dashboard bookings / Bol: compacte tabellen, smallere kolommen */
.dvc-compact .dash-table { width: auto; table-layout: auto; font-size: 11px; line-height: 1.3; }
.dvc-compact .dash-table th, .dvc-compact .dash-table td { padding: 2px 4px; white-space: nowrap; }
.dvc-compact .dash-table th { width: auto !important; min-width: 0 !important; }
/* Dashboard bookings: links zo breed als kan (12 maanden naast elkaar), rechts alleen zo breed als de inhoud */
.dvc-fin.dvc-compact { grid-template-columns: minmax(0, 1fr) minmax(0, max-content); }
@media (max-width: 1200px) { .dvc-fin.dvc-compact { grid-template-columns: minmax(0, 1fr); } }

.dvc-sendlog__row--skipped td { color: var(--text-muted); }
/* Dashboard bookings rechts: de voetnoot onder Payments telt niet mee voor de breedte (anders wordt de kolom zo breed als die regel) */
.dvc-fin.dvc-compact > .dash-card > small.muted { width: 0; min-width: 100%; }
.dvc-fin.dvc-compact .dash-card__tools .dvc-period { width: 110px; }

/* Alle lijsten en tabellen in het portaal compact, zoals Dashboard / Payter (11px). Zelfde selectors als app.css (12px), dvc.css laadt later. */
html body .dxbl-grid { font-size: 11px; --dxbl-grid-font-size: 11px; }
html body .dxbl-grid .dxbl-grid-table > tbody > tr:not(.dxbl-grid-filter-row) > td { padding-top: 1px !important; padding-bottom: 1px !important; font-size: 11px; }
html body .dxbl-grid .dxbl-grid-header-row > th.dxbl-grid-header { padding-top: 3px !important; padding-bottom: 3px !important; font-size: 11px; }
html body .dxbl-grid .dxbl-grid-filter-row input { font-size: 11px; }
html body .dxbl-grid .dxbl-grid-group-row > td, html body .dxbl-grid .dxbl-grid-footer-row > td { font-size: 11px; }
html body .dxbl-grid .dxbl-pager { font-size: 11px; }
.dash-table { font-size: 11px; }
.dash-table th, .dash-table td { padding: 2px 5px; }

/* Controle: kaarten per controle (groen = niets gevonden, rood = actie nodig) */
.dvc-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 12px; }
.dvc-check { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px;
             border: 1px solid var(--slate-200); background: var(--white, #fff); cursor: pointer; font: inherit; }
.dvc-check:hover { border-color: var(--slate-400); }
.dvc-check.is-selected { outline: 2px solid var(--brand-500, #c8102e); outline-offset: 1px; }
.dvc-check__title { font-size: 12px; color: var(--text-muted); }
.dvc-check__count { font-size: 22px; font-weight: 700; line-height: 1.1; }
.dvc-check__amount { font-size: 12px; min-height: 16px; }
.dvc-check--ok { border-left: 4px solid #16a34a; } .dvc-check--ok .dvc-check__count { color: #16a34a; }
.dvc-check--fail { border-left: 4px solid #dc2626; } .dvc-check--fail .dvc-check__count { color: #dc2626; }
.dvc-check--error { border-left: 4px solid #f59e0b; } .dvc-check--busy { border-left: 4px solid var(--slate-300); }
.dvc-controle { display: flex; flex-direction: column; }
.dvc-check-detail { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.dvc-check-detail__head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; font-size: 12px; }
.dvc-check-hint { padding: 12px 2px; }
.dvc-matrix-card { margin-bottom: 12px; }
.dvc-matrix td, .dvc-matrix th { cursor: pointer; }
.dvc-matrix .dvc-matrix__month { text-align: center !important; border-left: 1px solid rgba(255,255,255,.35); }
.dvc-matrix td.dvc-bad { color: #dc2626; font-weight: 600; }
.dvc-matrix td.dvc-cell-selected { background: var(--brand-50, #fde8eb) !important; }
.dvc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--slate-300); }
.dvc-dot--ok { background: #16a34a; } .dvc-dot--fail { background: #dc2626; } .dvc-dot--error { background: #f59e0b; }
.dvc-check-expl { margin: -4px 0 8px; font-size: 12px; }
.dvc-controle > .dash-card { margin-bottom: 12px; }
/* Controle-overzicht: niet over de volle breedte uitrekken, kolommen zo breed als de inhoud */
/* vaste kolombreedtes (colgroup): overzicht en verdeling lijnen exact uit; 4 maanden + totaal = 10 getalkolommen */
.dvc-matrix { width: calc(250px + 5 * (64px + 76px)) !important; table-layout: fixed !important; }
.dvc-matrix col.dvc-col-lbl { width: 250px; }
.dvc-matrix col.dvc-col-n { width: 64px; }
.dvc-matrix col.dvc-col-e { width: 76px; }
.dvc-matrix th, .dvc-matrix td { padding: 2px 10px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: auto !important; min-width: 0 !important; }
.dvc-matrix--static td, .dvc-matrix--static th { cursor: default; }
.dvc-matrix tr.row-total td { font-weight: 700; background: var(--slate-50); border-top: 1px solid var(--slate-300); }
.dvc-matrix tbody tr td:nth-last-child(-n+2) { background: var(--slate-50); }
/* Controle-verdeling per land/PSP: ook zo breed als de inhoud */
.dvc-pivot-card .dash-table { width: auto !important; table-layout: auto; }
.dvc-pivot-card .dash-table th, .dvc-pivot-card .dash-table td { padding: 2px 10px !important; white-space: nowrap; width: auto !important; min-width: 0 !important; }
.dvc-pivot-card .dash-table td:first-child { min-width: 120px; }
/* Controle: pagina scrolt; de regels hebben een vaste hoogte (anders blijft er onder overzicht + verdeling geen ruimte over) */
.dvc-controle { overflow-y: auto; }
.dvc-controle .dvc-check-detail { flex: none; }

/* ByClaude 03-11-2026 20:20: Bol maandspecificatie */
.dvc-bolspec { margin-bottom: 12px; }
.dvc-bolspec__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.dvc-bolspec__table { max-width: 560px; }
.dvc-bolspec__preview { display: flex; flex-direction: column; gap: 4px; }
.dvc-bolspec__preview > div > .muted { display: inline-block; min-width: 130px; }
.dvc-bolspec__preview table { margin-top: 8px; }
.dvc-bolspec__sep { width: 1px; align-self: stretch; background: var(--border, #e2e8f0); margin: 0 4px; }
.dvc-bolspec__maand { width: 170px; }
/* ByClaude 03-11-2026 21:05: getallen rechts in het vak en de dialogen van de Bol maandspecificatie (dash-table centreert standaard) */
.dvc-bolspec .dash-table th.num, .dvc-bolspec .dash-table td.num,
.dvc-bolspec__preview .dash-table th.num, .dvc-bolspec__preview .dash-table td.num { text-align: right; white-space: nowrap; }
