/* Haven Hotel & Kitchen — premium hotel theme (light + dark).
   Fonts are Windows system fonts so the app looks right fully offline. */

:root {
  --font-body: "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", "Cambria", "Georgia", "Times New Roman", serif;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;

  --bg: #f4f1ea;
  --bg-glow: radial-gradient(1200px 600px at 85% -10%, #e9dcc0 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #dcebe2 0%, transparent 55%);
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --surface-3: #f2eee5;
  --glass: rgba(255, 255, 255, 0.78);
  --ink: #14231b;
  --ink-2: #33463b;
  --muted: #6f7d74;
  --line: #e7e0d2;
  --line-2: #efe9de;
  --brand: #0f5a3f;
  --brand-2: #16805a;
  --brand-ink: #0b4430;
  --brand-soft: #e5f1ea;
  --gold: #b88a35;
  --gold-2: #d8b46a;
  --gold-soft: #f7eedb;
  --danger: #b4473a;
  --danger-soft: #fbe9e6;
  --warn: #9a6512;
  --warn-soft: #fcf1dd;
  --info: #335a98;
  --info-soft: #e7edf8;
  --ok: #1d7a4d;
  --ok-soft: #e3f2e9;
  --shadow-sm: 0 1px 2px rgba(20, 35, 27, 0.05), 0 2px 8px rgba(20, 35, 27, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 35, 27, 0.08), 0 2px 6px rgba(20, 35, 27, 0.04);
  --shadow-lg: 0 30px 80px rgba(12, 30, 21, 0.22);
  --ring: 0 0 0 3px rgba(22, 128, 90, 0.18);
  --sidebar-bg: linear-gradient(180deg, #0f4532 0%, #0b3326 55%, #092a20 100%);
  --sidebar-ink: #d9e7df;
  --sidebar-muted: #8fb2a0;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a1410;
  --bg-glow: radial-gradient(1100px 600px at 85% -10%, rgba(184, 138, 53, 0.13) 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(22, 128, 90, 0.16) 0%, transparent 55%);
  --surface: #101d17;
  --surface-2: #14241d;
  --surface-3: #1a2d25;
  --glass: rgba(16, 29, 23, 0.78);
  --ink: #e8efe9;
  --ink-2: #c3d1c8;
  --muted: #8ea095;
  --line: #213a2f;
  --line-2: #1b3027;
  --brand: #2aa274;
  --brand-2: #3cc08b;
  --brand-ink: #7fdcb2;
  --brand-soft: #143528;
  --gold: #d8b46a;
  --gold-2: #e9cd8e;
  --gold-soft: #2e2716;
  --danger: #ef8a7c;
  --danger-soft: #3a1d19;
  --warn: #e6b45f;
  --warn-soft: #34290f;
  --info: #8fb0ea;
  --info-soft: #18243a;
  --ok: #6fd3a1;
  --ok-soft: #133024;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --ring: 0 0 0 3px rgba(60, 192, 139, 0.25);
  --sidebar-bg: linear-gradient(180deg, #0c2a20 0%, #08201a 60%, #061913 100%);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.45 var(--font-body);
  color: var(--ink);
  background: var(--bg-glow), var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: transparent; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: var(--brand-2); }
::selection { background: var(--gold-soft); }
.hide { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pre { white-space: pre-line; }
.nowrap { white-space: nowrap; }
.mono { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; font-size: 12.5px; letter-spacing: 0.3px; }
.wide { width: 100%; }
.pos { color: var(--ok); font-weight: 600; }
.neg { color: var(--danger); font-weight: 600; }
.danger, .link-btn.danger { color: var(--danger); }
code { font: 12px Consolas, monospace; background: var(--surface-3); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
svg.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------- shell ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 30;
  display: flex; flex-direction: column; padding: 22px 14px 16px;
  background: var(--sidebar-bg); color: var(--sidebar-ink);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.04), 10px 0 40px rgba(6, 25, 18, 0.18);
  overflow-y: auto;
}
.sidebar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: radial-gradient(400px 260px at 0% 0%, rgba(216, 180, 106, 0.16), transparent 70%), radial-gradient(300px 300px at 100% 100%, rgba(60, 192, 139, 0.12), transparent 70%);
}
.sidebar > * { position: relative; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; color: #fff; text-decoration: none; }
.brand-mark {
  position: relative; width: 42px; height: 42px; flex: none; border-radius: 13px; overflow: hidden;
  display: grid; place-items: center; color: #1a1305;
  font: 700 22px var(--font-display);
  background: linear-gradient(135deg, var(--gold-2), #b88a35);
  box-shadow: 0 6px 18px rgba(184, 138, 53, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-copy b { display: block; max-width: 170px; font: 600 16px var(--font-display); letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy small { display: block; margin-top: 3px; font-size: 9.5px; letter-spacing: 2.4px; color: var(--gold-2); }
.branch-select {
  display: flex; align-items: center; gap: 9px; margin: 0 4px 22px; padding: 10px 12px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px; font-weight: 600; color: var(--sidebar-ink);
}
.branch-select span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4cd391; box-shadow: 0 0 0 4px rgba(76, 211, 145, 0.18); flex: none; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(76, 211, 145, 0.2); } 50% { box-shadow: 0 0 0 6px rgba(76, 211, 145, 0.06); } }
.nav-label { padding: 0 12px 8px; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: var(--sidebar-muted); }
.nav-gap { margin-top: 18px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; margin: 2px 0; padding: 0 12px;
  border-radius: 11px; text-align: left; font-size: 13.5px; font-weight: 500; color: var(--sidebar-ink);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(216, 180, 106, 0.2), rgba(255, 255, 255, 0.05)); color: #fff; font-weight: 600; }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold-2); }
.nav-icon { display: grid; place-items: center; width: 22px; color: var(--sidebar-muted); }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { color: var(--gold-2); }
.nav-badge, .count-badge { margin-left: auto; padding: 2px 7px; border-radius: 20px; font-size: 10px; font-weight: 700; background: rgba(255, 255, 255, 0.1); color: var(--sidebar-ink); }
.count-badge { background: var(--gold-2); color: #2a1e05; }
.alert-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #f0a94a; box-shadow: 0 0 0 3px rgba(240, 169, 74, 0.22); }
.sidebar-bottom { margin-top: auto; padding-top: 14px; }
.profile {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 13px; text-align: left;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--sidebar-ink);
}
.profile:hover { background: rgba(255, 255, 255, 0.1); }
.profile-info { min-width: 0; }
.profile-info b, .profile-info small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-info b { font-size: 13px; color: #fff; }
.profile-info small { font-size: 11px; color: var(--sidebar-muted); }
.more { margin-left: auto; color: var(--sidebar-muted); letter-spacing: 1px; }
.avatar {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  font-size: 12px; font-weight: 700; color: #1a1305; background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.main-area { margin-left: 264px; min-height: 100vh; }
.main-area.bare { margin-left: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 66px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); min-width: 0; }
.breadcrumb b { color: var(--ink); font-weight: 600; }
.crumb-slash { color: var(--line); }
.mobile-menu { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.status { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 20px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line-2); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); transition: 0.15s; }
.icon-btn:hover { color: var(--brand-2); border-color: var(--brand-2); }
.top-profile { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.top-profile .avatar { width: 30px; height: 30px; font-size: 11px; }
.chevron { color: var(--muted); }
.content { padding: 30px 32px 60px; max-width: 1560px; animation: rise 0.28s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.loading { display: grid; place-items: center; gap: 14px; min-height: 50vh; color: var(--muted); }
.loading::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- page heading ---------- */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 2.2px; color: var(--gold); text-transform: uppercase; }
.eyebrow .sep { padding: 0 6px; color: var(--line); }
.page-heading h1 { margin: 6px 0 0; font: 600 32px/1.15 var(--font-display); letter-spacing: -0.3px; color: var(--ink); }
.page-heading p { margin: 7px 0 0; font-size: 13.5px; color: var(--muted); }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 12.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); }

/* ---------- buttons ---------- */
.primary-btn, .outline-btn, .danger-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px;
  border-radius: 11px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.primary-btn { color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 6px 16px rgba(15, 90, 63, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.primary-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 90, 63, 0.3); }
.outline-btn { color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.outline-btn:hover:not(:disabled) { border-color: var(--brand-2); color: var(--brand-2); }
.danger-btn { color: #fff; background: linear-gradient(135deg, #c95a4b, #a63c30); box-shadow: 0 6px 16px rgba(166, 60, 48, 0.22); }
.link-btn { padding: 2px 0; font-size: 12.5px; font-weight: 600; color: var(--brand-2); text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.pill-btn { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; color: var(--brand-2); background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand-2) 55%, transparent); }
.pill-btn:hover { background: var(--brand-soft); }
:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- inputs ---------- */
input, select, textarea { font: inherit; color: var(--ink); }
.search-input, .modal input:not([type="checkbox"]):not([type="file"]), .modal select, .modal textarea,
.setup-panel input:not([type="checkbox"]):not([type="file"]), .setup-panel select, .setup-panel textarea, .mini-select {
  height: 40px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 13px; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.modal textarea, .setup-panel textarea, textarea.search-input { height: auto; min-height: 76px; padding: 10px 13px; resize: vertical; }
.search-input:focus, .modal input:focus, .modal select:focus, .modal textarea:focus, .setup-panel input:focus, .setup-panel select:focus, .setup-panel textarea:focus, .mini-select:focus {
  outline: none; border-color: var(--brand-2); box-shadow: var(--ring); background: var(--surface);
}
.search-input.wide { width: 100%; margin-bottom: 9px; }
input[type="file"] { width: 100%; padding: 10px; border: 1px dashed var(--line); border-radius: 11px; background: var(--surface-2); font-size: 12.5px; color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 13px; border: 0; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--brand-2); width: 17px; height: 17px; }
.mini-select { height: 32px; padding: 0 9px; font-size: 12px; margin-top: 10px; width: 100%; }
.hint { display: block; margin: 5px 0 4px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.form-error { min-height: 18px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--danger); }
.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 12px 0 16px; }
.form-row label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.inline-check { display: flex !important; align-items: center; gap: 9px; margin-top: 12px !important; font-size: 13px !important; font-weight: 500 !important; color: var(--ink) !important; cursor: pointer; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); margin-bottom: 18px; }
.stack > .panel { margin-bottom: 18px; }
.panel { position: relative; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 18px; }
.grid > .panel + .panel { margin-top: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-title { font: 600 18px var(--font-display); color: var(--ink); }
.panel-title.sub { margin: 20px 0 10px; font-size: 15px; }
.panel-subtitle { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-row label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }

.stat-card {
  position: relative; overflow: hidden; padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.18s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stat-symbol { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--brand-2); background: var(--brand-soft); font-size: 15px; }
.stat-value { margin: 12px 0 5px; font: 600 28px/1.1 var(--font-display); color: var(--ink); letter-spacing: -0.2px; overflow-wrap: anywhere; }
.stat-foot { font-size: 12px; color: var(--muted); }
.stats-grid > .stat-card:first-child {
  color: #fff; border-color: transparent;
  background: radial-gradient(260px 160px at 100% 0%, rgba(216, 180, 106, 0.45), transparent 70%), linear-gradient(140deg, #16805a, #0c4a34 70%);
  box-shadow: 0 14px 30px rgba(12, 74, 52, 0.28);
}
.stats-grid > .stat-card:first-child .stat-top, .stats-grid > .stat-card:first-child .stat-foot { color: rgba(255, 255, 255, 0.78); }
.stats-grid > .stat-card:first-child .stat-value { color: #fff; }
.stats-grid > .stat-card:first-child .stat-symbol { color: #2a1e05; background: linear-gradient(135deg, var(--gold-2), #c69a48); }
.stat-card.warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: linear-gradient(180deg, var(--warn-soft), var(--surface) 75%); }
.stat-card.warn .stat-symbol { color: var(--warn); background: var(--warn-soft); }

.notice { padding: 14px 18px; margin-bottom: 18px; border-radius: var(--radius); font-size: 13px; border: 1px solid var(--line); background: var(--surface); }
.notice.ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.notice.warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.notice.error { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.panel.notice { padding: 28px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { padding: 10px 12px; text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: 1.1px; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
th:first-child { border-radius: 10px 0 0 10px; }
th:last-child { border-radius: 0 10px 10px 0; }
td { padding: 13px 12px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr { transition: background 0.12s; }
tbody tr:hover td { background: color-mix(in srgb, var(--gold-soft) 45%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
.item-name { font-weight: 600; color: var(--ink); }
.empty-cell { padding: 34px 12px !important; text-align: center; font-size: 13px; }
td small.muted { font-size: 11.5px; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; color: var(--ok); background: var(--ok-soft); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.pill.gold { color: var(--warn); background: var(--warn-soft); }
.pill.red { color: var(--danger); background: var(--danger-soft); }
.pill.blue { color: var(--info); background: var(--info-soft); }

/* ---------- bars & charts ---------- */
.bar-list { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr auto; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-2); }
.bar-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--brand-2), var(--gold-2)); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar-value { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: 230px; display: block; }
.chart .grid-line { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart .area { fill: url(#salesFill); }
.chart .line { fill: none; stroke: var(--brand-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot { fill: var(--surface); stroke: var(--gold); stroke-width: 2.5; }
.chart .val { fill: var(--ink); font-size: 11px; font-weight: 700; font-family: var(--font-body); }
.chart-total { font: 600 26px var(--font-display); }
.ring { display: grid; place-items: center; position: relative; width: 120px; height: 120px; }
.ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring .track { stroke: var(--surface-3); }
.ring .meter { stroke: url(#ringFill); stroke-linecap: round; transition: stroke-dashoffset 0.8s; }
.ring b { position: absolute; font: 600 24px var(--font-display); }
.ring-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ring-legend { display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.ring-legend b { color: var(--ink); }

/* ---------- dashboard attention list ---------- */
.stock-grid { display: grid; gap: 10px; }
.stock-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-2); }
.stock-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--warn-soft); color: var(--warn); }
.stock-text { min-width: 0; flex: 1; }
.stock-text b, .stock-text small { display: block; }
.stock-text b { font-size: 13px; color: var(--ink); }
.stock-text small { font-size: 12px; color: var(--muted); }
.stock-qty { font-weight: 700; font-size: 13px; color: var(--warn); white-space: nowrap; }

/* ---------- POS ---------- */
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 20px; align-items: start; }
.pos-panel { padding: 18px; }
.pos-search { position: relative; }
.pos-search svg { position: absolute; left: 14px; top: 12px; color: var(--muted); }
.pos-search .search-input { padding-left: 42px; height: 44px; font-size: 14px; }
.category-row { display: flex; gap: 8px; margin: 6px 0 18px; overflow-x: auto; padding-bottom: 4px; }
.category-chip { flex: none; padding: 8px 15px; border-radius: 30px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: 0.15s; }
.category-chip:hover { border-color: var(--gold); color: var(--gold); }
.category-chip.selected { color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); border-color: transparent; box-shadow: 0 5px 14px rgba(15, 90, 63, 0.22); }
.pos-products { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.pos-item {
  position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; text-align: left;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.pos-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.pos-item:active { transform: translateY(-1px) scale(0.99); }
.pos-item.in-cart { border-color: var(--brand-2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-2) 35%, transparent), var(--shadow-md); }
.tile-qty { position: absolute; top: 10px; right: 10px; z-index: 2; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 20px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: #2a1e05; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.tile-add { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--brand-2); box-shadow: 0 4px 12px rgba(15, 90, 63, 0.3); transition: transform 0.15s; }
.pos-item:hover .tile-add { transform: scale(1.08) rotate(90deg); }
.pos-item-body { padding: 12px 14px 14px; padding-right: 48px; }
.pos-item-body b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-item-body small { display: block; margin: 3px 0 8px; font-size: 11.5px; color: var(--muted); }
.pos-item-body strong { font-size: 15px; font-weight: 700; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.food-img { position: relative; overflow: hidden; height: 128px; display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-3), var(--gold-soft)); }
.food-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.pos-item:hover .food-img img, .food-card:hover .food-img img { transform: scale(1.06); }
.food-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, rgba(0, 0, 0, 0.18), transparent); pointer-events: none; }
.food-fallback { display: grid; place-items: center; width: 100%; height: 100%; font: 600 34px var(--font-display); color: var(--gold); letter-spacing: 1px; }
.empty-cart { grid-column: 1 / -1; padding: 40px 16px; text-align: center; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.empty-cart b { color: var(--ink); font-size: 15px; }

.order-panel { position: sticky; top: 86px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.order-head { display: flex; align-items: center; justify-content: space-between; }
.order-head b { font: 600 20px var(--font-display); }
.order-head button { font-size: 12px; font-weight: 600; color: var(--danger); }
.order-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.order-meta select { flex: 1; min-width: 130px; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); }
.type-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 13px; background: var(--surface-3); }
.type-tabs button { height: 34px; border-radius: 10px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.type-tabs button.selected { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.delivery-fields { display: grid; }
.cart-list { max-height: 34vh; overflow-y: auto; margin: 2px -6px; padding: 0 6px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.cart-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); animation: rise 0.2s ease-out; }
.cart-row:last-child { border-bottom: 0; }
.cart-row-info b { display: block; font-size: 13px; color: var(--ink); }
.cart-row-info small { font-size: 11.5px; color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: 6px; padding: 3px; border-radius: 20px; background: var(--surface-3); }
.qty-controls button { width: 26px; height: 26px; border-radius: 50%; font-weight: 700; background: var(--surface); box-shadow: var(--shadow-sm); }
.qty-controls button:hover { color: var(--brand-2); }
.qty-controls span { min-width: 18px; text-align: center; font-weight: 700; font-size: 13px; }
.cart-price { min-width: 76px; text-align: right; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.totals { display: grid; gap: 7px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.total-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.total-row span:last-child { color: var(--ink-2); font-weight: 600; }
.total-row.grand { margin-top: 5px; padding-top: 10px; border-top: 1px dashed var(--line); font: 600 21px var(--font-display); color: var(--ink); }
.total-row.grand span:last-child { color: var(--brand-2); font-weight: 700; }
.order-submit {
  height: 54px; margin-top: 4px; border-radius: 14px; font-size: 15px; font-weight: 700; letter-spacing: 0.2px; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand) 60%, #0b3f2c);
  box-shadow: 0 12px 26px rgba(15, 90, 63, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18); transition: transform 0.12s, box-shadow 0.15s;
}
.order-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(15, 90, 63, 0.36); }
.order-submit:disabled { background: var(--surface-3); color: var(--muted); box-shadow: none; }

/* ---------- menu cards ---------- */
.menu-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.food-card { overflow: hidden; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); transition: transform 0.16s, box-shadow 0.16s; }
.food-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.food-card > .food-img { height: 158px; }
.food-body { padding: 14px 16px 16px; }
.food-body b { display: block; font: 600 16px var(--font-display); color: var(--ink); }
.food-meta { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 4px; font-size: 12px; color: var(--muted); }
.food-price { padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); }
.card-actions { display: flex; gap: 7px; margin-top: 12px; }
.card-actions.wrap { flex-wrap: wrap; align-items: center; }
.card-actions .outline-btn { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.photo-preview .food-img { height: 130px; border-radius: 12px; margin-top: 10px; }

/* ---------- tables & rooms cards ---------- */
.floor-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.table-card { position: relative; overflow: hidden; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); transition: transform 0.15s, box-shadow 0.15s; }
.table-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--surface); }
.table-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ok); opacity: 0.7; }
.table-card.st-occupied::before, .table-card.st-cleaning::before { background: var(--warn); }
.table-card.st-reserved::before { background: var(--info); }
.table-card.st-maintenance::before { background: var(--danger); }
.table-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.table-top b { font: 600 17px var(--font-display); color: var(--ink); }
.table-card p { margin: 6px 0; font-size: 12.5px; color: var(--muted); }
.table-card strong { display: block; margin-top: 8px; font-size: 14px; color: var(--ink); }

/* ---------- misc lists ---------- */
.role-list { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.recipe-line { display: flex; align-items: center; gap: 8px; margin: 9px 0; }
.recipe-line select { flex: 1; min-width: 0; }
.recipe-line input { width: 120px !important; }
.report-filter { margin-bottom: 18px; padding: 14px 18px; }
.menu-list { display: grid; gap: 8px; margin-top: 14px; }
.menu-list .outline-btn { justify-content: flex-start; height: 44px; }
.business-logo-preview { display: flex; align-items: center; justify-content: center; min-height: 64px; margin-top: 8px; padding: 10px; border-radius: 12px; border: 1px dashed var(--line); background: var(--surface-2); }
.business-logo-preview img { max-width: 240px; max-height: 90px; object-fit: contain; }

/* ---------- modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(6, 18, 13, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.18s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(500px, 100%); max-height: 90vh; overflow-y: auto; padding: 26px 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-wide { width: min(680px, 100%); }
.modal h2 { margin: 0 0 6px; font: 600 23px var(--font-display); color: var(--ink); }
.modal h3 { margin: 18px 0 4px; font-size: 14px; }
.modal > p, .modal form > p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.modal label { display: block; margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.modal input:not([type="checkbox"]), .modal select, .modal textarea { width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80; max-width: min(640px, 92vw); padding: 13px 20px; border-radius: 14px;
  font-size: 13.5px; font-weight: 500; text-align: center; color: #fff; background: rgba(15, 33, 25, 0.95);
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: 0.22s;
  border: 1px solid rgba(216, 180, 106, 0.3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: rgba(122, 36, 27, 0.96); border-color: rgba(255, 255, 255, 0.15); }

/* ---------- receipt preview (screen) ---------- */
.invoice {
  max-width: 340px; margin: 16px auto 4px; padding: 22px 20px 18px; color: #1c1c1c; background: #fffdf8;
  border-radius: 6px; font-family: var(--font-body); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px #ece4d2;
  background-image: linear-gradient(#fffdf8, #fffdf8), radial-gradient(circle at 8px -2px, transparent 6px, #fffdf8 6.5px);
}
.invoice.receipt-58 { max-width: 270px; }
.invoice-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 12px; padding-bottom: 12px; text-align: center; border-bottom: 1px dashed #c9c0ac; }
.invoice-brand strong { font: 700 18px var(--font-display); overflow-wrap: anywhere; color: #111; }
.invoice-brand small { margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: 2.5px; color: #8a6a2a; }
.invoice-logo { display: block; max-width: 130px; max-height: 56px; object-fit: contain; margin: 0 auto 6px; }
.invoice-contact { font-size: 11px; color: #555; white-space: pre-line; overflow-wrap: anywhere; }
.invoice-line { display: flex; justify-content: space-between; gap: 10px; margin: 5px 0; font-size: 12px; color: #444; }
.invoice-line b { text-align: right; color: #111; overflow-wrap: anywhere; }
.invoice hr { border: 0; border-top: 1px dashed #c9c0ac; margin: 12px 0; }
.invoice table { margin-bottom: 8px; }
.invoice th, .invoice td { padding: 6px 2px; font-size: 11.5px; background: transparent !important; color: #222; border-bottom: 1px dashed #e0d8c6; border-radius: 0 !important; }
.invoice th { color: #666; letter-spacing: 0.6px; font-size: 10px; }
.invoice td:nth-child(2), .invoice th:nth-child(2) { text-align: center; }
.invoice td:last-child, .invoice th:last-child { text-align: right; }
.invoice td small { color: #888; }
.invoice tbody tr:hover td { background: transparent; }
.invoice-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 2px solid #222; font: 700 16px var(--font-body); color: #111; }
.invoice-note { margin: 7px 0; font-size: 11px; text-align: center; color: #666; }
.invoice-thanks { margin-top: 14px; text-align: center; font: italic 600 13px var(--font-display); color: #333; }

/* ---------- auth / setup screens ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; animation: none; }
.content:has(> .auth-shell) { padding: 0; max-width: none; }
.auth-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px; color: #f3efe4;
  background: radial-gradient(600px 400px at 90% 10%, rgba(216, 180, 106, 0.35), transparent 65%), radial-gradient(500px 500px at 0% 100%, rgba(60, 192, 139, 0.22), transparent 60%), linear-gradient(150deg, #13704f 0%, #0c4632 45%, #082a1f 100%);
}
.auth-hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px), repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 22px);
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 14px; }
.auth-logo .brand-mark { width: 54px; height: 54px; font-size: 28px; border-radius: 16px; }
.auth-logo b { display: block; font: 600 20px var(--font-display); }
.auth-logo small { font-size: 10px; letter-spacing: 3px; color: var(--gold-2); }
.auth-hero h2 { max-width: 520px; margin: 0 0 14px; font: 600 44px/1.1 var(--font-display); letter-spacing: -0.5px; }
.auth-hero h2 em { font-style: italic; color: var(--gold-2); }
.auth-hero p { max-width: 470px; margin: 0; font-size: 15px; line-height: 1.6; color: rgba(243, 239, 228, 0.78); }
.auth-features { display: grid; gap: 12px; margin-top: 28px; }
.auth-features div { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(243, 239, 228, 0.9); }
.auth-features svg { color: var(--gold-2); }
.auth-foot { font-size: 12px; color: rgba(243, 239, 228, 0.55); }
.auth-side { display: grid; place-items: center; padding: 40px 24px; }
.setup-panel { width: min(520px, 100%); margin: 0; padding: 36px 38px; border-radius: 24px; box-shadow: var(--shadow-md); }
.auth-side .setup-panel.wide-panel { width: min(640px, 100%); }
.setup-panel h1 { margin: 8px 0 8px; font: 600 30px/1.15 var(--font-display); color: var(--ink); }
.setup-panel > p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; }
.setup-panel label { display: block; margin: 16px 0 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.setup-panel input:not([type="checkbox"]):not([type="file"]), .setup-panel select, .setup-panel textarea { width: 100%; height: 46px; font-size: 14px; }
.setup-panel textarea { height: auto; }
.setup-panel .primary-btn { margin-top: 20px; height: 48px; width: 100%; font-size: 14.5px; border-radius: 13px; }
.setup-panel .modal-actions { justify-content: stretch; }
.setup-panel .modal-actions .primary-btn { margin-top: 0; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { height: 5px; flex: 1; border-radius: 5px; background: var(--surface-3); }
.steps i.on { background: linear-gradient(90deg, var(--brand-2), var(--gold-2)); }
.row-actions { display: flex; gap: 8px; margin: 10px 0 2px; }
.row-actions .outline-btn { height: 36px; }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.login-brand img { max-height: 64px; max-width: 120px; object-fit: contain; border-radius: 10px; }
.login-brand h1 { margin: 0; font-size: 26px; }
.login-brand p { margin: 4px 0 0; }
.brand-mark.big { width: 60px; height: 60px; font-size: 32px; border-radius: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 6px 0 4px; border-radius: 14px; background: var(--surface-3); }
.tabs .category-chip { border: 0; border-radius: 11px; padding: 10px; font-size: 13px; background: transparent; box-shadow: none; color: var(--muted); }
.tabs .category-chip.selected { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.closed-panel { text-align: center; }

/* ---------- responsive ---------- */

/* ---- shifts, cash drawer, owner controls */
.shift-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.shift-chip.open { border-color: var(--brand-2); background: var(--brand-soft); }
.shift-chip .ic { flex: none; }
tr.voided td { opacity: .55; text-decoration: line-through; text-decoration-color: var(--danger); }
tr.voided td:last-child { opacity: 1; text-decoration: none; }
.danger-zone { border: 1px solid var(--danger); background: linear-gradient(0deg, var(--danger-soft), transparent 60%); }
.rules-form { display: grid; gap: 10px; max-width: 560px; margin-top: 10px; }
.rules-form label { display: grid; gap: 6px; }
.rules-form .inline-check { display: flex; gap: 8px; align-items: flex-start; }
.stats-grid.compact { margin-top: 14px; }
.stats-grid.compact .stat-card { padding: 14px; }
@media (max-width: 900px) { .shift-chip span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; } .top-actions .status { display: none; } }


/* ---- kitchen display screen */
.kds-page .page-heading { margin-bottom: 14px; }
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.kds-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--brand-2); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.06); transition: opacity .25s, transform .25s; }
.kds-card.warn { border-top-color: var(--gold); }
.kds-card.late { border-top-color: var(--danger); }
.kds-card.late .kds-time { background: var(--danger); color: #fff; }
.kds-card.warn .kds-time { background: var(--gold-soft); color: var(--ink); }
.kds-card.fresh { animation: kdsFlash 1.2s ease 2; }
.kds-card.leaving { opacity: 0; transform: scale(.96); }
@keyframes kdsFlash { 0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,.06); } 50% { box-shadow: 0 0 0 4px var(--gold-2); } }
.kds-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px dashed var(--line); }
.kds-card header b { display: block; font-size: 22px; line-height: 1.1; }
.kds-card header small { color: var(--muted); font-size: 12px; }
.kds-time { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); font-weight: 700; font-size: 14px; white-space: nowrap; }
.kds-body { padding: 10px 16px 4px; flex: 1; }
.kds-round + .kds-round { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.kds-round-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--gold); margin-bottom: 4px; }
.kds-item { display: flex; gap: 10px; font-size: 19px; padding: 4px 0; }
.kds-item b { min-width: 34px; color: var(--brand-2); }
.kds-done { font-size: 12px; color: var(--muted); margin-top: 8px; }
.kds-note { margin: 10px 0 6px; padding: 8px 10px; border-radius: 10px; background: var(--gold-soft); font-size: 14px; font-weight: 600; }
.kds-ready { margin: 12px 16px 16px; height: 56px; border: 0; border-radius: 12px; background: var(--brand-2); color: var(--surface); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.kds-ready:hover { background: var(--brand); }
.kds-ready:disabled { opacity: .6; }
.kds-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); }
.kds-empty .ic { color: var(--brand-2); }
.kds-ready-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.kds-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); font-weight: 600; font-size: 13px; }
:root:fullscreen .sidebar, :root:fullscreen .topbar { display: none !important; }
:root:fullscreen .main-area { margin-left: 0; }


/* ---- network & devices */
.pair-code { font: 700 40px/1 ui-monospace, Consolas, monospace; letter-spacing: .25em; text-align: center; padding: 18px; margin: 12px 0; border-radius: 14px; background: var(--gold-soft); border: 1px dashed var(--gold); }
.lan-urls { display: grid; gap: 8px; margin: 8px 0; }
.lan-urls code { font-size: 20px; font-weight: 700; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); user-select: all; word-break: break-all; }
.hint-box { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.hint-box summary { cursor: pointer; font-weight: 600; }
.mono { font-family: ui-monospace, Consolas, monospace; }


/* ---- connection bar */
.net-bar { position: fixed; left: 50%; top: 10px; transform: translate(-50%, -140%); z-index: 1000; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px; background: var(--danger); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .25s; text-align: center; }
.net-bar.show { transform: translate(-50%, 0); }
.net-bar.ok { background: var(--brand-2); color: var(--surface); }
@media print { .net-bar { display: none; } }

@media (max-width: 1280px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1060px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .pos-layout { grid-template-columns: minmax(0, 1fr); }
  .order-panel { position: static; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { padding: 34px 28px; min-height: 0; }
  .auth-hero h2 { font-size: 32px; }
  .auth-features, .auth-foot { display: none; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s; }
  .sidebar.open { transform: none; }
  .main-area { margin-left: 0; }
  .mobile-menu { display: grid; place-items: center; }
  .topbar { padding: 0 16px; }
  .status { display: none; }
  .content { padding: 22px 16px 50px; }
  .page-heading h1 { font-size: 26px; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .top-profile span:not(.avatar) { display: none; }
  .setup-panel { padding: 26px 20px; }
  .modal { padding: 22px 18px; }
  .bar-row { grid-template-columns: 90px 1fr auto; }
}

/* ---------- printing: report pages and thermal receipts ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --ink-2: #111; --muted: #444; --line: #ccc; --line-2: #ddd; color-scheme: light; }
  body { background: #fff !important; }
  .stat-card, .panel { box-shadow: none !important; break-inside: avoid; }
  .stats-grid > .stat-card:first-child { background: #fff !important; color: #000 !important; border: 1px solid #ccc !important; }
  .stats-grid > .stat-card:first-child * { color: #000 !important; }
  body[data-printing="page"] .sidebar, body[data-printing="page"] .topbar, body[data-printing="page"] .heading-actions,
  body[data-printing="page"] .report-filter, body[data-printing="page"] #modalRoot, body[data-printing="page"] .toast { display: none !important; }
  body[data-printing="page"] .main-area { margin: 0 !important; }
  body[data-printing="page"] .content { padding: 0 !important; animation: none !important; }

  body[data-printing="receipt"] { background: #fff !important; margin: 0 !important; }
  body[data-printing="receipt"] .app-shell, body[data-printing="receipt"] .toast { display: none !important; }
  body[data-printing="receipt"] #modalRoot .modal-backdrop { position: static !important; display: block !important; padding: 0 !important; background: none !important; backdrop-filter: none !important; animation: none !important; }
  body[data-printing="receipt"] #modalRoot .modal { position: static !important; width: auto !important; max-width: none !important; max-height: none !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; animation: none !important; }
  body[data-printing="receipt"] #modalRoot .modal > h2, body[data-printing="receipt"] #modalRoot .modal > p, body[data-printing="receipt"] #modalRoot .modal-actions { display: none !important; }
  #thermalInvoice { width: 80mm !important; max-width: 80mm !important; margin: 0 !important; padding: 3mm !important; border: 0 !important; border-radius: 0 !important; font-family: Arial, sans-serif !important; color: #000 !important; background: #fff !important; background-image: none !important; font-size: 9pt !important; box-shadow: none !important; }
  body[data-print-width="58"] #thermalInvoice { width: 58mm !important; max-width: 58mm !important; padding: 2mm !important; font-size: 8pt !important; }
  #thermalInvoice * { color: #000 !important; background: transparent !important; }
  #thermalInvoice .invoice-brand { margin: 0 0 2mm !important; padding: 0 0 2mm !important; border-bottom: 1px dashed #000 !important; display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; }
  #thermalInvoice .invoice-brand strong { font: 700 12pt Arial, sans-serif !important; }
  body[data-print-width="58"] #thermalInvoice .invoice-brand strong { font-size: 10pt !important; }
  #thermalInvoice .invoice-brand small { font: 700 7pt Arial, sans-serif !important; letter-spacing: 1px !important; margin-top: 1mm !important; }
  #thermalInvoice .invoice-logo { max-width: 40mm !important; max-height: 14mm !important; filter: grayscale(1) !important; margin-bottom: 1mm !important; }
  body[data-print-width="58"] #thermalInvoice .invoice-logo { max-width: 30mm !important; max-height: 11mm !important; }
  #thermalInvoice .invoice-contact { font: 7pt Arial, sans-serif !important; margin-top: 0.5mm !important; }
  #thermalInvoice .invoice-line { font-size: 8pt !important; margin: 1.2mm 0 !important; gap: 2mm !important; }
  body[data-print-width="58"] #thermalInvoice .invoice-line { font-size: 7pt !important; }
  #thermalInvoice .invoice-line b { text-align: right !important; overflow-wrap: anywhere !important; }
  #thermalInvoice table { width: 100% !important; table-layout: fixed !important; border-collapse: collapse !important; }
  #thermalInvoice th, #thermalInvoice td { padding: 1mm 0.5mm !important; font-size: 8pt !important; border-bottom: 1px dashed #999 !important; white-space: normal !important; overflow-wrap: anywhere !important; }
  body[data-print-width="58"] #thermalInvoice th, body[data-print-width="58"] #thermalInvoice td { font-size: 7pt !important; }
  #thermalInvoice th { border-bottom: 1px solid #000 !important; letter-spacing: 0 !important; }
  #thermalInvoice th:first-child, #thermalInvoice td:first-child { width: 52% !important; }
  #thermalInvoice th:nth-child(2), #thermalInvoice td:nth-child(2) { width: 14% !important; text-align: center !important; }
  #thermalInvoice th:last-child, #thermalInvoice td:last-child { width: 34% !important; text-align: right !important; }
  #thermalInvoice hr { border: 0 !important; border-top: 1px dashed #000 !important; margin: 2mm 0 !important; }
  #thermalInvoice .invoice-total { font: 700 10pt Arial, sans-serif !important; border-top: 1px solid #000 !important; padding-top: 1.5mm !important; margin-top: 1.5mm !important; }
  #thermalInvoice .invoice-thanks { font: 700 8pt Arial, sans-serif !important; margin-top: 3mm !important; text-align: center !important; }
  #thermalInvoice .invoice-note { font-size: 7pt !important; }
}
.grid > *, .pos-layout > * { min-width: 0; }
@media (max-width: 560px) {
  .pos-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pos-item .food-img { height: 96px; }
  .pos-item-body { padding: 10px 12px 12px; padding-right: 40px; }
  .breadcrumb #hotelNameTop, .breadcrumb .crumb-slash { display: none; }
}

/* ---------- floor plan (tables with running bills) ---------- */
.floor-tabs { display: flex; gap: 6px; margin-bottom: 14px; padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); overflow-x: auto; }
.floor-tabs button { flex: none; height: 42px; padding: 0 20px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.floor-tabs button:hover { color: var(--ink); background: var(--surface-2); }
.floor-tabs button.selected { color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 5px 14px rgba(15, 90, 63, 0.25); }
.floor-tabs button span { margin-left: 6px; padding: 1px 7px; border-radius: 10px; font-size: 11px; background: var(--danger); color: #fff; }
.floor-tabs button span:empty { display: none; }
.floor-panel { padding: 22px; }
.floor-grid-big { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.floor-tile {
  position: relative; aspect-ratio: 1 / 0.86; min-height: 118px; padding: 14px; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; color: #fff;
  transition: transform 0.14s, box-shadow 0.14s, filter 0.14s; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.floor-tile:hover { transform: translateY(-3px); filter: brightness(1.06); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18); }
.floor-tile:active { transform: scale(0.98); }
.floor-tile b { font: 700 26px var(--font-body); letter-spacing: 0.5px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.floor-tile small { font-size: 12px; opacity: 0.85; }
.floor-tile strong { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.floor-tile.free { background: linear-gradient(150deg, #2f9a62, #1c6b42); }
.floor-tile.busy { background: linear-gradient(150deg, #d9456b, #a3234a); box-shadow: 0 8px 22px rgba(163, 35, 74, 0.35); }
.floor-tile.busy.ready { background: linear-gradient(150deg, #e0a43a, #b77514); box-shadow: 0 8px 22px rgba(183, 117, 20, 0.35); }
.floor-tile.special { background: linear-gradient(150deg, #1d5f86, #123e5c); }
.floor-tile.seated { background: linear-gradient(150deg, #7a4fc4, #4f2e91); box-shadow: 0 8px 22px rgba(79, 46, 145, 0.3); }
.floor-tile.cleaning { background: linear-gradient(150deg, #8a9a91, #5d6d64); }
.floor-tile.special svg { width: 30px; height: 30px; margin-bottom: 4px; }
.tile-flag { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #3a2503; background: #ffe7b0; }
.floor-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.floor-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.lg.free { background: #2f9a62; } .lg.busy { background: #c93560; } .lg.ready { background: #d6962a; } .lg.seated { background: #6a43b0; }
/* ticket panel */
.sent-head { margin: 10px 0 2px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; }
.sent-head.new { color: var(--brand-2); }
.round-tag { margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--gold); }
.cart-row.sent { opacity: 0.85; }
.cart-row.sent .cart-row-info b { color: var(--ink-2); }
.qty-fixed { font-weight: 700; font-size: 13px; color: var(--ink-2); min-width: 40px; text-align: center; }
.void-btn { margin-left: 6px; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; color: var(--danger); background: var(--danger-soft); }
.ticket-actions { display: grid; gap: 8px; }
.btn-pair { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.btn-pair .outline-btn { height: 54px; border-radius: 14px; }
.order-submit.pay { background: linear-gradient(135deg, #c99a44, #a8792a); box-shadow: 0 12px 26px rgba(168, 121, 42, 0.3); }
.type-tabs.two { grid-template-columns: 1fr 1fr; }
.invoice.kot .invoice-brand strong { letter-spacing: 2px; }
.invoice.kot td { font-size: 14px; }
.outline-btn.danger { color: var(--danger); }
@media (max-width: 560px) { .floor-grid-big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .floor-tile b { font-size: 21px; } }
.forgot { margin: 14px 0 0; text-align: center; }
.steps-list { margin: 12px 0 6px; padding-left: 20px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ---------- purchases, vendor & account ledgers ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.purchase-head { display: grid; grid-template-columns: 1fr 90px 110px 100px 24px; gap: 8px; margin: 4px 0 -4px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.purchase-head.jv { grid-template-columns: 1fr 120px 120px 24px; }
.purchase-line { display: grid; grid-template-columns: 1fr 90px 110px 100px 24px; }
.jv-line { display: grid; grid-template-columns: 1fr 120px 120px 24px; }
.purchase-line input, .jv-line input { width: 100% !important; }
.line-total { text-align: right; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.ob td { background: var(--surface-2); }
tr.clickable { cursor: pointer; }
.ledger-title { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; font-size: 14px; }
.statement-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.statement-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.statement-bal { text-align: right; padding: 10px 16px; border-radius: 14px; background: var(--gold-soft); }
.statement-bal small { display: block; font-size: 11px; color: var(--muted); }
.statement-bal b { font: 600 24px var(--font-display); color: var(--ink); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .purchase-head { display: none; } .purchase-line, .jv-line { grid-template-columns: 1fr 1fr; } }
@media print {
  body[data-printing="statement"] .app-shell, body[data-printing="statement"] .toast { display: none !important; }
  body[data-printing="statement"] #modalRoot .modal-backdrop { position: static !important; display: block !important; padding: 0 !important; background: none !important; backdrop-filter: none !important; }
  body[data-printing="statement"] #modalRoot .modal { position: static !important; width: auto !important; max-width: none !important; max-height: none !important; overflow: visible !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; animation: none !important; }
  body[data-printing="statement"] .modal-actions, body[data-printing="statement"] .no-print { display: none !important; }
  body[data-printing="ledger"] .sidebar, body[data-printing="ledger"] .topbar, body[data-printing="ledger"] #modalRoot, body[data-printing="ledger"] .toast { display: none !important; }
  body[data-printing="ledger"] .main-area { margin: 0 !important; }
  body[data-printing="ledger"] .content > *:not(.panel) { display: none !important; }
  body[data-printing="ledger"] .content > .panel:not(:has(#ledgerPrint)) { display: none !important; }
  body[data-printing="ledger"] .form-row { display: none !important; }
  table { font-size: 10pt; }
}
.modal:has(.ledger-table) { width: min(980px, 100%); }
.ledger-table td:nth-child(2) { white-space: nowrap; font-size: 12px; color: var(--muted); }
/* chart of accounts, statements, vouchers */
tr.inactive td { opacity: 0.5; }
.coa-group { margin-bottom: 16px; }
.st-grid { margin-bottom: 0; }
.st-head { display: flex; justify-content: space-between; margin: 10px 0 6px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-weight: 700; font-size: 13px; }
.st-head.total { background: var(--gold-soft); }
.st-grid table td { padding: 8px 12px; }
.sign-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.sign-row span { padding-top: 6px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); }
@media print {
  body[data-printing="statements"] .sidebar, body[data-printing="statements"] .topbar, body[data-printing="statements"] .heading-actions, body[data-printing="statements"] .floor-tabs,
  body[data-printing="statements"] .report-filter, body[data-printing="statements"] #modalRoot, body[data-printing="statements"] .toast { display: none !important; }
  body[data-printing="statements"] .main-area { margin: 0 !important; }
  body[data-printing="statements"] .panel { break-inside: avoid; }
}
/* cloud: subscription notice above the page */
.billing-bar { margin: 12px 28px 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.billing-bar.info { background: var(--surface-2, #f3efe6); border-color: var(--line, #e4dccb); }
.billing-bar.warn { background: var(--warn-soft); color: var(--warn); border-color: currentColor; }
.billing-bar.danger { background: var(--danger-soft); color: var(--danger); border-color: currentColor; }
.billing-bar .link-btn { margin-left: 8px; }
@media (max-width: 760px) { .billing-bar { margin: 10px 14px 0; } }
/* shop mode: purchase lines with batch + expiry */
.purchase-head.with-exp, .purchase-line.with-exp { grid-template-columns: 1fr 80px 95px 90px 130px 90px 24px; }
/* shop mode: sale counter */
.shop-counter { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.shop-left { min-height: 70vh; }
.shop-right { position: sticky; top: 80px; display: grid; gap: 12px; }
.shop-scan { display: flex; gap: 8px; align-items: center; position: relative; }
.shop-scan .search-input { flex: 1; height: 46px; font-size: 16px; padding-left: 40px; }
.shop-scan-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.shop-results { display: grid; gap: 6px; margin: 10px 0; }
.shop-results:empty { display: none; }
.shop-result { display: flex; justify-content: space-between; gap: 12px; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; }
.shop-result:hover, .shop-result:focus { border-color: var(--brand-2); outline: none; background: var(--brand-soft); }
.shop-result .num { text-align: right; white-space: nowrap; }
.shop-cart input.search-input { width: 90px; height: 34px; text-align: right; }
.shop-cart .link-btn.small { font-size: 11.5px; }
.shop-empty { display: grid; place-items: center; gap: 6px; padding: 70px 10px; color: var(--muted); text-align: center; }
.shop-customer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13.5px; }
.shop-tenders { grid-template-columns: repeat(2, 1fr); }
.shop-tenders button { height: 40px; font-size: 13px; }
.shop-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; }
.inline-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0; font-size: 13px; color: var(--muted); }
.inline-row input { width: 120px; height: 34px; text-align: right; }
.primary-btn.wide { width: 100%; height: 50px; font-size: 16px; }
.shop-cust-list { max-height: 50vh; overflow: auto; }
.shop-cust-list .outline-btn { display: flex; justify-content: space-between; }
/* shelf / barcode labels */
.label-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(50mm, 1fr)); gap: 3mm; }
.shelf-label { display: grid; gap: 2px; justify-items: center; padding: 2.5mm; border: 1px dashed #bbb; border-radius: 4px; background: #fff; color: #000; font-size: 11px; text-align: center; break-inside: avoid; }
.shelf-label b { font-size: 11px; line-height: 1.2; }
.shelf-label strong { font-size: 15px; }
.shelf-label .bc { width: 44mm; height: 12mm; }
@media (max-width: 1000px) { .shop-counter { grid-template-columns: 1fr; } .shop-right { position: static; } }
/* shop: variants, held bills, A4 invoice */
.variant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.variant-grid .outline-btn { display: grid; gap: 2px; height: auto; padding: 10px; text-align: center; }
.variant-grid .outline-btn[data-empty] { opacity: .55; }
.held-row { display: flex; gap: 8px; align-items: center; }
.held-row .outline-btn { display: flex; justify-content: space-between; flex: 1; }
.a4-invoice { background: #fff; color: #111; padding: 10mm; font-size: 12.5px; max-width: 210mm; margin: 0 auto; }
.a4-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #111; padding-bottom: 8px; margin-bottom: 10px; }
.a4-head h1 { margin: 4px 0; font-size: 22px; color: #111; }
.a4-head h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: 1px; color: #111; }
.a4-meta { text-align: right; }
.a4-logo { max-height: 60px; max-width: 160px; }
.a4-to { margin: 8px 0 12px; }
.a4-table { width: 100%; border-collapse: collapse; }
.a4-table th, .a4-table td { border: 1px solid #999; padding: 5px 7px; color: #111; background: #fff; }
.a4-table th { background: #eee; font-size: 11px; }
.a4-table .num { text-align: right; }
.a4-totals { margin: 10px 0 0 auto; width: 300px; display: grid; gap: 3px; }
.a4-totals div { display: flex; justify-content: space-between; }
.a4-totals .grand { border-top: 2px solid #111; padding-top: 4px; font-size: 15px; }
.a4-sign { display: flex; justify-content: space-between; margin-top: 50px; }
.a4-sign div { border-top: 1px solid #111; padding-top: 4px; width: 200px; text-align: center; }
.a4-foot { text-align: center; margin-top: 18px; color: #444; }
/* ---- Urdu (right to left) ---- */
html[lang="ur"] { --font-body: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Urdu Typesetting", "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Urdu Typesetting", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif; }
html[lang="ur"] body { font-size: 15px; line-height: 1.75; }
html[dir="rtl"] .sidebar { inset: 0 0 0 auto; box-shadow: -1px 0 0 rgba(255, 255, 255, 0.04), -10px 0 40px rgba(6, 25, 18, 0.18); }
html[dir="rtl"] .main-area { margin-left: 0; margin-right: 264px; }
html[dir="rtl"] .main-area.bare { margin-right: 0; }
html[dir="rtl"] th, html[dir="rtl"] td { text-align: right; }
html[dir="rtl"] th.num, html[dir="rtl"] td.num, html[dir="rtl"] .num { text-align: left; }
html[dir="rtl"] .mono, html[dir="rtl"] input[type="number"], html[dir="rtl"] .stat-value, html[dir="rtl"] .bar-value { direction: ltr; unicode-bidi: plaintext; }
html[dir="rtl"] .shop-scan .search-input { padding-left: 13px; padding-right: 40px; }
html[dir="rtl"] .shop-scan-icon { left: auto; right: 13px; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .nav-label, html[dir="rtl"] th { letter-spacing: 0; }
html[dir="rtl"] .billing-bar .link-btn { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .a4-meta { text-align: left; }
html[dir="rtl"] .a4-totals { margin: 10px auto 0 0; }
.lang-btn { min-width: 54px; padding: 0 10px; font-weight: 700; }
.lang-switch { position: absolute; top: 18px; right: 22px; z-index: 2; font-weight: 700; }
html[dir="rtl"] .lang-switch { right: auto; left: 22px; }
.auth-side { position: relative; }
@media (max-width: 900px) {
  html[dir="rtl"] .sidebar { transform: translateX(100%); }
  html[dir="rtl"] .sidebar.open { transform: none; }
  html[dir="rtl"] .main-area { margin-right: 0; }
}
