/* Beheer */
body.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.a-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--white); border-right: 3px solid var(--glacier-light); padding: 18px 14px 120px; z-index: 2; }
.a-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; text-decoration: none; margin-bottom: 18px; }
.a-brand .brand-logo { max-width: 150px; max-height: 70px; }
.a-brand .brand-name { font-size: 1.15rem; }
.a-group { margin: 16px 8px 6px; font: 700 .72rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--glacier); }
.a-link { display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; margin: 2px 0; }
.a-link:hover { background: var(--ice); }
.a-link.is-active { background: var(--deep); color: var(--white); }
.a-screens a { display: block; padding: 6px 14px; font-size: .9rem; }
.a-main { min-width: 0; padding: 0 28px 140px; position: relative; z-index: 1; }
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 12px; }
.a-top h1 { margin: 0; font-size: 1.7rem; }
.a-user { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.a-foot { margin-top: 30px; font-size: .8rem; color: var(--glacier); }
.alert-err { border-left-color: var(--pink); }

.card { background: var(--white); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card h2 { font-size: 1.15rem; }
.card.highlight { border: 3px solid var(--deep); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card, .grid-2 + .grid-2, .card + .grid-2 { margin-top: 18px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.sticky-bar { position: sticky; top: 0; z-index: 3; background: var(--ice); padding: 10px 0; }
.pos-spacer { flex: 1; }
.stack { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr); gap: 28px; }
label { display: grid; gap: 5px; font-weight: 700; font-size: .92rem; }
label small { font-weight: 400; }
input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea {
    font: 1rem/1.3 var(--font-body); color: var(--navy); padding: 10px 12px; border: 2px solid var(--glacier-light); border-radius: 10px; background: var(--white); width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--deep); }
input[type=color] { width: 64px; height: 44px; border: 2px solid var(--glacier-light); border-radius: 10px; padding: 2px; background: var(--white); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--deep); flex: 0 0 auto; }
fieldset { border: 2px solid var(--ice); border-radius: 12px; padding: 12px 14px; margin: 0; }
fieldset.inline { display: grid; gap: 10px; }
legend { font-weight: 700; padding: 0 6px; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form select, .inline-input { width: auto !important; min-width: 0; padding: 7px 10px !important; }
.label { font-weight: 700; font-size: .9rem; margin: 0 0 8px; }
.color-row { display: flex; gap: 10px; align-items: center; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font: 700 .72rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--glacier); padding: 8px; border-bottom: 2px solid var(--ice); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--ice); vertical-align: middle; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tr.group td { background: var(--ice); padding-top: 12px; }
.tbl tr.dim td { opacity: .5; }
.tbl tr.strike td:nth-child(4) { text-decoration: line-through; }
.tbl tr.total td { font-weight: 700; border-top: 2px solid var(--navy); }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.actions form { margin: 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 16px; }
.dl dt { font-weight: 700; }
.dl dd { margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--deep); color: var(--white); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.kpi span { font: 700 .7rem/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.kpi strong { font: 700 1.6rem/1.1 var(--font-head); letter-spacing: .02em; }
.kpi small { opacity: .8; }
.big { font: 700 2.4rem/1 var(--font-head); }
.top-list { margin: 0 0 12px; padding-left: 1.4em; }
.top-list li { padding: 4px 0; }
.top-list li span { display: inline-block; min-width: 70%; }

.swatch { display: inline-block; padding: 6px 12px; border-radius: 10px; font: 700 .9rem/1 var(--font-head); letter-spacing: .04em; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--glacier-light); cursor: pointer; }
.pos-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--white); border: 2px solid var(--ice); border-radius: 16px; padding: 12px; }
.preview-btn { min-height: 110px; border: 0; border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 12px 14px; font: 700 1.1rem/1.15 var(--font-head); text-align: left; box-shadow: 0 3px 0 rgba(0,0,0,.18); }

.switch { width: 52px; height: 30px; border-radius: 999px; border: 0; background: var(--glacier-light); position: relative; cursor: pointer; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--deep); }
.switch.on span { left: 25px; }
.posbadge { display: inline-block; min-width: 2.4em; text-align: center; padding: 3px 6px; border-radius: 8px; background: var(--navy); color: var(--white); font: 700 .85rem/1 var(--font-head); }

.mini-pos { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 6px; background: var(--white); border: 2px solid var(--ice); border-radius: 14px; padding: 8px; }
.mini-btn { position: relative; min-height: 54px; border-radius: 10px; padding: 18px 6px 6px; font: 700 .72rem/1.15 var(--font-head); opacity: .5; overflow: hidden; }
.mini-btn b { position: absolute; top: 4px; left: 6px; font-size: .7rem; opacity: .8; }
.mini-btn.me { opacity: 1; outline: 4px solid var(--pink); outline-offset: 1px; }
.mini-btn.ghost { opacity: 1; background: var(--ice); color: var(--glacier); border: 2px dashed var(--glacier-light); }
.danger-zone { margin-top: 0; }

/* Kassa-indeling */
.cat-order { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 6px; border-radius: 12px; font: 700 1rem/1 var(--font-head); cursor: grab; }
.cat-chip.dim, .layout-tile.dim { opacity: .45; }
.mv { background: rgba(255,255,255,.85); color: var(--navy); border: 0; border-radius: 8px; width: 28px; height: 28px; font-weight: 700; cursor: pointer; }
.layout-cat { margin-bottom: 18px; }
.layout-cat h2 { margin-bottom: 8px; }
.layout-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 10px; background: var(--white); border-radius: 16px; padding: 12px; min-height: 120px; border-top: 6px solid var(--cat-bg); }
.layout-grid.over { outline: 3px dashed var(--deep); }
.layout-tile { position: relative; min-height: 104px; border-radius: 14px; padding: 26px 12px 10px; background: var(--cat-bg); color: var(--cat-fg); display: flex; flex-direction: column; justify-content: space-between; cursor: grab; box-shadow: 0 3px 0 rgba(0,0,0,.18); font-family: var(--font-head); }
.layout-tile.dragging { opacity: .3; }
.lt-pos { position: absolute; top: 6px; left: 8px; font: 700 .75rem/1 var(--font-head); background: rgba(255,255,255,.9); color: var(--navy); border-radius: 6px; padding: 3px 6px; }
.lt-move { position: absolute; top: 4px; right: 4px; display: flex; gap: 3px; }

/* Rapporten */
.filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filter label { min-width: 150px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.quick .pill { text-decoration: none; font-size: .8rem; padding: .45em 1em; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 80px 1fr 130px; gap: 10px; align-items: center; font-size: .9rem; }
.bar { display: inline-block; height: 14px; background: var(--ice); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.bar-row .bar { width: 100%; }
.bar i { display: block; height: 100%; background: var(--deep); border-radius: 999px; }
.small-bar { width: 90px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; background: var(--white); }
.tabs a.is-active { background: var(--deep); color: var(--white); }
.file-field { display: grid; gap: 6px; padding: 12px; border: 2px dashed var(--glacier-light); border-radius: 12px; }
.file-current { display: flex; align-items: center; gap: 12px; }
.file-current img { max-height: 70px; max-width: 200px; background: var(--ice); border-radius: 8px; padding: 4px; }
.code-big { font: 700 3rem/1 var(--font-head); letter-spacing: .3em; margin: .2em 0; }

/* Bonvoorbeeld */
.receipt { width: calc(var(--w) * 0.62em + 28px); max-width: 100%; margin: 0 auto 12px; padding: 16px 14px 26px; background: #fff; font: 13px/1.35 "Courier New", monospace; color: #000; box-shadow: 0 2px 10px rgba(0,0,0,.15); border-radius: 4px 4px 0 0;
    -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; }
.r-line { white-space: pre-wrap; word-break: break-word; }
.r-c { text-align: center; } .r-r { text-align: right; } .r-b { font-weight: 700; }
.r-s2 { font-size: 1.9em; line-height: 1.15; } .r-s3 { font-size: 2.8em; line-height: 1.1; }

@media (max-width: 1000px) {
    body.admin { grid-template-columns: 1fr; }
    .a-side { position: static; height: auto; padding-bottom: 14px; }
    .grid-2, .grid-2.wide-left, .form-grid { grid-template-columns: 1fr; }
    .a-main { padding: 0 14px 140px; }
}
