/* Shared overview, forms and detail patterns for Condor web clients. */
.cc-ui-shell--footer .mud-main-content { min-height:100vh; display:flex; flex-direction:column; }
.cc-ui-shell--footer .cc-ui-page { flex:1; }
.cc-portal-brand { display:flex; align-items:center; gap:16px; flex-shrink:0; }
.cc-brand-logo { display:flex; padding:0; }
/* Diapositive brand treatment: transparent SVG, white artwork on the red bar. */
.cc-brand-logo img { filter:brightness(0) invert(1); }
.cc-overview-header { position:relative; isolation:isolate; display:flex; justify-content:space-between; align-items:flex-end; gap:20px; padding:0 0 20px; margin-bottom:20px; border-bottom:1px solid var(--cc-border); }
/* Full-width title band without changing content alignment or adding overflow. */
.cc-overview-header::before { content:""; position:absolute; z-index:-1; pointer-events:none; inset:calc(-1 * var(--cc-page-padding)) 0 0; background:var(--cc-overview-background); box-shadow:0 0 0 100vmax var(--cc-overview-background); clip-path:inset(0 -100vmax); }
.cc-overview-header h1:focus { outline:none; }
.cc-eyebrow { text-transform:uppercase; letter-spacing:.075em; font-size:.75rem; font-weight:600; color:var(--cc-text-secondary); }
.cc-overview-header .cc-eyebrow { color:var(--cc-primary); margin-bottom:6px; }
.cc-back { display:inline-block; margin-bottom:8px; }
.cc-overview-panel, .cc-metric { background:var(--cc-surface); border:1px solid var(--cc-border); border-radius:var(--cc-radius-card); overflow:hidden; box-shadow:0 2px 5px rgb(0 0 0 / 3%); }
.cc-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:20px 24px; border-bottom:1px solid var(--cc-border); }
.cc-panel-heading .cc-eyebrow { margin-bottom:4px; }
.cc-panel-body { padding:24px; }
.cc-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin-bottom:24px; }
.cc-metric { position:relative; padding:20px; }
.cc-metric::after { content:""; position:absolute; width:3px; right:0; top:18px; bottom:18px; border-radius:4px; background:var(--metric-color); }
.cc-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:24px; }
.cc-two-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:start; }
.cc-stack { display:flex; flex-direction:column; gap:24px; min-width:0; }
.cc-between { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cc-align-right { text-align:right; }
.cc-distribution + .cc-distribution { margin-top:18px; }
.cc-distribution .cc-between { margin-bottom:7px; }
/* MudBlazor's palette utility uses !important for the track pseudo-element. */
.cc-distribution .cc-distribution-track::before { background-color:var(--cc-background) !important; opacity:1; }
.cc-status-badge.mud-chip { height:24px; margin:0; padding:0 9px; border-radius:12px; font-size:.75rem; font-weight:500; white-space:nowrap; color:var(--cc-badge-color); background:color-mix(in srgb, var(--cc-badge-color) 9%, var(--cc-surface)); }
.cc-order-heading { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-height:24px; }
.cc-order-meta { color:var(--cc-text-secondary); margin-top:3px; }
.cc-cell-value { min-width:0; overflow-wrap:anywhere; }
.cc-platform-menu { align-items:stretch; gap:0; height:var(--cc-height-header); margin-block:-12px; }
.cc-platform-menu a { position:relative; display:flex; align-items:center; justify-content:center; padding:0 18px; border-radius:0; color:var(--cc-on-primary); opacity:.8; }
.cc-platform-menu a.active { background:transparent; font-weight:600; opacity:1; }
.cc-platform-menu a.active::after { content:""; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--cc-on-primary); }
.cc-platform-menu a:hover { background:rgb(255 255 255 / 8%); }
.cc-row-actions { display:flex; align-items:center; gap:6px; white-space:nowrap; justify-content:flex-end; }
.cc-row-actions .mud-icon-button { width:30px; height:30px; padding:6px; border:1px solid var(--cc-border); border-radius:6px; background:var(--cc-surface); color:var(--cc-text-secondary); }
.cc-row-actions .mud-icon-button .mud-icon-root { font-size:16px; }
.cc-row-actions .mud-icon-button:hover { color:var(--cc-primary); border-color:var(--cc-primary); background:var(--cc-primary-soft); }
.cc-row-actions .mud-icon-button:focus-visible { outline:2px solid var(--cc-primary); outline-offset:2px; }
.cc-order-link { font-weight:600; color:var(--cc-text); white-space:nowrap; }
.cc-filterbar { display:grid; grid-template-columns:minmax(0,1.6fr) repeat(2,minmax(0,1fr)) max-content; align-items:center; gap:10px; padding:16px 20px; border-bottom:1px solid var(--cc-border); }
/* Variant met drie keuzelijsten (bv. Toon + status + leverancier); staat vóór de mobiele regels, zodat die blijven winnen. */
.cc-filterbar-3 { grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr)) max-content; }
@media (max-width:1100px) { .cc-filterbar-3 { grid-template-columns:repeat(3,minmax(0,1fr)) max-content; } .cc-filterbar-3 .cc-filter-search { grid-column:1/-1; } }
.cc-filterbar > *, .cc-filterbar .mud-input-control, .cc-filterbar .mud-select { min-width:0; }
.cc-filter-search, .cc-filter-select { width:100%; }
.cc-filter-count { margin-left:auto; white-space:nowrap; }
.cc-filter-chips { display:flex; flex-wrap:wrap; gap:8px; padding:12px 20px; border-bottom:1px solid var(--cc-border); }
.cc-orders-table .mud-table-head .mud-table-cell { background:var(--cc-table-header); font-size:.8125rem; font-weight:600; color:var(--cc-text-secondary); white-space:nowrap; padding:14px 16px; }
.cc-orders-table .mud-table-body .mud-table-cell { padding:16px; border-color:var(--cc-separator); vertical-align:top; }
/* Eén lijn per rij: elke cel begint bovenaan met een eerste regel van 24px (zo hoog als het ordernummer met badges
   en de statusbadge), zodat kolommen met één of meer regels niet verspringen. Knoppen (30px) op die regel gecentreerd. */
.cc-orders-table .cc-cell-value { line-height:24px; overflow-wrap:break-word; }
.cc-orders-table .cc-cell-value .cc-ui-description, .cc-orders-table .cc-order-meta { line-height:1.45; }
.cc-orders-table .cc-row-actions { margin-top:-3px; }
.cc-orders-table .mud-table-pagination { border-top:1px solid var(--cc-border); }
.cc-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }
.cc-order-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:stretch; }
.cc-form-savebar { position:sticky; bottom:12px; z-index:5; margin-top:24px; padding:14px 20px; border:1px solid var(--cc-border); border-radius:var(--cc-radius-card); background:var(--cc-surface); box-shadow:0 3px 16px rgb(0 0 0 / 10%); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cc-form-savebar .cc-ui-actions { justify-content:flex-end; }
.cc-field-wide { grid-column:1/-1; }
.cc-toggle-buttons { display:flex; gap:0; }
.cc-toggle-buttons .cc-ui-button:first-child { border-top-right-radius:0; border-bottom-right-radius:0; }
.cc-toggle-buttons .cc-ui-button:last-child { border-top-left-radius:0; border-bottom-left-radius:0; }
.cc-header-account { display:flex; align-items:center; gap:8px; }
.cc-account-initials { display:none; }
.cc-header-logout.mud-button-root { height:30px; min-width:0; flex-shrink:0; padding:0 10px; font-size:12px; text-transform:none; white-space:nowrap; border-radius:var(--cc-radius-control); color:var(--cc-on-primary); border-color:rgb(255 255 255 / 25%); background:transparent; }
.cc-header-logout.mud-button-root:hover { color:var(--cc-on-primary); border-color:rgb(255 255 255 / 50%); background:rgb(255 255 255 / 8%); }
.cc-header-logout.mud-button-root:focus-visible { outline:2px solid var(--cc-on-primary); outline-offset:3px; }
.cc-header-logout.mud-button-root:disabled { color:rgb(255 255 255 / 65%); border-color:rgb(255 255 255 / 25%); }
.cc-header-logout .mud-icon-root { font-size:14px; }
.cc-header-actions { display:flex; align-items:center; gap:16px; margin-left:0; }
.cc-header-search { width:clamp(140px,14vw,200px); flex:none; margin:0; }
.cc-header-search .mud-input { height:32px; background:#f5f2f3; color:var(--cc-text); border-radius:8px; font-size:12px; }
.cc-header-search .mud-input input { padding:6px 0; }
.cc-header-search .mud-input-outlined-border { border-color:#e5dfe1; }
.cc-header-search .mud-input-adornment { color:#8a8185; margin-right:6px; }
.cc-header-search .mud-icon-root { font-size:18px; }
@media (min-width:721px) and (max-width:1100px) {
    .cc-portal-brand { gap:10px; }
    .cc-platform-menu a { padding-inline:10px; }
    .cc-header-actions { gap:10px; margin-left:10px; }
    .cc-header-search { width:170px; }
}
.cc-ui-button.mud-button-outlined-default, .cc-shape-button.mud-button-outlined-default { border-color:var(--cc-input-border); background:var(--cc-surface); }
.cc-field-label { display:block; color:var(--cc-text); font-size:.8125rem; font-weight:600; line-height:1.5; margin-bottom:8px; }
.cc-form-grid .mud-input-control { margin-top:0; }
.cc-form-grid .mud-input-outlined { background:var(--cc-field-background); }
.cc-shape-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.cc-shape-button { min-width:0; height:76px; text-transform:none; }
.cc-shape-button .mud-button-label { display:flex; flex-direction:column; gap:6px; }
.cc-shape-button[aria-pressed="true"] { background:var(--cc-primary-soft); }
.cc-upload { border:1px dashed var(--cc-input-border); border-radius:var(--cc-radius-control); padding:16px; }
.cc-upload input { width:100%; margin-top:8px; font:inherit; }
.cc-specs { display:grid; grid-template-columns:minmax(130px,.8fr) minmax(0,1.2fr); gap:14px 20px; margin:0; }
.cc-specs dt { color:var(--cc-text-secondary); }
.cc-specs dd { margin:0; overflow-wrap:anywhere; }
.cc-prewrap { white-space:pre-wrap; overflow-wrap:anywhere; }
.cc-portal-footer { background:var(--cc-surface); border-top:1px solid var(--cc-border); color:var(--cc-text-secondary); margin-top:24px; }
.cc-footer-inner { max-width:var(--cc-content-width); margin-inline:auto; padding:20px 32px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; }
.cc-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.cc-document { max-width:800px; margin:32px auto; padding:40px; background:var(--cc-surface); border:1px solid var(--cc-border); }
@media (max-width:1100px) { .cc-dashboard-grid { grid-template-columns:1fr; } .cc-overview-header { align-items:flex-start; flex-wrap:wrap; } }
@media (max-width:760px) { .cc-two-columns { grid-template-columns:1fr; } .cc-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .cc-filterbar { grid-template-columns:repeat(2,minmax(0,1fr)); } .cc-filter-search, .cc-filter-count { grid-column:1/-1; } }
@media (max-width:760px) {
    .cc-order-form-grid { grid-template-columns:1fr; }
    .cc-form-savebar { padding:12px; bottom:8px; }
    .cc-form-savebar > .mud-typography { display:none; }
    .cc-form-savebar .cc-ui-actions { width:100%; }
    .cc-form-savebar .cc-ui-button { flex:1; }
}
@media (max-width:1100px) {
    .cc-header-actions { order:4; width:100%; margin:12px 0 4px; }
    .cc-header-account { display:flex; flex:none; gap:6px; }
    .cc-header-search { width:auto; min-width:0; flex:1; }
    .cc-account-name, .cc-logout-label { display:none; }
    .cc-account-initials { display:inline; font-weight:600; }
    .cc-header-logout.mud-button-root { width:36px; height:36px; padding:0; }
    .cc-header-logout .mud-button-icon-start { margin:0; }
    .cc-header-logout .mud-icon-root { font-size:18px; }
    .cc-ui-shell--footer .mud-main-content { padding-top:0; }
    .cc-ui-shell .cc-platform-appbar { height:auto; position:sticky; }
    .cc-ui-shell .cc-platform-appbar .mud-toolbar { flex-wrap:wrap; height:auto; min-height:88px; padding:8px 2rem; }
    .cc-platform-menu { order:3; flex:0 0 100%; width:100%; margin-left:0; height:44px; margin-block:0 -8px; }
    .cc-platform-menu a { align-self:center; height:32px; }
    .cc-portal-brand { gap:10px; }
    .cc-brand-logo img { width:140px; height:auto; }
    .cc-footer-inner { padding:20px 16px; }
}
@media (max-width:720px) {
    .cc-ui-shell .cc-platform-appbar .mud-toolbar { padding-inline:var(--cc-page-padding-mobile); }
    .cc-overview-header::before { top:calc(-1 * var(--cc-page-padding-mobile)); }
}
/* Tablet: brand and navigation share the first row; search sits below. */
@media (min-width:721px) and (max-width:1100px) {
    .cc-platform-menu { order:0; flex:1; width:auto; margin-block:0; margin-left:16px; }
}
@media (max-width:959.98px) {
    .cc-orders-table .mud-table-body .mud-table-row { padding:12px 0; border-bottom:8px solid var(--cc-background); }
    .cc-orders-table .mud-table-body .mud-table-cell { display:grid; grid-template-columns:minmax(0,105px) minmax(0,1fr); align-items:start; gap:12px; padding:8px 16px; min-height:0; text-align:left; }
    .cc-orders-table .mud-table-body .mud-table-cell::before { width:auto; min-width:0; margin:0; padding:0; font-weight:500; color:var(--cc-text-secondary); text-align:left; overflow-wrap:anywhere; }
    .cc-orders-table .cc-order-heading { justify-content:flex-start; }
    .cc-orders-table .cc-order-link { white-space:normal; }
    .cc-orders-table .cc-row-actions { justify-content:flex-start; flex-wrap:wrap; }
    .cc-orders-table .cc-row-actions .mud-icon-button { width:36px; height:36px; padding:9px; }
    .cc-orders-table .mud-table-pagination .mud-toolbar { height:auto; min-height:56px; flex-wrap:wrap; justify-content:center; gap:8px; padding:12px; }
}
@media (max-width:599.98px) {
    .cc-platform-menu a { flex:1; padding-inline:8px; font-size:12px; }
    .cc-filterbar { padding:16px; gap:12px; }
    .cc-filterbar > * { min-width:0; }
    .cc-overview-header > div { min-width:0; max-width:100%; }
    .cc-overview-header h1 { font-size:1.5rem; overflow-wrap:anywhere; }
    .cc-panel-heading { flex-wrap:wrap; }
    .cc-specs { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
    .cc-specs dt { overflow-wrap:anywhere; }
    .cc-portal-brand { min-width:0; flex-wrap:wrap; gap:4px 10px; }
    .cc-portal-brand .mud-typography-subtitle2 { font-size:12px; }
    .cc-form-savebar .cc-ui-actions { flex-wrap:wrap; }
    .cc-form-savebar .cc-ui-button { flex:1 1 140px; }
}
@media (max-width:420px) { .cc-form-grid { grid-template-columns:1fr; } .cc-shape-options { grid-template-columns:repeat(2,minmax(0,1fr)); } .cc-panel-body,.cc-panel-heading { padding:16px; } .cc-metric { padding:16px; } }
@media print { .cc-no-print { display:none !important; } .cc-document { border:0; padding:0; margin:0; max-width:none; } }

/* Beheerpagina (Maatwerk): e-mail, producent, admin-vinkje en knop op één rij; smal onder elkaar. */
.cc-beheer-form { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,2fr) auto auto; gap:12px; align-items:center; }
@media (max-width:900px) { .cc-beheer-form { grid-template-columns:minmax(0,1fr); } }
.cc-orders-table .cc-beheer-detail { background:var(--cc-background); padding:8px 16px 16px; }
.cc-beheer-tabel .cc-beheer-rij { cursor:pointer; }
.cc-beheer-tabel .cc-beheer-rij.open .mud-table-cell { background:var(--cc-background); }
.cc-beheer-tabel .cc-beheer-relatie { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--cc-border); }
.cc-beheer-tabel .cc-beheer-relatie .naam { flex:1; min-width:0; }
.cc-beheer-tabel .cc-beheer-relatie.uit .naam { color:var(--cc-text-hint); }
.cc-beheer-tabel .cc-beheer-rij.uit .cc-cell-value { opacity:.6; }
.cc-beheer-tabel .cc-beheer-actief { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:14px; padding-top:12px; border-top:1px solid var(--cc-border); }


/* Rolkaart (OrderDocument, Kind rolkaart): etiket op het karpet, A6 liggend, grote nummers en een QR-code. */
.cc-rolkaart { display:flex; gap:20px; align-items:flex-start; width:138mm; min-height:95mm; padding:6mm; border:2px solid var(--cc-text); border-radius:6px; background:#fff; color:#000; box-sizing:border-box; }
.cc-rolkaart-tekst { flex:1; min-width:0; }
.cc-rolkaart-kop { font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.cc-rolkaart-spoed { margin-left:8px; padding:1px 6px; border:2px solid #000; font-weight:800; }
.cc-rolkaart-nummer { font-size:28px; font-weight:800; line-height:1.15; margin:4px 0 8px; word-break:break-all; }
.cc-rolkaart dl { display:grid; grid-template-columns:auto 1fr; gap:3px 10px; margin:0; font-size:13px; }
.cc-rolkaart dt { color:#444; }
.cc-rolkaart dd { margin:0; overflow-wrap:anywhere; }
.cc-rolkaart dd strong { font-size:16px; }
.cc-rolkaart-qr { display:flex; flex-direction:column; align-items:center; gap:4px; font-size:11px; font-weight:600; }
.cc-rolkaart-qr img { image-rendering:pixelated; }
@media print { .cc-rolkaart { border-width:1px; } }
