/* DE BANANAS® CMS: ontwerptokens en basiscomponenten voor de beheeromgeving (alles onder .adm). Rustig, vlak, toegankelijk. */
.adm {
  --bg: #f6f5f0; --surface: #ffffff; --surface-2: #faf9f5; --ink: #151713; --muted: #5b6258; --line: #e4e1d6; --line-2: #d3cfc0;
  --brand: #f5c518; --brand-ink: #151713; --accent: #1f6feb; --ok: #1f7a3a; --warn: #8a5a00; --err: #a4262c;
  --radius: 12px; --shadow: 0 1px 2px rgba(20,22,16,.06), 0 8px 24px -12px rgba(20,22,16,.18);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
@media (prefers-color-scheme: dark) { .adm.adm-dark-ok { --bg:#101210; --surface:#181b17; --surface-2:#1d211c; --ink:#f1f0ea; --muted:#a6aca0; --line:#2b2f29; --line-2:#3a3f37; } }
.adm *, .adm *::before, .adm *::after { box-sizing: border-box; }
.adm .sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.adm .skip { position: absolute; left: 8px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; z-index: 100; }
.adm .skip:focus { top: 8px; }
.adm :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.adm .muted { color: var(--muted); font-size: .875rem; }
.adm .btn-p, .adm .btn-g, .adm .btn-d { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 10px; font-family:inherit;font-weight:700;font-size:.9rem;line-height:1; cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .05s; }
.adm .btn-p { background: var(--brand); color: var(--brand-ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.adm .btn-p:hover:not(:disabled) { background: #ffd43b; }
.adm .btn-g { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.adm .btn-g:hover:not(:disabled) { background: var(--surface-2); border-color: #bdb8a6; }
.adm .btn-d { background: var(--err); color: #fff; }
.adm .btn-p:active, .adm .btn-g:active { transform: translateY(1px); }
.adm button:disabled { opacity: .5; cursor: not-allowed; }
.adm .sm { min-height: 34px; padding: 0 12px; font-size: .82rem; }
.adm .icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; font-size: 1rem; }
.adm .icon-btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line); }
.adm .inp { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font-family:inherit;font-weight:500;font-size:.95rem;line-height:1.4; resize: vertical; }
.adm .inp:focus { border-color: var(--accent); outline: 3px solid rgba(31,111,235,.2); outline-offset: 0; }
.adm .inp[aria-invalid="true"] { border-color: var(--err); }
.adm .brand { display: inline-flex; align-items: center; gap: 8px; font-family:inherit;font-weight:900;font-size:.8rem;line-height:1; letter-spacing: .08em; }
.adm .brand i { width: 14px; height: 14px; border-radius: 50% 50% 50% 4px; background: var(--brand); display: inline-block; transform: rotate(-35deg); box-shadow: inset -2px -2px 0 rgba(0,0,0,.15); }
.adm .brand sup { font-size: .6em; }
.adm .link { color: var(--accent); font-weight: 700; font-size: .875rem; }
.adm .link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-family:inherit;font-weight:600;font-size:.78rem;line-height:1.2; cursor: pointer; text-decoration: underline; }
.adm .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); }
.adm .chip.ok { background: #e3f3e7; border-color: #b6dcc0; color: #14532d; } .adm .chip.warn { background: #fff4d6; border-color: #ecd48a; color: #6b4a00; } .adm .chip.err { background: #fde8e8; border-color: #f0b8b8; color: #7f1d1d; }
.adm .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
/* dialogen */
.adm .dlg { border: 0; padding: 0; border-radius: 16px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); color: var(--ink); background: var(--surface); }
.adm .dlg.wide { width: min(880px, calc(100vw - 24px)); }
.adm .dlg::backdrop { background: rgba(16,18,14,.55); }
.adm .dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.adm .dlg-h h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.adm .dlg-b { padding: 18px 20px; overflow: auto; max-height: calc(100vh - 190px); }
.adm .dlg-f { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 16px 16px; }
.adm .toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 200; max-width: min(420px, calc(100vw - 32px)); }
.adm .toast { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: .9rem; box-shadow: var(--shadow); animation: tin .2s ease-out; }
.adm .toast button { background: none; border: 0; color: var(--brand); font-weight: 800; cursor: pointer; }
.adm .toast.ok { background: #14532d; } .adm .toast.err { background: #7f1d1d; } .adm .toast.warn { background: #6b4a00; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .adm * { animation: none !important; transition: none !important; } }
/* ---------- beheer-shell ---------- */
.adm-shell, .adm-login { min-height: 100vh; }
.adm .shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.adm .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #151713; color: #e9e8e0; display: flex; flex-direction: column; padding: 18px 12px; }
.adm .side .brand { color: #fff; } .adm .side-top { padding: 4px 10px 18px; display: grid; gap: 4px; } .adm .side-sub { font-size: .72rem; color: #a3a89b; }
.adm .grp { margin-top: 14px; } .adm .grp-t { margin: 0 10px 6px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8b9183; }
.adm .grp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.adm .grp a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: #d9d8cf; text-decoration: none; font-weight: 600; font-size: .88rem; }
.adm .grp a:hover { background: #22251f; color: #fff; } .adm .grp a[aria-current="page"] { background: var(--brand); color: #151713; font-weight: 800; }
.adm .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); } .adm a[aria-current="page"] .dot { background: #151713; }
.adm .side-foot { margin-top: auto; padding: 16px 10px 4px; } .adm .site-link { color: #cfd3c6; font-size: .82rem; font-weight: 700; }
.adm .body { min-width: 0; display: flex; flex-direction: column; }
.adm .top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: rgba(246,245,240,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.adm .top-t { margin: 0; font-weight: 800; font-size: 1rem; } .adm .top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.adm .who { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.adm .menu-btn { display: none; }
.adm .main { padding: 28px 24px 64px; max-width: 1180px; width: 100%; }
.adm .main:focus { outline: none; }
.adm .flash { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; font-weight: 700; font-size: .9rem; border: 1px solid var(--line); background: var(--surface); }
.adm .flash.ok { background: #e3f3e7; border-color: #b6dcc0; color: #14532d; } .adm .flash.err { background: #fde8e8; border-color: #f0b8b8; color: #7f1d1d; }
/* bestaande beheerpagina's (Tailwind-klassen) rustiger en consistent in .adm */
.adm .main h1.display { font-size: 1.7rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 0 0 4px; }
.adm .main h2 { font-weight: 800; letter-spacing: -.01em; }
.adm .main .tile { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.adm .main .field { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-family:inherit;font-weight:500;font-size:.95rem;line-height:1.4; }
.adm .main .field:focus { border-color: var(--accent); outline: 3px solid rgba(31,111,235,.2); outline-offset: 0; }
.adm .main .btn { border-radius: 10px; min-height: 40px; font-weight: 700; font-size: .9rem; padding: 0 16px; box-shadow: none; }
.adm .main .btn-green { background: var(--brand); color: var(--brand-ink); } .adm .main .btn-green:hover { background: #ffd43b; }
.adm .main .btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.adm .main .btn .arr { display: none; }
.adm .main table { width: 100%; border-collapse: collapse; font-size: .88rem; } .adm .main th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.adm .main th, .adm .main td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm .main .overflow-x-auto { border-radius: var(--radius); }
/* dashboard */
.adm .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 28px; }
.adm .kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; display: block; }
.adm a.kpi:hover { border-color: #bdb8a6; box-shadow: var(--shadow); } .adm .kpi b { display: block; font-size: 1.6rem; letter-spacing: -.02em; } .adm .kpi span { font-size: .82rem; color: var(--muted); }
.adm .kpi.attn { border-color: #ecd48a; background: #fffaea; }
.adm .cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; } .adm .cols h2 { font-size: 1.05rem; margin: 0 0 10px; }
.adm .list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .adm .list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; }
.adm .quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
/* login */
.adm-login { display: grid; place-items: center; padding: 24px; }
.adm .login { width: min(420px, 100%); display: grid; gap: 12px; } .adm .login h1 { font-size: 1.6rem; margin: 6px 0 0; font-weight: 800; letter-spacing: -.02em; } .adm .login .card { display: grid; gap: 10px; }
.adm .lbl { font-weight: 800; font-size: .85rem; }
@media (max-width: 960px) {
  .adm .shell { grid-template-columns: 1fr; } .adm .side { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .2s; }
  .adm .menu-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); } .adm .menu-btn { display: inline-grid; } .adm .who-m { display: none; }
  .adm .main { padding: 20px 14px 56px; } .adm .top { padding: 8px 12px; } .adm .cols { grid-template-columns: 1fr; }
}
.adm .mdrop { display: block; padding: 22px; border: 2px dashed var(--line-2); border-radius: 12px; text-align: center; cursor: pointer; background: var(--surface-2); }
.adm .mdrop.over, .adm .mdrop:hover { border-color: var(--accent); background: rgba(31,111,235,.06); }
.adm .libgrid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.adm .libitem { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); display: grid; }
.adm .libitem img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e6e3d6; display: block; }
.adm .libmeta { padding: 10px; display: grid; gap: 6px; } .adm .libmeta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }

/* inklapbare zijbalk + kruimelpad */
.adm .side-top { position: relative; }
.adm .side-toggle { position: absolute; right: 4px; top: 2px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid #2c3029; background: #1d201b; color: #cfd3c6; display: grid; place-items: center; cursor: pointer; }
.adm .side-toggle:hover { background: #2a2e27; color: #fff; }
.adm .shell { transition: grid-template-columns .18s ease; }
.adm .shell.collapsed { grid-template-columns: 68px 1fr; }
.adm .shell.collapsed .side { padding-inline: 8px; overflow-x: hidden; }
.adm .shell.collapsed .side .brand, .adm .shell.collapsed .side-sub, .adm .shell.collapsed .grp-t, .adm .shell.collapsed .grp a span:not(.sr-only), .adm .shell.collapsed .site-link { display: none; }
.adm .shell.collapsed .side-toggle { position: static; margin: 0 auto 8px; transform: rotate(180deg); }
.adm .shell.collapsed .grp a { justify-content: center; padding-inline: 0; position: relative; }
.adm .shell.collapsed .dot { position: absolute; right: 10px; top: 8px; margin: 0; }
.adm .crumbs { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); } .adm .crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; } .adm .crumbs a:hover { color: var(--ink); text-decoration: underline; } .adm .crumbs [aria-current] { color: var(--ink); font-weight: 800; }
@media (max-width: 960px) { .adm .shell.collapsed { grid-template-columns: 1fr; } .adm .side-toggle { display: none; } }
