:root {
  --navy: #101c2c;
  --navy-2: #17273b;
  --ink: #172033;
  --muted: #6f7888;
  --line: #e7eaf0;
  --bg: #f3f5f8;
  --card: #ffffff;
  --accent: #c99345;
  --accent-2: #ad7b34;
  --positive: #0b8f63;
  --negative: #c44747;
  --warning: #a56b0a;
  --shadow: 0 10px 30px rgba(25, 39, 58, .07);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--navy), #0a1420); color: #fff; padding: 24px 16px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; font-size: 22px; }
.brand strong { display: block; font-size: 15px; letter-spacing: .1px; }
.brand span { color: #aab6c5; font-size: 12px; }
.nav { display: grid; gap: 6px; padding: 22px 0; }
.nav-btn { width: 100%; border: 0; background: transparent; color: #b9c4d1; padding: 11px 12px; border-radius: 10px; text-align: left; display: flex; align-items: center; gap: 11px; transition: .2s ease; }
.nav-btn span { width: 22px; text-align: center; font-weight: 700; }
.nav-btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-btn.active { color: #fff; background: rgba(201,147,69,.18); box-shadow: inset 3px 0 var(--accent); }
.side-note { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; color: #aab6c5; font-size: 12px; line-height: 1.45; padding: 14px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.side-note strong { color: #fff; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: #42c08a; box-shadow: 0 0 0 4px rgba(66,192,138,.12); }

.main { min-width: 0; padding: 28px 32px 50px; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.eyebrow { margin: 0 0 5px; color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; }
h1 { margin: 0; font-size: 30px; letter-spacing: -.7px; }
.subtitle { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.top-actions { position: relative; display: flex; align-items: center; gap: 9px; }
.btn { border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; font-weight: 700; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.icon { width: 40px; height: 40px; padding: 0; background: #fff; border-color: var(--line); color: var(--ink); font-size: 20px; }
.menu { position: absolute; z-index: 30; right: 0; top: 48px; width: 220px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.menu button { width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 11px; border-radius: 8px; color: var(--ink); }
.menu button:hover { background: var(--bg); }

.card { background: var(--card); border: 1px solid rgba(222,226,233,.9); border-radius: var(--radius); box-shadow: var(--shadow); }
.filters { display: flex; align-items: flex-end; gap: 12px; padding: 14px 16px; margin-bottom: 18px; }
.filter-group { display: grid; gap: 5px; }
.filter-group label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
input, select { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); padding: 8px 10px; outline: none; }
input:focus, select:focus { border-color: rgba(201,147,69,.75); box-shadow: 0 0 0 3px rgba(201,147,69,.12); }
.filter-spacer { flex: 1; }
.range-summary { color: var(--muted); font-size: 13px; align-self: center; }

.empty-state { padding: 58px 25px; text-align: center; }
.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 20px; background: #f6eee3; color: var(--accent-2); font-size: 30px; }
.empty-state h2 { margin: 0 0 10px; }
.empty-state p { max-width: 690px; margin: 0 auto; color: var(--muted); line-height: 1.6; }
.empty-state code { padding: 2px 5px; border-radius: 5px; background: var(--bg); color: var(--ink); }
.empty-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }

.view { display: none; }
.view.active { display: block; }
.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 17px; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi .value { margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.kpi .compare { margin-top: 7px; display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 4px 7px; font-size: 11px; font-weight: 800; }
.compare.up { color: var(--positive); background: rgba(11,143,99,.09); }
.compare.down { color: var(--negative); background: rgba(196,71,71,.09); }
.compare.flat { color: var(--muted); background: var(--bg); }
.kpi .hint { margin-top: 5px; color: var(--muted); font-size: 11px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .85fr); gap: 16px; margin-bottom: 16px; }
.dashboard-grid.two { grid-template-columns: 1fr 1fr; }
.dashboard-grid .wide { grid-row: span 2; }
.chart-card { min-height: 260px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 19px 14px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 16px; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.tools-head { align-items: flex-end; }
.table-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.table-tools input { min-width: 220px; }
.check { color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.check input { min-height: auto; width: 15px; height: 15px; }
.badge { border-radius: 99px; padding: 6px 9px; background: #f6eee3; color: var(--accent-2); font-size: 11px; font-weight: 800; }
.text-btn { border: 0; background: transparent; color: var(--accent-2); font-weight: 800; }

.chart { min-height: 310px; padding: 16px 14px 10px; display: flex; align-items: stretch; }
.chart svg { width: 100%; height: 300px; overflow: visible; }
.axis-text { font-size: 10px; fill: #8791a0; }
.grid-line { stroke: #edf0f4; stroke-width: 1; }
.bar { fill: #c99345; rx: 5; }
.bar:hover { fill: #ad7b34; }
.line-path { fill: none; stroke: #17273b; stroke-width: 2.2; }
.dot { fill: #17273b; }

.bar-list { padding: 16px 18px 18px; display: grid; gap: 13px; }
.bar-row { display: grid; gap: 6px; }
.bar-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.bar-meta strong { color: var(--ink); font-weight: 700; }
.bar-track { height: 8px; border-radius: 99px; background: #eef1f4; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--accent); min-width: 2px; }

.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { position: sticky; top: 0; z-index: 1; background: #fafbfc; color: #717b8a; font-size: 11px; text-transform: uppercase; letter-spacing: .45px; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid #edf0f3; vertical-align: middle; white-space: nowrap; }
tr:hover td { background: #fcfcfd; }
td.num, th.num { text-align: right; }
.cell-main { font-weight: 700; color: var(--ink); }
.cell-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 7px; background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 700; }
.pill.red { background: rgba(196,71,71,.09); color: var(--negative); }
.pill.amber { background: rgba(165,107,10,.1); color: var(--warning); }
.pill.green { background: rgba(11,143,99,.09); color: var(--positive); }
.delta { font-weight: 800; }
.delta.pos { color: var(--positive); }
.delta.neg { color: var(--negative); }
.empty-table { padding: 38px 20px; color: var(--muted); text-align: center; }

.progress-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; background: rgba(7,15,25,.68); backdrop-filter: blur(5px); }
.progress-box { width: min(480px, calc(100vw - 30px)); padding: 30px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.spinner { width: 38px; height: 38px; margin: 0 auto 16px; border: 4px solid #e8ebef; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-box h2 { margin: 0; font-size: 20px; }
.progress-box p { color: var(--muted); }
.progress-track { width: 100%; height: 9px; overflow: hidden; border-radius: 99px; background: #edf0f4; }
.progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .2s ease; }
.privacy-note { margin-bottom: 0; font-size: 12px; }
.toast { position: fixed; z-index: 110; right: 24px; bottom: 24px; max-width: 390px; padding: 13px 16px; border-radius: 11px; background: var(--navy); color: #fff; box-shadow: var(--shadow); font-size: 13px; }

@media (max-width: 1250px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 950px) {
  .app-shell { grid-template-columns: 76px minmax(0,1fr); }
  .sidebar { padding: 18px 10px; }
  .brand > div:last-child, .nav-btn:not(.active) { }
  .brand strong, .brand span, .nav-btn { font-size: 0; }
  .brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .brand-mark { flex: 0 0 auto; }
  .nav-btn { justify-content: center; padding: 12px; }
  .nav-btn span { font-size: 17px; }
  .side-note { display: none; }
  .main { padding: 24px 20px 40px; }
  .dashboard-grid, .dashboard-grid.two { grid-template-columns: 1fr; }
  .dashboard-grid .wide { grid-row: auto; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 10px; }
  .brand { border: 0; padding-bottom: 8px; }
  .brand strong, .brand span { font-size: initial; }
  .nav { display: flex; overflow-x: auto; padding: 8px 0 0; }
  .nav-btn { min-width: 52px; }
  .main { padding: 18px 12px 35px; }
  .topbar { display: grid; }
  .top-actions { flex-wrap: wrap; }
  .filters { align-items: stretch; flex-wrap: wrap; }
  .filter-spacer { display: none; }
  .range-summary { width: 100%; }
  .kpi-grid, .kpi-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card-head, .tools-head { align-items: flex-start; flex-direction: column; }
}

/* v2 report pages */
.sidebar { overflow: hidden; }
.nav { overflow-y: auto; min-height: 0; padding-right: 4px; }
.nav::-webkit-scrollbar { width: 7px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; }
.nav-section { margin: 14px 10px 5px; color: #748397; font-size: 10px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.nav-section:first-child { margin-top: 0; }
.period-group select { min-width: 145px; }
.scan-details { margin-bottom: 18px; }
.scan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 16px 18px 18px; }
.scan-item { min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; }
.scan-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.scan-item strong { display: block; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.compare-filters { display: grid; grid-template-columns: 1fr 1fr auto auto auto; align-items: end; gap: 12px; padding: 15px 17px; margin-bottom: 16px; }
.compare-range-label { display: grid; gap: 2px; padding: 7px 10px; border-left: 3px solid var(--accent); }
.compare-range-label span { color: var(--muted); font-size: 11px; }
.total-row td { background: #f8f4ed; font-weight: 800; }
.service-row td { background: #fafbfc; color: var(--muted); }
.click-row { cursor: pointer; }
.click-row.selected-row td { background: #f7efe4; }
.screen-layout-grid { grid-template-columns: minmax(360px,.85fr) minmax(520px,1.4fr); }
.layout-list-table { max-height: 680px; }
.layout-preview { min-height: 580px; padding: 17px; overflow: auto; text-align: left; }
.pos-grid { display: grid; gap: 8px; min-width: 480px; }
.pos-key { min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 7px; border: 1px solid rgba(15,23,42,.18); border-radius: 8px; box-shadow: inset 0 1px rgba(255,255,255,.22); text-align: center; font-weight: 800; line-height: 1.1; }
.pos-key span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pos-key small { font-size: 9px; font-weight: 600; opacity: .72; }
.pos-key.empty-key { background: #f5f6f8 !important; border-style: dashed; box-shadow: none; }
.table-wrap + .card { margin-top: 16px; }
.view > .card + .card, .view > .dashboard-grid + .card, .view > .kpi-grid + .card { margin-top: 16px; }

@media print {
  .sidebar, .top-actions, .filters, .scan-details, .text-btn, .table-tools { display: none !important; }
  .app-shell { display: block; }
  .main { padding: 0; }
  .topbar { margin-bottom: 12px; }
  .card { break-inside: avoid; box-shadow: none; }
  .table-wrap { overflow: visible; }
  th { position: static; }
}

@media (max-width: 1150px) {
  .scan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .compare-filters { grid-template-columns: 1fr 1fr; }
  .compare-filters .btn { justify-self: start; }
  .screen-layout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-section { display: none; }
  .scan-grid { grid-template-columns: 1fr; }
  .compare-filters { grid-template-columns: 1fr; }
  .layout-preview { min-height: 420px; }
}


/* Patch 3 — transaction drill-down and safe configuration editing */
.btn.pending { background:#fff6e8; color:#8b5a13; border-color:#e7c78e; }
.btn.pending strong { display:inline-grid; place-items:center; min-width:22px; height:22px; margin-left:6px; border-radius:99px; background:#8b5a13; color:white; font-size:11px; }
.clickable-bill, .editable-row { cursor:pointer; }
.clickable-bill:hover td, .editable-row:hover td { background:#fffaf2; }
.mini-btn { border:1px solid #d9dee6; border-radius:8px; background:white; color:var(--ink); padding:6px 9px; font-size:11px; font-weight:800; }
.mini-btn:hover { border-color:var(--accent); color:var(--accent-2); }
.modified-dot { display:inline-block; width:8px; height:8px; margin-left:7px; border-radius:50%; background:#d88b18; box-shadow:0 0 0 3px rgba(216,139,24,.13); }
.modal-backdrop { position:fixed; z-index:200; inset:0; display:grid; place-items:center; padding:24px; background:rgba(6,13,22,.68); backdrop-filter:blur(5px); }
.modal-card { width:min(1040px, calc(100vw - 32px)); max-height:calc(100vh - 38px); display:flex; flex-direction:column; overflow:hidden; border-radius:18px; background:white; box-shadow:0 30px 90px rgba(0,0,0,.32); }
.modal-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; padding:20px 22px 16px; border-bottom:1px solid var(--line); }
.modal-head h2 { margin:0; font-size:21px; }
.modal-head p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.modal-close { width:36px; height:36px; border:0; border-radius:10px; background:#f1f3f6; color:#344054; font-size:25px; line-height:1; }
.modal-body { overflow:auto; padding:20px 22px; }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; padding:14px 22px 18px; border-top:1px solid var(--line); background:#fafbfc; }
.detail-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.detail-box { padding:11px 12px; border:1px solid var(--line); border-radius:11px; background:#fafbfc; }
.detail-box span { display:block; color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.45px; }
.detail-box strong { display:block; margin-top:5px; font-size:13px; overflow:hidden; text-overflow:ellipsis; }
.detail-section { margin-top:18px; }
.detail-section h3 { margin:0 0 9px; font-size:14px; }
.bill-total-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:16px; }
.editor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.editor-grid.cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.editor-field { display:grid; gap:6px; }
.editor-field.full { grid-column:1/-1; }
.editor-field label { color:#606b7b; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; }
.editor-field input, .editor-field select, .editor-field textarea { width:100%; border:1px solid #dce1e8; border-radius:9px; padding:9px 10px; background:white; color:var(--ink); }
.editor-field textarea { min-height:82px; resize:vertical; }
.price-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.colour-preview { height:40px; border:1px solid rgba(15,23,42,.18); border-radius:9px; display:flex; align-items:center; justify-content:center; font-weight:800; }
.safe-note { padding:11px 13px; border:1px solid #efd6a7; border-radius:10px; background:#fff8e9; color:#795018; font-size:12px; line-height:1.5; }
.pos-key.editable-key { cursor:pointer; transition:transform .12s ease, box-shadow .12s ease; }
.pos-key.editable-key:hover { transform:translateY(-1px); box-shadow:0 5px 14px rgba(15,23,42,.14), inset 0 1px rgba(255,255,255,.22); }
.pos-key.changed-key { outline:3px solid rgba(216,139,24,.5); outline-offset:1px; }
.pending-list { display:grid; gap:10px; }
.pending-entry { display:flex; justify-content:space-between; gap:14px; padding:12px 13px; border:1px solid var(--line); border-radius:11px; }
.pending-entry span { color:var(--muted); font-size:12px; }
@media (max-width:800px){ .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.editor-grid,.editor-grid.cols-3{grid-template-columns:1fr}.price-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.bill-total-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }


/* Patch 4 — invoice print, void invoice detail, weekly comparison */
.week-comparison{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:16px 0;padding:19px 21px;background:linear-gradient(135deg,#17263a,#263b55);color:white}.week-comparison h2{margin:4px 0 3px;font-size:18px}.week-comparison p{margin:0;color:#b9c4d1;font-size:11px}.comparison-kicker{color:#f0c98a;font-size:10px;font-weight:900;letter-spacing:1px}.comparison-metrics{display:grid;grid-template-columns:repeat(4,minmax(115px,1fr));gap:12px;min-width:58%}.comparison-metrics>div{padding:10px 12px;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:rgba(255,255,255,.055)}.comparison-metrics span,.comparison-metrics small{display:block;color:#bdc8d4;font-size:9px}.comparison-metrics strong{display:block;margin:4px 0;font-size:15px}.pos-text{color:#80e7b6}.neg-text{color:#ff9f98}.invoice-preview-title{display:flex;align-items:center;gap:10px;margin-bottom:14px}.invoice-preview-title strong{font-size:18px}.void-summary{display:flex;align-items:center;gap:16px;margin-bottom:17px;padding:14px 16px;border:1px solid #efb6b1;border-radius:12px;background:#fff4f3}.void-summary h3{margin:0 0 4px}.void-summary p{margin:0;color:#8a3c35}.void-stamp{padding:8px 11px;border:2px solid #b42318;border-radius:8px;color:#b42318;font-weight:900;letter-spacing:1px}.void-total{display:flex;justify-content:flex-end;align-items:center;gap:20px;margin-top:16px;padding:14px 16px;border-top:2px solid #b42318;border-bottom:3px double #b42318}.void-total span{font-weight:800}.void-total strong{font-size:20px;color:#b42318}.danger-print{background:#a8241a!important;border-color:#a8241a!important}.danger-print:hover{background:#8e1e16!important}.modal-card:has(.void-summary){width:min(1180px,calc(100vw - 32px))}
@media(max-width:1050px){.week-comparison{align-items:flex-start;flex-direction:column}.comparison-metrics{width:100%;min-width:0}}@media(max-width:720px){.comparison-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Patch 5 */
.range-head-date{display:block;margin-top:3px;font-size:9px;font-weight:600;color:#738095;white-space:nowrap}
.source-bill-banner{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 16px;padding:14px 16px;border:1px solid #ccd8e5;border-radius:12px;background:#f6f9fc}
.source-bill-banner>div{display:flex;flex-direction:column;gap:3px}.source-bill-banner span{font-size:9px;font-weight:900;letter-spacing:.9px;color:#5b6b7d}.source-bill-banner strong{font-size:15px;color:#17263a}.source-bill-banner small{font-size:10px;color:#657386}
.source-bill-banner.linked{border-color:#9bd6bd;background:#f0fbf6}.source-bill-banner.linked span{color:#14764e}
.source-bill-banner.voided{border-color:#efb6b1;background:#fff5f4}.source-bill-banner.voided span{color:#a8241a}
.source-bill-banner.missing{border-color:#e5cf9f;background:#fffaf0}.source-bill-banner.missing span{color:#8a6418}
@media(max-width:800px){.source-bill-banner{align-items:flex-start;flex-direction:column}.source-bill-banner .btn{width:100%}}


/* Patch 6 — independent stock, ingredient master list and product recipes */
.stock-safe-note{margin-bottom:16px}.stock-safe-note strong{display:inline-block;margin-right:5px}.stock-tools{flex-wrap:wrap}.stock-tools select{min-width:145px}.stock-recipe-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:16px}.recipe-lines-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:9px}.recipe-lines-head h3{margin:0}.recipe-line{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,.45fr) auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.recipe-line select,.recipe-line input{width:100%;border:1px solid #dce1e8;border-radius:9px;padding:9px 10px;background:white}.quantity-input{display:grid;grid-template-columns:1fr auto;align-items:center}.quantity-input input{border-radius:9px 0 0 9px}.quantity-input span{height:100%;display:flex;align-items:center;padding:0 11px;border:1px solid #dce1e8;border-left:0;border-radius:0 9px 9px 0;background:#f5f7fa;color:var(--muted);font-size:11px;font-weight:800}.remove-line{color:#a8241a;border-color:#efc3bf}.stock-contributors{max-width:520px;white-space:normal;line-height:1.45}#view-stockreport .kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1100px){.stock-recipe-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#view-stockreport .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.recipe-line{grid-template-columns:1fr}.stock-recipe-summary,#view-stockreport .kpi-grid{grid-template-columns:1fr}.recipe-lines-head{align-items:flex-start;flex-direction:column}.stock-tools{width:100%}.stock-tools input,.stock-tools select{width:100%}}


/* API Edition */
.api-hidden { display: none !important; }
.api-panel { margin-bottom: 14px; }
.api-grid { display: grid; grid-template-columns: minmax(240px,2fr) minmax(220px,1.4fr) minmax(190px,1fr) auto auto; gap: 12px; align-items: end; }
.api-grid .filter-group { min-width: 0; }
.api-grid input, .api-grid select { width: 100%; }
.api-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.badge.connected { background: #e8f7ef; color: #167149; }
.badge.error { background: #ffe9e7; color: #a42a20; }
@media (max-width: 1050px) { .api-grid { grid-template-columns: 1fr 1fr; } }


/* API Edition v1.1 */
#downloadProductSalesCsvBtn{white-space:nowrap}
#view-stockreport .stock-safe-note{border-color:#a8d8c0;background:#f1fbf6;color:#185c40}
.central-stock-status{font-size:10px;color:var(--muted)}
@media(max-width:900px){#downloadProductSalesCsvBtn{width:100%}}


/* API Edition v1.3 — Dry/Wet and All Locations */
.product-category-kpis{padding:16px 18px 0;margin-bottom:14px}.product-category-kpis .kpi{padding:14px 15px;border:1px solid var(--line);box-shadow:none}.product-category-kpis .kpi .value{font-size:20px}.dry-wet-notice{display:none;margin:0 18px 14px;padding:10px 12px;border:1px solid #e8c987;border-radius:10px;background:#fff9eb;color:#72500a;font-size:12px}.dry-wet-notice.visible{display:block}.dry-wet-config-table{max-height:52vh;margin-top:14px;border:1px solid var(--line);border-radius:10px}.dry-wet-config-table select{min-width:190px}#salesTypeFilter{min-width:155px}
.group-overview-filters{display:grid;grid-template-columns:auto repeat(2,minmax(145px,1fr)) auto auto repeat(2,minmax(145px,1fr)) auto;gap:12px;align-items:end;padding:0 18px 18px}.group-range-title{align-self:center}.group-range-title span{display:block;color:var(--muted);font-size:10px}.group-filter-actions{display:flex;gap:8px}.group-range-summary{padding:12px 18px;border-top:1px solid var(--line);color:var(--muted)}.compare-field.disabled{opacity:.5}.group-compare-table{min-width:1450px}.group-compare-table thead tr:first-child th{text-align:center;background:#eaf0f5;border-right:2px solid #cbd5df}.group-compare-table td:nth-child(5),.group-compare-table td:nth-child(9){border-right:2px solid #d7dde4}.group-total-row td{font-weight:800;background:#f1f4f7;border-top:2px solid #293b50}.delta.up{color:#087443}.delta.down{color:#b42318}.delta.flat{color:var(--muted)}
@media(max-width:1200px){.group-overview-filters{grid-template-columns:repeat(4,minmax(140px,1fr))}.group-filter-actions{grid-column:span 2}.group-range-title{display:none}}@media(max-width:760px){.product-category-kpis{grid-template-columns:1fr}.group-overview-filters{grid-template-columns:1fr 1fr}.group-compare-check,.group-filter-actions{grid-column:1/-1}#salesTypeFilter,#configureDryWetBtn{width:100%}}

/* API Edition v1.4 */
#dryWetMappingNotice{margin:0 18px 16px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--soft);font-size:12px}.pill.red{white-space:nowrap}


/* API Edition v1.6 — UPAUDIT display */
.audit-status-note{margin-bottom:14px}
.audit-status-note .cell-sub{display:block;margin-top:5px}
.audit-grid{align-items:start}
#auditKpis .value{font-size:22px}
@media(max-width:1100px){.audit-grid{grid-template-columns:1fr}}


/* API Edition v1.7 */
.data-source-status{margin:0 0 14px}
.audit-period-card{margin-bottom:14px}
.audit-period-tools{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.audit-period-tools .range-summary{margin-left:auto}
@media(max-width:900px){
  .audit-period-tools{align-items:stretch}
  .audit-period-tools .filter-group,
  .audit-period-tools button{width:100%}
  .audit-period-tools .range-summary{margin-left:0}
}

/* API Edition v1.8 — central vouchers and deposits */
.voucher-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:18px;margin-bottom:18px}
.voucher-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.voucher-form-grid .voucher-wide{grid-column:1/-1}
.voucher-actions{display:flex;align-items:center;gap:14px;margin-top:16px;flex-wrap:wrap}
.voucher-note{margin-top:16px}
.voucher-sync-warning{border:1px solid #ead59a;background:#fff9e8;border-radius:12px;padding:13px 14px;color:#6c5311;font-size:13px;line-height:1.45}
.voucher-summary-card .kpi-grid{margin-bottom:14px}
.voucher-code{font-family:Consolas,"Courier New",monospace;font-size:16px;font-weight:800;letter-spacing:1.3px;white-space:nowrap}
.voucher-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.voucher-status.available{background:#e7f7ef;color:#16734a}
.voucher-status.used{background:#e9eef9;color:#2f4e86}
.voucher-status.expired{background:#f4e9e6;color:#8b3e31}
.voucher-status.cancelled{background:#f0f0f0;color:#5d6269}
.voucher-conflict{color:#a33124;font-weight:800}
.voucher-receipt{font-family:"Segoe UI",Arial,sans-serif;max-width:520px;margin:0 auto;border:1px solid #d8dbe2;border-radius:16px;padding:28px;background:#fff;color:#172033}
.voucher-receipt-head{text-align:center;border-bottom:1px dashed #b9bec8;padding-bottom:18px;margin-bottom:18px}
.voucher-receipt-head h2{margin:0 0 4px;font-size:24px}.voucher-receipt-head p{margin:0;color:#687083}
.voucher-receipt-code{text-align:center;font-family:Consolas,"Courier New",monospace;font-weight:900;font-size:30px;letter-spacing:3px;padding:18px 8px;background:#f5f7fb;border-radius:12px;margin:18px 0}
.voucher-receipt-value{text-align:center;font-size:34px;font-weight:900;margin:8px 0 18px}
.voucher-receipt-grid{display:grid;grid-template-columns:145px 1fr;gap:9px 12px;font-size:14px}.voucher-receipt-grid strong{color:#596174}
.voucher-receipt-terms{border-top:1px dashed #b9bec8;margin-top:18px;padding-top:14px;font-size:12px;color:#687083;line-height:1.5}
@media(max-width:1050px){.voucher-layout{grid-template-columns:1fr}}
@media(max-width:700px){.voucher-form-grid{grid-template-columns:1fr}.voucher-form-grid .voucher-wide{grid-column:auto}.voucher-receipt-grid{grid-template-columns:1fr}}

/* API Edition v1.9 — voucher payment, email hooks and POS-origin rows */
.voucher-form-grid textarea{width:100%;resize:vertical;min-height:82px;font:inherit;border:1px solid var(--line,#d9dde6);border-radius:10px;padding:10px 12px;background:#fff;color:inherit}
.voucher-email-option{display:flex;flex-direction:column;gap:8px;justify-content:flex-end}
.voucher-check{display:flex;align-items:center;gap:8px;font-weight:700;font-size:13px;color:#343c4d;min-height:24px}
.voucher-check input{width:auto;margin:0}
.voucher-source{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-top:5px}
.voucher-source.central{background:#e8f1ff;color:#285b9a}.voucher-source.pos{background:#f4efe5;color:#755516}
.voucher-used-details{margin-top:6px;line-height:1.35}.voucher-used-details .cell-sub{display:block}
.voucher-message{margin-top:16px;padding:14px;border-left:4px solid #c59a3b;background:#fff9eb;border-radius:8px;white-space:pre-wrap;font-style:italic}
.voucher-status.unknown{background:#fff3cd;color:#775d00}

/* v2.0 portal redeem and clear balance display */
.voucher-row{cursor:pointer}.voucher-row:hover{background:#fafbfe}.voucher-table-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.voucher-redeem-btn{border-color:#9a6b16;color:#7a520e;background:#fff8e8}.voucher-balance{font-weight:800;color:#16734a}.voucher-balance.zero{color:#a33124}.voucher-balance-label{text-align:center;color:#687083;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.voucher-receipt-value.zero{color:#a33124}.voucher-original-value{text-align:center;color:#687083;margin-top:-12px;margin-bottom:16px}.voucher-redeem-panel{display:grid;gap:16px;min-width:min(520px,80vw)}.voucher-redeem-balance{display:flex;align-items:center;justify-content:space-between;padding:18px;border-radius:12px;background:#f5f7fb}.voucher-redeem-balance span{color:#596174;font-weight:700}.voucher-redeem-balance strong{font-size:28px}.btn.danger{background:#9d2d2d;color:#fff;border-color:#9d2d2d}.btn.danger:hover{background:#852525}


/* v2.2 — POS Mode + voucher email history/resend */
.pos-mode-home{min-height:calc(100vh - 250px);display:grid;grid-template-columns:repeat(2,minmax(260px,440px));gap:28px;align-content:center;justify-content:center;padding:30px}
.pos-mode-action{min-height:260px;border:1px solid #d9dde6;border-radius:24px;background:#fff;box-shadow:0 14px 38px rgba(17,31,49,.10);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;color:#172033}
.pos-mode-action:hover{transform:translateY(-4px);box-shadow:0 20px 44px rgba(17,31,49,.15);border-color:#c59a3b}
.pos-mode-action strong{font-size:30px;letter-spacing:-.02em}.pos-mode-icon{width:86px;height:86px;border-radius:24px;display:grid;place-items:center;font-size:40px;font-weight:900;background:#f5f7fb}
.pos-mode-redeem .pos-mode-icon{background:#eef4ff}.pos-mode-sell .pos-mode-icon{background:#fff7e8}
.pos-redeem-search{display:grid;gap:12px;min-width:min(520px,80vw)}.pos-redeem-search label{font-weight:800}.pos-redeem-search input{font-size:28px;font-family:Consolas,"Courier New",monospace;letter-spacing:2px;text-align:center;padding:18px;border:2px solid #d9dde6;border-radius:14px}
.pos-voucher-result-card{border:1px solid #d9dde6;border-radius:16px;padding:18px;background:#fff}.pos-voucher-code{text-align:center;font-family:Consolas,"Courier New",monospace;font-size:28px;font-weight:900;letter-spacing:2px}.pos-voucher-balance{display:flex;align-items:end;justify-content:space-between;margin:16px 0;padding:16px;border-radius:12px;background:#f5f7fb}.pos-voucher-balance span{font-weight:700;color:#687083}.pos-voucher-balance strong{font-size:32px}.pos-voucher-lines{display:grid;gap:8px}.pos-voucher-line{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #eef0f4;padding-top:8px}.pos-voucher-line span{color:#687083}.pos-voucher-line strong{text-align:right}
.pos-redeem-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.pos-redeem-fields .pos-wide{grid-column:1/-1}.pos-redeem-fields textarea{width:100%;resize:vertical;min-height:70px;font:inherit;border:1px solid var(--line,#d9dde6);border-radius:10px;padding:10px 12px}
.pos-success-mark{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:#e7f7ef;color:#16734a;font-size:40px;font-weight:900}.pos-replacement-card{display:grid;gap:14px}.pos-replacement-title{text-align:center;font-size:12px;font-weight:900;letter-spacing:.12em;color:#7a520e}.pos-sell-form{min-width:min(720px,82vw)}
@media(max-width:850px){.pos-mode-home{grid-template-columns:1fr;min-height:auto;padding:20px}.pos-mode-action{min-height:180px}.pos-redeem-fields{grid-template-columns:1fr}.pos-redeem-fields .pos-wide{grid-column:auto}.pos-sell-form{min-width:0}}

/* v2.3 — navigation, stock control and standalone POS mode */
.app-shell { transition: grid-template-columns .18s ease; }
.sidebar { position: sticky; transition: padding .18s ease; }
.nav-btn em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-toggle {
  position: absolute; z-index: 5; top: 24px; right: -13px; width: 27px; height: 27px;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 99px;
  background: #15253a; color: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.18); font-size: 22px; line-height: 1;
}
.sidebar-toggle:hover { background: var(--accent); }
body.sidebar-collapsed .app-shell { grid-template-columns: 76px minmax(0,1fr); }
body.sidebar-collapsed .sidebar { padding-left: 10px; padding-right: 10px; }
body.sidebar-collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
body.sidebar-collapsed .brand > div:last-child,
body.sidebar-collapsed .nav-section,
body.sidebar-collapsed .nav-btn em,
body.sidebar-collapsed .side-note { display: none; }
body.sidebar-collapsed .nav-btn { justify-content: center; padding: 12px; }
body.sidebar-collapsed .nav-btn span { width: 24px; font-size: 17px; }
body.sidebar-collapsed .sidebar-toggle { right: -13px; transform: rotate(180deg); }

.settings-view { margin-bottom: 18px; }
.settings-view.active { display: block; }
.settings-view .api-panel { margin-bottom: 0; }

.stock-control-card .stock-control-kpis { padding: 16px 18px 0; }
.stock-count-input { width: 110px; min-height: 34px; text-align: right; }
.order-pack-input { width: 78px; min-height: 34px; text-align: right; font-weight: 800; }
.order-preview { color: var(--ink); font-weight: 800; }
.order-base-note { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.variance-positive { color: var(--positive); font-weight: 800; }
.variance-negative { color: var(--negative); font-weight: 800; }
.variance-flat { color: var(--muted); font-weight: 800; }

body.pos-standalone { background: #f4f6f9; }
body.pos-standalone .app-shell { display: block; min-height: 100vh; }
body.pos-standalone .sidebar,
body.pos-standalone .topbar,
body.pos-standalone #view-settings,
body.pos-standalone #salesDateFilters,
body.pos-standalone #scanDetails,
body.pos-standalone #emptyState { display: none !important; }
body.pos-standalone .main { min-height: 100vh; padding: 0; }
body.pos-standalone #content { display: block !important; min-height: 100vh; }
body.pos-standalone #content > .view { display: none !important; }
body.pos-standalone #content > #view-posmode { display: block !important; min-height: 100vh; }
body.pos-standalone .pos-mode-home { min-height: 100vh; padding: 42px; }

@media (max-width: 720px) {
  .sidebar-toggle { display: none; }
  body.sidebar-collapsed .app-shell { display: block; }
  body.sidebar-collapsed .brand > div:last-child,
  body.sidebar-collapsed .nav-btn em { display: initial; }
  body.sidebar-collapsed .side-note { display: none; }
}

/* v2.4 */
.legacy-more-control { display:none !important; }
.order-filter-bar { display:flex; gap:12px; align-items:end; flex-wrap:wrap; margin:14px 0; }
.order-filter-bar .filter-group { min-width:220px; margin:0; }
.catalog-sync-note { margin: 0 0 14px; }


/* v2.7 — multi-branch recipe apply */
.recipe-branches{margin-top:16px}
.recipe-branch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin-top:10px}
.recipe-branch-choice{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line,#d8dde6);border-radius:10px;background:var(--panel,#fff);cursor:pointer}
.recipe-branch-choice input{width:17px;height:17px}

/* v2.8 simple measurement controls */
.measure-input{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px;align-items:center}.recipe-line-v28{grid-template-columns:minmax(180px,1.4fr) minmax(190px,.9fr) minmax(145px,.7fr) auto;align-items:center}.recipe-measure-input{min-width:190px}.recipe-base-preview{white-space:nowrap}@media(max-width:900px){.recipe-line-v28{grid-template-columns:1fr}.measure-input{grid-template-columns:minmax(0,1fr) 100px}.recipe-base-preview{white-space:normal}}

/* v2.11 */
.recipe-pos-list{margin-top:14px}.recipe-pos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.recipe-pos-product{border:1px solid #d9e0e8;background:#fff;border-radius:8px;padding:10px;text-align:left;cursor:pointer}.recipe-pos-product:hover{border-color:#17365d;box-shadow:0 1px 5px rgba(23,54,93,.14)}.recipe-pos-product span{display:block;font-weight:700}.recipe-pos-product small{display:block;color:#6b7280;margin-top:3px}.recipe-queue-info{margin-right:auto}.stock-movement-form{padding:4px 0}

/* v2.12 — POS-list till browser + branch stock transfers */
.recipe-pos-browser{display:grid;grid-template-columns:minmax(230px,.5fr) minmax(540px,1.5fr);gap:16px;margin-top:16px;align-items:start}.recipe-pos-lists{margin-top:10px;max-height:560px;overflow:auto;border:1px solid var(--line);border-radius:11px;background:#fafbfc}.recipe-pos-list-row{display:block;width:100%;padding:11px 12px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;cursor:pointer}.recipe-pos-list-row:last-child{border-bottom:0}.recipe-pos-list-row:hover{background:#f3f6f9}.recipe-pos-list-row.selected{background:#f7efe4;box-shadow:inset 3px 0 #9c6a2e}.recipe-pos-list-row span{display:block;font-weight:800;color:var(--ink)}.recipe-pos-list-row small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.recipe-pos-till{min-width:0;border:1px solid var(--line);border-radius:12px;background:#f7f8fa;overflow:hidden}.recipe-pos-till-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 13px;border-bottom:1px solid var(--line);background:#fff}.recipe-pos-till-head strong,.recipe-pos-till-head span{display:block}.recipe-pos-till-head select{min-width:110px}.recipe-pos-till .recipe-pos-list{margin:0;padding:14px;overflow:auto}.recipe-pos-till-grid{min-width:520px}.recipe-pos-key-product{font:inherit;cursor:pointer}.recipe-pos-key-product:hover{outline:3px solid rgba(23,54,93,.32);transform:translateY(-1px)}.recipe-pos-key-function{opacity:.84}.stock-transfer-table{margin-top:10px;max-height:480px}.stock-transfer-table input[type="number"]{min-width:95px}.stock-transfer-summary{margin-top:10px;font-weight:700}.stock-transfer-filters input[disabled]{background:#f4f6f8;color:#475467}.modal-card:has(.recipe-pos-browser),.modal-card:has(.stock-transfer-table){width:min(1240px,calc(100vw - 32px))}
@media(max-width:900px){.recipe-pos-browser{grid-template-columns:1fr}.recipe-pos-lists{max-height:220px}.recipe-pos-till-grid{min-width:480px}.stock-transfer-filters{grid-template-columns:1fr}}

/* CiboPOS v2.15 — Staff Food & Waste type buttons + till picker */
.movement-type-buttons{display:flex;flex-wrap:wrap;gap:8px}.movement-type-btn{appearance:none;border:1px solid #cfd7e3;background:#fff;color:#24364b;border-radius:9px;padding:10px 14px;font:inherit;font-weight:800;cursor:pointer}.movement-type-btn:hover{border-color:#17365d}.movement-type-btn.active{background:#17365d;color:#fff;border-color:#17365d;box-shadow:0 1px 4px rgba(23,54,93,.2)}.movement-till-picker{margin-top:10px;border:1px solid #d9e0e8;border-radius:10px;padding:10px;background:#f8fafc;max-height:590px;overflow:auto}.movement-till-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;position:sticky;top:-10px;z-index:3;background:#f8fafc;padding:10px 0 8px}.movement-till-head strong,.movement-till-head span{display:block}.movement-till-head span{font-size:12px;color:#667085;margin-top:2px}.movement-till-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.movement-till-actions .mini-btn.active{background:#17365d;color:#fff}.movement-pos-key{border:0;cursor:pointer;text-align:center}.movement-pos-key:not([data-movement-plu]):not([data-movement-list]){cursor:default}.movement-selected-key{outline:4px solid #111827!important;outline-offset:2px;box-shadow:0 0 0 2px #fff inset}.movement-pos-grid{min-width:620px}

/* CiboPOS Reports v2.16 */
.movement-pos-browser{display:grid;grid-template-columns:minmax(235px,.46fr) minmax(620px,1.54fr);gap:14px;align-items:start}.movement-pos-list-panel{min-width:0}.movement-all-lists{max-height:560px}.movement-pos-till-panel{min-width:0;overflow:auto}.v216-apply-all-branches{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:12px 13px;border:1px solid #cfd7e3;border-radius:10px;background:#f8fafc;cursor:pointer}.v216-apply-all-branches input{margin-top:3px;transform:scale(1.15)}.v216-apply-all-branches span{display:block}.v216-apply-all-branches strong,.v216-apply-all-branches small{display:block}.v216-apply-all-branches small{margin-top:3px;color:#667085;line-height:1.4}.v216-apply-all-branches:has(input:checked){border-color:#17365d;background:#eef4fb}.v216-apply-all-branches:has(input:disabled){opacity:.65;cursor:not-allowed}
@media(max-width:1000px){.movement-pos-browser{grid-template-columns:1fr}.movement-all-lists{max-height:220px}.movement-pos-grid{min-width:560px}}


/* ================= CiboPOS Portal v2.17 Preview ================= */
.portal-settings { margin-bottom: 24px; }
.settings-shell { display:grid; grid-template-columns:230px minmax(0,1fr); gap:16px; align-items:start; }
.settings-nav { padding:10px; position:sticky; top:18px; display:grid; gap:6px; }
.settings-tab { border:0; background:transparent; border-radius:11px; padding:12px; display:flex; align-items:center; gap:11px; text-align:left; color:var(--ink); }
.settings-tab:hover { background:#f7f8fa; }
.settings-tab.active { background:#f6eee3; color:#7e5724; box-shadow:inset 3px 0 var(--accent); }
.settings-tab > span { width:28px; height:28px; display:grid; place-items:center; border-radius:8px; background:#eef1f5; font-weight:900; color:var(--navy); }
.settings-tab.active > span { background:#fff4e5; color:var(--accent-2); }
.settings-tab strong,.settings-tab small { display:block; }
.settings-tab strong { font-size:13px; }
.settings-tab small { margin-top:2px; font-size:10px; color:var(--muted); font-weight:500; }
.settings-pane { display:none; }
.settings-pane.active { display:block; }
.settings-content { min-width:0; }
.settings-hero { padding:24px; display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:14px; background:linear-gradient(135deg,#fff 0%,#fbf7f1 100%); }
.settings-hero h2 { margin:4px 0 7px; font-size:25px; }
.settings-hero p { margin:0; color:var(--muted); max-width:700px; line-height:1.55; }
.settings-kicker { color:var(--accent-2); font-size:10px; font-weight:900; letter-spacing:1.3px; }
.portal-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.portal-stat { padding:17px; display:grid; gap:5px; }
.portal-stat span { color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; }
.portal-stat strong { font-size:23px; }
.portal-stat small { color:var(--muted); }
.settings-section-card { margin-bottom:14px; overflow:hidden; }
.settings-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; }
.settings-detail-grid > div { padding:16px 19px; border-bottom:1px solid var(--line); }
.settings-detail-grid > div:nth-child(odd) { border-right:1px solid var(--line); }
.settings-detail-grid span,.settings-detail-grid strong { display:block; }
.settings-detail-grid span { color:var(--muted); font-size:11px; margin-bottom:5px; text-transform:uppercase; font-weight:800; letter-spacing:.45px; }
.settings-detail-grid strong { font-size:13px; overflow-wrap:anywhere; }
.advanced-api-card { padding:0; overflow:hidden; }
.advanced-api-card summary { cursor:pointer; padding:15px 18px; font-weight:800; color:var(--muted); }
.advanced-api-card .api-panel { padding:0 18px 18px; }
.settings-loading { padding:28px; color:var(--muted); text-align:center; }
.portal-preview-note { margin:14px 18px; }
.portal-actions { display:flex; gap:6px; flex-wrap:wrap; }
.portal-actions .mini-btn { white-space:nowrap; }
.portal-status { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:800; border-radius:99px; padding:5px 8px; background:#eef1f4; color:var(--muted); }
.portal-status.online,.portal-status.active { color:var(--positive); background:rgba(11,143,99,.09); }
.portal-status.offline,.portal-status.disabled { color:var(--negative); background:rgba(196,71,71,.09); }
.portal-status-dot { width:7px; height:7px; border-radius:50%; background:currentColor; }
.portal-code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:11px; background:#f4f6f8; padding:3px 6px; border-radius:6px; }
.portal-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.portal-form-grid .full { grid-column:1/-1; }
.portal-form-grid label { display:grid; gap:5px; color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; }
.portal-form-grid input,.portal-form-grid select { width:100%; }
.portal-location-checks { display:flex; flex-wrap:wrap; gap:8px; padding:10px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.portal-location-checks label { display:inline-flex; align-items:center; gap:6px; text-transform:none; letter-spacing:0; font-size:12px; color:var(--ink); }
.portal-location-checks input { width:15px; height:15px; min-height:auto; }
.activation-result { border:1px solid rgba(201,147,69,.32); background:#fff8ef; padding:16px; border-radius:12px; }
.activation-result strong { display:block; margin-bottom:7px; }
.activation-code { display:flex; gap:8px; align-items:center; }
.activation-code code { flex:1; font-size:15px; padding:10px 12px; border-radius:9px; background:#fff; border:1px solid #ead9c0; overflow-wrap:anywhere; }
@media (max-width:1050px){.settings-shell{grid-template-columns:1fr}.settings-nav{position:static;grid-template-columns:repeat(4,1fr)}.settings-tab{justify-content:center}.settings-tab div{display:none}.portal-stat-grid{grid-template-columns:1fr 1fr}}
@media (max-width:650px){.settings-nav{grid-template-columns:1fr 1fr}.portal-stat-grid,.settings-detail-grid,.portal-form-grid{grid-template-columns:1fr}.settings-detail-grid>div:nth-child(odd){border-right:0}.settings-hero{align-items:flex-start;flex-direction:column}}
/* ================= end v2.17 ================= */

/* ================= CiboPOS Portal v2.18 Preview ================= */
.portal-login-overlay{position:fixed;inset:0;z-index:9999;background:#fff;display:grid;place-items:center;padding:24px}.portal-login-overlay.hidden{display:none}.portal-login-card{width:min(440px,100%);background:#fff;border-radius:22px;padding:28px;box-shadow:0 30px 90px rgba(0,0,0,.3);display:grid;gap:16px}.portal-login-card h2{margin:0;font-size:28px}.portal-login-card label{display:grid;gap:7px;font-weight:700;font-size:13px}.portal-login-card input{min-height:44px;border:1px solid #d8dee8;border-radius:10px;padding:0 12px;font:inherit}.login-mark{width:48px;height:48px}.login-error{min-height:20px;color:#a61b1b;font-size:13px}.portal-user-chip{display:flex;align-items:center;gap:12px;padding:7px 8px 7px 12px;background:#fff;border:1px solid #dde4ec;border-radius:12px}.portal-user-chip.hidden{display:none}.portal-user-chip div{display:grid;line-height:1.1}.portal-user-chip strong{font-size:12px}.portal-user-chip small{font-size:10px;color:#64748b;margin-top:3px}.portal-security-note{padding:12px 14px;border-radius:12px;background:#f6f8fb;border:1px solid #e0e6ee;margin:12px 0 16px;font-size:12px;color:#475569}.portal-group-sites{display:flex;flex-wrap:wrap;gap:6px}.portal-permission-sections{display:grid;gap:12px}.portal-permission-section{border:1px solid #e1e7ef;border-radius:12px;padding:12px}.portal-permission-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.portal-permission-section-head strong{font-size:13px}.portal-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.portal-permission-grid label,.portal-group-checks label{display:flex;gap:8px;align-items:flex-start;text-transform:none;font-size:12px;font-weight:600}.portal-permission-grid input,.portal-group-checks input{width:16px;height:16px;min-height:auto;margin-top:1px}.portal-group-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid #e1e7ef;border-radius:12px;padding:12px;max-height:280px;overflow:auto}.portal-permission-actions{display:flex;gap:8px;flex-wrap:wrap}.portal-access-summary{font-size:12px;color:#475569}.portal-role-help{font-size:11px;color:#64748b;margin-top:5px}.nav-btn.permission-hidden,.settings-tab.permission-hidden{display:none!important}
@media(max-width:760px){.portal-permission-grid,.portal-group-checks{grid-template-columns:1fr}.portal-user-chip{display:none!important}}


/* v2.21 — location view selector */
.portal-location-switcher{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;padding:15px 16px;border:1px solid var(--border,#dfe4ea);border-radius:12px;background:#f8fafc}
.portal-location-switcher>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:240px}
.portal-location-switcher-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:#6b7280}
.portal-location-switcher strong{font-size:17px;color:#172033}
.portal-location-switcher small{color:#6b7280;max-width:650px;line-height:1.35}
.portal-location-switcher-actions{display:flex;gap:8px;align-items:center;min-width:min(440px,100%)}
.portal-location-switcher-actions select{min-width:250px;flex:1}
.portal-location-active-row{background:rgba(32,92,78,.055)}
.portal-viewing-now{font-weight:700;color:#26705f}
.mini-btn.active{font-weight:700;border-color:#26705f;color:#26705f;background:rgba(38,112,95,.08)}
@media(max-width:850px){.portal-location-switcher{align-items:stretch;flex-direction:column}.portal-location-switcher-actions{min-width:0;width:100%}.portal-location-switcher-actions select{min-width:0}}

/* v2.22 — security-first login screen */
body.portal-auth-pending #appShell,
body.portal-auth-locked #appShell{visibility:hidden!important;pointer-events:none!important}
body.portal-auth-pending{background:#fff}
.portal-login-overlay{background:#fff!important;backdrop-filter:none!important}
.portal-login-card{box-shadow:0 18px 55px rgba(15,23,42,.12)}

.mini-btn.danger{border-color:#e4b1ad;color:#9d2d2d;background:#fff7f6}.mini-btn.danger:hover{background:#fdebea}

/* v2.29 POS Servers */
.portal-form-grid input.server-number-taken{border-color:#c62828!important;color:#b91c1c!important;background:#fff7f7!important;box-shadow:0 0 0 2px rgba(198,40,40,.08)}
.server-no-hint{font-size:11px;font-weight:600;text-transform:none;letter-spacing:0;color:#64748b;min-height:15px}.server-no-hint.taken{color:#b91c1c;font-weight:800}

/* v2.30 Function Control */
#posFunctionFilters .mini-btn.active { font-weight: 700; border-color: currentColor; }

/* v2.31 PLU Modifiers & Macros */
#posMacrosTable code,#macroHelpContent code{font-family:Consolas,"Courier New",monospace;background:#f4f6f8;border:1px solid #e1e6eb;border-radius:5px;padding:2px 5px;color:#25364a}
.macro-help-tabs{display:flex;gap:8px;flex-wrap:wrap}


/* v2.32 Pre-Orders */
.preorder-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}
.preorder-builder,.preorder-basket-card{min-width:0}
.preorder-basket-card{position:sticky;top:16px}
.preorder-meta-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;margin-bottom:12px}
.preorder-meta-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#475569}
.preorder-meta-grid input,.preorder-meta-grid select{min-height:40px;border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px;background:white;color:#0f172a}
.preorder-pos-browser{min-height:500px}
.preorder-basket{display:flex;flex-direction:column;gap:8px;min-height:180px}
.preorder-basket-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.preorder-basket-row strong{display:block}.preorder-basket-row small{color:#64748b}
.preorder-qty{display:flex;align-items:center;gap:6px}.preorder-qty button{width:30px;height:30px;border:1px solid #cbd5e1;background:#fff;border-radius:7px;cursor:pointer}.preorder-qty span{min-width:24px;text-align:center;font-weight:800}
.preorder-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px;padding-top:14px;border-top:1px solid #e2e8f0}
.preorder-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800;background:#e2e8f0;color:#334155}.preorder-status.sent{background:#dcfce7;color:#166534}.preorder-status.waiting_pos{background:#fef3c7;color:#92400e}.preorder-status.executing{background:#dbeafe;color:#1d4ed8}.preorder-status.failed,.preorder-status.needs_review{background:#fee2e2;color:#991b1b}.preorder-status.cancelled{background:#f1f5f9;color:#64748b}
@media(max-width:1100px){.preorder-layout{grid-template-columns:1fr}.preorder-basket-card{position:static}.preorder-meta-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}}
@media(max-width:700px){.preorder-meta-grid{grid-template-columns:1fr}.preorder-pos-browser{display:block}.movement-pos-list-panel{margin-bottom:12px}}

/* POS Portal v2.34 — Pre-Order receipt */
.preorder-basket-total{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-top:8px;padding:14px 4px 2px;border-top:2px solid #0f172a}.preorder-basket-total span{color:#64748b;font-size:12px;font-weight:700}.preorder-basket-total strong{font-size:22px;color:#0f172a}.row-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.preorder-receipt{max-width:760px;margin:0 auto;padding:28px 32px 30px;background:#fff;color:#101828;border:1px solid #d0d5dd;box-shadow:0 12px 34px rgba(16,24,40,.08);font-variant-numeric:tabular-nums}.preorder-receipt-brand{text-align:center;font-size:12px;font-weight:900;letter-spacing:2.2px}.preorder-receipt>h2{text-align:center;margin:4px 0 14px;font-size:28px;letter-spacing:1px}.preorder-receipt-rule{border-top:2px dashed #344054;margin:12px 0 18px}.preorder-receipt-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}.preorder-receipt-meta>div{padding:10px;border:1px solid #e4e7ec;text-align:center}.preorder-receipt-meta span,.preorder-receipt-meta strong{display:block}.preorder-receipt-meta span{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#667085}.preorder-receipt-meta strong{margin-top:4px;font-size:15px}.preorder-receipt-lines{padding:10px 0;border-top:1px dashed #98a2b3;border-bottom:1px dashed #98a2b3}.preorder-receipt-lines p{display:flex;justify-content:space-between;gap:18px;margin:5px 0;font-size:12px}.preorder-receipt-lines span{color:#667085}.preorder-receipt-table{width:100%;margin-top:16px;border-collapse:collapse}.preorder-receipt-table th{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#667085;border-bottom:1px solid #101828;padding:8px 5px;text-align:left}.preorder-receipt-table td{padding:10px 5px;border-bottom:1px dashed #d0d5dd;vertical-align:top}.preorder-receipt-table td span{display:block;margin-top:3px;font-size:10px;color:#98a2b3}.preorder-receipt-table .num{text-align:right}.preorder-receipt-total{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:18px 4px 8px;border-bottom:3px double #101828}.preorder-receipt-total>span{font-size:11px;color:#667085}.preorder-receipt-total>div{text-align:right}.preorder-receipt-total small{display:block;font-size:10px;letter-spacing:1px;color:#667085}.preorder-receipt-total strong{display:block;font-size:28px;margin-top:3px}.preorder-receipt-error{margin-top:16px;padding:12px;border:1px solid #fda29b;background:#fff4f3;border-radius:8px}.preorder-receipt-error p{margin:5px 0 0}.preorder-receipt-id{text-align:center;margin-top:22px;font-size:10px;letter-spacing:1.4px;color:#98a2b3}.modal-card:has(.preorder-receipt){width:min(980px,calc(100vw - 32px))}@media(max-width:700px){.preorder-receipt{padding:20px 16px}.preorder-receipt-meta{grid-template-columns:repeat(2,1fr)}}

/* v2.36 linked lists / prompts */
.preorder-choice-banner{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 10px;padding:10px 12px;border:1px solid #93c5fd;border-radius:10px;background:#eff6ff;color:#1e3a8a}.preorder-choice-banner strong{font-size:14px}.preorder-choice-banner span{font-size:12px;font-weight:700}
.preorder-subline{margin-top:4px;font-size:11px;color:#475569;line-height:1.35}.preorder-pending-action{margin-bottom:8px;padding:8px 10px;border-radius:8px;background:#fef3c7;color:#92400e;font-size:12px}.preorder-prompt-warning{margin-top:10px;border-color:#f59e0b!important;background:#fffbeb!important}

/* v2.41 Floors */
.floor-manager{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}.floor-list{display:flex;flex-direction:column;gap:8px;max-height:760px;overflow:auto}.floor-list-item{width:100%;border:1px solid var(--line,#d7dce3);background:#fff;border-radius:10px;padding:12px;text-align:left;cursor:pointer}.floor-list-item.active{outline:2px solid #111827}.floor-list-item strong{display:block}.floor-list-item small{display:block;margin-top:4px;color:#68707d}.floor-editor-shell{min-width:0}.floor-editor-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:12px}.floor-editor-toolbar>label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;min-width:180px}.floor-editor-toolbar input,.floor-editor-toolbar select{min-height:38px;border:1px solid #cfd5dd;border-radius:8px;padding:8px 10px;background:#fff}.floor-editor-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}.floor-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px}.floor-canvas-scroll{overflow:auto;border:1px solid #cfd5dd;border-radius:10px;background:#eef1f4;min-height:620px;max-height:760px}.floor-canvas{position:relative;min-width:950px;min-height:620px;transform-origin:top left}.floor-object{position:absolute;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;user-select:none;cursor:move;overflow:hidden;font-weight:700;font-family:Arial,sans-serif}.floor-object.table{box-shadow:0 1px 3px rgba(0,0,0,.2)}.floor-object.selected{outline:3px solid #111827;outline-offset:2px;z-index:5}.floor-object .floor-resize{position:absolute;width:12px;height:12px;right:0;bottom:0;background:#111827;border-radius:2px 0 0 0;cursor:nwse-resize}.floor-object-label{padding:4px;pointer-events:none}.floor-object-panel{border:1px solid #d7dce3;border-radius:10px;background:#fff;padding:12px;position:sticky;top:8px}.floor-object-panel h3{margin:0 0 10px}.floor-prop-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.floor-prop-grid label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:700}.floor-prop-grid label.full{grid-column:1/-1}.floor-prop-grid input,.floor-prop-grid select{width:100%;min-height:34px;border:1px solid #d1d6de;border-radius:7px;padding:6px}.floor-status-legend{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 0}.floor-status-chip{display:inline-flex;align-items:center;gap:6px;font-size:11px}.floor-status-dot{width:12px;height:12px;border-radius:3px;border:1px solid rgba(0,0,0,.25)}
@media(max-width:1100px){.floor-manager{grid-template-columns:1fr}.floor-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));max-height:none}.floor-editor-grid{grid-template-columns:1fr}.floor-object-panel{position:static}}


/* v2.42 Floors refinements */
.floor-toolbar-colour>div,.floor-colour-field>div{display:grid;grid-template-columns:48px minmax(90px,1fr);gap:7px;align-items:center}.floor-toolbar-colour input[type=color],.floor-colour-field input[type=color]{width:48px;height:36px;padding:2px;border:1px solid #cfd5dd;border-radius:7px;background:#fff;cursor:pointer}.mini-select{min-height:34px;border:1px solid #cfd5dd;border-radius:7px;background:#fff;padding:5px 8px}.floor-status-settings{border:1px solid #d7dce3;background:#fff;border-radius:10px;padding:10px 12px;margin-bottom:12px}.floor-status-settings>strong{display:block;margin-bottom:8px}.floor-status-editor{display:grid;grid-template-columns:repeat(4,minmax(155px,1fr));gap:8px}.floor-status-edit{border:1px solid #e0e4ea;border-radius:8px;padding:8px;display:grid;grid-template-columns:1fr 42px;gap:6px 8px;align-items:center}.floor-status-edit>span{grid-column:1/-1;font-size:11px;font-weight:700}.floor-status-edit input[type=color]{width:42px;height:34px;padding:2px;border:1px solid #cfd5dd;border-radius:6px}.floor-status-edit input[type=number]{width:100%;min-width:0;height:34px;border:1px solid #cfd5dd;border-radius:6px;padding:5px 7px}.floor-object.shape-2{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}.floor-object.shape-1{border-radius:50%!important}.floor-object.shape-3{border-radius:18px!important}.floor-check-label{justify-content:end}.floor-check-label input[type=checkbox]{width:20px;height:20px;margin-top:7px}.floor-object-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.floor-object-panel{min-width:285px}.floor-editor-grid{grid-template-columns:minmax(0,1fr) 300px}.floor-editor-toolbar .floor-toolbar-colour{min-width:205px}
@media(max-width:1250px){.floor-status-editor{grid-template-columns:repeat(2,minmax(155px,1fr))}}@media(max-width:700px){.floor-status-editor{grid-template-columns:1fr}}


/* v2.43 Products grid editor */
.pos-products-toolbar{display:grid;grid-template-columns:minmax(150px,190px) minmax(220px,1fr) minmax(190px,240px) minmax(130px,170px) auto;gap:10px;align-items:end;margin-bottom:12px}.pos-products-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#3f4652}.pos-products-toolbar input,.pos-products-toolbar select{height:38px;border:1px solid #cfd5dd;border-radius:8px;background:#fff;padding:7px 9px;min-width:0}.pos-products-toolbar .badge{margin-bottom:7px;white-space:nowrap}.pos-products-wrap{max-height:72vh;border:1px solid #d7dce3;border-radius:9px}.pos-products-grid{border-collapse:separate;border-spacing:0;min-width:1720px;width:100%}.pos-products-grid th{position:sticky;top:0;z-index:4;background:#29435f;color:#fff;white-space:nowrap}.pos-products-grid th.plu,.pos-products-grid td.plu{position:sticky;left:0;z-index:3;background:#fff;min-width:92px}.pos-products-grid th.name,.pos-products-grid td.name{position:sticky;left:92px;z-index:3;background:#fff;min-width:235px}.pos-products-grid th.plu,.pos-products-grid th.name{z-index:6;background:#29435f}.pos-products-grid tbody tr:nth-child(even) td{background:#f7f8fa}.pos-products-grid tbody tr:nth-child(even) td.plu,.pos-products-grid tbody tr:nth-child(even) td.name{background:#f7f8fa}.pos-products-grid tr.dirty td{box-shadow:inset 0 1px 0 #f1b94b,inset 0 -1px 0 #f1b94b}.pos-product-input{width:100%;min-width:80px;height:32px;border:1px solid #cbd2db;border-radius:6px;padding:5px 7px;background:#fff}.pos-product-price{width:82px;text-align:right;font-variant-numeric:tabular-nums}.pos-product-name{min-width:215px}.pos-product-dept{min-width:145px}.pos-product-actions{display:flex;gap:5px;white-space:nowrap}.pos-plu-check.free{color:#111;border-color:#b8c0ca}.pos-plu-check.taken{color:#c62828!important;border-color:#d32f2f!important;background:#fff5f5!important}.plu-help{font-size:11px;margin-top:5px}.plu-help.taken{color:#c62828}.plu-help.free{color:#2f6d3a}.product-modal-tabs{display:flex;gap:6px;margin-bottom:12px;border-bottom:1px solid #dde2e8;padding-bottom:8px}.product-modal-tab{border:0;background:#eef1f5;border-radius:7px;padding:7px 11px;font-weight:700;cursor:pointer}.product-modal-tab.active{background:#203a56;color:#fff}.product-price-grid{display:grid;grid-template-columns:repeat(5,minmax(100px,1fr));gap:8px}.product-price-grid label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:700}.product-price-grid input{height:36px;border:1px solid #cfd5dd;border-radius:7px;padding:6px;text-align:right}.product-copy-box{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.product-copy-box button{height:38px}.product-row-count{font-size:12px;color:#68707d;margin:0 0 8px}
@media(max-width:1000px){.pos-products-toolbar{grid-template-columns:1fr 1fr}.pos-products-toolbar .badge{grid-column:1/-1}.product-price-grid{grid-template-columns:repeat(2,1fr)}}
/* v2.44 Products */
.pos-products-grid{min-width:980px}
.product-modal-tabs{overflow-x:auto;white-space:nowrap;padding-bottom:9px}
.product-modal-tab{flex:0 0 auto}
.product-check{display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;text-transform:none!important;min-height:38px}
.product-check input{width:18px!important;height:18px!important;min-height:auto!important;margin:0}
.product-kp-grid{display:grid;grid-template-columns:repeat(8,78px);gap:6px;justify-content:start}
.product-kp-check,.product-kp-radio{display:flex;align-items:center;gap:6px;min-height:42px;padding:6px 8px;border:1px solid #d7dce3;border-radius:7px;background:#fff;font-weight:700}
.product-kp-check input,.product-kp-radio input{width:16px;height:16px;margin:0}
@media(max-width:900px){.product-kp-grid{grid-template-columns:repeat(4,78px)}}
.product-barcode-list{display:grid;gap:7px;margin-bottom:10px}.product-barcode-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.product-barcode-row input{height:36px;border:1px solid #cfd5dd;border-radius:7px;padding:6px 8px;background:#fafbfc}.product-barcode-add{display:grid;grid-template-columns:1fr auto;gap:8px}.product-barcode-add input{height:38px;border:1px solid #cfd5dd;border-radius:7px;padding:7px 9px}

/* ================= v2.47 Screen Layout List editor ================= */
.layout-main-card,.layout-editor-card{min-height:calc(100vh - 150px)}
.layout-main-head{align-items:flex-start;gap:18px}.layout-main-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;align-items:center}.layout-main-tools input[type=search]{min-width:250px}
.layout-status{padding:0 2px 10px}.layout-list-table{max-height:calc(100vh - 265px);overflow:auto}.layout-list-table table{min-width:1120px}.layout-list-table th:first-child,.layout-list-table td:first-child{width:70px}.layout-list-table th:last-child,.layout-list-table td:last-child{text-align:right;white-space:nowrap}.layout-list-table .layout-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}.layout-list-table .mini-btn.danger{color:#b42318;border-color:#f0b4ad;background:#fff7f6}
.layout-editor-topbar{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}.layout-editor-heading h2{margin:0}.layout-editor-heading p{margin:3px 0 0;color:var(--muted)}
.layout-editor-workspace{display:grid;grid-template-columns:minmax(620px,1.45fr) minmax(360px,.72fr);gap:16px;margin-top:16px;align-items:start}.layout-editor-preview-wrap,.layout-editor-side{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.layout-preview-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 13px;border-bottom:1px solid var(--line);background:#f8fafc}.layout-preview-head strong,.layout-preview-head span{display:block}.layout-preview{min-height:610px;padding:16px;background:#353535;overflow:auto;text-align:left}.layout-preview .pos-grid{min-width:560px;gap:7px}.layout-preview .pos-key{min-height:88px;border:1px solid rgba(0,0,0,.48);border-radius:4px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:7px;position:relative;user-select:none;cursor:default;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}.layout-preview .pos-key span{font-weight:800;line-height:1.05}.layout-preview .pos-key small{display:none}.layout-preview .pos-key.empty-key{background:#6f7892!important;color:#fff!important}.layout-preview .pos-key.layout-selected-key{outline:4px solid #fff;outline-offset:2px;box-shadow:0 0 0 6px #0d6efd}.layout-preview .pos-key:hover{filter:brightness(1.04)}
.layout-editor-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px;border-bottom:1px solid var(--line);background:#f8fafc}.layout-editor-tab{border:1px solid #d7dde5;background:#eef1f4;border-radius:8px;padding:10px 8px;font-weight:800;cursor:pointer}.layout-editor-tab.active{background:#17365d;color:#fff;border-color:#17365d}.layout-editor-options{padding:14px;min-height:590px;max-height:calc(100vh - 270px);overflow:auto}.layout-option-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.layout-option-grid .full{grid-column:1/-1}.layout-option-grid label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:800;color:#344054}.layout-option-grid input,.layout-option-grid select,.layout-option-grid textarea{width:100%;min-height:38px;border:1px solid #cfd7e3;border-radius:7px;padding:8px;font:inherit;background:#fff}.layout-option-grid textarea{min-height:86px;resize:vertical}.layout-check-row{display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;padding:7px 0}.layout-check-row input{width:auto!important;min-height:0!important;transform:scale(1.12)}.layout-option-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.layout-page-manager{display:grid;gap:12px}.layout-page-current{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);border-radius:9px;padding:11px;background:#f8fafc}.layout-page-current strong{font-size:17px}.layout-page-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.layout-page-actions .full{grid-column:1/-1}.layout-hint{padding:10px 11px;border-radius:8px;background:#f8fafc;border:1px solid var(--line);color:#667085;font-size:11px;line-height:1.45}
.layout-colour-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:5px;margin-top:10px}.layout-colour-swatch{aspect-ratio:1;border:1px solid #8d99a8;border-radius:2px;cursor:pointer;position:relative}.layout-colour-swatch span{position:absolute;inset:auto 2px 1px;text-align:center;font-size:8px;background:rgba(255,255,255,.72);color:#111}.layout-colour-swatch.selected-bg{outline:3px solid #0d6efd;outline-offset:1px}.layout-colour-swatch.selected-fg{box-shadow:inset 0 0 0 3px #ff8c00}.layout-colour-legend{display:flex;gap:14px;font-size:11px;color:#667085;margin-top:8px}.layout-colour-legend b{color:#344054}
.layout-key-menu{position:fixed;z-index:10000;min-width:190px;background:#fff;border:1px solid #d0d5dd;border-radius:8px;box-shadow:0 12px 30px rgba(16,24,40,.18);padding:5px}.layout-key-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;border-radius:6px;padding:9px 11px;font:inherit;cursor:pointer}.layout-key-menu button:hover{background:#f2f4f7}.layout-key-menu button.danger{color:#b42318}.layout-key-menu .separator{height:1px;background:#eaecf0;margin:4px 0}
.layout-key-picker{display:grid;grid-template-columns:180px 1fr;min-height:520px;border:1px solid var(--line);border-radius:10px;overflow:hidden}.layout-key-picker-tabs{padding:7px;background:#f8fafc;border-right:1px solid var(--line)}.layout-key-picker-tab{width:100%;text-align:left;border:0;background:transparent;padding:10px;border-radius:6px;font-weight:700;cursor:pointer}.layout-key-picker-tab.active{background:#17365d;color:#fff}.layout-key-picker-main{padding:12px;min-width:0}.layout-key-picker-search{display:flex;gap:8px;margin-bottom:10px}.layout-key-picker-search input{flex:1}.layout-key-picker-table{max-height:430px;overflow:auto;border:1px solid var(--line);border-radius:8px}.layout-key-picker-table tr{cursor:pointer}.layout-key-picker-table tr:hover{background:#f5f7fa}.layout-key-picker-table tr.selected-row{background:#e9f2ff}.layout-assigned{margin-bottom:10px;padding:8px 10px;border:1px solid #d7dde5;background:#f8fafc;border-radius:8px;font-size:11px}.layout-file-note{font-size:11px;color:#667085;margin-top:8px}.layout-image-preview{height:80px;border:1px dashed #cfd7e3;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#f8fafc;color:#667085;margin-top:8px;overflow:hidden}
@media(max-width:1180px){.layout-editor-workspace{grid-template-columns:1fr}.layout-editor-side{order:-1}.layout-editor-options{min-height:0;max-height:none}.layout-preview{min-height:520px}}
@media(max-width:760px){.layout-editor-topbar{grid-template-columns:1fr}.layout-main-tools{justify-content:flex-start}.layout-main-tools input[type=search]{min-width:100%;width:100%}.layout-option-grid{grid-template-columns:1fr}.layout-option-grid .full{grid-column:auto}.layout-colour-grid{grid-template-columns:repeat(6,1fr)}.layout-key-picker{grid-template-columns:1fr}.layout-key-picker-tabs{display:grid;grid-template-columns:repeat(2,1fr);border-right:0;border-bottom:1px solid var(--line)}}

/* ================= v2.49 Screen Layout refinements ================= */
.layout-create-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px 28px;align-items:end}.layout-create-grid label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:#344054}.layout-create-grid input,.layout-create-grid select{width:100%;min-height:38px;border:1px solid #cfd7e3;border-radius:7px;padding:8px;font:inherit;background:#fff}.layout-create-grid .layout-create-check{align-items:flex-start}.layout-create-grid .layout-create-check input{width:30px;height:30px;min-height:30px;margin-top:2px}.layout-list-no-check.free{color:#111!important;border-color:#b8c0ca!important;background:#fff!important}.layout-list-no-check.taken{color:#c62828!important;border-color:#d32f2f!important;background:#fff5f5!important}.layout-list-no-help{font-size:11px;min-height:14px}.layout-list-no-help.free{color:#111}.layout-list-no-help.taken{color:#c62828}.layout-key-menu button:disabled{opacity:.42;cursor:not-allowed}.layout-key-menu button:disabled:hover{background:transparent}@media(max-width:850px){.layout-create-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.layout-create-grid{grid-template-columns:1fr}}


/* ================= v2.50 Settings sidebar + SharpPOS Format help ================= */
.nav-btn[data-settings-nav] em{font-style:normal}
.layout-option-grid label small,.layout-create-grid label small{display:block;margin-top:5px;color:var(--muted);font-size:11px;font-weight:600}
/* ================= end v2.50 ================= */


/* ================= v2.52 Big Screen Layout buttons ================= */
.layout-preview .pos-grid.layout-sized-grid{display:grid;grid-auto-flow:dense;align-items:stretch}
.layout-preview .pos-key.big-key{min-height:88px;padding:8px 10px}
.layout-preview .pos-key.big-key span{font-size:1.08em}
/* ================= end v2.52 ================= */

/* ================= v2.53 Correct SharpPOS Big/Normal buttons ================= */
.layout-preview .pos-grid.layout-sized-grid{grid-auto-flow:row}
#liToggleBig{min-width:125px}
/* ================= end v2.53 ================= */

/* ================= v2.55 Online Voucher Shop ================= */
.voucher-store-location-row{display:flex;gap:12px;align-items:end;margin:14px 0}.voucher-store-location-row label{display:flex;flex-direction:column;gap:6px;min-width:320px;font-size:11px;font-weight:800}.voucher-store-location-row select{min-height:40px;border:1px solid #cfd7e3;border-radius:8px;padding:8px;background:#fff}.voucher-store-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:14px}.voucher-store-box{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff;display:flex;flex-direction:column;gap:11px}.voucher-store-box h3{margin:0 0 3px}.voucher-store-box label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:800;color:#344054}.voucher-store-box input,.voucher-store-box textarea{width:100%;min-height:38px;border:1px solid #cfd7e3;border-radius:7px;padding:8px;font:inherit;background:#fff}.voucher-store-box textarea{min-height:96px;resize:vertical}.voucher-store-box small{font-size:10px;color:#667085;font-weight:500}.voucher-store-check{flex-direction:row!important;align-items:center!important;gap:8px!important;text-transform:none!important}.voucher-store-check input{width:18px!important;height:18px!important;min-height:0!important}.voucher-store-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media(max-width:1180px){.voucher-store-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){.voucher-store-grid{grid-template-columns:1fr}.voucher-store-location-row{align-items:stretch;flex-direction:column}.voucher-store-location-row label{min-width:0}.voucher-store-two{grid-template-columns:1fr}}
/* ================= end v2.55 ================= */

/* v2.56 global SMTP test */
.voucher-store-test{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.voucher-store-test .btn{min-height:40px;white-space:nowrap}@media(max-width:760px){.voucher-store-test{grid-template-columns:1fr}}


/* ================= v2.57 Online Voucher tabs + current-location scope ================= */
.voucher-current-location{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;margin:14px 0;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.voucher-current-location div{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}.voucher-current-location span:first-child{font-size:11px;color:#667085;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.voucher-current-location strong{font-size:15px}.voucher-current-location small{color:#98a2b3}.voucher-config-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 14px}.voucher-config-tab{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #d7dde5;border-radius:10px;background:#f8fafc;padding:11px 13px;cursor:pointer;color:#344054}.voucher-config-tab>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e9edf2;font-weight:900}.voucher-config-tab div{display:flex;flex-direction:column;gap:2px}.voucher-config-tab strong{font-size:13px}.voucher-config-tab small{font-size:10px;color:#667085}.voucher-config-tab.active{border-color:#d09a48;background:#fff8ec;box-shadow:0 0 0 2px rgba(208,154,72,.10)}.voucher-config-tab.active>span{background:#cf943d;color:#fff}.voucher-config-panel{display:none}.voucher-config-panel.active{display:block}.voucher-store-box-wide{max-width:none}.voucher-box-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:2px}.voucher-box-head h3{margin:0}.voucher-box-head p{margin:3px 0 0;color:#667085;font-size:11px}.voucher-save-state{font-size:10px;font-weight:800;border-radius:999px;background:#f2f4f7;color:#667085;padding:5px 8px;white-space:nowrap}.voucher-save-state.saved{background:#ecfdf3;color:#067647}.voucher-save-state.error{background:#fef3f2;color:#b42318}.voucher-section-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px;padding-top:10px;border-top:1px solid var(--line)}.voucher-order-summary{font-size:11px;font-weight:800;color:#475467;white-space:nowrap}.voucher-order-status{text-transform:capitalize}.voucher-order-status.paid{color:#067647}.voucher-order-status.pending{color:#b54708}.voucher-order-status.failed,.voucher-order-status.expired{color:#b42318}@media(max-width:760px){.voucher-config-tabs{grid-template-columns:1fr}.voucher-current-location{align-items:flex-start}.voucher-section-actions{justify-content:stretch}.voucher-section-actions .btn{flex:1}}
/* ================= end v2.57 ================= */

/* v2.58 */
.readonly-field{background:#f2f4f7!important;color:#475467!important}


/* ================= POS Portal v2.60 — professional header / location switcher ================= */
.technical-source-subtitle{display:none!important}
.top-location-switcher{position:relative;display:inline-flex;align-items:center;min-height:28px;margin-bottom:5px;z-index:45}
.top-location-placeholder{font-size:12px;font-weight:800;letter-spacing:.02em;color:#70798a}
.top-location-single,.top-location-button{font:inherit;font-size:13px;font-weight:800;color:#273247;background:transparent;border:0;padding:4px 0;display:inline-flex;align-items:center;gap:7px}
.top-location-button{cursor:pointer}
.top-location-button:hover{color:#111827}
.top-location-chevron{font-size:10px;transition:transform .15s ease}
.top-location-switcher.open .top-location-chevron{transform:rotate(180deg)}
.top-location-menu{position:absolute;top:calc(100% + 7px);left:0;min-width:220px;max-width:340px;background:#fff;border:1px solid #dfe4ea;border-radius:12px;box-shadow:0 15px 40px rgba(22,34,52,.16);padding:6px;z-index:1000}
.top-location-menu.hidden{display:none}
.top-location-option{width:100%;border:0;background:transparent;border-radius:8px;text-align:left;padding:9px 11px;font:inherit;font-size:13px;font-weight:700;color:#263145;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-location-option:hover{background:#f4f6f8}
.top-location-option.active{background:#eef2f6;color:#111827}
@media(max-width:700px){.top-location-menu{min-width:min(280px,80vw)}}


/* ================= POS Portal v2.61 — mobile YouTube-style navigation with liquid glass ================= */
.mobile-only,.mobile-section-tabs,.mobile-bottom-nav{display:none}

@media (max-width: 760px) {
  :root {
    --mobile-glass: rgba(17,24,39,.58);
    --mobile-glass-strong: rgba(15,23,42,.74);
    --mobile-line: rgba(255,255,255,.12);
    --mobile-text: rgba(255,255,255,.95);
    --mobile-muted: rgba(203,213,225,.78);
    --mobile-blue: #4ea1ff;
    --mobile-blue-2: #8fd0ff;
  }
  html, body {
    background:
      radial-gradient(circle at 20% 0%, rgba(56,120,255,.18), transparent 28%),
      radial-gradient(circle at 80% 10%, rgba(80,180,255,.12), transparent 24%),
      linear-gradient(180deg, #040812 0%, #07101d 52%, #09111f 100%);
    color: var(--mobile-text);
  }
  body { overflow-x: hidden; }
  .app-shell { display:block; min-height:100vh; }
  .sidebar { display:none; }
  .main {
    min-height:100vh;
    padding: calc(env(safe-area-inset-top,0px) + 18px) 14px calc(124px + env(safe-area-inset-bottom,0px)) 14px;
    background: transparent;
  }
  .topbar {
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-bottom:14px;
  }
  .topbar > div:first-child { min-width:0; flex:1; }
  .top-location-switcher { display:none !important; }
  h1 { color:#fff; font-size:26px; letter-spacing:-.75px; }
  .subtitle { color: var(--mobile-muted); }
  .technical-source-subtitle { display:none; }
  .top-actions { gap:10px; margin-left:auto; }
  .top-actions > .btn,
  .top-actions > .pending,
  .top-actions > .legacy-more-control,
  .portal-user-chip { display:none !important; }
  .mobile-only { display:flex; }
  .mobile-header-btn,
  .mobile-profile-btn {
    position:relative;
    width:48px; height:48px;
    display:grid; place-items:center;
    border-radius:50%;
    border:1px solid var(--mobile-line);
    background:rgba(255,255,255,.06);
    color:#fff;
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 16px 36px rgba(0,0,0,.24);
  }
  .mobile-header-btn span{font-size:20px;line-height:1}
  .mobile-header-badge {
    position:absolute; top:-3px; right:-1px;
    min-width:22px; height:22px; padding:0 6px;
    display:grid; place-items:center; border-radius:999px;
    background:#ef4444; color:#fff; font-size:11px; font-weight:800;
    box-shadow:0 6px 16px rgba(239,68,68,.35);
  }
  .mobile-profile-wrap { position:relative; display:flex; }
  .mobile-profile-btn { background:linear-gradient(180deg, rgba(48,124,255,.9), rgba(18,105,236,.88)); border-color:rgba(255,255,255,.16); }
  .mobile-profile-btn span { font-size:22px; font-weight:800; }
  .mobile-profile-menu {
    position:absolute; right:0; top:58px; z-index:55;
    min-width:220px; padding:10px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(8,15,28,.92);
    color:#fff;
    box-shadow:0 24px 60px rgba(0,0,0,.42);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
  }
  .mobile-profile-head { padding:8px 10px 10px; display:grid; gap:3px; }
  .mobile-profile-head strong { font-size:14px; }
  .mobile-profile-head small { color:var(--mobile-muted); font-size:11px; }
  .mobile-profile-menu button {
    width:100%; border:0; background:transparent; color:#fff; text-align:left;
    padding:11px 12px; border-radius:12px; font-weight:700;
  }
  .mobile-profile-menu button:hover,.mobile-profile-menu button:active { background:rgba(255,255,255,.08); }
  .mobile-profile-menu hr { border:0; border-top:1px solid rgba(255,255,255,.09); margin:8px 0; }

  .mobile-section-tabs {
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:2px 1px 8px;
    margin:0 0 16px;
    scrollbar-width:none;
  }
  .mobile-section-tabs::-webkit-scrollbar{display:none}
  .mobile-chip {
    flex:0 0 auto;
    border:1px solid rgba(255,255,255,.1);
    background:rgba(255,255,255,.05);
    color:rgba(241,245,249,.9);
    border-radius:999px;
    padding:11px 15px;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    transition:transform .24s ease, background .24s ease, border-color .24s ease, color .24s ease;
  }
  .mobile-chip.active {
    background:rgba(255,255,255,.96);
    color:#0f172a;
    border-color:rgba(255,255,255,.95);
    box-shadow:0 12px 30px rgba(255,255,255,.13), inset 0 1px 0 rgba(255,255,255,.9);
  }
  .mobile-chip:active { transform: translateY(1px) scale(.985); }

  .card, .scan-item, .portal-stat, .kpi, .empty-state, .voucher-store-box, .voucher-current-location, .modal-card {
    background: linear-gradient(180deg, rgba(12,20,34,.72), rgba(7,14,27,.72));
    border-color: rgba(255,255,255,.10);
    color: var(--mobile-text);
    box-shadow: 0 22px 44px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
  }
  .card-head, .modal-head { border-bottom-color: rgba(255,255,255,.08); }
  .card-head h2, .empty-state h2, .kpi .value, .bar-meta strong, .cell-main, th, td, .portal-stat strong, .preorder-basket-total strong { color:#fff; }
  .card-head p, .empty-state p, .kpi .label, .kpi .hint, .range-summary, .portal-stat small, .axis-text, .cell-sub, .filter-group label, .voucher-save-state, .bar-meta, .preorder-basket-total span, .preorder-basket-total small { color: var(--mobile-muted); }
  .kpi .compare.flat { background: rgba(255,255,255,.08); color: var(--mobile-muted); }
  .table-wrap table { color:#fff; }
  th { background: rgba(255,255,255,.06); border-bottom-color: rgba(255,255,255,.08); color: rgba(226,232,240,.82); }
  td { border-bottom-color: rgba(255,255,255,.06); white-space: normal; }
  tr:hover td { background: rgba(255,255,255,.04); }
  .bar-track, .progress-track { background: rgba(255,255,255,.08); }
  .grid-line { stroke: rgba(255,255,255,.08); }
  .line-path, .dot { stroke: #4ea1ff; fill:#4ea1ff; }
  .btn.secondary, .btn.ghost, .btn.icon, .mini-btn, .voucher-config-tab, .settings-tab {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.11);
    color:#fff;
  }
  .btn.primary { box-shadow:0 8px 24px rgba(201,147,69,.22); }
  input, select, textarea {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.11);
    color:#fff;
  }
  input::placeholder, textarea::placeholder { color: rgba(226,232,240,.42); }
  .empty-table { color:var(--mobile-muted); }
  .view > .card + .card, .view > .dashboard-grid + .card, .view > .kpi-grid + .card { margin-top:14px; }

  .dashboard-grid, .dashboard-grid.two, .kpi-grid, .kpi-grid.compact { grid-template-columns: 1fr 1fr; gap:12px; }
  .dashboard-grid .wide { grid-column:1 / -1; }
  .chart { padding:10px 8px 8px; min-height:240px; }
  .chart svg { height:240px; }

  .mobile-bottom-nav {
    position:fixed; left:12px; right:12px; bottom:calc(10px + env(safe-area-inset-bottom,0px)); z-index:44;
    display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); align-items:stretch;
    gap:4px; padding:10px 8px;
    border-radius:28px;
    border:1px solid rgba(255,255,255,.14);
    background:linear-gradient(180deg, rgba(8,15,28,.82), rgba(9,17,31,.72));
    box-shadow:0 28px 64px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
  }
  .mobile-bottom-nav-glow {
    position:absolute; top:8px; bottom:8px; left:8px; width:calc(20% - 4px);
    border-radius:22px;
    background:
      radial-gradient(circle at 24% 18%, rgba(255,255,255,.78), rgba(255,255,255,.08) 26%, transparent 40%),
      linear-gradient(135deg, rgba(255,255,255,.17), rgba(255,255,255,.06));
    border:1px solid rgba(168,206,255,.45);
    box-shadow:0 0 0 1px rgba(255,255,255,.08) inset, 0 0 22px rgba(78,161,255,.26), 0 0 38px rgba(78,161,255,.14);
    backdrop-filter: blur(26px) saturate(145%);
    -webkit-backdrop-filter: blur(26px) saturate(145%);
    transition: transform .55s cubic-bezier(.2,.9,.2,1), width .42s cubic-bezier(.24,1,.3,1), opacity .25s ease;
    pointer-events:none;
    opacity:0;
    overflow:hidden;
  }
  .mobile-bottom-nav-glow::after {
    content:'';
    position:absolute; inset:0;
    background: radial-gradient(circle at 50% 10%, rgba(143,208,255,.48), transparent 58%);
    mix-blend-mode:screen; opacity:.75;
  }
  .mobile-nav-btn {
    position:relative; z-index:1;
    border:0; background:transparent; color:rgba(241,245,249,.82);
    min-height:72px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px;
    border-radius:20px; padding:8px 4px 10px; text-align:center;
  }
  .mobile-nav-btn.active { color:#fff; }
  .mobile-nav-icon { font-size:23px; line-height:1; }
  .mobile-nav-label { font-size:11px; font-weight:700; line-height:1.05; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
  .mobile-location-wrap { position:relative; min-width:0; }
  .mobile-nav-location { width:100%; }
  .mobile-nav-location .mobile-nav-label { max-width:76px; }
  .mobile-nav-caret { font-size:10px; margin-top:-2px; color:rgba(226,232,240,.7); }
  .mobile-location-menu {
    position:absolute; right:0; bottom:88px; min-width:min(280px,84vw); max-width:84vw; z-index:48;
    padding:8px; border-radius:18px; border:1px solid rgba(255,255,255,.12);
    background:rgba(7,14,27,.94); box-shadow:0 24px 60px rgba(0,0,0,.4);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
  }
  .mobile-location-menu button {
    width:100%; border:0; background:transparent; color:#fff; text-align:left;
    padding:12px 14px; border-radius:12px; font-weight:700;
  }
  .mobile-location-menu button small { display:block; margin-top:2px; color:var(--mobile-muted); font-weight:600; }
  .mobile-location-menu button.active, .mobile-location-menu button:hover { background:rgba(255,255,255,.08); }

  .toast {
    right:14px; left:14px; bottom:calc(104px + env(safe-area-inset-bottom,0px)); max-width:none;
    background:rgba(8,15,28,.94); border:1px solid rgba(255,255,255,.12); color:#fff;
    backdrop-filter: blur(18px);
  }
}

@media (max-width: 540px) {
  .dashboard-grid, .dashboard-grid.two, .kpi-grid, .kpi-grid.compact { grid-template-columns: 1fr; }
  .mobile-nav-label { font-size:10px; }
  .mobile-nav-location .mobile-nav-label { max-width:64px; }
}

/* v2.64: General is an internal status endpoint, never a user-facing Settings page. */
#view-settings .settings-pane[data-settings-pane="general"],
#view-settings .settings-tab[data-settings-tab="general"] { display:none !important; }

/* v2.80 - Prevent auth/session flicker during page refresh */
.portal-startup-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--theme-bg,#FFFFFF);
  color:var(--theme-accent,#526783);
  opacity:1;
  transition:opacity .12s ease;
}

.portal-startup-mark{
  width:42px;
  height:42px;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:21px;
  font-weight:850;
  background:var(--theme-accent,#526783);
  color:var(--theme-bg,#FFFFFF);
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

body:not(.portal-auth-pending) .portal-startup-overlay{
  opacity:0;
  pointer-events:none;
}


/* v2.80 - Startup auth cover */
.portal-startup-overlay.hidden{
  display:none !important;
}

/* v2.86 - Premium Dailo startup loader */
.portal-startup-mark{
  position:relative;
  width:48px;
  height:48px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:21px;
  font-weight:850;
  background:var(--theme-accent,#526783);
  color:var(--theme-bg,#FFFFFF);
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.portal-startup-mark::after{
  content:"";
  position:absolute;
  inset:-6px;
  border:2px solid transparent;
  border-top-color:currentColor;
  border-right-color:currentColor;
  border-radius:50%;
  animation:dailoStartupArc .9s linear infinite;
}

@keyframes dailoStartupArc{
  to{
    transform:rotate(360deg);
  }
}

@media (prefers-reduced-motion:reduce){
  .portal-startup-mark::after{
    animation:none;
  }
}


/* v2.87 - Dailo official brand loader */
.portal-startup-logo {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
  box-shadow: none;
  filter: none;
}

.portal-startup-overlay {
  background: #FFFFFF;
  color: #526783;
}

html[data-theme="dark"] .portal-startup-overlay {
  background: #181A1D;
  color: #91A4BE;
}

/* Dailo login brand */
.login-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-mark img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}


/* Time & Attendance */
.status-pill{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;background:#eef1f5;color:#4b5563}
.status-pill.worked{background:#e8f5ec;color:#176b38}.status-pill.incomplete{background:#fff4df;color:#8a5a00}.status-pill.absent{background:#fdeaea;color:#a52626}.status-pill.holiday{background:#e9eef8;color:#3f5f8f}
#view-tadaily .table-toolbar,#view-tasettings .table-toolbar{gap:12px;align-items:end}#view-tadaily .table-toolbar label,#view-tasettings label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:var(--muted,#68707c)}
#view-tadaily .table-toolbar input,#view-tadaily .table-toolbar select{min-height:38px}#taEmployeeDetailModal .modal-card{max-width:1100px;width:min(1100px,94vw)}

/* Time & Attendance monthly editor */
.ta-action-list{display:flex;flex-direction:column;gap:10px}.ta-action-list .secondary-btn{width:100%;text-align:left}.ta-day-row-holiday{background:rgba(66,133,244,.05)}.ta-day-row-absent{background:rgba(239,68,68,.04)}.ta-day-row-incomplete{background:rgba(245,158,11,.05)}

.link-btn{border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;text-align:left;cursor:pointer}.link-btn:hover{text-decoration:underline}

/* Time & Attendance — Edit Hours modal */
.ta-edit-hours{display:flex;flex-direction:column;gap:18px}
.ta-edit-hours-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ta-time-field{display:flex;flex-direction:column;gap:7px}
.ta-time-field>span{font-size:13px;font-weight:700;color:var(--text)}
.ta-time-field>span b{color:#c23b3b}
.ta-time-field>span em{font-size:11px;font-style:normal;font-weight:500;color:var(--muted);margin-left:5px}
.ta-time-field input{width:100%;box-sizing:border-box;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:var(--card,#fff);color:var(--text);font:inherit}
.ta-time-field input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(82,103,131,.12)}
.ta-edit-hours-summary{display:flex;justify-content:space-between;align-items:center;padding:15px 16px;border-radius:12px;background:var(--soft,#f5f6f8);border:1px solid var(--line)}
.ta-edit-hours-summary span{font-size:13px;color:var(--muted)}
.ta-edit-hours-summary strong{font-size:18px;color:var(--text)}
.ta-edit-validation{padding:10px 12px;border-radius:10px;background:rgba(194,59,59,.08);color:#a42f2f;font-size:12px}
@media (max-width:600px){
  .ta-edit-hours-grid{grid-template-columns:1fr}
}


/* CONSOLIDATED MOBILE WIDTH FIX V1 */
@media screen and (max-width:760px) {

  #view-consolidated {
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }

  #view-consolidated .kpi-grid,
  #view-consolidated .grid-2 {
    width:100%;
    max-width:100%;
    min-width:0;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #view-consolidated .card {
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }

  #view-consolidated .table-wrap {
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:auto !important;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
  }

  #view-consolidated .table-wrap table {
    width:max-content;
    min-width:100%;
    max-width:none;
    border-collapse:collapse;
  }

  #view-consolidated .table-wrap th,
  #view-consolidated .table-wrap td {
    white-space:nowrap;
  }

  #view-consolidated .card-head {
    min-width:0;
    max-width:100%;
  }

  #view-consolidated .table-wrap::-webkit-scrollbar {
    height:5px;
  }

  #view-consolidated .table-wrap::-webkit-scrollbar-thumb {
    background:rgba(100,116,139,.45);
    border-radius:10px;
  }
}

/* Dailo 2.80 - location settings and status filters, shared theme tokens. */
.location-settings-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px}
.location-settings-tab{display:flex;align-items:center;justify-content:center;gap:9px;padding:13px 10px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);font-size:13px}
.location-settings-tab span{font-size:18px;color:var(--accent)}
.location-settings-tab.active{border-color:var(--accent);background:var(--theme-surface-2,var(--card))}
.location-settings-tab:focus-visible,.location-status-filters button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.location-status-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.location-status-filters .mini-btn.active{background:var(--accent);color:var(--bg);border-color:var(--accent)}
@media(max-width:760px){.location-settings-tabs{gap:5px}.location-settings-tab{flex-direction:column;gap:5px;padding:10px 4px;font-size:11px}.location-settings-tab strong{white-space:normal}}

/* End of the Day detail navigation */
.eod-summary { margin: 16px 0; }
button.eod-kpi-link { font: inherit; color: var(--text); text-align: left; cursor: pointer; width: 100%; }
button.eod-kpi-link:hover, button.eod-kpi-link:focus-visible { border-color: var(--accent); }
#eodTable .click-row, [data-eod-row] { cursor: pointer; }

/* v2.90 · online list 789 uses the POS Screen Layout key-grid language */
.oc-head,.oc-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.oc-till-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;background:var(--surface-secondary,#f5f6f8);border-radius:12px;min-height:100px;margin:10px 0 18px}.oc-key{min-height:78px;border-radius:9px;border:1px solid var(--border,#d5dae0);background:var(--card,#fff);padding:10px;text-align:center;cursor:pointer;color:inherit;display:flex;flex-direction:column;justify-content:center;gap:5px}.oc-key small{opacity:.65}.oc-key strong{overflow-wrap:anywhere}.oc-key:hover,.oc-active{outline:2px solid var(--accent,#526783)}.oc-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:260px;overflow-y:auto}.oc-result{padding:10px;border:1px solid var(--border,#d5dae0);border-radius:8px;text-align:left;background:var(--card,#fff);color:inherit;display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer}.oc-result span{font-size:12px;opacity:.7}.oc-item-editor,.oc-email{margin:14px 0;padding:14px;border:1px solid var(--border,#d5dae0);border-radius:10px}.oc-item-editor label{display:block;margin-top:10px}@media(max-width:650px){.oc-till-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.oc-search-results{grid-template-columns:1fr}}
/* v2.92 Online Purchasing: real POS list 789 and customer collection experience */
.oc-missing{padding:27px;border:1px dashed var(--line);border-radius:16px;background:var(--card,#f5f6f8)}
.oc-manager-items{display:grid;gap:10px;margin:14px 0}.oc-manager-item{display:grid;grid-template-columns:minmax(170px,1fr) minmax(155px,.65fr) auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:12px}.oc-manager-item-info{display:flex;flex-direction:column;gap:3px}.oc-manager-item-info small{opacity:.65}.oc-manager-item details{grid-column:1/-1}.oc-manager-item details label{display:block;margin:10px 0}.oc-manager-item textarea,.oc-manager-item input,.oc-meta-grid input{width:100%}.oc-availability{border:1px solid #b5c9b9;background:#eef8f0;padding:12px;border-radius:10px;cursor:pointer;color:#195b34}.oc-availability.is-unavailable{border-color:#d9a9a9;background:#fff0ef;color:#a12b2b;font-weight:700}.oc-meta-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px}.oc-categories-head{margin-top:16px}
.oc-shop{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--bg,#fff)}.oc-shop-hero{padding:38px 34px;background:#232b35;color:white}.oc-shop-eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;opacity:.72}.oc-shop-hero h2{font-size:clamp(26px,3.5vw,40px);margin:11px 0}.oc-shop-hero p{margin:4px 0;color:#d6dce2}.oc-shop-notice{margin-top:19px;padding:12px 16px;border-left:3px solid #bdcbd7;background:rgba(255,255,255,.09);max-width:680px}.oc-shop-content{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;padding:24px}.oc-shop-category{margin:0 0 28px}.oc-shop-category h3{font-size:20px;padding-bottom:11px;border-bottom:1px solid var(--line)}.oc-shop-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.oc-shop-product{border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;flex-direction:column;justify-content:space-between;gap:20px;min-height:157px}.oc-shop-product h4{margin:0 0 6px;font-size:17px}.oc-shop-product p{font-size:13px;color:var(--muted);margin:0 0 12px}.oc-shop-counter{display:flex;align-items:center;justify-content:flex-end;gap:16px}.oc-shop-counter button{border:1px solid var(--line);border-radius:50%;width:34px;height:34px;background:transparent;font-size:19px;cursor:pointer}.oc-shop-checkout{align-self:start;position:sticky;top:20px;padding:21px;background:var(--card,#f5f6f8);border-radius:14px;border:1px solid var(--line)}.oc-shop-checkout h3{margin:0 0 19px}.oc-shop-checkout label{display:block;margin:12px 0}.oc-shop-checkout select,.oc-shop-checkout input{width:100%;margin-top:7px}.oc-shop-basket{padding:17px 0}.oc-shop-basket>div,.oc-shop-total{display:flex;justify-content:space-between;gap:12px;margin:9px 0}.oc-shop-total{border-top:1px solid var(--line);padding:15px 0;font-size:19px}.oc-shop-test{font-size:12px;opacity:.72}@media(max-width:850px){.oc-shop-content{grid-template-columns:1fr}.oc-shop-checkout{position:static}.oc-manager-item{grid-template-columns:1fr}.oc-manager-item details{grid-column:auto}.oc-meta-grid{grid-template-columns:1fr}.oc-shop-hero{padding:26px 20px}}

/* v2.92.1: Make the collection hero legible across White and Charcoal themes. */
.oc-shop .oc-shop-hero{background:#232b35!important;color:#f7f9fc!important}
.oc-shop .oc-shop-hero h2{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;opacity:1!important}
.oc-shop .oc-shop-hero .oc-shop-eyebrow{color:#d6e0ed!important;opacity:1!important}
.oc-shop .oc-shop-hero p{color:#d6dce2!important;-webkit-text-fill-color:#d6dce2!important}
.oc-shop .oc-shop-hero .oc-shop-notice{color:#f5f7fa!important;-webkit-text-fill-color:#f5f7fa!important}

.preorder-schedule-pickers{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.preorder-schedule-pickers>input,.preorder-schedule-pickers>select{min-width:140px;flex:1}
.preorder-schedule-pickers>label{flex:1;min-width:130px}

/* Dailo v3.11 Weekly Rota */
.ta-employee-tools{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 16px}.ta-role-row{display:flex;align-items:center;gap:8px;justify-content:space-between;border-bottom:1px solid var(--border,#ddd);padding:10px}.ta-rota-card{padding:0!important;overflow:hidden}.ta-rota-scroll{overflow:auto}.ta-rota-matrix{display:grid;grid-template-columns:minmax(200px,1.2fr) repeat(7,minmax(140px,1fr));min-width:1100px}.ta-rota-header{padding:18px 8px;text-align:center;background:var(--card,#f6f8fb);border:1px solid var(--border,#eee);font-weight:600}.ta-rota-name{padding:9px;display:flex;align-items:center;gap:12px;border:1px solid var(--border,#eee);min-height:90px}.ta-rota-name small{display:block;color:var(--muted,#8290a5)}.ta-rota-avatar{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;border-radius:50%;background:var(--card,#e6ebf3);font-weight:600}.ta-rota-cell{margin:4px;min-height:80px;border-radius:8px;border:0;text-align:left;padding:10px 12px;background:var(--card,#f0f2f5);display:flex;flex-direction:column;justify-content:center;gap:5px;font:inherit;cursor:pointer}.ta-rota-cell strong{font-size:13px}.ta-rota-cell span,.ta-rota-cell small{font-size:12px}.ta-rota-cell.planned{border-left:4px solid #758098;background:#e6e9ef;color:#34415b}.ta-rota-cell.worked{border-left:4px solid #09b873;background:#dcf7e7;color:#183e30}.ta-rota-cell.leave{border-left:4px solid #4788ff;background:#dce9ff;color:#1246b9}.ta-rota-cell.empty{align-items:center;color:#98a4b6}.ta-rota-legend{display:flex;flex-wrap:wrap;gap:20px;justify-content:flex-end;margin-top:16px}.ta-rota-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:6px}.ta-worked{background:#09b873}.ta-planned{background:#758098}.ta-leave{background:#4788ff}.ta-empty{background:#cbd5e1}.ta-holiday-days{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:8px;margin-top:12px;max-height:260px;overflow:auto}.ta-holiday-day{padding:8px;border:1px solid var(--border,#ddd);border-radius:8px;display:flex;align-items:center;gap:8px}

/* v3.11.2 Rota context menu, weekly totals */
.ta-rota-week-hours{font-weight:700;color:var(--text,#24272c)!important;margin-top:4px}.ta-rota-context{position:fixed;z-index:999999;background:var(--card,#fff);border:1px solid var(--border,#dce0e5);border-radius:10px;box-shadow:0 9px 28px #0003;padding:6px;min-width:195px}.ta-rota-context button{display:block;border:0;background:transparent;color:var(--text,#24272c);padding:10px 12px;width:100%;text-align:left;cursor:pointer;border-radius:6px}.ta-rota-context button:hover:not(:disabled){background:var(--hover,#e9ecf1)}.ta-rota-context button:disabled{opacity:.4;cursor:default}

/* v3.11.3 - manual manager attendance confirmation */
.ta-rota-cell.manual-confirmed{background:#dce9ff!important;color:#164da6!important;border-color:#a8c6fa!important}

/* v3.11.5: distinct leave and manual attendance legend */
.ta-rota-cell.leave{background:#ede1fb!important;color:#673b96!important;border-color:#d0b4ed!important}
.ta-rota-legend{display:flex;gap:14px;flex-wrap:wrap;margin:12px 0;color:var(--text-secondary,#69717e);font-size:12px}
.ta-rota-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:middle}

/* v3.11.9: optional read-only Daily Totals, aligned to the existing 8-column rota grid */
.ta-rota-summary-placeholder,.ta-rota-daily-card{border:1px solid var(--border,#ddd);padding:10px 8px;min-width:0;background:var(--card,#f6f8fb)}
.ta-rota-summary-placeholder{font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center}
.ta-rota-daily-card{display:flex;flex-direction:column;gap:5px;font-size:12px;min-height:110px}
.ta-rota-daily-card small{font-size:11px;color:var(--muted,#7a8698)}
.ta-rota-daily-card strong{font-size:12px;color:var(--text,#24272c)}
.ta-rota-summary-hours{font-weight:700;color:#15945a}
.ta-rota-summary-leave{color:#9862c9}
.ta-rota-weekly-totals{padding:16px;margin-top:12px;border:1px solid var(--border,#ddd);border-radius:10px;background:var(--card,#f6f8fb)}
.ta-rota-weekly-totals[hidden]{display:none!important}
.ta-rota-weekly-totals h3{font-size:15px;margin:0 0 12px}
.ta-rota-week-stats{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:12px}
.ta-rota-week-stats span{display:flex;flex-direction:column;gap:4px}.ta-rota-week-stats small{color:var(--muted,#7a8698)}
@media(max-width:700px){.ta-rota-week-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ta-rota-daily-card{font-size:11px;padding:7px 5px}}

/* v3.11.10: place weekly figures before rota; tidy controls and confirmation. */
.main:has(#view-tarota.active) .topbar #pageTitle{display:none!important}
#view-tarota .ta-rota-weekly-totals{margin:0 0 14px}
#view-tarota .ta-rota-cell.planned{background:#e6e9ef;color:#34415b;border-left:4px solid #758098}
#view-tarota .ta-rota-cell.worked{background:#d9f7e5;color:#176b45;border-left:4px solid #09b873}
#view-tarota .ta-rota-cell.manual-confirmed{background:#dce9ff!important;color:#164da6!important;border-left:4px solid #4788ff!important}
#view-tarota .ta-rota-cell.leave{background:#ede1fb!important;color:#673b96!important;border-left:4px solid #a66ad5!important}
.ta-rota-delete-warning,.ta-rota-paste-info{line-height:1.55}
.ta-rota-delete-warning p,.ta-rota-paste-info p{margin:10px 0}
.ta-rota-paste-info label{display:block;margin:12px 0 6px;font-weight:600}
.ta-rota-paste-info select{width:100%;padding:10px;border-radius:8px;border:1px solid var(--border,#dce0e5);background:var(--card,#fff);color:var(--text,#24272c)}
.ta-rota-delete-action{background:#b91c1c!important;color:#fff!important;border:1px solid #b91c1c!important;border-radius:8px!important;padding:10px 18px!important}
.ta-rota-delete-action:hover{background:#991b1b!important}
.ta-rota-weekly-totals{transition:none}

/* v3.13 Standard Hours — respects existing light/dark variables */
.ta-standard-hours{margin:18px 0 8px;padding:16px;border:1px solid var(--border-color, #7774);border-radius:14px;background:var(--card-bg,transparent)}
.ta-standard-title{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.ta-standard-title h3{margin:0 0 12px}.ta-standard-hours>label{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.ta-standard-hours select,.ta-standard-hours input[type=date],.ta-standard-days input[type=time]{padding:7px;border:1px solid var(--border-color,#8885);border-radius:8px;background:var(--surface,#fff);color:inherit}
.ta-standard-weeks{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.ta-standard-weeks button.active{font-weight:700;outline:2px solid var(--accent,#526783)}
.ta-standard-day{display:grid;grid-template-columns:minmax(105px,1fr) minmax(85px,1fr) minmax(85px,1fr);align-items:center;gap:9px;margin:5px 0}
.ta-standard-days{max-width:520px}.ta-standard-day label{display:flex;align-items:center;gap:6px}
@media(max-width:600px){.ta-standard-hours{padding:10px}.ta-standard-day{gap:4px;grid-template-columns:minmax(90px,1fr) minmax(78px,1fr) minmax(78px,1fr)}.ta-standard-days input[type=time]{width:100%;box-sizing:border-box}}

/* v3.13.1: keep Employee Save visible and form body scrollable on all screens */
#taEmployeeModal .ta-employee-modal{max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden}
#taEmployeeModal #taEmployeeForm{display:flex;flex-direction:column;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:0}
#taEmployeeModal #taEmployeeForm .modal-footer{position:sticky;bottom:0;z-index:5;flex-shrink:0;background:var(--surface,#fff);padding:14px 18px;border-top:1px solid var(--border-color,#ddd);display:flex;justify-content:flex-end;gap:12px}
.ta-standard-shared{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:12px 0}.ta-standard-shared label{display:flex;flex-direction:column;gap:5px}.ta-standard-shared input{max-width:135px}
@media(max-width:600px){#taEmployeeModal .ta-employee-modal{max-height:calc(100dvh - 10px)}#taEmployeeModal #taEmployeeForm .modal-footer{padding:12px}}

/* v3.13.2 — Employee detail workspace and mobile sticky rota column */
#taEmployeeModal:not(.hidden){position:fixed;inset:0;z-index:1100;display:flex;align-items:stretch;justify-content:center;background:var(--bg,#fff)}
#taEmployeeModal .ta-employee-modal{width:min(1100px,100%);max-width:none;height:100%;max-height:100%;border-radius:0;display:flex;flex-direction:column}
#taEmployeeModal .ta-employee-modal form{overflow-y:auto;flex:1;min-height:0;padding-bottom:12px}
#taEmployeeModal .modal-footer{position:sticky;bottom:0;z-index:5;background:var(--card,#fff);padding:12px 16px;border-top:1px solid var(--border,#ddd)}
.ta-full-width{grid-column:1/-1}
.ta-rota-matrix{grid-template-columns:minmax(200px,1.2fr) repeat(var(--rota-days,7),minmax(140px,1fr));width:max-content;min-width:100%}
.ta-rota-matrix>.ta-rota-name{position:sticky;left:0;z-index:3;background:var(--surface,#fff);min-width:200px}
.ta-rota-matrix>.ta-rota-name.ta-rota-header{z-index:5;background:var(--card,#f6f8fb)}
@media(max-width:700px){.ta-rota-matrix{grid-template-columns: minmax(130px,150px) repeat(var(--rota-days,7),minmax(130px,1fr))}.ta-rota-matrix>.ta-rota-name{min-width:130px;max-width:150px;padding:6px;gap:5px;font-size:12px}.ta-rota-avatar{min-width:28px;height:28px}.ta-rota-scroll{max-width:100%;overscroll-behavior-x:contain}#taEmployeeModal .ta-employee-modal{width:100vw}.ta-rota-range-options{width:100%}}

/* v3.13.11 — fix duplicate mobile employees and the full-page employee workspace */
.ta-mobile-employee-cards{display:none}
#taEmployeeModal #taEmployeeForm>.form-grid,
#taEmployeeModal .ta-personal-editor>.form-grid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 22px!important;align-items:start;}
#taEmployeeModal #taEmployeeForm>.form-grid>label,
#taEmployeeModal .ta-personal-editor>.form-grid>label {min-width:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;line-height:1.4;}
#taEmployeeModal #taEmployeeForm>.form-grid>label input,
#taEmployeeModal #taEmployeeForm>.form-grid>label select,
#taEmployeeModal .ta-personal-editor>.form-grid>label input,
#taEmployeeModal .ta-personal-editor>.form-grid>label select,
#taEmployeeModal .ta-personal-editor>.form-grid>label textarea {display:block;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
#taEmployeeModal .ta-personal-editor .ta-full-width{grid-column:1/-1}
#taEmployeeModal.ta-location-france #taEmployeeServerField{display:none!important}
@media(max-width:640px){
 #taEmployeesTable>table{display:none!important}
 #taEmployeesTable{max-width:100%!important;width:100%!important;overflow:visible!important;min-width:0!important}
 #taEmployeesTable .ta-mobile-employee-cards{display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px 0}
 #taEmployeesTable .ta-mobile-employee-card{display:block!important;min-width:0!important;padding:16px!important;border:1px solid var(--border-color,#8884);border-radius:16px;background:var(--card-bg,var(--surface,#fff));box-sizing:border-box}
 #taEmployeesTable .ta-mobile-employee-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
 #taEmployeesTable .ta-mobile-employee-head strong{display:block;font-size:16px;overflow-wrap:anywhere}
 #taEmployeesTable .ta-mobile-employee-head small{display:block;opacity:.7;margin-top:4px}
 #taEmployeesTable .ta-mobile-employee-status{font-size:12px;white-space:nowrap;border-radius:20px;padding:5px 9px;background:var(--surface,#8882)}
 #taEmployeesTable .ta-mobile-employee-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 0}
 #taEmployeesTable .ta-mobile-employee-details small{display:block;opacity:.65;margin-bottom:5px}
 #taEmployeesTable .ta-mobile-employee-details span{display:block;overflow-wrap:anywhere}
 #taEmployeesTable .ta-mobile-employee-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #taEmployeesTable .ta-mobile-employee-actions button{min-width:0;min-height:42px;width:100%;white-space:normal!important;overflow-wrap:anywhere}
 #taEmployeeModal .ta-employee-modal{width:100vw!important;max-width:100vw!important;min-width:0!important}
 #taEmployeeModal #taEmployeeForm>.form-grid,
 #taEmployeeModal .ta-personal-editor>.form-grid{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 #taEmployeeModal .ta-standard-hours{padding:14px!important}
 #view-taemployees .card, #view-taemployees .table-wrap{min-width:0;max-width:100%;overflow:visible}
}
/* Preserve the hidden state for country-specific fields despite form-grid rules. */
#taEmployeeModal .ta-personal-editor>.form-grid>label.hidden {display:none!important}

/* v3.13.50 — multi-product search and product performance controls */
#view-products .dailo-multi-product-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%}
#productSearchSlots{display:flex;flex-direction:column;gap:7px;min-width:220px;max-width:100%}
#productSearchSlots input{min-width:200px;max-width:100%;width:260px}
.dailo-product-search-row{display:flex;gap:5px;align-items:center}
.dailo-product-search-row button{min-width:35px;padding:6px 9px}
#view-productperformance .table-tools label{display:flex;align-items:center;gap:7px}
#view-productperformance .table-tools input{min-width:160px;max-width:220px}
@media(max-width:720px){#view-products .dailo-multi-product-search{width:100%}#productSearchSlots{width:100%}#productSearchSlots input{width:100%;min-width:0}#view-productperformance .table-tools{width:100%}#view-productperformance .table-tools input{max-width:100%}}
/* v3.13.52 Online Orders POS list selector */
.oc-list-settings{border:1px solid var(--line);border-radius:12px;padding:18px;margin:14px 0}.oc-list-settings h4{margin-top:0}.oc-list-row{display:flex;align-items:end;gap:12px;margin:8px 0}.oc-list-row label{flex:1}.oc-list-row select,.oc-list-settings input[data-oc-link]{width:100%}.oc-menu-tile{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 20px;margin:9px 0;background:var(--card,#fff);border:1px solid var(--line);border-radius:12px;font-size:17px;font-weight:650;cursor:pointer;text-align:left}.oc-menu-tile span:last-child{font-size:25px}.oc-list-back{display:flex;align-items:center;gap:15px;margin-bottom:16px}.oc-list-back h3{margin:0}@media(max-width:640px){.oc-list-row{align-items:stretch;flex-direction:column}}

/* v3.13.53 Online Orders grouped product editor and design studio */
.oc-product-list{border:1px solid var(--line);border-radius:12px;margin:10px 0;overflow:hidden}.oc-product-list-toggle{display:flex;width:100%;justify-content:space-between;align-items:center;text-align:left;background:var(--card,#fff);color:inherit;border:0;padding:16px 18px;cursor:pointer;font-size:16px}.oc-product-list-toggle small{display:block;color:var(--muted,#667085);font-size:12px;margin-top:4px}.oc-product-list-toggle>span:last-child{font-size:24px}.oc-product-list-body{border-top:1px solid var(--line);padding:10px 14px}.oc-design-editor{padding:10px 0}.oc-design-head p{color:var(--muted,#667085)}.oc-design-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.oc-design-grid label{display:flex;flex-direction:column;gap:8px}.oc-design-grid input,.oc-design-grid textarea{width:100%}.oc-design-wide{grid-column:1/-1}.oc-design-upload{border:1px solid var(--line);padding:15px;border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.oc-design-upload p{margin:0;color:var(--muted,#667085);font-size:13px}.oc-design-upload input{max-width:100%}.oc-design-thumb{max-width:100%;width:230px;height:120px;object-fit:contain;border-radius:10px;background:#e5e7eb}.oc-design-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.oc-design-preview-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;margin:12px 0}.oc-shop-hero{background-size:cover;background-position:center}.oc-shop-logo{display:block;max-width:200px;max-height:95px;object-fit:contain;margin-bottom:15px}.oc-shop .oc-menu-tile:hover{border-color:var(--oc-accent)}.oc-shop .oc-shop-checkout .btn.primary{background:var(--oc-accent)}.oc-design-footer{font-size:12px;color:var(--muted,#667085);margin-top:14px}@media(max-width:700px){.oc-design-grid{grid-template-columns:1fr}.oc-design-wide{grid-column:auto}.oc-design-preview-banner{flex-direction:column;align-items:stretch}}
