/* ===================== Beheer: zakelijk, wit dashboard ===================== */
/* In beheer verdwijnt alles van het platform; hier geldt alleen deze stijl. */
body.admin-mode { background: #f5f7fb !important; color: #111827; background-image: none !important; }
body.admin-mode .top, body.admin-mode .rail, body.admin-mode .bottom-nav, body.admin-mode .bg { display: none !important; }
body.admin-mode main#view { margin: 0 !important; padding: 0 !important; max-width: none; }
body.admin-mode #toast { background: #111827; color: #fff; border-color: #111827; }
body.admin-mode .modal-wrap { background: rgba(17, 24, 39, .45); backdrop-filter: none; }

.ad, .ad * { box-sizing: border-box; }
.ad { --b: #e5e7eb; --t: #111827; --m: #6b7280; --p: #2563eb; display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; font-size: 14px; color: var(--t); line-height: 1.5; }
.ad h1, .ad h2, .ad h3, .ad h4 { font-family: inherit; letter-spacing: -.01em; color: #0f172a; margin: 0; }
.ad-side { background: #fff; border-right: 1px solid var(--b); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; }
.ad-brand { padding: 0 10px; display: flex; flex-direction: column; }
.ad-brand span { font-weight: 700; font-size: 16px; color: #0f172a; }
.ad-brand small { color: var(--m); font-size: 12px; }
.ad-side nav { display: flex; flex-direction: column; gap: 2px; }
.ad-side nav a { padding: 9px 12px; border-radius: 8px; color: #374151; font-weight: 500; }
.ad-side nav a:hover { background: #f3f4f6; }
.ad-side nav a.on { background: #eff4ff; color: var(--p); font-weight: 600; }
.ad-back { margin-top: auto; padding: 9px 12px; color: var(--m); font-size: 13px; border-radius: 8px; }
.ad-back:hover { background: #f3f4f6; color: var(--t); }
.ad-main { padding: 32px 40px 60px; max-width: 1280px; width: 100%; }
.ad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ad-head h1 { font-size: 24px; font-weight: 700; }
.ad-head p { margin: 4px 0 0; color: var(--m); }
.ad-load { padding: 80px 0; text-align: center; color: var(--m); }
.ad-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 10px 14px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; }
.ad-muted { color: var(--m); }
.ad-denied { min-height: 100vh; display: grid; place-items: center; background: #f5f7fb; font-family: 'Inter', system-ui, sans-serif; text-align: center; color: #111827; padding: 20px; }
.ad-denied h1 { font-size: 24px; margin: 0 0 6px; font-family: inherit; color: #0f172a; }
.ad-denied p { color: #6b7280; margin: 0 0 16px; }

.ad-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d1d5db; background: #fff; color: #111827; border-radius: 8px; padding: 8px 14px; font: 500 14px 'Inter', system-ui, sans-serif; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.ad-btn:hover { background: #f9fafb; border-color: #9ca3af; }
.ad-btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.ad-btn.primary:hover { background: #1d4ed8; }
.ad-btn.sm { padding: 5px 10px; font-size: 13px; }
.ad-btn.danger { color: #b91c1c; border-color: #fecaca; }
.ad-btn.danger:hover { background: #fef2f2; border-color: #f87171; }

.ad-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.ad-kpi { background: #fff; border: 1px solid var(--b); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; }
.ad-kpi small { color: var(--m); font-weight: 500; }
.ad-kpi b { font-size: 32px; font-weight: 700; line-height: 1.2; color: #0f172a; }
.ad-kpi span { color: var(--m); font-size: 13px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.ad-card { background: #fff; border: 1px solid var(--b); border-radius: 12px; padding: 20px; }
.ad-card.wide { grid-column: 1 / -1; }
.ad-card.flush { padding: 0; overflow: hidden; }
.ad-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.ad-card > p { margin: 0 0 12px; }
.ad-top { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.ad-top p { margin: 2px 0 0; }
.ad-thumb { width: 96px; aspect-ratio: 4 / 3; border-radius: 8px; background: #e5e7eb center/cover; flex: none; }
.ad-thumb.sm { width: 48px; height: 34px; aspect-ratio: auto; }
.ad-bars { display: grid; gap: 12px; margin-top: 14px; }
.ad-bar { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; }
.ad-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #374151; }
.ad-bar div { height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.ad-bar i { display: block; height: 100%; background: #2563eb; border-radius: 99px; min-width: 3px; }
.ad-bar b { font-weight: 600; }
.ad-line { width: 100%; height: 190px; margin-top: 8px; }
.ad-line .lt { font-size: 11px; fill: #9ca3af; }
.ad-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ad-list li { display: flex; align-items: center; gap: 10px; }
.ad-list small { margin-left: auto; color: var(--m); }
.ad-av { display: inline-block; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: #dbeafe; flex: none; border: 1px solid #e5e7eb; }
.ad-av svg { width: 100%; height: 100%; display: block; }

.ad-table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; }
.ad-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--m); text-transform: uppercase; letter-spacing: .04em; padding: 11px 16px; background: #f9fafb; border-bottom: 1px solid var(--b); white-space: nowrap; }
.ad-table td { padding: 12px 16px; border-bottom: 1px solid #f0f2f6; vertical-align: middle; white-space: nowrap; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-table tbody tr:hover td { background: #fafbfd; }
.ad-cell { display: flex; align-items: center; gap: 12px; }
.ad-cell small { display: block; color: var(--m); font-size: 12px; }
.ad-actions { text-align: right; }
.ad-actions .ad-btn { margin-left: 6px; }
.ad-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: #f3f4f6; color: #4b5563; margin-right: 6px; }
.ad-tag.ok { background: #dcfce7; color: #166534; }
.ad-tag.blue { background: #dbeafe; color: #1d4ed8; }
.ad-tag.warn { background: #fef3c7; color: #92400e; }
.ad-search { width: 260px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #111827; font: 400 14px 'Inter', system-ui, sans-serif; outline: 0; }
.ad-search:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }

/* formulieren in een venster (ook wit) */
.modal.ad-modal { background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 25px 60px rgba(17, 24, 39, .25); width: min(640px, 100%); padding: 28px; font-family: 'Inter', system-ui, sans-serif; }
.ad-modal .modal-x { background: #f3f4f6; color: #374151; }
.ad-form { display: grid; gap: 14px; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; color: #111827; }
.ad-form h2 { font-size: 19px; font-family: inherit; color: #0f172a; }
.ad-form label { display: grid; gap: 5px; font-weight: 500; color: #374151; }
.ad-form input:not([type=checkbox]), .ad-form select, .ad-form textarea { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #111827; font: 400 14px 'Inter', system-ui, sans-serif; outline: 0; }
.ad-form input:focus, .ad-form select:focus, .ad-form textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.ad-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-checks { display: flex; gap: 20px; flex-wrap: wrap; }
.ad-checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.ad-section { border-top: 1px solid #eef0f4; padding-top: 12px; display: grid; gap: 4px; }
.ad-section h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin: 0 0 4px; }
.ad-perm { display: flex !important; align-items: flex-start; gap: 10px; padding: 7px 0; font-weight: 400 !important; }
.ad-perm input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.ad-perm b { display: block; font-weight: 600; color: #111827; }
.ad-perm small { display: block; color: #6b7280; font-size: 12.5px; }
.ad-err { color: #b91c1c; font-size: 13px; }
.ad-foot { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 860px) {
  .ad { grid-template-columns: 1fr; }
  .ad-side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 12px 16px; }
  .ad-side nav { flex-direction: row; flex-wrap: wrap; } .ad-back { margin: 0 0 0 auto; }
  .ad-main { padding: 20px 16px 48px; } .ad-two { grid-template-columns: 1fr; }
}
.ad input[type=checkbox], .ad-modal input[type=checkbox] { appearance: auto; -webkit-appearance: checkbox; width: 16px !important; height: 16px; padding: 0 !important; background: #fff !important; accent-color: #2563eb; border-radius: 4px; box-shadow: none !important; cursor: pointer; }
