:root {
  --paper: #f3f0ea;
  --ink: #1c1917;
  --muted: #7a736c;
  --line: #e7e1d8;
  --card: #fffcf8;
  --burgundy: #6e2230;
  --burgundy-2: #7d2838;
  --orange: #f26b1f;
  --orange-deep: #e25d12;
  --red: #e23d3d;
  --green: #1f9d57;
  --amber: #c9841a;
  --shadow: 0 10px 30px rgba(70, 42, 28, 0.06);
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.shell { display: flex; min-height: 100vh; width: min(100%, 1440px); margin-inline: auto; }
.sidebar {
  width: 232px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 22px 14px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { padding: 4px 10px 18px; }
.brand strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 13px;
}
.brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  letter-spacing: 0.22em;
  font-size: 10px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #3f3a36;
  font-size: 14.5px;
  margin: 2px 0;
}
.nav-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.nav-link.active { background: var(--burgundy); color: #fff; }
.nav-link:hover:not(.active) { background: #f6f2ec; }
.who {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f7f4ef;
}
.avatar, .who i {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-size: 12px; font-weight: 700; color: #fff;
  background: #c4842a;
}
.who b { display: block; font-size: 14px; }
.who small { color: var(--muted); }
.main { flex: 1; padding: 26px 28px 40px; min-width: 0; }
.top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 18px;
}
h1 { font-size: 30px; letter-spacing: -0.03em; margin: 0; font-weight: 650; }
.sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.actions { display: flex; gap: 8px; align-items: center; }
.btn, button.btn {
  border: 0; border-radius: 999px; padding: 9px 14px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
}
.btn.primary, button.btn.primary { background: var(--orange); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--orange-deep); }
.btn.ghost { background: #fff; }
select.btn, .btn select { border: 0; background: transparent; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  border-radius: 18px; padding: 16px 16px 14px; color: #fff; min-height: 92px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.stat b { font-size: 32px; letter-spacing: -0.04em; line-height: 1; }
.stat span { margin-top: 6px; font-size: 14px; opacity: 0.95; }
.stat small { display: block; opacity: 0.8; font-size: 11px; margin-top: 2px; }
.stat.orange { background: linear-gradient(180deg, #ff8a32, #f26b1f); }
.stat.wine { background: #7a2433; }
.stat.wine2 { background: #8a2c3c; }
.stat.wine3 { background: #6a1e2c; }
.stat.red { background: #ef4b4b; }
.stat.green { background: #1f9d57; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.card {
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.7); padding: 8px 8px 12px;
}
.card h2 { font-size: 16px; margin: 12px 14px; }
.card .head { display: flex; justify-content: space-between; align-items: center; }
.card .head a { color: var(--muted); font-size: 13px; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table.price-grid { width: max-content; min-width: 100%; }
table.price-grid th, table.price-grid td { white-space: nowrap; vertical-align: top; }
th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; color: #9a928a;
  font-weight: 650; padding: 8px 12px;
}
td { padding: 11px 12px; border-top: 1px solid #f1ece6; font-size: 14px; vertical-align: middle; }
.pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 3px 8px; font-size: 12px; font-weight: 650;
}
.pill.amber { background: #fff4d8; color: #9a6410; }
.pill.green { background: #e5f7ec; color: #157a42; }
.pill.gray { background: #f1eee9; color: #6d665f; }
.pill.red { background: #fde8e8; color: #c43232; }
.pill.wine { background: #f8e7ea; color: var(--burgundy); }
.side .card { padding: 16px 16px 14px; margin-bottom: 12px; }
.pay-row, .flavour-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #f1ece6; }
.pay-row strong, .flavour-row strong { font-size: 14px; }
.muted { color: var(--muted); }
.filters { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.chip {
  border-radius: 999px; padding: 7px 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px;
}
.chip.on { background: var(--ink); color: #fff; }
.person { display: flex; align-items: center; gap: 10px; }
.person i { width: 32px; height: 32px; }
.menu-btn, .nav-toggle, .scrim { display: none; }
.flash { list-style: none; padding: 0; margin: 0 0 12px; }
.flash .message { background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); cursor: pointer; }
.flash .message.hidden { display: none; }
.flash .message.error { outline: 1px solid #f3c1c1; }
.flash .message.success { outline: 1px solid #b7e4c7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #4d4742; }
label.field.wide { grid-column: 1 / -1; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  background: #f7f4ef; border: 0; border-radius: 12px; padding: 10px 12px;
}
.panel {
  position: fixed; top: 18px; right: 18px; width: min(420px, calc(100vw - 24px));
  background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(60, 30, 20, 0.18);
  padding: 18px; z-index: 20; border: 1px solid #f0c7a4;
}
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.store-card { background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.printer { background: #f6f3ee; border-radius: 16px; padding: 12px; margin-top: 10px; }
.banner {
  background: #fff6e8; border-radius: 14px; padding: 12px 14px; color: #7a5a32; margin-top: 14px;
}
.price-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 6px 0; }
.price-slot.off input[type="text"] { background: #eceae6; color: #7a736c; }
.tiny { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.hint { color: var(--muted); font-size: 13px; }
.split { display: grid; grid-template-columns: 320px 1fr; gap: 14px; }
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid, .split, .store-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .menu-btn { display: inline-flex; }
  .sidebar { position: fixed; z-index: 30; transform: translateX(-105%); transition: transform .2s ease; }
  .nav-toggle:checked ~ .shell .sidebar { transform: none; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(28,25,23,.35); z-index: 25; }
  .nav-toggle:checked ~ .shell .scrim { display: block; }
  .main { padding: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 26px; }
}
