:root {
  --ui-green: #176147;
  --ui-ink: #173b2d;
  --ui-muted: #617369;
  --ui-border: #d8e1d5;
  --ui-soft: #edf3e7;
  --bg: #f6f4eb;
  --ui-radius: 18px;
  --forest-deep: #103d2e;
  --sunlight: #efb657;
  --leaf-shadow: 0 9px 28px rgb(35 66 41 / 9%);
}
body, body.canoita {
  font-family: 'DM Sans', sans-serif;
  background: radial-gradient(ellipse at top right, #e9efda 0, transparent 55%), #f6f4eb;
}
body :is(h1, h2, h3, .menu-card strong) {
  font-family: 'Archivo', 'DM Sans', sans-serif;
  letter-spacing: -0.025em;
}
body :is(button, .button, .btn-main, .chip, .area-menu a) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 52px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-color: transparent;
  box-shadow: 0 4px 0 #0e4632, 0 7px 16px rgb(24 75 49 / 13%);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 180ms ease, border-color 180ms ease;
}
body :is(button, .button, .btn-main) {
  background: linear-gradient(135deg, #227650, #135239);
  color: #fff;
}
body :is(button, .button, .chip):not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #0e4632, 0 12px 24px rgb(24 75 49 / 17%);
}
body :is(button, .button, .chip):not(:disabled):active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 1px 0 #0e4632, 0 3px 7px rgb(24 75 49 / 12%);
}
body :is(button, .button):disabled {
  box-shadow: none;
  opacity: 0.5;
}
body :is(.secondary, .button.secondary, .qty-btn, .icon-btn, .chip, .nav-btn,
  .number-grid button, .mesa-option, .product-option, .category-chip, .text-button) {
  background: #fffef8;
  color: var(--forest-deep);
  border: 1px solid #cbdac9;
  box-shadow: 0 3px 0 #d1dccb, 0 5px 12px rgb(35 66 41 / 5%);
}
body :is(.secondary, .chip, .number-grid button, .text-button):not(:disabled):hover {
  background: #eef4e6;
  box-shadow: 0 4px 0 #c6d4be, 0 8px 16px rgb(35 66 41 / 8%);
}
body :is(.btn-danger, .btn-delete, .btn-no, .danger, .text-button.danger) {
  background: #fff2eb;
  color: #9f3f25;
  border-color: #e8bea9;
  box-shadow: 0 3px 0 #e5b49c;
}
body :is(.btn-success, .btn-ok, .btn-listo, .btn-servido) {
  background: linear-gradient(135deg, #e6ad44, #e5bb5d);
  color: #3f310c;
  border-color: #d2a043;
  box-shadow: 0 4px 0 #b98227, 0 7px 15px rgb(132 86 18 / 12%);
}
body :is(.btn-success, .btn-ok, .btn-listo, .btn-servido):hover {
  box-shadow: 0 5px 0 #b98227, 0 9px 18px rgb(132 86 18 / 17%);
}
.tap-ripple {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: scale(0);
  animation: button-ripple 500ms ease-out forwards;
}
@keyframes button-ripple {
  from { transform: scale(0); opacity: 0.25; }
  to { transform: scale(1); opacity: 0; }
}
body :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea) {
  border-radius: 12px;
  border-color: #c2d2bf;
  min-height: 52px;
  padding: 13px 15px;
  background: #fffefb;
  box-shadow: inset 0 2px 3px rgb(26 57 33 / 3%);
}
body :is(.panel, .pedido-card, .service-board, .restaurant-card, .metric, .receipt-card,
  .staff-order, .access-card, .login-card, .menu-card, .cart-panel, .product-card, .accounting-gate) {
  border-radius: 20px;
  border-color: #dce4d6;
  box-shadow: var(--leaf-shadow);
}
body :is(.empty-state, .empty-text, .order-summary) {
  padding: 24px;
  border: 1px dashed #becfb6;
  border-radius: 16px;
  background: #f0f4e8;
}
body :is(.status-pill, .badge, .state) {
  border-radius: 9px;
  padding: 6px 10px;
  font-weight: 700;
}
.area-workspace :is(.container, .page, .inventory-page, .admin-wrap, .master-wrap) {
  width: 100%;
  max-width: 1680px;
  padding: 20px clamp(14px, 3vw, 42px) 32px;
  margin-inline: auto;
}
.area-workspace :is(.page-header, .topbar, .inventory-header, .page-heading) {
  padding: 12px 0 20px;
  margin-bottom: 14px;
}
.area-workspace :is(.page-header, .topbar, .inventory-header, .page-heading) h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
}
.area-workspace .panel {
  padding: clamp(20px, 2.5vw, 34px);
  margin-bottom: 18px;
}
.area-workspace .local-banner {
  min-height: 76px;
  padding: 10px clamp(14px, 3vw, 42px);
  border: 0;
  background: linear-gradient(110deg, #123e2d, #205a3c);
  box-shadow: 0 4px 20px rgb(13 47 30 / 14%);
}
.area-workspace .local-banner > strong {
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  letter-spacing: 0.045em;
}
.area-workspace .area-menu-toggle {
  width: 56px;
  min-width: 56px;
  min-height: 54px;
  padding: 7px;
  font-size: 29px;
  color: #fff8db;
  background: #ffffff17;
  border: 1px solid #ffffff30;
  box-shadow: 0 3px 0 #092d21;
}
.area-workspace .area-menu-toggle:hover {
  background: #ffffff28;
}
body.drawer-open {
  overflow: hidden;
}
.area-workspace dialog.area-menu {
  width: min(390px, 91vw);
  max-width: 91vw;
  padding: 26px 22px;
  background: #faf9ee;
  border-right: 1px solid #ced9c4;
  box-shadow: 18px 0 80px rgb(8 31 19 / 28%);
}
.area-menu[open]::backdrop {
  background: rgb(8 31 20 / 52%);
  backdrop-filter: blur(4px);
  animation: drawer-backdrop 300ms ease both;
}
.area-menu.is-closing::backdrop {
  animation: drawer-backdrop-out 230ms ease both;
}
@keyframes drawer-backdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drawer-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
.area-menu-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid #dce3ce;
}
.area-menu-heading h2 {
  margin: 0;
  font-size: 28px;
}
.area-workspace .local-banner .area-menu nav {
  gap: 10px;
  margin: 24px 0;
}
.area-workspace .local-banner .area-menu a {
  padding: 17px 18px;
  min-height: 58px;
  font-size: 17px;
  font-weight: 700;
  color: var(--forest-deep);
  border: 1px solid #d9e2cf;
  border-radius: 14px;
  background: #fffef8;
  box-shadow: 0 3px 0 #d6dfcd;
}
.area-workspace .local-banner .area-menu a[aria-current=page] {
  color: #fff;
  background: #1b6545;
  border-color: #1b6545;
  box-shadow: 0 4px 0 #114c33;
}
.area-workspace .local-banner .area-menu .session-logout {
  margin-top: 16px;
}
.area-workspace .local-banner .area-menu .session-logout button {
  width: 100%;
  padding: 15px;
  border-color: #c7d6bf;
  font-size: 16px;
  background: #eaf0e1;
}
.area-orders .order-views {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.area-orders .order-views button {
  min-height: 96px;
  padding: 22px;
  border-radius: 20px;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(18px, 2vw, 25px);
  color: #20513a;
  background: #fffef8;
  border: 1px solid #d4dfcb;
  box-shadow: 0 5px 0 #d6dfca, 0 12px 26px rgb(35 66 41 / 7%);
}
.area-orders .order-views button[aria-pressed=true] {
  color: #fff;
  background: linear-gradient(130deg, #267c52, #144b35);
  border-color: #1c6748;
  box-shadow: 0 5px 0 #103e2c, 0 14px 28px rgb(22 85 53 / 15%);
}
.area-orders .welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 45vh, 480px);
  padding: 38px 24px;
  text-align: center;
  background: radial-gradient(ellipse at top right, #e5eccf, transparent 65%), #fffef6;
  border: 1px solid #d3dfc3;
}
.area-orders .welcome h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  margin: 0 0 10px;
}
.area-orders .welcome p {
  max-width: 600px;
  font-size: 18px;
  margin: 0 0 24px;
}
.area-orders .welcome #startOrder {
  width: min(100%, 590px);
  min-height: 94px;
  font-size: clamp(23px, 3vw, 31px);
  border-radius: 22px;
  margin: 4px 0 16px;
}
.area-orders .welcome #savedHint:empty {
  display: none;
}
.area-orders .welcome #savedHint {
  margin: 12px 0 0;
  font-size: 15px;
}
.area-orders .wizard h2 {
  font-size: 28px;
}
.area-orders .steps li {
  border-radius: 11px;
  padding: 12px 18px;
}
.area-orders .menu-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.area-orders .menu-card {
  padding: 0;
  border-radius: 18px;
  text-align: left;
  background: #fffefb;
  box-shadow: 0 5px 0 #dce4d2, 0 9px 22px rgb(35 66 41 / 8%);
}
.area-orders .menu-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.area-orders .menu-card .card-body {
  padding: 18px;
}
.area-orders .menu-card strong {
  font-size: 19px;
  line-height: 1.25;
}
.area-orders .menu-card .card-price {
  font-size: 23px;
  margin-top: 12px;
  color: #1c6748;
}
.area-orders .menu-categories {
  gap: 9px;
  margin-block: 18px;
}
.area-orders .menu-categories button {
  padding: 12px 17px;
  font-size: 15px;
  min-height: 48px;
}
.area-orders .order-footer {
  color: var(--forest-deep);
  bottom: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 18px;
  background: #fffdf5;
  border: 1px solid #c9d8c0;
  box-shadow: 0 12px 38px rgb(20 58 37 / 18%);
}
.area-orders .order-footer .primary {
  min-width: 220px;
}
.area-orders .review-actions > button {
  flex: 1;
  min-height: 64px;
}
body .number-grid {
  gap: 12px;
}
body .number-grid button {
  min-height: 68px;
  padding: 12px 8px;
  font-size: 17px;
}
.area-kitchen .kitchen-summary {
  padding: 22px 26px;
  border-radius: 20px;
  border-color: #c5d7b7;
  background: linear-gradient(110deg, #e5edcf, #f2f5e7);
  box-shadow: var(--leaf-shadow);
  margin-bottom: 24px;
}
.area-kitchen .kitchen-summary h2 {
  font-size: 23px;
}
.area-kitchen .kitchen-summary h2 > strong {
  font-size: 38px;
  color: #165c3e;
}
.area-kitchen .dish-totals > span {
  padding: 11px 16px;
  border-radius: 12px;
  border-color: #c5d6ba;
  box-shadow: 0 3px 0 #cbd8c1;
  font-size: 17px;
}
.area-kitchen .dish-totals b {
  font-size: 24px;
}
.area-kitchen .kitchen-turn {
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 6px;
  border: 0;
}
.area-kitchen .turn-position strong {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #1d6141;
  color: #fff5d5;
  font-size: 30px;
  box-shadow: 0 5px 0 #0d452c;
}
.area-kitchen .turn-position time {
  padding-top: 8px;
  font-weight: 600;
}
.area-kitchen .turn-dishes {
  gap: 18px;
}
.area-kitchen .kitchen-dish {
  padding: 23px;
  border-radius: 20px;
  box-shadow: var(--leaf-shadow);
  border-color: #d6e0cf;
}
.area-kitchen .kitchen-dish h3 {
  font-size: 23px;
}
.area-kitchen .dish-destinations li {
  padding-block: 12px;
  font-size: 16px;
}
.area-kitchen .dish-actions .kitchen-action {
  flex: 1;
  min-height: 64px;
  font-size: 20px;
  padding: 16px;
}
.area-kitchen .kitchen-settings summary {
  border: 1px solid #c7d5be;
  border-radius: 12px;
  padding: 12px 20px;
  background: #fffef8;
}
body .chip-container {
  gap: 12px;
}
body .chip {
  min-width: 140px;
  justify-content: center;
  padding: 17px 22px;
  font-size: 17px;
}
body :is(.picker-trigger, .consulta-form button[type=submit]) {
  min-height: 74px;
  padding: 17px 22px;
  border-radius: 16px;
}
body :is(.metric, .global-metrics article) {
  padding: 24px;
}
body .metric strong {
  font-size: clamp(28px, 3vw, 40px);
}
body .table-wrap {
  border-radius: 14px;
}
body th {
  padding: 15px 13px;
  background: #e7eedb;
  color: #244e35;
  font-weight: 700;
}
body td {
  padding: 15px 13px;
}
body :is(.access-card, .login-card) {
  border-radius: 24px;
  box-shadow: 0 18px 54px rgb(21 57 32 / 14%);
}
body :is(.access-card, .login-card) button[type=submit] {
  width: 100%;
  min-height: 60px;
  font-size: 18px;
}
body .site-header {
  background: #fffef6;
}
body .site-footer {
  background: #103d2e;
}
@media (max-width: 760px) {
  .area-workspace :is(.container, .page, .inventory-page, .admin-wrap, .master-wrap) {
    padding: 16px 12px 28px;
  }
  .area-workspace .local-banner {
    min-height: 68px;
    padding: 9px 12px;
  }
  .area-workspace .local-banner > strong {
    font-size: 11px;
    letter-spacing: 0.015em;
  }
  .area-workspace .area-menu-toggle {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  .area-orders .order-views {
    gap: 8px;
    margin-bottom: 20px;
  }
  .area-orders .order-views button {
    min-height: 78px;
    border-radius: 14px;
    padding: 12px 6px;
    font-size: 15px;
  }
  .area-orders .welcome {
    min-height: 340px;
    padding: 30px 20px;
  }
  .area-orders .welcome p {
    font-size: 16px;
  }
  .area-orders .welcome #startOrder {
    min-height: 84px;
    font-size: 24px;
  }
  .area-orders .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .area-orders .menu-card img {
    height: 130px;
  }
  .area-orders .menu-card .card-body {
    padding: 13px;
  }
  .area-orders .menu-card strong {
    font-size: 16px;
  }
  .area-orders .menu-card .card-price {
    font-size: 20px;
  }
  .area-orders .order-footer {
    bottom: 8px;
    padding: 12px;
    gap: 12px;
  }
  .area-orders .order-footer .primary {
    min-width: 0;
    min-height: 56px;
  }
  .area-kitchen .kitchen-summary {
    padding: 18px;
  }
  .area-kitchen .kitchen-summary h2 {
    font-size: 20px;
  }
  .area-kitchen .dish-totals > span {
    padding: 9px 12px;
    font-size: 15px;
  }
  .area-kitchen .kitchen-turn {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }
  .area-kitchen .turn-position strong {
    width: 44px;
    height: 48px;
    border-radius: 12px;
    font-size: 25px;
  }
  .area-kitchen .kitchen-dish {
    padding: 16px;
  }
  .area-kitchen .kitchen-dish h3 {
    font-size: 20px;
  }
  .area-kitchen .dish-actions .kitchen-action {
    min-height: 58px;
    font-size: 18px;
  }
  .area-kitchen .dish-destinations .kitchen-action {
    padding: 10px 12px;
    min-height: 46px;
    font-size: 14px;
  }
  body .number-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 380px) {
  .area-workspace .panel {
    padding: 18px 14px;
  }
  .area-orders .order-views button {
    font-size: 13px;
  }
  .area-orders .menu-card .card-body {
    padding: 11px;
  }
  .area-orders .menu-card img {
    height: 105px;
  }
  .area-orders .menu-card strong {
    font-size: 14px;
  }
  .area-orders .menu-categories button {
    padding: 10px 13px;
    font-size: 13px;
  }
  .area-kitchen .dish-destinations li {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  body :is(button, .button, .chip, .area-menu a) {
    transition: background-color 100ms linear, border-color 100ms linear;
  }
  body :is(button, .button, .chip):not(:disabled):hover,
  body :is(button, .button, .chip):not(:disabled):active {
    transform: none;
  }
  .area-menu[open]::backdrop,
  .area-menu.is-closing::backdrop {
    animation: none;
  }
}
@media print {
  body {
    background: white;
  }
  body :is(.panel, .metric, .receipt-card, .print-receipt) {
    box-shadow: none;
  }
}
