@import url('/static/fonts.css');
:root {
  --bg: #f6f5f1;
  --paper: #fff;
  --ink: #242c28;
  --muted: #858a83;
  --line: #e9e9e2;
  --accent: #b34e32;
  --accent-light: #f7eae3;
  --green: #47715b;
  --sidebar: #202d27;
  --shadow: 0 16px 48px #26372b13;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b34e3266;
  outline-offset: 4px;
}
button,
.button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  transition:
    background 0.18s,
    transform 0.18s;
}
button:hover,
.button:hover {
  background: #f0eee8;
}
button.primary,
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.primary:hover {
  background: #983f29;
}
button.subtle {
  border: 0;
  background: transparent;
  padding: 8px;
}
button.danger {
  color: #a73432;
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke-width: 1.7;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 500;
  display: block;
  color: #9dac9f;
  margin-top: 3px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 40px;
  border-radius: 12px 12px 12px 3px;
  background: var(--accent);
  color: #fff3df;
  font-family: Georgia, serif;
  font-size: 32px;
  font-style: italic;
  box-shadow: inset 0 0 0 1px #ffffff1a;
}
.brand em {
  font-style: normal;
  font-weight: 350;
  color: #b7c0b9;
}
.sidebar {
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  color: #dde3dd;
  padding: 32px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.sidebar .brand {
  padding: 0 10px 34px;
}
.restaurant-switch {
  padding: 13px 10px;
  background: #2d3a33;
  border: 1px solid #435045;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.restaurant-switch .avatar {
  background: #526448;
  color: #e6eacb;
}
.restaurant-switch strong {
  display: block;
  font-size: 12px;
}
.restaurant-switch small {
  font-size: 10px;
  color: #acb8ac;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #92a396;
  margin: 10px 14px 10px;
  text-transform: uppercase;
}
.nav {
  overflow: auto;
  scrollbar-width: thin;
}
.nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  font-size: 12px;
  margin: 3px 0;
  border-radius: 7px;
  color: #b7c4ba;
}
.nav a:hover {
  background: #ffffff08;
  color: white;
}
.nav a.active {
  background: #b34e32;
  color: white;
}
.nav a.active .nav-dot {
  background: #ecd0b4;
}
.nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
}
.plan-card {
  border: 1px solid #455146;
  border-radius: 9px;
  padding: 13px;
  background: linear-gradient(120deg, #334333, #28372d);
  font-size: 11px;
}
.plan-card small {
  display: block;
  color: #acb9aa;
  line-height: 1.6;
  margin-top: 6px;
}
.user-card {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #ffffff15;
  margin-top: 20px;
  padding: 19px 8px 0;
  font-size: 11px;
}
.user-card small {
  display: block;
  color: #9cae9e;
  margin-top: 4px;
}
.avatar {
  width: 32px;
  height: 32px;
  background: #eee9df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 650;
  flex-shrink: 0;
}
.main {
  margin-left: 232px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: #fcfcfa;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb b {
  font-weight: 500;
  color: var(--ink);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.live {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #69806b;
}
.live:before {
  content: '';
  width: 6px;
  height: 6px;
  background: #5b865e;
  border-radius: 100%;
  box-shadow: 0 0 0 3px #6f9c7612;
}
.live.offline {
  color: #ad543c;
}
.live.offline:before {
  background: #ad543c;
}
.content {
  padding: 33px 38px 40px;
  max-width: 1660px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1.1px;
  margin-bottom: 9px;
}
h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
  margin-bottom: 5px;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.date-control {
  font-size: 11px;
  padding: 10px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.date-control select {
  border: 0;
  padding: 0;
  width: auto;
  font-size: 11px;
}
.welcome-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #edeedc;
  border: 1px solid #e1e4cc;
  border-radius: 10px;
  padding: 18px 21px;
  margin-bottom: 24px;
}
.welcome-strip p {
  font-size: 11px;
  margin: 4px 0 0;
  color: #75806a;
}
.welcome-strip strong {
  font-size: 12px;
}
.welcome-strip .icon {
  color: #738556;
}
.welcome-strip button {
  background: transparent;
  border-color: #cbd3b7;
  font-size: 11px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 24px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 20px 17px;
  position: relative;
  min-height: 144px;
}
.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6e776f;
  font-size: 11px;
}
.kpi-icon {
  padding: 7px;
  background: #f3f3ed;
  border-radius: 7px;
  display: inline-flex;
  color: #7d866e;
}
.kpi:first-child .kpi-icon {
  background: var(--accent-light);
  color: var(--accent);
}
.kpi-value {
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -1.2px;
  margin: 16px 0 11px;
}
.kpi-value small {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 400;
  color: #899082;
}
.kpi-foot {
  font-size: 10px;
  color: #90958d;
}
.kpi-foot b {
  font-weight: 550;
  color: #598463;
  margin-right: 5px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(270px, 1fr);
  gap: 22px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.panel-head {
  padding: 21px 22px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.panel-head .muted {
  font-size: 10px;
  margin-top: 6px;
}
.panel-head .subtle {
  font-size: 10px;
  color: var(--accent);
  padding: 0;
}
.chart-wrap {
  padding: 4px 20px 16px;
}
.chart {
  width: 100%;
  height: 210px;
  display: block;
}
.chart text {
  font-family: inherit;
  fill: #a0a59d;
  font-size: 10px;
}
.chart line {
  stroke: #eeefe8;
  stroke-dasharray: 4 4;
}
.chart-caption {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: #8e958b;
  justify-content: center;
  padding-bottom: 6px;
}
.chart-caption i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 5px;
}
.payment-layout {
  padding: 0 23px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.donut {
  width: 152px;
  height: 152px;
  position: relative;
  margin: 5px 0 21px;
}
.donut svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -1px;
}
.donut-center small {
  font-size: 9px;
  color: #92998e;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 3px;
}
.payment-legend {
  width: 100%;
}
.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 10px;
}
.payment-row span {
  color: #7b8678;
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend-square {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #b34e32;
}
.legend-square.c1 {
  background: #8a9c68;
}
.legend-square.c2 {
  background: #dbc9a7;
}
.legend-square.c3 {
  background: #b5bab2;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  font-size: 11px;
}
th {
  background: #fafaf7;
  color: #8c9488;
  font-size: 9px;
  font-weight: 500;
  padding: 12px 21px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
td {
  padding: 15px 21px;
  border-top: 1px solid #f0f0eb;
}
td strong {
  font-size: 11px;
  font-weight: 600;
}
td small {
  display: block;
  color: #969d93;
  font-size: 10px;
  margin-top: 4px;
}
td .subtle {
  font-size: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 550;
  white-space: nowrap;
  background: #f2f1e9;
  color: #86816e;
}
.badge.green,
.badge.PAID,
.badge.SERVED {
  color: #59806b;
  background: #edf3ed;
}
.badge.READY {
  color: #5d7e38;
  background: #eff3e5;
}
.badge.NEW,
.badge.PREPARING,
.badge.ACCEPTED {
  color: #b47a35;
  background: #fff4e4;
}
.badge.CANCELLED {
  background: #f9eae6;
  color: #ad5444;
}
.badge.PAYMENT_PENDING {
  background: #eeeafa;
  color: #8464ac;
}
.badge.SERVING {
  background: #eaf0f8;
  color: #557da8;
}
.best-products {
  padding: 0 22px 15px;
}
.product-rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f0eb;
}
.product-rank:last-child {
  border: 0;
}
.product-rank .rank {
  font-size: 10px;
  color: #9fa699;
  width: 12px;
}
.food-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f5ecdc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #986743;
}
.product-rank strong {
  display: block;
  font-size: 11px;
}
.product-rank small {
  font-size: 9px;
  color: #a1a69b;
  margin-top: 4px;
  display: block;
}
.product-rank .amount {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
}
.stock-alert {
  border: 1px solid #eddfcd;
  background: #fffaf3;
  border-radius: 9px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.stock-alert .icon {
  color: #b68a4a;
}
.stock-alert strong {
  font-size: 11px;
}
.stock-alert p {
  font-size: 10px;
  color: #a28b6a;
  margin: 3px 0 0;
}
.stock-alert button {
  margin-left: auto;
  font-size: 10px;
  background: transparent;
  border-color: #e3d5c1;
}
.footnote {
  display: flex;
  justify-content: space-between;
  color: #a0a79c;
  font-size: 9px;
  margin-top: 26px;
}
.empty {
  padding: 45px 20px;
  color: #8c9588;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}
.empty .icon {
  display: block;
  margin: 0 auto 12px;
  width: 28px;
  height: 28px;
}
.search {
  position: relative;
}
.search input {
  padding-left: 35px;
  max-width: 280px;
}
.search .icon {
  position: absolute;
  left: 11px;
  top: 11px;
  color: #8c9588;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filters button {
  font-size: 11px;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid transparent;
  color: #899180;
}
.filters button.active {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent);
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.order-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.order-card .order-head {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.order-card.NEW {
  border-top: 3px solid #b7803d;
}
.order-card.PREPARING {
  border-top: 3px solid var(--accent);
}
.order-card.READY {
  border-top: 3px solid #849a5a;
}
.order-body {
  padding: 18px;
}
.order-title {
  font-size: 18px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
.order-ref {
  font-size: 10px;
  color: #899382;
  margin-top: 5px;
}
.order-line {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}
.order-line b {
  background: #f2f3ec;
  border-radius: 5px;
  padding: 3px 8px;
  align-self: start;
  font-size: 12px;
}
.order-line small {
  display: block;
  font-size: 10px;
  color: #87907f;
}
.order-note {
  background: #fff8eb;
  color: #947244;
  font-size: 11px;
  border-radius: 6px;
  padding: 10px;
  margin: 12px 0;
}
.order-footer {
  padding: 0 18px 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.order-footer button {
  flex: 1;
}
.order-time {
  color: #9ba291;
  font-size: 10px;
}
.tables-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px;
  text-align: center;
}
.table-card.occupied {
  border-color: #d5b89c;
  background: #fffdf9;
}
.table-card h3 {
  font-size: 17px;
  margin: 14px 0 4px;
}
.table-symbol {
  position: relative;
  width: 65px;
  height: 48px;
  border: 1.5px solid #a9b599;
  background: #edf0e5;
  border-radius: 10px;
  margin: 10px auto;
}
.table-symbol:before,
.table-symbol:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 6px;
  border: 1.5px solid #a9b599;
  border-radius: 3px;
  left: 16px;
}
.table-symbol:before {
  top: -11px;
}
.table-symbol:after {
  bottom: -11px;
}
.table-card.occupied .table-symbol {
  background: #f4e7d9;
  border-color: #be9b74;
}
.table-card .actions {
  justify-content: center;
  margin-top: 18px;
}
.table-card button {
  font-size: 10px;
  padding: 8px 10px;
}
.table-card small {
  font-size: 10px;
  color: #919a88;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.menu-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: white;
}
.dish-visual {
  height: 142px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at 50% 50%, #f7efe0, #eee9df);
  position: relative;
  overflow: hidden;
}
.dish-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish-visual .plate {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fffdf8;
  border: 9px solid #f8f7f1;
  box-shadow:
    3px 8px 15px #59473022,
    inset 0 0 0 1px #e6e2d6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plate .icon {
  width: 42px;
  height: 42px;
  color: #b79660;
}
.menu-card-content {
  padding: 17px;
}
.menu-card h3 {
  margin: 0 0 5px;
  font-size: 14px;
}
.menu-card p {
  font-size: 11px;
  color: #8c9386;
  min-height: 30px;
  margin-bottom: 13px;
}
.menu-card .price {
  font-weight: 650;
  color: var(--accent);
  font-size: 14px;
}
.menu-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-card-bottom button {
  font-size: 11px;
  padding: 8px 11px;
}
.section-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
  overflow: auto;
}
.section-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 13px 0;
  white-space: nowrap;
  color: #87917f;
  font-size: 12px;
}
.section-tabs button.active {
  border-color: var(--accent);
  color: var(--accent);
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dddfd5;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font-size: 13px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #b34e3211;
}
input[type='checkbox'],
input[type='radio'] {
  width: auto;
  accent-color: var(--accent);
}
label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin: 0 0 7px;
}
.field {
  margin-bottom: 17px;
}
.field small {
  font-size: 10px;
  color: #909987;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.form-error {
  font-size: 12px;
  color: #a44133;
  background: #fbede7;
  padding: 12px;
  border-radius: 6px;
  line-height: 1.5;
  margin-bottom: 15px;
}
.form-error:empty {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #19251f88;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 18px;
  margin: 0;
}
.dialog-body {
  padding: 24px 25px;
}
.dialog-body .muted {
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #283a2d;
  color: white;
  border-radius: 9px;
  padding: 13px 22px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 30px);
  font-size: 12px;
  display: none;
}
#toast.show {
  display: block;
}
#toast.error {
  background: #943f2c;
}
.initial {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8e9785;
  font-size: 12px;
  gap: 20px;
}
.loading {
  padding: 70px;
  color: #98a28e;
  text-align: center;
}
.skeleton {
  height: 150px;
  background: linear-gradient(90deg, #efefe8, #fafaf6, #efefe8);
  background-size: 200%;
  animation: shimmer 1.2s infinite;
  border-radius: 9px;
}
@keyframes shimmer {
  to {
    background-position: -200%;
  }
}
.mobile-toggle {
  display: none;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #23342a;
  color: #f6f4e8;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-story h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
  max-width: 460px;
  letter-spacing: -2px;
}
.auth-story p {
  color: #b0bea9;
  max-width: 350px;
  font-size: 14px;
}
.auth-story .eyebrow {
  color: #d8ad78;
}
.auth-art {
  width: 260px;
  height: 260px;
  position: relative;
  margin: 50px auto;
  border: 1px solid #89927155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 35px #ffffff03,
    0 0 0 70px #ffffff02;
}
.auth-art:before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid #c0b09044;
  border-radius: 50%;
}
.auth-art .icon {
  width: 100px;
  height: 100px;
  color: #c4ac7d;
}
.auth-right {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 30px;
  margin: auto;
}
.auth-card h1 {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -1px;
}
.auth-card > p {
  color: #8a9384;
  font-size: 12px;
  margin-bottom: 28px;
}
.auth-card .button,
.auth-card button[type='submit'] {
  width: 100%;
}
.auth-card .auth-foot {
  text-align: center;
  margin: 23px 0 0;
  font-size: 11px;
  color: #8d9587;
}
.auth-foot a {
  color: var(--accent);
  font-weight: 600;
}
.landing-nav {
  max-width: 1250px;
  padding: 28px 40px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.landing-hero {
  max-width: 1250px;
  margin: 50px auto;
  padding: 30px 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.landing-hero h1 {
  font-family: Georgia, serif;
  font-size: 70px;
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -3px;
  max-width: 650px;
}
.landing-hero h1 em {
  color: var(--accent);
  font-weight: 400;
}
.landing-hero > div > p {
  color: #85907c;
  max-width: 440px;
  font-size: 15px;
  margin: 26px 0;
}
.hero-panel {
  background: #26372b;
  border-radius: 120px 120px 15px 15px;
  padding: 35px;
  color: #f5f2e8;
  box-shadow: var(--shadow);
}
.hero-panel .auth-art {
  margin: 20px auto 35px;
  width: 210px;
  height: 210px;
}
.hero-panel .hero-order {
  background: #fff9ee;
  color: #33422f;
  padding: 22px;
  border-radius: 12px;
  transform: rotate(-3deg);
}
.hero-order p {
  font-size: 12px;
  margin: 10px 0;
}
.landing-features {
  max-width: 1170px;
  margin: 65px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding: 35px 15px;
}
.landing-features p {
  font-size: 12px;
  color: #8b9383;
}
.landing-features .eyebrow {
  margin-top: 12px;
}
.public-shell {
  max-width: 1000px;
  margin: auto;
  padding-bottom: 100px;
}
.public-header {
  padding: 22px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: white;
}
.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}
.public-hero {
  padding: 38px 26px;
  background: #ececdf;
  border-bottom: 1px solid #e1e3d1;
}
.public-hero h1 {
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  margin-top: 10px;
}
.public-hero p {
  max-width: 480px;
  font-size: 12px;
  color: #7c8b71;
  margin-bottom: 0;
}
.public-content {
  padding: 24px 26px;
}
.public-content .menu-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.public-content .dish-visual {
  height: 160px;
}
.cart-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  width: calc(100% - 36px);
  background: var(--accent);
  color: #fff;
  border: 0;
  justify-content: space-between;
  padding: 18px 22px;
  border-radius: 12px;
  box-shadow: 0 6px 25px #60271c44;
  z-index: 20;
}
.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line strong {
  font-size: 12px;
}
.cart-line small {
  display: block;
  color: #8a9280;
  font-size: 10px;
  margin-top: 5px;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quantity-control button {
  padding: 4px 10px;
  font-size: 15px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 650;
}
.tracking-card {
  max-width: 540px;
  margin: 45px auto;
  padding: 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}
.tracking-card .status-orb {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #edf1e3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #748954;
  margin: 10px auto 24px;
}
.status-orb .icon {
  width: 30px;
  height: 30px;
}
.tracking-card h1 {
  font-size: 27px;
}
.tracking-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 35px 0;
}
.tracking-step {
  font-size: 9px;
  color: #a1a793;
  position: relative;
  flex: 1;
}
.tracking-step:before {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #e9ebdf;
  margin: 0 auto 10px;
  border: 3px solid white;
  outline: 1px solid #e1e5d5;
}
.tracking-step.done:before {
  background: #6f8b55;
  outline-color: #6f8b55;
}
.tracking-step.done {
  color: #6f8b55;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.settings-card {
  padding: 25px;
}
.onboarding-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.onboarding-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.onboarding-list .step-num {
  border: 1px solid #dadfd0;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #879679;
}
.onboarding-list li.done .step-num {
  background: #edf2e6;
  color: #698552;
}
.onboarding-list button {
  margin-left: auto;
  font-size: 10px;
}
.qr-sheet {
  text-align: center;
}
.qr-sheet img {
  width: 230px;
  height: 230px;
  max-width: 100%;
}
.qr-sheet h1 {
  font-size: 30px;
}
.qr-sheet p {
  font-size: 12px;
  color: #859177;
}
.qr-sheet a {
  display: block;
  font-size: 11px;
  color: var(--accent);
  word-break: break-all;
  margin: 15px 0;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 20px 0;
  font-size: 11px;
}
.error-page {
  padding: 40px;
  text-align: center;
}
.data-empty {
  min-height: 90px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.check-option {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}
.check-option label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cash-banner {
  padding: 17px 20px;
  margin-bottom: 22px;
  background: #ebf1e6;
  border: 1px solid #dce4d0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cash-banner strong {
  font-size: 12px;
}
.cash-banner p {
  font-size: 10px;
  color: #7b8b6d;
  margin: 4px 0 0;
}
.modal-subheading {
  margin: 22px 0 12px;
  font-size: 12px;
}
.wide-dialog {
  max-width: 820px;
}
.notice {
  padding: 13px;
  background: #f6f4ea;
  border-radius: 8px;
  font-size: 11px;
  color: #8b8268;
  line-height: 1.6;
}
.mobile-backdrop {
  display: none;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 40px;
  }
  .kpi {
    min-height: 155px;
  }
  .chart {
    height: 230px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main {
    margin-left: 210px;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .kpis {
    gap: 12px;
  }
  .kpi {
    padding: 16px;
  }
  .kpi-value {
    font-size: 24px;
  }
  .dashboard-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  }
  .order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tables-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    width: 240px;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #13291a77;
    z-index: 35;
  }
  .main {
    margin: 0;
  }
  .mobile-toggle {
    display: inline-flex;
    padding: 5px;
    background: transparent;
    border: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  .topbar-right {
    gap: 12px;
  }
  .content {
    padding: 25px 20px;
  }
  .topbar .date-control {
    display: none;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-right {
    min-height: 100vh;
    padding: 20px;
  }
  .landing-hero {
    gap: 30px;
  }
  .landing-hero h1 {
    font-size: 50px;
  }
  .hero-panel {
    padding: 20px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  h1 {
    font-size: 26px;
  }
  .page-heading {
    align-items: start;
    gap: 15px;
    margin-bottom: 22px;
    flex-wrap: wrap;
  }
  .page-heading .actions {
    width: 100%;
    justify-content: space-between;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .kpi {
    padding: 14px;
    min-height: 134px;
  }
  .kpi-top {
    font-size: 10px;
  }
  .kpi-icon {
    padding: 5px;
  }
  .kpi-value {
    font-size: 24px;
    margin-top: 16px;
  }
  .kpi-foot {
    font-size: 9px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .welcome-strip {
    padding: 15px;
    align-items: start;
  }
  .welcome-strip button {
    max-width: 130px;
    flex-shrink: 0;
  }
  .order-grid {
    grid-template-columns: 1fr;
  }
  .tables-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .menu-grid {
    gap: 12px;
  }
  .menu-card-content {
    padding: 13px;
  }
  .menu-card h3 {
    font-size: 12px;
  }
  .menu-card .price {
    font-size: 12px;
  }
  .menu-card-bottom button {
    font-size: 10px;
    padding: 7px;
  }
  .dish-visual {
    height: 115px;
  }
  .menu-card p {
    font-size: 10px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .public-header {
    padding: 18px;
  }
  .public-hero {
    padding: 30px 20px;
  }
  .public-hero h1 {
    font-size: 34px;
  }
  .public-content {
    padding: 20px 16px;
  }
  .public-content .dish-visual {
    height: 125px;
  }
  .public-content .menu-grid {
    gap: 11px;
  }
  .public-content .menu-card-bottom {
    gap: 8px;
    flex-wrap: wrap;
  }
  .tracking-card {
    margin: 25px 15px;
    padding: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .dialog-body {
    padding: 20px;
  }
  .form-grid .full {
    grid-column: 1;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .landing-nav {
    padding: 22px;
  }
  .landing-nav .brand {
    font-size: 20px;
  }
  .landing-nav .actions .button:first-child {
    display: none;
  }
  .landing-hero {
    grid-template-columns: 1fr;
    margin: 20px auto;
    padding: 25px;
  }
  .landing-hero h1 {
    font-size: 52px;
  }
  .hero-panel {
    margin: 20px 20px 0;
  }
  .landing-features {
    grid-template-columns: 1fr;
    margin: 30px 25px;
    gap: 20px;
  }
  .footnote span:last-child {
    display: none;
  }
  .chart {
    height: 180px;
  }
  .table-card {
    padding: 15px 10px;
  }
  .stock-alert {
    align-items: start;
  }
  .stock-alert button {
    font-size: 9px;
  }
  .cash-banner {
    align-items: start;
  }
  .date-control {
    padding: 9px 10px;
  }
  .auth-card {
    padding: 15px;
  }
  .order-title {
    font-size: 22px;
  }
  .order-line {
    font-size: 17px;
  }
  .order-footer button {
    padding: 14px;
  }
  .topbar .live {
    font-size: 9px;
  }
}
.image-upload { gap: .55rem; }
.image-preview {
  min-height: 140px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #f7f3ed;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
}
.image-preview img { width: 100%; height: 180px; object-fit: cover; }
.image-preview span { display: flex; align-items: center; gap: .5rem; }
.public-hero { background-size: cover; background-position: center; }

@media print {
  body > * {
    display: none !important;
  }
  body:has(dialog[open]) dialog,
  body:has(dialog[open]) dialog > * {
    display: block !important;
  }
  dialog[open] {
    position: static;
    max-width: 100%;
    max-height: none;
    border: 0;
    box-shadow: none;
    width: 100%;
  }
  dialog button,
  dialog .dialog-head,
  dialog .form-actions {
    display: none !important;
  }
  dialog::backdrop {
    background: white;
  }
  .qr-sheet {
    padding: 40px;
  }
  .qr-sheet img {
    width: 300px;
    height: 300px;
  }
}

.main,
.content,
.panel,
.kpi,
.dashboard-grid,
.order-card,
.menu-card {
  min-width: 0;
}
.kpi-value {
  overflow-wrap: anywhere;
}
.report-extra {
  margin-top: 24px;
}
@media (max-width: 850px) {
  .sidebar:not(.open) {
    transform: translateX(calc(-100% - 2px));
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .breadcrumb {
    min-width: 0;
    gap: 8px;
  }
  .topbar-right {
    flex-shrink: 0;
  }
}
@media (max-width: 620px) {
  .kpi-value {
    font-size: 22px;
  }
  .topbar {
    gap: 8px;
  }
  .topbar .breadcrumb > span {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .table-wrap {
    max-width: 100%;
  }
}
