:root {
  --ink: #24140d;
  --brown: #3a1c10;
  --orange: #f17418;
  --cream: #fff9ef;
  --line: #eadfce;
  --muted: #79675a;
  --success: #1f8f4d;
  --danger: #b3432e;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

body.admin-page {
  min-height: 100dvh;
}

body.has-order-modal {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  gap: 14px;
}

.nav-actions a,
.quiet-link {
  color: inherit;
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 24px 20px 48px;
}

.admin-page main {
  max-width: none;
  min-height: 100dvh;
  padding: 0;
}

.order-shell {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.hero-band,
.panel-section,
.checkout-panel,
.auth-card,
.result-page > div,
.metric-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-band {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 24px;
}

.hero-band h1,
.auth-card h1,
.admin-header h1,
.result-page h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 8px;
}

.hero-band p,
.product-card p,
.muted,
.secure-note {
  color: var(--muted);
}

.eyebrow {
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.category-tabs a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  flex: 0 0 auto;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
}

.menu-section {
  margin-bottom: 30px;
}

.menu-section h2,
.panel-section h2,
.checkout-panel h2 {
  font-size: 1.2rem;
  margin: 0 0 14px;
}

.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 4 / 3;
  background: #f8eddd;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.product-card p {
  font-size: .9rem;
  margin: 0;
}

.option-group {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.option-group legend {
  color: var(--muted);
  float: none;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 2px;
  width: 100%;
}

.option-group label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
}

.button,
.button-small,
.table-action {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 12px 16px;
  text-decoration: none;
}

.button.is-loading,
.button-small.is-loading,
.table-action.is-loading {
  cursor: wait;
  gap: 8px;
  opacity: .86;
}

.button.is-loading::after,
.button-small.is-loading::after,
.table-action.is-loading::after {
  animation: spin 700ms linear infinite;
  border: 2px solid currentcolor;
  border-right-color: transparent;
  border-radius: 999px;
  content: "";
  height: 14px;
  width: 14px;
}

button:disabled {
  cursor: not-allowed;
}

.button-small {
  padding: 9px 12px;
}

.checkout-panel {
  padding: 18px;
  position: sticky;
  top: 76px;
}

.cart-lines {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.cart-line {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.cart-line div {
  display: grid;
}

.cart-line span,
.cart-line small {
  color: var(--muted);
  font-size: .84rem;
}

.cart-line button,
.link-button {
  background: transparent;
  border: 0;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
}

.totals {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.total-row {
  color: var(--orange);
  font-size: 1.15rem;
  font-weight: 800;
}

.checkout-form,
.auth-card,
.admin-form {
  display: grid;
  gap: 9px;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  width: 100%;
}

span.field-validation-error,
.validation-summary-errors,
.alert-panel {
  color: var(--danger);
}

.auth-page,
.result-page {
  display: grid;
  min-height: 68vh;
  place-items: center;
}

.auth-card,
.result-page > div {
  max-width: 440px;
  padding: 26px;
  width: 100%;
}

.public-order-page {
  background: #f8f0e1;
  overflow-x: hidden;
  overflow-y: auto;
}

.public-order-page.has-order-modal {
  overflow: hidden;
}

.public-order-page main {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: none;
  padding: 0;
  width: 100%;
}

.order-shell {
  align-items: stretch;
  background: #fffaf0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  flex: 1;
  min-height: 0;
  overflow: visible;
  padding-bottom: 58px;
  width: 100%;
}

.order-social-bar {
  align-items: center;
  background: #281405;
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto 1fr;
  min-height: 58px;
  padding: 10px 28px;
  bottom: 0;
  left: 0;
  position: fixed;
  width: 100%;
  z-index: 20;
}

.order-social-bar::after {
  content: "";
}

.order-social-links {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-self: start;
}

.order-social-links a {
  align-items: center;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.order-social-links img {
  display: block;
  height: 24px;
  object-fit: contain;
  width: 24px;
}

.order-social-credit {
  color: #fff;
  font-size: .82rem;
  grid-column: 2;
  text-decoration: none;
  white-space: nowrap;
}

.order-social-credit span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-social-links a:hover,
.order-social-links a:focus-visible,
.order-social-credit:hover,
.order-social-credit:focus-visible {
  color: #fff;
  opacity: .82;
}

.order-fixed-header {
  min-width: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.order-brand-bar {
  align-items: center;
  background: #281405;
  display: flex;
  justify-content: space-between;
  min-height: 94px;
  padding: 18px 34px;
  width: 100%;
}

.order-brand-bar img {
  display: block;
  height: auto;
  max-width: 138px;
  width: 36%;
}

.order-logo-link {
  display: block;
  max-width: 97px;
  width: 25%;
}

.order-logo-link img {
  max-width: none;
  width: 100%;
}

.order-header-cart {
  align-items: center;
  background: #fff7ec;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 999px;
  color: var(--brown);
  cursor: pointer;
  display: inline-flex;
  font-size: .84rem;
  gap: 6px;
  font-weight: 800;
  min-height: 34px;
  padding: 6px 10px;
}

.order-header-cart img {
  filter: brightness(0) saturate(100%) invert(16%) sepia(21%) saturate(1701%) hue-rotate(341deg) brightness(91%) contrast(91%);
  height: 18px;
  max-width: none;
  object-fit: contain;
  width: 18px;
}

.order-header-cart:disabled {
  cursor: default;
}

.order-header-cart.has-items {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.order-header-cart.has-items img {
  filter: brightness(0) invert(1);
}

.empty-menu-panel {
  background: #fff;
  padding: 30px;
}

.empty-menu-panel h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.empty-menu-panel p {
  color: var(--muted);
  margin: 0;
}

.category-tabs {
  background: #fffaf0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 22px;
  margin: 0;
  overflow-x: auto;
  padding: 16px 28px 0;
  scrollbar-width: thin;
  white-space: nowrap;
  width: 100%;
}

.category-tabs a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--brown);
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  font-weight: 800;
  padding: 0 0 14px;
  position: relative;
  text-decoration: none;
}

.category-tabs a.is-active::after,
.category-tabs a:hover::after,
.category-tabs a:focus-visible::after {
  background: var(--orange);
  bottom: -1px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.category-tabs a.is-active {
  color: var(--orange);
}

.category-tabs a span {
  border: 1px solid currentcolor;
  border-radius: 999px;
  height: 18px;
  position: relative;
  width: 18px;
}

.category-tabs a span::after {
  background: currentcolor;
  border-radius: 999px;
  content: "";
  height: 6px;
  left: 5px;
  position: absolute;
  top: 5px;
  width: 6px;
}

.order-workspace {
  display: block;
  min-height: 0;
  overflow: visible;
  padding: 24px 28px 30px;
}

.order-menu-column {
  margin: 0 auto;
  max-width: 1120px;
  min-width: 0;
  width: 100%;
}

.menu-section {
  margin-bottom: 28px;
}

.menu-section h1 {
  font-size: 1.18rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.product-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgb(36 20 13 / 7%);
  display: grid;
  min-width: 0;
  overflow: hidden;
}

.product-card.is-selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgb(241 116 24 / 18%), 0 12px 22px rgb(36 20 13 / 12%);
}

.product-card-select {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.product-card-select img {
  aspect-ratio: 4 / 3;
  background: #f8eddd;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.product-card h2 {
  font-size: .92rem;
  line-height: 1.2;
  margin: 0 0 5px;
}

.product-card p {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  margin: 0;
}

.product-preparation-time {
  align-items: center;
  display: flex;
  gap: 5px;
}

.preparation-clock {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 12px;
  position: relative;
  width: 12px;
}

.preparation-clock::before {
  background: currentColor;
  content: "";
  height: 4px;
  left: 5px;
  position: absolute;
  top: 2px;
  width: 1.5px;
}

.preparation-clock::after {
  background: currentColor;
  content: "";
  height: 1.5px;
  left: 5px;
  position: absolute;
  top: 5px;
  width: 3px;
}

.product-card-body strong {
  font-size: .96rem;
}

.order-side-column {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.order-modal-backdrop {
  background: rgb(36 20 13 / 54%);
  display: grid;
  inset: 0;
  padding: 18px;
  place-items: center;
  position: fixed;
  z-index: 70;
}

.order-modal-backdrop[hidden] {
  display: none;
}

.order-modal-backdrop-top {
  z-index: 80;
}

.order-modal-backdrop-over {
  z-index: 120;
}

.order-modal-backdrop[data-order-status-confirmation-modal] {
  z-index: 100;
}

.order-modal-backdrop[data-checkout-modal] {
  z-index: 105;
}

.order-modal-backdrop[data-order-edit-menu-modal] {
  z-index: 110;
}

.order-modal-backdrop[data-remove-cart-modal],
.order-modal-backdrop[data-existing-order-unsaved-modal],
.order-modal-backdrop[data-delete-admin-draft-modal],
.order-modal-backdrop[data-order-success-modal] {
  z-index: 115;
}

.order-modal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 56px rgb(36 20 13 / 26%);
  display: grid;
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  width: min(440px, 100%);
}

.order-modal-body {
  min-height: 0;
  overflow-y: auto;
}

.selected-product-panel,
.checkout-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgb(36 20 13 / 8%);
}

.selected-product-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  position: relative;
}

.order-modal-backdrop[data-selected-product-modal] > .selected-product-panel {
  position: relative;
}

.order-modal-backdrop[data-selected-product-modal] > .selected-product-panel > .selected-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
}

.selected-modal-close {
  align-items: center;
  background: #fff7ef;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  z-index: 2;
}

.close-fill-icon {
  background: var(--orange);
  display: block;
  height: 20px;
  mask: url("/images/icons/close.fill.png") center / contain no-repeat;
  width: 20px;
  -webkit-mask: url("/images/icons/close.fill.png") center / contain no-repeat;
}

.selected-product-panel .order-modal-body > img {
  aspect-ratio: 4 / 3;
  background: #f8eddd;
  display: block;
  object-fit: cover;
  width: 100%;
}

.selected-product-copy {
  display: grid;
  gap: 6px;
  padding: 16px 16px 0;
}

.selected-product-copy h2 {
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0;
}

.selected-product-copy p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
  margin: 0;
}

.selected-product-copy strong {
  color: var(--orange);
  font-size: 1.15rem;
}

.selected-options {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.selected-observation-field {
  display: grid;
  gap: 6px;
  padding: 0 16px 16px;
}

.selected-observation-field label {
  font-size: .84rem;
}

.selected-observation-field textarea {
  min-height: 72px;
  resize: vertical;
}

.order-option-group {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.order-option-group legend {
  color: var(--ink);
  float: none;
  font-size: .84rem;
  font-weight: 800;
  margin: 0;
  padding: 0;
}

.choice-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-pill {
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 6px;
  position: relative;
  text-align: center;
}

.choice-pill input {
  opacity: 0;
  position: absolute;
}

.choice-pill span {
  font-size: .78rem;
  font-weight: 800;
}

.choice-pill small {
  color: var(--muted);
  font-size: .68rem;
}

.choice-pill:has(input:checked) {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.choice-list {
  display: grid;
  gap: 8px;
}

.choice-list .addon-name {
  font-size: .9rem;
  font-weight: 400;
}

.choice-list .addon-name strong {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.choice-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.choice-row span {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.choice-row input {
  accent-color: var(--orange);
  width: auto;
}

.addon-quantity-row {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.addon-stepper {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
}

.addon-stepper button {
  align-items: center;
  background: #fff7ec;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.addon-stepper input {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  border-right: 1px solid var(--line);
  height: 30px;
  padding: 0;
  text-align: center;
  width: 38px;
}

.minus-icon {
  background: var(--orange);
  display: block;
  height: 16px;
  mask: url("/images/icons/minus.png") center / contain no-repeat;
  width: 16px;
  -webkit-mask: url("/images/icons/minus.png") center / contain no-repeat;
}

.choice-row strong {
  flex: 0 0 auto;
  font-size: .82rem;
}

.order-option-empty {
  font-size: .9rem;
  margin: 0;
}

.selected-product-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0 16px 16px;
}

.quantity-stepper {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  overflow: hidden;
}

.quantity-stepper button {
  background: #fff7ec;
  border: 0;
  color: var(--orange);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 800;
  height: 44px;
  width: 38px;
}

.quantity-stepper output {
  align-items: center;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-width: 34px;
}

.selected-product-actions .button {
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.order-modal-footer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.button-secondary {
  align-items: center;
  background: #fff7ec;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brown);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.button-danger {
  align-items: center;
  background: var(--danger);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
}

.order-checkout-shortcut {
  gap: 10px;
  justify-content: space-between;
  width: 100%;
}

.order-checkout-shortcut img {
  filter: brightness(0) invert(1);
  height: 20px;
  object-fit: contain;
  width: 20px;
}

.order-checkout-shortcut strong {
  flex: 0 0 auto;
}

.checkout-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0;
  position: static;
  top: auto;
  width: min(520px, 100%);
}

.checkout-panel .checkout-form {
  display: contents;
}

.checkout-panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0;
  padding: 16px;
}

.checkout-panel-header h2 {
  font-size: 1rem;
  margin: 0 0 2px;
}

.checkout-panel-header span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.checkout-summary-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.checkout-preparation-time {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.checkout-panel-header .checkout-preparation-time {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.checkout-panel-header .checkout-preparation-note {
  font-size: .74rem;
  font-weight: 400;
}

.admin-checkout-panel {
  position: relative;
}

.order-modal-backdrop[data-checkout-modal] > .admin-checkout-panel {
  position: relative;
}

.admin-checkout-panel .checkout-panel-header {
  padding-right: 58px;
}

.order-modal-backdrop[data-checkout-modal] > .admin-checkout-panel > .admin-checkout-close-button {
  position: absolute;
  right: 14px;
  top: 14px;
}

.checkout-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.cart-lines {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.cart-line {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
}

.cart-line div:first-child {
  display: grid;
  min-width: 0;
}

.cart-line span,
.cart-line small {
  color: var(--muted);
  font-size: .8rem;
}

.cart-line-observation {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.cart-line-side {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  justify-items: end;
}

.cart-line-side strong {
  font-size: .86rem;
}

.cart-line button,
.link-button {
  background: transparent;
  border: 0;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
}

.cart-line-actions {
  display: inline-flex;
  gap: 6px;
}

.cart-icon-button {
  align-items: center;
  background: var(--orange) !important;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0 !important;
  width: 32px;
}

.cart-icon-button.is-danger {
  background: var(--danger) !important;
}

.cart-icon-button img {
  filter: brightness(0) invert(1);
  height: 17px;
  object-fit: contain;
  width: 17px;
}

.totals {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.total-row {
  color: var(--orange);
  font-size: 1.08rem;
  font-weight: 800;
}

.checkout-fields {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  margin-top: 4px;
  padding-top: 14px;
}

.checkout-step {
  border-bottom: 1px solid var(--line);
  display: grid;
  padding: 10px 0;
}

.checkout-step-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-weight: 800;
  gap: 8px;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  padding: 0;
  text-align: left;
  width: 100%;
}

.checkout-step-toggle small {
  color: var(--orange);
  font-size: .76rem;
  font-weight: 700;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-step-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(0);
}

.checkout-step-content {
  display: grid;
  gap: 8px;
  max-height: 700px;
  opacity: 1;
  overflow: hidden;
  padding-top: 10px;
  transition: max-height 240ms ease, opacity 180ms ease, padding-top 240ms ease;
}

.checkout-step.is-collapsed .checkout-step-content {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  pointer-events: none;
}

.checkout-step-legend {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.checkout-customer-fields {
  display: grid;
  gap: 8px;
}

.customer-balance-fields {
  display: grid;
  gap: 10px;
}

.customer-balance-input-wrap {
  position: relative;
}

.customer-balance-input-wrap input {
  padding-right: 44px;
}

.customer-balance-clear {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
}

.customer-balance-clear[hidden] {
  display: none;
}

.customer-balance-clear img {
  filter: brightness(0) saturate(100%) invert(49%) sepia(96%) saturate(1661%) hue-rotate(351deg) brightness(99%) contrast(91%);
  height: 18px;
  width: 18px;
}

.customer-balance-toggle-group {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-balance-toggle {
  align-items: center;
  background: #fff7ec;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 44px;
  padding: 8px 10px;
}

.customer-balance-toggle .settings-switch-track {
  flex: 0 0 auto;
}

.customer-balance-toggle-label {
  color: var(--brown);
  font-weight: 800;
}

.customer-balance-toggle input:checked + .settings-switch-track + .customer-balance-toggle-label {
  color: var(--orange);
}

.customer-balance-toggle input:focus-visible + .settings-switch-track {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.checkout-partial-payment {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 10px 0;
}

.checkout-partial-payment[hidden] {
  display: none;
}

.partial-payment-toggle-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.partial-payment-toggle {
  align-items: center;
  background: #fff7ec;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  margin: 0;
  min-height: 44px;
  padding: 8px 10px;
  width: 100%;
}

.partial-payment-toggle > span:last-child {
  color: var(--brown);
  font-weight: 800;
}

.partial-payment-edit-button {
  min-height: 44px;
  padding-inline: 14px;
}

.partial-payment-summary,
.partial-payment-result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.partial-payment-summary[hidden],
.partial-payment-result[hidden] {
  display: none;
}

.partial-payment-summary > div:first-child {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.partial-payment-summary > div:first-child span {
  color: var(--orange);
  font-size: .82rem;
  font-weight: 800;
}

.partial-payment-summary ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.partial-payment-summary li,
.partial-payment-summary dl div {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.partial-payment-summary li span,
.partial-payment-summary dt {
  color: var(--muted);
}

.partial-payment-summary dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  margin: 0;
  padding-top: 8px;
}

.partial-payment-summary dd {
  color: var(--orange);
  font-weight: 900;
  margin: 0;
}

.partial-payment-result {
  color: var(--orange);
  font-weight: 900;
}

.partial-payment-panel,
.partial-payment-disable-panel {
  max-height: min(720px, calc(100vh - 28px));
  position: relative;
}

.partial-payment-panel {
  max-width: 620px;
}

.partial-payment-panel > .selected-modal-close,
.partial-payment-disable-panel > .selected-modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
}

.partial-payment-disable-panel .confirm-panel-body h2 {
  padding-right: 42px;
}

.partial-payment-body {
  display: grid;
  gap: 12px;
  padding-top: 22px;
}

.partial-payment-body h2 {
  margin: 0;
  padding-right: 42px;
}

.partial-payment-items {
  display: grid;
  gap: 8px;
}

.partial-payment-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 48px;
  padding: 12px 14px;
}

.partial-payment-item.is-paid {
  background: #f7f2ed;
  color: var(--muted);
  cursor: default;
}

.partial-payment-item input {
  accent-color: var(--orange);
  height: 18px;
  width: 18px;
}

.partial-payment-item span {
  display: grid;
  min-width: 0;
}

.partial-payment-item small {
  color: var(--muted);
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.partial-payment-note {
  width: 100%;
}

.cart-line-partial-badge {
  background: #f7f2ed;
  border-radius: 999px;
  color: var(--brown) !important;
  display: inline-flex;
  font-weight: 800;
  margin-top: 4px;
  padding: 3px 7px;
  width: fit-content;
}

.cart-line-partial-badge.is-selected {
  background: #fff1df;
  color: var(--orange) !important;
}

.fulfillment-options {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
}

.fulfillment-options legend {
  float: none;
  font-size: .86rem;
  font-weight: 800;
  margin: 0 0 2px;
  padding: 0;
}

.fulfillment-options p {
  color: var(--muted);
  font-size: .78rem;
  margin: -2px 0 2px;
}

.fulfillment-options > div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fulfillment-options label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 6px;
  justify-content: center;
  min-height: 38px;
  padding: 7px;
  text-align: center;
}

.fulfillment-options input {
  accent-color: var(--orange);
  flex: 0 0 auto;
  width: auto;
}

.fulfillment-options span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fulfillment-options label:has(input:checked) {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
  color: var(--orange);
}

.delivery-address-field,
.table-number-field,
.pix-receipt-field {
  display: grid;
  gap: 8px;
}

.delivery-address-field[hidden],
.table-number-field[hidden],
.pix-receipt-field[hidden] {
  display: none;
}

.pix-key-copy-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 10px 10px 12px;
}

.pix-key-copy-row span {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.copy-icon-button {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.copy-icon-button img {
  filter: brightness(0) invert(1);
  height: 18px;
  width: 18px;
}

.checkout-fields label {
  font-size: .86rem;
}

.checkout-form .button {
  gap: 10px;
  justify-content: space-between;
  margin-top: 4px;
  width: 100%;
}

.checkout-form .button-secondary {
  width: 100%;
}

.checkout-modal-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 12px 16px 14px;
  position: relative;
  z-index: 2;
}

.checkout-modal-footer .secure-note {
  font-size: .78rem;
  margin: 0;
  text-align: center;
}

.secure-note button {
  background: transparent;
  border: 0;
  color: var(--orange);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-panel {
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(520px, 100%);
}

.privacy-modal-body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.privacy-modal-body h2,
.privacy-modal-body h3,
.privacy-modal-body p {
  margin: 0;
}

.privacy-modal-body h2 {
  font-size: 1.2rem;
}

.privacy-modal-body h3 {
  font-size: .9rem;
  margin-top: 6px;
}

.privacy-modal-body p {
  color: var(--muted);
  line-height: 1.5;
}

.privacy-panel .order-modal-footer .button {
  width: 100%;
}

.order-success-panel {
  width: min(420px, 100%);
}

.confirm-panel {
  width: min(380px, 100%);
}

.existing-order-unsaved-panel {
  position: relative;
}

.cash-register-closed-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 56px rgb(36 20 13 / 26%);
  width: min(420px, calc(100vw - 32px));
}

.cash-register-closed-panel > div {
  display: grid;
  gap: 12px;
  padding: 26px 22px;
  text-align: center;
}

.cash-register-closed-panel h2 {
  color: var(--brown);
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0;
}

.cash-register-closed-panel p {
  color: var(--muted);
  margin: 0;
}

.cash-register-closed-panel .button {
  justify-self: center;
  min-width: 160px;
}

.confirm-panel-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.confirm-panel-body h2 {
  font-size: 1.15rem;
  margin: 0;
}

.existing-order-unsaved-panel .confirm-panel-body h2 {
  padding-right: 40px;
}

.confirm-panel-body p {
  color: var(--muted);
  margin: 0;
}

.confirm-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.confirm-actions-three {
  grid-template-columns: 1fr;
}

.confirm-actions .button-secondary,
.confirm-actions .button-danger,
.confirm-actions .button {
  width: 100%;
}

@media (min-width: 560px) {
  .existing-order-unsaved-panel {
    width: min(520px, 100%);
  }

  .confirm-actions-three {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.order-success-body {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 28px 22px;
  text-align: center;
}

.order-success-icon {
  align-items: center;
  background: var(--success);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 1.7rem;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.order-success-body h2 {
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0;
}

.order-success-body p {
  color: var(--muted);
  margin: 0;
}

.order-success-body strong {
  color: var(--orange);
  font-size: 1.1rem;
}

.order-success-code-row {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

.order-success-code-row[hidden] {
  display: none;
}

.copy-order-code-button {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.copy-order-code-button img {
  filter: brightness(0) invert(1);
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.order-success-body .button {
  width: 100%;
}

.selected-product-actions .button:disabled,
.checkout-form .button:disabled,
.order-checkout-shortcut:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.selected-options input:disabled,
.selected-options button:disabled,
.selected-observation-field textarea:disabled,
.quantity-stepper button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.admin-layout {
  display: grid;
  gap: 0;
  grid-template-columns: var(--admin-sidebar-width, 220px) minmax(0, 1fr);
  min-height: 100dvh;
}

.admin-sidebar {
  background: var(--brown);
  border-radius: 0;
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-areas:
    "logo"
    "nav"
    "logout";
  grid-template-rows: auto 1fr auto;
  height: 100dvh;
  min-height: 100dvh;
  padding: 20px;
  position: sticky;
  top: 0;
}

.sidebar-toggle {
  align-items: center;
  background: var(--brown);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.sidebar-toggle span,
.sidebar-toggle::before,
.sidebar-toggle::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  width: 16px;
}

.sidebar-toggle {
  gap: 3px;
  flex-direction: column;
}

.admin-sidebar-logo {
  display: block;
  grid-area: logo;
  height: auto;
  justify-self: center;
  max-width: 126px;
  width: 100%;
}

.admin-sidebar nav {
  align-content: start;
  display: grid;
  gap: 8px;
  grid-area: nav;
}

.admin-sidebar form {
  align-self: end;
  grid-area: logout;
  margin: 0;
}

.admin-nav-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
  text-decoration: none;
  width: 100%;
}

.admin-nav-link.is-active {
  background: var(--orange);
}

.admin-nav-link img {
  flex: 0 0 auto;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.admin-nav-link span {
  color: inherit;
  font-weight: 800;
}

.admin-sidebar .link-button {
  color: #fff;
  text-align: left;
}

.admin-content {
  display: grid;
  gap: 18px;
  grid-auto-rows: max-content;
  min-width: 0;
  overflow-x: hidden;
  padding: 24px;
}

.settings-page {
  display: grid;
  gap: 18px;
}

.settings-page > h1 {
  font-size: 1.45rem;
  margin: 0;
}

.settings-section {
  display: grid;
  gap: 14px;
}

.settings-section h2 {
  margin: 0;
}

.settings-section > .section-title-row {
  justify-content: flex-start;
}

.settings-general-time-form {
  align-items: end;
  display: flex;
  gap: 10px;
}

.settings-general-time-form label {
  display: grid;
  font-size: .8rem;
  gap: 5px;
  max-width: 220px;
  width: 100%;
}

.settings-general-time-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.settings-general-time-actions .button {
  min-height: 36px;
}

.settings-print-config-button {
  justify-self: start;
}

.settings-auto-cut-form {
  align-items: center;
  display: flex;
  gap: 12px;
}

.settings-menu-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.settings-order-status-behavior-form {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.settings-order-status-behavior-form .settings-switch {
  align-items: center;
  display: flex;
  flex: 1 1 240px;
}

.settings-whatsapp-form {
  display: grid;
  gap: 14px;
}

.settings-whatsapp-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.settings-whatsapp-field {
  display: grid;
  font-size: .8rem;
  font-weight: 800;
  gap: 6px;
  min-width: 0;
}

.settings-whatsapp-category-field {
  display: grid;
  font-size: .8rem;
  font-weight: 800;
  gap: 6px;
  max-width: 520px;
}

.settings-whatsapp-label {
  display: block;
  min-width: 0;
}

.settings-whatsapp-field textarea {
  min-height: 72px;
  padding-right: 70px;
  resize: vertical;
  width: 100%;
}

.settings-whatsapp-input-wrap {
  display: grid;
  position: relative;
}

.settings-whatsapp-format-toolbar {
  display: inline-flex;
  gap: 4px;
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
}

.settings-whatsapp-format-toolbar button {
  align-items: center;
  background: #fff6ec;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  padding: 0;
  width: 26px;
}

.settings-whatsapp-format-toolbar button:hover,
.settings-whatsapp-format-toolbar button:focus-visible {
  border-color: var(--orange);
  outline: none;
}

.settings-whatsapp-token-preview {
  display: none;
}

.settings-whatsapp-token-wrap.is-token-preview-ready .settings-whatsapp-token-preview {
  border: 1px solid transparent;
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--ink);
  display: block;
  font: inherit;
  font-weight: inherit;
  inset: 0;
  line-height: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 10px 70px 10px 11px;
  pointer-events: none;
  position: absolute;
  white-space: pre-wrap;
  z-index: 1;
}

.settings-whatsapp-token-wrap.is-token-preview-ready textarea {
  background: transparent;
  caret-color: var(--ink);
  color: transparent;
  position: relative;
  z-index: 2;
}

.settings-whatsapp-token-wrap.is-token-preview-ready textarea::selection {
  background: rgb(232 119 34 / 24%);
  color: transparent;
}

.settings-whatsapp-inline-token {
  align-items: center;
  background: #fff6ec;
  border: 1px solid #f0dfce;
  border-radius: 6px;
  color: var(--brown);
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  min-height: 1.45em;
  padding: 1px 6px;
  pointer-events: none;
  user-select: none;
  vertical-align: baseline;
}

.settings-whatsapp-actions {
  display: flex;
  justify-content: flex-end;
}

.settings-switch {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
}

.settings-switch input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.settings-switch-track {
  background: #777;
  border-radius: 14px;
  display: inline-flex;
  height: 24px;
  padding: 3px;
  transition: background-color .2s ease;
  width: 44px;
}

.settings-switch-track span {
  background: #fff;
  border-radius: 50%;
  height: 18px;
  transition: transform .2s ease;
  width: 18px;
}

.settings-switch input:checked + .settings-switch-track {
  background: var(--orange);
}

.settings-switch input:checked + .settings-switch-track span {
  transform: translateX(20px);
}

.settings-switch input:focus-visible + .settings-switch-track {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.settings-create-form,
.settings-edit-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-create-form {
  background: #fff9ef;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.settings-create-form label,
.settings-edit-form label {
  display: grid;
  flex: 1 1 150px;
  font-size: .8rem;
  gap: 5px;
}

.settings-option-form label {
  flex-basis: 130px;
}

.settings-edit-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 42px;
}

.status-color-field {
  border: 0;
  display: grid;
  flex: 1 1 150px;
  font-size: .8rem;
  gap: 5px;
  margin: 0;
  min-inline-size: 0;
  min-width: 0;
  padding: 0;
}

.status-color-field legend {
  font-weight: 700;
  padding: 0;
}

.status-color-field-modal {
  width: 100%;
}

.status-color-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
}

.status-color-dropdown {
  display: inline-flex;
  min-height: 42px;
  position: relative;
  width: 74px;
}

.status-color-dropdown-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid #e7d5c4;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  height: 42px;
  justify-content: center;
  padding: 5px 9px 5px 7px;
  width: 74px;
}

.status-color-dropdown-toggle:hover,
.status-color-dropdown-toggle:focus-visible,
.status-color-dropdown.is-open .status-color-dropdown-toggle {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgb(240 138 36 / 15%);
  outline: 0;
}

.status-color-dropdown-chevron {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--brown);
  display: inline-flex;
  height: 0;
  width: 0;
}

.status-color-dropdown-menu {
  background: #fff;
  border: 1px solid #ead8c8;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgb(49 31 18 / 16%);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 28px);
  left: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 6px);
  width: max-content;
  z-index: 35;
}

.status-color-dropdown-menu[hidden] {
  display: none;
}

.status-color-dropdown-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.status-color-dropdown-option:hover .status-color-dot {
  transform: translateY(-1px);
}

.status-color-dropdown-option[aria-selected="true"] .status-color-dot {
  box-shadow: 0 0 0 2px var(--orange), inset 0 0 0 1px rgb(255 255 255 / 45%);
}

.status-color-dropdown-option:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.status-color-swatch {
  cursor: pointer;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  gap: 0 !important;
}

.status-color-swatch input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.status-color-dot {
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(44 36 28 / 18%), inset 0 0 0 1px rgb(255 255 255 / 35%);
  display: inline-flex;
  height: 28px;
  transition: box-shadow .16s ease, transform .16s ease;
  width: 28px;
}

.status-color-swatch:hover .status-color-dot {
  transform: translateY(-1px);
}

.status-color-swatch input:checked + .status-color-dot {
  box-shadow: 0 0 0 2px var(--orange), inset 0 0 0 1px rgb(255 255 255 / 45%);
}

.status-color-swatch input:focus-visible + .status-color-dot {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.settings-measure-columns {
  color: var(--muted);
  display: grid;
  font-size: .8rem;
  font-weight: 700;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) 96px;
  padding-right: 46px;
}

.settings-column-headings {
  color: var(--muted);
  display: grid;
  font-size: .8rem;
  font-weight: 700;
  gap: 10px;
}

.settings-columns-single {
  grid-template-columns: 1fr;
}

.settings-columns-double {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
}

.settings-addon-columns {
  grid-template-columns: repeat(2, minmax(130px, 1fr)) 96px;
  padding-right: 46px;
}

.settings-status-columns {
  padding-right: 210px;
}

.settings-order-option-columns {
  grid-template-columns: minmax(130px, 1fr) 96px;
  padding-right: 46px;
}

.settings-fulfillment-option-columns {
  grid-template-columns: minmax(130px, 1fr) 96px 170px;
  padding-right: 46px;
}

.settings-tax-columns {
  grid-template-columns: minmax(130px, 1fr) minmax(100px, 140px);
  padding-right: 46px;
}

.settings-percent-input {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.settings-percent-input > span {
  color: var(--brown);
  font-weight: 900;
}

.settings-list {
  border-top: 1px solid var(--line);
  display: grid;
}

.settings-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 0;
}

.settings-reorder-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 24px;
}

.settings-reorder-button img {
  filter: brightness(0) saturate(100%) invert(53%) sepia(91%) saturate(1645%) hue-rotate(350deg) brightness(99%) contrast(91%);
  height: 17px;
  object-fit: contain;
  width: 14px;
}

.settings-reorder-button:disabled {
  cursor: default;
  opacity: .6;
}

.settings-reorder-button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.settings-list.is-saving-order {
  opacity: .7;
  pointer-events: none;
}

.settings-permissions-list {
  gap: 0;
}

.settings-permission-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  padding: 16px 0;
}

.settings-permission-row:last-child {
  border-bottom: 0;
}

.settings-permission-user {
  display: grid;
  gap: 4px;
}

.settings-permission-user strong {
  color: var(--ink);
}

.settings-permission-user span,
.settings-permission-user small {
  color: var(--muted);
  font-size: .82rem;
}

.settings-permission-form {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.settings-permission-grid {
  display: grid;
  gap: 10px 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.settings-permission-checkbox {
  font-size: .85rem !important;
  justify-content: start;
}

.settings-permission-total {
  align-self: center;
  color: var(--orange);
  font-weight: 700;
}

.settings-row > form {
  margin: 0;
}

.settings-row > form:last-child {
  align-items: center;
  display: flex;
  min-height: 42px;
}

.settings-checkbox {
  align-items: center;
  display: flex !important;
  flex: 0 0 auto !important;
  grid-auto-flow: column;
  white-space: nowrap;
}

.settings-checkbox input {
  width: auto;
}

.settings-delete-button {
  align-items: center;
  background: var(--danger);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.settings-delete-button img {
  filter: brightness(0) invert(1);
  height: 17px;
  object-fit: contain;
  width: 17px;
}

.settings-save-button,
.settings-modal-save {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.settings-save-button:disabled {
  cursor: default;
  opacity: .38;
}

.settings-save-button img,
.settings-modal-save img {
  filter: brightness(0) invert(1);
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.settings-modal-save {
  height: 42px;
  width: 42px;
}

[data-settings-modal] .modal-form label {
  display: grid;
  gap: 6px;
}

@media (min-width: 701px) {
  .settings-row .settings-field-label {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .settings-addon-row .settings-edit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr)) auto;
  }

  .settings-status-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr)) auto;
  }

  .settings-order-option-row .settings-edit-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto;
  }

  .settings-tax-row .settings-tax-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(100px, 140px) auto;
  }

  .settings-measure-row .settings-option-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr)) auto;
  }

  .settings-measure-row .settings-edit-actions {
    min-height: 42px;
  }
}

@media (max-width: 700px) {
  .settings-measure-columns {
    display: none;
  }

  .settings-column-headings {
    display: none;
  }

  .settings-create-form,
  .settings-edit-form {
    align-items: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .settings-edit-form > label:not(.settings-checkbox) {
    grid-column: 1 / -1;
  }

  .settings-edit-form > .status-color-field {
    grid-column: 1 / -1;
  }

  .settings-edit-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .settings-permission-row {
    grid-template-columns: 1fr;
  }

  .settings-permission-form {
    grid-template-columns: 1fr;
  }

  .settings-permission-form .settings-save-button {
    justify-self: end;
  }

  .settings-whatsapp-grid {
    grid-template-columns: 1fr;
  }

  .settings-row {
    align-items: end;
  }
}

.admin-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 32px;
}

.admin-order-launch {
  align-items: end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.admin-order-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-order-actions form {
  margin: 0;
}

.order-summary-panel {
  display: grid;
  gap: 10px;
  margin-top: -4px;
}

.order-summary-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-summary-filters > strong {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1;
}

.order-summary-filter-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.order-summary-filter-chip {
  cursor: default;
}

.order-summary-filter-chip:hover,
.order-summary-filter-chip:focus-visible {
  box-shadow: none;
}

.order-summary-panel .order-operation-summary {
  margin-top: 0;
}

.order-total-summary-card {
  align-content: start;
}

.sales-report-button {
  justify-self: start;
  margin-top: 6px;
  min-height: 34px;
}

.sales-report-modal-backdrop {
  background: rgb(36 20 13 / 66%);
  z-index: 96;
}

.sales-report-panel {
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: min(820px, calc(100dvh - 32px));
  position: relative;
  width: min(860px, calc(100vw - 32px));
}

.sales-report-body {
  background: #fffaf0;
  overflow: auto;
  padding: 20px;
}

.sales-report-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 24px;
}

.sales-report-sheet[hidden],
.sales-report-actions[hidden] {
  display: none;
}

.sales-report-header {
  display: grid;
  gap: 8px;
  padding-right: 32px;
}

.sales-report-header h2 {
  color: var(--brown);
  font-size: 1.55rem;
  margin: 0;
}

.sales-report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-report-filters span {
  background: var(--orange);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  padding: 7px 10px;
}

.sales-report-empty {
  color: var(--muted);
  margin: 0;
}

.sales-report-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
}

.sales-report-table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
}

.sales-report-table th,
.sales-report-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.sales-report-table th {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
}

.sales-report-sort-button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  gap: 4px;
  letter-spacing: inherit;
  min-height: 24px;
  padding: 0;
  text-transform: inherit;
}

.sales-report-sort-button.is-active {
  color: var(--orange);
}

.sales-report-sort-button.is-active[data-sales-report-direction="asc"]::after {
  content: "↑";
}

.sales-report-sort-button.is-active[data-sales-report-direction="desc"]::after {
  content: "↓";
}

.sales-report-group-row th {
  background: #fff7ec;
  color: var(--brown);
  font-size: .82rem;
  font-weight: 900;
  text-transform: none;
}

.sales-report-table th:last-child,
.sales-report-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.sales-report-table .sales-report-group-row th {
  text-align: left;
  white-space: normal;
}

.sales-report-table tfoot th,
.sales-report-table tfoot td {
  border-bottom: 0;
  color: var(--orange);
  font-size: 1rem;
  font-weight: 900;
}

.sales-report-actions {
  display: flex;
  justify-content: flex-end;
}

.sales-report-actions form {
  display: none;
}

.sales-report-icon-button {
  gap: 8px;
  height: 42px;
  padding: 0;
  width: 44px;
}

.sales-report-icon-button img {
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.sales-report-icon-button.sales-report-share-button {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.sales-report-share-button img {
  filter: brightness(0) invert(1);
}

.sales-report-icon-button.button img {
  filter: brightness(0) invert(1);
}

.sales-report-print-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.sales-report-print-preview[hidden] {
  display: none;
}

.sales-report-print-preview h3 {
  color: var(--brown);
  font-size: 1.05rem;
  margin: 0;
}

.sales-report-print-preview .print-preview-paper {
  max-height: 52dvh;
}

.sales-report-queue-button {
  height: 42px;
  padding: 0;
  width: 44px;
}

.sales-report-queue-button img {
  filter: brightness(0) invert(1);
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.order-summary-modal-backdrop {
  background: rgb(36 20 13 / 58%);
  z-index: 94;
}

.order-summary-modal-panel {
  max-height: min(640px, calc(100dvh - 32px));
  position: relative;
  width: min(680px, calc(100vw - 32px));
}

.order-summary-modal-body {
  background: #fffaf0;
  padding: 20px;
}

.order-summary-modal-body .order-summary-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.admin-drafts-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-drafts-panel[hidden] {
  display: none;
}

.admin-drafts-panel .section-title-row {
  margin: 0;
}

.admin-drafts-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.admin-draft-card {
  background: #fff9ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  flex: 0 0 min(280px, calc(100vw - 64px));
  gap: 10px;
  min-width: 240px;
  padding: 12px;
  scroll-snap-align: start;
  text-align: left;
}

.admin-draft-card:hover,
.admin-draft-card:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgb(241 116 24 / 16%);
}

.admin-draft-card > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-draft-card small,
.admin-draft-card span span {
  color: var(--muted);
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-draft-card strong:last-child {
  color: var(--orange);
}

.admin-new-order-button {
  gap: 7px;
  min-height: 36px;
}

.admin-new-order-button:disabled {
  opacity: .58;
}

.admin-new-order-button img {
  filter: brightness(0) invert(1);
  height: 16px;
  object-fit: contain;
  width: 16px;
}

.admin-order-shell {
  min-height: 0;
}

.admin-order-flow-modal-backdrop {
  z-index: 60;
}

.admin-order-flow-panel {
  grid-template-rows: minmax(0, 1fr);
  height: min(820px, calc(100dvh - 32px));
  overflow: hidden;
  position: relative;
  width: min(1080px, calc(100vw - 32px));
}

.admin-order-flow-body {
  border-radius: inherit;
  min-height: 0;
  overflow-y: auto;
}

.admin-order-flow-header {
  background: #fffaf0;
  border-bottom: 1px solid var(--line);
}

.admin-order-flow-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 24px;
}

.admin-order-flow-toolbar > span {
  color: var(--brown);
  font-weight: 900;
}

.admin-order-flow-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.admin-flow-delete-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.admin-flow-checkout-button {
  min-height: 38px;
  padding: 8px 12px;
  width: auto;
}

.admin-flow-close-button {
  flex: 0 0 auto;
  height: 38px;
  position: static;
  width: 38px;
}

.admin-order-flow-header .checkout-step {
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 14px;
}

.admin-order-flow-header .checkout-step-content {
  max-width: 620px;
}

.admin-order-flow-header .category-tabs {
  border-bottom: 0;
}

.admin-menu-search {
  flex: 0 0 clamp(180px, 24vw, 280px);
  margin-left: auto;
  padding-bottom: 10px;
  position: relative;
}

.admin-menu-search input {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid #e7d5c4;
  border-radius: 999px;
  color: var(--brown);
  font: inherit;
  font-size: .9rem;
  height: 38px;
  outline: 0;
  padding: 8px 40px 8px 14px;
  width: 100%;
}

.admin-menu-search input::-webkit-search-cancel-button,
.admin-menu-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.admin-menu-search input::placeholder {
  color: #9b7b66;
}

.admin-menu-search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgb(240 138 36 / 15%);
}

.admin-menu-search-clear {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 30px;
}

.admin-menu-search-clear[hidden],
.category-tabs a[hidden],
.menu-section[hidden],
.product-card[hidden] {
  display: none;
}

.admin-menu-search-clear img {
  height: 18px;
  filter: brightness(0) saturate(100%) invert(58%) sepia(80%) saturate(733%) hue-rotate(344deg) brightness(99%) contrast(91%);
  opacity: .82;
  width: 18px;
}

.admin-menu-search-clear:hover img,
.admin-menu-search-clear:focus-visible img {
  opacity: 1;
}

.admin-order-workspace {
  padding-top: 22px;
}

.admin-header-controls {
  align-items: center;
  display: none;
  gap: 10px;
}

.admin-header-user {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-header-user form {
  margin: 0;
}

.cash-register-button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  padding: 9px 14px;
}

.cash-register-button.is-open {
  background: var(--danger);
}

.cash-register-button.is-closed {
  background: var(--orange);
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.metric-grid strong {
  font-size: 2rem;
}

.panel-section {
  min-width: 0;
  overflow-x: hidden;
  padding: 18px;
}

.admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label,
.admin-form button,
.admin-form textarea,
.admin-form .field-label-row,
.admin-form .input-action-row,
.admin-form .alert-panel {
  grid-column: 1 / -1;
}

.field-label-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: start;
}

.input-action-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.input-action-row select,
.input-action-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.input-action-row .icon-action {
  flex: 0 0 auto;
}

.section-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 0 0 14px;
}

.section-title-row h2 {
  margin: 0;
}

.orders-title-row {
  justify-content: flex-start;
}

.orders-sound-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.orders-sound-toggle img {
  filter: brightness(0) saturate(100%) invert(53%) sepia(84%) saturate(2114%) hue-rotate(354deg) brightness(98%) contrast(93%);
  height: 20px;
  object-fit: contain;
  width: 20px;
}

.orders-sound-toggle:hover,
.orders-sound-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.orders-sound-toggle:hover img {
  opacity: .82;
}

.cardapio-section-title {
  justify-content: flex-start;
}

.field-label-row label {
  margin: 0;
}

.image-upload-field {
  display: grid;
  gap: 12px;
}

.image-preview {
  aspect-ratio: 4 / 3;
  background: #f8eddd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  max-width: 220px;
  object-fit: cover;
  width: 100%;
}

.image-preview[hidden] {
  display: none;
}

.product-measures {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.measure-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--brown);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: start;
  padding: 0;
  text-align: left;
}

.chevron-icon {
  display: block;
  filter: brightness(0);
  flex: 0 0 auto;
  height: 14px;
  object-fit: contain;
  opacity: .72;
  transform: rotate(180deg);
  transition: transform 160ms ease;
  width: 14px;
}

.measure-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(0);
}

.measure-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 10px;
}

.measure-panel[hidden] {
  display: none;
}

.measure-list {
  display: grid;
  gap: 10px;
}

.measure-empty {
  margin: 0;
}

.measure-empty[hidden] {
  display: none;
}

.measure-group {
  background: #fffaf5;
  border: 1px solid #f0dfce;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.measure-group-toggle,
.measure-option {
  align-items: center;
  display: flex;
  gap: 8px;
}

.measure-group-toggle {
  color: var(--brown);
  font-weight: 800;
}

.measure-group-toggle input,
.measure-option input {
  accent-color: var(--orange);
  width: auto;
}

.measure-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 26px;
}

.addon-options {
  padding-left: 0;
}

.measure-options[hidden] {
  display: none;
}

.measure-option {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
}

.measure-option span {
  font-weight: 700;
}

.measure-option small {
  color: var(--muted);
}

.measure-add-button {
  justify-self: start;
}

.measure-template-options {
  display: grid;
  gap: 8px;
}

.measure-template-option-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.icon-action {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 6px;
  width: 34px;
}

.icon-action:hover {
  background: #fff1e7;
}

.add-category-icon {
  background: var(--orange);
  display: block;
  height: 22px;
  mask: url("/images/icons/add.png") center / contain no-repeat;
  width: 22px;
  -webkit-mask: url("/images/icons/add.png") center / contain no-repeat;
}

.modal-backdrop {
  align-items: center;
  background: rgb(36 20 13 / 58%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 50;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgb(36 20 13 / 24%);
  max-height: calc(100dvh - 40px);
  max-width: 430px;
  overflow-y: auto;
  padding: 24px;
  width: 100%;
}

.modal-panel-wide {
  max-width: 640px;
}

.product-modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 0;
}

.product-modal-panel > h2 {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 20px 24px 16px;
}

.product-modal-panel .admin-form {
  display: contents;
}

.product-modal-body {
  display: grid;
  gap: 9px;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px 24px;
}

.product-modal-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 14px 24px;
  position: relative;
  z-index: 2;
}

.modal-panel h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.printer-bridge-modal {
  display: grid;
  gap: 12px;
}

.printer-bridge-modal p {
  color: var(--muted);
  margin: 0;
}

.printer-bridge-modal .modal-actions {
  margin-top: 4px;
}

.printer-bridge-modal .button,
.printer-bridge-modal .button-secondary {
  align-items: center;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  text-decoration: none;
}

.modal-form {
  display: grid;
  gap: 10px;
}

.form-message {
  color: var(--danger);
  font-weight: 700;
  margin: 0;
}

.form-message[hidden] {
  display: none;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: end;
  margin-top: 6px;
}

.button-secondary {
  background: #f3eee6;
  color: var(--brown);
}

.button-danger {
  background: var(--danger);
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

.sort-link {
  align-items: center;
  color: var(--brown);
  display: inline-flex;
  gap: 5px;
  font-weight: 800;
  text-decoration: none;
}

.sort-link:hover {
  color: var(--orange);
}

.sort-link span {
  color: var(--orange);
  min-width: 1ch;
}

.table-product {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 190px;
}

.table-product-block {
  display: grid;
  gap: 7px;
  min-width: 220px;
}

.table-product img {
  aspect-ratio: 1;
  background: #f8eddd;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex: 0 0 auto;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.table-product span {
  font-weight: 800;
}

.table-product-description {
  color: #a99c92;
  font-size: .84rem;
  line-height: 1.35;
  margin: 0;
  max-width: 520px;
}

.table-product-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.table-product-meta {
  color: var(--muted);
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

.table-product-meta small {
  align-items: center;
  display: inline-flex;
  font-size: .78rem;
  gap: 6px;
  white-space: nowrap;
}

.table-product-meta small::before {
  color: var(--orange);
  content: "•";
  font-weight: 800;
}

.status-pill {
  background: #f3eee6;
  border-radius: 999px;
  color: var(--brown);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  padding: 4px 9px;
}

.status-pill.is-active {
  background: #e6f7ed;
  color: var(--success);
}

.status-pill.is-paused {
  background: #fae9e6;
  color: var(--danger);
}

.status-pill.is-created {
  background: #ebe7e2;
  color: #3c3732;
}

.status-pill.is-warning {
  background: #fff1d6;
  color: #9b5c00;
}

.status-pill.is-info {
  background: #e3f2ff;
  color: #1b6ca8;
}

.status-select {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 800;
  min-width: 112px;
  padding: 7px 30px 7px 10px;
  width: auto;
}

.status-select.is-active {
  background: #e6f7ed;
  color: var(--success);
}

.status-select.is-paused {
  background: #fae9e6;
  color: var(--danger);
}

.status-select.is-created {
  background: #ebe7e2;
  color: #3c3732;
}

.status-select.is-warning {
  background: #fff1d6;
  color: #9b5c00;
}

.status-select.is-info {
  background: #e3f2ff;
  color: #1b6ca8;
}

.status-pill.is-orange,
.status-select.is-orange {
  background: #fff0e5;
  color: #b44e00;
}

.status-pill.is-purple,
.status-select.is-purple {
  background: #f1e9ff;
  color: #7042a1;
}

.status-pill.is-pink,
.status-select.is-pink {
  background: #ffe8f0;
  color: #a83b67;
}

.status-pill.is-cyan,
.status-select.is-cyan {
  background: #e2f7f8;
  color: #16727a;
}

.status-pill.is-brown,
.status-select.is-brown {
  background: #eee3dc;
  color: #6f4532;
}

.status-color-dot.is-created {
  background: #8b8379;
}

.status-color-dot.is-warning {
  background: #f2a51a;
}

.status-color-dot.is-info {
  background: #2d7fbe;
}

.status-color-dot.is-active {
  background: #2f9e55;
}

.status-color-dot.is-paused {
  background: #d64a3a;
}

.status-color-dot.is-orange {
  background: var(--orange);
}

.status-color-dot.is-purple {
  background: #8057c8;
}

.status-color-dot.is-pink {
  background: #d94f85;
}

.status-color-dot.is-cyan {
  background: #1ba6b1;
}

.status-color-dot.is-brown {
  background: #80513a;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.table-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.icon-table-action {
  align-items: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 33px;
  justify-content: center;
  padding: 0;
  width: 33px;
}

.icon-table-action span {
  display: block;
  height: 18px;
  width: 18px;
}

.icon-table-action.is-edit {
  background: var(--orange);
}

.icon-table-action.is-delete {
  background: #761c18;
}

.edit-icon {
  background: #fff;
  mask: url("/images/icons/edit.png") center / contain no-repeat;
  -webkit-mask: url("/images/icons/edit.png") center / contain no-repeat;
}

.trash-icon {
  background: #fff;
  mask: url("/images/icons/trash.png") center / contain no-repeat;
  -webkit-mask: url("/images/icons/trash.png") center / contain no-repeat;
}

.table-action {
  color: #fff;
  font-size: .85rem;
  padding: 7px 10px;
}

.order-list {
  display: grid;
  gap: 10px;
}

.order-list article {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 12px;
}

.order-list div {
  display: grid;
}

.order-list span {
  color: var(--muted);
}

.orders-admin-list {
  display: grid;
  gap: 14px;
}

.orders-status-sections {
  display: grid;
  gap: 14px;
}

.orders-status-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.orders-status-section[hidden] {
  display: none;
}

.orders-status-section-toggle {
  align-items: center;
  background: #fff9ef;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--brown);
  cursor: pointer;
  display: grid;
  font-weight: 900;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 48px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.orders-status-section.is-collapsed .orders-status-section-toggle {
  border-bottom: 0;
}

.orders-status-section-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-status-section-toggle strong {
  align-items: center;
  background: var(--orange);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .78rem;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0 8px;
}

.orders-status-section-toggle img {
  height: 16px;
  object-fit: contain;
  transition: transform .16s ease;
  width: 16px;
}

.orders-status-section-toggle[aria-expanded="true"] img {
  transform: rotate(180deg);
}

.orders-status-section > .orders-admin-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.orders-status-section > .orders-admin-list[hidden] {
  display: none;
}

.order-filters {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 6px;
  scrollbar-width: thin;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.selected-order-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 14px;
}

.order-filter-group {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 9px;
  flex: 0 0 auto;
  min-width: max-content;
  padding: 10px;
  white-space: nowrap;
}

.order-filter-group h3 {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: .76rem;
  letter-spacing: .04em;
  margin: 0;
  text-transform: uppercase;
}

.order-filter-date {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  margin: 0 0 0 auto;
  max-width: calc(100% - 90px);
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.order-filter-date-panel {
  flex: 0 0 auto;
  margin: 0;
  max-width: none;
}

.section-title-row .order-filter-date {
  margin: 0;
}

.order-filter-date select {
  flex: 0 0 auto;
  width: 150px;
}

.order-date-fields {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.order-date-fields[hidden] {
  display: none;
}

.order-date-fields label {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  margin: 0;
}

.order-date-fields label span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.order-filter-date input[type="date"] {
  flex: 0 0 auto;
  width: 150px;
}

.order-filter-date input[type="hidden"] {
  display: none;
}

.order-refresh-button,
.order-filter-toggle,
.order-report-toggle {
  align-items: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.order-refresh-button {
  background: var(--orange);
}

.order-report-toggle {
  background: var(--orange);
}

.order-filter-toggle {
  background: #fff7ec;
  border: 1px solid var(--line);
}

.order-filter-toggle.is-active {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgb(241 116 24 / 12%);
}

.order-refresh-button img,
.order-filter-toggle img,
.order-report-toggle img {
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.order-refresh-button img,
.order-report-toggle img {
  filter: brightness(0) invert(1);
}

.order-filter-toggle img {
  filter: brightness(0) saturate(100%) invert(58%) sepia(80%) saturate(733%) hue-rotate(344deg) brightness(99%) contrast(91%);
}

.order-filters[hidden] {
  display: none;
}

.order-filter-chip-row {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  overflow: visible;
  white-space: nowrap;
}

.filter-chip {
  align-items: center;
  background: #fff7ec;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .86rem;
  gap: 7px;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.filter-chip.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.filter-chip-clear {
  background: #fff;
  color: var(--danger);
}

.filter-chip-close,
.selected-filter-close {
  background: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 14px;
  mask: url("/images/icons/close.fill.png") center / contain no-repeat;
  width: 14px;
  -webkit-mask: url("/images/icons/close.fill.png") center / contain no-repeat;
}

.selected-filter-chip {
  align-items: center;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .86rem;
  font-weight: 800;
  gap: 7px;
  padding: 8px 12px;
  text-decoration: none;
}

.selected-filter-chip:hover,
.selected-filter-chip:focus-visible {
  box-shadow: 0 0 0 3px rgb(241 116 24 / 18%);
}

.order-fulfillment-tabs {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  padding: 8px 0 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.order-fulfillment-tab {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: .92rem;
  font-weight: 900;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  position: relative;
}

.order-fulfillment-tab.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.order-fulfillment-tab.is-realtime-updated,
.orders-status-section-toggle.is-realtime-updated {
  box-shadow: 0 0 0 2px rgb(229 120 30 / 42%);
}

.order-fulfillment-tab strong {
  align-items: center;
  background: rgb(36 20 13 / 10%);
  border-radius: 999px;
  display: inline-flex;
  font-size: .76rem;
  justify-content: center;
  min-width: 24px;
  padding: 3px 7px;
}

.order-fulfillment-tab.is-active strong {
  background: rgb(255 255 255 / 22%);
}

.order-fulfillment-new-badge {
  align-items: center;
  background: var(--danger);
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 900;
  height: 21px;
  justify-content: center;
  min-width: 21px;
  padding: 0 5px;
  position: absolute;
  right: 2px;
  top: -8px;
}

.order-fulfillment-new-badge[hidden] {
  display: none;
}

.order-fulfillment-panel[hidden] {
  display: none;
}

.order-table-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
}

.order-table-section .section-title-row {
  margin: 0;
}

.order-table-section h3 {
  color: var(--brown);
  font-size: 1rem;
  margin: 0;
}

.order-table-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.order-table-card {
  background: #fff9ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  flex: 0 0 150px;
  gap: 8px;
  min-height: 86px;
  padding: 12px;
  text-align: left;
}

.order-table-card span {
  color: var(--brown);
  font-size: 1rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-table-card strong {
  align-self: end;
  border-radius: 999px;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  justify-self: start;
  padding: 5px 8px;
}

.order-table-card small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-table-card.is-available {
  border-color: #b8e0c4;
}

.order-table-card.is-available strong {
  background: #e6f7ed;
  color: var(--success);
}

.order-table-card.is-occupied {
  background: #f4eee8;
  border-color: #e3d7cb;
  color: var(--muted);
  cursor: pointer;
  flex-basis: 210px;
  min-height: 128px;
}

.order-table-card.is-occupied:disabled {
  cursor: not-allowed;
  flex-basis: 150px;
  min-height: 86px;
}

.order-table-card.is-occupied span {
  color: #7f7166;
}

.order-table-card.is-occupied strong {
  background: #fae9e6;
  color: var(--danger);
}

.order-table-card:hover:not(:disabled),
.order-table-card:focus-visible:not(:disabled) {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgb(241 116 24 / 16%);
}

.order-card-shell {
  flex: 0 0 min(280px, calc(100vw - 64px));
  min-width: 240px;
}

.order-summary-card {
  background: #fff9ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.order-card-shell.is-pending-confirmation .order-summary-card {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px rgb(241 116 24 / 18%);
}

.order-card-shell.uses-status-color.is-created .order-summary-card {
  background: #f5f1eb;
  border-color: #d8d0c7;
}

.order-card-shell.uses-status-color.is-warning .order-summary-card {
  background: #fff5df;
  border-color: #f0c779;
}

.order-card-shell.uses-status-color.is-info .order-summary-card {
  background: #eef7ff;
  border-color: #a7d3f4;
}

.order-card-shell.uses-status-color.is-active .order-summary-card {
  background: #edf8f1;
  border-color: #9bd8b2;
}

.order-card-shell.uses-status-color.is-paused .order-summary-card {
  background: #fff0ed;
  border-color: #efb1a8;
}

.order-card-shell.uses-status-color.is-orange .order-summary-card {
  background: #fff2e8;
  border-color: #f4b784;
}

.order-card-shell.uses-status-color.is-purple .order-summary-card {
  background: #f6f0ff;
  border-color: #c6adeb;
}

.order-card-shell.uses-status-color.is-pink .order-summary-card {
  background: #fff1f6;
  border-color: #ebb0c7;
}

.order-card-shell.uses-status-color.is-cyan .order-summary-card {
  background: #ecfbfc;
  border-color: #9adbe0;
}

.order-card-shell.uses-status-color.is-brown .order-summary-card {
  background: #f3ebe6;
  border-color: #c9aa9b;
}

.order-summary-card:hover,
.order-summary-card:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgb(241 116 24 / 16%);
}

.order-summary-card > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.order-summary-card small {
  color: var(--muted);
  font-size: .78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-summary-card strong {
  overflow-wrap: anywhere;
}

.order-summary-card > span:first-child strong {
  color: var(--brown);
  font-size: 1.02rem;
}

.order-detail-modal-backdrop {
  background: rgb(36 20 13 / 58%);
  z-index: 95;
}

.order-detail-modal-panel {
  max-height: min(820px, calc(100dvh - 32px));
  overflow: hidden;
  position: relative;
  width: min(860px, calc(100vw - 32px));
}

.order-detail-modal-panel > .selected-modal-close {
  z-index: 8;
}

.order-detail-modal-body {
  background: #fffaf0;
  overflow: auto;
  padding: 20px;
}

.order-detail-modal-body .order-admin-card {
  background: #fff;
}

.telemetry-metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.telemetry-filter-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  margin: 0 0 16px;
}

.telemetry-filter-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.telemetry-filter-form label span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.telemetry-filter-form input,
.telemetry-filter-form select {
  min-width: 0;
  width: 100%;
}

.telemetry-search-field {
  grid-column: span 2;
}

.telemetry-filter-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.telemetry-clear-link {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--danger);
}

.telemetry-endpoint-groups {
  display: grid;
  gap: 14px;
}

.telemetry-endpoint-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.telemetry-endpoint-header {
  align-items: center;
  background: #fffaf3;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 13px 14px;
  position: relative;
  user-select: none;
}

.telemetry-endpoint-header::-webkit-details-marker {
  display: none;
}

.telemetry-endpoint-header::after {
  border-bottom: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  content: "";
  flex: 0 0 auto;
  height: 8px;
  margin-left: 2px;
  transform: rotate(45deg);
  transition: transform 140ms ease;
  width: 8px;
}

.telemetry-endpoint-group[open] .telemetry-endpoint-header::after {
  transform: rotate(225deg);
}

.telemetry-endpoint-header > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.telemetry-endpoint-title {
  color: var(--ink);
  display: block;
  font-size: .96rem;
  font-weight: 900;
  margin: 0;
  overflow-wrap: anywhere;
}

.telemetry-endpoint-header span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.telemetry-endpoint-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.telemetry-endpoint-stats span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 900;
  padding: 6px 8px;
  white-space: nowrap;
}

.telemetry-endpoint-group .telemetry-table-wrap {
  border-radius: 0;
}

.telemetry-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
}

.telemetry-table {
  border-collapse: collapse;
  min-width: 1080px;
  width: 100%;
}

.telemetry-table th,
.telemetry-table td {
  border-top: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.telemetry-table th {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
}

.telemetry-table td:first-child strong,
.telemetry-table td:first-child span {
  display: block;
}

.telemetry-request-cell,
.telemetry-source-cell {
  display: grid;
  gap: 3px;
  max-width: 360px;
  min-width: 0;
}

.telemetry-request-cell strong,
.telemetry-source-cell strong {
  overflow-wrap: anywhere;
}

.telemetry-request-cell span,
.telemetry-source-cell span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.telemetry-pill,
.telemetry-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
  white-space: nowrap;
}

.telemetry-pill.is-usage,
.telemetry-status.is-success {
  background: #e8f6ed;
  color: var(--success);
}

.telemetry-pill.is-error,
.telemetry-status.is-error {
  background: #fff0ec;
  color: var(--danger);
}

.telemetry-status.is-warning {
  background: #fff5d7;
  color: #9a6500;
}

.telemetry-status.is-info {
  background: #eaf4ff;
  color: #216f9b;
}

.telemetry-status.is-muted {
  background: #f4eee6;
  color: var(--muted);
}

.telemetry-details {
  max-width: 440px;
}

.telemetry-details summary {
  cursor: pointer;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.telemetry-details span {
  color: var(--muted);
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.telemetry-details pre {
  background: #241610;
  border-radius: 6px;
  color: #fff9ef;
  font-size: .78rem;
  line-height: 1.4;
  margin: 8px 0 0;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.telemetry-empty {
  color: var(--muted);
  text-align: center;
}

.order-admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.order-admin-card > header {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) max-content;
}

.order-admin-card > header form {
  justify-self: end;
  margin-top: 0;
}

.order-admin-card > header > div {
  min-width: 0;
}

.order-admin-card > header div,
.order-admin-grid section p {
  display: grid;
  gap: 3px;
}

.order-admin-card > header span,
.order-admin-grid span,
.order-admin-notes {
  color: var(--muted);
}

.order-client-name {
  color: var(--ink);
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, .7fr);
}

.order-admin-grid h3 {
  font-size: .82rem;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.order-admin-grid p,
.order-admin-grid dl,
.order-admin-notes {
  margin: 0;
}

.order-items {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-items li {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) max-content;
}

.order-items li div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.order-items li > span {
  white-space: nowrap;
}

.order-admin-totals dl {
  display: grid;
  gap: 6px;
}

.order-admin-totals dl div {
  display: flex;
  justify-content: space-between;
}

.order-admin-totals dl div:last-child {
  color: var(--orange);
  font-weight: 800;
}

.order-admin-notes {
  background: #fff9ef;
  border-radius: 6px;
  padding: 10px;
}

.order-admin-footer {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.order-admin-customer {
  display: grid;
  gap: 3px;
}

.order-admin-customer span {
  color: var(--muted);
}

.order-client-main,
.order-client-contact {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.order-client-contact {
  flex: 0 0 auto;
  gap: 6px;
  white-space: nowrap;
}

.contact-client-button {
  align-items: center;
  background: var(--orange);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .74rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 30px;
}

.contact-client-button img {
  filter: brightness(0) invert(1);
  height: 16px;
  object-fit: contain;
  width: 16px;
}

.order-pending-review-overlay {
  align-items: center;
  background: rgb(0 0 0 / 34%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: absolute;
  z-index: 4;
}

.order-pending-review-overlay .button {
  min-width: 180px;
}

.order-review-modal-backdrop {
  background: rgb(0 0 0 / 70%);
  z-index: 125;
}

.order-review-modal-panel {
  max-width: 520px;
  width: min(520px, 100%);
}

.order-review-modal-body > img {
  aspect-ratio: 4 / 3;
  background: #f8eddd;
  display: block;
  object-fit: contain;
  width: 100%;
}

.order-review-copy {
  padding-bottom: 16px;
}

.order-review-cancel-confirmation {
  background: #fff6ec;
  border: 1px solid #f0dfce;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.order-review-cancel-confirmation[hidden] {
  display: none;
}

.order-review-cancel-confirmation h3 {
  color: var(--brown);
  font-size: 1rem;
  margin: 0;
}

.order-review-cancel-confirmation p {
  color: var(--muted);
  margin: 0;
}

.check-account-message {
  color: var(--brown);
  font-weight: 800;
}

.order-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.order-admin-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.order-admin-actions form {
  margin: 0;
}

.order-print-button {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  font-weight: 800;
  height: 38px;
  min-height: 38px;
  justify-content: center;
  padding: 0;
  white-space: nowrap;
  width: 38px;
}

.order-print-button.is-loading {
  opacity: 0.78;
}

.order-print-button img {
  filter: brightness(0) invert(1);
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.order-close-button,
.order-edit-button {
  align-items: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  min-height: 38px;
  padding: 0;
}

.order-close-button {
  background: var(--success);
  color: #fff;
  padding-inline: 12px;
  width: auto;
}

.order-edit-button {
  background: var(--orange);
  width: 38px;
}

.order-close-button img,
.order-edit-button img {
  filter: brightness(0) invert(1);
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.order-close-button span {
  line-height: 1;
  white-space: nowrap;
}

.order-edit-inline-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: space-between;
  margin: 4px 0 12px;
  min-width: 0;
  width: 100%;
}

.order-edit-inline-actions[hidden] {
  display: none;
}

.checkout-form .order-edit-add-item-button {
  flex: 1 1 auto;
  font-size: .86rem;
  height: 38px;
  justify-self: start;
  margin: 0;
  min-height: 38px;
  min-width: 0;
  padding-block: 0;
  padding-inline: 12px;
  white-space: nowrap;
  width: 100%;
}

.cart-line.is-existing-order-line {
  background: #fff9ef;
  border-radius: 6px;
  padding: 8px;
}

.order-edit-menu-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  max-width: 920px;
  overflow: hidden;
  position: relative;
  width: min(920px, calc(100vw - 32px));
}

.order-edit-menu-panel .checkout-panel-header {
  padding-right: 58px;
}

.order-edit-menu-panel > .selected-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
}

.order-edit-menu-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 20px 0;
}

.order-edit-menu-search {
  flex: 0 0 clamp(180px, 26vw, 300px);
}

.order-edit-menu-body {
  max-height: min(720px, calc(100dvh - 160px));
  overflow-y: auto;
  padding: 16px 20px 20px;
}

.order-edit-menu-workspace {
  padding: 0;
}

.order-edit-menu-product {
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.order-edit-menu-product > img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.print-preview-panel {
  max-width: 520px;
}

.print-preview-paper {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgb(36 20 13 / 10%);
  color: #111;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  margin: 0 auto;
  max-height: 58dvh;
  overflow: auto;
  padding: 18px 14px;
  white-space: pre;
  width: min(384px, 100%);
}

.print-preview-paper .is-bold {
  font-weight: 800;
}

.print-preview-paper .is-large {
  font-size: 1.2em;
  line-height: 1;
}

.print-preview-footer {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 16px;
}

.print-preview-panel .modal-actions {
  margin-top: 0;
}

.print-zoom-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.print-zoom-actions button {
  align-items: center;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.print-zoom-actions button:disabled {
  cursor: default;
  opacity: .48;
}

.print-zoom-actions img {
  filter: brightness(0) invert(1);
  height: 20px;
  object-fit: contain;
  width: 20px;
}

.print-zoom-actions output {
  color: var(--brown);
  font-size: .82rem;
  font-weight: 800;
  min-width: 46px;
  text-align: center;
}

.order-print-status {
  align-items: center;
  color: var(--success);
  display: inline-flex;
  font-size: .9rem;
  font-weight: 800;
  gap: 6px;
}

.order-print-status[hidden] {
  display: none;
}

.order-print-status span,
.order-print-status strong {
  color: var(--success);
}

.checkmark-circle-icon {
  background: var(--success);
  display: inline-block;
  height: 18px;
  mask: url("/images/icons/checkmark.circle.png") center / contain no-repeat;
  width: 18px;
  -webkit-mask: url("/images/icons/checkmark.circle.png") center / contain no-repeat;
}

.page-loading {
  align-items: center;
  background: rgb(36 20 13 / 38%);
  color: #fff;
  display: flex;
  gap: 10px;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 80;
}

.page-loading[hidden] {
  display: none;
}

.page-loading span {
  animation: spin 700ms linear infinite;
  border: 3px solid currentcolor;
  border-right-color: transparent;
  border-radius: 999px;
  height: 24px;
  width: 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-copy {
  color: var(--muted);
  margin: 0;
}

.toast-stack {
  display: grid;
  gap: 8px;
  justify-items: center;
  left: 50%;
  pointer-events: none;
  position: fixed;
  top: 16px;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 24px));
  z-index: 140;
}

.app-toast {
  animation: toast-in 160ms ease-out;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--success);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgb(36 20 13 / 18%);
  color: var(--ink);
  font-weight: 800;
  padding: 12px 14px;
  pointer-events: auto;
  text-align: center;
  width: 100%;
}

.app-toast.is-error {
  border-left-color: var(--danger);
}

.app-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  main {
    padding: 16px 12px 34px;
  }

  .order-shell,
  .admin-layout,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telemetry-search-field,
  .telemetry-filter-actions {
    grid-column: 1 / -1;
  }

  .checkout-panel {
    position: static;
  }

  .admin-sidebar {
    gap: 14px;
    grid-template-rows: auto 1fr auto;
    height: 100dvh;
    left: 0;
    min-height: 100dvh;
    overflow: hidden;
    padding: 14px 10px;
    position: fixed;
    top: 0;
    transform: translateX(-100%);
    transition: transform 160ms ease;
    width: 72px;
    z-index: 30;
  }

  .admin-sidebar.is-visible {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .admin-header-controls {
    display: flex;
  }

  .admin-sidebar-logo {
    display: block;
    max-width: 42px;
  }

  .admin-sidebar nav {
    align-content: start;
    display: grid;
    gap: 8px;
    overflow: visible;
  }

  .admin-sidebar form {
    display: block;
  }

  .admin-nav-link {
    justify-content: center;
    min-height: 42px;
    overflow: hidden;
    padding: 10px;
    width: 44px;
  }

  .admin-nav-link span {
    display: none;
  }

  .admin-content {
    padding: 18px 12px 34px;
  }

  .order-admin-grid {
    grid-template-columns: 1fr;
  }

  .order-admin-card > header {
    grid-template-columns: 1fr;
  }

  .order-admin-card > header form {
    justify-self: start;
  }
}

@media (max-width: 660px) {
  th:nth-child(2),
  th:nth-child(3),
  td:nth-child(2),
  td:nth-child(3) {
    display: none;
  }

  th,
  td {
    padding: 10px 6px;
  }

  .table-product {
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .table-product-block {
    min-width: 0;
  }

  .table-product img {
    height: 42px;
    width: 42px;
  }

  .table-product-meta {
    display: flex;
  }

  .status-select {
    min-width: 92px;
    padding-right: 24px;
  }

  .table-actions {
    gap: 6px;
  }

  .telemetry-filter-form {
    grid-template-columns: 1fr;
  }

  .telemetry-endpoint-header {
    align-items: stretch;
    flex-direction: column;
  }

  .telemetry-endpoint-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-band {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .order-list article {
    grid-template-columns: 1fr;
  }

  .sales-report-body {
    padding: 12px;
  }

  .sales-report-sheet {
    padding: 16px;
  }

  .sales-report-actions {
    justify-content: flex-end;
  }

  .sales-report-table-wrap {
    overflow: visible;
  }

  .sales-report-table {
    min-width: 0;
  }

  .sales-report-table thead {
    display: block;
    margin-bottom: 10px;
  }

  .sales-report-table thead tr {
    border: 0;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
  }

  .sales-report-table thead th {
    border: 0;
    min-width: 0;
    padding: 0;
  }

  .sales-report-table thead .sales-report-sort-button {
    background: #fff7ec;
    border: 1px solid var(--line);
    border-radius: 8px;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 8px 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
  }

  .sales-report-table tbody,
  .sales-report-table tfoot,
  .sales-report-table tr,
  .sales-report-table td,
  .sales-report-table th {
    display: block;
  }

  .sales-report-table thead tr {
    display: grid;
  }

  .sales-report-table tbody {
    display: grid;
    gap: 10px;
  }

  .sales-report-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 5px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
  }

  .sales-report-table tbody tr.sales-report-group-row {
    background: #fff7ec;
    border-color: #f4c38c;
    grid-template-columns: 1fr;
  }

  .sales-report-table tbody tr.sales-report-group-row th {
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
    white-space: normal;
  }

  .sales-report-table tbody td {
    border: 0;
    padding: 0;
  }

  .sales-report-table td[data-report-primary] {
    color: var(--ink);
    font-weight: 900;
    min-width: 0;
  }

  .sales-report-table td[data-report-price] {
    color: var(--orange);
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
  }

  .sales-report-table td[data-report-detail] {
    color: var(--muted);
    font-size: .86rem;
    grid-column: 1 / -1;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
  }

  .sales-report-table td[data-report-detail]::before {
    color: var(--brown);
    content: attr(data-report-detail) ": ";
    font-weight: 900;
  }

  .sales-report-table tfoot {
    margin-top: 12px;
  }

  .sales-report-table tfoot tr {
    align-items: center;
    background: #fff7ec;
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
  }

  .sales-report-table tfoot th,
  .sales-report-table tfoot td {
    border: 0;
    padding: 0;
  }

  .sales-report-table tfoot td {
    text-align: right;
  }
}

@media (max-width: 520px) {
  .admin-sidebar {
    padding-inline: 8px;
    width: 64px;
  }
}

@media (max-width: 980px) {
  .public-order-page main {
    padding: 0;
  }

  .order-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
  }

  .order-brand-bar {
    min-height: 106px;
    padding: 22px;
  }

  .order-brand-bar img {
    max-width: 110px;
  }

  .category-tabs {
    padding-inline: 18px;
  }

  .order-workspace {
    padding: 20px 18px 28px;
  }

  .selected-product-panel .order-modal-body {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .selected-product-panel .order-modal-body > img {
    height: 100%;
  }

  .selected-options,
  .selected-observation-field,
  .selected-product-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .order-brand-bar {
    min-height: 70px;
    padding: 12px 18px;
  }

  .order-brand-bar img {
    max-width: 64px;
  }

  .category-tabs {
    gap: 18px;
    padding: 14px 14px 0;
  }

  .order-workspace {
    gap: 18px;
    padding: 18px 14px 24px;
  }

  .product-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-product-panel .order-modal-body {
    grid-template-columns: 1fr;
  }

  .selected-product-panel .order-modal-body > img {
    height: auto;
  }

  .selected-product-actions {
    grid-template-columns: 1fr;
  }

  .checkout-panel-header {
    align-items: stretch;
    display: grid;
  }

  .quantity-stepper {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .fulfillment-options > div {
    grid-template-columns: 1fr;
  }

  .cart-line-side {
    align-items: end;
  }
}

@media print {
  body.is-printing-sales-report * {
    visibility: hidden;
  }

  body.is-printing-sales-report .sales-report-modal-backdrop {
    background: transparent;
    display: block;
    padding: 0;
    position: static;
  }

  body.is-printing-sales-report .sales-report-panel {
    border: 0;
    box-shadow: none;
    display: block;
    max-height: none;
    overflow: visible;
    width: 100%;
  }

  body.is-printing-sales-report .sales-report-body {
    background: #fff;
    overflow: visible;
    padding: 0;
  }

  body.is-printing-sales-report .sales-report-sheet,
  body.is-printing-sales-report .sales-report-sheet * {
    visibility: visible;
  }

  body.is-printing-sales-report .sales-report-sheet {
    border: 0;
    border-radius: 0;
    gap: 14px;
    left: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  body.is-printing-sales-report .sales-report-actions,
  body.is-printing-sales-report .selected-modal-close {
    display: none;
  }

  body.is-printing-order * {
    visibility: hidden;
  }

  body.is-printing-order .order-admin-card.is-print-target,
  body.is-printing-order .order-admin-card.is-print-target * {
    visibility: visible;
  }

  body.is-printing-order .order-admin-card.is-print-target {
    border: 0;
    box-shadow: none;
    gap: 14px;
    left: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  body.is-printing-order .order-admin-actions,
  body.is-printing-order .order-admin-actions * {
    display: none;
  }
}
