:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #25322d;
  background: #f5f6f3;
  font-synthesis: none;
  --accent: #d65b32;
  --green: #28664e;
  --line: #e3e7df;
  --muted: #78847b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: #32443a;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
}
button:hover {
  background: #f3f5ef;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.primary:hover {
  background: #b84723;
}
button.danger {
  color: #ae4033;
  background: #fff4f1;
}
button.small {
  padding: 7px 10px;
  font-size: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #202c27;
  color: #d2ddd4;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  overflow: auto;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 12px 28px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.brand-mark {
  background: #d65b32;
  color: white;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #9faf9e;
  margin-top: 5px;
  text-transform: uppercase;
}
.nav-title {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #7f9587;
  margin: 18px 13px 10px;
}
.nav-button {
  border: 0;
  background: transparent;
  text-align: left;
  color: #aebfb4;
  font-size: 12px;
  font-weight: 500;
  padding: 11px 13px;
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 2px 0;
}
.nav-button span {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.nav-button:hover {
  background: #2e3b33;
  color: white;
}
.nav-button.active {
  background: #3d4a35;
  color: #dbe9b7;
}
.side-footer {
  margin-top: auto;
  padding: 24px 12px 0;
  font-size: 11px;
  color: #8da092;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #fff;
  gap: 15px;
}
.crumb {
  font-size: 12px;
  color: #7d887e;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d8865;
  margin-right: 6px;
}
.avatar {
  border: 0;
  background: #edf0e9;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.content {
  padding: 30px 32px 45px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #7a897a;
  margin: 0 0 9px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.7px;
  font-weight: 650;
  margin: 0 0 8px;
}
h2 {
  font-size: 17px;
  margin: 0 0 16px;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  line-height: 1.6;
}
.subtitle {
  font-size: 12px;
  color: #7c877e;
  margin: 0;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
}
.metric-label {
  font-size: 11px;
  color: #7d877e;
  display: flex;
  justify-content: space-between;
}
.metric strong {
  display: block;
  margin: 13px 0 7px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.metric small {
  font-size: 10px;
  color: #899187;
}
.metric.highlight {
  background: #ecf0e3;
  border-color: #dce3ce;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #e9ede5;
  border-radius: 9px;
}
.tabs button {
  background: none;
  border: 0;
  font-size: 11px;
  padding: 9px 14px;
  color: #7a857b;
}
.tabs .selected {
  background: white;
  box-shadow: 0 1px 3px #0000000c;
  color: #334b3a;
}
.search {
  position: relative;
  min-width: 250px;
}
input,
select,
textarea {
  border: 1px solid #dce2d8;
  border-radius: 7px;
  padding: 10px 11px;
  background: white;
  color: #334239;
  min-width: 0;
  font-size: 13px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #628a6b;
}
.search input {
  width: 100%;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  overflow: auto;
  min-height: 440px;
  padding-bottom: 15px;
}
.column {
  background: #ecefe9;
  border-radius: 10px;
  padding: 13px;
  min-height: 380px;
}
.column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3px 2px 17px;
  font-size: 12px;
  font-weight: 650;
}
.column-head .dot {
  width: 7px;
  height: 7px;
  background: #e4a34c;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
}
.column:nth-child(2) .dot {
  background: #7595c4;
}
.column:nth-child(3) .dot {
  background: #ae8ac0;
}
.column:nth-child(4) .dot {
  background: #75a286;
}
.count {
  background: white;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  color: #758276;
}
.order-card {
  background: white;
  border: 1px solid #e1e6dc;
  border-radius: 9px;
  padding: 15px;
  margin-bottom: 11px;
  box-shadow: 0 2px 2px #223b1903;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  gap: 5px;
}
.order-number {
  font-weight: 700;
  font-size: 13px;
}
.badge {
  display: inline-block;
  font-size: 9px;
  border-radius: 4px;
  padding: 4px 6px;
  color: #7c654b;
  background: #f5ede0;
}
.badge.green {
  color: #367153;
  background: #e9f3e9;
}
.badge.red {
  color: #ad4039;
  background: #ffedeb;
}
.order-card h3 {
  margin-top: 16px;
  font-size: 12px;
}
.order-card .items {
  font-size: 11px;
  color: #849081;
  line-height: 1.7;
  margin: 10px 0;
}
.card-bottom {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 12px;
}
.card-actions {
  display: flex;
  gap: 5px;
  margin-top: 13px;
}
.card-actions button {
  flex: 1;
  font-size: 10px;
  padding: 7px;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #93a08e;
  min-height: 220px;
  padding: 24px;
  font-size: 12px;
  line-height: 1.7;
  gap: 10px;
}
.empty-icon {
  font-size: 29px;
  color: #b1beaa;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 23px;
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.panel-head h2 {
  margin: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  color: #7d8a7b;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 14px 12px;
  background: #f8f9f6;
}
td {
  border-bottom: 1px solid #edf0e9;
  padding: 15px 12px;
  white-space: normal;
}
td strong {
  font-weight: 600;
}
tr:last-child td {
  border: 0;
}
.row-sub {
  font-size: 10px;
  color: #8b9589;
  margin-top: 5px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.product-card {
  padding: 20px;
  text-align: left;
  border-radius: 10px;
  min-height: 115px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
}
.product-card .product-icon {
  font-size: 25px;
  margin-bottom: 12px;
}
.product-card strong {
  font-size: 12px;
}
.product-card small {
  font-size: 11px;
  color: #9a6e42;
  margin-top: 8px;
}
.cart {
  position: sticky;
  top: 20px;
  align-self: start;
}
.cart-line {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  font-size: 12px;
}
.cart-line small {
  font-size: 10px;
  color: #81907b;
  display: block;
  margin-top: 6px;
  max-width: 220px;
}
.cart-line button {
  padding: 2px 6px;
}
.totals {
  font-size: 12px;
  margin: 16px 0;
}
.totals div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.totals .total {
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 700;
  padding-top: 15px;
  margin-top: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #6e7d6d;
  margin-bottom: 13px;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 0;
}
.check input {
  width: auto;
}
.note {
  background: #f3f5ee;
  border: 1px solid #e0e6d8;
  color: #6a7c60;
  border-radius: 8px;
  padding: 13px;
  font-size: 11px;
  line-height: 1.7;
  margin: 12px 0;
}
.warning {
  background: #fff5e8;
  color: #97632c;
  border-color: #f0dfc7;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.table-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  text-align: center;
  min-height: 160px;
}
.table-card.busy {
  background: #faf0e5;
  border-color: #e9d2b7;
}
.table-card strong {
  display: block;
  font-size: 22px;
  margin: 12px 0;
}
.table-card small {
  color: #899480;
}
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 90px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  margin: 17px 0;
}
.bar {
  height: 8px;
  background: #edf0e7;
  border-radius: 5px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #6d8a58;
  min-width: 3px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #24372a;
  color: #f5f4e9;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-story h1 {
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -2px;
  max-width: 430px;
}
.auth-story p {
  font-size: 14px;
  color: #b9c7b0;
  max-width: 350px;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form form {
  width: 340px;
}
.auth-form h1 {
  font-size: 28px;
  margin-bottom: 12px;
}
.auth-form .primary {
  width: 100%;
  margin-top: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  max-width: 660px;
  width: calc(100% - 30px);
  max-height: 90vh;
  color: #2d4031;
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #18271e66;
  backdrop-filter: blur(2px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-head button {
  border: 0;
  background: #f2f4ee;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  gap: 8px;
}
.option:has(input:checked) {
  background: #f0f4e8;
  border-color: #97ac7c;
}
.option input {
  accent-color: #496c3d;
}
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.muted {
  color: #84917f;
}
.error {
  color: #b74436;
  font-size: 12px;
  line-height: 1.5;
}
.login-help {
  font-size: 11px;
  color: #84907c;
  margin-top: 20px;
  line-height: 1.6;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #243b2c;
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  max-width: 420px;
  z-index: 20;
  box-shadow: 0 6px 30px #0002;
  display: none;
  font-size: 13px;
}
#toast.visible {
  display: block;
}
.receipt {
  font: 13px monospace;
  max-width: 300px;
  margin: auto;
  line-height: 1.6;
}
.receipt h2 {
  text-align: center;
}
.receipt hr {
  border: 0;
  border-top: 1px dashed #999;
}
.hidden {
  display: none !important;
}
.full-width {
  width: 100%;
}
.spaced {
  margin-top: 20px;
}
.text-right {
  text-align: right;
}
.mobile-menu {
  display: none;
}
.recipe-row {
  display: grid;
  grid-template-columns: 1fr 100px 35px;
  gap: 8px;
  margin-bottom: 8px;
}
@media (min-width: 1400px) {
  .board {
    gap: 20px;
  }
  .order-card {
    padding: 18px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    width: 185px;
  }
  .content {
    padding: 24px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 22px;
  }
  .brand {
    padding-left: 5px;
    font-size: 15px;
  }
}
@media (max-width: 800px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .sidebar.mobile-open {
    display: flex;
    z-index: 10;
    width: 220px;
    box-shadow: 5px 0 30px #0003;
  }
  .main {
    width: 100%;
  }
  .mobile-menu {
    display: inline-block;
  }
  .topbar {
    height: 65px;
  }
  .top-right {
    gap: 8px;
  }
  .top-right .operator {
    display: none;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .cart {
    position: static;
  }
  .page-heading {
    align-items: flex-start;
  }
  .content {
    padding: 22px 16px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-form {
    min-height: 100vh;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .option-grid {
    grid-template-columns: 1fr;
  }
  .board {
    grid-template-columns: repeat(4, 260px);
  }
  .crumb {
    display: none;
  }
  h1 {
    font-size: 24px;
  }
  .search {
    min-width: 180px;
  }
  .page-heading .actions button {
    font-size: 11px;
  }
}
@media print {
  body {
    background: white;
  }
  .layout,
  .auth,
  #toast {
    display: none !important;
  }
  dialog[open] {
    position: static;
    border: 0;
    box-shadow: none;
    max-height: none;
    width: 100%;
    max-width: none;
    padding: 0;
  }
  dialog::backdrop {
    display: none;
  }
  .dialog-head,
  .dialog-footer,
  .no-print {
    display: none !important;
  }
  .receipt {
    width: 72mm;
  }
}
