/* Smart Kassa — design C "Markt" (owner's choice, 2026-11-13): bold colour blocks, readable from far.
   Layout: one screen — top bar; scan field + yellow total; ticket | quick tiles | keypad; actions + two
   wide pay buttons. Fonts ship with the program (no internet needed). */
@font-face { font-family: Archivo; src: url(fonts/archivo-latin-400-normal.woff2) format('woff2'); font-weight: 400 }
@font-face { font-family: Archivo; src: url(fonts/archivo-latin-500-normal.woff2) format('woff2'); font-weight: 500 }
@font-face { font-family: Archivo; src: url(fonts/archivo-latin-700-normal.woff2) format('woff2'); font-weight: 700 }
@font-face { font-family: Archivo; src: url(fonts/archivo-latin-800-normal.woff2) format('woff2'); font-weight: 800 }
@font-face { font-family: 'Archivo Black'; src: url(fonts/archivo-black-latin-400-normal.woff2) format('woff2') }
@font-face { font-family: Plex Arabic; src: url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); font-weight: 400 }
@font-face { font-family: Plex Arabic; src: url(fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); font-weight: 500 }
@font-face { font-family: Plex Arabic; src: url(fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); font-weight: 700 800 }

:root {
  --blk: #111; --on-y: #111; --soft3: #F6F6F2; --tint-red: #FDECE8; --tint-green: #E7F4EC; --tint-yellow: #FFF3C4;
  --green-ink: #13703A; --red-ink: #B42B14; --amber-ink: #B45309; --brand: #0F3D2E; --shadow: rgba(17,17,17,.08);
  --green: #0F3D2E; --green2: #1E8A4C; --yellow: #FFD23F; --ink: #111; --page: #F4F4F1; --card: #fff; --soft: #ECECE6; --soft2: #F0F0EA;
  --red: #D2381F; --amber: #E8A400; --purple: #5B3E96; --line: #E2E2DA; --muted: #5E625C;
  --f-text: Archivo, 'Plex Arabic', 'Segoe UI', sans-serif; --f-display: 'Archivo Black', 'Plex Arabic', 'Segoe UI Black', sans-serif;
  --r: 16px;
}
* { box-sizing: border-box }
html, body { height: 100%; margin: 0 }
body { background: var(--page); color: var(--ink); font: 500 16px/1.35 var(--f-text); overflow: hidden; user-select: none; -webkit-user-select: none }
[dir="rtl"] body, body[dir="rtl"] { --f-text: 'Plex Arabic', Archivo, 'Segoe UI', sans-serif; --f-display: 'Plex Arabic', 'Archivo Black', sans-serif }
[dir="rtl"] .disp-num, [dir="rtl"] .n { font-family: 'Archivo Black', sans-serif }
button, input, select { font: inherit; color: inherit }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px }
.n { direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums }
[hidden] { display: none !important }
input, select { user-select: text; -webkit-user-select: text }

/* ── screens ── */
.screen { position: fixed; inset: 0 }

/* ── till ── */
#till { display: grid; gap: 12px; padding: 12px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(300px, .78fr);
  grid-template-rows: 62px 92px minmax(0, 1fr) 184px;
  grid-template-areas: "tb tb tb" "scan scan sum" "ticket quick keys" "acts pay pay" }
.tb { grid-area: tb; display: flex; align-items: center; gap: 14px; padding: 0 12px 0 18px; background: var(--brand); color: #fff; border-radius: var(--r) }
.brand { display: inline-flex; align-items: center; gap: .38em; font-family: 'Archivo Black', sans-serif; font-size: 21px; letter-spacing: .01em; white-space: nowrap }
.brand .lg { height: 1.5em; width: auto; flex: none; overflow: visible }
.brand .bn { color: #8CC63F }
.brand b { color: var(--yellow); font-weight: 400 }
.ps-l h2 .brand .bn { color: var(--green) }
.tb .shop { font-weight: 700; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.tb .sp { flex: 1 }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap }
button.chip:hover { background: rgba(255,255,255,.2) }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #9AA39E }
.dot.on { background: #6BE08F; box-shadow: 0 0 0 4px rgba(107,224,143,.2) }
.chip.me { background: var(--yellow); color: var(--on-y) }
.alarm { background: var(--red); color: #fff }
.warnchip { background: var(--amber); color: var(--on-y) }

.scan { grid-area: scan; display: flex; align-items: center; gap: 14px; padding: 0 12px 0 20px; background: var(--card); border: 3px solid var(--ink); border-radius: var(--r); min-width: 0 }
.scan svg { width: 38px; height: 28px; flex: none }
.scan input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 700 26px/1 var(--f-text); letter-spacing: .02em }
.scan input::placeholder { color: #9A9D96; font-weight: 700 }
.mult { font: 400 22px/1 'Archivo Black', sans-serif; background: var(--blk); color: var(--yellow); padding: 8px 12px; border-radius: 10px }
.flash { font-weight: 800; font-size: 16px; padding: 10px 14px; border-radius: 12px; background: var(--green); color: var(--yellow); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .3s }
.flash.err { background: var(--red); color: #fff }
.flash.empty { opacity: 0 }

.sum { grid-area: sum; background: var(--yellow); border-radius: var(--r); display: flex; flex-direction: column; justify-content: center; padding: 8px 20px }
.sum .lbl { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px }
.sum .big { font: 400 50px/1 var(--f-display); text-align: end; letter-spacing: -.01em }
[dir="rtl"] .sum .big { font-family: 'Archivo Black', sans-serif }

.ticket { grid-area: ticket; background: var(--card); border-radius: var(--r); display: flex; flex-direction: column; min-height: 0; overflow: hidden }
.th { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px 8px; font-weight: 800; font-size: 17px }
.th small { font-weight: 700; color: var(--muted); font-size: 15px }
.lines { flex: 1; overflow-y: auto; padding: 0 6px; scrollbar-width: thin }
.ln { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1px 12px; width: 100%; padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line) }
.ln .nm { font-weight: 800; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ln .mt { font-size: 14.5px; color: var(--muted); font-weight: 600 }
.ln .am { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 800; font-size: 19px }
.ln .extra { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 700 }
.ln .extra.disc { color: var(--red) }
.ln .extra.dep { color: var(--muted) }
.ln .extra.promo { color: var(--amber-ink) }
.tfoot .saving { color: var(--green2); font-weight: 800 }
.ln.sel { background: #FFF6CF; border-radius: 10px; box-shadow: inset 4px 0 0 var(--ink) }
[dir="rtl"] .ln.sel { box-shadow: inset -4px 0 0 var(--ink) }
.empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 700; padding: 20px }
.empty svg { width: 90px; height: 60px; opacity: .25; display: block; margin: 0 auto 12px }
.tfoot { display: flex; gap: 14px; padding: 8px 18px 12px; border-top: 2px solid var(--ink); font-size: 14.5px; font-weight: 700; color: var(--muted); flex-wrap: wrap }

.quick { grid-area: quick; background: var(--card); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0 }
.cats { display: flex; gap: 8px; overflow-x: auto; flex: none; scrollbar-width: none; padding-bottom: 2px }
.cat { padding: 10px 15px; border-radius: 999px; background: var(--soft); font-weight: 800; font-size: 15px; white-space: nowrap }
.cat.on { background: var(--blk); color: var(--yellow) }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: minmax(86px, auto); gap: 8px; overflow-y: auto; align-content: start; flex: 1; scrollbar-width: thin }
.tile { position: relative; border-radius: 14px; padding: 12px; color: #fff; text-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 86px }
.tile b { font-size: 17px; font-weight: 800; line-height: 1.15 }
.tile span { font-weight: 700; font-size: 15px; opacity: .92 }
.tile.img { flex-direction: row; align-items: stretch; gap: 10px; padding: 9px }
.tile.img .ph { flex: none; width: 30%; max-width: 82px; background: #fff; border-radius: 10px; overflow: hidden; display: grid; place-items: center }
.tile.img .ph img { width: 100%; height: 100%; object-fit: contain }
.tile.img .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 4px }
.tile.img .tx b { font-size: 16px; overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.tiles { overflow-x: hidden }
.tile.img i { position: static; align-self: flex-start }
.pimg { display: flex; gap: 14px; align-items: center; margin-bottom: 12px }
.pimg .ph { width: 96px; height: 96px; flex: none; border: 2px dashed var(--line); border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; color: #9a9a9a }
.pimg .ph img { width: 100%; height: 100%; object-fit: contain }
.pimg .ph svg { width: 36px; height: 36px }
.pimg-b { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.pimg-b .row { display: flex; flex-wrap: wrap; gap: 6px }
.pimg-b small { color: #6b6b6b }
.tile i { font-style: normal; position: absolute; top: 9px; inset-inline-end: 9px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 999px; letter-spacing: .04em }
.tile:active, .k:active, .act:active, .pb:active, .cat:active { transform: scale(.97) }

.keys { grid-area: keys; background: var(--card); border-radius: var(--r); padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.k { border-radius: 12px; background: var(--soft2); font: 400 28px/1 'Archivo Black', sans-serif; display: grid; place-items: center; min-height: 56px }
.k.op { background: var(--blk); color: var(--yellow) }
.k.w3 { grid-column: span 3 }

.acts { grid-area: acts; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 8px }
.acts > .act { grid-column: span 3 } .acts > .act:nth-child(n+5) { grid-column: span 4 }
.act.free { background: var(--yellow); border-color: var(--ink) }
.act.free b { font: 400 22px/1 'Archivo Black', sans-serif }
.act .eur { font: 400 27px/1 'Archivo Black', sans-serif; font-style: normal }
.act { display: flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); font-weight: 800; font-size: 20px; padding: 0 8px; min-width: 0; text-align: center; line-height: 1.1; gap: 9px }
.act span { min-width: 0 }
.act svg { width: 30px; height: 30px; flex: none }
.pay { grid-area: pay; display: grid; grid-template-columns: 1fr 1fr .62fr; gap: 10px }
.pb.mix { background: var(--card); color: var(--ink); border: 3px solid var(--ink); font-size: 19px }
.pb.mix .ico2 { display: flex; gap: 6px; justify-content: center }
.pb.mix .ico2 svg { width: 24px; height: 24px }
.splitinfo { display: grid; gap: 10px }
.splitinfo div { display: flex; justify-content: space-between; align-items: baseline; background: var(--card); border: 3px solid var(--ink); border-radius: 16px; padding: 14px 18px; font-weight: 800 }
.splitinfo b { font: 400 32px/1 'Archivo Black', sans-serif }
.paidpart { margin: 0; font-weight: 800; font-size: 18px }
.btn.big { min-height: 76px; font-size: 21px }
.ps-l .grow { flex: 1 }
.pb { min-height: 0; padding: 6px; border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 400 26px/1 var(--f-display) }
.pb small { font: 800 12px/1 var(--f-text); opacity: .75; letter-spacing: .08em }
.pb svg { width: 30px; height: 30px }
.pb.cash { background: var(--green2); color: #fff }
.pb.card { background: var(--blk); color: var(--yellow) }
.pb:disabled { opacity: .35; cursor: default }

/* ── overlays ── */
.ov { position: fixed; inset: 0; background: rgba(15,61,46,.55); display: grid; place-items: center; z-index: 20; padding: 24px }
.sheet { background: var(--page); border-radius: 22px; width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5) }
.sheet header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; background: var(--green); color: #fff; position: sticky; top: 0; z-index: 1 }
.sheet header h2 { margin: 0; font: 400 22px/1.2 var(--f-display) }
.sheet .body { padding: 20px 22px; display: grid; gap: 14px }
.x { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; font-weight: 800 }
.btn { min-height: 54px; padding: 0 20px; border-radius: 14px; font-weight: 800; font-size: 17px; border: 2px solid var(--ink); background: var(--card); display: inline-flex; align-items: center; justify-content: center; gap: 8px }
.btn.pri { background: var(--green2); color: #fff; border-color: var(--green2) }
.btn.blk { background: var(--blk); color: var(--yellow) }
.btn.red { background: var(--red); color: #fff; border-color: var(--red) }
.btn.sm { min-height: 42px; font-size: 15px; padding: 0 14px }
.btn:disabled { opacity: .4; cursor: default }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center }
.row > .grow { flex: 1 }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px }
.menu-grid .btn { justify-content: flex-start; min-height: 64px; font-size: 18px }
.list { display: grid; gap: 8px }
.item { background: var(--card); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.item .grow { flex: 1; min-width: 0 }
.item b { font-weight: 800 }
.item small { color: var(--muted); font-weight: 600 }
.tag { font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: var(--soft) }
.tag.red { background: var(--red); color: #fff }
.tag.green { background: var(--green2); color: #fff }
.note { background: var(--card); border-radius: 14px; padding: 12px 14px; color: var(--muted); font-weight: 600 }
.warn { background: var(--red); color: #fff; border-radius: 14px; padding: 12px 14px; font-weight: 800 }

/* form */
.f { display: grid; gap: 6px }
.f > span { font-weight: 800; font-size: 14px }
.f input, .f select { min-height: 50px; border: 2px solid var(--ink); border-radius: 12px; padding: 0 12px; background: var(--card); font-weight: 700; font-size: 17px; width: 100% }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700 }
.check input { width: 24px; height: 24px; accent-color: var(--green2) }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden }
.seg button { min-height: 46px; padding: 0 16px; font-weight: 800; background: var(--card) }
.seg button.on { background: var(--blk); color: var(--yellow) }

/* ── pay ── */
#pay { position: fixed; inset: 0; z-index: 15; display: grid; grid-template-columns: 1fr 1fr; background: var(--page) }
.ps-l { background: var(--yellow); padding: 34px 40px; display: flex; flex-direction: column; gap: 20px; min-height: 0 }
.ps-l h2 .brand b { color: var(--ink); text-decoration: underline 4px var(--ink); text-underline-offset: 6px }
.ps-l h2 { margin: 0; display: flex; align-items: center; gap: 14px; font: 400 24px/1.2 var(--f-display) }
.due > span { display: block; font-weight: 800; font-size: 18px }
.due b { font: 400 88px/1 'Archivo Black', sans-serif; letter-spacing: -.02em }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.mth { border: 3px solid var(--ink); background: var(--card); border-radius: 14px; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; font: 400 22px/1 var(--f-display) }
.mth svg { width: 26px; height: 26px }
.mth.on { background: var(--blk); color: var(--yellow) }
.chg { margin-top: auto; background: var(--green); color: #fff; border-radius: 20px; padding: 22px 26px }
.chg > span { display: block; font-weight: 800; font-size: 18px }
.chg b { font: 400 72px/1.05 'Archivo Black', sans-serif; color: var(--yellow) }
.chg.short { background: var(--red) }
.chg.short b { color: #fff; font-size: 44px }
.ps-r { padding: 34px 40px; display: flex; flex-direction: column; gap: 14px; min-height: 0 }
.recv { background: var(--card); border: 3px solid var(--ink); border-radius: 16px; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center }
.recv > span { font-weight: 800 }
.recv b { font: 400 40px/1 'Archivo Black', sans-serif }
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px }
.nt { background: var(--card); border: 3px solid var(--ink); border-radius: 14px; min-height: 58px; font: 400 20px/1 'Archivo Black', sans-serif }
.nt.exact { font: 800 17px/1 var(--f-text) }
.ps-r .pad { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 0 }
.ps-r .pad .k { background: var(--card); border: 2px solid var(--line) }
.ps-r .pad .k.del { grid-column: span 2; background: var(--blk); color: var(--yellow); border-color: var(--ink) }
.ps-r .pad .k.clr { background: var(--card); color: var(--red-ink); border-color: var(--red-ink) }
.fin { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px }
.fin .btn { min-height: 70px; font-size: 20px }
.cardwait { background: var(--card); border: 3px solid var(--ink); border-radius: 20px; padding: 26px; display: grid; gap: 18px; text-align: center; font-weight: 800; font-size: 20px }
.cardwait svg { width: 90px; height: 90px; margin: 0 auto }
.cardwait .n { font: 400 44px/1 'Archivo Black', sans-serif }
.spin { width: 44px; height: 44px; margin: 0 auto; border: 6px solid var(--soft); border-top-color: var(--green2); border-radius: 50%; animation: spin 1s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
.done { position: fixed; inset: 0; z-index: 16; background: var(--green); color: #fff; display: grid; place-items: center; text-align: center }
.done h2 { font: 400 40px/1.1 var(--f-display); color: var(--yellow); margin: 0 0 10px }
.done .chgbig { font: 400 120px/1 'Archivo Black', sans-serif; color: var(--yellow) }
.done p { font-weight: 800; font-size: 22px; margin: 6px 0 }

/* ── login / setup ── */
#login, #setup { display: grid; grid-template-columns: 1fr 1.1fr }
.side { background: var(--green); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between }
.side .brand { font-size: 28px }
.side .hello { font: 400 60px/1.05 var(--f-display); letter-spacing: -.01em; margin: 0 }
.side .hello b { color: var(--yellow); font-weight: 400; display: block }
.side .meta { display: grid; gap: 6px; font-weight: 700; opacity: .8 }
.main { padding: 32px 60px; display: flex; flex-direction: column; justify-content: center; gap: 16px; overflow: auto }
.main h2 { margin: 0; font: 800 24px/1.2 var(--f-text) }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px }
.st { background: var(--card); border: 3px solid var(--ink); border-radius: 18px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px }
.st.on { background: var(--yellow) }
.av { width: 60px; height: 60px; border-radius: 50%; background: var(--blk); color: var(--yellow); display: grid; place-items: center; font: 400 24px/1 'Archivo Black', 'Plex Arabic', sans-serif }
.st b { font-size: 17px; font-weight: 800 }
.st .role { font-size: 13px; font-weight: 700; opacity: .65 }
.dots { display: flex; gap: 14px; justify-content: center; min-height: 22px }
.dots i { width: 20px; height: 20px; border-radius: 50%; background: #D6D6CF }
.dots i.f { background: var(--blk) }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 440px; width: 100%; align-self: center }
.pinpad .k { min-height: 60px; background: var(--card); border: 2px solid var(--line) }
.pinpad .k.ok { background: var(--green2); color: #fff; border-color: var(--green2) }
.msg { min-height: 24px; text-align: center; font-weight: 800; color: var(--red) }

/* ── admin ── */
#admin { position: fixed; inset: 0; z-index: 18; display: grid; grid-template-columns: 260px minmax(0,1fr); background: var(--page) }
.anav { background: var(--green); color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px }
.anav .brand { padding: 6px 10px 18px }
.anav button { text-align: start; padding: 14px 14px; border-radius: 12px; font-weight: 800; font-size: 16px; color: #fff }
.anav button.on { background: var(--yellow); color: var(--on-y) }
.anav .sp { flex: 1 }
.apage { padding: 24px 28px; overflow: auto; display: grid; gap: 16px; align-content: start }
.apage h2 { margin: 0; font: 400 26px/1.2 var(--f-display) }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px, 420px); gap: 16px; align-items: start }
.card { background: var(--card); border-radius: 16px; padding: 18px; display: grid; gap: 12px }
.swatch { width: 26px; height: 26px; border-radius: 8px; flex: none }
.code { font: 400 26px/1.4 'Archivo Black', monospace; letter-spacing: .06em; background: var(--yellow); padding: 14px; border-radius: 12px; text-align: center; direction: ltr }
table.t { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden }
table.t td, table.t th { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); font-size: 15px }
table.t th { font-size: 13px; color: var(--muted); font-weight: 800 }
table.t td.r, table.t th.r { text-align: end }

/* ── management, premium (owner, 2026-11-13) ── */
#admin { grid-template-columns: 272px minmax(0, 1fr) }
.anav { padding: 22px 14px; gap: 4px; background: linear-gradient(180deg, #0F3D2E 0%, #0B2F23 100%) }
.anav .brand { padding: 4px 12px 2px; font-size: 22px }
.anav-shop { padding: 0 12px 18px; font-weight: 700; opacity: .65; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 10px }
.anav button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 15.5px; border-radius: 12px; transition: background .15s }
.anav button svg { width: 21px; height: 21px; flex: none; opacity: .85 }
.anav button:hover { background: rgba(255,255,255,.08) }
.anav button.on { background: var(--yellow); color: var(--on-y); box-shadow: 0 6px 18px -8px rgba(255,210,63,.6) }
.anav button.on svg { opacity: 1 }
.anav-me { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.07) }
.anav-me .av { width: 40px; height: 40px; font-size: 17px; background: var(--yellow); color: var(--on-y) }
.anav-me span { display: grid } .anav-me small { opacity: .65; font-weight: 600 }
.anav .anav-back { justify-content: center; background: rgba(255,255,255,.12); margin-top: 6px }
.apage { padding: 28px 34px 40px; gap: 18px; background: radial-gradient(1200px 400px at 100% -10%, #FFF6CF 0%, var(--page) 55%) }
.ahead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 4px }
.ahead h2 { margin: 0; font: 400 30px/1.1 var(--f-display); letter-spacing: -.01em }
.ahead p { margin: 6px 0 0; color: var(--muted); font-weight: 600; max-width: 70ch }
.card { border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 12px 30px -22px rgba(15,61,46,.35); border-radius: 18px }
.card h3 { margin: 0; display: flex; align-items: center; gap: 10px; font: 800 17px/1.2 var(--f-text) }
.card h3 svg { width: 22px; height: 22px; flex: none }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 6px; box-shadow: 0 12px 30px -22px rgba(15,61,46,.35) }
.kpi > span { font-weight: 800; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .04em }
[dir="rtl"] .kpi > span { text-transform: none; letter-spacing: 0 }
.kpi > b { font: 400 30px/1.1 'Archivo Black', sans-serif }
.kpi > small { color: var(--muted); font-weight: 700 }
.kpi.y { background: var(--yellow); border-color: #F0C21F }
.kpi.y > span, .kpi.y > small { color: #3d3300 }
.kpi .up { color: var(--green2) } .kpi .down { color: var(--red) }
.agrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px }
.chart { width: 100%; height: auto; display: block }
.chart .bar { fill: #D9E9DF } .chart .bar.now { fill: var(--green2) }
.chart .axis { stroke: #DADAD2; stroke-width: 1 }
.chart .lbl { font: 700 12px Archivo, 'Plex Arabic', sans-serif; fill: var(--muted); text-anchor: middle }
.chart .val { font: 800 12px Archivo, sans-serif; fill: var(--ink); text-anchor: middle }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: r }
.rank li { display: grid; grid-template-columns: 26px minmax(0,1fr) 90px auto; align-items: center; gap: 10px; counter-increment: r; font-weight: 700 }
.rank li::before { content: counter(r); width: 26px; height: 26px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font: 800 13px var(--f-text) }
.rank li:first-child::before { background: var(--yellow) }
.rank .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.meter { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden }
.meter i { display: block; height: 100%; background: var(--green2); border-radius: 99px }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.stat { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--soft2); border: 1px solid var(--line) }
.stat span:last-child { display: grid; gap: 2px; min-width: 0 } .stat small { color: var(--muted); font-weight: 600; overflow-wrap: anywhere }
.stat .dot { margin-top: 5px; flex: none } .dot.off { background: var(--red); box-shadow: 0 0 0 4px rgba(210,56,31,.15) }
.devgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start }
.seg.wide { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr }
.seg.wide button { padding: 0 8px; font-size: 14px }
.item { border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s }
.item:hover { border-color: #CFCFC6 }
.item.cur { border-color: var(--ink); box-shadow: 0 0 0 2px var(--yellow) }
.tag.vat9 { background: #DDF1E3; color: #14532D } .tag.vat21 { background: #FFE0D9; color: #8A2412 } .tag.vat0 { background: var(--soft) }
.f.search input { border-color: var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E625C' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 14px center / 20px; padding-inline-start: 44px }
[dir="rtl"] .f.search input { background-position: calc(100% - 14px) center }
.empty-card { color: var(--muted); font-weight: 700; min-height: 160px; place-items: center; text-align: center; border-style: dashed }
.vatpick { display: flex; gap: 10px }
.vp { position: relative; flex: 1 }
.vp input { position: absolute; opacity: 0 }
.vp span { display: grid; place-items: center; min-height: 56px; border: 2px solid var(--ink); border-radius: 14px; font: 400 22px/1 'Archivo Black', sans-serif; background: var(--card); cursor: pointer }
.vp input:checked + span { background: var(--blk); color: var(--yellow) }
.vp input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px }
.vp.small { flex: .5 } .vp.small span { font-size: 15px; min-height: 56px; border-style: dashed }
.colors { display: flex; gap: 10px; flex-wrap: wrap }
.colr { position: relative } .colr input { position: absolute; opacity: 0 }
.colr i { display: block; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; border: 3px solid transparent }
.colr input:checked + i { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow) }
.weigh { display: grid; gap: 6px; text-align: center; background: var(--card); border: 3px solid var(--ink); border-radius: 18px; padding: 22px }
.weigh span { font-weight: 800; color: var(--muted) } .weigh b { font: 400 64px/1 'Archivo Black', sans-serif }
.weigh small { font-weight: 800; font-size: 18px } .weigh em { font-style: normal; font-weight: 800; color: var(--green2) }
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)) } .agrid, .devgrid { grid-template-columns: 1fr } .stats { grid-template-columns: repeat(2, minmax(0,1fr)) } }


/* ── stock pages ── */
.anav { overflow-y: auto }
.anav-list { display: grid; gap: 2px }
.anav-g { display: block; padding: 12px 14px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .5 }
[dir="rtl"] .anav-g { letter-spacing: 0; text-transform: none }
.anav button { padding: 9px 14px }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.scanrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap }
.scanrow input { min-height: 52px; border: 3px solid var(--ink); border-radius: 12px; padding: 0 14px; font: 700 20px var(--f-text); flex: 1; min-width: 180px }
.scanrow input.qty { flex: 0 0 120px; min-width: 0 }
input.cell { width: 100%; min-width: 80px; min-height: 42px; border: 2px solid var(--line); border-radius: 10px; padding: 0 10px; font-weight: 700; background: var(--card) }
table.t .neg { color: var(--red) } table.t .pos { color: var(--green2) } table.t .warnc { color: var(--amber-ink) }
tr.lowrow td { background: #FFF8E1 }
.margin { color: var(--green2); font-weight: 800 }
.chips { display: flex; gap: 8px; flex-wrap: wrap }
.chip2 { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--soft); font-weight: 700 }
.row.wrap { flex-wrap: wrap }
.f.inline input { min-height: 42px; font-size: 15px; width: auto }
.sortb { font: inherit; font-weight: 800; color: var(--muted) }
.sortb.on { color: var(--ink); text-decoration: underline 2px }
.swatch.inline { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-inline-end: 8px; vertical-align: middle }
.chip2.on { background: var(--blk); color: var(--yellow) }
button.chip2 { padding: 10px 14px; cursor: pointer }
.rqn { min-width: 52px; text-align: center; font: 400 22px/1 'Archivo Black', sans-serif }
.chip2 button { width: 28px; height: 28px; border-radius: 50%; background: #fff; font-weight: 800 }
td.tact { white-space: nowrap }
td.tact .btn { margin-inline-start: 6px }
.card h3.sub { font-size: 15px; color: var(--muted); margin-top: 6px }
@media (max-width: 1180px) { .grid3 { grid-template-columns: 1fr } }

.toast { position: fixed; top: 86px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--blk); color: var(--yellow); padding: 14px 22px; border-radius: 14px; font-weight: 800; z-index: 40; max-width: 80vw }
[dir="rtl"] .toast { transform: translateX(50%) }

@media (max-width: 1180px) {
  #till { grid-template-columns: minmax(0,1.05fr) minmax(0,.9fr) minmax(270px,.8fr) }
  .tile b { font-size: 15.5px } .act { font-size: 18px }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } }

/* ── reports (2026-11-14) ── */
.rp { display: grid; gap: 16px }
.rp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.rp-seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 2px; flex-wrap: wrap }
.rp-seg button { padding: 9px 14px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--muted); white-space: nowrap }
.rp-seg button.on { background: var(--green); color: #fff; box-shadow: 0 6px 14px -8px rgba(15,61,46,.6) }
.rp-range { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; color: var(--muted) }
.rp-range svg { width: 18px; height: 18px }
.rp-range input { border: 0; background: transparent; font-weight: 700; font-size: 14px; padding: 4px 2px; min-width: 0; min-height: 0 }
.rp-pdf { display: inline-flex; align-items: center; gap: 8px }
.rp-pdf svg { width: 18px; height: 18px }
.rp-cmp { margin: -6px 0 0; color: var(--muted); font-size: 13px; font-weight: 700 }
.rp-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none }
.rp-tabs button { padding: 10px 14px; font-weight: 800; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap }
.rp-tabs button.on { color: var(--ink); border-bottom-color: var(--green2) }
.rp-k { position: relative; overflow: hidden; align-content: start }
.rp-k > b { font: 400 30px/1.05 'Archivo Black', sans-serif }
.rp-kf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1 }
.rp-kf small { color: var(--muted); font-weight: 700; font-size: 12.5px }
.rp-d { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap }
.rp-d.up { background: var(--tint-green); color: var(--green-ink) }
.rp-d.down { background: var(--tint-red); color: var(--red-ink) }
.rp-d.eq, .rp-d.new { background: var(--soft); color: var(--muted) }
.rp-k.y .rp-d.up { background: rgba(255,255,255,.55) }
.rp-k.y .rp-kf small { color: #3d3a20 }
.rp-spark { position: absolute; inset-inline-end: 16px; top: 18px; width: 34%; height: 34px; opacity: .9 }
.rp-k > span { max-width: 60% }
.rp-spark .a { fill: rgba(30,138,76,.12) }
.rp-spark .l { fill: none; stroke: #1E8A4C; stroke-width: 2; vector-effect: non-scaling-stroke }
.rp-k.y .rp-spark .a { fill: rgba(15,61,46,.1) }
.rp-k.y .rp-spark .l { stroke: var(--green) }
.rp-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden }
.rp-strip > div { padding: 14px 18px; display: grid; gap: 2px; border-inline-start: 1px solid var(--line) }
.rp-strip > div:first-child { border-inline-start: 0 }
.rp-strip span { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em }
.rp-strip b { font: 400 20px/1.2 'Archivo Black', sans-serif }
.rp-strip small { color: var(--muted); font-weight: 700; font-size: 12.5px }
.rp-h { display: flex; align-items: center; gap: 12px }
.rp-h h3 { margin: 0 }
.rp-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted) }
.rp-leg i { width: 18px; height: 0; border-top: 3px solid #1E8A4C; border-radius: 2px }
.rp-leg i.prev { border-top: 2px dashed #9AA39E }
.rp-line { width: 100%; height: auto; display: block; overflow: visible }
.rp-line .g { stroke: #EEEEE8; stroke-width: 1 }
.rp-line .yl { font-weight: 700; font-size: 12px; fill: #8A8F88; text-anchor: end }
.rp-line .xl { font-weight: 700; font-size: 12px; fill: #8A8F88; text-anchor: middle }
.rp-line .area { fill: url(#rpg) }
.rp-line .cur { fill: none; stroke: #1E8A4C; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round }
.rp-line .prev { fill: none; stroke: #A7AEA8; stroke-width: 2; stroke-dasharray: 6 6 }
.rp-line .dot { fill: #fff; stroke: #1E8A4C; stroke-width: 2 }
.rp-line .hit rect { fill: transparent }
.rp-line .hit line { stroke: #0F3D2E; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0 }
.rp-line .hit circle { fill: #FFD23F; stroke: #0F3D2E; stroke-width: 2; opacity: 0 }
.rp-line .hit:hover line, .rp-line .hit:hover circle { opacity: 1 }
.rp-grid3 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start }
.rp-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start }
.rp-don { display: flex; align-items: center; gap: 18px }
.rp-donut { width: 132px; height: 132px; flex: none; transform: rotate(-90deg) }
.rp-donut circle { fill: none; stroke-width: 22 }
.rp-donut .bg { stroke: #EEEEE8 }
.rp-dl { display: grid; gap: 10px; flex: 1; min-width: 0 }
.rp-dl div { display: grid; grid-template-columns: 14px 1fr auto; column-gap: 8px; align-items: center }
.rp-dl .sw { width: 12px; height: 12px; border-radius: 4px }
.rp-dl .sw.g { background: #1E8A4C }
.rp-dl .sw.k { background: #111 }
.rp-dl span { font-weight: 800 }
.rp-dl b { font: 400 17px 'Archivo Black', sans-serif }
.rp-dl small { grid-column: 2 / 4; color: var(--muted); font-weight: 700; font-size: 12.5px }
table.rp-t th { background: var(--soft2) }
table.rp-t tr.tot td { font-weight: 800; background: var(--soft2); border-bottom: 0 }
table.rp-t td.rk, table.rp-t th.rk { width: 36px; color: var(--muted) }
table.rp-t td.sh { min-width: 120px }
table.rp-t td.sh small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; margin-top: 3px }
.rp-tablecard { padding: 0; overflow: hidden }
.rp-tablecard table.t { border-radius: 0 }
.rp-mp { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 800; font-size: 13px; background: var(--soft) }
.rp-mp.hi { background: var(--tint-green); color: var(--green-ink) }
.rp-mp.mid { background: var(--tint-yellow); color: #7A5B00 }
.rp-mp.lo { background: var(--tint-red); color: var(--red-ink) }
.rp-hbar { display: block; height: 8px; background: #EEEEE8; border-radius: 99px; overflow: hidden }
.rp-hbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1E8A4C, #8CC63F); border-radius: 99px; transition: width .5s ease }
.rp-bars { display: grid; gap: 12px }
.rp-bars > div { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: baseline }
.rp-bars .nm { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.rp-bars .rp-hbar { grid-column: 1 / 3 }
.rp-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px }
.rp-top li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid #F0F0EA }
.rp-top li:last-child { border-bottom: 0 }
.rp-top .rk { width: 28px; height: 28px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; font-weight: 800; font-size: 13px }
.rp-top li:nth-child(1) .rk { background: var(--yellow) }
.rp-top li:nth-child(2) .rk, .rp-top li:nth-child(3) .rk { background: var(--tint-green); color: var(--green-ink) }
.rp-top .nm { display: grid; gap: 4px; min-width: 0 }
.rp-top .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.rp-top .nm small { color: var(--muted); font-weight: 700; font-size: 12.5px }
.rp-heat { display: grid; grid-template-columns: 34px repeat(16, minmax(0, 1fr)); gap: 4px; align-items: center }
.rp-heat .hh { font-size: 11px; font-weight: 800; color: #8A8F88; text-align: center }
.rp-heat .hd { font-size: 12px; font-weight: 800; color: var(--muted) }
.rp-heat .c, .rp-heatleg .c { display: block; aspect-ratio: 1.25; border-radius: 5px; background: #F0F0EA }
.rp-heat .c[data-l="1"], .rp-heatleg .c[data-l="1"] { background: #D9F0DF }
.rp-heat .c[data-l="2"], .rp-heatleg .c[data-l="2"] { background: #A9DDB6 }
.rp-heat .c[data-l="3"], .rp-heatleg .c[data-l="3"] { background: #5FBF7C }
.rp-heat .c[data-l="4"], .rp-heatleg .c[data-l="4"] { background: #1E8A4C }
.rp-heat .c[data-l="5"], .rp-heatleg .c[data-l="5"] { background: #0F3D2E }
.rp-heatleg { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 12.5px; font-weight: 800; color: var(--muted) }
.rp-heatleg .c { width: 16px }
.rp-heatleg b { color: var(--ink); text-align: end }
.av.sm { width: 28px; height: 28px; font-size: 13px; display: inline-grid; vertical-align: middle }
@media (max-width: 1280px) { .rp-grid3 { grid-template-columns: 1fr 1fr } .rp-grid3 > :last-child { grid-column: 1 / -1 } }
@media (max-width: 1100px) { .rp-grid2 { grid-template-columns: 1fr } .rp-strip { grid-template-columns: 1fr 1fr } }

.warncard { background: var(--tint-yellow); border-color: #F2D46B }
.warncard b { font-size: 17px }

.agebox { display: grid; gap: 14px; justify-items: center; text-align: center }
.agebox p { margin: 0; font-size: 18px; font-weight: 700; max-width: 520px }
.agebadge { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #D2381F; color: #fff; font: 400 34px/1 "Archivo Black", sans-serif; box-shadow: 0 0 0 8px #FBE3DE }
.agebox .f { width: 100%; max-width: 360px }

/* customer-screen slides (admin) */
.adprev { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0F3D2E; color: #fff; display: grid; place-items: center }
.adprev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.adprev .cap { position: relative; display: grid; gap: 4px; text-align: center; padding: 14px }
.adprev.img .cap { position: absolute; inset-inline: 0; bottom: 0; text-align: start; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 30px 16px 14px }
.adprev b { font: 400 22px/1.1 "Archivo Black", sans-serif; color: var(--yellow) }
.adprev.img b { color: #fff }
.adsitem img, .adsitem .adtxt { width: 72px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: #0F3D2E; color: var(--yellow); display: grid; place-items: center; font-weight: 800 }

/* tills in the shop */
.tillcard { gap: 16px }
.tillno { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); font: 400 18px/1 "Archivo Black", sans-serif; flex: none }
.tillno.k1 { background: var(--green); color: var(--yellow) }
.tillrow { display: flex; align-items: center; gap: 12px }
.tillrow.off { opacity: .55 }
.lancode { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--tint-yellow); border: 1px solid #F2D46B; border-radius: 16px; padding: 18px }
.lancode > div { display: grid; gap: 4px }
.lancode span { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em }
.lancode b { font: 400 30px/1.1 "Archivo Black", sans-serif }
.lancode b.big { font-size: 44px; letter-spacing: .06em }
.lancode .note { grid-column: 1 / -1; margin: 0 }
.kv { font-weight: 700; color: var(--muted) }

/* loss and theft control (admin-control.js) */
.rp-k.r { background: var(--tint-red); border-color: #F3C3B8 }
.rp-k.r > b { color: var(--red) }
.rp-strip b.neg { color: var(--red) }
.ct-top { align-items: start }
.ct-al { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.ct-al li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--soft2); border: 1px solid var(--line) }
.ct-al li > i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none }
.ct-al li.warn > i { background: var(--amber) } .ct-al li.alert > i { background: var(--red) } .ct-al li.info > i { background: var(--green2) }
.ct-al li.alert { background: var(--tint-red); border-color: #F3C3B8 }
.ct-al b { display: block; font-size: 15px } .ct-al small { color: var(--muted); font-size: 13px }
.tag.ct-lv.warn { background: var(--amber); color: var(--on-y) } .tag.ct-lv.alert { background: var(--red); color: #fff } .tag.ct-lv.info { background: var(--soft) }
.ct-ok { margin: 4px 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--tint-green); color: var(--green); font-weight: 800 }
.ct-how { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; color: var(--muted); font-size: 14px }
.ct-t td small { display: block; color: var(--muted); font-size: 12px }
.ct-t td.flag, .rp-t td.flag { background: var(--tint-red); color: var(--red); font-weight: 800 }
.ct-k { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; margin-inline-end: 8px; background: var(--soft); font-weight: 900 }
.ct-k.no_sale { background: var(--tint-yellow) } .ct-k.void_receipt { background: var(--tint-red); color: var(--red) }
.tscroll { overflow-x: auto }
.ct .rp-k > span { max-width: none }
.ct-al li b { color: var(--ink) }
.ct-al .tag, .ct-t .tag { white-space: nowrap }

/* promotions: product search results (admin-promo.js) */
.pr-results { display: grid; gap: 6px; max-height: 320px; overflow-y: auto }
.pr-hit { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: start; cursor: pointer }
.pr-hit:hover { border-color: var(--green2) }
.pr-hit small { color: var(--muted) }
.pr-hit .plus { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green2); color: #fff; font-weight: 900; font-size: 20px; flex: none }
.pr-hit.in { background: var(--tint-green) } .pr-hit.in .plus { background: var(--green) }
.pr-hit .grow { flex: 1; min-width: 0 }
.pr-hit > b { white-space: nowrap }

/* several open receipts */
.th .tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
.th .tab { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px; border-radius: 12px; background: var(--soft); font-weight: 800; font-size: 18px }
.th .tab small { font-size: 16px; color: var(--muted) }
.th .tab.on { background: var(--blk); color: var(--yellow) } .th .tab.on small { color: #fff }
.th .tab.add { width: 54px; justify-content: center; background: var(--green2); color: #fff; font-size: 28px; padding: 0 }
/* loose goods: big photo keys */
.cat.loose { background: var(--tint-green); color: var(--green) } .cat.loose.on { background: var(--green); color: var(--yellow) }
.tiles.loose { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: auto }
.tiles.loose .tile.img { flex-direction: column; padding: 8px; min-height: 0 }
.tiles.loose .tile.img .ph { width: 100%; max-width: none; height: 104px }
.tiles.loose .tile.img .tx b { font-size: 17px }
small b.neg, td b.neg { color: var(--red) }

.dealcard { border: 2px dashed var(--amber); margin-bottom: 12px }
.chip2.deal { background: var(--tint-yellow) }

/* reports: busy times & staff */
.bzt { border-collapse: separate; border-spacing: 3px; width: 100% }
.bzt th { font-size: 12px; color: var(--muted); font-weight: 800; padding: 2px 4px; text-align: center }
.bzt tr th:first-child { text-align: start; padding-inline-end: 8px }
.bz { min-width: 38px; height: 44px; border-radius: 8px; text-align: center; vertical-align: middle; background: var(--tint-green); position: relative }
.bz b { display: block; font-size: 14px } .bz small { font-size: 11px; color: var(--muted) }
.bz.z { background: #F6F6F2 }
.bz[data-l="2"] { background: #CFE8D7 } .bz[data-l="3"] { background: #9FD3AF } .bz[data-l="4"] { background: #5FB57C; color: #fff } .bz[data-l="5"] { background: var(--green2); color: #fff }
.bz[data-l="4"] small, .bz[data-l="5"] small { color: #E7F4EC }
.bz.under { box-shadow: inset 0 0 0 3px var(--red) } .bz.over { box-shadow: inset 0 0 0 3px #3B6FD8 }
.bzleg { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted) }
.bzleg i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-inline-end: 6px; vertical-align: -2px; font-style: normal }
.bzleg i.bz-l { background: var(--green2) } .bzleg i.bz-u { box-shadow: inset 0 0 0 3px var(--red) } .bzleg i.bz-o { box-shadow: inset 0 0 0 3px #3B6FD8 } .bzleg i.sm { width: auto; font-size: 11px; font-weight: 800 }
.chip2.bzu { background: var(--tint-red); color: var(--red) } .chip2.bzo { background: #E6EEFC; color: #2C55B0 }
.ct-loss { border: 2px solid #F3C3B8 }
.rp-h .f.inline { display: flex; align-items: center; gap: 10px; margin: 0 }
.rp-h .f.inline input { width: 90px }

/* ── night mode (owner, 2026-11-15): the same screen in dark colours; set under Winkel & bon (auto = 19:00–07:00) ── */
:root[data-theme="dark"] {
  --page: #0D1210; --card: #171D1A; --soft: #222A26; --soft2: #1C2320; --soft3: #1A201D; --line: #2E3833;
  --ink: #EEF1EC; --muted: #A2AAA4; --blk: #050807;
  --tint-red: #3A1E19; --tint-green: #15301F; --tint-yellow: #352E14;
  --green-ink: #7FD69B; --red-ink: #FF9C87; --amber-ink: #F5C451; --shadow: rgba(0,0,0,.5);
  color-scheme: dark;
}
:root[data-theme="dark"] .sum, :root[data-theme="dark"] .act.free, :root[data-theme="dark"] .kpi.y, :root[data-theme="dark"] .rp-k.y,
:root[data-theme="dark"] .ps-l, :root[data-theme="dark"] .st.on, :root[data-theme="dark"] .code { color: #111 }
:root[data-theme="dark"] .scan input::placeholder { color: #6E7671 }
:root[data-theme="dark"] .scan { border-color: #3A4540 }
:root[data-theme="dark"] .act, :root[data-theme="dark"] .btn, :root[data-theme="dark"] .f input, :root[data-theme="dark"] .f select, :root[data-theme="dark"] .seg { border-color: #48534D }
:root[data-theme="dark"] .ln.sel { background: #3A3215 }
:root[data-theme="dark"] .tile.img .ph, :root[data-theme="dark"] .pr-hit { background-color: #fff }
:root[data-theme="dark"] .pr-hit { background: var(--card) }
:root[data-theme="dark"] img { filter: none }

/* the shop's own logo in the top bar (Winkel & bon) */
.tb .shoplogo { height: 40px; max-width: 150px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.92); padding: 3px 6px }
.lookgrid { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start }
.logobox { width: 220px; height: 120px; border: 2px dashed var(--line); border-radius: 14px; display: grid; place-items: center; background: var(--soft2); overflow: hidden }
.logobox img { max-width: 92%; max-height: 92%; object-fit: contain }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
.swatches button { width: 38px; height: 38px; border-radius: 10px; border: 3px solid transparent }
.swatches button.on { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--ink) }
.swatches input[type=color] { width: 46px; height: 40px; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: none }

/* ── motion ── */
.ln.fresh { animation: lnFresh .7s ease-out }
@keyframes lnFresh { 0% { background: var(--yellow) } 100% { } }
.fly { position: fixed; z-index: 30; width: 64px; height: 64px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: none; overflow: hidden; display: grid; place-items: center }
.fly:empty { background: var(--green2) }
.fly img { width: 100%; height: 100%; object-fit: contain }
.tile:active, .k:active, .act:active, .pb:active, .cat:active { transform: scale(.97) }
.tile, .k, .act, .pb, .cat { transition: transform .08s ease-out, filter .15s }
.done > div { animation: doneIn .38s cubic-bezier(.2,.8,.3,1.2) }
@keyframes doneIn { from { transform: scale(.92); opacity: 0 } to { transform: none; opacity: 1 } }
.done .okmark { width: 120px; height: 120px; margin-bottom: 8px }
.done .okmark circle { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-dasharray: 330; stroke-dashoffset: 330; animation: okDraw .5s ease-out forwards }
.done .okmark path { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; stroke-dashoffset: 90; animation: okDraw .35s .38s ease-out forwards }
@keyframes okDraw { to { stroke-dashoffset: 0 } }
.done .chgbig { animation: chgIn .5s .25s both cubic-bezier(.2,.8,.3,1.3) }
@keyframes chgIn { from { transform: translateY(18px) scale(.9); opacity: 0 } to { transform: none; opacity: 1 } }
.ov .sheet { animation: sheetIn .22s ease-out }
@keyframes sheetIn { from { transform: translateY(14px); opacity: 0 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important } .done .okmark circle, .done .okmark path { stroke-dashoffset: 0 } }

/* category keys with a picture */
.cat.pic { display: inline-flex; align-items: center; gap: 8px; padding-inline-start: 6px }
.cat.pic img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #fff; flex: none }
.catpic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; flex: none }
.catbox { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--soft); flex: none }
.catbox img { width: 100%; height: 100%; object-fit: cover } .catbox img.dim { opacity: .55 } .catbox svg { width: 30px; height: 30px; color: var(--muted) }

/* ── screen sizes (owner, 2026-11-15): a small 15" till (1024×768), wide screens, and a standing touch screen ── */
@media (max-width: 1280px), (max-height: 780px) {
  #till { gap: 8px; padding: 8px; grid-template-rows: 54px 74px minmax(0, 1fr) 164px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(250px, .74fr) }
  .brand { font-size: 18px } .tb { gap: 10px } .tb .shoplogo { height: 32px } .chip { padding: 6px 10px; font-size: 13.5px }
  .scan input { font-size: 21px } .scan svg { width: 30px }
  .sum .big { font-size: 38px } .sum { padding: 6px 16px }
  .k { font-size: 23px; min-height: 46px } .keys { gap: 6px; padding: 8px }
  .act { font-size: 18px; gap: 8px } .act svg { width: 27px; height: 27px }
  .pb { font-size: 21px } .pb.mix { font-size: 16px }
  .tile { min-height: 74px; padding: 9px } .tile.img .tx b { font-size: 14.5px } .tiles { grid-auto-rows: minmax(74px, auto) }
  .ln .nm { font-size: 16px } .th { padding: 10px 12px 6px }
  .cat { padding: 8px 12px; font-size: 14px } .cat.pic img { width: 24px; height: 24px }
}
@media (max-width: 1060px) { #till .tb .shop { display: none } }
@media (min-width: 1700px) and (orientation: landscape) { .tiles { grid-template-columns: repeat(3, minmax(0,1fr)) } }
@media (min-width: 2300px) and (orientation: landscape) { .tiles { grid-template-columns: repeat(4, minmax(0,1fr)) } #till { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(340px, .7fr) } }
/* a standing (portrait) screen: the receipt on top, tiles and keypad under it, the pay buttons at the bottom within reach */
@media (orientation: portrait) {
  #till { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: 62px 84px minmax(0, 1fr) minmax(0, 1.05fr) auto 104px;
    grid-template-areas: "tb tb" "scan sum" "ticket ticket" "quick keys" "acts acts" "pay pay" }
  .acts { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto } .acts > .act, .acts > .act:nth-child(n+5) { grid-column: auto } .act { flex-direction: column; min-height: 86px; font-size: 16px }
  .tiles { grid-template-columns: repeat(2, minmax(0,1fr)) }
  #pay { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto }
  .lookgrid { grid-template-columns: 1fr }
}
.cat.loose { background: var(--tint-green); color: var(--green-ink) }
:root[data-theme="dark"] .tile i { color: #111 }
/* tiles: the kg badge in the corner so the name keeps its room; no word broken in the middle */
.tile.img i { position: absolute; top: 7px; inset-inline-end: 7px; align-self: auto }
.tile.img .tx b { overflow-wrap: normal; word-break: normal; hyphens: auto }
.tile.img .tx { justify-content: center; gap: 6px }
.pb { gap: 2px; overflow: hidden } .pb small { line-height: 1 }
@media (max-width: 1280px), (max-height: 780px) {
  .tile.img .ph { width: 26%; max-width: 64px } .tile.img { gap: 8px; padding: 7px } .tile.img .tx b { font-size: 14px }
  .act.free { font-size: 16px } .act.free b { font-size: 19px } .act.free .eur { font-size: 23px }
}
@media (orientation: portrait) { .tile.img .ph { max-width: 72px } }
.tile.img:has(i) .tx { padding-inline-end: 30px }

/* the QR preview in Uiterlijk */
.qrprev { display: flex; align-items: center; gap: 12px; min-height: 40px }
.qrprev img { width: 110px; height: 110px; border-radius: 8px; background: #fff; padding: 4px; flex: none }
.qrprev small { word-break: break-all }
.qrprev.bad small { color: var(--red-ink) }

/* blocked / expired: the sale screen is locked (owner, 2026-11-16) */
.lockout { position: absolute; inset: 88px 12px 12px; z-index: 30; display: grid; place-items: center; border-radius: var(--r);
  background: color-mix(in srgb, var(--bg, #F4F6F5) 82%, transparent); backdrop-filter: blur(6px) }
.lock-card { max-width: 560px; margin: 16px; padding: 34px 36px; text-align: center; background: var(--card, #fff); color: var(--ink, #111);
  border: 2px solid #B42318; border-radius: 22px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.45) }
.lock-ico { display: inline-grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: #FEE4E2; color: #B42318; margin-bottom: 14px }
.lock-ico svg { width: 40px; height: 40px }
.lock-card h2 { margin: 0 0 10px; font-size: 1.7rem }
.lock-card p { margin: 0 0 22px; font-size: 1.05rem; line-height: 1.55; opacity: .8 }
.lock-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center }
.lock-btns .btn { min-height: 52px; padding: 0 20px; font-size: 1rem }
.lock-reason { padding: 12px 16px; border-radius: 12px; background: #FEF3F2; color: #7A271A; opacity: 1 !important; font-size: 1.15rem !important }

/* Boekhouding tab (owner, 2026-11-16) */
.bk { display: grid; gap: 14px }
.bk-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.bk-k { display: grid; gap: 2px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card) }
.bk-k.g { background: var(--brand); color: #fff; border-color: var(--brand) }
.bk-k small { font-weight: 700; opacity: .75 } .bk-k b { font: 400 26px/1.1 'Archivo Black', sans-serif } .bk-k span { font-size: 13px; opacity: .75 }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 14px; align-items: start }
.bk-grid > div { display: grid; gap: 14px; min-width: 0 }
.bk-qs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px }
.bk-q { padding: 12px; border: 1.5px solid var(--line, #E2E5E3); border-radius: 12px; min-width: 0 }
.bk-q.now { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 138, 76, .12) }
.bk-q dl { display: grid; gap: 5px; margin: 8px 0 0 } .bk-q dl div { display: flex; justify-content: space-between; gap: 6px; font-size: 13px }
.bk-q dt { opacity: .7 } .bk-q dd { margin: 0; white-space: nowrap }
.bk-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 8px }
.bk-t th, .bk-t td { padding: 9px 8px; border-bottom: 1px solid var(--line, #E2E5E3); text-align: start; font-size: 14px }
.bk-t .r { text-align: end } .bk-t thead th { font-size: 12.5px; opacity: .7 } .bk-t tfoot th { border-top: 2px solid var(--ink); border-bottom: 0 }
.bk-t tr.fut td { opacity: .45 } .bk-t td small { opacity: .65 } .bk-t .rp-hbar { display: block; max-width: 140px; margin-top: 5px }
.bk-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.bk-files .f, .bk-acc .f { display: grid; gap: 4px; margin-top: 10px }
.bk-files select, .bk-acc input, .bk-acc select { min-height: 46px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 12px; font: inherit; background: var(--card); color: inherit }
@media (max-width: 1100px) { .bk-grid { grid-template-columns: 1fr } .bk-qs { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* the cash drawer in the top bar, always in sight (owner, 2026-11-16) */
.tb .drawerbtn { display: inline-flex; align-items: center; gap: 8px; background: #FFD23F; color: #1E1A06; border: 0; font-weight: 800; cursor: pointer }
.tb .drawerbtn svg { width: 20px; height: 20px }
.tb .drawerbtn:active { transform: scale(.96) }
@media (max-width: 900px) { .tb .drawerbtn span { display: none } }
/* narrower screens: icon above the word, so long words (Verwijderen, Korting) are never cut off */
@media (max-width: 1440px) and (orientation: landscape) {
  .acts > .act { flex-direction: column; gap: 4px; font-size: 15.5px; padding: 4px 2px } .acts > .act svg { width: 26px; height: 26px }
  .acts > .act span { line-height: 1.05; white-space: nowrap; letter-spacing: -.01em }
  .act.free { flex-direction: row !important; font-size: 15px } .act.free b { font-size: 18px } .act.free .eur { font-size: 22px }
}

.theftsw { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border: 1.5px solid var(--line, #E2E5E3); border-radius: 12px; cursor: pointer }
.theftsw input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--brand) }
.theftsw span { display: grid; gap: 2px } .theftsw small { opacity: .7 }

.adsmode .seg.wide { margin: 8px 0 }
.vidlist { display: grid; gap: 6px; margin: 8px 0 12px }
.viditem { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--line, #E2E5E3); border-radius: 10px }
.viditem small { opacity: .7 }

/* hidden service entrance on the login screen (Alt + click) */
.svcbox { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 50; display: grid; gap: 8px; width: 320px; padding: 16px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); box-shadow: 0 18px 40px -18px rgba(0,0,0,.45) }
.svcbox small { opacity: .7 }
.svcbox input { min-height: 52px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 12px; font: 400 26px/1 'Archivo Black', sans-serif; letter-spacing: .2em; text-align: center; background: var(--card); color: inherit }

/* service code dialog: centred like every other dialog, PIN-style dots and keypad */
.svc { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 4px 4px 2px }
.svc-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tint-green, #E7F6EC); color: var(--brand, #0F3D2E) }
.svc-ico svg { width: 32px; height: 32px }
.svc .note { margin: 0; max-width: 34ch }
.svc-dots { display: flex; gap: 12px; justify-content: center; min-height: 22px }
.svc-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: transparent }
.svc-dots i.f { background: var(--ink) }
.svc .msg { min-height: 1.3em; margin: 0; color: #B42318; font-weight: 700 }
.svc-pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px; justify-content: center }
.svc-pad .k { min-height: 64px; font-size: 26px }
.sheet:focus { outline: none }

/* ---- Hulp (questions to the Smart Kassa team) ---- */
.anav-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-inline-start: auto; padding: 0 6px; border-radius: 11px; background: var(--yellow); color: #0F3D2E; font: 800 12px/1 inherit; font-style: normal }
.chip.me .anav-n, .menu-grid .anav-n { margin-inline-start: 8px }
.hp { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 16px; align-items: start }
.hp-list { padding: 8px; gap: 4px; max-height: 66vh; overflow: auto }
.hp-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer }
.hp-item span { display: grid; gap: 4px; min-width: 0 }
.hp-item b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.hp-item small { opacity: .65 }
.hp-item:hover { background: var(--tint-g, rgba(30,138,76,.08)) }
.hp-item.on { background: var(--tint-g, rgba(30,138,76,.12)); box-shadow: inset 3px 0 0 var(--yellow) }
.hp-new { padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: #0F3D2E; font-style: normal; font-weight: 800; font-size: 13px; white-space: nowrap }
.hp-st { font-style: normal; font-size: 13px; opacity: .7; white-space: nowrap }
.hp-thread { display: grid; gap: 12px }
.hp-thread h3 { margin: 0; font-size: 20px }
.hp-msgs { display: grid; gap: 10px; max-height: 44vh; overflow: auto; padding: 2px }
.hp-msg { max-width: 85%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line) }
.hp-msg.me { justify-self: start; background: var(--card) }
.hp-msg.team { justify-self: end; background: var(--tint-g, rgba(30,138,76,.1)); border-color: transparent }
.hp-msg small { opacity: .7 }
.hp-msg p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere }
.hp textarea, .hp input { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: inherit; resize: vertical }
.hp-btns { display: flex; justify-content: space-between; gap: 10px }
.hp-btns .btn { min-height: 56px; padding: 0 26px; font-size: 17px }
@media (max-width: 900px) { .hp { grid-template-columns: 1fr } }

/* ---- messages from Beheer (2026-11-16) ---- */
.msg-bars { position: fixed; inset-inline: 50% auto; top: 12px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(980px, calc(100vw - 32px)) }
[dir=rtl] .msg-bars { transform: translateX(50%) }
.msg-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 20px; border-radius: 14px; background: var(--card); color: var(--ink, inherit); box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); border-inline-start: 8px solid var(--mc) }
.msg-bar .mi { width: 30px; height: 30px; flex: none; color: var(--mc) }
.msg-bar div { flex: 1; display: grid; gap: 2px; min-width: 0 }
.msg-bar b { font-size: 18px }
.msg-bar p { margin: 0; font-size: 16px; opacity: .85; overflow-wrap: anywhere; white-space: pre-wrap }
.msg-bar .btn { min-height: 52px; padding: 0 22px; font-size: 17px }
.msg-info { --mc: #1E8A4C } .msg-warn { --mc: #E6A700 } .msg-urgent { --mc: #D92D20 }
.msg-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(8, 24, 18, .7) }
.msg-card { width: min(640px, 100%); display: grid; gap: 14px; padding: 30px; border-radius: 22px; background: var(--card); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); border-top: 10px solid var(--mc) }
.msg-card small { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mc) }
.msg-card h2 { margin: 0; font-size: 30px; line-height: 1.2 }
.msg-card p { margin: 0; font-size: 19px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere }
.msg-card .btn { min-height: 64px; font-size: 20px; margin-top: 6px }
.msg-card small { display: flex; align-items: center; gap: 8px }
.msg-card small .mi { width: 24px; height: 24px; flex: none }
.lang-grid { grid-template-columns: repeat(3, 1fr) }
.lang-grid .btn { justify-content: center; font-size: 20px }
.lang-grid .btn[lang=ar] { font-family: Tajawal, sans-serif }
