:root {
  --primary: #9f2d24;
  --bg: #f8f5f1;
  --surface: #fffbf7;
  --border: #e4ddd5;
  --text: #292822;
  --muted: #817d74;
  --green: #287452;
  --orange: #9b651b;
  --blue: #386b91;
  --red: #ae3e35;
  --shadow: 0 3px 18px #4c352405;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--primary);
  text-decoration: none;
}
button,
.button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--text);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover,
.button:hover {
  background: #f5eee7;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.primary:hover {
  background: #84231c;
}
button svg,
.button svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
:focus-visible {
  outline: 3px solid #bc8d46;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  background: white;
  color: var(--text);
}
textarea {
  resize: vertical;
}
input[type='number'] {
  min-width: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin-bottom: 8px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.2px;
  margin-bottom: 14px;
}
h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
p {
  margin-bottom: 12px;
}
svg {
  width: 23px;
  height: 23px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
.brand small {
  font-size: 8px;
  letter-spacing: 1.8px;
  margin-top: 4px;
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.welcome-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
}
.nav-label {
  font-size: 10px;
  color: #a49c90;
  letter-spacing: 1.5px;
  margin: 48px 12px 14px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 9px;
  color: #716b62;
  min-height: 46px;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 500;
}
nav a.active {
  background: #f3e7e0;
  color: var(--primary);
  font-weight: 650;
}
nav a:hover {
  background: #f4ede6;
}
nav svg {
  width: 20px;
  height: 20px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 20px 8px 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: #e9e4d9;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  font-weight: 700;
  color: #736950;
}
.workspace {
  margin-left: 246px;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--surface);
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.demo-badge {
  font-size: 10px;
  letter-spacing: 1px;
  color: #736950;
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 20px;
  background: #f7f2e9;
}
.mobile-brand {
  display: none;
}
main {
  max-width: 1450px;
  padding: 34px 40px 20px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #958774;
  margin-bottom: 9px;
}
.welcome {
  background: #ece8dc;
  border: 1px solid #e2ddcf;
  border-radius: 16px;
  padding: 27px 32px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  min-height: 218px;
}
.welcome span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #7e8061;
  font-weight: 700;
}
.welcome h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.25;
  margin: 13px 0;
  color: #454839;
}
.welcome p {
  color: #7d7e6d;
  font-size: 12px;
  margin: 0;
}
.welcome-art {
  position: relative;
  width: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0 28px;
}
.summary {
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 21px 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.summary > span {
  font-size: 12px;
  color: #817a6f;
}
.summary strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.8px;
  margin: 10px 0 7px;
  overflow-wrap: anywhere;
}
.summary small {
  font-size: 10px;
}
.summary.accent {
  background: #f0f2e9;
  border-color: #e0e5d4;
}
.summary.accent strong {
  color: #50613e;
}
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 22px 0 15px;
}
.section-title h2 {
  margin: 0;
}
.section-title a {
  font-size: 12px;
}
.section-title label {
  margin: 0;
}
.attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}
.attention {
  justify-content: flex-start;
  padding: 17px 18px;
  font-weight: 500;
  font-size: 12px;
  border-color: var(--border);
  background: var(--surface);
}
.attention strong {
  font-size: 21px;
  margin-left: auto;
}
.attention svg {
  width: 16px;
}
.red {
  color: var(--red);
}
.orange {
  color: var(--orange);
}
.blue {
  color: var(--blue);
}
.green {
  color: var(--green);
}
.gray {
  color: #7c7b73;
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.order-card {
  display: block;
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 19px 21px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.order-card:hover {
  border-color: #b89476;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.row > span,
.row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.row h3 {
  margin: 12px 0 8px;
}
.order-no {
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--primary);
}
.order-card .row small {
  font-size: 10px;
}
.order-card .row strong {
  font-size: 16px;
  white-space: nowrap;
}
.order-card p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.5;
}
.chip:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.chip.green {
  background: #edf5ee;
}
.chip.orange {
  background: #fbf2e2;
}
.chip.blue {
  background: #edf3f8;
}
.chip.red {
  background: #fceeea;
}
.chip.gray {
  background: #f1f0ec;
}
.detail-chips {
  margin-bottom: 20px;
}
.panel {
  padding: 23px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  min-width: 0;
}
.order-grid > .panel {
  margin: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 20px;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.search {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
}
.search svg {
  position: absolute;
  left: 14px;
  width: 18px;
  color: var(--muted);
}
.search input {
  padding-left: 42px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 4px 0 8px;
  margin-bottom: 18px;
}
.tabs button {
  white-space: nowrap;
  border: 1px solid transparent;
  color: #78746b;
  background: transparent;
}
.tabs button.selected {
  background: #fff;
  border-color: var(--border);
  color: var(--primary);
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.actions:empty {
  display: none;
}
.note {
  background: #faf3e7;
  color: #8a7147;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
}
.note small {
  color: inherit;
  margin-top: 4px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.timeline li {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
  color: #a19c92;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li:not(:last-child):before {
  content: '';
  position: absolute;
  top: 24px;
  left: 11px;
  width: 1px;
  height: calc(100% - 24px);
  background: var(--border);
}
.timeline li.done {
  color: var(--text);
}
.timeline-dot {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--bg);
  font-size: 12px;
}
.done .timeline-dot {
  background: #e9f2e8;
  color: var(--green);
  border-color: #d5e4d1;
}
.timeline small {
  margin-top: 4px;
  font-size: 11px;
}
.line-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.line-item > div:nth-child(2) {
  flex: 1;
}
.line-item > strong {
  white-space: nowrap;
}
.product-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: #f1ede4;
  border-radius: 10px;
  color: #9b8b73;
}
.totals {
  margin: 18px 0;
}
.totals p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin: 10px 0;
}
.totals p span {
  color: var(--muted);
}
.totals .total {
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 17px;
}
.history {
  padding: 13px 0;
  border-bottom: 1px solid #eee9e1;
}
.history:last-child {
  border: 0;
}
.history small {
  margin-top: 5px;
}
.back {
  display: inline-block;
  margin-bottom: 18px;
}
.panel details {
  margin-top: 20px;
}
.panel details summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}
.panel > button {
  margin-top: 14px;
}
.kitchen-line {
  border-bottom: 1px solid #eee9e1;
  padding: 14px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.wizard {
  max-width: 870px;
  margin: auto;
}
.wizard-steps {
  display: flex;
  max-width: 870px;
  margin: 0 auto 25px;
  gap: 20px;
}
.wizard-steps > span {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  color: #9e968b;
  font-size: 13px;
}
.wizard-steps b {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ede7dd;
  width: 31px;
  height: 31px;
}
.wizard-steps .current {
  color: var(--primary);
  font-weight: 650;
}
.wizard-steps .current b {
  background: var(--primary);
  color: white;
}
.wizard-steps .done b {
  background: #dfead9;
  color: #526947;
}
.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 24px;
}
.customer-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
  max-height: 260px;
  overflow: auto;
}
.customer-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  gap: 4px;
  text-align: left;
}
.customer-option.selected {
  background: #faf0e9;
  border-color: #bc8a72;
}
.customer-option svg {
  position: absolute;
  right: 12px;
  top: 13px;
  color: var(--primary);
}
.customer-summary {
  background: #f5f3ed;
  padding: 18px;
  border-radius: 10px;
  margin: 18px 0;
}
.customer-summary p {
  margin: 8px 0;
}
.product-options {
  max-height: 250px;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 25px;
}
.product-options button {
  text-align: left;
  justify-content: flex-start;
  padding: 12px;
  font-size: 12px;
}
.product-options button > span:nth-child(2) {
  flex: 1;
}
.product-options small {
  font-size: 10px;
}
.cart-line {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.cart-line > div:first-child {
  flex: 1;
}
.cart-line > strong {
  font-size: 13px;
}
.stepper {
  display: flex;
  align-items: center;
}
.stepper input {
  width: 52px;
  padding: 8px 3px;
  text-align: center;
  border-radius: 0;
  height: 44px;
}
.stepper button {
  padding: 5px;
  width: 44px;
  border-radius: 8px 0 0 8px;
}
.stepper button:last-child {
  border-radius: 0 8px 8px 0;
}
.spaced {
  margin-top: 22px;
}
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8f6f1;
  border-radius: 8px;
  padding: 14px;
  margin: 20px 0;
}
.stock-grid > div {
  text-align: center;
  border-right: 1px solid var(--border);
}
.stock-grid > div:last-child {
  border: 0;
}
.stock-grid b {
  font-size: 22px;
}
.responsive-table .table-head,
.responsive-table .table-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid #eee9e1;
  font-size: 12px;
}
.table-head {
  color: var(--muted);
}
.table-row small {
  font-size: 10px;
}
.bar-chart {
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 0;
}
.bar-column {
  flex: 1;
  min-width: 64px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
.bar-column small {
  font-size: 10px;
  white-space: nowrap;
}
.bar {
  background: #b1745a;
  width: 60%;
  max-width: 65px;
  border-radius: 5px 5px 0 0;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty svg {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}
.empty h3 {
  font-size: 15px;
}
.empty p {
  font-size: 12px;
}
.loading {
  margin: 15vh auto;
  padding: 35px;
  max-width: 400px;
  background: white;
  border-radius: 12px;
  text-align: center;
}
.narrow {
  max-width: 640px;
}
.demo-notice {
  padding: 20px;
  background: #f6eddc;
  border-radius: 10px;
  margin-bottom: 22px;
}
.demo-notice p {
  margin: 8px 0 0;
}
.link-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  max-width: 650px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  color: var(--text);
  box-shadow: 0 20px 80px #20150833;
}
dialog::backdrop {
  background: #27251f66;
  backdrop-filter: blur(2px);
}
dialog .row h2 {
  margin: 0;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 20px 0;
  padding: 16px;
}
legend {
  font-weight: 600;
  font-size: 12px;
}
footer {
  padding: 28px 40px;
  color: #a19b91;
  font-size: 10px;
  text-align: center;
}
.bottom-nav {
  display: none;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background: #284c37;
  color: white;
  border-radius: 12px;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 14px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
#toast.error {
  background: var(--primary);
}
.error-text {
  color: var(--red);
}
@media (min-width: 1500px) {
  main {
    padding-top: 42px;
  }
  .summary strong {
    font-size: 28px;
  }
}
@media (max-width: 1150px) {
  aside {
    width: 215px;
    padding: 26px 14px;
  }
  .workspace {
    margin-left: 215px;
  }
  main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .summary strong {
    font-size: 22px;
  }
  .order-grid {
    gap: 12px;
  }
  .order-card {
    padding: 17px;
  }
  .order-card .row {
    flex-wrap: wrap;
  }
  .order-card .row h3 {
    margin: 7px 0;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .welcome-art {
    width: 170px;
  }
  .responsive-table .table-row {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 14px;
  }
  aside {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .desktop-only {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 700;
  }
  .mobile-brand .brand-logo {
    width: 40px;
    height: 40px;
  }
  .welcome-logo {
    width: 100px;
    height: 100px;
  }
  .demo-badge {
    font-size: 8px;
    padding: 5px 8px;
  }
  main {
    padding: 24px 18px 10px;
  }
  h1 {
    font-size: 26px;
  }
  .page-heading {
    margin-bottom: 20px;
    align-items: flex-start;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading > .button {
    display: none;
  }
  .eyebrow {
    font-size: 8px;
  }
  .page-heading > label {
    margin: 0;
    min-width: 135px;
  }
  .welcome {
    padding: 23px 21px;
    min-height: 194px;
    margin-bottom: 20px;
  }
  .welcome h2 {
    font-size: 28px;
  }
  .welcome p {
    font-size: 10px;
    max-width: 205px;
  }
  .welcome span {
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  .welcome-art {
    position: absolute;
    right: -24px;
    top: 36px;
    width: 120px;
    opacity: 0.85;
  }
  .summary-grid,
  .three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 24px;
  }
  .three .summary:last-child {
    grid-column: 1/-1;
  }
  .summary {
    padding: 16px 13px;
    border-radius: 12px;
  }
  .summary > span {
    font-size: 11px;
  }
  .summary strong {
    font-size: 20px;
    letter-spacing: -0.7px;
    margin: 8px 0;
  }
  .summary small {
    font-size: 9px;
  }
  .attention-grid {
    gap: 8px;
    margin-bottom: 23px;
  }
  .attention {
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    font-size: 10px;
    border-radius: 10px;
  }
  .attention strong {
    margin: 0;
    font-size: 23px;
  }
  .attention svg {
    display: none;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .section-title > span {
    font-size: 10px;
  }
  .order-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .order-card {
    padding: 17px;
  }
  .order-card .row {
    flex-wrap: nowrap;
  }
  .order-card .row strong {
    font-size: 15px;
  }
  .order-card .row h3 {
    font-size: 15px;
    margin: 12px 0 8px;
  }
  .chip {
    font-size: 9px;
    padding: 5px 7px;
  }
  .chips {
    gap: 5px;
  }
  .order-card .row small {
    font-size: 10px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
  .toolbar > button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .tabs {
    gap: 4px;
    margin-bottom: 12px;
  }
  .tabs button {
    font-size: 12px;
    padding: 9px 12px;
  }
  .panel {
    padding: 18px;
    border-radius: 12px;
  }
  .panel h2 {
    font-size: 17px;
  }
  .detail-grid {
    gap: 0;
  }
  .detail-grid > section {
    margin-top: 18px;
  }
  .line-item {
    flex-wrap: wrap;
  }
  .line-item > strong {
    margin-left: 58px;
  }
  .line-item small {
    font-size: 11px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: #fffcf9ed;
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(7px + env(safe-area-inset-bottom));
    justify-content: space-around;
    box-shadow: 0 -3px 15px #37200d05;
  }
  .bottom-nav a {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    padding: 5px 2px;
    margin: 0;
    min-width: 0;
    font-size: 9px;
    background: none;
  }
  .bottom-nav a svg {
    width: 21px;
    height: 21px;
  }
  .bottom-nav a.active {
    color: var(--primary);
  }
  .bottom-nav .create-nav svg {
    background: var(--primary);
    color: white;
    border-radius: 13px;
    width: 39px;
    height: 35px;
    padding: 7px;
    margin-top: -8px;
  }
  .bottom-nav .create-nav {
    color: var(--primary);
  }
  footer {
    padding: 25px 15px 98px;
    font-size: 9px;
  }
  .wizard-steps {
    gap: 8px;
    margin-bottom: 22px;
  }
  .wizard-steps > span {
    font-size: 11px;
    gap: 6px;
  }
  .wizard-steps b {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .customer-options {
    grid-template-columns: 1fr;
    max-height: 210px;
  }
  .product-options {
    grid-template-columns: 1fr;
    max-height: 260px;
  }
  .product-options button {
    min-height: 66px;
  }
  .cart-line {
    flex-wrap: wrap;
    gap: 10px;
  }
  .cart-line > div:first-child {
    flex-basis: 100%;
  }
  .cart-line > strong {
    margin-left: auto;
  }
  .cart-line > button {
    width: 44px;
    padding: 8px;
  }
  .wizard-actions {
    gap: 8px;
  }
  .wizard-actions button {
    padding: 10px 13px;
  }
  .table-head {
    display: none !important;
  }
  .responsive-table .table-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 0;
    gap: 9px;
  }
  .table-row > strong {
    font-size: 15px;
  }
  .table-row > span {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
  }
  .table-row > span:before {
    content: attr(data-label);
    color: var(--muted);
  }
  .section-title {
    flex-wrap: wrap;
  }
  .bar-chart {
    gap: 8px;
  }
  .bar-column {
    min-width: 60px;
  }
  .bar-column small {
    font-size: 8px;
  }
  dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    border-radius: 18px 18px 0 0;
    max-height: 90dvh;
    padding: 22px 19px calc(22px + env(safe-area-inset-bottom));
  }
  #toast {
    bottom: 90px;
    font-size: 13px;
  }
  .page-heading > label input {
    padding: 9px;
    min-width: 0;
  }
  .stock-grid small {
    font-size: 10px;
  }
  .stock-grid b {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 760px) {
  .welcome-art {
    display: none;
    right: -30px;
    top: 20px;
    opacity: 0.35;
  }
  .welcome h2 {
    position: relative;
    z-index: 2;
    max-width: 265px;
    font-size: 26px;
  }
  .welcome p {
    position: relative;
    z-index: 2;
  }
}
