:root,
html[data-panel="gece"] {
  color-scheme: dark;
  --bg: #14110d;
  --bg-2: #1c1813;
  --panel: #221c16;
  --surface: #18150f;
  --surface-2: #241c12;
  --line: rgba(232, 214, 184, 0.12);
  --ink: #f4ead8;
  --muted: #b5a48c;
  --gold: #d4a24c;
  --gold-2: #f0cf86;
  --good: #7dbe7a;
  --warn: #e0a45a;
  --bad: #d36a5a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --nav-bg: rgba(20, 17, 13, 0.72);
  --input-bg: #16130f;
  --btn-ink: #21180c;
  --glow-1: rgba(212, 162, 76, 0.16);
  --glow-2: rgba(125, 70, 40, 0.2);
}
html[data-panel="fildisi"] {
  color-scheme: light;
  --bg: #f4eee3;
  --bg-2: #ebe3d4;
  --panel: #fffaf2;
  --surface: #f7f0e4;
  --surface-2: #efe6d6;
  --line: rgba(70, 50, 28, 0.14);
  --ink: #2a2118;
  --muted: #6d5d4c;
  --gold: #b8862e;
  --gold-2: #8a5a22;
  --good: #3f7d45;
  --warn: #b06a1c;
  --bad: #b04a3c;
  --shadow: 0 16px 36px rgba(80, 50, 20, 0.08);
  --nav-bg: rgba(255, 250, 242, 0.9);
  --input-bg: #fffdf8;
  --btn-ink: #21180c;
  --glow-1: rgba(212, 162, 76, 0.18);
  --glow-2: rgba(180, 120, 70, 0.1);
}
html[data-panel="zeytin"] {
  color-scheme: light;
  --bg: #e8eee4;
  --bg-2: #dde6d7;
  --panel: #f6faf2;
  --surface: #eef4e8;
  --surface-2: #e3ebd9;
  --line: rgba(50, 70, 42, 0.14);
  --ink: #243024;
  --muted: #5c6b58;
  --gold: #5f8a45;
  --gold-2: #3f5c32;
  --good: #3f7d45;
  --warn: #b07a20;
  --bad: #b04a3c;
  --shadow: 0 16px 36px rgba(40, 60, 30, 0.08);
  --nav-bg: rgba(246, 250, 242, 0.9);
  --input-bg: #fcfef8;
  --btn-ink: #1a2418;
  --glow-1: rgba(125, 160, 90, 0.18);
  --glow-2: rgba(70, 110, 60, 0.1);
}
html[data-panel="deniz"] {
  color-scheme: dark;
  --bg: #0e1520;
  --bg-2: #131c2b;
  --panel: #172233;
  --surface: #121b2a;
  --surface-2: #1c2b40;
  --line: rgba(184, 212, 240, 0.12);
  --ink: #e6eef8;
  --muted: #93a4bc;
  --gold: #6ea8d6;
  --gold-2: #b8d4f0;
  --good: #7dbe7a;
  --warn: #e0a45a;
  --bad: #d36a5a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --nav-bg: rgba(14, 21, 32, 0.8);
  --input-bg: #101827;
  --btn-ink: #0e1520;
  --glow-1: rgba(110, 168, 214, 0.16);
  --glow-2: rgba(40, 70, 120, 0.22);
}
html[data-panel="grafit"] {
  color-scheme: dark;
  --bg: #16181c;
  --bg-2: #1c1f24;
  --panel: #22262c;
  --surface: #1a1d22;
  --surface-2: #2a2f36;
  --line: rgba(230, 232, 236, 0.12);
  --ink: #ececec;
  --muted: #9aa0a8;
  --gold: #c4c8ce;
  --gold-2: #e8eaed;
  --good: #7dbe7a;
  --warn: #e0a45a;
  --bad: #d36a5a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  --nav-bg: rgba(22, 24, 28, 0.8);
  --input-bg: #121418;
  --btn-ink: #16181c;
  --glow-1: rgba(200, 205, 212, 0.1);
  --glow-2: rgba(80, 86, 96, 0.2);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--glow-1), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, var(--glow-2), transparent 45%),
    var(--bg);
  color: var(--ink);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--gold-2); }

.app { width: min(1180px, calc(100% - 32px)); margin: 28px auto 64px; }
html.is-gate {
  color-scheme: light;
  --bg: #f6efe4;
  --bg-2: #efe3d2;
  --panel: #fffaf4;
  --surface: #fff8f1;
  --surface-2: #f4e6d4;
  --line: rgba(92, 42, 18, 0.14);
  --ink: #2a1610;
  --muted: #6e5346;
  --gold: #e24a1c;
  --gold-2: #b33612;
  --good: #2f8a4e;
  --warn: #c56a14;
  --bad: #c24538;
  --shadow: 0 22px 50px rgba(90, 32, 12, 0.12);
  --nav-bg: rgba(255, 250, 244, 0.92);
  --input-bg: #ffffff;
  --btn-ink: #fffaf6;
  --glow-1: rgba(226, 74, 28, 0.2);
  --glow-2: rgba(31, 107, 92, 0.16);
}
html.is-gate body {
  font-family: "Outfit", "Segoe UI", system-ui, sans-serif;
}
html.is-gate h1,
html.is-gate h2,
html.is-gate .brand {
  font-family: "Fraunces", Georgia, serif;
}
.app.is-gate .top-actions { display: none; }
.app.is-gate .top { align-items: flex-end; }
.app.is-gate .brand { color: var(--gold-2); }
.app.is-gate .gate-card {
  box-shadow: var(--shadow);
  border-color: rgba(226, 74, 28, 0.16);
}
.app.is-gate .nav-btn.active {
  background: color-mix(in srgb, var(--gold) 14%, #fff);
  color: var(--gold-2);
}
.app.is-gate input,
.app.is-gate select,
.app.is-gate textarea {
  border-color: rgba(92, 42, 18, 0.18);
  background: #fff;
}
.app.is-gate .btn:not(.google-btn):not(.ghost) {
  box-shadow: 0 10px 22px rgba(226, 74, 28, 0.28);
}
.app.is-gate .google-btn {
  box-shadow: 0 6px 16px rgba(42, 22, 16, 0.08);
}
.gate-single { max-width: 540px; margin: 0 auto; }
.gate-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--nav-bg);
}
.gate-tabs .nav-btn { flex: 1; }
.legal-opens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.legal-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-height: 92px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.legal-chip:hover {
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
  box-shadow: 0 8px 22px rgba(42, 33, 24, 0.08);
  transform: translateY(-1px);
}
.legal-chip-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.legal-chip-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}
.legal-chip-hint {
  margin-top: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.kvkk-open {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}
.kvkk-open::after {
  content: "Oku";
  float: right;
  color: var(--gold);
  font-weight: 700;
}
.kvkk-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 12, 8, 0.48);
}
.kvkk-modal.hidden { display: none !important; }
.kvkk-dialog {
  width: min(640px, 100%);
  max-height: min(82vh, 740px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.kvkk-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.kvkk-head h3 { margin: 0; font-size: 18px; }
.kvkk-dialog .kvkk-body {
  padding: 16px 18px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-height: none;
  overflow: auto;
  flex: 1;
}
.kvkk-body h4 {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.kvkk-body h4:first-child { margin-top: 0; }
.kvkk-body h5 {
  margin: 12px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.kvkk-body p { margin: 0 0 10px; }
.kvkk-body.legal-doc h4,
.kvkk-body.legal-doc h5 {
  font-weight: 400;
  color: var(--ink);
}
.kvkk-body.legal-doc h4 { font-size: 16px; margin: 18px 0 8px; }
.kvkk-body.legal-doc h5 { font-size: 14px; margin: 12px 0 4px; }
.kvkk-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.kvkk-check input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.gate-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.gate-actions .btn { width: 100%; flex: none; }
.btn.google-btn {
  width: 100%;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff !important;
  color: #3c4043 !important;
  border: 1px solid #dadce0 !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18);
}
.app.is-gate .btn.google-btn {
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18);
}
.text-link {
  display: inline-block;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-2);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.btn.google-btn:hover { filter: none; background: #f8f9fa !important; }
.google-icon {
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.6 32.4 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 8 3.1l5.7-5.7C34.2 6.1 29.4 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.2-.1-2.3-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 16 19 13 24 13c3.1 0 5.8 1.2 8 3.1l5.7-5.7C34.2 6.1 29.4 4 24 4 16.3 4 9.6 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.5-11.2-8.3l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-1.1 3.2-3.6 5.7-6.7 7.1l6.2 5.2C37.8 38 44 33 44 24c0-1.2-.1-2.3-.4-3.5z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}
.auth-or {
  margin: 14px 0 2px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.dash-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--nav-bg);
}
.nav-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}
.nav-btn:hover { background: var(--surface-2); }
.nav-btn.active {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--gold-2);
}
.nav-btn.nav-alert {
  border-color: var(--warn, #c45c2a);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn, #c45c2a) 35%, transparent);
  animation: navPulse 1.2s ease-in-out infinite;
}
@keyframes navPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.home-days { margin-top: 10px; }
.trial-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.trial-days {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.trial-days.warn {
  border-color: var(--bad);
  color: var(--bad);
}
.top-brand h1 { margin: 4px 0 0; }
.dash-branch-line {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.3;
  color: var(--muted);
}
.dash-branch-place {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}
.top-actions .btn {
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
#statusPills {
  display: flex;
  align-items: center;
  min-height: 42px;
}
#statusPills .pill {
  height: 42px;
  padding: 0 14px;
  box-sizing: border-box;
}
.branch-picker { position: relative; }
.branch-picker-btn {
  min-width: 210px;
  height: 42px;
  padding: 4px 34px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--ink);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  position: relative;
}
.branch-picker-btn::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.branch-picker-main {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
}
.branch-picker-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}
.branch-picker-sub .dash-branch-place { font-size: 11px; }
.branch-picker-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 100%;
  z-index: 20;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.branch-picker-opt {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.branch-picker-opt:hover,
.branch-picker-opt.on {
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}
.branch-picker-opt-name { font-size: 13px; font-weight: 600; }
.branch-picker-opt-sub { font-size: 12px; color: var(--muted); }
.branch-picker-opt-sub .dash-branch-place { font-size: 11px; }
.branch-list { display: grid; gap: 8px; margin-top: 10px; }
.branch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.staff-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 4px;
}
.staff-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  cursor: pointer;
}
.staff-checks input { width: auto; }
.staff-item { align-items: flex-start; }
.staff-item .row { flex-wrap: wrap; justify-content: flex-end; }
.pos-kpi.company {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
}
.branch-item.on { border-color: var(--gold); }
.branch-item .row { margin: 0; flex-wrap: wrap; justify-content: flex-end; }
.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.08em; text-transform: none; color: var(--gold); font-size: 15px; font-weight: 600; }
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.brand-link:hover { opacity: 0.92; }
html.is-gate .brand-link { cursor: pointer; }
.lang-switch {
  display: none;
  gap: 4px;
  align-items: center;
}
html.is-gate .lang-switch.gate-lang { display: inline-flex; }
.lang-btn {
  min-width: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: inherit;
  font: 600 12px/1 inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-btn.on,
.lang-btn[aria-pressed="true"] {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: #fff;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span span { opacity: 0.72; }
h1, h2, h3 { margin: 6px 0; font-weight: 600; }
.sub { color: var(--muted); line-height: 1.5; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1.15fr 0.85fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: stretch; }
  .top-actions { justify-content: flex-start; flex-wrap: wrap; }
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card.soft { background: var(--bg-2); }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.file-pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}
.file-pick-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-pick-name { color: var(--muted); font-size: 14px; }
.price-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  max-width: 128px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  border-radius: 12px;
  padding-right: 12px;
  color: var(--muted);
}
.price-field input {
  border: 0;
  background: transparent;
  min-width: 0;
}
textarea, input, select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 12px;
}
textarea { resize: vertical; min-height: 76px; }
.item-desc { margin: 4px 0 0 54px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--btn-ink);
  font-weight: 700;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.good { background: #3f7d45; color: #f3fff2; }
.btn.warn { background: #8a5a22; color: #fff4e4; }
.btn.bad { background: #7a332b; color: #ffe9e5; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  color: var(--gold-2);
}
.pill.ok { color: var(--good); }
.pill.stop { color: var(--bad); }

.stat { font-size: 42px; line-height: 1; color: var(--gold-2); }
.stat.warn { color: var(--bad); }
.qr-box {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  min-height: 220px;
}
.qr-box img { width: 200px; height: 200px; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 13px; word-break: break-all; }

.cat { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--muted);
}
.item-soldout { opacity: 0.72; }
.waiter-call-item {
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.waiter-call-table {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  font-size: 14px;
  color: var(--muted);
}
.check-row input { width: auto; }
.item-main { flex: 1; min-width: 0; }
.item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.item-actions .btn { white-space: nowrap; }
.prod-i18n {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--surface);
}
.prod-i18n summary {
  cursor: pointer;
  color: var(--gold-2);
  font-weight: 700;
}
.item b { color: var(--ink); font-weight: 600; }
.hidden { display: none !important; }
.notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(212, 162, 76, 0.1);
  border: 1px solid rgba(212, 162, 76, 0.25);
  color: var(--gold-2);
  margin-bottom: 14px;
}
.notice.bad {
  background: rgba(211, 106, 90, 0.1);
  border-color: rgba(211, 106, 90, 0.28);
  color: #f0b8b0;
}
.notice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.notice-row .btn { flex: 0 0 auto; }
.demo-creds {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
}
.demo-creds-title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
}
.demo-creds-title span {
  font-weight: 500;
  opacity: 0.7;
}
.demo-cred {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.demo-cred b { grid-column: 1; font-size: 13px; }
.demo-cred span { grid-column: 1; font-size: 12px; opacity: 0.7; }
.demo-cred code {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 12px;
  color: var(--gold-2);
}
.demo-cred:hover { border-color: rgba(212, 162, 76, 0.55); }
.err {
  color: var(--bad);
  font-size: 14px;
  margin: 8px 0 0;
}
.field-bad {
  border-color: var(--bad) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent);
}
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.theme {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme .sub { font-size: 12px; }
.theme .btn { margin-top: auto; }
.theme.locked { opacity: 0.45; }
.swatch { height: 36px; border-radius: 8px; margin-bottom: 8px; border: 1px solid var(--line); }
.order {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.pos-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.pos-kpi {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface);
}
.pos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.pos-head h3 { margin: 0; }
.pos-switches {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.status-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--bad) 55%, var(--line));
  border-radius: 999px;
  padding: 6px 12px 6px 11px;
  font: inherit;
  background: color-mix(in srgb, var(--bad) 14%, var(--surface));
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.status-switch.on {
  border-color: color-mix(in srgb, var(--good) 55%, var(--line));
  background: color-mix(in srgb, var(--good) 16%, var(--surface));
  color: var(--ink);
}
.status-switch:hover { filter: brightness(1.08); }
.status-switch:disabled { opacity: 0.7; cursor: wait; }
.status-caption {
  color: inherit;
  font-size: 12px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 8px var(--bad);
}
.status-switch.on .status-dot {
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}
.status-text {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.bell-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--bad) 50%, var(--line));
  border-radius: 999px;
  padding: 8px 14px 8px 12px;
  font: inherit;
  cursor: pointer;
  user-select: none;
  background: color-mix(in srgb, var(--bad) 12%, var(--surface));
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.bell-toggle:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.bell-toggle:active { transform: translateY(0); }
.bell-toggle.on {
  border-color: color-mix(in srgb, var(--good) 55%, var(--line));
  background: color-mix(in srgb, var(--good) 14%, var(--surface));
}
.bell-toggle-label {
  font-size: 13px;
  font-weight: 600;
}
.bell-toggle-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bad) 55%, #8a3a34);
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
}
.bell-toggle.on .bell-toggle-track {
  background: color-mix(in srgb, var(--good) 70%, #2f6b45);
}
.bell-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: left 0.18s ease;
}
.bell-toggle.on .bell-toggle-knob { left: 21px; }
.bell-toggle-state {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  min-width: 3.4em;
}
.bell-toggle-hint {
  font-size: 11px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  white-space: nowrap;
}
.bell-toggle:disabled { opacity: 0.7; cursor: wait; }
.sales-box {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.sales-presets .btn.active {
  border-color: var(--gold);
  color: var(--gold-2);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}
.sales-range { margin: 12px 0 4px; align-items: start; }
.sales-range .tr-date { flex: 1; min-width: 168px; max-width: 220px; }
.sales-series {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  max-height: 260px;
  overflow: auto;
}
.sales-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.sales-row b { color: var(--ink); }
.pos-kpi b { display: block; font-size: 22px; color: var(--gold-2); margin-top: 4px; }
.pos-floor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}
.pos-floor.dense { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.pos-zone-toolbar { margin-bottom: 4px; }
.pos-plan-canvas {
  position: relative;
  width: 100%;
  min-height: 360px;
  margin: 12px 0;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--ink)), var(--surface));
  overflow: hidden;
}
.pos-plan-canvas.hidden { display: none; }
.pos-plan-canvas .pos-table {
  position: absolute;
  width: 72px;
  min-height: 64px;
  transform: translate(-50%, -50%);
  z-index: 1;
  touch-action: none;
}
.pos-plan-canvas.is-plan-edit .pos-table { cursor: move; }
.pos-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 72px;
  padding: 8px 6px;
  background: var(--surface);
  cursor: pointer;
  text-align: center;
}
.pos-table b {
  display: block;
  font-size: 13px;
  word-break: break-word;
}
.pos-table small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.pos-table.empty { opacity: 0.7; }
.pos-table:not(.empty) { touch-action: none; cursor: grab; }
.pos-table.pending { border-color: var(--warn); box-shadow: 0 0 0 1px rgba(224, 164, 90, 0.35); }
.pos-table.live-pulse {
  animation: livePulse 1.1s ease-out 2;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent);
}
@keyframes livePulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.live-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--good) 35%, var(--line));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--good) 12%, transparent), transparent 55%),
    var(--panel);
}
.live-bar[data-status="connecting"],
.live-bar[data-status="reconnect"] {
  border-color: color-mix(in srgb, var(--warn) 40%, var(--line));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--warn) 12%, transparent), transparent 55%),
    var(--panel);
}
.live-bar[data-status="poll"],
.live-bar[data-status="off"] {
  border-color: var(--line);
  background: var(--panel);
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 0 transparent;
}
.live-bar[data-status="live"] .live-dot {
  background: var(--good);
  animation: liveDot 1.8s ease-in-out infinite;
}
.live-bar[data-status="connecting"] .live-dot,
.live-bar[data-status="reconnect"] .live-dot {
  background: var(--warn);
  animation: liveDot 1s ease-in-out infinite;
}
@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 0%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--good) 18%, transparent); }
}
.live-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.live-flash {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff8f0;
  background: var(--gold);
}
.live-bar .kds-open-btn {
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  padding: 7px 12px;
  margin-left: 8px;
}
.live-bar .live-flash.hidden + .kds-open-btn {
  margin-left: auto;
}
.live-flash.pop {
  animation: liveFlashIn 0.35s ease-out;
}
@keyframes liveFlashIn {
  from { opacity: 0; transform: translateY(4px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.order.live-order {
  animation: liveOrderIn 0.35s ease-out;
}
@keyframes liveOrderIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.pos-table.open { border-color: var(--good); }
.pos-table.selected { border-color: var(--gold); background: var(--surface-2); }
.pos-table.billed { border-color: #8ec5e8; }
.pos-floor.pos-dragging {
  user-select: none;
  -webkit-user-select: none;
}
.pos-floor.pos-dragging .pos-table { touch-action: none; }
.pos-table.dragging {
  opacity: 0.45;
  transform: scale(0.96);
  cursor: grabbing;
  z-index: 2;
  outline: 2px dashed var(--gold);
}
.pos-table.drop-target {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.55);
  background: var(--surface-2);
  transform: scale(1.04);
}
.pos-ticket {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
}
.pos-line {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.pos-line.paid { opacity: 0.85; }
.pos-line.refunded,
.pos-line.void { opacity: 0.7; }
.pos-flag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.pos-flag.paid { background: rgba(125, 190, 122, 0.18); color: #b8e0b4; }
.pos-flag.refunded { background: rgba(224, 164, 90, 0.18); color: #f0c48a; }
.pos-flag.void { background: rgba(211, 106, 90, 0.18); color: #f0b8b0; }
.pos-flag.received { background: rgba(212, 162, 76, 0.18); color: #f0cf86; }
.pos-flag.accepted { background: rgba(125, 190, 122, 0.18); color: #b8e0b4; }
.pos-flag.preparing { background: rgba(224, 164, 90, 0.2); color: #f0c48a; }
.pos-flag.serving { background: rgba(120, 170, 210, 0.2); color: #b8d4f0; }
.pos-guest { margin: 14px 0 6px; color: var(--gold); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.pos-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pos-line input { accent-color: var(--gold); }
.pos-step {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.pos-step b { display: block; margin-bottom: 4px; }
.pos-step .sub { margin: 0 0 8px; }
.pos-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pos-title h3 { margin: 0; }
.pos-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pos-icon-btn:hover { border-color: var(--gold); background: var(--surface-2); }
.pos-rename-row { margin-top: 12px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 6px;
  cursor: pointer;
}
.check-row input { margin-top: 3px; accent-color: var(--gold); }

.paywall {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.paywall .card { width: min(520px, 100%); text-align: center; }

.pkg-list { display: grid; gap: 12px; margin-top: 14px; }
.pkg-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--surface);
}
.pkg-card.active { border-color: var(--gold); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 25%, transparent); }
.pkg-card-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.pkg-price { font-size: 28px; line-height: 1; color: var(--gold-2); margin: 8px 0 4px; }
.pkg-price span { font-size: 14px; color: var(--muted); }
.pkg-features { color: var(--muted); font-size: 14px; margin: 0 0 12px; padding-left: 18px; }
.pkg-features li { margin: 4px 0; }
.pkg-term { display: block; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.pkg-term select { display: block; width: 100%; margin-top: 6px; padding: 8px 10px; border-radius: 10px; }
.pkg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pkg-save { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.pkg-yearly {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.pkg-yearly summary {
  cursor: pointer;
  color: var(--gold-2);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
}
.pkg-yearly summary::-webkit-details-marker { display: none; }
.pkg-yearly summary::after { content: "▾"; opacity: 0.7; }
.pkg-yearly[open] summary::after { content: "▴"; }
.thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #111;
}
.item-left { display: flex; align-items: center; gap: 10px; }
.menu-pick { cursor: pointer; }
.menu-pick.selected { border-color: var(--gold); }
.menu-pick.is-passive { opacity: 0.82; }

.panel-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.panel-swatch {
  width: 104px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.panel-swatch em {
  display: block;
  height: 38px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
}
.panel-swatch b { display: block; font-size: 13px; }
.panel-swatch.active { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.pkg-save {
  background: color-mix(in srgb, var(--good) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--good) 30%, transparent);
  color: var(--good);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 10px;
  font-size: 14px;
}

html[data-panel="operator"] {
  color-scheme: light;
  --bg: #f3eee6;
  --bg-2: #e8e0d2;
  --panel: #fffaf3;
  --surface: #f7f1e7;
  --surface-2: #efe6d6;
  --line: rgba(47, 74, 62, 0.14);
  --ink: #241c16;
  --muted: #6b5c4d;
  --gold: #c45c2a;
  --gold-2: #1f6b5c;
  --good: #1f6b5c;
  --warn: #b06a1c;
  --bad: #b04a3c;
  --shadow: 0 16px 40px rgba(70, 45, 20, 0.08);
  --nav-bg: rgba(255, 250, 243, 0.92);
  --input-bg: #fffdf8;
  --btn-ink: #fff8f2;
  --glow-1: rgba(196, 92, 42, 0.14);
  --glow-2: rgba(31, 107, 92, 0.1);
}
html[data-panel="operator"] body {
  font-family: Outfit, "Segoe UI", sans-serif;
}
html[data-panel="operator"] h1,
html[data-panel="operator"] h2,
html[data-panel="operator"] h3 {
  font-family: Fraunces, Georgia, serif;
}
.app.is-operator { width: min(1240px, calc(100% - 32px)); }
.kicker {
  margin: 0 0 4px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}
.operator-peek {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 10%, var(--panel));
}
.admin-filters { margin: 12px 0 4px; }
.admin-filters .nav-btn { padding: 6px 12px; font-size: 13px; }
.admin-table-wrap { overflow: auto; margin-top: 12px; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.admin-table tr { cursor: pointer; }
.admin-table tbody tr:hover { background: var(--surface); }
.admin-table tr.on { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.admin-table .sub { margin-top: 2px; font-size: 12px; }
.admin-table select { width: auto; min-width: 148px; padding: 7px 10px; }
.admin-branch-name { font-size: 13px; margin-top: 2px; }
.admin-empty {
  padding: 28px 8px;
  text-align: center;
  color: var(--muted);
}
.admin-drawer {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.admin-drawer h3 { margin-top: 0; }
.admin-meta { display: grid; gap: 6px; margin: 12px 0; }
.admin-meta span { color: var(--muted); }
.admin-meta b { color: var(--ink); font-weight: 600; }
.admin-pkg-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(24, 16, 10, 0.45);
  padding: 20px;
}
.modal-card {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.modal-card.assign-card { width: min(520px, 100%); }
.assign-actions { flex-wrap: wrap; }
.pay-decide { flex-wrap: wrap; }
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(380px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--panel);
  box-shadow: var(--shadow);
}
.toast.bad { background: var(--bad); color: #fff8f4; }
.toast.ok { background: var(--good); color: #f4fff8; }
.tr-date-row { align-items: start; }
.tr-date {
  position: relative;
  flex: 1;
  min-width: 210px;
}
.tr-date-field { position: relative; }
.tr-date-view {
  width: 100%;
  padding-right: 44px;
  letter-spacing: 0.04em;
}
.tr-date-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold);
  display: grid;
  place-items: center;
}
.tr-date-btn:hover { background: color-mix(in srgb, var(--gold) 22%, transparent); }
.tr-cal {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, 92vw);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.tr-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.tr-cal-head b {
  font-family: Fraunces, Georgia, serif;
  font-size: 16px;
}
.tr-cal-nav {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}
.tr-cal-nav:hover { border-color: var(--gold); color: var(--gold); }
.tr-cal-dow,
.tr-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.tr-cal-dow {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.tr-cal-empty { min-height: 34px; }
.tr-cal-day {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}
.tr-cal-day:hover { background: var(--surface-2); }
.tr-cal-day.today { box-shadow: inset 0 0 0 1px var(--gold-2); color: var(--gold-2); }
.tr-cal-day.on {
  background: var(--gold);
  color: var(--btn-ink);
  font-weight: 700;
}
.tr-cal-day.off {
  opacity: 0.32;
  cursor: default;
}
.tr-cal-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.tr-cal-link {
  border: 0;
  background: transparent;
  color: var(--gold-2);
  font-weight: 700;
  padding: 4px 0;
}
.tr-cal-link:hover { color: var(--gold); }
.support-thread {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}
.support-msg {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface);
}
.support-msg.staff {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
}
.support-msg .sub { margin: 0 0 6px; }
.invoice-list { display: flex; flex-direction: column; gap: 10px; }
.invoice-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.invoice-row-sum { text-align: right; }
.invoice-actions { justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.invoice-actions .btn { height: auto; padding: 6px 10px; font-size: 13px; }

.analytics-page { padding-bottom: 20px; }
.analytics-head {
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.analytics-filters {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 100%;
}
.analytics-days .btn.active {
  border-color: var(--gold);
  color: var(--gold-2);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}
.analytics-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold-2) 8%, transparent), transparent 55%),
    var(--surface-2, var(--surface));
}
.analytics-range.is-custom {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent);
}
.analytics-tr-date {
  flex: 0 1 168px;
  min-width: 148px;
}
.analytics-tr-date .tr-date-view {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel, #fff);
  padding: 10px 42px 10px 12px;
  font-size: 14px;
}
.analytics-range-sep {
  color: var(--muted);
  font-size: 14px;
  padding: 0 2px;
}
.analytics-range .btn {
  border-radius: 12px;
  padding: 10px 14px;
}
.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}
.analytics-kpi {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface-2, var(--surface));
}
.analytics-kpi b {
  display: block;
  font-size: 22px;
  color: var(--gold-2);
  line-height: 1.1;
}
.analytics-kpi span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.analytics-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 10px;
  background: var(--surface);
  min-height: 0;
}
.analytics-panel h4 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.analytics-ranks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.analytics-rank-top {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
}
.analytics-rank-i {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--gold-2);
}
.analytics-rank-top b {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-rank-top em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.analytics-bar {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 80%, transparent);
  overflow: hidden;
  margin-top: 4px;
}
.analytics-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

.prod-extras {
  margin: 18px 0 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--gold) 8%, transparent), transparent 55%),
    var(--surface);
}
.prod-extras-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.prod-extras-head .sub { margin: 0 0 14px; }
.allergen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 14px;
}
.allergen-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.allergen-chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--warn) 55%, var(--line));
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn);
}
.prod-opt-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.prod-opt-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prod-opt-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--panel);
}
.prod-opt-group-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}
.prod-opt-group-top input[type="text"] { flex: 1 1 160px; min-width: 140px; }
.prod-opt-group-top label.check-row { margin: 0; }
.prod-opt-rows { display: flex; flex-direction: column; gap: 8px; }
.prod-opt-row {
  display: grid;
  grid-template-columns: 1fr 90px auto;
  gap: 8px;
  align-items: center;
}
.prod-opt-row input[type="number"] { width: 100%; }
.menu-prod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.menu-prod-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold-2);
}
.menu-prod-tag.warn {
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn);
}
.line-opts {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.line-opts b { color: var(--warn); font-weight: 700; }

@media (max-width: 860px) {
  .invoice-row { flex-direction: column; }
  .invoice-row-sum { text-align: left; }
  .admin-table { min-width: 720px; }
  .analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-filters { align-items: stretch; width: 100%; }
  .analytics-range { justify-content: stretch; }
  .analytics-tr-date { flex: 1 1 140px; }
  .prod-opt-row { grid-template-columns: 1fr 80px auto; }
}
