/* Stock Andino — diseño v2 (moderno, mobile-first) */
:root {
  --azul: #0d3050; --azul-claro: #1d7dd8; --fondo: #eef2f7; --carta: #ffffff;
  --texto: #18222e; --gris: #64748b; --borde: #e2e8f0;
  --verde: #16a34a; --amarillo: #d97706; --rojo: #dc2626; --negro: #1e293b;
  --verde-bg: #ecfdf3; --amarillo-bg: #fef6e7; --rojo-bg: #fdeeee; --negro-bg: #e8e8e8;
  --sombra: 0 1px 2px rgba(13, 48, 80, .05), 0 4px 14px rgba(13, 48, 80, .06);
  --sombra-hover: 0 2px 4px rgba(13, 48, 80, .07), 0 10px 28px rgba(13, 48, 80, .12);
  --radio: 14px;
  --grad: linear-gradient(135deg, #1d7dd8, #135ca5);
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--fondo);
  color: var(--texto); font-size: 14.5px; letter-spacing: -0.01em; }
::selection { background: #cfe3f7; }
.hidden { display: none !important; }

/* Scrollbar sutil */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c4d0dd; border-radius: 99px; border: 2px solid var(--fondo); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Topbar ---------- */
#topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
  padding: 12px 18px; padding-top: calc(12px + env(safe-area-inset-top)); }
#topbar h1 { font-size: 17px; font-weight: 700; flex: 1; color: var(--azul);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.02em; }
#btn-menu { background: var(--azul); border: none; color: #fff; font-size: 17px; cursor: pointer;
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  box-shadow: var(--sombra); transition: transform .15s; }
#btn-menu:active { transform: scale(.92); }
#usuario-chip { font-size: 12px; font-weight: 600; color: var(--azul-claro); background: #e8f1fb;
  padding: 6px 13px; border-radius: 999px; white-space: nowrap; border: 1px solid #d3e5f7; }

/* ---------- Sidebar / drawer ---------- */
#nav { position: fixed; top: 0; left: 0; bottom: 0; width: 252px; z-index: 40;
  background: linear-gradient(180deg, #0e3457 0%, #081e35 100%);
  transform: translateX(-105%); transition: transform .28s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; padding: 14px 12px;
  padding-top: calc(14px + env(safe-area-inset-top)); box-shadow: 8px 0 40px rgba(4, 18, 33, .45); }
#nav.abierto { transform: translateX(0); }
.nav-brand { display: flex; align-items: center; gap: 11px; padding: 10px 10px 20px; }
.nav-brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav-brand b { color: #fff; font-size: 15.5px; display: block; letter-spacing: -0.02em; }
.nav-brand span { color: #7d97b1; font-size: 11px; font-weight: 500; }
#nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin: 2px 0;
  text-decoration: none; color: #aabfd3; font-weight: 500; font-size: 14px;
  border-radius: 11px; transition: background .15s, color .15s; }
#nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
#nav a.activo { background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(19, 92, 165, .45); }
#nav a#btn-salir { margin-top: auto; color: #7d97b1; font-size: 13px; }
#nav a#btn-salir:hover { color: #ff9d9d; background: rgba(220, 38, 38, .12); }
.nav-badge { margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1; }
.nav-badge.rojo { background: #dc2626; color: #fff; }
.nav-badge.azul { background: #1d7dd8; color: #fff; }
#nav a.activo .nav-badge.azul { background: rgba(255, 255, 255, .25); }

main { padding: 16px 14px 70px; max-width: 1120px; margin: 0 auto; }

@media (min-width: 900px) {
  #nav { transform: none; box-shadow: none; }
  #topbar { padding-left: 274px; }
  main { margin-left: 252px; max-width: none; padding: 22px 30px 70px; }
  #btn-menu { display: none; }
}

/* ---------- Cards ---------- */
.card { background: var(--carta); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--sombra);
  animation: aparecer .3s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card h2 { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; color: var(--azul);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; letter-spacing: -0.01em; }
.sub { color: var(--gris); font-size: 12.5px; line-height: 1.5; }
.fila { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sep { height: 1px; background: var(--borde); margin: 12px 0; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--carta); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 14px 12px; text-align: center; box-shadow: var(--sombra);
  transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sombra-hover); }
.kpi b { display: block; font-size: 25px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.kpi span { font-size: 10.5px; color: var(--gris); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Semáforo y badges ---------- */
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.verde { background: var(--verde); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.dot.amarillo { background: var(--amarillo); box-shadow: 0 0 0 4px rgba(217, 119, 6, .15); }
.dot.rojo { background: var(--rojo); box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }
.dot.negro { background: var(--negro); box-shadow: 0 0 0 4px rgba(30, 41, 59, .18); }
.dot.palpa { background: #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, .15); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; white-space: nowrap; letter-spacing: .01em; }
.badge.verde { background: var(--verde-bg); color: #117a39; border: 1px solid #c8ecd4; }
.badge.amarillo { background: var(--amarillo-bg); color: #a05a06; border: 1px solid #f5e1bb; }
.badge.rojo { background: var(--rojo-bg); color: #b91c1c; border: 1px solid #f6cdcd; }
.badge.negro { background: var(--negro); color: #fff; border: 1px solid var(--negro); }
.badge.gris { background: #f1f5f9; color: var(--gris); border: 1px solid var(--borde); }
.badge.azul { background: #e8f1fb; color: #135ca5; border: 1px solid #d3e5f7; }
.badge.palpa { background: #f3eefe; color: #6d28d9; border: 1px solid #e0d4fb; }

/* ---------- Ayuda / tooltips (hover en PC, tap->cartelito en celular) ---------- */
[data-tip] { cursor: help; }
@media (hover: hover) {
  [data-tip] { position: relative; }
  [data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute; left: 0; top: calc(100% + 7px); z-index: 100;
    width: max-content; max-width: 260px; white-space: normal; text-align: left;
    background: #1e293b; color: #fff;
    font-size: 11px; font-weight: 500; line-height: 1.45; letter-spacing: normal; text-transform: none;
    padding: 7px 10px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); pointer-events: none;
  }
  [data-tip]:hover::before {
    content: ''; position: absolute; left: 14px; top: calc(100% + 2px); z-index: 101;
    border: 5px solid transparent; border-bottom-color: #1e293b; pointer-events: none;
  }
}
.ayuda {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; background: #e2e8f0; color: #475569;
  font-size: 10px; font-weight: 700; line-height: 1; cursor: help; vertical-align: middle; margin-left: 3px;
}
.ayuda:hover { background: var(--azul); color: #fff; }

/* ---------- Desplegable de productos (importaciones) ---------- */
.prod-det > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; padding: 7px 12px; border-radius: 8px;
  background: var(--negro-bg); color: var(--texto); font-size: 13px; font-weight: 600;
  border: 1px solid var(--borde); user-select: none;
}
.prod-det > summary::-webkit-details-marker { display: none; }
.prod-det > summary::after { content: '▾'; color: var(--gris); font-size: 11px; margin-left: 2px; }
.prod-det[open] > summary::after { content: '▴'; }
.prod-det > summary:hover { background: #e9eef5; }
.prod-det[open] > summary { margin-bottom: 8px; }

/* ---------- Tarjetas plegables (ficha SKU: ventas, importaciones, movimientos) ---------- */
details.card-plegable > summary { list-style: none; cursor: pointer; user-select: none; }
details.card-plegable > summary::-webkit-details-marker { display: none; }
details.card-plegable > summary h2 { margin-bottom: 0; }
details.card-plegable > summary h2::after { content: '▾'; color: var(--gris); font-size: 12px; font-weight: 400; margin-left: auto; }
details.card-plegable[open] > summary h2 { margin-bottom: 12px; }
details.card-plegable[open] > summary h2::after { content: '▴'; }

/* ---------- Tablas ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--gris); font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 8px 9px; border-bottom: 1px solid var(--borde); }
td { padding: 11px 9px; border-bottom: 1px solid #edf2f7; vertical-align: top; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #eef5ff; }
tbody tr:last-child td { border-bottom: none; }
tr.clickable { cursor: pointer; }
/* En PC: encabezado de tabla fijo al scrollear (queda debajo del topbar) + filas alternadas (zebra) */
@media (min-width: 701px) {
  table.resp thead th { position: sticky; top: var(--topbar-h, 60px); z-index: 5;
    background: var(--carta); box-shadow: inset 0 -1px 0 var(--borde); }
  table.resp tbody tr:nth-child(even) { background: #f8fafc; }
  table.resp tbody tr:nth-child(even):hover { background: #eef5ff; }
}
.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  table.resp thead { display: none; }
  table.resp, table.resp tbody, table.resp tr, table.resp td { display: block; width: 100%; }
  table.resp tr { background: var(--carta); border: 1px solid var(--borde); border-radius: 12px;
    margin-bottom: 10px; padding: 10px 12px; box-shadow: none; }
  table.resp tr:hover { background: var(--carta); }
  table.resp td { border: none; padding: 3px 2px; }
  table.resp td.num { text-align: left; }
  table.resp td[data-l]::before { content: attr(data-l) ': '; color: var(--gris); font-size: 12px; font-weight: 600; }
}

/* ---------- Formularios ---------- */
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--borde);
  border-radius: 11px; background: #fff; color: var(--texto); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul-claro);
  box-shadow: 0 0 0 4px rgba(29, 125, 216, .12); }
label { display: block; font-size: 12px; color: var(--gris); margin: 10px 0 4px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr 1fr; } }
button.primario { background: var(--grad); color: #fff; border: none; border-radius: 11px;
  padding: 11px 20px; font-weight: 700; cursor: pointer; letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(19, 92, 165, .35); transition: transform .15s, box-shadow .15s, filter .15s; }
button.primario:hover { filter: brightness(1.07); box-shadow: 0 6px 20px rgba(19, 92, 165, .45); }
button.primario:active { transform: scale(.97); }
button.secundario { background: #fff; color: var(--azul-claro); border: 1.5px solid #c9def5;
  border-radius: 11px; padding: 9px 16px; font-weight: 600; cursor: pointer; transition: all .15s; }
button.secundario:hover { background: #f0f7fe; border-color: var(--azul-claro); }
button.chico { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.acciones { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- Login ---------- */
#login { max-width: 372px; margin: 9vh auto 0; padding: 28px 26px; border-radius: 20px;
  box-shadow: 0 10px 50px rgba(13, 48, 80, .14); }
#login .logo { text-align: center; margin-bottom: 20px; }
#login .logo img { width: 60px; height: 60px; border-radius: 17px; margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(13, 48, 80, .25); }
#login .logo b { font-size: 21px; color: var(--azul); display: block; letter-spacing: -0.03em; }
#login .logo .sub { margin-top: 2px; }

/* ---------- Buscador y filtros ---------- */
.filtros { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.filtros input[type="search"] { flex: 2; min-width: 170px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.4-3.4'/%3E%3C/svg%3E") 12px center no-repeat; padding-left: 36px; }
.filtros select { flex: 1; min-width: 124px; width: auto; }

/* ---------- Toast ---------- */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(14px);
  background: var(--azul); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 13.5px;
  font-weight: 600; z-index: 99; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
  box-shadow: 0 10px 30px rgba(8, 30, 53, .4); }
#toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Modal ---------- */
#modal-fondo { position: fixed; inset: 0; background: rgba(8, 25, 43, .5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fondoIn .2s ease; }
@keyframes fondoIn { from { opacity: 0; } }
@media (min-width: 700px) { #modal-fondo { align-items: center; } }
#modal { background: #fff; border-radius: 22px 22px 0 0; width: 100%; max-width: 568px; max-height: 88vh;
  overflow-y: auto; padding: 22px; animation: modalIn .25s cubic-bezier(.22,1,.36,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(26px); } }
@media (min-width: 700px) { #modal { border-radius: 20px; } }
#modal h3 { color: var(--azul); margin-bottom: 6px; letter-spacing: -0.02em; }

/* ---------- Carrito flotante ---------- */
#carrito-flot { position: fixed; bottom: 18px; right: 18px; background: var(--grad); color: #fff;
  border: none; border-radius: 999px; padding: 14px 22px; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 26px rgba(19, 92, 165, .5); cursor: pointer; z-index: 25;
  transition: transform .15s; animation: aparecer .25s ease both; }
#carrito-flot:hover { transform: translateY(-2px); }

/* ---------- Detalle SKU ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 9px; }
.stat { background: #f7fafd; border: 1px solid #e6edf4; border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-size: 17.5px; font-weight: 800; letter-spacing: -0.03em; }
.stat span { font-size: 11px; color: var(--gris); font-weight: 500; }
.alerta-comercial { border-radius: var(--radio); padding: 15px 17px; font-weight: 800; font-size: 15px;
  margin-bottom: 14px; display: flex; gap: 11px; align-items: center; letter-spacing: -0.01em;
  box-shadow: var(--sombra); animation: aparecer .3s ease both; }
.alerta-comercial.verde { background: var(--verde-bg); color: #117a39; border: 1px solid #c8ecd4; }
.alerta-comercial.amarillo { background: var(--amarillo-bg); color: #a05a06; border: 1px solid #f5e1bb; }
.alerta-comercial.rojo { background: var(--rojo-bg); color: #b91c1c; border: 1px solid #f6cdcd; }
.alerta-comercial.negro { background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; }
.alerta-comercial.palpa { background: #f3eefe; color: #6d28d9; border: 1px solid #e0d4fb; }

.explicacion { background: #f2f8fe; border: 1px solid #d9e9fa; border-left: 4px solid var(--azul-claro);
  padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-top: 10px; line-height: 1.55; }
a.link { color: var(--azul-claro); text-decoration: none; font-weight: 600; }
a.link:hover { text-decoration: underline; }

/* ---------- Panel de gerencia ---------- */
.decision { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin: 4px 0;
  border: 1px solid var(--borde); border-radius: 12px; text-decoration: none; color: var(--texto);
  transition: border-color .15s, background .15s, transform .15s; }
.decision:hover { background: #f6faff; border-color: #c9def5; transform: translateX(2px); }
.decision.aviso { background: #fffaf2; border-color: #f5e1bb; }
.decision.aviso:hover { background: #fef6e7; }
.dec-icono { font-size: 21px; flex: none; }
.decision > span:nth-child(2) { flex: 1; line-height: 1.45; }
.dec-ir { color: var(--azul-claro); font-weight: 800; font-size: 17px; flex: none; }
.imp-tl { padding: 4px 0; }
.tl-barra { height: 9px; background: #e8eef5; border-radius: 99px; overflow: hidden; }
.tl-prog { height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s ease; }
.tl-hitos { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--gris); text-align: center; }
.tl-hitos span b { color: var(--azul); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.tl-hitos span:first-child { text-align: left; } .tl-hitos span:last-child { text-align: right; }
.vp-fila { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 10px; align-items: center; padding: 5px 0; }
.vp-barra { height: 14px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.vp-barra > div { height: 100%; background: linear-gradient(90deg, #f87171, #dc2626); border-radius: 99px; }
@media (max-width: 600px) { .vp-fila { grid-template-columns: 70px 1fr; } .vp-fila .num, .vp-fila .badge { grid-column: 2; justify-self: end; } }

/* Fila seleccionada en Armar retiro */
tbody tr.fila-sel { background: #eaf4ff; }
tbody tr.fila-sel:hover { background: #e0eefb; }
tbody tr.fila-sel td:first-child { box-shadow: inset 3px 0 0 var(--azul-claro); }

/* ---------- Spinner de carga ---------- */
.cargando { display: grid; place-items: center; padding: 60px 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid #d7e4f2;
  border-top-color: var(--azul-claro); animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Portal distribuidores: carrito ---------- */
.po-pedir { display: flex; align-items: center; gap: 6px; }
.po-qty { width: 76px; padding: 6px 8px; text-align: center; }
.po-aviso { display: block; font-size: 10.5px; font-weight: 700; color: var(--amarillo); margin-top: 3px; }
.badge.chico { font-size: 9.5px; padding: 2px 7px; }
#po-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; background: var(--azul); color: #fff;
  padding: 10px 14px 10px 18px; border-radius: 14px; box-shadow: 0 8px 26px rgba(13, 48, 80, .45);
  max-width: calc(100vw - 24px); }
#po-bar .po-bar-txt { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
#po-bar button.primario { padding: 9px 16px; border-radius: 10px; }
.po-modal { position: fixed; inset: 0; background: rgba(13, 48, 80, .45); z-index: 70;
  display: none; align-items: flex-end; justify-content: center; animation: fondoIn .2s ease; }
.po-modal.abierto { display: flex; }
.po-modal-card { background: var(--carta); width: 100%; max-width: 640px; max-height: 88vh; overflow: auto;
  border-radius: 18px 18px 0 0; padding: 20px; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); }
.po-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.po-modal-head h2 { color: var(--azul); font-size: 18px; margin: 0; }
.po-x { background: #f1f5f9; border: none; border-radius: 9px; width: 34px; height: 34px; cursor: pointer; font-size: 15px; }
.po-total { margin-top: 12px; font-size: 16px; color: var(--azul); }
.po-exito { text-align: center; max-width: 460px; margin: 8vh auto 0; }
.po-exito-ico { font-size: 44px; }
.po-exito h2 { color: var(--verde); font-size: 22px; margin: 6px 0; }
.po-numero { font-size: 30px; font-weight: 800; color: var(--azul); letter-spacing: -0.01em; margin: 6px 0 10px; }
@media (min-width: 701px) { .po-modal { align-items: center; } .po-modal-card { border-radius: 18px; } }

/* ---------- Marca Ernesto Van Rossum (wordmark bicolor) ---------- */
.marca { font-weight: 800; letter-spacing: -0.02em; }
#login .marca .m1 { color: #1d2b6b; }
#login .marca .m2 { color: #1c75bc; }
.nav-brand .marca .m1 { color: #ffffff; }
.nav-brand .marca .m2 { color: #27aae1; }

/* ---------- Portal: pestañas + mis pedidos ---------- */
.po-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 2px solid var(--borde); flex-wrap: wrap; }
.po-tabs a { padding: 9px 14px; font-size: 13.5px; font-weight: 600; color: var(--gris); text-decoration: none;
  border-radius: 10px 10px 0 0; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.po-tabs a:hover { background: #f0f7fe; color: var(--azul-claro); }
.po-tabs a.activo { color: var(--azul); border-bottom-color: var(--azul-claro); background: #eef5fd; }
.po-ped { margin-bottom: 12px; }
.po-ped-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.po-ped-total { font-size: 17px; font-weight: 800; color: var(--azul); white-space: nowrap; }
.po-ped-items { margin: 8px 0 0 0; padding-left: 18px; font-size: 13px; }
.po-ped-items li { margin: 2px 0; }
.po-ped details summary { cursor: pointer; font-size: 13px; color: var(--azul-claro); font-weight: 600; margin-top: 8px; }

/* ---------- Oferta por sobrestock ---------- */
.po-of { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .03em; color: #fff;
  background: var(--verde); padding: 2px 7px; border-radius: 6px; }
.po-tach { text-decoration: line-through; color: var(--gris); font-size: 11px; }
.of-cfg { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.of-cfg label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--azul); }
.of-cfg label.of-check { flex-direction: row; align-items: center; gap: 7px; }
.of-cfg input[type=number] { width: 110px; }
.of-cfg input[type=checkbox] { width: 18px; height: 18px; }

/* ---------- Impresión: solo lista de retiro ---------- */
@media print {
  #topbar, #nav, .no-print, #carrito-flot, #po-bar { display: none !important; }
  main { margin: 0; padding: 0; max-width: none; }
  .card { border: none; box-shadow: none; animation: none; }
  body { background: #fff; font-size: 12px; }
}
