@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #8a94a5;
  --line: #e9edf2;
  --canvas: #f7f8fa;
  --white: #fff;
  --navy: #111827;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-soft: #edf5ff;
  --gold: #c99b4b;
  --green: #199b72;
  --red: #e46b72;
  --shadow: 0 14px 40px rgba(27, 44, 71, .08);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 13px; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(59,130,246,.25); outline-offset: 2px; }
.login-screen { min-height: 100vh; display: grid; place-items: center start; padding: 48px clamp(24px,8vw,130px) 24px; position: relative; overflow: hidden; isolation: isolate; background: #0c1422; color: #172335; }
.login-backdrop,.login-grid { position: absolute; inset: 0; pointer-events: none; }
.login-backdrop { z-index: -1; overflow: hidden; background: linear-gradient(90deg,rgba(5,12,25,.94) 0%,rgba(5,12,25,.78) 42%,rgba(5,12,25,.08) 100%),url("images/Vytron POS Retail Technology Showcase-2.png") center right/cover no-repeat,#0c1422; }
.login-grid { opacity: .14; background-image: linear-gradient(rgba(167,197,225,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(167,197,225,.18) 1px,transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom,transparent 3%,#000 85%); }
.login-glow { position: absolute; width: 440px; height: 440px; border: 1px solid rgba(105,190,242,.12); border-radius: 50%; }
.login-glow:before,.login-glow:after { content: ''; position: absolute; inset: 30px; border: 1px solid rgba(105,190,242,.1); border-radius: 50%; }
.login-glow:after { inset: 74px; }
.login-glow-one { top: -240px; left: -100px; box-shadow: 0 0 110px rgba(48,142,206,.1); }
.login-glow-two { width: 560px; height: 560px; right: -270px; bottom: -315px; border-color: rgba(201,155,75,.14); }
.login-glow-two:before,.login-glow-two:after { border-color: rgba(201,155,75,.1); }
.login-content { width: min(100%,430px); display: flex; flex-direction: column; align-items: center; gap: 30px; }
.login-brand { display: inline-flex; align-items: center; justify-content: center; width: min(100%,122px); height: 150px; overflow: hidden; text-decoration: none; }
.login-brand img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.login-brand-mark { width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.36); border-radius: 14px; display: grid; place-items: center; font: 800 29px Manrope,sans-serif; position: relative; }
.login-brand-mark span { color: #57b6fb; font-size: 14px; position: absolute; top: 0; right: 7px; }
.login-brand-copy { display: flex; flex-direction: column; gap: 4px; }
.login-brand-copy strong { font: 800 24px Manrope,sans-serif; letter-spacing: -1px; }
.login-brand-copy strong span { color: #57b6fb; }
.login-brand-copy small { color: #a4b4c6; font-size: 8px; letter-spacing: 1.35px; }
.login-card { width: 100%; padding: 36px 38px 28px; border: 1px solid rgba(255,255,255,.64); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.login-card-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #edf5ff; color: #4388d5; font-size: 18px; margin-bottom: 22px; }
.login-eyebrow { color: #aa813a; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.login-card h1 { margin-top: 9px; font: 700 29px Manrope,sans-serif; letter-spacing: -1px; color: #172335; }
.login-subtitle { margin-top: 8px; color: #8490a0; font-size: 12px; line-height: 1.6; }
.login-form { display: grid; gap: 17px; margin-top: 28px; }
.login-field { display: grid; gap: 8px; color: #7a8798; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.login-field select,.login-field input { width: 100%; min-height: 47px; border: 1px solid #e1e7ef; border-radius: 8px; background: #fff; color: #273448; padding: 0 13px; font-size: 12px; letter-spacing: normal; }
.login-field select:focus,.login-field input:focus { border-color: #7eafe9; outline: 3px solid rgba(59,130,246,.13); }
.login-field input::placeholder { color: #aeb8c5; }
.login-error { color: #c04f58; font-size: 11px; margin-top: -7px; }
.login-submit { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 8px; background: linear-gradient(110deg,#357bd3,#2368bd); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 7px 17px rgba(47,113,196,.24); transition: transform .16s,box-shadow .16s; }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(47,113,196,.32); }
.login-submit span { font-size: 17px; }
.login-security { margin-top: 22px; color: #9aa4b1; text-align: center; font-size: 9px; }
.login-footer { color: #b7c5d4; font-size: 10px; letter-spacing: .35px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--navy); color: #a7b0be; display: flex; flex-direction: column; padding: 27px 15px 15px; flex: 0 0 250px; }
.brand { display: flex; align-items: center; justify-content: center; padding: 0 0 18px; text-decoration: none; color: white; }
.brand img { display: block; width: min(100%,122px); height: 150px; object-fit: cover; object-position: left center; }
.brand-mark { width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.32); border-radius: 12px; display: grid; place-items: center; font: 800 24px Manrope,sans-serif; color: #fff; position: relative; }
.brand-mark span { color: #54bafa; font-size: 13px; position: absolute; top: -1px; right: 6px; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font: 800 19px Manrope,sans-serif; letter-spacing: -.8px; color: white; }
.brand-copy strong span { color: #57b6fb; }
.brand-copy small { color: #7f8b9b; font-size: 8px; letter-spacing: 1.15px; }
.workspace-label,.nav-label { color: #788494; font-size: 9px; font-weight: 700; letter-spacing: 1.25px; padding: 0 12px 9px; }
.site-switcher { border: 1px solid #293345; background: #192334; border-radius: 9px; color: #dce2eb; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; margin: 0 2px 29px; cursor: pointer; }
.site-dot { width: 8px; height: 8px; background: #65d8ad; box-shadow: 0 0 12px #65d8ad66; border-radius: 50%; flex: 0 0 auto; }
.site-switcher span:nth-child(2),.profile-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.site-switcher strong,.profile-copy strong { font-size: 11px; font-weight: 600; color: #f5f7fb; }
.site-switcher small,.profile-copy small { font-size: 9px; color: #8793a3; }
.chevron { color: #7f8b9b; font-size: 16px; }
.nav-label { padding-bottom: 10px; }
.navigation { display: flex; flex-direction: column; gap: 4px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #a7b0be; display: flex; align-items: center; text-align: left; gap: 11px; height: 39px; padding: 0 12px; border-radius: 7px; cursor: pointer; font-size: 11px; transition: background .16s,color .16s; }
.nav-item:hover { background: #1d293a; color: #fff; }
.nav-item.active { color: #fff; background: #223b5d; box-shadow: inset 2px 0 #53b9ff; }
.nav-icon { width: 17px; color: #8d9bac; font-size: 15px; text-align: center; }
.nav-item.active .nav-icon { color: #58bdff; }
.nav-item kbd { margin-left: auto; font-size: 9px; color: #8794a5; }
.nav-count { margin-left: auto; background: #402b38; color: #f19b8c; font-size: 9px; border-radius: 20px; padding: 2px 7px; }
.sidebar.cashier-mode .workspace-label,.sidebar.cashier-mode .site-switcher,.sidebar.cashier-mode .nav-label,.sidebar.cashier-mode .navigation .nav-item:not([data-page="pos"]):not([data-page="customers"]),.sidebar.cashier-mode .sidebar-bottom > .nav-item[data-page],.sidebar.cashier-mode .help-card { display: none; }
.sidebar.cashier-mode .brand { padding-bottom: 28px; }
.sidebar.cashier-mode .navigation { margin-top: 3px; }
.sidebar.reception-mode .workspace-label,.sidebar.reception-mode .site-switcher,.sidebar.reception-mode .nav-label,.sidebar.reception-mode .navigation .nav-item:not([data-page="bookings"]):not([data-page="cash"]),.sidebar.reception-mode .sidebar-bottom > .nav-item[data-page],.sidebar.reception-mode .help-card { display: none; }
.sidebar.reception-mode .brand { padding-bottom: 28px; }
.sidebar.reception-mode .navigation { margin-top: 3px; }
.sidebar-bottom { margin-top: auto; }
.help-card { border: 1px solid #2a3444; border-radius: 9px; padding: 13px; margin: 19px 2px 14px; display: flex; flex-direction: column; gap: 7px; position: relative; overflow: hidden; }
.help-card:after { content: ''; position: absolute; width: 75px; height: 75px; right: -40px; top: -35px; border-radius: 50%; background: #315886; filter: blur(1px); opacity: .5; }
.help-orb { color: #65c2fc; font-size: 15px; }
.help-card strong { color: #e5e9ef; font-size: 10px; }
.help-card>span:nth-of-type(2) { color: #8490a0; font-size: 9px; }
.help-card button { padding: 0; border: 0; color: #6bbefa; background: none; text-align: left; font-size: 9px; margin-top: 4px; cursor: pointer; }
.profile-button { width: 100%; border: 0; border-top: 1px solid #293345; background: none; color: #fff; display: flex; align-items: center; gap: 10px; padding: 15px 7px 3px; text-align: left; cursor: pointer; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(140deg,#d9e8ff,#7297d0); color: #243a5a; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.main-area { flex: 1; min-width: 0; }
.topbar { height: 66px; padding: 0 35px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #9aa3b0; font-size: 11px; }
.breadcrumb strong { color: #293344; font-weight: 600; }
.crumb-slash { color: #d6dae0; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.connection-pill { display: flex; align-items: center; gap: 7px; color: #84909f; font-size: 10px; }
.connection-dot { width: 7px; height: 7px; background: #29b485; border-radius: 50%; box-shadow: 0 0 0 3px #e6f7f1; }
.connection-pill.offline .connection-dot { background: #dfab4d; box-shadow: 0 0 0 3px #fff3da; }
.connection-pill.offline { color: #b28941; }
.offline-banner { display: flex; align-items: center; gap: 10px; padding: 9px 35px; background: #fff3da; border-bottom: 1px solid #f0dda9; color: #8a6420; font-size: 11px; font-weight: 600; }
.offline-banner[hidden] { display: none; }
.offline-banner.error { background: #fdecec; border-bottom-color: #f3c7c7; color: #a33b3b; }
.offline-banner-icon { font-size: 13px; }
.offline-banner-action { margin-left: auto; border: 0; border-radius: 6px; background: #8a6420; color: #fff; padding: 5px 11px; font-size: 10px; font-weight: 700; cursor: pointer; }
.offline-banner.error .offline-banner-action { background: #a33b3b; }
.offline-banner-action[hidden] { display: none; }
.icon-button { border: 0; background: none; width: 30px; height: 30px; color: #748093; cursor: pointer; font-size: 15px; position: relative; }
.notification-button i, .queue-button i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); top: 5px; right: 5px; }
.queue-button i { background: #d06a4a; }
.queue-button i[hidden] { display: none; }
.topbar-divider { height: 20px; border-left: 1px solid var(--line); }
.date-button { background: none; border: 0; display: flex; align-items: center; gap: 9px; color: #566174; font-size: 10px; cursor: pointer; }
.calendar-icon { color: #8290a1; font-size: 14px; }
.mobile-menu { display: none; }
.page-content { padding: 28px 35px 36px; max-width: 1600px; margin: auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.eyebrow { font-size: 9px; letter-spacing: 1.2px; color: var(--gold); font-weight: 700; margin-bottom: 7px; }
h1,h2,h3,p { margin: 0; }
h1 { font: 700 23px Manrope,sans-serif; letter-spacing: -.65px; color: #1b2533; }
.page-subtitle { color: #8c96a5; font-size: 11px; margin-top: 6px; }
.heading-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.button { border: 1px solid #e1e6ed; background: white; color: #526073; border-radius: 6px; padding: 9px 13px; font-size: 10px; font-weight: 600; cursor: pointer; transition: .15s; }
.button:hover { border-color: #9bb9e5; color: #356cb9; }
.button.primary { border-color: var(--blue); background: var(--blue); color: white; box-shadow: 0 4px 11px #3b82f62b; }
.button.primary:hover { background: var(--blue-dark); }
.button.dark { background: #172335; color: white; border-color: #172335; }
.button.gold { color: #986e27; background: #fffaf0; border-color: #efe1c1; }
.button.small { padding: 6px 9px; font-size: 9px; }
.icon-inline { margin-right: 6px; font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 19px; }
.stat-card { background: #fff; border: 1px solid #edf0f4; border-radius: 8px; padding: 15px 17px; min-height: 97px; position: relative; }
.stat-top { display: flex; justify-content: space-between; color: #8c96a4; font-size: 10px; align-items: center; }
.stat-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #edf5ff; color: #4b8ce3; font-size: 12px; }
.stat-value { font: 700 20px Manrope,sans-serif; letter-spacing: -.5px; margin-top: 10px; }
.stat-foot { color: #9ba4b0; font-size: 9px; margin-top: 4px; }
.positive { color: #239c75; } .negative { color: #df7777; }
.panel { background: #fff; border: 1px solid #edf0f4; border-radius: 8px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #f0f2f5; }
.panel-heading h2 { font: 700 12px Manrope,sans-serif; }
.panel-heading p { color: #9aa3af; font-size: 9px; margin-top: 4px; }
.panel-body { padding: 16px 18px; }
.link-button { border: 0; padding: 0; background: none; color: #4889dc; cursor: pointer; font-size: 10px; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(245px,1fr); gap: 15px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.dashboard-panel.wide { grid-column: 1 / -1; }
.dashboard-skeleton { min-height: 190px; background: linear-gradient(105deg,#fff 35%,#f5f7fa 50%,#fff 65%); background-size: 220% 100%; animation: dashboard-shimmer 1.3s linear infinite; }
@keyframes dashboard-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.mix-row,.rank-row { display: grid; grid-template-columns: minmax(80px,1fr) minmax(40px,2fr) auto auto; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f2f4f7; font-size: 9px; }
.mix-row:last-child,.rank-row:last-child { border-bottom: 0; }
.mix-row span,.rank-name { overflow: hidden; color: #4b5869; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mix-row strong,.rank-row strong { color: #303b4b; font-size: 9px; white-space: nowrap; }
.mix-row small,.rank-row small { color: #9aa3af; font-size: 8px; }
.mix-track,.rank-track { height: 6px; border-radius: 6px; background: #eef1f5; overflow: hidden; }
.mix-track i,.rank-track i { display: block; height: 100%; border-radius: 6px; background: #4d8bec; }
.rank-track.alt i { background: #37bc8a; }
.heat-grid { display: grid; grid-template-columns: repeat(24,minmax(0,1fr)); gap: 3px; align-items: end; min-height: 96px; }
.heat-cell { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.heat-cell i { display: block; width: 100%; min-height: 4px; border-radius: 3px 3px 1px 1px; background: linear-gradient(#5d9bf0,#1d5fbd); }
.heat-cell span { color: #9aa3af; font-size: 7px; transform: rotate(-45deg); transform-origin: center; white-space: nowrap; }
.alert-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f2f4f7; font-size: 9px; }
.alert-row:last-child { border-bottom: 0; }
.alert-row div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.alert-row strong { color: #364152; font-size: 9px; }
.alert-row small { color: #9aa3af; font-size: 8px; }
.alert-row > strong { color: #303b4b; white-space: nowrap; }
.dashboard-grid .negative strong,.dashboard-grid td.negative { color: #c14b4b; }
.dashboard-grid .positive strong,.dashboard-grid td.positive { color: #247c59; }
.dashboard-grid .table-wrap td,.dashboard-grid .table-wrap th { white-space: nowrap; }
.report-filters { display: flex; align-items: end; gap: 12px; padding: 14px 16px; margin-bottom: 19px; flex-wrap: wrap; }
.report-generated { display: block; margin: -8px 0 14px; }
.report-filters .form-field { width: 190px; }
.report-filters .form-field span { color: #657185; font-size: 9px; font-weight: 600; }
.report-filters .field-help { margin: 0 0 8px auto; }
.report-tabs { display: flex; gap: 6px; overflow-x: auto; margin: -4px 0 14px; padding: 4px 0; border-bottom: 1px solid #e8edf3; }
.report-tab { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 10px 13px; color: #7a8695; font-size: 10px; cursor: pointer; }
.report-tab:hover { color: #3b7dd0; }
.report-tab.active { border-bottom-color: #4b8ce3; color: #3478ca; font-weight: 600; }
.report-tab:focus-visible { outline: 3px solid rgba(59,130,246,.25); outline-offset: -2px; }
.report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.report-section { margin-bottom: 14px; }
.report-list { display: flex; flex-direction: column; }
.report-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f1f3f6; color: #354052; font-size: 10px; }
.report-row:first-child { padding-top: 0; }
.report-row:last-child { padding-bottom: 0; border-bottom: 0; }
.report-row small { display: block; margin-top: 4px; color: #9aa3af; font-size: 9px; }
.form-field .toolbar .field-select { flex: 1; min-width: 0; }
.chart-area { height: 210px; padding: 20px 8px 0 0; display: flex; align-items: end; gap: 13px; position: relative; }
.chart-area:before,.chart-area:after { content: ''; position: absolute; left: 0; right: 0; border-top: 1px dashed #edf0f4; }
.chart-area:before { top: 32%; } .chart-area:after { top: 65%; }
.bar-column { height: 100%; flex: 1; z-index: 1; display: flex; align-items: center; flex-direction: column; justify-content: end; gap: 7px; }
.bar-pair { height: calc(100% - 19px); width: 100%; display: flex; gap: 4px; justify-content: center; align-items: end; }
.bar { width: 11px; min-height: 8px; border-radius: 3px 3px 0 0; background: #b7d8ff; }
.bar.alt { background: #458fe8; }
.bar-label { font-size: 8px; color: #9ba4b1; }
.chart-legend { display: flex; gap: 14px; color: #929ca9; font-size: 9px; }
.chart-legend span:before { content: ''; width: 7px; height: 7px; display: inline-block; border-radius: 2px; background: #b7d8ff; margin-right: 5px; }
.chart-legend span+span:before { background: #458fe8; }
.activity-list,.stock-list { display: flex; flex-direction: column; }
.inventory-history-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.movement-list { display: flex; flex-direction: column; }
.movement-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid #f0f2f5; }
.movement-row:last-child { border-bottom: 0; }
.movement-row strong { display: block; color: #384354; font-size: 10px; }
.movement-row small { display: block; color: #929caa; font-size: 9px; margin-top: 4px; }
.movement-variance.positive { color: #349572; }
.movement-variance.negative { color: #c37865; }
@media (max-width: 1200px) { .inventory-history-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.movement-variance { white-space: nowrap; color: #c37865; font-size: 10px; font-weight: 700; }
.cash-filters { display: flex; align-items: end; gap: 12px; padding: 14px 16px; margin-bottom: 19px; }
.cash-filters .form-field { width: 190px; }
.cash-filters .form-field span { color: #657185; font-size: 9px; font-weight: 600; }
.cash-filters .field-help { margin: 0 0 8px auto; }
.cash-stat-grid .stat-card { min-width: 0; }
.cash-wizard { padding: 14px 18px; margin-bottom: 14px; }
.cash-stepper { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.cash-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e8ecf1; border-radius: 7px; background: #fcfdff; color: #8993a0; }
.cash-step>span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: #eef1f5; font-size: 10px; font-weight: 700; }
.cash-step strong { display: block; color: #344052; font-size: 10px; }
.cash-step small { display: block; margin-top: 2px; font-size: 9px; }
.cash-step.active { border-color: #78a7ed; background: #f3f7ff; }
.cash-step.active>span { background: #1d2b3c; color: #fff; }
.cash-step.done>span { background: #d9eee4; color: #2f7657; }
.end-of-day-summary { padding: 4px 14px; }
.end-of-day-summary .field-help { margin-top: 12px; }
.cash-workflow-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,1fr); gap: 14px; margin-bottom: 14px; }
.cash-reconciliation-body { padding: 14px 18px; }
.cash-reconcile-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f2f5; color: #748093; font-size: 10px; }
.cash-reconcile-row strong { text-align: right; color: #344052; }
.cash-reconcile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.cashup-breakdown { display: flex; flex-direction: column; padding: 10px 12px; margin-bottom: 14px; border: 1px solid #edf0f4; border-radius: 7px; background: #f9fafc; }
.cashup-breakdown>div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: #748093; font-size: 10px; }
.cashup-breakdown>div:last-child { border-top: 1px solid #e8ecf1; margin-top: 4px; padding-top: 10px; font-weight: 700; }
.cashup-breakdown strong { color: #344052; }
.cash-sales-panel { margin-top: 4px; }
.cash-reconcile-actions button { min-height: 38px; }
.activity-item,.stock-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f1f3f6; }
.activity-item:last-child,.stock-item:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-avatar { width: 29px; height: 29px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: #f0f5ff; color: #5482c0; font-size: 9px; font-weight: 700; }
.activity-info,.stock-info { flex: 1; min-width: 0; }
.activity-info strong,.stock-info strong { display: block; font-size: 10px; font-weight: 600; }
.activity-info small,.stock-info small { display: block; color: #9aa3af; font-size: 9px; margin-top: 4px; }
.activity-amount { font-size: 10px; font-weight: 600; }
.stock-badge { border-radius: 4px; padding: 4px 6px; background: #fff3ed; color: #dd835f; font-size: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { text-align: left; padding: 11px 14px; color: #9aa3b0; background: #fbfcfd; border-bottom: 1px solid #f0f2f5; font-size: 9px; font-weight: 600; }
td { padding: 12px 14px; border-bottom: 1px solid #f0f2f5; font-size: 10px; color: #4e5a6c; }
tbody tr:last-child td { border-bottom: 0; }
.product-cell { display: flex; align-items: center; gap: 9px; color: #354052; font-weight: 600; }
.product-thumb { width: 31px; height: 31px; border-radius: 7px; background: #f1f5fa; display: grid; place-items: center; font-size: 16px; }
.product-photo { object-fit: cover; }
.product-image-editor { display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
.product-image-preview { width: 100%; height: 88px; flex: 0 0 88px; border-radius: 7px; background: #f1f5fa; display: grid; place-items: center; overflow: hidden; font-size: 32px; }
.product-image-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.product-image-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.product-image-actions .field-help { flex-basis: 100%; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 15px; padding: 4px 8px; background: #edf8f4; color: #299673; font-size: 8px; }
.status:before { content: ''; height: 5px; width: 5px; background: currentColor; border-radius: 50%; }
.status.warning { background: #fff5e7; color: #c48e36; }
.status.queued { background: #eff5ff; color: #5484c5; }
.status.danger { background: #fff0ef; color: #cf6764; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.search-box { min-width: 200px; border: 1px solid #e6eaf0; border-radius: 6px; background: #fff; padding: 8px 10px; display: flex; align-items: center; gap: 7px; color: #a0a9b5; }
.search-box input { border: 0; outline: 0; min-width: 0; width: 100%; font-size: 10px; color: var(--ink); }
.search-box input::placeholder { color: #a0a9b5; }
.pos-layout { display: grid; grid-template-columns: minmax(0,1fr) 325px; gap: 16px; align-items: start; }
.pos-menu { min-width: 0; }
.pos-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.search-box.pos-search { flex: 1; max-width: 340px; padding: 10px 12px; }
.pos-search input { font-size: 11px; }
.quick-tools { display: flex; gap: 8px; }
.category-row { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 16px; padding-bottom: 2px; }
.category-chip { background: #fff; border: 1px solid #e8ecf1; color: #758193; padding: 7px 13px; font-size: 10px; border-radius: 20px; white-space: nowrap; cursor: pointer; }
.category-chip.active { color: white; background: #1d2b3c; border-color: #1d2b3c; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.menu-card { background: white; border: 1px solid #edf0f4; border-radius: 8px; padding: 10px; cursor: pointer; text-align: left; transition: transform .16s,border .16s,box-shadow .16s; min-width: 0; }
.menu-card:hover { transform: translateY(-2px); border-color: #c8dafa; box-shadow: 0 7px 16px #2c5a9510; }
.menu-card:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.menu-art { height: 88px; border-radius: 6px; display: grid; place-items: center; font-size: 39px; position: relative; overflow: hidden; margin-bottom: 10px; background: #f5f1e9; }
.menu-art .menu-photo.product-photo { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.menu-art:after { content: ''; width: 84px; height: 84px; position: absolute; right: -37px; bottom: -49px; border: 1px solid #ffffff85; border-radius: 50%; box-shadow: 0 0 0 10px #ffffff38,0 0 0 20px #ffffff26; }
.menu-card:nth-child(3n+2) .menu-art { background: #edf4ec; }
.menu-card:nth-child(3n) .menu-art { background: #edf3fa; }
.menu-art span { filter: drop-shadow(0 5px 5px #312c2026); position: relative; z-index: 1; }
.menu-name { font-size: 10px; font-weight: 600; color: #303b4b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-meta { display: flex; justify-content: space-between; margin-top: 5px; align-items: center; }
.menu-price { font-size: 11px; font-weight: 700; color: #263345; }
.menu-stock { color: #9ba4b0; font-size: 8px; }
.menu-stock.low { color: #d78a56; }
.cart-panel { position: sticky; top: 14px; overflow: hidden; }
.cart-header { padding: 16px; border-bottom: 1px solid #edf0f4; display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { font: 700 12px Manrope,sans-serif; }
.cart-header small { display: block; color: #98a1ae; font-size: 9px; margin-top: 4px; }
.cart-id { font-size: 9px; color: #8b95a3; background: #f5f7f9; padding: 5px 7px; border-radius: 4px; }
.cart-items { max-height: 286px; overflow: auto; padding: 0 15px; min-height: 90px; }
.empty-cart { display: grid; place-items: center; text-align: center; min-height: 116px; color: #a0a9b5; font-size: 10px; }
.empty-cart span { font-size: 25px; margin-bottom: 7px; opacity: .6; }
.cart-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; padding: 13px 0; border-bottom: 1px solid #f0f2f5; }
.cart-item-title { color: #384354; font-size: 10px; font-weight: 600; }
.cart-item-price { color: #8993a0; font-size: 9px; margin-top: 4px; }
.cart-item-note { display: block; margin-top: 4px; color: #5484c5; font-size: 9px; font-style: italic; }
.cart-line-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.cart-note-button { border: 0; background: transparent; color: #5484c5; font-size: 9px; cursor: pointer; padding: 0; }
.cart-note-button:hover { text-decoration: underline; }
.quantity-control { display: flex; align-items: center; border: 1px solid #ebeff3; border-radius: 5px; height: 25px; align-self: center; }
.quantity-control button { border: 0; background: #fff; width: 22px; height: 23px; color: #718096; cursor: pointer; }
.quantity-control span { min-width: 18px; text-align: center; font-size: 9px; }
.cart-destination { width: calc(100% - 30px); margin: 12px 15px 0; padding: 9px 10px; min-height: 40px; border: 1px dashed #dfe5ec; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; color: #788394; font-size: 9px; cursor: pointer; background: #fff; }
.cart-destination strong { color: #5484c5; font-weight: 600; }
.cart-customer { margin: 12px 15px; padding: 9px 10px; border: 1px dashed #dfe5ec; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; color: #788394; font-size: 9px; cursor: pointer; }
.cart-customer strong { color: #5484c5; font-weight: 600; }
.cart-summary { border-top: 1px solid #edf0f4; padding: 12px 15px 15px; }
.summary-row { display: flex; justify-content: space-between; color: #8993a0; font-size: 9px; margin: 7px 0; }
.summary-row.total { color: #263345; font-size: 12px; font-weight: 700; padding-top: 9px; margin-top: 9px; border-top: 1px solid #edf0f4; }
.cash-tender-field { margin-top: 14px; }
.cash-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cash-quick .button { min-width: 64px; }
.cash-change-row { margin-top: 9px; padding-top: 8px; border-top: 1px solid #edf0f4; color: #263345; font-size: 11px; font-weight: 700; }
.cash-change-row strong { font-size: 13px; }
.cash-change-row.insufficient { color: #b3572a; }
.tender-row { padding: 11px 12px; margin-bottom: 8px; border: 1px solid #e8ecf1; border-radius: 7px; background: #fcfdff; }
.tender-row-head { display: flex; justify-content: space-between; align-items: center; color: #657185; font-size: 9px; font-weight: 700; letter-spacing: .5px; }
.tender-controls { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 8px; margin-top: 7px; }
.tender-actions { display: flex; justify-content: flex-start; margin: 4px 0 10px; }
.tender-summary { padding-top: 9px; border-top: 1px solid #edf0f4; }
.tender-summary .quote-error:empty { display: none; }
.receipt-item-note { display: block; color: #6a7585; font-size: 8px; font-style: italic; }
.discount-button { width: 100%; margin-top: 5px; }
.checkout-button { width: 100%; margin-top: 9px; height: 39px; }
.secondary-cart-actions { display: flex; gap: 8px; margin-top: 8px; }
.secondary-cart-actions button { flex: 1; padding: 8px 5px; color: #7d8998; background: white; border: 1px solid #e9edf2; border-radius: 5px; font-size: 9px; cursor: pointer; }
.filters-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.filter-select,.field-input,.field-select { border: 1px solid #e5e9ef; border-radius: 5px; background: white; color: #667285; padding: 8px 10px; font-size: 10px; }
.empty-state { padding: 34px 20px; text-align: center; color: #9aa3b0; font-size: 10px; }
.settings-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 14px; }
.settings-nav { padding: 7px; }
.settings-nav button { display: block; width: 100%; padding: 10px; border: 0; background: white; text-align: left; color: #7a8695; font-size: 10px; border-radius: 5px; cursor: pointer; }
.settings-nav button.active { background: #eef5ff; color: #3b7dd0; font-weight: 600; }
.settings-section { padding: 20px; }
.settings-section h2 { font: 700 13px Manrope,sans-serif; }
.settings-section>p { font-size: 10px; color: #929caa; margin-top: 5px; }
.settings-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 19px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { color: #657185; font-size: 9px; font-weight: 600; }
.field-input,.field-select { width: 100%; font-size: 10px; padding: 9px 10px; color: #344052; }
.field-help { color: #9aa3b0; font-size: 9px; line-height: 1.5; }
.destination-presets { display: flex; flex-direction: column; gap: 5px; margin: 2px 0 8px; }
.destination-preset { display: flex; justify-content: space-between; align-items: center; min-height: 34px; padding: 4px 9px; border: 1px solid #edf0f4; border-radius: 5px; color: #4e5a6c; font-size: 10px; }
.held-order-list { display: flex; flex-direction: column; gap: 10px; max-height: min(60vh,520px); overflow: auto; }
.held-order-card { border: 1px solid #e8ecf1; border-radius: 8px; padding: 12px; }
.held-order-heading { display: flex; justify-content: space-between; gap: 10px; color: #303b4b; font-size: 11px; }
.held-order-heading small { display: block; margin-top: 4px; color: #929caa; font-size: 9px; }
.held-order-detail { margin-top: 9px; color: #667285; font-size: 10px; }
.held-order-items { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.held-order-items span { padding: 4px 7px; border-radius: 12px; background: #f4f6f9; color: #758193; font-size: 9px; }
.held-order-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 11px; }
.station-list { display: flex; flex-direction: column; gap: 10px; }
.station-card { border: 1px solid #e8ecf1; border-radius: 8px; padding: 12px; }
.station-card.bound { border-color: #bcd8ff; background: #f7fbff; }
.station-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; color: #303b4b; font-size: 11px; }
.station-heading small { display: block; margin-top: 4px; color: #929caa; font-size: 9px; }
.station-detail { margin-top: 8px; color: #667285; font-size: 10px; }
.station-pairing { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: #929caa; font-size: 8px; letter-spacing: .5px; }
.station-pairing code { padding: 4px 9px; border-radius: 5px; background: #f4f6f9; color: #344052; font-size: 11px; letter-spacing: 2px; }
.station-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.station-device { border: 1px solid #dbe4f0; border-radius: 8px; padding: 12px; background: #fbfcfe; margin-bottom: 16px; }
.station-registry { margin-top: 18px; }
.station-registry-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.device-config-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.device-config-card { border: 1px solid #e8ecf1; border-radius: 8px; padding: 13px; background: #fbfcfe; }
.device-config-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.device-config-heading strong { display: block; color: #303b4b; font-size: 11px; }
.device-config-heading small { display: block; margin-top: 3px; color: #929caa; font-size: 9px; }
.device-toggle { display: flex; align-items: center; gap: 6px; color: #667285; font-size: 9px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.device-config-fields { margin-top: 0; }
.device-notes { resize: vertical; min-height: 54px; line-height: 1.4; }
.settings-subhead { margin: 0; color: #303b4b; font-size: 12px; }
.settings-actions { border-top: 1px solid #eff1f4; padding-top: 14px; margin-top: 17px; display: flex; gap: 8px; align-items: center; }
.settings-wide { grid-column: 1/-1; }
.approval-settings { grid-template-columns: repeat(2,minmax(0,1fr)); }
.approval-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 9px 11px; border: 1px solid #e8edf3; border-radius: 6px; }
.approval-rule>span { display: flex; flex-direction: column; gap: 4px; }
.approval-rule strong { color: #344052; font-size: 10px; }
.approval-rule small { color: #929caa; font-size: 9px; }
.approval-rule input { width: 15px; height: 15px; accent-color: #3b82f6; }
.approval-rule input:disabled { opacity: .7; }
.guesthouse-toggle { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #e8edf3; border-radius: 7px; cursor: pointer; }
.guesthouse-toggle input { margin-top: 2px; accent-color: #3b82f6; }
.guesthouse-toggle span { display: flex; flex-direction: column; gap: 5px; }
.guesthouse-toggle strong { color: #344052; font-size: 11px; }
.guesthouse-toggle small,.booking-email { color: #929caa; font-size: 9px; }
.callout { padding: 12px 14px; border-radius: 6px; background: #f1f7ff; border: 1px solid #e2edfb; color: #6882a5; font-size: 10px; line-height: 1.6; margin-top: 14px; }
.callout strong { color: #3c6baf; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(15,24,38,.44); display: grid; place-items: center; padding: 18px; backdrop-filter: blur(3px); }
.modal { width: min(440px,100%); max-height: calc(100vh - 36px); display: flex; flex-direction: column; background: white; border-radius: 12px; box-shadow: 0 24px 80px #12223a38; overflow: hidden; animation: modal-in .18s ease-out; }
.modal.modal-wide { width: min(780px,100%); }
@keyframes modal-in { from { opacity:0; transform: translateY(8px) scale(.99); } to { opacity:1; transform:none; } }
.modal-header { padding: 18px 20px; border-bottom: 1px solid #edf0f4; display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; }
.modal-header h2 { font: 700 14px Manrope,sans-serif; }
.modal-header p { color: #929caa; font-size: 9px; margin-top: 5px; }
.modal-close { border: 0; background: none; color: #8993a0; font-size: 20px; cursor: pointer; }
.modal-body { padding: 18px 20px; min-height: 0; overflow-y: auto; }
.modal-footer { border-top: 1px solid #edf0f4; padding: 13px 20px; display: flex; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.payment-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(80px,1fr)); gap: 8px; margin-bottom: 15px; }
.payment-option { border: 1px solid #e7ebf0; border-radius: 7px; padding: 12px 7px; background: white; text-align: center; cursor: pointer; color: #667285; font-size: 9px; }
.payment-option span { display: block; font-size: 18px; margin-bottom: 7px; }
.payment-option.active { border-color: #6ba1e7; color: #3876c1; background: #f4f8ff; }
.modal-total { border-radius: 7px; padding: 13px; background: #f7f9fb; display: flex; align-items: center; justify-content: space-between; margin: 11px 0 15px; color: #7b8795; font-size: 10px; }
.modal-total strong { color: #202c3b; font: 700 17px Manrope,sans-serif; }
.sales-receipt { color: #364152; font-size: 11px; }
.receipt-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 14px; border-bottom: 1px dashed #dfe4ea; text-align: center; }
.receipt-brand strong { color: #1b2533; font: 700 18px Manrope,sans-serif; }
.receipt-brand span,.receipt-brand small { color: #7d8795; font-size: 10px; }
.receipt-brand small { text-transform: uppercase; letter-spacing: 1px; }
.receipt-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding: 14px 0; border-bottom: 1px dashed #dfe4ea; }
.receipt-meta div,.receipt-totals div,.receipt-total,.receipt-payment { display: flex; justify-content: space-between; gap: 12px; }
.receipt-meta div { flex-direction: column; gap: 3px; min-width: 0; }
.receipt-meta span,.receipt-totals span,.receipt-payment span { color: #8791a0; }
.receipt-meta strong { overflow-wrap: anywhere; }
.receipt-items { margin: 12px 0; }
.receipt-items th,.receipt-items td { padding: 7px 5px; }
.receipt-items th:first-child,.receipt-items td:first-child { text-align: left; }
.receipt-items th:not(:first-child),.receipt-items td:not(:first-child) { text-align: right; }
.receipt-totals { display: flex; flex-direction: column; gap: 7px; padding: 0 5px 12px; border-bottom: 1px dashed #dfe4ea; }
.receipt-total { align-items: center; margin: 12px 0; padding: 10px 5px; border-bottom: 1px solid #e8ebef; font-weight: 600; }
.receipt-total strong { color: #18212f; font: 700 17px Manrope,sans-serif; }
.receipt-payment { padding: 0 5px; }
.receipt-thanks,.receipt-no-items { margin-top: 16px; color: #7d8795; text-align: center; font-size: 10px; }
#print-root { display: none; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.stocktake-search { width: 100%; margin: 12px 0; }
.stocktake-search input { font-size: 12px; }
.stocktake-table-wrap { max-height: min(48vh,420px); overflow: auto; margin-bottom: 12px; }
.stocktake-table { width: 100%; }
.stocktake-table td { vertical-align: middle; }
.stocktake-table td:first-child { min-width: 180px; }
.stocktake-table td:first-child small { display: block; margin-top: 3px; color: #98a1ae; font-size: 9px; }
.stocktake-table .field-input { min-width: 100px; }
.receiving-details { margin-top: 0; }
.receiving-lines-heading { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 9px; color: #384354; font-size: 11px; }
.receiving-line { display: grid; grid-template-columns: minmax(180px,2fr) minmax(100px,.8fr) minmax(130px,1fr) auto; align-items: end; gap: 9px; padding: 10px 0; border-top: 1px solid #f0f2f5; }
.receiving-line .remove-receiving-line { min-height: 36px; }
.pin-input { font: 600 20px Manrope,sans-serif; letter-spacing: 8px; text-align: center; }
.toast-region { position: fixed; z-index: 30; right: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1c2a3c; color: #fff; border-radius: 7px; padding: 12px 15px; box-shadow: var(--shadow); font-size: 10px; animation: modal-in .16s ease-out; }
.toast.success { border-left: 3px solid #37bc8a; } .toast.warning { border-left: 3px solid #d5a548; }
.mobile-scrim { display: none; }

@media print {
  @page { margin: 12mm; }
  body { background: white; color: #111; font-size: 9pt; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; color: #111; }
  #print-root .print-brand { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #bbb; }
  #print-root .print-brand strong { font-size: 15pt; }
  #print-root .print-brand span { color: #555; font-size: 8pt; }
  #print-root .page-content { max-width: none; margin: 0; padding: 0; }
  #print-root h1 { font-size: 17pt; }
  #print-root h2 { font-size: 11pt; }
  #print-root .page-heading { margin-bottom: 12px; }
  #print-root .heading-actions, #print-root button, #print-root input, #print-root select, #print-root .search-box { display: none !important; }
  #print-root .panel, #print-root .stat-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  #print-root .report-section { break-inside: auto; }
  #print-root .table-wrap { overflow: visible; }
  #print-root table { width: 100%; border-collapse: collapse; }
  #print-root th, #print-root td { padding: 5px; border-bottom: 1px solid #ddd; color: #111; font-size: 8pt; }
  #print-root .stat-grid { gap: 7px; }
  #print-root .stat-card { min-height: 0; padding: 8px; }
  #print-root .stat-value { font-size: 13pt; }
  #print-root .cash-reconcile-actions { display: none; }
  #print-root .receipt-print { width: 76mm; max-width: 100%; margin: 0 auto; }
  #print-root .receipt-print .receipt-items th,
  #print-root .receipt-print .receipt-items td { font-size: 9pt; }
  #print-root .receipt-thermal80 { width: 72mm; font-family: 'Courier New',monospace; font-size: 8pt; }
  #print-root .receipt-thermal80 .receipt-brand strong { font-family: 'Courier New',monospace; font-size: 12pt; }
  #print-root .receipt-thermal80 .receipt-items th,
  #print-root .receipt-thermal80 .receipt-items td { font-family: 'Courier New',monospace; font-size: 8pt; }
  #print-root .receipt-compact .receipt-meta { padding: 7px 0; }
  #print-root .receipt-duplicate-mark { border-width: 2px; font-size: 14pt; opacity: .6; }
}
@media (pointer: coarse) {
  .pos-menu .category-chip { min-height: 44px; padding: 9px 15px; font-size: 12px; }
  .pos-menu .menu-card { min-height: 155px; padding: 12px; }
  .pos-menu .menu-card .menu-name { font-size: 12px; }
  .pos-menu .menu-card .menu-price { font-size: 13px; }
  .pos-menu .menu-card .menu-stock { font-size: 10px; }
  .scan-feedback { padding: 7px 10px; border-radius: 16px; background: #e7f7ef; color: #247c59; font-size: 9px; font-weight: 700; white-space: nowrap; }
.quick-key-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 7px; margin-bottom: 14px; }
.quick-key { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 3px 7px; border: 1px solid #dce7f7; border-radius: 7px; background: #f7fbff; padding: 8px 9px; text-align: left; cursor: pointer; }
.quick-key:hover { border-color: #9fc3f5; background: #eef6ff; }
.quick-key:disabled { opacity: .5; cursor: not-allowed; }
.quick-key-number { grid-row: span 2; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #1d2b3c; color: #fff; font-size: 8px; font-weight: 700; }
.quick-key-name { overflow: hidden; color: #364152; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.quick-key strong { grid-column: 2; color: #788496; font-size: 8px; }
.quick-key-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 52vh; overflow-y: auto; }
.quick-key-option { display: flex; align-items: center; gap: 8px; border: 1px solid #e8ecf1; border-radius: 7px; padding: 9px; cursor: pointer; }
.quick-key-option span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quick-key-option strong { overflow: hidden; color: #364152; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.quick-key-option small { color: #929caa; font-size: 8px; }
.shortcut-list { display: flex; flex-direction: column; gap: 8px; }
.shortcut-list div { display: flex; align-items: center; gap: 12px; color: #667285; font-size: 10px; }
.shortcut-list kbd { min-width: 96px; border: 1px solid #dfe4ea; border-radius: 5px; background: #f7f9fc; padding: 5px 7px; color: #303b4b; font: 700 9px Manrope,sans-serif; text-align: center; }
.receipt-options { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.receipt-header-note { margin-bottom: 8px; color: #6a7585; font-size: 9px; font-weight: 700; text-align: center; }
.receipt-sale-note { margin-top: 10px; border-left: 3px solid #d5dbe3; padding-left: 9px; color: #667285; font-size: 9px; font-style: italic; }
.receipt-standard { max-width: 420px; margin: 0 auto; }
.receipt-standard .receipt-items th,.receipt-standard .receipt-items td { font-size: 10px; }
.bridge-token { font-family: 'Courier New',monospace; font-size: 10px; word-break: break-all; }
.routing-rules { display: flex; flex-direction: column; gap: 12px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.routing-rule { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; border: 1px solid #e6eaf0; border-radius: 9px; background: #fbfcfe; padding: 11px; }
.routing-rule > .device-toggle,.routing-rule > .link-button { grid-column: 1 / -1; }
.routing-rule select[multiple] { min-height: 82px; padding: 5px; }
.receipt-duplicate-mark { position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%) rotate(-18deg); border: 3px solid #b52d2d; border-radius: 4px; padding: 6px 12px; color: #b52d2d; font: 800 18px Manrope,sans-serif; letter-spacing: 2px; opacity: .55; pointer-events: none; }
.sales-receipt { position: relative; }
.receipt-compact .receipt-meta { gap: 5px 10px; padding: 9px 0; }
.receipt-compact .receipt-meta div { font-size: 9px; }
.receipt-thermal80 { width: 72mm; margin: 0 auto; font-family: 'Courier New',monospace; font-size: 9px; }
.receipt-thermal80 .receipt-brand { border-bottom-style: dashed; }
.receipt-thermal80 .receipt-brand strong { font-family: 'Courier New',monospace; font-size: 14px; }
.receipt-thermal80 .receipt-items th,.receipt-thermal80 .receipt-items td { font-family: 'Courier New',monospace; font-size: 9px; }
.reversal-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 10px; padding: 12px; border: 1px solid #e6eaf0; border-radius: 8px; background: #f8fafc; }
.reversal-summary div { display: flex; flex-direction: column; gap: 3px; }
.reversal-summary span { color: #8491a3; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reversal-summary strong { color: #2f3948; font-size: 12px; }
.reversal-section { display: flex; flex-direction: column; gap: 8px; }
.reversal-section > strong { color: #364152; font-size: 11px; }
.reversal-lines th,.reversal-lines td { padding: 7px 8px; font-size: 10px; vertical-align: middle; }
.reversal-lines th { color: #8491a3; font-size: 9px; letter-spacing: .06em; }
.reversal-item-label { display: flex; align-items: flex-start; gap: 7px; cursor: pointer; }
.reversal-item-label input { margin-top: 2px; accent-color: #147d64; }
.reversal-item-label span { display: flex; flex-direction: column; gap: 2px; }
.reversal-item-label small { color: #929caa; font-size: 9px; }
.modal .reversal-qty { width: 78px; min-height: 34px; padding: 5px 7px; font-size: 11px; }
.reversal-history { display: flex; flex-direction: column; gap: 7px; padding-top: 8px; border-top: 1px solid #e6eaf0; }
.reversal-history > strong { color: #364152; font-size: 11px; }
.stocktake-table .stocktake-reason { width: 100%; min-width: 180px; min-height: 34px; padding: 5px 7px; font-size: 10px; }
.audit-reason { max-width: 280px; white-space: pre-wrap; word-break: break-word; }
.pos-toolbar .button, .cart-panel button, .checkout-button { min-height: 44px; font-size: 12px; }
  .modal .field-input, .modal .field-select { min-height: 44px; font-size: 14px; }
  .modal .button, .modal-close { min-height: 44px; }
  .payment-option { min-height: 64px; font-size: 12px; }
  .quantity-control { height: 44px; }
  .quantity-control button { width: 42px; height: 42px; font-size: 20px; }
  .quantity-control span { min-width: 26px; font-size: 12px; }
  .cart-destination, .cart-customer { min-height: 46px; font-size: 11px; }
  .pos-search { min-height: 46px; }
  .pos-search input { font-size: 14px; }
  .checkout-button { height: 50px; }
}
@media (min-width: 1450px) { .page-content { padding-left: 45px; padding-right: 45px; } .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1100px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .topbar { padding: 0 23px; } .page-content { padding: 24px 23px; }
  .pos-layout { grid-template-columns: minmax(0,1fr) 295px; gap: 12px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-grid { grid-template-columns: 1.4fr 1fr; }
  .cash-stepper { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .report-filters { flex-wrap: wrap; }
  .cash-workflow-grid { grid-template-columns: 1fr; }
  .cash-filters { flex-wrap: wrap; }
}
@media (max-width: 790px) {
  .sidebar { position: fixed; z-index: 15; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .2s ease; width: 255px; }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim { position: fixed; inset: 0; background: #10192766; z-index: 14; }
  .mobile-scrim.visible { display: block; }
  .mobile-menu { display: block; margin-left: -8px; }
  .topbar { height: 58px; padding: 0 16px; gap: 8px; }
  .topbar-actions { gap: 12px; }
  .connection-pill { font-size: 0; } .connection-dot { width: 8px; height: 8px; }
  .offline-banner { padding: 9px 16px; font-size: 10px; }
  .date-button { font-size: 0; gap: 5px; } .calendar-icon { font-size: 14px; }
  .breadcrumb { margin-right: auto; }
  .page-content { padding: 20px 16px; }
  .pos-layout { grid-template-columns: minmax(0,1fr); }
  .cart-panel { position: static; }
  .cart-items { max-height: 240px; }
  .overview-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .dashboard-panel { min-width: 0; }
  .heat-grid { min-width: 0; }
  .dashboard-panel.wide { grid-column: auto; }
  .heat-grid { gap: 2px; }
  .heat-cell span { display: none; }
  .report-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-heading { margin-bottom: 18px; }
  .inventory-history-grid { grid-template-columns: 1fr; }
  .cash-filters { align-items: stretch; flex-direction: column; }
  .cash-filters .form-field { width: 100%; }
  .cash-filters .field-help { margin: 0; }
  .inventory-heading { flex-wrap: wrap; }
  .inventory-heading .toolbar { flex-wrap: wrap; width: 100%; }
  .inventory-heading .search-box { flex: 1 1 100%; }
}
@media (max-width: 500px) {
  .login-screen { place-items: center; padding: 30px 18px 22px; }
  .login-content { gap: 25px; }
  .login-backdrop { background-position: 70% center; }
  .login-card { padding: 30px 24px 24px; }
  .page-content { padding: 17px 12px; }
  .page-heading { flex-direction: column; gap: 13px; }
  .page-heading h1 { font-size: 21px; }
  .heading-actions { width: 100%; } .heading-actions .button { flex: 1; }
  .stat-grid { gap: 8px; } .stat-card { padding: 12px; min-height: 87px; }
  .stat-value { font-size: 18px; }
  .pos-toolbar { flex-wrap: wrap; } .pos-search { max-width: none !important; flex-basis: 100%; }
  .quick-tools { width: 100%; } .quick-tools .button { flex: 1; }
  .product-grid { gap: 8px; } .menu-art { height: 73px; font-size: 33px; }
  .filters-row { align-items: flex-start; flex-direction: column; }
  .search-box { min-width: 0; width: 100%; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { display: flex; overflow: auto; gap: 4px; }
  .settings-nav button { width: auto; white-space: nowrap; }
  .settings-form,.approval-settings { grid-template-columns: 1fr; }
  .receiving-line { grid-template-columns: minmax(0,1fr) minmax(90px,.7fr); }
  .receiving-line .form-field:first-child { grid-column: 1/-1; }
  .receiving-line .remove-receiving-line { justify-self: end; }
  .settings-wide { grid-column: auto; }
  .report-filters { align-items: stretch; flex-direction: column; }
  .report-filters .form-field { width: 100%; }
  .report-filters .field-help { margin: 0; }
  .topbar-divider,.notification-button { display: none; }
}
@media (max-height: 700px) {
  .login-screen { padding: 12px 20px; }
  .login-content { gap: 13px; }
  .login-card { padding: 22px 30px 18px; }
  .login-card-icon { width: 31px; height: 31px; margin-bottom: 12px; }
  .login-form { gap: 12px; margin-top: 18px; }
  .login-field { gap: 6px; }
  .login-field select,.login-field input { min-height: 41px; }
  .login-submit { min-height: 43px; }
  .login-security { margin-top: 14px; }
}
@media (max-height: 500px) {
  .login-screen { padding: 8px 18px; }
  .login-content { gap: 8px; }
  .login-brand { width: min(100%,110px); height: 136px; }
  .login-card { padding: 17px 24px 14px; }
  .login-card-icon { display: none; }
  .login-card h1 { margin-top: 5px; font-size: 25px; }
  .login-subtitle { margin-top: 5px; }
  .login-form { gap: 9px; margin-top: 13px; }
  .login-field select,.login-field input { min-height: 37px; }
  .login-submit { min-height: 39px; }
  .login-security { margin-top: 10px; }
  .login-footer { font-size: 9px; }
}

/* Phase 4C: authoritative pricing and promotion rules */
.promo-row { color: #0f766e; }
.quote-status { display: inline-flex; align-items: center; gap: 5px; margin: 4px 0; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.quote-status.loading { background: #eef2ff; color: #3730a3; }
.quote-status.warning { background: #fff7ed; color: #9a3412; }
.quote-error { margin: 4px 0 7px; padding: 6px 8px; border-radius: 7px; background: #fff7ed; color: #9a3412; font-size: 11px; line-height: 1.35; }
.promo-code-row { display: flex; align-items: center; gap: 6px; margin: 8px 0; }
.promo-code-row .field-input { min-height: 34px; flex: 1; }
.promotion-item-row { display: grid; grid-template-columns: 1.5fr .7fr .8fr auto; gap: 7px; align-items: center; margin-bottom: 7px; }
.promotion-item-row .field-input, .promotion-item-row .field-select { min-height: 36px; }
@media (max-width: 700px) {
  .promotion-item-row { grid-template-columns: 1fr 1fr; }
  .promotion-item-row .link-button { grid-column: 1 / -1; }
}

/* Phase 5D: inventory intelligence (reorder, purchase orders, write-offs) */
.inventory-intelligence-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 14px; margin-top: 15px; }
.reorder-table td small,.po-table td small { display: block; margin-top: 4px; color: #9aa3af; font-size: 9px; }
.reorder-table td strong { color: #354052; }
.suggested-qty { display: inline-flex; border-radius: 5px; padding: 3px 7px; background: #fff5e7; color: #b77f2e; font-weight: 700; }
.callout-warning { background: #fffaf0; border-color: #f2e2c1; color: #9a7841; }
.callout-warning strong { color: #8b6525; }
.callout-danger { background: #fff4f3; border-color: #f4d7d4; color: #a45d59; }
.callout-danger strong { color: #b23f3a; }
.po-lines { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.po-line { color: #4e5a6c; font-size: 9px; white-space: normal; }
.po-received { color: #239c75; }
.po-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.danger-link { color: #c95f5c; }
.write-off-badge { display: inline-flex; border-radius: 5px; padding: 3px 7px; background: #fff0ef; color: #c26461; font-size: 8px; white-space: nowrap; }
.po-details { margin-top: 0; }
.po-item-line { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,.75fr) minmax(0,.85fr) auto; align-items: end; gap: 9px; padding: 10px 0; border-top: 1px solid #f0f2f5; }
.po-item-line .remove-po-line { min-height: 36px; }
.po-item-line .field-select,.po-item-line .field-input { min-width: 0; }
.po-readonly { display: flex; flex-direction: column; justify-content: center; min-height: 36px; overflow-wrap: anywhere; white-space: normal; }
.po-readonly small { color: #9aa3af; font-size: 9px; }
.modal .po-item-line .field-input,.modal .po-item-line .field-select { font-size: 11px; }
@media (max-width: 1200px) {
  .inventory-intelligence-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 500px) {
  .po-item-line { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .po-item-line .form-field:first-child { grid-column: 1 / -1; }
  .po-item-line .remove-po-line { justify-self: end; }
}

/* Phase 5E: owner insights, reporting and refund reason management */
.insight-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.insight-stat { min-width: 0; }
.insight-stat .stat-value { overflow-wrap: anywhere; }
.insight-stat .stat-value.negative { color: #c26461; }
.insight-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 3px 8px; background: #edf8f4; color: #239c75; font-size: 9px; font-weight: 700; white-space: nowrap; }
.insight-badge.positive { background: #edf8f4; color: #239c75; }
.insight-badge.negative { background: #fff0ef; color: #c26461; }
.insight-badge.warning { background: #fff5e7; color: #b77f2e; }
.insight-badge.roi { background: #eef4ff; color: #3d6fb5; }
.insight-table-wrap { max-width: 100%; }
.insight-table { min-width: 620px; table-layout: auto; }
.insight-table td small { display: block; margin-top: 4px; color: #9aa3af; font-size: 9px; white-space: normal; }
.insight-table td strong { color: #354052; }
.reason-code { display: inline-flex; max-width: 150px; overflow: hidden; padding: 3px 7px; border-radius: 5px; background: #f0f5ff; color: #3d6fb5; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.reason-actions { white-space: nowrap; }
.reason-actions .link-button + .link-button { margin-left: 8px; }
.schedule-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.schedule-summary > span:not(.status):not(.schedule-note) { display: flex; flex-direction: column; gap: 3px; }
.schedule-summary strong { color: #354052; font-size: 11px; }
.schedule-summary small { color: #9aa3af; font-size: 9px; }
.schedule-note { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; color: #7a8695; font-size: 10px; }
.owner-summary-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 12px; padding: 16px 18px; }
.owner-summary-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #e8edf3; border-radius: 8px; background: #fff; }
.owner-summary-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px 13px; border-bottom: 1px solid #f0f2f5; }
.owner-summary-card header div { min-width: 0; }
.owner-summary-card header strong { display: block; color: #354052; font-size: 11px; overflow-wrap: anywhere; }
.owner-summary-card header small { display: block; margin-top: 4px; color: #9aa3af; font-size: 9px; overflow-wrap: anywhere; }
.owner-summary-figures { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 13px; }
.owner-summary-figure { display: flex; flex-direction: column; min-width: 0; flex: 1 1 88px; padding: 7px 8px; border-radius: 6px; background: #f7f9fc; }
.owner-summary-figure small { color: #9aa3af; font-size: 8px; text-transform: uppercase; }
.owner-summary-figure strong { margin-top: 4px; color: #354052; font-size: 11px; overflow-wrap: anywhere; }
.owner-summary-card footer { margin-top: auto; padding: 10px 13px; border-top: 1px solid #f0f2f5; color: #9aa3af; font-size: 9px; overflow-wrap: anywhere; }
.modal .field-select#reversal-reason-code { min-width: 0; }
@media (max-width: 1200px) {
  .insight-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .owner-summary-grid { grid-template-columns: 1fr; padding: 12px; }
  .schedule-summary { align-items: flex-start; }
  .insight-table { min-width: 560px; }
}
@media (max-width: 500px) {
  .insight-stats { grid-template-columns: minmax(0,1fr); }
}

/* Readability: small secondary text on light surfaces must reach WCAG AA (4.5:1).
   Kept last so newer insight/report rules do not override it; screen only. */
@media screen {
  .login-brand-copy small,.login-eyebrow,.login-subtitle,.login-field,.login-security,
  .login-footer,.eyebrow,.page-subtitle,.field-help,.stat-top,.stat-foot,.panel-heading p,
  .breadcrumb,th,.reversal-lines th,.report-generated,.menu-stock,.empty-cart,.empty-state,
  .settings-nav button,.settings-section>p,.form-field label,.report-tab,.link-button,
  .callout,.quick-key strong,.station-pairing,.reversal-summary span,.po-readonly small,
  .reorder-table td small,.po-table td small,.mix-row small,.rank-row small,.alert-row small,
  .report-row small,.activity-info small,.stock-info small,.station-heading small,
  .station-detail,.modal-header p,.approval-rule small,.guesthouse-toggle small,
  .device-config-heading small,.held-order-heading small,.cart-header small,
  .cart-item-price,.summary-row,.receipt-meta span,.receipt-totals span,
  .receipt-payment span,.bar-label,.chart-legend,.movement-row small,
  .cash-reconcile-row,.cashup-breakdown>div,.secondary-cart-actions button,
  .receipt-brand span,.receipt-brand small,.receipt-thanks,.receipt-no-items,
  .receipt-header-note,.receipt-sale-note,.reversal-item-label small,
  .stocktake-table td:first-child small,.quick-key-option small,.shortcut-list div,
  .heat-cell span,.owner-summary-figure small,.owner-summary-card header small,
  .owner-summary-card footer,.schedule-summary small,.cart-id { color: #5f6b7a; }
  .report-tab.active,.settings-nav button.active { color: #2b6cb0; }
  .negative,.insight-stat .stat-value.negative { color: #b23f3a; }
  .positive,.insight-stat .stat-value.positive { color: #1a7a5b; }
  .status { color: #1a7a5b; } .status.warning { color: #8a5a12; }
  .status.queued { color: #2b5fa8; } .status.danger { color: #b23f3a; }
  .insight-badge.positive { color: #1a7a5b; } .insight-badge.negative { color: #b23f3a; }
  .insight-badge.warning { color: #8a5a12; } .insight-badge.roi { color: #2b5fa8; }
  .write-off-badge,.menu-stock.low,.suggested-qty,.callout-warning,
  .callout-warning strong { color: #8a5a12; }
  .callout-danger,.callout-danger strong { color: #b23f3a; }
  .movement-variance { color: #b23f3a; }
  .movement-variance.positive { color: #1a7a5b; }
  .movement-variance.negative { color: #b23f3a; }
  .schedule-note,.cash-step small { color: #5f6b7a; }
  .cart-customer,.cart-destination,.category-chip,.po-received { color: #5f6b7a; }
  .cart-customer strong,.cart-destination strong { color: #2b6cb0; }
  #page-content .table-wrap td strong { color: #354052; }
  .login-field input::placeholder,.search-box input::placeholder { color: #6b7684; }
  .button.primary { border-color: #2563eb; background: #2563eb; }
  .button.primary:hover { background: #1d4ed8; }
  .login-content,.login-backdrop,.login-footer { color: #eaf2fb; }
  .login-card,.login-form { color: #172335; }
  .login-submit { background-image: linear-gradient(110deg,#2b6cb0,#1d4ed8); background-color: #2b6cb0; }
}
