@font-face { font-family: Rubik; src: url(/fonts/rubik-latin.woff2) format("woff2"); font-weight: 300 900; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: Rubik; src: url(/fonts/rubik-arabic.woff2) format("woff2"); font-weight: 300 900; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
:root { --bg: #F1F5F9; --card: #FFFFFF; --text: #0F172A; --muted: #475569; --primary: #047857; --promo: #EA580C; --danger: #DC2626; --line: #E2E8F0; --radius: 16px; }
* { box-sizing: border-box; }
[x-cloak], [hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: Rubik, system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.4; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; border-radius: 12px; min-height: 56px; padding: 0 16px; background: var(--card); transition: transform .1s; touch-action: manipulation; }
button:active { transform: scale(.97); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
input { font: inherit; min-height: 56px; padding: 0 16px; border: 2px solid var(--line); border-radius: 12px; width: 100%; background: var(--card); }
.btn-primary { background: var(--primary); color: #fff; font-weight: 700; }
.btn-danger { background: var(--danger); color: #fff; }
.num { font-variant-numeric: tabular-nums; }
.error { color: var(--danger); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.login { display: grid; place-items: center; height: 100%; }
.login form { background: var(--card); padding: 32px; border-radius: var(--radius); width: min(420px, 92vw); display: grid; gap: 16px; }
.login h1 { margin: 0; color: var(--primary); }
.login .remember { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.login .admin-link { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.login .remember input { width: 24px; min-height: 24px; height: 24px; accent-color: var(--primary); }
/* ---------- POS layout (≥1024px, full screen) */
.pos { display: grid; grid-template: "bar bar bar" auto "cats grid cart" 1fr / 180px 1fr 380px; height: 100vh; overflow: hidden; gap: 8px; padding: 8px; }
.bar { grid-area: bar; display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: var(--radius); padding: 8px 12px; }
.brand { color: var(--primary); font-size: 22px; padding: 0 8px; }
.customer { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.customer button, .bar > button, .lang { background: var(--bg); display: inline-flex; align-items: center; gap: 6px; }
.lang { min-height: 56px; min-width: 56px; justify-content: center; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 700; }
.barbers { display: flex; gap: 8px; overflow-x: auto; flex: 1; }
.barber { display: flex; align-items: center; gap: 6px; background: var(--bg); white-space: nowrap; }
.barber img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.barber.on { background: var(--primary); color: #fff; }
.barber.off, .tile.off { opacity: .55; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #94A3B8; flex: none; }
.dot.duty { background: #22C55E; }
.search { display: flex; align-items: center; gap: 6px; width: 280px; }
.cats { grid-area: cats; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.cats button { text-align: start; font-weight: 600; font-size: 18px; min-height: 64px; display: flex; align-items: center; gap: 8px; }
.cats button img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.cats button.on { background: var(--primary); color: #fff; }
.cats .promo { color: var(--promo); }
.cats .promo.on { background: var(--promo); color: #fff; }
.grid { grid-area: grid; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-auto-rows: max-content; gap: 12px; overflow-y: auto; align-content: start; }
.card { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: start; padding: 0 0 12px; overflow: hidden; border-radius: var(--radius); box-shadow: 0 1px 2px rgb(15 23 42 / .08); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); }
.card .name { font-weight: 700; font-size: 17px; padding: 8px 12px 0; }
.card .alt { color: var(--muted); font-size: 14px; padding: 0 12px; min-height: 1.2em; }
.card .price { padding: 4px 12px 0; display: flex; gap: 8px; align-items: baseline; }
.card .price b { font-size: 19px; color: var(--primary); }
.card .price s { color: var(--muted); font-size: 14px; }
.card .save { color: var(--promo); font-weight: 700; padding: 0 12px; }
.card .badge { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--promo); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.card.bundle { outline: 3px solid var(--promo); outline-offset: -3px; }
.card.soldout { opacity: .5; }
.soldout-tag { position: absolute; top: 40%; inset-inline: 0; text-align: center; background: rgb(15 23 42 / .75); color: #fff; font-weight: 700; padding: 6px; }
.cart { grid-area: cart; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 12px; min-height: 0; }
.cart h2 { margin: 0 0 8px; font-size: 16px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.lines { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.lines li { border-bottom: 1px solid var(--line); padding: 8px 0; display: grid; gap: 6px; }
.line-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.chip { min-height: 40px; background: var(--bg); justify-self: start; font-size: 14px; }
.promo-line { display: flex; justify-content: space-between; color: var(--promo); font-size: 14px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { background: var(--bg); min-width: 56px; padding: 0; display: grid; place-items: center; }
.qty span { min-width: 32px; text-align: center; font-weight: 700; font-size: 18px; }
.qty .remove { margin-inline-start: auto; color: var(--danger); }
.totals { border-top: 2px solid var(--line); padding-top: 8px; display: grid; gap: 4px; }
.totals > div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 22px; font-weight: 800; margin-top: 4px; }
.coupon { background: var(--bg); color: var(--promo); display: flex; align-items: center; gap: 6px; min-height: 48px; }
.actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 8px; }
.checkout { min-height: 72px; font-size: 20px; }
/* delivery-app order: a calm entry button, then a loud tag so the cashier never mistakes it for an in-store sale */
.dlv-btn, .dlv-tag { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; margin-bottom: 8px; font-weight: 600; }
.dlv-btn { background: var(--bg); color: var(--muted); border: 2px dashed var(--line); }
.dlv-tag { background: #FEF3C7; color: #92400E; border: 2px solid #F59E0B; font-size: 18px; }
.tile.on { background: var(--primary); color: #fff; }
.hint { margin: 0; color: var(--muted); }
.warn { margin: 0; padding: 12px; border-radius: 12px; background: #FEF3C7; color: #92400E; font-weight: 600; }
.app-total { font-size: 28px; font-weight: 700; min-height: 60px; text-align: center; }
/* ---------- modifiers (INFESTO-004 A1) */
.mods { color: var(--muted); font-size: 14px; }
.mods-modal { width: min(680px, 96vw); }
.modset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.modset legend { display: flex; align-items: center; gap: 8px; padding: 0 0 6px; font-size: 18px; }
.modset .req { background: #FEE2E2; color: #991B1B; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.mod-tile { flex-direction: column; gap: 2px; min-height: 64px; }
.mod-tile small { font-size: 14px; font-weight: 600; opacity: .85; direction: ltr; unicode-bidi: isolate; }
@media (min-width: 900px) { .mods-modal .tiles { grid-template-columns: repeat(3, 1fr); } }
/* ---------- returns */
.refund { width: min(720px, 96vw); }
.rf-find { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.rf-find label { display: grid; gap: 4px; font-weight: 600; }
.rf-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg); border-radius: 12px; padding: 8px 12px; }
.rf-line.off { opacity: .55; }
.rf-line .qty button { background: var(--card); }
.check { display: flex !important; align-items: center; gap: 12px; min-height: 48px; }
.check input { width: 28px; min-height: 28px; height: 28px; accent-color: var(--primary); }
/* ---------- modals */
.scrim { position: fixed; inset: 0; background: rgb(15 23 42 / .5); display: grid; place-items: center; z-index: 10; }
.modal { position: relative; background: var(--card); border-radius: var(--radius); padding: 24px; width: min(560px, 94vw); max-height: 92vh; overflow-y: auto; display: grid; gap: 12px; }
.modal h2 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { background: var(--bg); min-height: 72px; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; justify-content: center; }
.rows { display: grid; gap: 8px; }
.row { background: var(--bg); display: flex; justify-content: space-between; gap: 12px; text-align: start; min-height: 64px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 600; }
.pay { width: min(860px, 96vw); }
.close { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--bg); min-width: 56px; }
.due-label { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.due { margin: 0; font-size: 44px; font-weight: 800; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.methods button { min-height: 80px; font-size: 20px; font-weight: 700; background: var(--bg); }
.pay-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.payrow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; background: var(--bg); border-radius: 12px; padding: 8px; border: 2px solid transparent; }
.payrow.on { border-color: var(--primary); }
.payrow input { grid-column: 1 / -1; min-height: 48px; }
.payrow .remove { background: var(--card); color: var(--danger); min-width: 48px; min-height: 48px; padding: 0; }
.sum { display: flex; justify-content: space-between; font-size: 20px; }
.change { color: var(--primary); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.quick button { background: #ECFDF5; font-weight: 700; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keys button { background: var(--bg); font-size: 22px; font-weight: 700; min-height: 64px; }
.complete { min-height: 80px; font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.done { text-align: center; justify-items: center; }
.done .tick { width: 80px; height: 80px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.done .tick svg { width: 44px; height: 44px; }
.done .actions { width: 100%; grid-template-columns: 1fr 1fr; }
.done .actions button { min-height: 72px; font-size: 18px; }
@media (max-width: 1279px) { .pos { grid-template-columns: 140px 1fr 340px; } .search { width: 200px; } .customer span { display: none; } }
/* ---------- polish from the Task 6 browser check */
.bar { flex-wrap: wrap; }
.barbers { order: 9; flex-basis: 100%; }
.card img[src$="placeholder.svg"] { object-fit: contain; padding: 22%; }
.pay-body .rows { align-content: start; }
.actions button:not(.btn-primary), .done .actions button:not(.btn-primary) { background: var(--bg); }
/* ---------- payment method icons */
.methods button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.methods button svg { width: 34px; height: 34px; color: var(--primary); }
.pm-logo { height: 34px; max-width: 90%; object-fit: contain; }
/* ---------- bakery tablet screen (/bakery) */
.bk { display: grid; grid-template-rows: auto auto auto 1fr; height: 100vh; gap: 8px; padding: 8px; overflow: hidden; }
.bk-day { color: var(--muted); }
.bk-tabs { display: flex; gap: 8px; flex: 1; justify-content: center; }
.bk-tabs button { background: var(--bg); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-width: 120px; justify-content: center; }
.bk-tabs button.on { background: var(--primary); color: #fff; }
.bk-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); background: #FEF3C7; color: #92400E; font-weight: 600; border: 2px solid #F59E0B; }
.bk-banner svg { flex: none; }
.bk-error { margin: 0; padding: 0 8px; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; overflow-y: auto; align-content: start; }
.bk-tile { background: var(--card); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; border-top: 6px solid var(--primary); box-shadow: 0 1px 2px rgb(15 23 42 / .08); }
.bk-tile.low { border-top-color: #F59E0B; }
.bk-tile.out { border-top-color: var(--danger); }
.bk-tile img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--bg); }
.bk-tile img[src$="placeholder.svg"] { object-fit: contain; padding: 14px; }
.bk-tile h2 { margin: 0; font-size: 20px; }
.bk-tile dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0; text-align: center; }
.bk-tile dt { font-size: 13px; color: var(--muted); }
.bk-tile dd { margin: 0; font-size: 22px; font-weight: 700; }
.bk-tile .shelf dd { color: var(--primary); }
.bk-tile.out .shelf dd { color: var(--danger); }
.bk-old { margin: 0; font-size: 14px; color: #92400E; background: #FEF3C7; border-radius: 8px; padding: 4px 8px; justify-self: start; }
.bk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 64px; font-size: 18px; font-weight: 700; }
.bk-waste { background: #FEE2E2; color: #991B1B; }
.bk-list, .bk-close { overflow-y: auto; display: grid; gap: 8px; align-content: start; }
.bk-rec { display: grid; grid-template-columns: 80px 64px 1fr 1.2fr auto auto auto; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 8px 12px; min-height: 64px; }
.bk-rec.voided { opacity: .5; }
.bk-rec.voided b, .bk-rec.voided span:not(.bk-void-tag) { text-decoration: line-through; }
.bk-kind { font-weight: 700; color: var(--primary); }
.bk-rec.waste .bk-kind, .bk-rec.waste b { color: var(--danger); }
.bk-rec b { font-size: 20px; }
.bk-rec button { background: var(--bg); display: inline-flex; align-items: center; gap: 6px; }
.bk-void-tag { color: var(--danger); font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; }
.bk-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.bk-table th, .bk-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.bk-table th:first-child, .bk-table td:first-child { text-align: start; font-weight: 600; }
.bk-table th { font-size: 14px; color: var(--muted); }
.bk-count { min-width: 96px; font-size: 20px; font-weight: 700; background: #ECFDF5; border: 2px solid var(--primary); }
.bk-count.empty { background: var(--bg); border-color: var(--line); color: var(--muted); }
.bk-table .neg { color: var(--danger); font-weight: 700; }
.bk-table .pos { color: var(--primary); font-weight: 700; }
.bk-confirm { min-height: 72px; font-size: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bk-qty { display: block; text-align: center; font-size: 44px; font-weight: 800; background: var(--bg); border-radius: 12px; padding: 8px; }
.bk-toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 12px 24px; border-radius: 999px; font-weight: 600; z-index: 20; }
[dir="rtl"] .bk-toast { transform: translateX(50%); }
.pos-bakery { background: var(--bg); display: inline-flex; align-items: center; gap: 6px; min-height: 56px; padding: 0 16px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600; }
@media (max-width: 1100px) { .bk-rec { grid-template-columns: 70px 56px 1fr auto; } .bk-rec .muted { display: none; } }
/* bakery: fixes from the screenshot review */
.bk > .bar { grid-area: auto; flex-wrap: nowrap; }
.bk-tile dt { font-size: 14px; }
.bk .modal.bk-pad { width: min(880px, 96vw); grid-template-columns: 1fr 1fr; align-items: start; column-gap: 20px; }
.bk-pad > h2, .bk-pad > .close { grid-column: 1 / -1; }
.bk-pad .bk-pad-side, .bk-pad .bk-pad-keys { display: grid; gap: 12px; align-content: start; }
.bk .modal.bk-pad.single { width: min(480px, 94vw); grid-template-columns: 1fr; }
.bk .keys { direction: ltr; } /* number pads keep 1-2-3 left to right, also in Arabic */
.bk-pad .tiles { grid-template-columns: repeat(2, 1fr); }
.bk-pad .tile { min-height: 60px; font-size: 17px; }
.bk-pad .keys button { min-height: 60px; }
.bk-footer { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 8px 0; background: var(--bg); }
.bk-footer .bk-confirm { flex: 1; }
.bk-footer .hint { flex: 1; }
.bk-close { padding-bottom: 0; }
.bk-table td:first-child { min-width: 160px; }
.bk > * { min-width: 0; }
.bk .bar form button { background: var(--bg); min-width: 56px; }
.bk-badge { background: var(--card); color: var(--text); border-radius: 999px; padding: 2px 10px; font-size: 14px; }
.bk-tabs button:not(.on) .bk-badge { background: var(--line); }
.bk-rec button { white-space: nowrap; }
.bk-pad > h2 { padding-inline-end: 64px; min-height: 56px; display: flex; align-items: center; }
/* ---------- A3: POS header on one line at 1024 px (Arabic tablet, QA A2 low note); category colour stripe */
.pos > .bar { flex-wrap: nowrap; min-width: 0; padding: 8px; }
.pos > .bar > * { flex: none; }
.pos > .bar .brand { font-size: 20px; padding: 0 4px; white-space: nowrap; }
.pos > .bar button, .pos > .bar .pos-bakery, .pos > .bar .lang { white-space: nowrap; padding: 0 14px; }
.pos > .bar .search { flex: 1 1 160px; min-width: 160px; width: auto; }
.pos > .bar .search input { min-width: 0; }
.pos > .bar form button { min-width: 56px; padding: 0; justify-content: center; }
.pos > .bar .icon-tab { min-width: 56px; justify-content: center; }
.bar .count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--card); font-weight: 700; font-size: 14px; }
.cats button { border-inline-start: 6px solid var(--cat, transparent); }
@media (max-width: 1279px) { .pos > .bar .icon-tab { padding: 0; } .pos > .bar .icon-tab .lbl { display: none; } }
.bk-table td, .bk-rec b { unicode-bidi: isolate; direction: ltr; } /* +2 / −2 keep the sign in front in RTL */
.bk-table td:first-child { direction: inherit; }
/* INFESTO-003b: supervisor open / cash count / history / print (≥44px targets, Western digits) */
.bk .keys, .keys[dir="ltr"] { direction: ltr; }
.num { font-variant-numeric: tabular-nums; }
.bk-open { display: inline-flex; align-items: center; gap: 6px; min-height: 56px; padding: 0 16px; border-radius: 12px; white-space: nowrap; }
.bk-opened { color: var(--muted); font-size: 14px; white-space: nowrap; }
.bk-role { margin: 8px 16px 0; }
.bk-cash { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 72px; min-width: 200px; padding: 6px 16px;
    border-radius: 12px; border: 2px solid var(--primary); background: #ECFDF5; text-align: start; }
.bk-cash span { font-size: 14px; color: var(--muted); }
.bk-cash b { font-size: 22px; direction: ltr; unicode-bidi: isolate; }
.bk-cash.empty { background: var(--bg); border-color: var(--line); }
.bk-hist { grid-template-columns: 1.2fr 110px 1.6fr auto auto; }
.bk-hist b { direction: inherit; font-size: 17px; }
.btn-ghost { background: var(--bg); color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 56px; padding: 0 16px; border-radius: 12px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.modal.done .bk-print { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 64px; }
.modal.done .btn-ghost { width: 100%; }
@media (max-width: 1100px) { .bk-hist { grid-template-columns: 1fr auto auto; } .bk-hist .muted { display: none; } }
/* ---------- cash drawer: cash in / out and expected cash (INFESTO-004 A2) */
.bk-drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-drawer-actions button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 72px; font-size: 20px; font-weight: 700; }
.bk-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0; background: var(--card); border-radius: var(--radius); padding: 12px; }
.bk-sum div { display: grid; gap: 2px; }
.bk-sum dt { font-size: 14px; color: var(--muted); }
.bk-sum dd { margin: 0; font-size: 20px; font-weight: 700; direction: ltr; unicode-bidi: isolate; text-align: start; }
.bk-sum .total dd { color: var(--primary); font-size: 24px; }
.bk-expected { display: grid; gap: 2px; min-width: 220px; font-weight: 600; }
.bk-expected b, .bk-expected span { unicode-bidi: isolate; }
.bk-expected .neg { color: var(--danger); } .bk-expected .pos { color: var(--primary); }
.bk-expected small { font-size: 12px; font-weight: 400; }
/* ---------- kitchen notes (INFESTO-004 A2) */
.line-note { font-size: 14px; font-weight: 700; color: #92400E; background: #FEF3C7; border-radius: 8px; padding: 2px 8px; justify-self: start; }
.qty .note-btn { color: var(--muted); }
.qty .note-btn.on { background: #FEF3C7; color: #92400E; }
.kitchen-note { background: var(--bg); color: var(--muted); display: flex; align-items: center; gap: 6px; min-height: 48px; text-align: start; }
.kitchen-note span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kitchen-note.on { background: #FEF3C7; color: #92400E; font-weight: 700; }
.note-input { font: inherit; font-size: 20px; width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; resize: vertical; min-height: 96px; }
.done .actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bk-drawer .bk-rec { grid-template-columns: 120px 110px 1fr 1.2fr auto auto; }
.bk-drawer .bk-kind { white-space: nowrap; }
.bk-drawer .bk-rec b { direction: ltr; unicode-bidi: isolate; text-align: end; }
.kitchen-note small { flex: none; font-weight: 400; }
@media (max-width: 1100px) { .bk-drawer .bk-rec { grid-template-columns: 110px 100px 1fr auto; } }
/* ---------- QA M1 (t_3d6d3542): bakery dialogs never grow past the viewport. A grid track sized "auto" grows to the
   min-content of a 100-char unbroken reason / item name, so the track is minmax(0, 1fr) and user text breaks anywhere. */
.bk .modal { max-width: calc(100vw - 16px); min-width: 0; grid-template-columns: minmax(0, 1fr); }
.bk .modal.bk-pad:not(.single) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bk .modal > *, .bk .modal .form, .bk .modal .form > *, .bk-pad .bk-pad-side, .bk-pad .bk-pad-keys { min-width: 0; }
.bk .modal h2, .bk .modal h2 span, .bk .modal label, .bk .modal .warn { overflow-wrap: anywhere; }
.bk .modal input { min-width: 0; width: 100%; }
/* ---------- A4 QA M2 (t_27b137e1): the cash-drawer tab never grows past the viewport either. The list's implicit
   track and the row's "1fr" tracks were sized to the min-content of a 100-char unbroken reason, which pushed the
   rows, the void button and the cash in / out buttons off a 1024 tablet. Tracks are minmax(0, …) and text breaks. */
.bk-drawer { display: flex; flex-direction: column; min-width: 0; } /* a grid list mis-sized the rows' heights in Chrome */
.bk-drawer > * { flex: none; min-width: 0; }
.bk-drawer .bk-rec > * { min-width: 0; }
.bk-drawer .bk-rec { grid-template-columns: 120px 110px minmax(0, 1fr) minmax(0, 1.2fr) auto auto; }
.bk-drawer .bk-rec span:not(.bk-kind), .bk-drawer .bk-void-tag { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .bk-drawer .bk-rec { grid-template-columns: 110px 100px minmax(0, 1fr) auto; } }
@media (max-width: 700px) { .bk-drawer .bk-rec { grid-template-columns: auto minmax(0, 1fr) auto; } .bk-drawer .bk-rec > span:nth-child(3) { grid-column: 1 / -1; grid-row: 2; } }
/* ---------- offline mode (INFESTO-004 B2): status chip in the header, never over the cart or the pay buttons */
.net { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; font-weight: 700; flex: none; border: 2px solid transparent; cursor: pointer; }
.net svg { width: 20px; height: 20px; flex: none; }
.net .net-state { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; min-height: 44px; }
.net button { min-height: 44px; min-width: 44px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.net-online { background: #ECFDF5; color: #065F46; }
.net-online button { background: #D1FAE5; }
.net-offline { background: #7F1D1D; color: #FFFFFF; border-color: #450A0A; }
.net-offline button { background: #991B1B; color: #FFFFFF; }
.net-syncing { background: #1E3A8A; color: #FFFFFF; }
.net-syncing button { background: #1E40AF; color: #FFFFFF; }
.net-syncing .net-state svg { animation: net-spin 1.2s linear infinite; }
@keyframes net-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .net-syncing .net-state svg { animation: none; } }
.net .net-pending { background: #FEF3C7 !important; color: #78350F !important; }
.net .net-failed { background: #DC2626 !important; color: #FFFFFF !important; }
.net .net-info small { font-size: 13px; opacity: .9; }
.pos.is-offline > .bar { box-shadow: inset 0 0 0 3px #991B1B; }
.needs-net { opacity: .5; }
.offline-note { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #FEE2E2; color: #7F1D1D; font-weight: 600; font-size: 14px; }
.device-warn { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: start; margin: 0 0 8px; padding: 12px; border-radius: 12px; background: #7F1D1D; color: #FFFFFF; }
.device-warn span { display: block; font-size: 14px; font-weight: 500; }
.device-warn button { grid-column: 1 / -1; min-height: 48px; background: #FFFFFF; color: #7F1D1D; font-weight: 700; }
.done .tick.tick-offline { background: #B45309; }
/* QA M3: «ready offline» tick in the status chip; QA H2: full-screen sign-in lock of a signed-out page */
.net .net-ready { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; border-radius: 10px; background: #047857; color: #FFFFFF; }
.identity-lock { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(15, 23, 42, .92); padding: 24px; }
.identity-lock > div { width: min(520px, 96vw); background: #FFFFFF; border-radius: 16px; padding: 24px; display: grid; gap: 12px; text-align: center; justify-items: center; }
.identity-lock svg { width: 40px; height: 40px; color: #7F1D1D; }
.identity-lock h2 { margin: 0; }
.identity-lock a.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 160px; padding: 0 20px; border-radius: 12px; text-decoration: none; }
.offline-temp { padding: 10px 12px; border: 2px dashed #B45309; border-radius: 12px; color: #78350F; font-weight: 600; }
.offline-modal { width: min(680px, 96vw); }
.offline-modal h3 { margin: 8px 0 0; font-size: 17px; }
.off-row { align-items: center; padding: 8px 12px; }
.off-row button { min-height: 44px; background: var(--card); }
.failed-title { display: flex; align-items: center; gap: 8px; color: var(--danger); }
.failed-row { border-inline-start: 6px solid var(--danger); text-align: start; }
.failed-row .reason { font-size: 14px; color: #7F1D1D; overflow-wrap: anywhere; }
.pair-code { font-size: 32px; letter-spacing: .3em; text-align: center; min-height: 64px; }
.net .net-time { font-size: 13px; font-weight: 600; opacity: .85; }
@media (max-width: 1279px) {
  .net-online .net-state > span, .net .net-pending span { display: none; }
  .net .net-info { display: none; } /* the list opens from the waiting / failed badges; the time stays in the chip */
  .pos > .bar .search { flex-basis: 110px; min-width: 110px; }
  .net { gap: 2px; }
}
/* ---------- direct printing (INFESTO-004 B3, pos-print.js): the print message, never silent, never over the pay button */
.pp-note { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 60; max-width: 560px; margin-inline: auto; display: grid; gap: 10px;
  padding: 14px 16px; border-radius: 14px; font-weight: 600; box-shadow: 0 8px 24px rgb(15 23 42 / .25); }
.pp-note[hidden] { display: none; }
.pp-note p { margin: 0; line-height: 1.5; }
.pp-note.pp-ok { background: #ECFDF5; color: #065F46; border: 2px solid #047857; }
.pp-note.pp-busy { background: #EFF6FF; color: #1E3A8A; border: 2px solid #1E40AF; }
.pp-note.pp-warn { background: #FEF3C7; color: #78350F; border: 2px solid #B45309; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-actions button { min-height: 48px; min-width: 120px; background: #FFFFFF; color: #0F172A; border: 1px solid #CBD5E1; font-weight: 700; }
.pp-actions button.btn-primary { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
.pp-scrim { z-index: 70; }
.pp-scrim input { font-size: 28px; letter-spacing: .3em; text-align: center; min-height: 56px; }
/* ---------- INFESTO-F1: shop logo in the headers; cash drawer (float at opening, blind count, reconciliation) */
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; flex: none; }
.pos > .bar .pos-drawer { display: inline-flex; align-items: center; gap: 6px; background: #ECFDF5; color: #065F46; font-weight: 700; }
.day-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 8px; padding: 10px 12px; border-radius: 12px;
  background: #FEF3C7; color: #78350F; border: 2px solid #B45309; }
.day-banner b { flex: 1 1 160px; }
.day-banner button { min-height: 48px; display: inline-flex; align-items: center; gap: 6px; }
.drawer-modal { width: min(600px, 96vw); }
.drawer-modal > h2 { padding-inline-end: 64px; }
.drawer-amount { display: block; font-size: 40px; font-weight: 700; text-align: center; padding: 8px; border-radius: 12px; background: var(--bg);
  direction: ltr; unicode-bidi: isolate; }
.drawer-step { display: grid; gap: 12px; }
.denoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.denom { display: grid; gap: 4px; padding: 8px; border-radius: 12px; background: var(--bg); font-weight: 700; text-align: center; }
.denom > span:first-child { font-size: 20px; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; gap: 4px; }
.stepper.single { grid-template-columns: 1fr; }
.stepper button { min-height: 48px; padding: 0; font-size: 24px; background: var(--card); }
.stepper input { min-height: 48px; padding: 0 4px; text-align: center; font-size: 20px; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.drawer-total { margin: 0; font-size: 20px; text-align: center; }
.drawer-total b { font-size: 28px; direction: ltr; unicode-bidi: isolate; }
.recon { margin: 0; display: grid; gap: 4px; }
.recon > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 8px; }
.recon dd { margin: 0; direction: ltr; unicode-bidi: isolate; font-weight: 600; }
.recon .total { background: var(--bg); font-weight: 700; }
.recon .variance { font-size: 20px; font-weight: 800; border: 2px solid currentColor; }
.recon .variance.shortage { color: var(--danger); background: #FEF2F2; }
.recon .variance.surplus { color: #1D4ED8; background: #EFF6FF; }
.recon .variance.balanced { color: var(--primary); background: #ECFDF5; }
.recon-info { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.recon-info b { flex-basis: 100%; }
.drawer-step .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-step .actions > * { flex: 1 1 160px; min-height: 56px; }
.drawer-go { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; text-decoration: none; }
@media (max-width: 700px) { .denoms { grid-template-columns: repeat(2, 1fr); } }
.login-logo { justify-self: center; width: 96px; height: 96px; object-fit: contain; }
