:root {
  --rojo: #ce1620;
  --rojo-osc: #a50f18;
  --verde: #7cbf2a;
  --verde-osc: #5a9a12;
  --crema: #fbf5ea;
  --tarjeta: #ffffff;
  --borde: #ecdfca;
  --texto: #2a1d14;
  --suave: #7a6a5c;
  --sombra: 0 2px 10px rgba(80, 40, 10, .08);
  --radio: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: Montserrat, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }

/* Barra superior */
.barra {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: var(--rojo);
  color: #fff;
}
.barra-logo { height: 52px; }
.sede-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 700;
  color: #fff;
}
.sede-etq { font-size: 11px; font-weight: 600; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.barra-der { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.barra-accion {
  background: #fff;
  color: var(--rojo);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
}
.reloj { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Distribución */
.pos {
  display: grid;
  grid-template-columns: 1fr 360px;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
}
.catalogo { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.filtros { padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.buscar {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: #fff;
}
.buscar:focus { outline: none; border-color: var(--verde); }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--sombra);
  white-space: nowrap;
}
.cat.activa { background: var(--verde); color: #fff; }

.productos {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  align-content: start;
  gap: 12px;
}
.grupo-titulo {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rojo);
}
.prod {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  min-height: 112px;
  padding: 12px;
  background: var(--tarjeta);
  border: 2px solid transparent;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  transition: transform .08s, border-color .15s;
}
.prod:active { transform: scale(.97); }
.prod:hover { border-color: var(--verde); }
.prod-nombre { font-weight: 700; font-size: 15px; line-height: 1.2; }
.prod-ing { font-size: 12px; color: var(--suave); line-height: 1.3; }
.prod-precio { margin-top: auto; font-weight: 800; color: var(--rojo); }
.prod-precio small { font-weight: 600; color: var(--suave); }
.prod.sin-precio { opacity: .55; }
.prod.sin-precio:hover { border-color: transparent; }
.prod.sin-precio .prod-precio { color: var(--suave); font-weight: 600; font-size: 13px; }
.vacio { grid-column: 1 / -1; text-align: center; color: var(--suave); padding: 40px 0; }

/* Pedido */
.pedido {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-left: 1px solid var(--borde);
}
.pedido-cab { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--borde); }
.pedido-cab h2 { margin: 0; font-size: 18px; }
.link { margin-left: auto; background: none; border: 0; color: var(--rojo); font-weight: 600; font-size: 14px; }
.cerrar-hoja { display: none; background: none; border: 0; font-size: 18px; padding: 4px 8px; }
.lineas { list-style: none; margin: 0; padding: 0 16px; flex: 1; overflow-y: auto; }
.lineas .vacio { padding: 48px 0; }
.linea { padding: 12px 0; border-bottom: 1px dashed var(--borde); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.linea-nombre { font-weight: 700; font-size: 14px; }
.linea-var { font-size: 12px; color: var(--suave); }
.linea-sub { font-weight: 800; text-align: right; }
.linea-ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.paso {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--borde);
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.cant { min-width: 24px; text-align: center; font-weight: 800; }
.nota-btn { margin-left: auto; background: none; border: 0; color: var(--suave); font-size: 13px; font-weight: 600; }
.nota-input {
  grid-column: 1 / -1;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1.5px solid var(--borde);
  border-radius: 10px;
}
.pedido-pie { padding: 14px 16px 16px; border-top: 1px solid var(--borde); }
.total-fila { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 18px; }
.total-fila strong { font-size: 26px; }

.btn-principal {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 12px;
  background: var(--verde);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.btn-principal:hover:not(:disabled) { background: var(--verde-osc); }
.btn-principal:disabled { background: #d9d1c3; }
.btn-sec {
  width: 100%;
  padding: 13px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
}

.barra-movil { display: none; }

/* Hojas */
.velo { position: fixed; inset: 0; background: rgba(42, 29, 20, .45); z-index: 20; }
.hoja {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.hoja-ancha { width: min(620px, calc(100vw - 32px)); }
.hoja h3 { margin: 0 0 4px; font-size: 20px; }
.hoja-sub { margin: 0 0 14px; color: var(--suave); font-size: 13px; }
.variantes, .sedes { display: grid; gap: 10px; margin: 14px 0; }
.opcion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--borde);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 16px;
}
.opcion:hover { border-color: var(--verde); }
.opcion strong { color: var(--rojo); }
.opcion.actual { border-color: var(--verde); background: #f3fae9; }

.cobro-total { font-size: 34px; font-weight: 800; color: var(--rojo); margin: 4px 0 14px; }
.metodos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.metodos button {
  padding: 12px 6px;
  border: 2px solid var(--borde);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
}
.metodos button.activo { border-color: var(--verde); background: #f3fae9; color: var(--verde-osc); }
.campo { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.campo input {
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  padding: 10px 12px;
  border: 2px solid var(--borde);
  border-radius: 12px;
}
.campo input:focus { outline: none; border-color: var(--verde); }
.billetes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.billetes button {
  padding: 8px 12px;
  border: 1.5px solid var(--borde);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
}
.cambio { min-height: 28px; font-size: 18px; font-weight: 700; }
.cambio.falta { color: var(--rojo); }
.cambio.ok { color: var(--verde-osc); }
.hoja-acciones { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 14px; }

.resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin: 14px 0; }
.dato { background: var(--crema); border-radius: 12px; padding: 12px; }
.dato span { display: block; font-size: 12px; color: var(--suave); font-weight: 600; }
.dato strong { font-size: 18px; }
.lista-ventas { list-style: none; margin: 0 0 14px; padding: 0; }
.venta { padding: 10px 0; border-bottom: 1px dashed var(--borde); display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; font-size: 14px; }
.venta-num { font-weight: 800; color: var(--rojo); }
.venta-items { color: var(--suave); font-size: 12px; grid-column: 2 / -1; }
.venta-total { font-weight: 800; }

.aviso {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--texto);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  max-width: calc(100vw - 32px);
}

/* Celular: el pedido pasa a una hoja desde abajo */
@media (max-width: 820px) {
  .barra { gap: 10px; }
  .barra-logo { height: 36px; }
  .reloj { display: none; }
  .barra-accion { padding: 7px 11px; font-size: 13px; }
  .pos { grid-template-columns: 1fr; height: calc(100dvh - 64px - 64px); }
  .productos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .pedido {
    position: fixed;
    z-index: 25;
    left: 0; right: 0; bottom: 0;
    height: 85dvh;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
    transform: translateY(100%);
    transition: transform .25s ease;
  }
  .pedido.abierto { transform: none; }
  .cerrar-hoja { display: block; }
  .barra-movil {
    position: fixed;
    left: 16px; right: 16px; bottom: 10px;
    height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: var(--verde);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(90, 154, 18, .4);
  }
  .barra-movil:disabled { background: #d9d1c3; box-shadow: none; }
  .aviso { bottom: 76px; }
}

/* Sesión */
.usuario-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  background: none;
  border: 0;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.usuario-salir { font-size: 11px; font-weight: 600; opacity: .8; text-decoration: underline; }
.pendientes {
  background: #ffd84d;
  color: var(--texto);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}
.sede-btn:disabled { cursor: default; }

.login {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--crema);
}
.login-caja {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  padding: 28px 24px;
  border-radius: 20px;
  box-shadow: var(--sombra);
}
.login-logo { width: 120px; align-self: center; margin-bottom: 6px; }
.login .campo input { font-size: 18px; font-weight: 600; }
.login-error { margin: 0; min-height: 20px; color: var(--rojo); font-weight: 600; font-size: 14px; }

/* Filtros de ventas */
.ventas-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.fecha {
  font: inherit;
  font-weight: 600;
  padding: 8px 10px;
  border: 1.5px solid var(--borde);
  border-radius: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  border: 1.5px solid var(--borde);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 13px;
}
.chips button.activa { background: var(--verde); border-color: var(--verde); color: #fff; }
.venta-sede { color: var(--suave); font-weight: 600; }
.venta.sin-enviar .venta-num { color: #b88a00; }

@media (max-width: 820px) {
  .usuario-btn #usuarioNombre { display: none; }
  .pendientes { padding: 5px 9px; font-size: 12px; }
}

/* ===== Menú de módulos ===== */
.barra-marca { display: flex; flex: none; }
.barra-logo { flex: none; }
.menu { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.menu::-webkit-scrollbar { display: none; }
.menu a {
  flex: none;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  opacity: .85;
}
.menu a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.menu a.activa { opacity: 1; background: #fff; color: var(--rojo); }

/* ===== Venta ===== */
.pedido-cab .link { margin-left: 0; }
.pedido-cab h2 { margin-right: auto; }
.caja-cerrada {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff4d6;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.caja-cerrada a { color: var(--rojo); font-weight: 800; }
.prod.con-foto { padding-top: 0; overflow: hidden; }
.prod-foto {
  width: calc(100% + 24px);
  margin: 0 -12px 4px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--crema);
}
.input-grande { font-size: 24px !important; font-weight: 800 !important; }

/* ===== Páginas de módulos (caja, inventario, productos) ===== */
.pagina { max-width: 1180px; margin: 0 auto; padding: 18px 16px 48px; }
.pagina-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.pagina-cab h1 { margin: 0; font-size: 24px; margin-right: auto; }
.pagina-cab .sub { color: var(--suave); font-weight: 600; font-size: 14px; }
.tarjeta-blanca { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 16px; }
.tarjeta-blanca + .tarjeta-blanca { margin-top: 14px; }
.tarjeta-blanca h2 { margin: 0 0 12px; font-size: 17px; }

.pestanas { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.pestanas button {
  flex: none;
  border: 0;
  background: #fff;
  box-shadow: var(--sombra);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 14px;
}
.pestanas button.activa { background: var(--verde); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  background: var(--verde);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--verde-osc); }
.btn:disabled { background: #d9d1c3; }
.btn.sec { background: #fff; color: var(--texto); border: 1.5px solid var(--borde); }
.btn.sec:hover:not(:disabled) { background: var(--crema); }
.btn.peligro { background: #fff; color: var(--rojo); border: 1.5px solid #f2c4c6; }
.btn.peligro:hover:not(:disabled) { background: #fdeeee; }
.btn.chico { padding: 6px 10px; font-size: 13px; border-radius: 10px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.campo input, .campo select, .campo textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}
.campo textarea { resize: vertical; min-height: 64px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--verde); }
.campo small { color: var(--suave); font-weight: 500; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--verde); }

.tabla-cont { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--suave);
  padding: 8px 10px;
  border-bottom: 1.5px solid var(--borde);
  white-space: nowrap;
}
.tabla td { padding: 9px 10px; border-bottom: 1px dashed var(--borde); vertical-align: middle; }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabla tr.clic { cursor: pointer; }
.tabla tr.clic:hover td { background: var(--crema); }
.tabla .grupo td { background: var(--crema); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--rojo); }
.tabla input.celda {
  font: inherit;
  width: 96px;
  padding: 7px 8px;
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  text-align: right;
}
.tabla input.celda:focus { outline: none; border-color: var(--verde); }

.estado {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.estado.ok { background: #eaf6dc; color: var(--verde-osc); }
.estado.bajo { background: #fff4d6; color: #9a6b00; }
.estado.no-hay { background: #fdeeee; color: var(--rojo); }
.estado.neutro { background: var(--crema); color: var(--suave); }
.mas { color: var(--verde-osc); font-weight: 700; }
.menos { color: var(--rojo); font-weight: 700; }

.barra-acciones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.barra-acciones .buscar { flex: 1; min-width: 180px; width: auto; }
.select {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 10px;
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  background: #fff;
}
.ayuda { color: var(--suave); font-size: 13px; margin: 6px 0 0; line-height: 1.4; }
.vacio-pag { text-align: center; color: var(--suave); padding: 36px 0; }

@media (max-width: 820px) {
  .barra { gap: 8px; padding: 0 10px; }
  .menu a { padding: 7px 9px; font-size: 13px; }
  .sede-btn { padding: 5px 8px; }
  .pagina { padding: 14px 12px 40px; }
}

/* ===== Editor de productos ===== */
.hoja-editor { width: min(820px, calc(100vw - 24px)); }
.editor-cab { display: flex; gap: 16px; align-items: flex-start; margin-top: 12px; }
.foto-caja { display: flex; flex-direction: column; gap: 8px; width: 160px; flex: none; }
.foto-prev {
  width: 160px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--crema);
  border: 1.5px dashed var(--borde);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--suave);
  font-size: 13px;
  font-weight: 600;
}
.foto-prev img { width: 100%; height: 100%; object-fit: cover; }
.editor-sec { margin: 20px 0 6px; font-size: 15px; color: var(--rojo); text-transform: uppercase; letter-spacing: .05em; }
.fila-var { display: grid; grid-template-columns: 1fr 160px 40px; gap: 8px; margin-bottom: 8px; }
.fila-var input {
  font: inherit;
  padding: 9px 10px;
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  min-width: 0;
}
.fila-var input:focus, .tabla select:focus { outline: none; border-color: var(--verde); }
.quitar {
  border: 1.5px solid var(--borde);
  background: #fff;
  border-radius: 10px;
  color: var(--rojo);
  font-weight: 800;
  font-size: 16px;
  min-height: 38px;
}
.tabla select, .tabla input.texto {
  font: inherit;
  font-size: 14px;
  padding: 7px 8px;
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  background: #fff;
  max-width: 100%;
}
.tabla input.texto { width: 100%; min-width: 110px; }
.miniatura { width: 44px; height: 33px; border-radius: 6px; object-fit: cover; background: var(--crema); display: block; }
.miniatura.vacia { display: grid; place-items: center; font-size: 10px; color: var(--suave); }
.editor-acciones { grid-template-columns: auto 1fr 2fr; margin-top: 22px; position: sticky; bottom: -20px; background: #fff; padding: 12px 0 4px; }
.chips button .cuenta { opacity: .65; font-weight: 600; margin-left: 4px; }

@media (max-width: 620px) {
  .editor-cab { flex-direction: column; align-items: stretch; }
  .foto-caja { width: 100%; flex-direction: row; align-items: center; }
  .foto-prev { width: 120px; }
  .fila-var { grid-template-columns: 1fr 110px 40px; }
  .editor-acciones { grid-template-columns: 1fr 1fr; }
  .editor-acciones #prodBorrar { grid-column: 1 / -1; }
}
.pagina > section + section { margin-top: 14px; }

/* Productos en solo lectura (cajeros) */
.solo-lectura .quitar, .solo-lectura #varAgregar, .solo-lectura #recAgregar,
.solo-lectura .foto-caja .barra-acciones, .solo-lectura #prodBorrar, .solo-lectura #prodGuardar { display: none !important; }
.solo-lectura .editor-acciones { grid-template-columns: 1fr; }
.solo-lectura input:disabled, .solo-lectura select:disabled, .solo-lectura textarea:disabled { background: var(--crema); color: var(--texto); opacity: 1; }
.solo-lectura .fila-var { grid-template-columns: 1fr 160px; }

/* Tarjetas con opciones: un toque por opción */
.prod.con-opciones { cursor: default; }
.prod.con-opciones:hover { border-color: transparent; }
.prod.con-opciones:active { transform: none; }
.prod-opciones { margin-top: auto; display: grid; gap: 6px; width: 100%; }
.prod-op {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  background: var(--crema);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.prod-op strong { color: var(--rojo); white-space: nowrap; }
.prod-op:hover { border-color: var(--verde); background: #f3fae9; }
.prod-op:active { transform: scale(.97); }

/* Ventas anuladas */
.venta.anulada .venta-num, .venta.anulada .venta-total { text-decoration: line-through; color: var(--suave); }
.venta-anulada { grid-column: 2 / -1; font-size: 12px; font-weight: 700; color: var(--rojo); }
.venta-anular { grid-column: 3; justify-self: end; font-size: 13px; }

/* Usuarios */
.fila-clave { display: flex; gap: 8px; }
.fila-clave input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace !important; }
.entregar { background: var(--crema); border-radius: 12px; padding: 14px 16px; margin: 12px 0 4px; display: grid; gap: 6px; font-size: 15px; }
.entregar code { font-family: ui-monospace, Menlo, monospace; font-size: 17px; font-weight: 700; user-select: all; }

/* Pedido: con o sin leche, tipo de pedido y observaciones */
.leche-btn {
  border: 1.5px solid var(--borde);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.leche-btn.activo { background: #fff4d6; border-color: #e8c35a; color: #8a6200; }
.cobro-etq { margin: 10px 0 6px; font-size: 13px; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .04em; }
#tiposPedido { margin-bottom: 4px; }
.campo textarea#observaciones { min-height: 54px; }
.tipo-pedido { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #eaf6dc; color: var(--verde-osc); font-weight: 700; font-size: 11px; }
.venta-obs { display: block; color: var(--texto); font-style: italic; }
