@charset "UTF-8";
:root {
  --ink: #213343;
  --muted: #718292;
  --navy: #163c50;
  --navy-hover: #245771;
  --paper: #fff;
  --base: #f5f7fa;
  --line: #dde5ec;
  --green: #16816b;
  --green-tint: #edf7f3;
  --amber: #a86d14;
  --radius: 10px;
  font-family: "Microsoft YaHei UI", "DengXian", "PingFang SC", sans-serif;
  color: var(--ink);
  font-synthesis: none;
  font-size: 14px;
  background: var(--base);
}
* {
  box-sizing: border-box;
}
h1[tabindex="-1"]:focus {
  outline: none;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--navy);
  text-decoration: none;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ccd7df;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #9cc3d6;
  outline-offset: 1px;
  border-color: var(--navy);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #78adca;
  outline-offset: 3px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}
label > input,
label > select,
label > textarea {
  display: block;
  margin-top: 6px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  line-height: 1.3;
  margin-bottom: 10px;
}
h2 {
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 8px;
}
h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
p {
  line-height: 1.8;
}
small,
.small {
  font-size: 12px;
}
strong,
b {
  font-weight: 650;
}
button,
.primary,
.secondary,
.danger {
  transition:
    background 0.15s,
    border-color 0.15s;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 7px;
  font-weight: 600;
  border: 1px solid transparent;
  min-height: 42px;
  line-height: 1.4;
}
.primary {
  background: var(--navy);
  color: #fff;
}
.primary:hover {
  background: var(--navy-hover);
}
.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: #f1f5f8;
}
.danger {
  background: #a23e3e;
  color: white;
}
.text-button {
  border: 0;
  background: none;
  color: var(--navy);
  padding: 9px 10px;
  font-weight: 600;
  display: inline-block;
}
.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f1f4f7;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}
.full {
  width: 100%;
}
.center {
  text-align: center;
}
.right {
  text-align: right !important;
}
.muted {
  color: var(--muted);
}
.subtle {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.large-button {
  min-height: 48px;
  font-size: 15px;
}
.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  z-index: 40;
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--navy);
  color: #dbe7ed;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 19px;
  font-weight: 600;
  padding: 0 4px 35px;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 400;
  color: #abc1ce;
  margin-top: 7px;
}
.brand-mark {
  background: var(--navy);
  border: 1px solid #90afbc;
  border-radius: 10px;
  color: #fff;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 23px;
  font-weight: 500;
}
.sidebar .brand-mark {
  background: #fff;
  color: var(--navy);
  border: 0;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  color: #bfd0d9;
  border-radius: 7px;
}
.sidebar nav a span {
  font-size: 21px;
  width: 23px;
  text-align: center;
  line-height: 1;
}
.sidebar nav a.active {
  background: #2b5368;
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3px 0 #b8dad8;
}
.sidebar nav a:hover {
  background: #244b60;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 10px 0;
}
.connection {
  font-size: 11px;
  color: #b4c7d2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 22px;
  border-bottom: 1px solid #386073;
}
.connection i {
  background: #72cbb6;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.staff-name {
  font-size: 14px;
  margin: 20px 0 8px;
}
.staff-name small {
  display: block;
  color: #abc1ce;
  margin-top: 6px;
}
.logout {
  background: none;
  color: #b9cbd6;
  border: 0;
  padding: 8px 0;
  font-size: 12px;
}
.main-content {
  min-width: 0;
  padding: 34px 34px 28px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.notice {
  padding: 13px 16px;
  background: #eaf0f6;
  border: 1px solid #d4e0ea;
  color: #4f687c;
  border-radius: 7px;
  margin: 0 0 18px;
  line-height: 1.6;
}
.notice.error {
  background: #fff0ef;
  border-color: #efceca;
  color: #9d3c34;
}
.notice.success {
  background: #edf7f3;
  border-color: #c5e4d9;
  color: #1f705c;
}
.cashier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 25px;
  align-items: start;
}
.floor-summary {
  display: flex;
  gap: 0;
  padding: 6px 0 24px;
}
.floor-summary > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 30px;
  border-right: 1px solid var(--line);
}
.floor-summary > div:first-child {
  padding-left: 0;
}
.floor-summary > div:last-child {
  border: 0;
}
.floor-summary b {
  font-size: 25px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.floor-summary span {
  color: var(--muted);
  font-size: 12px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}
.toolbar > label,
.search-label {
  max-width: 190px;
}
.toolbar input {
  font-size: 12px;
  min-height: 36px;
  padding: 8px 10px;
  margin: 0;
}
.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 13px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  white-space: nowrap;
  color: var(--muted);
}
.tabs button:first-child {
  padding-left: 0;
}
.tabs button.active {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--navy);
}
.tabs small {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 400;
}
.status-filter {
  display: flex;
  gap: 14px;
  padding: 18px 0;
}
.status-filter button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-filter button.selected {
  color: var(--ink);
  font-weight: 600;
}
.dot {
  width: 7px;
  height: 7px;
  background: #b8c6d0;
  border-radius: 50%;
  display: inline-block;
}
.dot.green {
  background: var(--green);
}
.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 15px;
}
.table-tile {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-height: 180px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.table-tile:hover {
  border-color: #84a5b7;
}
.table-tile.occupied {
  background: #f3faf7;
  border-color: #b9d9ce;
}
.table-tile.chosen {
  border: 2px solid var(--navy);
  padding: 15px;
  box-shadow: 0 0 0 2px #163c5010;
}
.tile-top,
.tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  font-size: 11px;
  color: var(--muted);
}
.status-pill {
  font-size: 10px;
  background: #edf1f5;
  color: #738898;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
}
.occupied .status-pill {
  color: var(--green);
  background: #dff0e9;
}
.table-number {
  font-size: 30px;
  font-weight: 600;
  margin-top: 16px;
  letter-spacing: 0.5px;
}
.seat-count {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.tile-bottom {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 18px;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}
.tile-bottom b {
  font-size: 15px;
  color: var(--green);
}
.mini-table {
  color: #b5c4ce;
  font-size: 19px;
  line-height: 1;
}
.bill-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: sticky;
  top: 24px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 48px);
}
.bill-empty {
  display: flex;
  flex: 1;
  min-height: 430px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--muted);
  padding: 25px;
}
.bill-empty h2,
.bill-empty h3 {
  color: var(--ink);
  margin-top: 8px;
}
.bill-empty p {
  font-size: 12px;
}
.empty-symbol {
  font-size: 50px;
  color: #a7bac7;
  line-height: 1;
  margin-bottom: 16px;
}
.bill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.bill-header h2 {
  font-size: 24px;
  margin: 0;
}
.bill-header p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
}
.bill-header h2 span {
  font-weight: 400;
  margin-left: 8px;
}
.bill-lines {
  overflow-y: auto;
  padding: 4px 20px 20px;
  min-height: 180px;
}
.batch-caption {
  font-size: 11px;
  color: var(--muted);
  padding: 16px 0 9px;
  line-height: 1.6;
}
.batch-caption span {
  display: block;
  color: #8b6c32;
}
.bill-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed #e6ebef;
  font-size: 12px;
}
.bill-line > div {
  flex: 1;
  min-width: 0;
}
.bill-line b {
  font-size: 12px;
}
.bill-line small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
}
.bill-line > span {
  font-size: 11px;
  color: var(--muted);
}
.bill-line strong {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  white-space: nowrap;
}
.line-action {
  font-size: 11px;
  color: #9c6861;
  background: none;
  border: 1px solid #e4d4d0;
  padding: 3px 5px;
  border-radius: 4px;
}
.voided {
  text-decoration: line-through;
  color: #9aa6b0 !important;
}
.voided small {
  text-decoration: none;
}
.bill-bottom {
  padding: 18px 20px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0 16px;
  gap: 12px;
}
.total-row strong {
  font-size: 26px;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.bill-bottom .total-row {
  font-size: 12px;
}
.bill-bottom .secondary {
  font-size: 12px;
  min-height: 36px;
}
.data-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.data-panel .toolbar {
  padding: 4px 24px;
  min-height: 74px;
}
.table-scroll {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
.data-table th {
  padding: 16px 24px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fafcfd;
}
.data-table .dish-cell {
  display: flex;
  gap: 13px;
  align-items: center;
}
.dish-cell b {
  font-size: 13px;
}
.dish-cell small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
  white-space: normal;
}
.menu-symbol {
  width: 42px;
  height: 42px;
  background: #ecf1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #647f91;
  border-radius: 9px;
  flex-shrink: 0;
}
.badge {
  font-size: 11px;
  display: inline-block;
  padding: 5px 9px;
  border-radius: 5px;
  color: #758491;
  background: #eef2f5;
}
.green-badge {
  background: #e8f5ee;
  color: #217b61;
}
.amber-badge {
  background: #fbf1df;
  color: #9c701f;
}
.empty {
  padding: 70px 24px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}
.empty h3,
.empty h1 {
  color: var(--ink);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17304060;
  backdrop-filter: blur(3px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal {
  width: 440px;
  max-width: 100%;
  background: white;
  border-radius: 14px;
  padding: 26px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  box-shadow: 0 18px 70px #142b3f30;
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 23px;
}
.modal-heading h2 {
  margin: 0;
  font-size: 19px;
}
.modal > label {
  margin-bottom: 18px;
}
.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
}
.form-row > * {
  flex: 1;
  min-width: 0;
}
.check-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
}
.check-label input {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  accent-color: var(--navy);
}
.checkout-amount {
  padding: 21px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-amount span {
  color: var(--muted);
  font-size: 12px;
}
.checkout-amount strong {
  font-size: 40px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.paid-mark {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #e8f5ed;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 37px;
  margin: 8px auto 22px;
}
.modal.center .full {
  margin-top: 12px;
}
.category-list {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.category-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: white;
  padding: 13px 0;
  text-align: left;
}
.category-row small {
  color: var(--muted);
}
.ledger-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 26px;
  overflow: hidden;
}
.ledger-summary > div {
  padding: 25px 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.ledger-summary > div:last-child {
  border-right: 0;
}
.ledger-summary span {
  font-size: 12px;
  color: var(--muted);
}
.ledger-summary strong {
  font-size: 28px;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
}
.ledger-summary small {
  font-size: 10px;
  color: var(--muted);
}
.ledger-summary .net-summary {
  background: #edf5f7;
}
.net-summary strong {
  color: var(--navy);
}
.ledger-toolbar {
  padding: 20px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.date-range {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.date-range label {
  font-size: 11px;
  color: var(--muted);
}
.date-range input {
  max-width: 160px;
  font-size: 12px;
}
.date-range > span {
  padding-bottom: 13px;
  color: var(--muted);
}
.date-range > button {
  font-size: 12px;
}
.ledger-table .reference {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}
.note-cell {
  white-space: normal;
  min-width: 150px;
  max-width: 350px;
  line-height: 1.7;
}
.income {
  color: var(--green);
}
.table-footer {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  background: white;
}
.login-story {
  background: #e7eff3;
  padding: 70px 14%;
  position: relative;
  overflow: hidden;
}
.brand-mark.large {
  width: 55px;
  height: 55px;
  font-size: 29px;
  border: 0;
}
.login-story h1 {
  font-size: 45px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 1px;
  margin: 55px 0 18px;
}
.login-story p {
  font-size: 15px;
  color: #627e8e;
  line-height: 2.1;
}
.login-panel {
  padding: 50px 14% 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.login-box {
  width: 100%;
  max-width: 340px;
  margin: auto;
}
.login-box h2 {
  font-size: 28px;
  margin: 14px 0;
}
.login-box > .muted {
  font-size: 12px;
  margin-bottom: 34px;
}
.login-box label {
  margin: 0 0 21px;
}
.login-box input {
  padding: 13px;
}
.login-box .primary {
  margin-top: 8px;
  min-height: 47px;
}
.dev-note {
  font-size: 11px;
  line-height: 1.9;
  color: #8a9aa6;
  padding-top: 25px;
}
.login-footer {
  color: #a0adb6;
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 30px;
}
.table-sketch {
  width: 190px;
  height: 165px;
  position: relative;
  margin-top: 65px;
  transform: rotate(-12deg);
}
.table-sketch b {
  position: absolute;
  inset: 20px;
  border: 1px solid #adc2cf;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fa8b8;
  font-size: 30px;
  font-weight: 400;
}
.table-sketch i {
  position: absolute;
  width: 45px;
  height: 12px;
  border: 1px solid #adc2cf;
  border-radius: 5px;
}
.table-sketch i:nth-child(1) {
  left: 37px;
  top: 0;
}
.table-sketch i:nth-child(2) {
  right: 37px;
  bottom: 0;
}
.table-sketch i:nth-child(4) {
  left: -10px;
  top: 76px;
  transform: rotate(90deg);
}
.table-sketch i:nth-child(5) {
  right: -10px;
  top: 76px;
  transform: rotate(90deg);
}
.customer-page {
  max-width: 980px;
  margin: 0 auto;
  min-height: 100dvh;
  background: white;
  padding: 0 30px 125px;
}
.customer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.customer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.customer-brand h1 {
  font-size: 21px;
  letter-spacing: 0;
  margin: 0 0 6px;
}
.customer-brand span:not(.brand-mark) {
  font-size: 11px;
  color: var(--muted);
}
.table-tag {
  font-size: 22px;
  font-weight: 600;
  text-align: right;
}
.table-tag small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 5px;
}
.customer-intro {
  padding: 28px 0 18px;
}
.customer-intro h2 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
}
.customer-intro p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.customer-tools {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 22px;
}
.customer-tools label {
  flex: 1;
}
.customer-tools input {
  margin: 0;
  background: #f6f8fa;
  border-color: transparent;
  font-size: 12px;
}
.customer-tools .text-button {
  font-size: 12px;
}
.menu-layout {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
}
.category-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
  position: sticky;
  top: 15px;
}
.category-nav button {
  border: 0;
  padding: 15px 9px;
  text-align: left;
  background: none;
  color: var(--muted);
  font-size: 12px;
  border-radius: 5px;
}
.category-nav button.active {
  color: var(--navy);
  font-weight: 600;
  background: #ecf2f6;
  box-shadow: inset 3px 0 var(--navy);
}
.dish-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.dish-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #edf1f5;
}
.dish-card:first-child,
.dish-card:nth-child(2) {
  padding-top: 0;
}
.dish-art {
  width: 80px;
  height: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1e9e1;
  position: relative;
  overflow: hidden;
  border-radius: 9px;
}
.dish-art:before {
  content: "";
  position: absolute;
  width: 68px;
  height: 68px;
  border: 1px solid #ae958950;
  border-radius: 50%;
}
.dish-art span {
  font-size: 29px;
  color: #8d7160;
  font-family: "KaiTi", "STKaiti", serif;
  transform: rotate(-8deg);
  z-index: 1;
}
.art-1 {
  background: #e7efdf;
}
.art-1 span {
  color: #75886a;
}
.art-1:before {
  border-color: #768c6a50;
}
.art-2 {
  background: #f4eacb;
}
.art-2 span {
  color: #ab925b;
}
.art-3 {
  background: #e7eef3;
}
.art-3 span {
  color: #7c9caf;
}
.dish-info {
  flex: 1;
  min-width: 0;
}
.dish-info h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.dish-info p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  min-height: 15px;
}
.dish-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.dish-price {
  font-size: 11px;
  color: var(--navy);
  white-space: nowrap;
}
.dish-price b {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.dish-price small {
  font-size: 10px;
  color: var(--muted);
  margin-left: 2px;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.quantity button {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd9e2;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  color: var(--navy);
  padding: 0;
  line-height: 1;
}
.quantity button.add {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.cart-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  background: var(--navy);
  color: white;
  z-index: 15;
  border-radius: 12px;
  box-shadow: 0 6px 25px #163c5030;
}
.cart-bar > .primary {
  background: #fff;
  color: var(--navy);
  min-width: 110px;
}
.cart-overview {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  background: none;
  border: 0;
  color: white;
  text-align: left;
}
.bag-icon {
  font-size: 30px;
  position: relative;
  margin-left: 5px;
}
.bag-icon b {
  position: absolute;
  right: -10px;
  top: -3px;
  font-size: 10px;
  min-width: 19px;
  padding: 3px;
  background: #e4bb6a;
  color: var(--navy);
  border-radius: 20px;
  text-align: center;
}
.cart-overview strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.cart-overview small {
  display: block;
  color: #bad0dd;
  font-size: 10px;
  margin-top: 3px;
}
.ordered {
  margin: 26px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
.ordered summary {
  color: var(--navy);
  cursor: pointer;
}
.ordered-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-items {
  margin-bottom: 18px;
  max-height: 35dvh;
  overflow: auto;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f5;
}
.cart-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.cart-modal .total-row strong {
  font-size: 27px;
}
.receipt-actions {
  display: flex;
  gap: 12px;
  margin: 0 auto 25px;
  max-width: 520px;
}
.paper-receipt {
  overflow-wrap: anywhere;
  max-width: 420px;
  margin: 0 auto;
  background: white;
  padding: 32px 26px;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
}
.paper-receipt header {
  text-align: center;
  border-bottom: 1px dashed #acb8c2;
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.paper-receipt h1 {
  font-size: 23px;
  letter-spacing: 1px;
}
.paper-receipt h2 {
  font-size: 26px;
}
.paper-receipt header p {
  margin: 5px;
}
.paper-receipt table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 11px;
}
.paper-receipt th {
  text-align: left;
  border-bottom: 1px dashed #acb8c2;
  padding: 7px 0;
}
.paper-receipt td {
  padding: 7px 0;
}
.receipt-totals {
  border-top: 1px dashed #acb8c2;
  padding-top: 15px;
}
.receipt-totals p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}
.receipt-paid {
  font-size: 20px;
  padding: 10px 0;
}
.paper-receipt footer {
  text-align: center;
  border-top: 1px dashed #acb8c2;
  margin-top: 25px;
  padding-top: 22px;
}
.paper-receipt footer small {
  font-size: 10px;
  color: var(--muted);
}
.qr-poster {
  max-width: 470px;
  margin: 0 auto 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  padding: 35px 25px;
}
.qr-poster .brand-mark {
  margin-bottom: 20px;
}
.qr-poster h1 {
  font-size: 23px;
  letter-spacing: 2px;
}
.poster-table {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: 2px;
}
.qr-poster p {
  color: var(--muted);
  font-size: 12px;
}
.qr-poster img {
  display: block;
  margin: 10px auto 22px;
  max-width: 100%;
  height: auto;
}
.qr-poster h2 {
  font-size: 22px;
  font-weight: 500;
}
.qr-poster a {
  display: inline-block;
  margin-top: 15px;
  font-size: 12px;
}
#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff0b8;
  padding: 18px;
  text-align: center;
}
#blazor-error-ui a {
  text-decoration: underline;
}
@media (min-width: 1600px) {
  .main-content {
    padding: 40px 48px;
  }
  .cashier-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
  }
  .table-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .table-tile {
    min-height: 195px;
  }
  .table-number {
    font-size: 34px;
  }
}
@media (max-width: 1250px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }
  .main-content {
    padding: 28px 24px;
  }
  .cashier-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
  }
  .table-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .heading-actions .small {
    display: none;
  }
  .floor-summary > div {
    padding: 0 20px;
  }
  .floor-summary b {
    font-size: 22px;
  }
  .table-tile {
    padding: 14px;
  }
  .table-tile.chosen {
    padding: 13px;
  }
  .ledger-summary > div {
    padding: 22px 19px;
  }
  .ledger-summary strong {
    font-size: 23px;
  }
  .data-table th,
  .data-table td {
    padding-left: 18px;
    padding-right: 18px;
  }
  .ledger-toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 165px minmax(0, 1fr);
  }
  .brand {
    font-size: 15px;
  }
  .brand small {
    display: none;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
    font-size: 18px;
  }
  .sidebar nav a {
    font-size: 12px;
    gap: 8px;
    padding: 13px 9px;
  }
  .main-content {
    padding: 25px 20px;
  }
  .cashier-layout {
    grid-template-columns: minmax(0, 1fr) 295px;
    gap: 15px;
  }
  .floor-summary > div {
    padding: 0 12px;
  }
  .floor-summary b {
    font-size: 18px;
  }
  .floor-summary span {
    font-size: 10px;
  }
  .table-grid {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  }
  .table-tile {
    min-height: 165px;
  }
  .table-number {
    font-size: 26px;
  }
  .table-tile .tile-top {
    flex-wrap: wrap;
  }
  .bill-panel {
    min-height: 520px;
  }
  .bill-line {
    gap: 7px;
  }
  .bill-lines,
  .bill-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }
  .toolbar {
    flex-wrap: wrap;
    padding-bottom: 10px;
  }
  .toolbar > label {
    max-width: 100%;
  }
  .ledger-summary {
    grid-template-columns: 1fr 1fr;
  }
  .ledger-summary > div:nth-child(2) {
    border-right: 0;
  }
  .ledger-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .dish-list {
    grid-template-columns: 1fr;
  }
  .dish-card:nth-child(2) {
    padding-top: 18px;
  }
  .dish-art {
    width: 90px;
    height: 90px;
  }
  .dish-info h3 {
    font-size: 16px;
  }
  .dish-info p {
    font-size: 11px;
  }
}
@media (max-width: 740px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 15px 18px 0;
    display: block;
  }
  .brand {
    padding: 0 0 15px;
    font-size: 18px;
  }
  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 20px;
  }
  .sidebar nav {
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .sidebar nav a {
    padding: 12px 10px;
    border-radius: 6px 6px 0 0;
    font-size: 12px;
    gap: 6px;
  }
  .sidebar nav a span {
    font-size: 17px;
    width: 18px;
  }
  .sidebar nav a.active {
    box-shadow: inset 0 -3px #b8dad8;
  }
  .sidebar-bottom {
    position: absolute;
    right: 18px;
    top: 13px;
    padding: 0;
  }
  .connection,
  .staff-name {
    display: none;
  }
  .logout {
    font-size: 11px;
    padding: 8px;
  }
  .main-content {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 14px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading .subtle {
    font-size: 10px;
  }
  .heading-actions {
    flex-direction: column;
    gap: 8px;
  }
  .page-heading > .primary,
  .heading-actions button {
    padding: 9px 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  .cashier-layout {
    grid-template-columns: 1fr;
  }
  .floor-summary {
    padding-bottom: 15px;
  }
  .floor-summary > div {
    padding: 0 28px;
  }
  .floor-summary b {
    font-size: 24px;
  }
  .floor-summary span {
    font-size: 11px;
  }
  .floor-section .toolbar {
    flex-wrap: nowrap;
    padding: 0;
  }
  .search-label {
    max-width: 130px !important;
  }
  .tabs button {
    padding: 12px 10px;
  }
  .table-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .table-tile {
    padding: 12px;
    min-height: 160px;
  }
  .table-tile.chosen {
    padding: 11px;
  }
  .table-number {
    font-size: 28px;
  }
  .tile-top {
    font-size: 10px;
  }
  .status-pill {
    font-size: 9px;
    padding: 2px 4px;
  }
  .tile-bottom {
    font-size: 9px;
    gap: 6px;
    line-height: 1.2;
    min-height: 30px;
  }
  .tile-bottom b {
    font-size: 13px;
  }
  .bill-panel {
    position: relative;
    top: 0;
    max-height: none;
    min-height: 260px;
    margin-top: 12px;
  }
  .bill-empty {
    min-height: 230px;
  }
  .bill-lines {
    max-height: 500px;
  }
  .bill-line b {
    font-size: 13px;
  }
  .bill-line strong {
    font-size: 13px;
  }
  .bill-header {
    padding: 20px;
  }
  .bill-bottom {
    padding: 18px 20px;
  }
  .ledger-summary {
    gap: 0;
    margin-bottom: 20px;
  }
  .ledger-summary > div {
    padding: 19px 14px;
    gap: 10px;
  }
  .ledger-summary strong {
    font-size: 23px;
  }
  .ledger-summary small {
    font-size: 9px;
  }
  .ledger-toolbar {
    padding: 16px;
  }
  .date-range {
    gap: 8px;
  }
  .date-range input {
    max-width: 140px;
    padding: 9px;
  }
  .date-range > button {
    padding: 10px;
    font-size: 11px;
  }
  .ledger-toolbar > .secondary {
    font-size: 11px;
    min-height: 36px;
  }
  .table-footer {
    font-size: 10px;
    flex-direction: column;
    padding: 15px 18px;
  }
  .data-panel .toolbar {
    padding: 8px 16px;
    gap: 5px;
  }
  .data-table th,
  .data-table td {
    padding: 15px 16px;
  }
  .data-table .text-button {
    padding: 8px 6px;
  }
  .modal-backdrop {
    padding: 16px;
  }
  .modal {
    padding: 22px;
    max-height: calc(100dvh - 32px);
    border-radius: 12px;
  }
  .modal-heading {
    margin-bottom: 20px;
  }
  .modal-heading h2 {
    font-size: 18px;
  }
  .login-page {
    display: block;
  }
  .login-story {
    padding: 30px 25px 24px;
    min-height: 210px;
  }
  .login-story > .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 23px;
  }
  .login-story h1 {
    font-size: 27px;
    margin: 15px 0 0;
    line-height: 1.5;
    letter-spacing: 0;
  }
  .login-story p,
  .table-sketch {
    display: none;
  }
  .login-panel {
    padding: 35px 28px 20px;
    min-height: calc(100dvh - 210px);
  }
  .login-box {
    max-width: 390px;
  }
  .login-box h2 {
    font-size: 24px;
  }
  .login-box > .muted {
    margin-bottom: 24px;
  }
  .login-footer {
    margin-top: 30px;
  }
  .customer-page {
    padding: 0 16px 115px;
  }
  .customer-header {
    padding: 18px 0;
  }
  .customer-brand {
    gap: 9px;
  }
  .customer-brand h1 {
    font-size: 18px;
    margin-bottom: 5px;
  }
  .customer-brand span:not(.brand-mark) {
    font-size: 10px;
  }
  .table-tag {
    font-size: 20px;
  }
  .table-tag small {
    font-size: 9px;
  }
  .customer-intro {
    padding: 24px 0 18px;
  }
  .customer-intro h2 {
    font-size: 24px;
  }
  .customer-intro p {
    font-size: 11px;
  }
  .customer-tools {
    margin-bottom: 20px;
    gap: 8px;
  }
  .customer-tools .text-button {
    padding: 9px 3px;
    font-size: 11px;
  }
  .menu-layout {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }
  .category-nav button {
    font-size: 11px;
    padding: 16px 8px;
  }
  .dish-card {
    gap: 10px;
    padding: 18px 0;
    align-items: flex-start;
  }
  .dish-art {
    width: 64px;
    height: 78px;
    border-radius: 7px;
  }
  .dish-art span {
    font-size: 24px;
  }
  .dish-art:before {
    width: 55px;
    height: 55px;
  }
  .dish-info h3 {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .dish-info p {
    font-size: 10px;
    margin-bottom: 10px;
    line-height: 1.55;
  }
  .dish-purchase {
    gap: 2px;
  }
  .dish-price b {
    font-size: 17px;
  }
  .dish-price small {
    font-size: 8px;
  }
  .quantity {
    gap: 6px;
    font-size: 11px;
  }
  .quantity button {
    width: 28px;
    height: 28px;
    font-size: 19px;
  }
  .cart-bar {
    bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .cart-bar > .primary {
    min-width: 94px;
    font-size: 13px;
  }
  .cart-overview {
    gap: 19px;
  }
  .cart-overview strong {
    font-size: 24px;
  }
  .cart-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .cart-modal {
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 90dvh;
    padding: 24px 20px 30px;
  }
  .cart-items {
    max-height: 35dvh;
  }
  .ordered {
    font-size: 11px;
    padding: 16px;
  }
  .paper-receipt {
    padding: 27px 20px;
  }
  .receipt-actions {
    justify-content: center;
  }
  .qr-poster {
    padding: 25px 20px;
  }
}
@media (max-width: 380px) {
  .table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .floor-summary > div {
    padding: 0 20px;
  }
  .floor-summary b {
    font-size: 21px;
  }
  .dish-art {
    width: 48px;
    height: 68px;
  }
  .menu-layout {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
  }
  .dish-card {
    gap: 8px;
  }
  .dish-price b {
    font-size: 15px;
  }
  .quantity {
    gap: 4px;
  }
  .quantity button {
    width: 26px;
    height: 26px;
  }
  .customer-brand h1 {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  @page {
    margin: 10mm;
  }
  .no-print,
  .sidebar,
  #blazor-error-ui {
    display: none !important;
  }
  .workspace {
    display: block;
  }
  .main-content {
    padding: 0;
  }
  body,
  :root {
    background: white;
    color: black;
  }
  .paper-receipt {
    border: 0;
    width: 76mm;
    max-width: 100%;
    padding: 0;
    margin: auto;
  }
  .paper-receipt .voided {
    color: #666 !important;
  }
  .qr-poster {
    border: 0;
    width: 120mm;
    padding: 10mm;
    margin: auto;
  }
  .qr-poster img {
    width: 75mm;
    height: 75mm;
  }
  .qr-poster .brand-mark {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .notice {
    display: none !important;
  }
}
/* Pre-orders, searchable history and business charts share the workspace palette. */
.report-controls {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.reference {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.document-title {
  font-weight: 650;
  font-size: 13px;
}
.document-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.document-toolbar input,
.document-toolbar select {
  margin-top: 5px;
}
.document-toolbar .grow {
  min-width: 200px;
}
.document-toolbar > label:not(.grow) {
  min-width: 140px;
}
.history-filters > label {
  font-size: 11px;
  color: var(--muted);
}
.history-filters > label:not(.grow) {
  flex: 0 1 145px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.pagination button {
  font-size: 11px;
  padding: 8px 13px;
  min-height: 34px;
}
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover a {
  text-decoration: underline;
}
.history-table .reference {
  max-width: 240px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  margin: 0;
  font-size: 16px;
}
.panel-heading > div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
fieldset {
  min-width: 0;
}
fieldset.quote-information {
  margin: 0 0 24px;
  padding: 23px;
}
.quote-fields {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.4fr 1.2fr;
  gap: 20px;
}
.preorder-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 1fr);
  gap: 24px;
  align-items: start;
}
.quote-menu .document-toolbar {
  padding: 15px 18px;
}
.quote-menu .document-toolbar .grow {
  min-width: 130px;
}
.quote-menu .document-toolbar > label:not(.grow) {
  min-width: 110px;
  max-width: 155px;
}
.quote-dish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-height: 620px;
  overflow: auto;
  padding: 0 12px;
}
.quote-dish {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  padding: 20px 10px;
  background: white;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  min-width: 0;
}
.quote-dish:hover {
  background: #f7fafc;
}
.quote-dish b {
  font-size: 12px;
  line-height: 1.5;
}
.quote-dish small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 9px;
}
.quote-dish .menu-symbol {
  width: 35px;
  height: 40px;
  font-size: 18px;
}
.quote-add {
  flex-shrink: 0;
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 23px;
  font-size: 18px;
}
.quote-selection {
  position: sticky;
  top: 20px;
}
.quote-selected-lines {
  padding: 0 20px;
  max-height: 390px;
  overflow: auto;
}
.quote-selected-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.quote-selected-line small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 8px;
}
.quote-selected-line input {
  width: 64px;
  min-height: 34px;
  padding: 7px 8px;
  margin: 0;
  font-size: 12px;
}
.quote-selected-line strong {
  width: 70px;
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.remove-line {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  font-size: 18px;
}
.empty.compact {
  padding: 35px 15px;
}
.quote-pricing {
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 22px;
}
.quote-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.discount-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  margin: 0 0 20px;
}
.discount-field input {
  width: 130px;
  margin: 0;
}
.quote-net {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-bottom: 10px;
}
.quote-net strong {
  font-size: 29px;
  color: var(--navy);
}
.budget-difference {
  font-size: 11px;
  background: #edf7f3;
  padding: 12px;
  color: var(--green);
  border-radius: 6px;
  margin-bottom: 20px;
}
.budget-difference.over-budget {
  background: #fff4e2;
  color: #966414;
}
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 22px;
}
.quote-actions > .primary,
.quote-actions > .secondary {
  flex: 1;
  font-size: 12px;
  padding: 10px 12px;
  white-space: nowrap;
}
.quote-actions > p {
  flex-basis: 100%;
  margin: 0;
}
.bill-preorder-note {
  font-size: 10px;
  line-height: 1.7;
  background: #eef5f8;
  padding: 10px;
  border-radius: 5px;
}
.bill-preorder-note span {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.bill-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.detail-summary {
  position: sticky;
  top: 20px;
}
.detail-summary-content {
  padding: 24px 22px;
}
.detail-batch-heading {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 24px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.detail-batch-heading span {
  color: var(--amber);
  line-height: 1.7;
}
.detail-lines th {
  background: white;
}
.detail-meta {
  font-size: 11px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px 12px;
  margin: 25px 0 0;
  line-height: 1.7;
}
.detail-meta dt {
  color: var(--muted);
}
.detail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.preorder-source {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
}
.preorder-source > span,
.preorder-source small {
  color: var(--muted);
  font-size: 10px;
}
.preorder-ticket h2 {
  font-size: 19px;
}
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 0 0 26px;
}
.chart-panel .panel-heading {
  border-bottom: 0;
  align-items: flex-start;
  padding-bottom: 14px;
}
.chart-legend {
  display: flex;
  gap: 13px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.chart-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.sales-dot {
  background: #245771;
}
.expense-dot {
  background: #d6ad63;
}
.revenue-chart {
  padding: 0 12px 4px 3px;
}
.revenue-chart svg {
  width: 100%;
  height: auto;
  display: block;
  min-height: 190px;
}
.chart-axis {
  font-size: 10px;
  fill: #7d8c99;
  font-family: inherit;
}
.chart-empty {
  font-size: 13px;
  fill: #93a4b0;
  font-family: inherit;
}
.dish-sales-panel {
  grid-column: 1 / -1;
}
.dish-ranks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 35px;
  padding: 8px 23px 25px;
}
.dish-rank {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}
.dish-rank > span {
  width: 90px;
  flex-shrink: 0;
  line-height: 1.6;
}
.dish-rank small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}
.dish-rank b {
  min-width: 70px;
  text-align: right;
  font-size: 11px;
}
.dish-rank-track {
  flex: 1;
  height: 8px;
  background: #edf2f5;
  border-radius: 4px;
  overflow: hidden;
}
.dish-rank-track > div {
  height: 100%;
  background: #4a8d85;
  border-radius: 4px;
}
@media (max-width: 1250px) {
  .preorder-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 1fr);
    gap: 18px;
  }
  .quote-dish-grid {
    grid-template-columns: 1fr;
  }
  .quote-fields {
    grid-template-columns: 2fr 1.2fr;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bill-detail-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
  }
}
@media (max-width: 1000px) {
  .preorder-workspace {
    grid-template-columns: 1fr;
  }
  .quote-dish-grid {
    grid-template-columns: 1fr 1fr;
    max-height: 330px;
  }
  .quote-selection,
  .detail-summary {
    position: relative;
    top: 0;
  }
  .analytics-grid,
  .bill-detail-layout {
    grid-template-columns: 1fr;
  }
  .dish-sales-panel {
    grid-column: auto;
  }
  .dish-ranks {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 740px) {
  .document-toolbar {
    gap: 10px;
    padding: 16px;
  }
  .document-toolbar > label:not(.grow) {
    min-width: 120px;
  }
  .history-filters > label:not(.grow) {
    flex-basis: calc(50% - 5px);
  }
  .history-filters .grow {
    flex-basis: 100%;
  }
  .history-filters > label > input,
  .history-filters select {
    font-size: 12px;
  }
  .pagination {
    padding: 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  fieldset.quote-information {
    padding: 18px 16px;
    margin-bottom: 18px;
  }
  .quote-fields {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  .quote-title-field {
    grid-column: 1 / -1;
  }
  .quote-fields label {
    font-size: 11px;
  }
  .quote-fields label:last-child {
    grid-column: 1 / -1;
  }
  .quote-dish-grid {
    gap: 0 8px;
    padding: 0 8px;
  }
  .quote-dish {
    gap: 8px;
    padding: 16px 5px;
  }
  .quote-dish .menu-symbol {
    width: 28px;
    height: 35px;
    font-size: 15px;
  }
  .quote-dish b {
    font-size: 11px;
  }
  .quote-dish small {
    font-size: 9px;
  }
  .quote-add {
    width: 23px;
    height: 23px;
    line-height: 21px;
  }
  .quote-selected-lines {
    padding: 0 16px;
  }
  .quote-selected-line {
    gap: 8px;
    font-size: 11px;
  }
  .quote-selected-line input {
    width: 55px;
  }
  .quote-selected-line strong {
    width: 65px;
    font-size: 11px;
  }
  .quote-pricing {
    padding: 20px 16px;
  }
  .quote-actions {
    padding: 18px 16px;
    gap: 8px;
  }
  .quote-actions > .primary,
  .quote-actions > .secondary {
    font-size: 11px;
    padding: 10px;
  }
  .panel-heading {
    padding: 18px 16px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .panel-heading > div > span {
    font-size: 9px;
  }
  .analytics-grid {
    gap: 16px;
    margin-bottom: 20px;
  }
  .revenue-chart svg {
    min-height: 140px;
  }
  .chart-panel .panel-heading {
    padding: 18px 16px 10px;
  }
  .chart-legend {
    gap: 8px;
    font-size: 9px;
  }
  .revenue-chart .chart-axis {
    font-size: 22px;
  }
  .revenue-chart .chart-empty {
    font-size: 25px;
  }
  .page-heading .heading-actions {
    flex-shrink: 0;
  }
  .heading-actions .secondary {
    white-space: nowrap;
  }
  .dish-ranks {
    padding: 8px 16px 20px;
    gap: 17px;
  }
  .detail-batch-heading {
    padding: 17px 16px 13px;
  }
  .detail-summary-content {
    padding: 22px 18px;
  }
  .bill-detail-layout {
    gap: 18px;
  }
  .receipt-actions {
    flex-wrap: wrap;
  }
}
/* Reservation details, staff order alerts, images and same-page ticket printing. */
.quote-dining-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.ticket-dining-info {
  border-top: 1px dashed #acb8c2;
  border-bottom: 1px dashed #acb8c2;
  padding: 12px 0;
  margin: 16px 0;
}
.ticket-dining-info p {
  margin: 3px 0;
}
.ticket-print-frame {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 800px;
  height: 1000px;
  border: 0;
  pointer-events: none;
}
.print-error {
  display: block;
  color: #9d3c34;
  font-size: 11px;
  padding: 8px 0;
}
.print-document {
  margin: 0;
  padding: 0;
  background: white;
}
.cash-payment {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.menu-symbol,
.dish-art {
  overflow: hidden;
}
.menu-symbol img,
.dish-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish-art.has-image::before {
  display: none;
}
.dish-image-editor {
  border-top: 1px solid var(--line);
  margin: 20px 0;
  padding-top: 18px;
}
.dish-image-editor input[type="file"] {
  font-size: 11px;
  padding: 8px;
}
.image-preview-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.image-preview-row img {
  width: 100px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.staff-notifications {
  margin-bottom: 18px;
}
.sound-controls {
  display: flex;
  gap: 12px;
  margin: 8px 4px 0;
}
.sound-controls button {
  padding: 4px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.notification-item footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.preorder-lifecycle-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preorder-activity {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.preorder-activity > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
}
.preorder-activity small {
  margin-left: auto;
  color: var(--muted);
}
.lifecycle-modal {
  text-align: left;
  white-space: normal;
}
.notifications-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid #42677b;
  background: #244b60;
  color: #e4edf2;
  border-radius: 7px;
  padding: 11px 10px;
  font-size: 11px;
}
.notification-badge {
  border-radius: 20px;
  background: #e4bb6a;
  color: #163c50;
  min-width: 21px;
  padding: 3px 5px;
  font-size: 10px;
  font-weight: 650;
}
.order-toast {
  position: fixed;
  top: 86px;
  right: 24px;
  width: 345px;
  background: white;
  border: 1px solid #b6d6c9;
  border-left: 4px solid var(--green);
  box-shadow: 0 8px 32px #163c5022;
  border-radius: 9px;
  padding: 18px;
  color: var(--ink);
  z-index: 85;
}
.order-toast > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.order-toast strong {
  font-size: 14px;
}
.order-toast .icon-button {
  width: 25px;
  height: 25px;
  font-size: 19px;
}
.order-toast p {
  color: var(--muted);
  font-size: 11px;
  margin: 12px 0;
  line-height: 1.8;
}
.order-toast footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.order-toast footer a {
  font-weight: 650;
}
.notification-panel {
  position: fixed;
  left: 235px;
  bottom: 24px;
  width: 360px;
  max-height: min(580px, 80dvh);
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px #163c5025;
  background: white;
  color: var(--ink);
  z-index: 90;
}
.notification-panel > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.notification-panel h2 {
  flex: 1;
  font-size: 15px;
  margin: 0;
}
.notification-panel .text-button {
  font-size: 10px;
}
.notification-panel .icon-button {
  font-size: 20px;
  width: 27px;
  height: 27px;
}
.notification-panel > p {
  font-size: 12px;
  padding: 30px 20px;
  margin: 0;
}
.notification-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px 20px;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
}
.notification-item:hover {
  background: #f5faf8;
}
.notification-item small {
  color: var(--muted);
  line-height: 1.7;
  font-size: 10px;
}
.notification-item > span {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.notification-item time {
  color: var(--muted);
}
@media (max-width: 740px) {
  .quote-dining-fields {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  .quote-dining-fields label {
    font-size: 11px;
  }
  .quote-dining-fields label:last-child {
    grid-column: 1 / -1;
  }
  .sidebar-bottom .staff-notifications {
    position: fixed;
    bottom: 15px;
    right: 16px;
    margin: 0;
    z-index: 45;
  }
  .notifications-toggle {
    min-width: 135px;
    background: white;
    border-color: #cad8df;
    color: var(--navy);
    box-shadow: 0 3px 15px #163c5016;
  }
  .sound-controls {
    color: var(--navy);
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin: 4px 0 0;
    padding: 2px 8px;
  }
  .order-toast {
    left: 16px;
    right: 16px;
    top: 112px;
    width: auto;
  }
  .notification-panel {
    left: 16px;
    right: 16px;
    bottom: 72px;
    width: auto;
    max-height: 70dvh;
  }
}
@media print {
  .ticket-print-frame {
    display: none;
  }
  .print-document .paper-receipt {
    margin: auto;
  }
}
.bill-adjustment-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.bill-adjustment-actions > button {
  flex: 1;
}
.refund-panel,
.bill-activities {
  margin-top: 24px;
}
.refund-panel .panel-heading {
  flex-wrap: wrap;
  gap: 14px;
}
.refund-record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.refund-record small,
.return-record small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
}
.refund-record b {
  color: #a64b4b;
}
.refund-record p {
  margin: 9px 0;
  font-size: 12px;
}
.refund-empty {
  padding: 16px 24px;
}
.return-record {
  font-size: 11px;
  margin: 7px 0;
}
.bill-activities article {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.bill-activities small {
  margin-left: auto;
  color: var(--muted);
}
@media (max-width: 740px) {
  .refund-record {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
  }
  .refund-record small {
    overflow-wrap: anywhere;
  }
  .bill-activities article {
    flex-direction: column;
    padding: 18px;
  }
  .bill-activities small {
    margin-left: 0;
  }
  .cancelled-history-table {
    min-width: 720px;
  }
}
