:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --border: #dfe3e8;
  --text: #1c2430;
  --muted: #6b7482;
  --accent: #1f6feb;
  --accent-dark: #1858c0;
  --danger: #c62828;
  --warn-bg: #fff6e0;
  --warn-text: #8a5a00;
  --err-bg: #fdecec;
  --ok: #1a7f4b;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 600; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.05rem; } h3 { font-size: 1rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .6rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.error { color: var(--danger); }
.notice { background: var(--warn-bg); color: var(--warn-text); padding: .5rem .75rem; border-radius: var(--radius); }
.errors { background: var(--err-bg); color: var(--danger); padding: .5rem .75rem; border-radius: var(--radius); margin-bottom: .75rem; }
.errors div { margin: .15rem 0; }
[hidden] { display: none !important; }

input[type=text], input[type=email], input[type=password], input[type=number], select {
  font: inherit; padding: .4rem .55rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text);
}
input[type=number] { width: 5.5rem; }
label.inline { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }

.btn {
  font: inherit; padding: .5rem .9rem; border-radius: 6px; border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer;
  text-decoration: none; display: inline-block; line-height: 1.3;
}
.btn:hover { background: #f0f2f5; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.danger { color: var(--danger); }
.btn.small { padding: .3rem .6rem; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: default; }
.file-btn input { display: none; }

/* Auth */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; width: 100%; max-width: 420px; }
.auth-card label { display: block; margin-bottom: .9rem; }
.auth-card input { width: 100%; margin-top: .3rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* App-frame */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1.25rem; background: var(--panel); border-bottom: 1px solid var(--border); }
.brand { font-weight: 700; }
.topbar-right { display: flex; gap: .75rem; align-items: center; }
.layout { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 49px); }
.layout.single { grid-template-columns: 1fr; }
.sidebar { background: var(--panel); border-right: 1px solid var(--border); padding: 1rem; }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.sheet-list { list-style: none; margin: 0; padding: 0; }
.sheet-list li { padding: .5rem .6rem; border-radius: 6px; cursor: pointer; margin-bottom: .2rem; }
.sheet-list li:hover { background: #f0f2f5; }
.sheet-list li.active { background: #e6f0ff; }
.sheet-list .name { font-weight: 500; display: block; }
.sheet-list .sub { font-size: .8rem; color: var(--muted); }
.main { padding: 1.25rem; min-width: 0; }
.empty { padding: 3rem; text-align: center; color: var(--muted); }

.sheet-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.sheet-name { font-size: 1.3rem; font-weight: 600; border: 1px solid transparent; background: transparent; padding: .25rem .4rem; min-width: 12rem; }
.sheet-name:hover, .sheet-name:focus { border-color: var(--border); background: #fff; }
.sheet-meta { flex: 1; }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.upload-controls, .pack-controls { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }

.drop-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; color: var(--muted); margin-bottom: .75rem; }
.drop-zone.over { border-color: var(--accent); background: #e6f0ff; color: var(--text); }

.logo-table { width: 100%; border-collapse: collapse; }
.logo-table th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--muted); padding: .4rem .5rem; border-bottom: 1px solid var(--border); }
.logo-table td { padding: .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.logo-table .thumb { width: 64px; height: 48px; object-fit: contain; background: repeating-conic-gradient(#e9ebef 0% 25%, #fff 0% 50%) 0 0 / 12px 12px; border-radius: 4px; }
.logo-table .fname { font-weight: 500; word-break: break-all; }
.logo-table .type { display: inline-block; font-size: .7rem; padding: .1rem .35rem; border-radius: 4px; background: #eef1f5; color: var(--muted); text-transform: uppercase; margin-left: .3rem; }
.logo-table .type.vector { background: #e3f6ec; color: var(--ok); }
.badge { display: inline-block; font-size: .78rem; padding: .15rem .45rem; border-radius: 4px; margin: .1rem .2rem .1rem 0; }
.badge.ok { background: #e3f6ec; color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); }
.badge.err { background: var(--err-bg); color: var(--danger); }
.warn-text { font-size: .8rem; color: var(--muted); margin-top: .2rem; max-width: 26rem; }
.warn-text.err { color: var(--danger); }
tr.blocking td { background: #fff8f8; }

/* Indeling */
.layout-grid { display: grid; grid-template-columns: 1fr 260px; gap: 1.25rem; }
.tabs { display: flex; gap: .4rem; margin-bottom: .5rem; flex-wrap: wrap; }
.tabs button { font: inherit; padding: .3rem .7rem; border: 1px solid var(--border); background: #fff; border-radius: 6px; cursor: pointer; }
.tabs button.active { background: var(--dapco); border-color: var(--dapco); color: #fff; }
.canvas-wrap { position: relative; }
#sheet-canvas { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.tip { position: absolute; background: #1c2430; color: #fff; font-size: .8rem; padding: .3rem .5rem; border-radius: 4px; pointer-events: none; white-space: nowrap; }
.stats { background: #f9fafb; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.stat-big { text-align: center; margin-bottom: 1rem; }
.stat-value { font-size: 2.4rem; font-weight: 700; color: var(--dapco-dark); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-list { display: grid; grid-template-columns: 1fr auto; gap: .3rem .6rem; margin: 0 0 1rem; font-size: .9rem; }
.stat-list dt { color: var(--muted); } .stat-list dd { margin: 0; text-align: right; font-weight: 600; }
.export { border-top: 1px solid var(--border); padding-top: .9rem; }
.export .btn { width: 100%; margin-bottom: .4rem; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .layout-grid { grid-template-columns: 1fr; }
}

/* ---------- v2: meldingen, dialogen, status, staand vel, beheer ---------- */
.toast-wrap { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 1000; max-width: min(420px, calc(100vw - 2rem)); }
.toast { background: #1c2430; color: #fff; padding: .65rem .9rem; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.18); opacity: 0; transform: translateY(8px); transition: .25s; font-size: .9rem; }
.toast.show { opacity: 1; transform: none; }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
.modal-back { position: fixed; inset: 0; background: rgba(20,25,35,.45); display: flex; align-items: center; justify-content: center; z-index: 900; padding: 1rem; }
.modal { background: #fff; border-radius: 12px; padding: 1.5rem; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal .modal-text { color: var(--muted); }
.modal .modal-input { display: block; margin: .75rem 0 1rem; }
.modal .modal-input input { width: 100%; margin-top: .3rem; }
.row.right { justify-content: flex-end; }
.btn.danger-solid { background: #e05252; border-color: #e05252; color: #fff; }
.btn.danger-solid:hover { background: #d13f3f; border-color: #d13f3f; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn.ghost:hover { background: #e6f0ff; }

.status { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; }
.st-concept { background: #eef1f5; color: var(--muted); }
.st-ingediend { background: #fff1d6; color: #8a5a00; }
.st-ontvangen { background: #e6f0ff; color: var(--accent-dark); }
.st-printer { background: #efe6ff; color: #5b2ca0; }
.st-klaar { background: #e3f6ec; color: var(--ok); }

.topbar a.nav { color: var(--accent); text-decoration: none; font-weight: 500; }
.sheet-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: .4rem; }
.sheet-list .status { margin-top: .1rem; }

/* Editor: links werken, rechts het staande vel */
.editor-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.25rem; align-items: start; }
.sheet-col { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.sheet-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.sheet-card .canvas-wrap { display: flex; justify-content: center; }
#sheet-canvas, .preview-canvas { border: 1px solid var(--border); border-radius: 4px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); display: block; }
.stats-inline { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: .9rem 0; }
.stat-tile { background: #f9fafb; border: 1px solid var(--border); border-radius: 6px; padding: .5rem .6rem; }
.stat-tile .v { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.stat-tile .v.accent { color: var(--dapco-dark); }
.stat-tile .l { font-size: .75rem; color: var(--muted); }
.sheet-card .export .btn { width: 100%; margin-bottom: .4rem; }
.placeholder { text-align: center; color: var(--muted); padding: 1rem 0 .5rem; font-size: .9rem; }

.drop-zone .drop-actions { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.drop-zone .drop-actions .or { color: var(--muted); font-size: .9rem; }
.drop-zone .drop-actions .btn { margin: 0; }
.locked-banner { background: #e6f0ff; border: 1px solid #c4d8ff; color: var(--accent-dark); padding: .6rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; }
textarea { font: inherit; width: 100%; min-height: 4.5rem; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 6px; resize: vertical; }
.timeline { list-style: none; margin: 1rem 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .5rem; padding: .45rem 0; font-size: .85rem; line-height: 1.5; }
.timeline li::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: var(--dapco); margin-top: .35rem; }
.timeline .when { color: var(--muted); font-size: .78rem; }
.steps { display: flex; gap: .3rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.steps span { font-size: .75rem; padding: .2rem .55rem; border-radius: 999px; background: #eef1f5; color: var(--muted); }
.steps span.done { background: #e3f6ec; color: var(--ok); }
.steps span.now { background: var(--accent); color: #fff; }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled button { opacity: .6; cursor: not-allowed; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Beheer */
.admin-nav { display: flex; gap: .25rem; padding: .5rem 1.25rem 0; background: var(--panel); border-bottom: 1px solid var(--border); }
.admin-nav button { font: inherit; padding: .55rem .9rem; border: 0; background: transparent; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); }
.admin-nav button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.admin-main { padding: 1.25rem; max-width: 1400px; }
.filters { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .9rem; }
.filters button { font: inherit; padding: .3rem .7rem; border: 1px solid var(--border); background: #fff; border-radius: 999px; cursor: pointer; font-size: .85rem; }
.filters button.active { background: var(--dapco); border-color: var(--dapco); color: #fff; }
.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th { text-align: left; font-size: .78rem; color: var(--muted); padding: .5rem .7rem; border-bottom: 1px solid var(--border); background: #f9fafb; }
.table td { padding: .55rem .7rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: #f5f8ff; }
.table tr.inactive td { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem 1rem; }
.form-grid label { display: block; font-size: .85rem; color: var(--muted); }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; margin-top: .25rem; }
.form-grid .full { grid-column: 1 / -1; }
.status-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 1.25rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.25rem; align-items: start; }
.mini-logos { display: flex; flex-wrap: wrap; gap: .5rem; }
.mini-logo { width: 150px; border: 1px solid var(--border); border-radius: 6px; padding: .4rem; font-size: .75rem; background: #fff; }
.mini-logo img { width: 100%; height: 70px; object-fit: contain; background: repeating-conic-gradient(#e9ebef 0% 25%, #fff 0% 50%) 0 0 / 12px 12px; border-radius: 4px; }
.mini-logo .n { font-weight: 600; word-break: break-all; margin-top: .25rem; }
.back { margin-bottom: .75rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; font-size: .9rem; margin: .5rem 0 1.5rem; align-items: center; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

@media (max-width: 1100px) {
  .editor-grid, .detail-grid { grid-template-columns: 1fr; }
  .sheet-col { position: static; }
}

.view-toggles { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; margin-bottom: .6rem; }
.view-toggles input { margin: 0 .3rem 0 0; }


/* ---------- v3: logo, topbar-navigatie, statuspagina, historie, bibliotheek, beheer-zijmenu ---------- */
.topbar .logo { height: 44px; display: block; }
.topbar .logo-link { display: flex; align-items: center; }
.topbar-nav { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.topbar-nav .btn.active { background: #f3e6f2; border-color: #e0c3dd; color: #7a2f74; }
.auth-card .logo { width: 180px; display: block; margin: 0 auto 1rem; }
.page { max-width: 1400px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h2 { margin: 0; font-size: 1.3rem; }
:root { --dapco: #b848a8; --dapco-dark: #8d3480; --dapco-light: #f6e9f4; }
.btn.dapco { background: var(--dapco); border-color: var(--dapco); color: #fff; }
.btn.dapco:hover { background: var(--dapco-dark); }
.st-printer { background: var(--dapco-light); color: var(--dapco-dark); }

/* Statuspagina */
.status-hero { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem; }
.status-hero .hero-art { width: 100%; display: flex; justify-content: center; margin-bottom: .75rem; }
.status-hero img { height: 180px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.status-hero p { max-width: 640px; }
.status-hero .track { width: 100%; text-align: left; }
.status-hero .now { font-size: 1.4rem; font-weight: 700; color: var(--dapco-dark); margin-bottom: .3rem; }
.status-hero .expected { display: inline-block; background: var(--dapco-light); color: var(--dapco-dark); padding: .4rem .8rem; border-radius: 8px; font-weight: 600; margin-top: .75rem; }
.status-hero .expected.late { background: var(--err-bg); color: var(--danger); }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1.25rem; }
.track .step { position: relative; padding: .6rem .5rem .6rem .5rem; border-top: 4px solid #e3e6ea; }
.track .step.done { border-top-color: var(--ok); }
.track .step.now { border-top-color: var(--dapco); }
.track .step .t { font-weight: 600; font-size: .9rem; }
.track .step .w { color: var(--muted); font-size: .78rem; }
.track .step.now .t { color: var(--dapco-dark); }
.status-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.25rem; align-items: start; }

/* Historie & bibliotheek */
.table .btn + .btn { margin-left: .3rem; }
.late { color: var(--danger); font-weight: 600; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.asset-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem; display: flex; flex-direction: column; gap: .4rem; }
.asset-card img { width: 100%; height: 110px; object-fit: contain; background: repeating-conic-gradient(#e9ebef 0% 25%, #fff 0% 50%) 0 0 / 12px 12px; border-radius: 6px; }

.asset-card .n { font-weight: 600; font-size: .85rem; word-break: break-all; }
.asset-card .m { font-size: .78rem; color: var(--muted); }
.asset-card .row { margin-top: auto; }
.library-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; margin-bottom: .75rem; background: #fafbfc; }
.library-panel .asset-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.library-panel .asset-card img { height: 80px; }
.field-hint { color: var(--muted); font-size: .8rem; margin: .3rem 0 0; }

/* Beheer met zijmenu */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: var(--panel); border-right: 1px solid var(--border); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: .25rem; position: sticky; top: 0; height: 100vh; }
.admin-side .logo { width: 150px; margin: 0 auto 1.25rem; display: block; }
.admin-side .side-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .5rem .6rem .3rem; }
.admin-side a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.admin-side a:hover { background: #f0f2f5; }
.admin-side a.active { background: var(--dapco-light); color: var(--dapco-dark); }
.admin-side .spacer { flex: 1; }
.admin-side .who { font-size: .8rem; color: var(--muted); padding: .4rem .7rem; word-break: break-all; }
.admin-content { padding: 1.5rem 2rem; }
.admin-content .inner { max-width: 1200px; margin: 0 auto; }
.customer-card { max-width: 900px; }
.customer-card .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid label.check { display: flex; align-items: center; gap: .5rem; color: var(--text); }
.form-grid label.check input { width: auto; margin: 0; }
@media (max-width: 1000px) {
  .status-grid { grid-template-columns: 1fr; }
  .status-hero img { height: 150px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .customer-card .form-grid { grid-template-columns: 1fr; }
}

.admin-side .side-cta { width: 100%; margin-bottom: .75rem; }
.admin-content .inner { max-width: 1300px; }

.asset-card { position: relative; }
.asset-card .pill { position: absolute; top: .6rem; right: .6rem; font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; background: #eef1f5; color: var(--muted); z-index: 1; }
.asset-card .pill.warn { background: var(--warn-bg); color: var(--warn-text); }
.asset-card .pill.err { background: var(--err-bg); color: var(--danger); }

/* Startscherm */
.start-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
.start-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .6rem; }
.open-card { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.25rem 1.25rem 1rem; margin-bottom: 1rem; align-items: center; }
.open-card .muted.small { margin-top: .35rem; line-height: 1.45; }
.open-card img { width: 120px; height: 100px; object-fit: contain; }
.open-card .head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .45rem; }
.open-card .head strong { font-size: 1.05rem; }
.open-card .exp { font-size: .85rem; color: var(--dapco-dark); font-weight: 600; margin-top: .45rem; }
.open-card .exp.late { color: var(--danger); }
.open-card .track { margin-top: 1rem; gap: .3rem; }
.open-card .track .step { padding: .35rem .3rem 0; border-top-width: 3px; }
.open-card .track .step .t { font-size: .78rem; }
.open-card .track .step .w { display: none; }
.open-card .actions { margin-top: 1rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.btn.ghost-muted { display: inline-flex; align-items: center; gap: .35rem; background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost-muted:hover { background: #eef1f5; color: var(--text); }
.cta-card { background: var(--panel); border: 2px dashed #e0c3dd; border-radius: 12px; padding: 1.5rem; text-align: center; margin-bottom: 1.25rem; }
.cta-card img { height: 120px; margin-bottom: .5rem; }
.cta-card h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.btn.big { font-size: 1.05rem; padding: .8rem 1.4rem; width: 100%; margin-top: .5rem; }
.concept-row { display: flex; align-items: center; gap: .6rem; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: .6rem .8rem; margin-bottom: .5rem; }
.concept-row .n { flex: 1; font-weight: 500; }
@media (max-width: 1000px) { .start-grid { grid-template-columns: 1fr; } }

.start-grid.solo { grid-template-columns: 1fr; }
.start-grid.solo #start-left { display: none; }
.start-grid.solo .cta-card { padding: 3rem 2rem; }
.start-grid.solo .cta-card img { height: 200px; }
.start-grid.solo .cta-card h3 { font-size: 1.6rem; }
.start-grid.solo .cta-card p { max-width: 560px; margin: 0 auto .5rem; font-size: 1.05rem; }
.start-grid.solo .btn.big { width: auto; min-width: 320px; }

.fill-modal { max-width: 560px; }
.fill-list { max-height: 50vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; margin: .75rem 0 1rem; }
.fill-row { display: grid; grid-template-columns: auto 48px 1fr auto; gap: .6rem; align-items: center; padding: .5rem .7rem; border-bottom: 1px solid var(--border); cursor: pointer; }
.fill-row:last-child { border-bottom: 0; }
.fill-row img { width: 48px; height: 36px; object-fit: contain; background: repeating-conic-gradient(#e9ebef 0% 25%, #fff 0% 50%) 0 0 / 10px 10px; border-radius: 4px; }
.fill-row .fn { font-weight: 500; word-break: break-all; }

.btn-icon { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: .95rem; padding: 0 .2rem; vertical-align: middle; }
.btn-icon:hover { color: var(--dapco-dark); }
.row-actions { white-space: nowrap; }
.row-actions .btn + .btn { margin-left: .3rem; }

/* Thumbnails: ondergrond automatisch op basis van de helderheid van het logo (alleen weergave) */
img.on-light { background: repeating-conic-gradient(#e9ebef 0% 25%, #fff 0% 50%) 0 0 / 12px 12px !important; }
img.on-dark { background: #2b2f36 !important; }
.asset-card img { height: 130px; padding: 14px; box-sizing: border-box; }
.library-panel .asset-card img { height: 96px; padding: 10px; }
.logo-table .thumb { padding: 4px; box-sizing: border-box; }
.mini-logo img { padding: 8px; box-sizing: border-box; }
.fill-row img { padding: 3px; box-sizing: border-box; }
.btn.icon { padding: 0; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.btn.icon svg { display: block; }
.row .grow { flex: 1; }
.asset-card .n { display: flex; align-items: center; gap: .3rem; }
.asset-card .n span { flex: 1; min-width: 0; }
.asset-card .n .btn-icon { flex: none; padding: .1rem; line-height: 0; }
.asset-card .n .btn-icon svg { width: 14px; height: 14px; }
.asset-card .actions { margin-top: auto; display: flex; flex-direction: column; gap: .4rem; padding-top: .3rem; }
.asset-card .actions .btn { width: 100%; justify-content: center; }
.btn.icon-text { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .6rem; }
.btn.icon-text svg { display: block; }
.btn.danger-soft { background: #fff; border-color: var(--border); color: #d13f3f; }
.btn.danger-soft:hover { background: #fdf0f0; border-color: #f0c4c4; }

/* Sectie 2 (Indelen): meer lucht tussen de regels. */
.pack-panel .panel-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
.pack-panel .pack-controls { gap: 1rem 1.25rem; margin-top: .25rem; }
.pack-panel .pack-controls .btn { margin-top: .25rem; }
.pack-panel .field-hint { margin-top: 1.25rem; font-size: .85rem; line-height: 1.5; }
.pack-panel .notice { margin-top: .75rem; padding: .7rem .9rem; line-height: 1.5; }

/* Beheer: besteldetails met meer lucht. */
.panel > h4 { margin-top: .25rem; margin-bottom: .75rem; }

/* Printbestanden per vel in de beheerdetailpagina + de sleutel van de Dapco-agent. */
.printfiles { margin-bottom: .6rem; }
.pf { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.pf:last-of-type { border-bottom: 0; }
.pf-n { display: inline-block; min-width: 4rem; font-weight: 600; }
.pf-s { display: inline-block; font-size: .78rem; padding: .15rem .45rem; border-radius: 4px; background: var(--bg); color: var(--muted); }
.pf-s.pf-klaar, .pf-s.pf-afgeleverd { background: #e3f6ec; color: var(--ok); }
.pf-s.pf-bezig, .pf-s.pf-wachtend { background: var(--warn-bg); color: var(--warn-text); }
.pf-s.pf-fout { background: var(--err-bg); color: var(--danger); }
.agent-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; word-break: break-all; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem .65rem; }
