:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #171717;
  --muted: #666;
  --line: #ddd;
  --primary: #111827;
  --free: #22c55e;
  --busy: #ef4444;
  --pending: #f59e0b;
  --bill: #3b82f6;
  --disabled: #9ca3af;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
button {
  border: 0;
  border-radius: 14px;
  padding: 18px 24px; /* Aumentado el tamaño */
  font-size: 16px;
  font-weight: 800;
  background: var(--card);
  box-shadow: 0 4px 12px rgba(0,0,0,.12); /* Mejorada la sombra */
  cursor: pointer;
}
button:active { transform: scale(.98); }
input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-size: 16px;
}
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: rgba(244,245,247,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header h1 {
  margin: 0;
  font-size: 20px;
  flex: 1;
}
.screen { padding: 14px; max-width: 920px; margin: 0 auto; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.big-zone {
  position: relative;
  width: 100%;
  padding: 24px 36px; /* Aumentado el tamaño */
  font-size: 18px;
  background: var(--primary);
  color: white;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12); /* Mejorada la sombra */
  cursor: pointer;
}
.big-zone:hover { background: #151e27; }
.big-zone:active { transform: scale(.98); }
.muted { color: var(--muted); font-size: 14px; }
.panel {
  background: var(--card);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin-bottom: 14px;
}
.map {
  position: relative;
  height: min(70vh, 620px);
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.location {
  position: absolute;
  width: 18%;
  height: 15%;
  display: grid;
  place-items: center;
  border: 3px solid #111;
  border-radius: 18px;
  font-size: clamp(20px, 5vw, 34px);
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
}
.estado-libre { background: var(--free); }
.estado-ocupada { background: var(--busy); }
.estado-pendiente { background: var(--pending); }
.estado-cuenta_pedida { background: var(--bill); }
.estado-desactivada { background: var(--disabled); }
.door {
  position: absolute;
  background: #ef4444;
  color: white;
  font-weight: 900;
  display: grid;
  place-items: center;
  border-radius: 12px;
  padding: 8px;
}
.section-title {
  margin: 18px 0 10px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product {
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.order-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.order-line .name { font-weight: 800; }
.order-line.enviada { opacity: .62; }
.order-actions button { padding: 8px 12px; border-radius: 10px; }
.total {
  display: flex;
  justify-content: space-between;
  font-size: 22px;
  font-weight: 900;
  padding: 14px 0;
}
.primary {
  width: 100%;
  background: var(--primary);
  color: white;
  font-size: 20px;
  padding: 18px;
}
.danger { background: #991b1b; color: white; }
.secondary { background: #e5e7eb; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.tabs button { white-space: nowrap; padding: 10px 14px; }
@media (min-width: 800px) {
  .order-layout {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 14px;
  }
  .order-summary { position: sticky; top: 75px; align-self: start; }
}

.catalog-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}


.search-panel {
  position: sticky;
  top: 64px;
  z-index: 4;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.clear-search {
  width: 52px;
  height: 52px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
}

.active-tab {
  background: var(--primary);
  color: white;
}

.product strong {
  display: block;
}

.product-code {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product:active {
  outline: 3px solid rgba(17, 24, 39, .25);
}


/* V2 - UX camarero verano */
button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 24px;
}

.offline-banner {
  position: sticky;
  top: 61px;
  z-index: 9;
  background: #991b1b;
  color: white;
  text-align: center;
  font-weight: 900;
  padding: 10px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-block;
  border: 2px solid rgba(0,0,0,.25);
}
.dot-free { background: var(--free); }
.dot-busy { background: var(--busy); }
.dot-pending { background: var(--pending); }
.dot-bill { background: var(--bill); }

.location {
  color: #fff;
  border: 4px solid rgba(0,0,0,.58);
  text-shadow: 0 2px 4px rgba(0,0,0,.45);
  overflow: visible;
}

.location .loc-num {
  font-size: clamp(24px, 6vw, 40px);
  line-height: 1;
}

.location .loc-sub {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  font-size: clamp(10px, 2.5vw, 13px);
  font-weight: 900;
  text-shadow: none;
}

.estado-libre {
  background: var(--free);
  color: #052e16;
  text-shadow: none;
}
.estado-ocupada { background: var(--busy); }
.estado-pendiente {
  background: var(--pending);
  animation: pendingPulse 1.2s infinite;
}
.estado-cuenta_pedida { background: var(--bill); }
.estado-desactivada { background: var(--disabled); color: #111; text-shadow: none; }

@keyframes pendingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.55), 0 4px 10px rgba(0,0,0,.10); }
  50% { box-shadow: 0 0 0 10px rgba(245,158,11,0), 0 4px 10px rgba(0,0,0,.10); }
}

.badge {
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #111827;
  color: white;
  border: 2px solid white;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 1000;
  text-shadow: none;
}

.qty-panel {
  margin-top: 10px;
}

.qty-buttons {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.qty-buttons button {
  padding: 12px 0;
}

.qty-chip {
  display: inline-block;
  margin-right: 8px;
  background: #111827;
  color: white;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 13px;
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.summary-head h2 {
  margin: 0 0 8px;
}

.pending-pill {
  background: #f59e0b;
  color: #111;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 1000;
}

.summary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.danger-title {
  color: #b45309;
}

.order-line {
  grid-template-columns: minmax(0, 1fr) auto;
}

.order-line.pendiente {
  background: #fffbeb;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #fbbf24;
}

.order-line.enviada {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}

.order-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.order-actions button {
  flex: 1;
  min-width: 54px;
  padding: 10px 12px;
  border-radius: 10px;
}

.sent-check {
  font-weight: 1000;
  font-size: 20px;
}

.send-btn:disabled {
  background: #6b7280;
}

.product-code {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .screen { padding: 10px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .big-zone { width: 100%; padding: 24px 36px; font-size: 18px; } /* Aumentado el tamaño */
  .big-zone:hover { background: #151e27; }
  .big-zone:active { transform: scale(.98); }
  .location {
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }
  .estado-libre, .estado-ocupada, .estado-pendiente, .estado-cuenta_pedida {
    font-size: 14px;
  }
}


/* Home profesional - panel operativo camarero */
.home-screen {
  max-width: 960px;
}

.home-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
}

.home-hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
}

.home-hero .muted {
  color: #d1d5db;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 900;
  color: #fbbf24;
}

.service-chip {
  flex: 0 0 auto;
  background: #22c55e;
  color: #052e16;
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}

.home-block {
  margin-top: 18px;
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

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

.zone-card {
  min-height: 128px;
  padding: 22px;
  border-radius: 22px;
  background: #111827;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 28px rgba(17,24,39,.20);
  border: 1px solid rgba(255,255,255,.08);
}

.zone-card:active {
  transform: scale(.985);
}

.zone-name {
  display: block;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 950;
  line-height: 1;
}

.zone-action {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  color: #f9fafb;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.quick-card {
  min-height: 86px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
}

.quick-card span {
  display: block;
  font-size: 18px;
  font-weight: 950;
}

.quick-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.home-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.tool-card {
  background: #f9fafb;
  border: 1px solid var(--line);
}

@media (max-width: 720px) {
  .home-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-zones,
  .home-actions,
  .home-tools {
    grid-template-columns: 1fr;
  }

  .zone-card {
    min-height: 104px;
  }
}


/* V3 - Pantalla de comanda mobile-first */
.order-layout {
  padding-bottom: 180px;
}

.search-panel {
  top: 58px;
  border: 1px solid var(--line);
}

.search-row input {
  min-height: 58px;
  font-size: 18px;
  font-weight: 700;
}

.qty-panel {
  border: 1px solid var(--line);
}

.qty-buttons button {
  min-height: 58px;
  font-size: 20px;
  border-radius: 16px;
}

.tabs {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 4px 0 10px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  min-height: 56px;
  padding: 0 18px;
  white-space: nowrap;
  border-radius: 999px;
  flex: 0 0 auto;
}

.product {
  min-height: 88px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.product strong {
  font-size: 18px;
  line-height: 1.15;
}

.product > span:last-child {
  font-size: 18px;
  font-weight: 950;
}

.order-summary {
  border: 1px solid var(--line);
}

.order-line {
  font-size: 16px;
}

.order-line .name {
  font-size: 17px;
}

.order-actions button {
  min-height: 48px;
  font-size: 16px;
}

.send-btn {
  min-height: 64px;
  font-size: 22px;
  border-radius: 18px;
}

.order-summary .danger,
.order-summary button:not(.send-btn) {
  min-height: 56px;
  margin-top: 8px;
}

@media (max-width: 799px) {
  .order-layout {
    display: block;
    padding-bottom: 210px;
  }

  .order-layout > section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .search-panel {
    position: sticky;
    top: 58px;
    z-index: 6;
  }

  .qty-panel .muted {
    display: none;
  }

  .grid {
    gap: 10px;
  }

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

  .product {
    min-height: 96px;
    padding: 16px;
  }

  .order-summary {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 20;
    max-height: 48vh;
    overflow: auto;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    padding: 14px;
  }

  .summary-head h2 {
    font-size: 18px;
  }

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

  .order-line {
    padding: 8px;
  }

  .total {
    position: sticky;
    bottom: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    font-size: 24px;
    margin-top: 8px;
  }

  .send-btn {
    min-height: 66px;
  }
}

@media (max-width: 420px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .product {
    min-height: 82px;
  }

  .product strong {
    font-size: 17px;
  }

  .qty-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* V4 - Comanda inferior compacta en móvil */
@media (max-width: 799px) {
  .order-layout {
    padding-bottom: 150px;
  }

  .order-summary {
    max-height: none;
    overflow: visible;
    padding: 12px;
  }

  .order-summary .summary-actions,
  .order-summary .section-title,
  .order-summary .order-line,
  .order-summary > p.muted,
  .order-summary button:not(.send-btn):not(.danger) {
    display: none;
  }

  .order-summary .summary-head {
    margin-bottom: 6px;
  }

  .order-summary .summary-head h2 {
    display: none;
  }

  .order-summary .pending-pill {
    display: inline-flex;
    font-size: 13px;
    padding: 7px 10px;
  }

  .order-summary .total {
    position: static;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: 22px;
  }

  .order-summary .send-btn {
    min-height: 58px;
    font-size: 20px;
    margin-top: 8px;
  }

  .order-summary .danger {
    display: block;
    width: 100%;
    min-height: 54px;
    margin-top: 8px;
    border-radius: 16px;
    font-size: 18px;
  }
}


/* V5 - contador de producto ya añadido */
.product {
  position: relative;
}

.product-selected {
  border-color: #111827;
  box-shadow: 0 8px 20px rgba(17,24,39,.18);
}

.product-added {
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 1000;
}


/* V6 - Cajón desplegable de comanda */
.drawer-toggle {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
}

.order-main-actions {
  display: block;
}

.order-drawer-content {
  display: block;
}

@media (max-width: 799px) {
  .order-summary .order-drawer-content {
    display: none;
  }

  .order-summary.order-expanded .order-drawer-content {
    display: block;
    margin-top: 10px;
    max-height: 42vh;
    overflow: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .order-summary.order-expanded .summary-actions,
  .order-summary.order-expanded .section-title,
  .order-summary.order-expanded .order-line,
  .order-summary.order-expanded > p.muted,
  .order-summary.order-expanded button:not(.send-btn):not(.danger):not(.drawer-toggle) {
    display: initial;
  }

  .order-summary.order-expanded .summary-actions {
    display: grid;
  }

  .order-summary.order-expanded .order-line {
    display: grid;
  }

  .order-summary.order-expanded .danger {
    display: block;
  }

  .order-summary .drawer-toggle {
    display: block !important;
  }

  .order-summary.order-expanded {
    max-height: 72vh;
    overflow: hidden;
  }
}


/* V7 - Cajón de comanda más limpio en móvil */
@media (max-width: 799px) {
  .order-summary.order-expanded .summary-actions,
  .order-summary.order-expanded .section-title {
    display: none !important;
  }

  .order-summary.order-expanded .order-drawer-content {
    max-height: 46vh;
  }

  .order-summary.order-expanded .order-line {
    margin-bottom: 8px;
  }

  .order-summary.order-expanded .order-line .muted {
    display: none;
  }

  .order-summary.order-expanded .order-line.enviada {
    opacity: .75;
  }

  .order-summary.order-expanded .order-drawer-content > button {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    border-radius: 16px;
  }
}


/* V8 - Favoritos de camarero */
.favorites-grid .product {
  min-height: 104px;
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.favorites-grid .product .product-code {
  color: #d1d5db;
}

.favorites-grid .product-added {
  background: #22c55e;
  color: #052e16;
}

@media (max-width: 799px) {
  .favorites-grid .product {
    min-height: 96px;
  }
}


/* V9 - Compactación extrema para PDA */

@media (max-width: 799px) {

  /* Cantidades en una sola fila */
  .qty-buttons {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }

  .qty-buttons button {
    min-height: 52px;
  }

  /* Favoritos más compactos */
  .favorites-grid .product {
    min-height: 72px;
    padding: 12px;
  }

  .favorites-grid .product strong {
    font-size: 17px;
  }

  .favorites-grid .product .product-code {
    font-size: 11px;
  }

  /* Comanda cerrada más pequeña */
  .order-summary {
    padding: 10px !important;
  }

  .order-summary .total {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }

  .send-btn {
    min-height: 52px !important;
    font-size: 18px !important;
  }

  .drawer-toggle {
    min-height: 44px !important;
    margin-top: 6px !important;
  }

  /* Menos espacio entre bloques */
  .section-title {
    margin-bottom: 6px;
  }

  .favorites-grid,
  .grid.grid-2 {
    gap: 8px;
  }
}


/* V13 - Ventas del día */
.sales-card {
  background: #111827;
  color: #fff;
}

.sales-card small {
  color: #d1d5db;
}

.sales-screen {
  max-width: 960px;
}

.sales-hero {
  background: linear-gradient(135deg, #064e3b, #111827);
  color: #fff;
  padding: 24px;
}

.sales-hero h1 {
  margin: 6px 0;
  font-size: clamp(36px, 8vw, 56px);
  line-height: 1;
}

.sales-hero .muted {
  color: #d1fae5;
}

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

.sales-kpi span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.sales-kpi strong {
  display: block;
  font-size: 24px;
}

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

.sale-row span {
  display: block;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .sales-kpis {
    grid-template-columns: 1fr;
  }

  .sale-row {
    align-items: flex-start;
  }
}

/* Evitar zoom accidental/doble toque en PDA */
html, body, button {
  touch-action: manipulation;
}

button, input {
  -webkit-tap-highlight-color: transparent;
}

/* Sugerencia rápida bajo buscador */
.search-suggestion {
  width: 100%;
  margin-top: 10px;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #111827;
  color: #fff;
}

.search-suggestion small {
  display: block;
  margin-top: 4px;
  color: #d1d5db;
}
/* V16 - Ajuste TPV / pantallas estrechas */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1100px) {
  .screen {
    max-width: none;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }

  .order-layout {
    display: block;
    padding-bottom: 170px;
  }

  .order-layout > section {
    width: 100%;
    max-width: 100%;
  }

  .panel,
  .product,
  .search-panel,
  .qty-panel {
    max-width: 100%;
    box-sizing: border-box;
  }

  .qty-buttons {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

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

  .product {
    width: 100%;
    min-width: 0;
  }
}
/* V16 - Forzar modo PDA en TPV hasta 1100px */
@media (max-width: 1100px) {
  .order-layout {
    display: block;
    padding-bottom: 170px;
  }

  .order-summary {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 20;
    max-height: none;
    overflow: visible;
    padding: 10px !important;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
  }

  .order-summary .summary-head h2,
  .order-summary .order-drawer-content {
    display: none;
  }

  .order-summary.order-expanded .order-drawer-content {
    display: block;
    margin-top: 10px;
    max-height: 46vh;
    overflow: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .order-summary .total {
    position: static;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: 22px !important;
  }

  .send-btn {
    min-height: 56px !important;
    font-size: 20px !important;
  }

  .drawer-toggle {
    display: block !important;
    min-height: 44px !important;
  }
}
/* V16.1 - Corregir comanda fija abajo en TPV */
@media (max-width: 1100px) {
  .order-summary {
    position: fixed !important;
    top: auto !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: 999 !important;
    padding: 10px !important;
    border-radius: 22px !important;
  }

  .order-layout {
    display: block !important;
    padding-bottom: 190px !important;
  }

  .order-summary .summary-head h2,
  .order-summary .order-drawer-content {
    display: none !important;
  }

  .order-summary.order-expanded .order-drawer-content {
    display: block !important;
    max-height: 46vh !important;
    overflow: auto !important;
    margin-top: 10px !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--line) !important;
  }

  .order-summary .total {
    position: static !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
  }
}