:root {
  --ink: #1c1d18;
  --muted: #68695e;
  --paper: #f4f2e9;
  --white: #fffef9;
  --orange: #ed8b24;
  --gold: #c7a648;
  --line: #deded1;
  --green: #2c6747;
  --red: #a53d27;
  --radius: 8px;
  --control-radius: 6px;
  --space: 8px;
  --sidebar-width: 176px;
  --header-height: 92px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px "Trebuchet MS",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--control-radius);
  min-height: 44px;
  padding: 10px 16px;
  font-weight: 600;
  line-height: 1.4;
}
button:hover {
  border-color: var(--ink);
  background: #eeece3;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.primary:hover:not(:disabled) {
  background: #f5a34b;
  border-color: #bd6813;
}
.dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.dark:hover {
  background: #35372d;
}
.danger {
  color: var(--red);
}
input,
select,
textarea {
  min-height: 46px;
  border: 1px solid #bdbfae;
  border-radius: var(--control-radius);
  background: white;
  padding: 10px 12px;
  width: 100%;
  color: var(--ink);
}
input[type="checkbox"] {
  width: 24px;
  min-height: 24px;
  accent-color: var(--ink);
  flex: 0 0 auto;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
label > input,
label > select,
label > textarea {
  margin-top: 6px;
}
.small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font:
    normal 32px/1.2 Georgia,
    serif;
  letter-spacing: -0.4px;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
}
header {
  min-height: var(--header-height);
  background: var(--ink);
  color: var(--white);
  padding: 8px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #494535;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-right button {
  background: transparent;
  border-color: #68695e;
  color: var(--white);
}
.header-right button:hover {
  background: #35372d;
}
.account-name {
  font-size: 13px;
  text-align: right;
}
.account-name small {
  display: block;
  margin-top: 4px;
  color: #c9c9bb;
  font-size: 11px;
}

.workspace {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
}
.sidebar {
  background: var(--ink);
  color: var(--white);
  padding: 24px 12px;
}
.nav-group + .nav-group {
  margin-top: 24px;
}
.nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #c2ad70;
  cursor: default;
}
.nav-section-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.sidebar button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #efeee6;
  border-radius: 0;
  min-height: 44px;
  padding: 10px 8px 10px 20px;
  font-size: 14px;
  font-weight: 400;
}
.sidebar button:hover {
  background: #292b22;
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sidebar button.active {
  background: #33362a;
  border-left-color: var(--orange);
  color: white;
  font-weight: 600;
}
.sidebar .nav-count {
  margin-left: auto;
}
.nav-count {
  background: var(--orange);
  color: var(--ink);
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  font-size: 11px;
}
.mobile-nav {
  display: none;
}
main {
  min-width: 0;
  padding: 32px;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10px;
  font-weight: 600;
  color: #786027;
  margin-bottom: 8px;
}
.flex {
  display: flex;
  gap: 12px;
  align-items: center;
}
.wrap {
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.grid {
  display: grid;
  gap: 20px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tabs button {
  background: transparent;
  padding: 8px 12px;
  min-height: 44px;
  font-size: 13px;
}
.tabs button.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.menu-item {
  min-height: 100px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 12px;
  align-items: center;
  text-align: left;
  padding: 12px;
  gap: 12px;
  border-radius: var(--control-radius);
}

.menu-item .price {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.menu-item .plus {
  font-size: 20px;
  color: #925013;
  line-height: 1;
}
.order {
  position: sticky;
  top: 24px;
  padding: 0;
  overflow: hidden;
}
.order-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.order-body {
  padding: 0 20px;
  max-height: 43vh;
  overflow: auto;
}
.order-foot {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: #f9f7ed;
}
.line {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.line:last-child {
  border-bottom: 0;
}
.line-title {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-weight: 600;
  line-height: 1.5;
}
.line-title > span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.line .controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.controls button {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
}
.total {
  font-size: 23px;
  font-weight: 600;
  margin: 20px 0;
}
.full {
  width: 100%;
}
.empty {
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.table-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.table-tile {
  min-height: 164px;
  text-align: left;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
}
.table-tile.busy {
  background: var(--white);
}
.table-tile.free {
  background: transparent;
}
.table-tile h2 {
  font:
    25px Georgia,
    serif;
}
.table-tile b {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  line-height: 1.4;
  background: #ecebdc;
  border-radius: 3px;
  color: #555647;
}
.pill.green {
  color: var(--green);
  background: #e3eee3;
}
.pill.orange {
  color: #83450a;
  background: #fae8cf;
}
.pill.red {
  color: var(--red);
  background: #f8dfd7;
}
.table-tile .pill {
  font-weight: normal;
  background: transparent;
  padding: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.metric {
  padding: 20px 24px;
  min-width: 0;
}
.metric + .metric {
  border-left: 1px solid var(--line);
}
.metric b {
  display: block;
  font-size: 25px;
  font-weight: 600;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.kitchen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ticket-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.ticket .line-title {
  font-size: 16px;
}
.ticket .line button {
  margin-top: 16px;
  width: 100%;
}
.ticket-status {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  background: #eeeee3;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  font-size: 14px;
}
td:first-child b {
  font-weight: 600;
}
td input {
  width: 110px;
}
td select {
  width: 145px;
}
tr:last-child td {
  border-bottom: 0;
}
.signin-screen {
  min-height: 100svh;
  max-width: none;
  display: grid;
  place-items: center;
  padding: 48px 32px;
  background-color: #35372d;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, #c7a6480a 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, #c7a6480a 31px 32px);
}
.login {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  border: 1px solid #c7a64840;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px #0003;
}
.login-brand {
  background: var(--ink);
  color: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.login-brand .brand-logo {
  width: 256px;
  max-width: 100%;
}
.login-brand-footer {
  margin: 0;
  border-top: 1px solid var(--gold);
  padding-top: 24px;
  width: 80px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-align: center;
}
.login-form {
  background: var(--paper);
  padding: 56px 48px;
  display: grid;
  place-items: center;
}
.login-fields {
  width: 100%;
  max-width: 360px;
}
.login-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.login-form h1 {
  margin: 0 0 40px;
  font-size: 36px;
  overflow-wrap: anywhere;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.login-form form {
  gap: 24px;
}
.login-form input {
  min-height: 56px;
  background: var(--white);
  font-size: 16px;
  padding: 14px 16px;
}
.login-form button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  margin-top: 8px;
  padding: 14px 20px;
}
.receipt {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  font:
    13px/1.6 "Courier New",
    monospace;
  padding: 24px;
}
.receipt .receipt-logo {
  width: 180px;
  max-width: 100%;
  margin: 0 auto 12px;
}
.receipt .receipt-logo img {
  filter: grayscale(1) brightness(3) contrast(2) invert(1);
  mix-blend-mode: multiply;
}
.receipt .center {
  text-align: center;
  line-height: 1.7;
  margin-bottom: 16px;
}
.receipt hr {
  border: 0;
  border-top: 1px dashed #aaa;
  margin: 16px 0;
}
.receipt .flex {
  align-items: start;
}
.receipt .flex span:first-child {
  max-width: 70%;
}
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  max-width: 620px;
  width: calc(100% - 32px);
  color: var(--ink);
  max-height: 90vh;
  background: var(--white);
  box-shadow: 0 20px 60px #0003;
}
dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
dialog::backdrop {
  background: #15181188;
}
.modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 20px;
}
.modal-head button {
  min-width: 44px;
  font-size: 24px;
  border-color: transparent;
  background: transparent;
  padding: 4px;
}
.modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  display: grid;
  gap: 20px;
}
.modal-foot {
  flex-shrink: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  background: #f9f7ed;
}
#checkout-submit {
  flex: 1 0 100%;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 16px 24px;
  border-radius: var(--control-radius);
  box-shadow: 0 5px 25px #0003;
  display: none;
  z-index: 20;
  max-width: 90vw;
  font-size: 14px;
}
#notice.error {
  background: var(--red);
}
.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 850px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.section-gap {
  margin-top: 28px;
}
.row-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(200px, 2fr) auto;
  gap: 16px;
  align-items: end;
}
.receipt-status {
  font-size: 12px;
  color: var(--muted);
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.link {
  color: #925013;
  background: transparent;
  border: 0;
  text-decoration: underline;
  padding: 8px 0;
}
.light {
  color: #c9c9bb;
}
.help {
  max-width: 850px;
  line-height: 1.8;
}
.help h2 {
  margin: 24px 0 8px;
}
.help h2:first-child {
  margin-top: 0;
}
.bill-overview {
  max-width: 1200px;
}

[hidden] {
  display: none !important;
}
@media (max-width: 1399px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kitchen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar-width: 152px;
  }
  main {
    padding: 24px;
  }
  .header-right {
    gap: 16px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 304px;
    gap: 20px;
  }
  .metric {
    padding: 16px;
  }
  .metric b {
    font-size: 22px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics .metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .metrics .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .row-form {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 979px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .order {
    position: static;
  }
  .order-body {
    max-height: none;
  }
  .table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-tile .flex {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 660px) {
  header {
    padding: 16px;
    min-height: 80px;
  }

  .header-right {
    gap: 12px;
  }
  .account-name,
  .header-right > .small {
    display: none;
  }
  .header-right button {
    font-size: 12px;
    padding: 8px 12px;
  }

  .workspace {
    display: block;
    min-height: calc(100vh - var(--header-height));
  }
  .sidebar {
    display: none;
  }
  .mobile-nav {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
  }
  .mobile-nav select {
    flex: 1;
    width: auto;
    margin: 0;
  }
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 28px;
  }
  .heading {
    margin-bottom: 24px;
    gap: 16px;
  }
  .heading > .flex {
    flex-wrap: wrap;
  }
  .table-tile {
    min-height: 160px;
    padding: 16px;
  }
  .table-tile h2 {
    font-size: 24px;
  }
  .table-tile b {
    font-size: 17px;
  }
  .table-grid {
    gap: 12px;
  }

  .kitchen-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .order {
    padding: 0;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .metric b {
    font-size: 20px;
  }

  .line-title > span:last-child {
    white-space: normal;
    text-align: right;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head {
    padding: 16px 20px;
  }
  .modal-foot {
    padding: 16px 20px;
  }
  .modal-foot button {
    flex: 1;
  }
  th,
  td {
    padding: 14px;
  }
}
.receipt-search {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.receipt-search label {
  flex: 1 1 180px;
}

.setting-status[data-state="Not set"],
.setting-status[data-state="Not saved"] {
  color: var(--red);
  font-weight: 600;
}
.setting-status[data-state="Not set"] {
  background: #fce8cf;
  border-radius: 4px;
  padding: 4px 8px;
}
.setting-status {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .stock-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .stock-table table,
  .stock-table tbody {
    display: block;
  }
  .stock-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .stock-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 4px;
  }
  .stock-table td {
    display: block;
    min-width: 0;
    border: 0;
    overflow-wrap: anywhere;
    padding: 10px;
  }
  .stock-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
  }
  .stock-table td:first-child,
  .stock-table td[colspan] {
    grid-column: 1 / -1;
  }
}

@media print {
  body > * {
    display: none !important;
  }
  body > dialog[open] {
    display: block !important;
    position: static;
    border: 0;
    max-height: none;
    width: 100%;
    max-width: none;
    box-shadow: none;
    overflow: visible;
    margin: 0;
  }
  dialog::backdrop {
    display: none;
  }
  .modal-body {
    display: block;
    padding: 0;
    overflow: visible;
  }
  .modal-head,
  .modal-foot,
  .receipt-status {
    display: none !important;
  }
  .receipt {
    width: 80mm;
    max-width: 100%;
    margin: 0;
    padding: 4mm;
    color: black;
  }
}

.order-existing {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.order-existing b {
  font-size: 13px;
  white-space: nowrap;
}
.menu-item .small {
  font-weight: normal;
}

.ticket-status summary {
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
  color: var(--muted);
}

label.flex {
  min-height: 44px;
}

.printer-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.printer-routes .panel {
  padding: 20px;
  display: grid;
  gap: 16px;
  justify-items: start;
}
.printer-routes .panel > .flex {
  width: 100%;
}
.printer-routes h2 {
  font-size: 18px;
}
@media (max-width: 979px) {
  .printer-routes {
    grid-template-columns: 1fr;
  }
  .printer-routes .panel {
    padding: 16px;
  }
}

.table-number {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 4px;
}
.table-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: normal;
  color: var(--muted);
}
.table-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.busy .table-state i {
  background: var(--orange);
}
.table-tile b {
  margin-top: auto;
}
.table-tile.selected {
  border-color: var(--orange);
  outline: 1px solid var(--orange);
}
.menu-photo {
  display: block;
  position: relative;
  width: 72px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: #e9e5d9;
}
.menu-photo img {
  position: absolute;
  width: var(--photo-width);
  max-width: none;
  height: auto;
  left: var(--photo-left);
  top: var(--photo-top);
}
.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font:
    24px Georgia,
    serif;
}
.menu-item-info {
  display: block;
  min-width: 0;
}
.menu-item-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.menu-item-info .small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.order-switch {
  display: none;
}
.pad-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
}
.pad-line {
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
}
.pad-line:last-child {
  border-bottom: 0;
}
.pad-line-title,
.pad-line-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pad-line-title b {
  font-size: 15px;
  font-weight: 600;
}
.pad-line-title .link {
  font-size: 12px;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quantity-control button {
  min-width: 44px;
  padding: 8px;
}
.quantity-control output {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pad-line-controls > .link {
  font-size: 12px;
}
.bill-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
}
.bill-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: start;
}
.bill-grid-head,
.bill-item {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(100px, 1fr) 100px;
  gap: 12px 16px;
}
.bill-grid-head {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.bill-grid-head > :last-child {
  text-align: right;
}
.bill-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.bill-item-name b {
  font-size: 16px;
  font-weight: 600;
}
.bill-item-name .small {
  margin-top: 2px;
}
.bill-item-state {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}
.bill-item-state .pill {
  background: none;
  padding: 2px 0;
  font-weight: normal;
}
.bill-item-amount {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bill-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.bill-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.bill-item-actions .link {
  font-size: 12px;
  min-height: 28px;
  padding: 2px 0;
}
.bill-item-actions .primary {
  min-height: 36px;
  padding: 6px 12px;
}
.bill-summary {
  position: sticky;
  top: 24px;
  padding: 20px 0;
  border-top: 2px solid var(--ink);
}
.bill-summary .flex {
  margin-bottom: 16px;
}
.bill-summary-total {
  font-size: 20px;
}
.bill-balance {
  font-size: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .menu-item {
    grid-template-columns: 60px minmax(0, 1fr) 10px;
    gap: 10px;
  }
  .menu-photo {
    width: 60px;
  }
  .menu-item-name {
    font-size: 14px;
  }
  .bill-content {
    gap: 24px;
  }
}
@media (max-width: 979px) {
  .order-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 0;
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 4;
  }
  .order-switch button {
    flex: 1;
  }
  .order-switch .active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
  }
  .order-layout.show-menu > .order,
  .order-layout.show-pad > .menu-selection {
    display: none;
  }
  .bill-content {
    grid-template-columns: 1fr;
  }
  .bill-summary {
    position: static;
    max-width: 420px;
    width: 100%;
    margin-left: auto;
  }
  .table-tile {
    min-height: 152px;
  }
}
@media (max-width: 660px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .menu-item {
    min-height: 92px;
    grid-template-columns: 72px minmax(0, 1fr) 16px;
    gap: 14px;
    padding: 12px;
  }
  .menu-photo {
    width: 72px;
  }
  .menu-item-name {
    font-size: 16px;
  }
  .menu-item-info .small {
    font-size: 12px;
  }
  .bill-grid-head,
  .bill-item {
    grid-template-columns: minmax(0, 1fr) 80px 80px;
    gap: 10px;
  }
  .bill-item-name b {
    font-size: 15px;
  }
  .bill-item-amount {
    font-size: 14px;
  }
  .bill-summary-total {
    font-size: 21px;
  }
  .table-number {
    font-size: 30px;
  }
  .table-tile {
    min-height: 150px;
  }
}

.brand-logo {
  position: relative;
  width: 160px;
  aspect-ratio: 408/190;
  overflow: hidden;
  flex: none;
}
.brand-logo img {
  position: absolute;
  width: 266.4215686%;
  max-width: none;
  height: auto;
  left: -3.9215686%;
  top: -6.3157895%;
  mix-blend-mode: lighten;
}
@media (max-width: 660px) {
  :root {
    --header-height: 80px;
  }
  header {
    min-height: var(--header-height);
    padding: 6px 16px;
  }
  .brand-logo {
    width: 144px;
  }
}

@media (max-width: 900px) {
  .login-brand,
  .login-form {
    padding: 48px 32px;
  }
  .login-form h1 {
    font-size: 32px;
    margin-bottom: 32px;
  }
}
@media (max-width: 540px) {
  .signin-screen {
    padding: 24px 12px;
  }
  .login {
    grid-template-columns: minmax(96px, 0.65fr) minmax(0, 1fr);
    min-height: 520px;
  }
  .login-brand {
    padding: 32px 16px;
    gap: 32px;
  }
  .login-form {
    padding: 32px 20px;
  }
  .login-form h1 {
    font-size: 28px;
  }
  .login-form input {
    padding: 12px;
  }
  .login-form button {
    padding: 12px;
  }
  .login-form button svg {
    flex: none;
    width: 16px;
  }
}

summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  font-weight: 600;
}
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.portion-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.portion-status {
  min-width: 64px;
}
.portion-form button[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .portions-table th,
  .portions-table td {
    padding: 12px;
  }
  .portion-form {
    flex-wrap: wrap;
    gap: 6px;
  }
  .portion-form input {
    width: 84px;
  }
  .portion-status {
    flex-basis: 100%;
  }
}

button[data-action="retry-menu"][hidden] {
  display: none;
}
