/* ============================================================
   TPV FARTUCU — diseño para iPad horizontal (≥ 1024×768)
   Estilo caja registradora: sobrio, grande, contundente.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --panel: #F4F4F4;
  --panel-2: #ECECEC;
  --border: #D7D7D7;
  --border-strong: #B5B5B5;
  --text: #111111;
  --text-soft: #555555;
  --black: #111111;
  --green: #15803D;
  --green-dark: #0F5C2E;
  --red: #B00020;
  --amber: #B45309;
  --blue: #1D4ED8;

  --c-crepes:     #C2410C;
  --c-gofres:     #92400E;
  --c-sandwiches: #166534;
  --c-cafeteria:  #44403C;
  --c-bebidas:    #1E40AF;
  --c-tartas:     #831843;
  --c-batidos:    #7C3AED;
  --c-cafes:      #6F4E37;
  --c-tes:        #0F766E;
  --c-granizados: #0284C7;
  --c-refrescos:  #1E40AF;
  --c-toppings:   #BE185D;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 16px;
  touch-action: manipulation;
}
/* La pantalla se reparte: cabecera arriba + zona principal abajo que ocupa
   TODO el resto. Asi el boton COBRAR queda SIEMPRE visible, aunque la cabecera
   sea mas alta o cambie el zoom. */
body { display: flex; flex-direction: column; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-family: inherit; }

/* TODO EN MAYÚSCULAS en la pantalla de caja (excepto lo que el usuario escribe) */
body.tablet,
body.tablet button,
body.tablet h1, body.tablet h2, body.tablet h3,
body.tablet .biz, body.tablet .pname, body.tablet .name,
body.tablet .ol-name, body.tablet .modal-sub, body.tablet summary,
body.tablet a { text-transform: uppercase; }
/* El texto que teclea la persona y el ticket no se fuerzan */
body.tablet input,
body.tablet textarea,
body.tablet .ticket { text-transform: none; }

/* ============================================================
   CABECERA
   ============================================================ */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 16px;
  background: #FFFFFF;
  border-bottom: 2px solid var(--border);
  height: 78px;
  gap: 12px;
}
.header-left  { display: flex; align-items: center; gap: 10px; justify-self: start; }
.header-center { display: flex; align-items: center; gap: 12px; justify-self: center; }
.header-right { display: flex; align-items: center; gap: 10px; justify-self: end; }

.hlogo { height: 50px; width: auto; display: block; }
/* Cualquier img dentro de cabeceras nunca debe desbordarse */
.header img,
.admin-wrap img,
.login-card img,
.stats-wrap img { max-height: 70px; width: auto; height: auto; display: block; }
.biz {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}

.btn-shift {
  background: #FFF;
  color: var(--text);
  border: 2px solid var(--border-strong);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  min-height: 56px;
  min-width: 180px;
}
.btn-shift.closed { background: var(--green); color: #fff; border-color: var(--green); }
.btn-shift:active { transform: scale(0.97); }

.btn-user {
  background: #111;
  color: #fff;
  border: 2px solid #111;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  min-height: 56px;
}
.btn-user:active { transform: scale(0.97); }

.emp-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 6px;
}
.emp-btn {
  background: #fff;
  border: 3px solid var(--border-strong);
  border-radius: 16px;
  padding: 18px 12px;
  font-size: 20px;
  font-weight: 900;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.emp-btn .av { font-size: 38px; line-height: 1; }
.emp-btn:active { transform: scale(0.97); }

.next-num-box {
  text-align: center;
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 6px 16px;
  min-width: 110px;
}
.next-num-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}
.next-num { font-size: 28px; font-weight: 900; line-height: 1; }

.btn-icon {
  background: #FFF;
  color: var(--text);
  text-decoration: none;
  border: 2px solid var(--border-strong);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.main {
  display: grid;
  grid-template-columns: 1fr 380px;
  flex: 1;
  min-height: 0;   /* ocupa el resto de la pantalla → el pedido y COBRAR siempre caben */
}

.catalog {
  padding: 14px;
  overflow-y: auto;
  background: #FAFAFA;
  -webkit-overflow-scrolling: touch;
}

/* FILTROS — botones grandes repartidos por todo el ancho */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
/* Botón de categoría = FOTO grande + nombre pequeño debajo */
.filter-btn {
  background: #FFF;
  border: 3px solid var(--border);
  color: var(--text);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}
.filter-btn:active { transform: scale(0.97); }
.filter-btn .fb-img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  display: block;
  background: #EEE;
}
.filter-btn .fb-all {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1px;
}
.filter-btn .fb-label {
  padding: 7px 4px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
}
/* Categoría seleccionada: marco negro grueso + etiqueta en negro */
.filter-btn.active { border-color: #111; box-shadow: 0 0 0 2px #111; }
.filter-btn.active .fb-label { background: #111; color: #fff; }

/* GRID PRODUCTOS — tarjetas grandes para el dedo */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.product {
  position: relative;
  background: #FFF;
  border: 3px solid var(--border);
  border-radius: 18px;
  padding: 14px 12px;
  text-align: center;
  user-select: none;
  aspect-ratio: 1 / 0.82;   /* casi cuadrado */
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.05s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.product:active { transform: scale(0.96); }
.product .name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.product .price {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
}
/* Borde de color por familia para reconocer de un vistazo */
.product[data-family="crepes"]     { border-top: 8px solid var(--c-crepes); }
.product[data-family="gofres"]     { border-top: 8px solid var(--c-gofres); }
.product[data-family="sandwiches"] { border-top: 8px solid var(--c-sandwiches); }
.product[data-family="cafes"]      { border-top: 8px solid var(--c-cafes); }
.product[data-family="tes"]        { border-top: 8px solid var(--c-tes); }
.product[data-family="granizados"] { border-top: 8px solid var(--c-granizados); }
.product[data-family="refrescos"]  { border-top: 8px solid var(--c-refrescos); }
.product[data-family="tartas"]     { border-top: 8px solid var(--c-tartas); }
.product[data-family="batidos"]    { border-top: 8px solid var(--c-batidos); }
.product[data-family="toppings"]   { border-top: 8px solid var(--c-toppings); }
.product .fam-tag { display: none; }
.product[data-family="crepes"]     .fam-tag { background: var(--c-crepes); }
.product[data-family="gofres"]     .fam-tag { background: var(--c-gofres); }
.product[data-family="sandwiches"] .fam-tag { background: var(--c-sandwiches); }
.product[data-family="cafes"]      .fam-tag { background: var(--c-cafes); }
.product[data-family="tes"]        .fam-tag { background: var(--c-tes); }
.product[data-family="granizados"] .fam-tag { background: var(--c-granizados); }
.product[data-family="refrescos"]  .fam-tag { background: var(--c-refrescos); }
.product[data-family="tartas"]     .fam-tag { background: var(--c-tartas); }
.product[data-family="batidos"]    .fam-tag { background: var(--c-batidos); }
.product[data-family="toppings"]   .fam-tag { background: var(--c-toppings); }

/* Foto pequena de la categoria en cada producto (centrada, encima del nombre,
   para ver de un vistazo que es sin tapar el texto) */
.product .prod-cat {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.18);
  background: #EEE;
}
/* Estrellita de la esquina para los favoritos */
.product .fav-star {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 22px;
  color: #FF9500;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}
/* Icono de la pestana FAVORITOS (estrella) */
.filter-btn .fb-fav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  background: #FF9500;
  color: #fff;
  font-size: 46px;
  line-height: 1;
}
/* Pestaña 2x1 */
.filter-btn .fb-2x1 {
  display: flex; align-items: center; justify-content: center;
  height: 84px; background: #B91C1C; color: #fff;
  font-size: 34px; font-weight: 900; letter-spacing: 1px;
}
/* Pestaña Camisetas */
.filter-btn .fb-shirt {
  display: flex; align-items: center; justify-content: center;
  height: 84px; background: #2563EB; color: #fff;
  font-size: 42px; line-height: 1;
}
/* Pestaña Toppings y salsas */
.filter-btn .fb-topping {
  display: flex; align-items: center; justify-content: center;
  height: 84px; background: #7B4B2A; color: #fff;
  font-size: 42px; line-height: 1;
}
/* Botón de inicio del 2x1 */
.dosxuno-start-wrap { grid-column: 1 / -1; display: flex; justify-content: center; padding: 30px 10px; }
.dosxuno-start {
  background: #B91C1C; color: #fff; border: 0; border-radius: 20px;
  padding: 34px 44px; font-size: 26px; font-weight: 900; text-align: center;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 18px rgba(185,28,28,0.35);
}
.dosxuno-start span { font-size: 16px; font-weight: 700; opacity: 0.92; }
/* Los dos huecos del 2x1 */
.dxu-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dxu-slot {
  border: 3px dashed var(--border-strong, #CFCFCF); border-radius: 16px;
  padding: 18px; text-align: center; min-height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.dxu-slot.filled { border-style: solid; }
.dxu-slot.free { border-color: #15803D; background: rgba(21,128,61,0.06); }
.dxu-title { font-weight: 900; text-transform: uppercase; font-size: 14px; letter-spacing: 0.5px; color: #777; }
.dxu-slot.free .dxu-title { color: #15803D; }
.dxu-name { font-size: 20px; font-weight: 800; line-height: 1.15; }
.dxu-tops { font-size: 14px; color: var(--c-toppings, #BE185D); }
.dxu-price { font-size: 22px; font-weight: 900; }
.dxu-slot.free .dxu-price { color: #15803D; }
.dxu-pick { background: #111; color: #fff; border: 0; border-radius: 14px; padding: 18px 22px; font-size: 18px; font-weight: 800; }
.dxu-change { background: #F0F0F0; border: 2px solid var(--border-strong, #ccc); border-radius: 10px; padding: 8px 16px; font-weight: 700; }

/* Caja de NOTAS mas grande y visible (en TODAS las ventanas) */
.notes-details { padding: 14px 18px !important; border-width: 2px !important; }
.notes-details summary {
  font-size: 19px !important;
  font-weight: 800 !important;
  padding: 6px 0 !important;
}
.notes-details summary::before { content: "📝 "; }
.notes-details textarea {
  font-size: 18px !important;
  min-height: 66px !important;
  padding: 12px !important;
}

/* Grupos de opciones (ventana del cafe) */
.opt-group { margin-top: 16px; }
.opt-title {
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777;
  margin-bottom: 8px;
}
/* Tiles grandes y cuadrados que llenan el ancho (aprovechan la pantalla) */
.opt-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.opt-btn {
  background: #F2F2F2;
  border: 3px solid var(--border-strong, #CFCFCF);
  border-radius: 16px;
  padding: 20px 14px;
  min-height: 96px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
}
.opt-btn:active { transform: scale(0.97); }
.opt-btn.on { background: #111; color: #fff; border-color: #111; }

/* Fondo de caja (ventana de abrir caja) */
.float-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.float-row label { font-weight: 800; font-size: 17px; }
.float-row input {
  width: 170px; padding: 14px; font-size: 22px; text-align: right; font-weight: 900;
  border: 2px solid var(--border-strong, #ccc); border-radius: 12px;
}
.float-total {
  display: flex; justify-content: space-between; align-items: center;
  background: #111; color: #fff; border-radius: 14px; padding: 14px 18px; margin-top: 8px;
  font-weight: 900; letter-spacing: 0.5px;
}
.float-total span:last-child { font-size: 26px; }

/* Botón HIELO en la línea de las bebidas (sin recargo) */
.ol-extras { margin-top: 8px; }
.hielo-btn {
  background: #EAF4FF;
  border: 2px solid #7FB3E8;
  color: #1D4ED8;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 16px;
  font-weight: 800;
}
.hielo-btn.on { background: #1D4ED8; color: #fff; border-color: #1D4ED8; }

.qty-bubble {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

/* ============================================================
   PANEL DE PEDIDO
   ============================================================ */
.order {
  background: var(--panel);
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;   /* permite que solo la lista scrollee; footer siempre visible */
}
.order-header {
  padding: 14px 16px;
  background: #111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.order-header h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.order-header .count {
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  min-width: 36px;
  text-align: center;
}
.order-lines {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.order-empty {
  text-align: center;
  color: var(--text-soft);
  padding: 50px 20px;
  font-size: 16px;
}

.order-group {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 2px solid var(--border);
}
.order-line {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ol-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.ol-name {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ol-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #F0F0F0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-strong);
}
.qty-stepper button {
  width: 38px;
  height: 44px;
  background: transparent;
  border: 0;
  font-size: 22px;
  font-weight: 800;
  color: #111;
}
.qty-stepper button:active { background: rgba(0,0,0,0.08); }
.qty-stepper .qty-val {
  min-width: 36px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  background: #fff;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 2px solid var(--border-strong);
  border-right: 2px solid var(--border-strong);
}
.qty-stepper.multi .qty-val {
  background: #111;
  color: #fff;
  border-radius: 0;
}

.ol-subtotal {
  font-size: 18px;
  font-weight: 800;
  min-width: 70px;
  text-align: right;
}

.del-btn {
  background: transparent;
  border: 2px solid var(--border-strong);
  border-radius: 10px;
  color: var(--red);
  font-size: 20px;
  font-weight: 800;
  width: 44px;
  height: 44px;
}

.order-toppings {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.order-note {
  margin-top: 8px;
  background: #FFF7E6;
  border-left: 4px solid #F0C36D;
  padding: 6px 10px;
  font-size: 13px;
  color: #8A5A00;
  border-radius: 6px;
  font-weight: 700;
}
.order-topping {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--c-toppings);
  padding: 4px 0;
}
.order-topping .ot-name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; line-height: 1.15; }
.order-topping .ot-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 2px solid var(--c-toppings);
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}
.order-topping .ot-ctrl button {
  width: 32px;
  height: 32px;
  border: 0;
  background: #fff;
  color: var(--c-toppings);
  font-size: 18px;
  font-weight: 800;
}
.order-topping .ot-ctrl button:active { background: rgba(190, 24, 93, 0.12); }
.order-topping .ot-qty {
  min-width: 20px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}
.order-topping .ot-price {
  min-width: 52px;
  text-align: right;
  font-weight: 700;
  flex: 0 0 auto;
}

/* FOOTER */
.order-footer {
  border-top: 2px solid var(--border);
  padding: 12px;
  background: #fff;
  flex-shrink: 0;   /* COBRAR nunca se comprime ni se sale de pantalla (F11) */
}
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding: 0 4px;
}
.order-total .label { font-size: 16px; font-weight: 800; color: var(--text-soft); text-transform: uppercase; letter-spacing: 1px; }
.order-total .amount { font-size: 36px; font-weight: 900; }

.btn-cobrar {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: 0;
  font-size: 26px;
  font-weight: 900;
  padding: 22px;
  border-radius: 14px;
  letter-spacing: 1px;
  min-height: 84px;
}
.btn-cobrar:disabled { background: #B0B0B0; }
.btn-cobrar:active:not(:disabled) { background: var(--green-dark); }

.btn-secondary {
  width: 100%;
  background: #FFF;
  color: var(--text);
  border: 2px solid var(--border-strong);
  font-size: 16px;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  margin-top: 8px;
}

/* Botón discreto de INVITACIÓN (deja el ticket a 0€). Pequeño y gris; resalta al activarse. */
.btn-invitacion {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: #B5B5B5;
  border: 1px dashed #D8D8D8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}
.btn-invitacion.on {
  background: #E8388A;
  color: #fff;
  border-style: solid;
  border-color: #E8388A;
  font-size: 14px;
  font-weight: 800;
}

/* Tarjeta de la bolsa de plástico: primer botón del catálogo, destacado */
.product.bolsa-card {
  background: #FFF7E6;
  border-color: #E7B84B;
}
.product.bolsa-card .name { color: #8A5A00; }

/* ============================================================
   LOCK SCREEN (caja cerrada)
   ============================================================ */
.lock-screen {
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 30px;
}
.lock-card {
  background: #fff;
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  max-width: 520px;
  width: 100%;
}
.lock-card .lock-logo { height: 90px; margin-bottom: 16px; }
.lock-card h1 { margin: 0 0 8px; font-size: 36px; font-weight: 900; }
.lock-card p { color: var(--text-soft); font-size: 18px; margin: 0 0 30px; }
.lock-sub { margin-top: 18px; font-size: 14px; color: var(--text-soft); }

.btn-giant {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 18px;
  padding: 28px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  min-height: 100px;
}
.btn-giant:active { background: var(--green-dark); }
.btn-giant.danger { background: var(--red); }

/* ============================================================
   MODALES (genérico)
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  padding: 16px;
  overflow-y: auto;
}
.modal {
  background: #fff;
  border-radius: 18px;
  padding: 12px 20px;
  max-width: 720px;
  width: 100%;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.wide { max-width: 97vw; width: 97vw; }
/* Cuerpo del modal: ocupa el espacio disponible; el pie queda fijo abajo */
.modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.modal-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--border);
}
.modal-foot .subtotal-box {
  flex: 1 1 auto;
  background: #111;
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px;
  min-height: 60px;
}
.modal-foot .subtotal-box .sb-lbl { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.modal-foot .subtotal-box .sb-val { font-size: 26px; font-weight: 900; }
.modal-foot .btn-cancel-modal { min-width: 150px; }
.modal-foot .btn-add-modal { min-width: 280px; }
.modal h2 { margin: 0 0 6px; font-size: 22px; text-align: center; font-weight: 900; }
.modal .modal-sub { text-align: center; color: var(--text-soft); font-size: 14px; margin-bottom: 14px; }
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 16px;
}
.btn-cancel-modal {
  background: #FFF;
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  padding: 18px;
  font-size: 18px;
  font-weight: 800;
  min-height: 60px;
  color: var(--text);
}
.btn-add-modal {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 18px;
  font-size: 20px;
  font-weight: 900;
  min-height: 60px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* MODAL PRODUCTO + TOPPINGS + CANTIDAD */
.prod-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 8px;
}
.prod-head .ph-info { min-width: 0; }
.prod-head .pem { font-size: 60px; line-height: 1; }
.prod-head .pname { font-size: 24px; font-weight: 900; }
.prod-head .pprice { font-size: 18px; color: var(--text-soft); font-weight: 700; }
.prod-head .ph-qty { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.prod-head .ph-qty-lbl { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-soft); }

.qty-stepper { display: flex; align-items: center; gap: 8px; }
.qty-stepper button {
  width: 52px; height: 52px; font-size: 30px;
  border-radius: 12px; border: 2px solid var(--border-strong);
  background: #fff; font-weight: 800; color: var(--text);
}
.qty-stepper .qty-val {
  min-width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900;
}

.toppings-block .tlbl {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-toppings);
  margin-bottom: 10px;
}
.toppings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
/* Pestañas de tipos de extra (Salsas / Crujientes / Nata / Bola de helado) */
.extra-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.etab {
  position: relative;
  flex: 1 1 0;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border: 3px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  line-height: 1.1;
}
.etab .etab-ic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.etab.on { border-color: var(--c-toppings); background: rgba(190, 24, 93, 0.08); color: var(--c-toppings); }
.etab .etab-badge {
  position: absolute;
  top: -8px; right: -8px;
  min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: 999px;
  background: var(--c-toppings); color: #fff;
  font-size: 15px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
/* Cabecera del tipo activo */
.extra-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-toppings);
}
.extra-head .tgroup-price { font-size: 14px; font-weight: 800; color: var(--text-soft); text-transform: none; letter-spacing: 0; }
/* Extra "hazlo a tu gusto" = BOTÓN CUADRADO grande. Tocar suma 1. */
.top-sq {
  position: relative;
  min-height: 112px;
  background: #fff;
  border: 3px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 5px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.top-sq:active { transform: scale(0.96); }
.top-sq .ts-name { font-size: 17px; font-weight: 800; line-height: 1.15; overflow-wrap: normal; word-break: normal; hyphens: none; }
.top-sq .ts-price { font-size: 15px; font-weight: 700; color: var(--text-soft); }
.top-sq.on { border-color: var(--c-toppings); background: rgba(190, 24, 93, 0.08); }
.top-sq.on .ts-price { color: var(--c-toppings); }
.top-sq .ts-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 26px; height: 26px; padding: 0 5px;
  border-radius: 999px;
  background: var(--c-toppings); color: #fff;
  font-size: 15px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.top-sq .ts-minus {
  position: absolute;
  top: 4px; left: 4px;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 2px solid var(--c-toppings);
  background: #fff; color: var(--c-toppings);
  font-size: 20px; font-weight: 900; line-height: 1;
}
/* Cabecera de cada sección de extras (Salsas / Crujientes / Nata / Bola de helado) */
.tgroup-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-toppings);
  margin: 8px 0 5px;
  font-size: 15px;
}
.toppings-block > .tgroup-hd:first-child { margin-top: 0; }
.tgroup-hd .tg-t { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tgroup-hd .tg-ic { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.tgroup-hd .tgroup-price { font-size: 13px; }
.tgroup-hd .tgroup-price {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
}
/* Nombre del extra: completo, puede ocupar 2 líneas, nunca se recorta */
.topping-chip .tname {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
  hyphens: none;
  font-size: 12px;
  line-height: 1.12;
}
.topping-chip {
  background: #FFF;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  min-height: 76px;
}
.topping-chip.on {
  background: rgba(190, 24, 93, 0.10);
  border-color: var(--c-toppings);
  color: var(--c-toppings);
}
.topping-chip .tprice { font-size: 13px; color: var(--text-soft); font-weight: 700; }
.topping-chip.on .tprice { color: var(--c-toppings); }
.topping-chip .tqty {
  background: var(--c-toppings);
  color: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 800;
}
.topping-chip-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topping-chip-actions button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--c-toppings);
  background: #fff;
  color: var(--c-toppings);
  font-weight: 800;
  font-size: 18px;
  flex: 0 0 auto;
}

/* Ventana mínima con UNA opción (refresco con hielo / batido con nata).
   Botón PEQUEÑO y a un lado, para que no se pulse por error (lo normal es NO pedirlo). */
.opcion-body { padding: 10px 0 4px; }
/* Opción normal (visible): p.ej. nata en batidos */
.opcion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 14px 30px;
  border: 3px solid var(--border-strong);
  border-radius: 14px;
  background: #fff;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text);
}
.opcion-toggle.on {
  border-color: var(--c-toppings);
  background: rgba(190, 24, 93, 0.10);
  color: var(--c-toppings);
}
.opcion-toggle.on::after { content: '  ✓'; }
/* Opción poco habitual (pequeña): p.ej. hielo en refrescos */
.opcion-toggle.small {
  min-height: 44px;
  padding: 8px 16px;
  border-width: 2px;
  font-size: 15px;
  color: var(--text-soft);
}

/* MODAL PAGO */
.pay-total {
  text-align: center;
  font-size: 56px;
  font-weight: 900;
  margin: 8px 0 22px;
  letter-spacing: 1px;
}
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-btn {
  background: #fff;
  border: 3px solid var(--border-strong);
  border-radius: 16px;
  padding: 30px 16px;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 180px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pay-btn:active { transform: scale(0.97); }
.pay-btn .ico { font-size: 72px; line-height: 1; }
.pay-btn.cash { border-color: var(--green); color: var(--green); }
.pay-btn.card { border-color: var(--blue); color: var(--blue); }

.pay-confirm-box {
  text-align: center;
  padding: 22px;
  background: #F5F5F5;
  border-radius: 14px;
  margin-bottom: 14px;
}
.pay-confirm-box .ico { font-size: 80px; line-height: 1; }
.pay-confirm-box .picked { font-size: 36px; font-weight: 900; margin: 6px 0 0; }
.pay-confirm-box .picked.cash { color: var(--green); }
.pay-confirm-box .picked.card { color: var(--blue); }
.pay-confirm-box .lbl { font-size: 12px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 1px; }

.btn-confirm {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: 0;
  font-size: 22px;
  font-weight: 900;
  padding: 22px;
  border-radius: 14px;
  min-height: 80px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-revert {
  width: 100%;
  background: #fff;
  color: var(--amber);
  border: 2px solid var(--amber);
  font-size: 16px;
  font-weight: 800;
  padding: 14px;
  border-radius: 12px;
  margin-top: 10px;
}

/* ── EFECTIVO: botones rápidos y caja de cambio ── */
.cash-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.cash-quick {
  flex: 1 1 auto;
  min-width: 70px;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 14px 10px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: all .15s;
}
.cash-quick:active,
.cash-quick.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.cambio-box {
  border-radius: 14px;
  padding: 16px 20px;
  text-align: center;
  margin: 10px 0;
  transition: background .2s;
}
.cambio-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #555;
  margin-bottom: 4px;
}
.cambio-valor {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: #111;
}
.btn-confirm:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.btn-cancel {
  width: 100%;
  background: transparent;
  color: var(--text-soft);
  border: 0;
  font-size: 14px;
  padding: 10px;
  margin-top: 4px;
  text-decoration: underline;
}

/* MODAL TICKET / WARNING */
.warn-box {
  background: #FEF3C7;
  border: 2px solid #B45309;
  color: #92400E;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 12px;
}
.ticket {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  background: #FAFAFA;
  border: 1px dashed var(--border-strong);
  padding: 18px;
  white-space: pre;
  line-height: 1.45;
  overflow-x: auto;
  border-radius: 10px;
}
.ticket .biz { font-size: 22px; font-weight: 900; text-align: center; letter-spacing: 2px; }
.ticket .center { text-align: center; }
.ticket .small { font-size: 12px; }
.ticket .tsub { font-size: 11px; }   /* complementos (base, toppings, notas): mas pequenos */
.ticket .total-line { font-size: 18px; font-weight: 900; text-align: center; }
.ticket .giant-num {
  font-size: 90px;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  letter-spacing: 6px;
  margin: 12px 0;
  font-family: "Courier New", Courier, monospace;
}
.ticket-logo { text-align: center; margin-bottom: 6px; }
.ticket-logo img { max-height: 70px; max-width: 200px; }

.ticket-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0;
  overflow-x: auto;
  padding-bottom: 0;
}
.tab-btn {
  background: #ECECEC;
  border: 2px solid var(--border);
  border-bottom: 0;
  padding: 12px 18px;
  border-radius: 10px 10px 0 0;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  color: #555;
  cursor: pointer;
}
.tab-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.tab-btn.failed { border-color: var(--red); color: var(--red); }
.tab-btn.failed.active { background: var(--red); color: #fff; border-color: var(--red); }
.ticket-note {
  background: #F0F7FF;
  border: 1px solid #BCDBFF;
  border-radius: 0 8px 8px 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1D4ED8;
  margin-bottom: 8px;
}

/* MODAL COMANDAS */
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-card {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.order-card-num {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
}
.order-card-meta { font-size: 13px; color: var(--text-soft); }
.order-card-total { font-size: 22px; font-weight: 900; }
.order-card-items {
  font-size: 13px;
  color: #333;
  margin: 6px 0 10px;
  line-height: 1.4;
}
.order-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.order-card-actions button {
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  border: 2px solid var(--border-strong);
  background: #fff;
  min-height: 56px;
}
.order-card-actions .b-reprint { background: #111; color: #fff; border-color: #111; }
.order-card-actions .b-invoice { background: var(--blue); color: #fff; border-color: var(--blue); }
.order-card .pay-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pay-tag.cash    { background: rgba(21, 128, 61, 0.12); color: var(--green); }
.pay-tag.card    { background: rgba(29, 78, 216, 0.12); color: var(--blue); }
.invoice-flag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* FORM FACTURA */
.inv-form label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0 4px;
}
.inv-form input,
.inv-form textarea {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 2px solid var(--border-strong);
  border-radius: 10px;
}
.inv-form textarea { min-height: 70px; }
.inv-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 16px 24px;
  border-radius: 14px;
  z-index: 999;
  max-width: 540px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.toast.ok    { background: var(--green); }
.toast.warn  { background: var(--amber); }
.toast.error { background: var(--red); }

/* ============================================================
   ADMIN (sin tocar layout caja)
   ============================================================ */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 24px; height: 100vh; overflow-y: auto; }
.admin-wrap h1 { margin: 0 0 6px; font-size: 24px; }
.admin-wrap .sub { color: var(--text-soft); margin-bottom: 20px; }
.admin-section {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.admin-section h2 { margin: 0 0 14px; font-size: 18px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.admin-table th { font-size: 11px; text-transform: uppercase; color: var(--text-soft); letter-spacing: 1px; }
.admin-table input, .admin-table select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 13px;
}
.admin-table .col-emoji  { width: 50px; text-align: center; }
.admin-table .col-price  { width: 90px; }
.admin-table .col-family { width: 140px; }
.admin-table .col-active { width: 80px; text-align: center; }
.admin-table .col-actions { width: 160px; text-align: right; }

.btn { display:inline-block; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border-strong); background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn.primary { background: #111; color: #fff; border-color: #111; }
.btn.danger  { background: #fff; color: var(--red); border-color: #F5C6C6; }
.btn.ok      { background: var(--green); color: #fff; border-color: var(--green); }
.btn.warn    { background: var(--amber); color: #fff; border-color: var(--amber); }

.family-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.tag-crepes     { background: var(--c-crepes); }
.tag-gofres     { background: var(--c-gofres); }
.tag-sandwiches { background: var(--c-sandwiches); }
.tag-cafeteria  { background: var(--c-cafeteria); }
.tag-bebidas    { background: var(--c-bebidas); }
.tag-tartas     { background: var(--c-tartas); }
.tag-toppings   { background: var(--c-toppings); }

.add-form { display: grid; grid-template-columns: 70px 1fr 160px 110px auto; gap: 8px; align-items: center; margin-top: 10px; }
.add-form input, .add-form select { padding: 8px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 13px; }
.printer-row { display: grid; grid-template-columns: 1fr 1fr 90px auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.printer-row:last-child { border-bottom: none; }
.printer-row .pn { font-weight: 800; }
.printer-row input { padding: 8px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 13px; }
.history-line {
  display: grid;
  grid-template-columns: 90px 130px 1fr 90px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.history-line .num { font-weight: 800; }
.history-line .total { text-align: right; font-weight: 800; }
.history-line .items { color: var(--text-soft); font-size: 12px; }

/* ============================================================
   STOCK / MATERIALES
   ============================================================ */
/* Puntito rojo de aviso en el botón Stock de la cabecera */
.stock-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  margin-left: 6px;
  vertical-align: middle;
  animation: stock-pulse 1.2s infinite;
}
@keyframes stock-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.stock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.stock-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: #fff;
}
.stock-row.ok    { border-color: var(--green); }
.stock-row.medio { border-color: var(--amber); background: #FFFBEB; }
.stock-row.bajo  { border-color: var(--red); background: #FDECEA; }
.stock-info .stock-name { font-size: 18px; font-weight: 800; }
.stock-info .stock-min { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.stock-qty {
  font-size: 34px;
  font-weight: 900;
  min-width: 70px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stock-row.ok    .stock-qty { color: var(--green); }
.stock-row.medio .stock-qty { color: var(--amber); }
.stock-row.bajo  .stock-qty { color: var(--red); }
.stock-add-btn {
  background: var(--black);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 800;
  min-height: 56px;
  white-space: nowrap;
}
.stock-add-btn:active { transform: scale(0.97); }

.stock-quick-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.stock-quick {
  flex: 1;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 16px 10px;
  font-size: 18px;
  font-weight: 900;
}
.stock-quick:active { background: var(--green); border-color: var(--green); color: #fff; }

/* Desglose en packs (ej. "3 tartas y 4 trozos") */
.stock-pack {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  margin-top: 2px;
}
.stock-qty .stock-unit {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  text-align: right;
  letter-spacing: 0.5px;
}
/* Equivalencia bajo el input (ej. "= 24 trozos") */
.stock-equiv {
  display: none;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  margin: -2px 0 8px;
}
/* Toggle packs / sueltos */
.stock-mode-toggle {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.stock-mode-toggle button {
  flex: 1;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 800;
}
.stock-mode-toggle button.on {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* Selector obligatorio de "quién recibe la mercancía" */
.quien-label {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin: 6px 0 8px;
}
.quien-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.quien-btn {
  flex: 1 1 auto;
  min-width: 90px;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 800;
}
.quien-btn.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
