/* elosso PARTS mayorista.
   Paleta sacada del logo (2026-09-03): rojo #D01818, azul #003052, hueso #FAF9F7.
   La estructura es azul, la accion es roja, el fondo nunca es blanco puro.
   El layout es el de una lista de precios: tabla densa, buscador arriba. */

:root {
  --rojo: #D01818;
  --rojo-oscuro: #A81313;
  --azul: #003052;
  --azul-medio: #1B4A6B;
  --hueso: #FAF9F7;
  --linea: #E2DFDA;
  --texto: #23282D;
  --tenue: #6C7378;
  --verde: #157A47;
  --verde-fondo: #E4F3EA;
  --amarillo: #8A6300;
  --amarillo-fondo: #FBF1D6;
  /* derivados de la marca (myrst web los recalcula si el negocio sube su logo; estos son los de elosso PARTS) */
  --accion-fondo: #FDF2F2;
  --estructura-fondo: #EAF1F6;
  --estructura-fondo2: #F2F6F9;
  --barra-texto: #DCE6EC;
  --barra-tenue: #A9BECC;
  --barra-linea: #235273;
  /* los que SIGNIFICAN error: no cambian con la marca */
  --error: #D01818;
  --error-fondo: #FDECEC;
  --error-fondo2: #FBE3E3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--hueso);
  color: var(--texto);
  font: 14px/1.45 "Segoe UI", Tahoma, system-ui, sans-serif;
}

a { color: var(--azul-medio); }

/* --- encabezado ------------------------------------------------------- */

.barra {
  background: var(--azul);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.barra .adentro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
}
.marca img { height: 34px; width: 34px; border-radius: 6px; background: var(--hueso); }
.marca span small { display: block; font-weight: 400; font-size: 11px; opacity: .75; letter-spacing: 1.6px; }
.barra nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.barra nav a { color: var(--barra-texto); text-decoration: none; font-size: 13px; }
.barra nav a:hover { color: #fff; }
.barra nav a.activo { color: #fff; font-weight: 600; }

.chip-carro {
  background: var(--rojo);
  color: #fff !important;
  padding: 6px 13px;
  border-radius: 999px;
  font-weight: 600;
}
.chip-carro:hover { background: var(--rojo-oscuro); }

.quien { font-size: 12px; color: var(--barra-tenue); border-left: 1px solid var(--barra-linea); padding-left: 18px; }

/* --- estructura ------------------------------------------------------- */

main { max-width: 1280px; margin: 0 auto; padding: 22px 16px 60px; }

h1 { font-size: 21px; margin: 0 0 4px; color: var(--azul); }
h2 { font-size: 16px; margin: 0 0 12px; color: var(--azul); }
.sub { color: var(--tenue); font-size: 13px; margin: 0 0 18px; }

.tarjeta {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
}

.aviso {
  border-left: 4px solid var(--error);
  background: var(--error-fondo);
  padding: 11px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 13px;
}
.aviso.ok { border-color: var(--verde); background: var(--verde-fondo); }
.aviso.dato { border-color: var(--azul-medio); background: var(--estructura-fondo); }

/* --- filtros ---------------------------------------------------------- */

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}
.campo { display: flex; flex-direction: column; gap: 4px; }
.campo label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--tenue); }
.campo.ancho { flex: 1 1 340px; }

input[type=text], input[type=password], input[type=number], select, textarea {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid #C9CDD1;
  border-radius: 5px;
  background: #fff;
  color: var(--texto);
}
input[type=text]:focus, input[type=password]:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(0,48,82,.25);
  border-color: var(--azul-medio);
}

.boton {
  font: inherit;
  font-weight: 600;
  padding: 9px 16px;
  border: 0;
  border-radius: 5px;
  background: var(--rojo);
  color: #fff;
  cursor: pointer;
}
.boton:hover { background: var(--rojo-oscuro); }
.boton.secundario { background: #fff; color: var(--azul); border: 1px solid #C9CDD1; }
.boton.secundario:hover { background: #F1F2F3; }
.boton.chico { padding: 5px 11px; font-size: 12px; }

/* --- tabla de la lista ------------------------------------------------ */

.envoltorio-tabla { overflow-x: auto; border: 1px solid var(--linea); border-radius: 8px; background: #fff; }

table.lista { width: 100%; border-collapse: collapse; font-size: 13px; }
table.lista th {
  background: var(--azul);
  color: #fff;
  text-align: left;
  padding: 9px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
}
table.lista td { padding: 8px 10px; border-top: 1px solid var(--linea); vertical-align: middle; }
table.lista tbody tr:nth-child(even) { background: #FBFAF9; }
table.lista tbody tr:hover { background: var(--estructura-fondo2); }

.codigo { font-family: Consolas, monospace; font-weight: 700; color: var(--azul); white-space: nowrap; }
.rubrito { font-size: 11px; color: var(--tenue); display: block; }
.desc { min-width: 340px; }
.marca-veh { white-space: nowrap; color: var(--tenue); }

.precio { text-align: right; white-space: nowrap; }
.precio .neto { font-weight: 700; color: var(--rojo); font-size: 15px; }
.precio .iva { display: block; font-size: 11px; color: var(--tenue); }

.luz {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.luz.verde { background: var(--verde-fondo); color: var(--verde); }
.luz.amarillo { background: var(--amarillo-fondo); color: var(--amarillo); }

.pedir { display: flex; gap: 6px; align-items: center; }
.pedir input { width: 62px; text-align: center; }
.ya { font-size: 11px; color: var(--verde); font-weight: 600; white-space: nowrap; }

/* --- paginado --------------------------------------------------------- */

.paginado { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 20px 0; font-size: 13px; }
.paginado a, .paginado span {
  padding: 7px 13px;
  border: 1px solid var(--linea);
  border-radius: 5px;
  background: #fff;
  text-decoration: none;
  color: var(--azul);
}
.paginado span.actual { background: var(--azul); color: #fff; border-color: var(--azul); font-weight: 600; }

/* --- totales ---------------------------------------------------------- */

.totales { margin-left: auto; width: 320px; font-size: 14px; }
.totales div { display: flex; justify-content: space-between; padding: 7px 0; }
.totales .grande { border-top: 2px solid var(--azul); margin-top: 6px; padding-top: 12px; font-size: 19px; font-weight: 700; color: var(--azul); }

/* --- entrar ----------------------------------------------------------- */

.entrar-caja { max-width: 380px; margin: 70px auto; }
.entrar-caja .logo { text-align: center; margin-bottom: 22px; }
.entrar-caja .logo img { width: 128px; height: 128px; }
.entrar-caja .campo { margin-bottom: 14px; }
.entrar-caja input { width: 100%; }
.entrar-caja .boton { width: 100%; padding: 11px; }

/* --- estados de pedido ------------------------------------------------ */

.estado {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  background: #EDEFF1; color: var(--tenue);
}
.estado.pendiente { background: var(--amarillo-fondo); color: var(--amarillo); }
.estado.recibido, .estado.entregado { background: var(--verde-fondo); color: var(--verde); }
.estado.cancelado { background: var(--error-fondo); color: var(--error); }

.pie { max-width: 1280px; margin: 0 auto; padding: 26px 16px; color: var(--tenue); font-size: 12px; border-top: 1px solid var(--linea); }

.clave-nueva { font-family: Consolas, monospace; font-size: 18px; font-weight: 700; color: var(--rojo); letter-spacing: 1px; }

@media (max-width: 720px) {
  .barra .adentro { height: auto; padding: 10px 12px; flex-wrap: wrap; gap: 10px; }
  /* en el celular el nombre se oculta pero Ajustes y Salir quedan a mano */
  .quien { border-left: 0; padding-left: 0; }
  .quien-nombre, .quien br { display: none; }
  .totales { width: 100%; }
  .desc { min-width: 220px; }
}

/* --- imágenes por código ------------------------------------------------ */
.boton.sin-fotos { color: var(--tenue); border-color: var(--linea); }
.boton .cuenta {
  display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 3px;
  border-radius: 8px; background: var(--rojo); color: #fff; font-size: 11px;
  line-height: 16px; text-align: center;
}
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.galeria figure { margin: 0; background: #fff; border: 1px solid var(--linea); border-radius: 8px; padding: 8px; }
.galeria img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--hueso); border-radius: 4px; display: block; }
.galeria form { margin-top: 6px; }
.subir { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.boton.chico.secundario { white-space: nowrap; }
.boton.boton-foto { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; color: #7A8085; }
.boton.boton-foto:hover { color: var(--azul); }
.boton-foto .cuenta { margin-left: 0; }
.boton.boton-foto.sin-fotos { opacity: .45; }

/* --- ventana emergente de cuentas -------------------------------------- */
.ventana { border: 1px solid var(--linea); border-radius: 10px; padding: 22px 24px; max-width: 460px; width: calc(100% - 32px); color: var(--texto); background: #fff; }
.ventana::backdrop { background: rgba(0, 48, 82, .45); }
.opciones-cuenta { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 18px; }
.opcion-cuenta { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--linea); border-radius: 8px; cursor: pointer; }
.opcion-cuenta:hover { border-color: var(--azul-medio); }
.opcion-cuenta:has(input:checked) { border-color: var(--rojo); background: var(--accion-fondo); }
.opcion-cuenta .texto { flex: 1; }
.opcion-cuenta em { font-style: normal; color: var(--tenue); }
.opcion-cuenta .monto { font-weight: 700; color: var(--azul); }
.botones-ventana { display: flex; gap: 10px; justify-content: flex-end; }
.totales .desglose { font-size: 12px; color: var(--tenue); }
.totales small { color: var(--tenue); font-weight: 400; }

/* --- 10% OFF ------------------------------------------------------------ */
.tachado { color: var(--tenue); font-size: 11px; font-weight: 400; margin-right: 3px; }
.precio .off {
  display: inline-block; margin-bottom: 2px; padding: 1px 6px; border-radius: 4px;
  background: var(--verde-fondo); color: var(--verde); font-size: 10px; font-weight: 700; letter-spacing: .3px;
}
.precio .neto .tachado { display: inline; }

/* --- visor de fotos ------------------------------------------------------ */
.visor { position: fixed; inset: 0; z-index: 50; background: rgba(0, 24, 41, .92); display: flex; align-items: center; justify-content: center; }
.visor[hidden] { display: none; }
.visor img { max-width: calc(100% - 120px); max-height: calc(100% - 90px); object-fit: contain; border-radius: 4px; background: var(--hueso); user-select: none; }
.visor-flecha, .visor-cerrar { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; border-radius: 50%; line-height: 1; }
.visor-flecha:hover, .visor-cerrar:hover { background: rgba(255, 255, 255, .3); }
.visor-flecha { top: 50%; width: 46px; height: 46px; margin-top: -23px; font-size: 32px; padding-bottom: 4px; }
.visor-flecha.ant { left: 14px; }
.visor-flecha.sig { right: 14px; }
.visor-cerrar { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 26px; padding-bottom: 3px; }
.visor-cuenta { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; letter-spacing: .5px; }
@media (max-width: 600px) {
  .visor img { max-width: calc(100% - 16px); }
  .visor-flecha { width: 40px; height: 40px; background: rgba(0, 24, 41, .55); }
  .visor-flecha.ant { left: 6px; } .visor-flecha.sig { right: 6px; }
}

/* una sola columna de precio: tachado gris arriba, precio con 10% OFF en rojo abajo */
.precio .tachado { display: block; margin: 0; font-size: 12px; }
.precio .off { margin: 2px 0 0; }
.precio .neto { display: block; }

/* --- WhatsApp flotante (solo clientes logueados) ----------------------------- */
.wa-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28); transition: transform .15s ease, box-shadow .15s ease;
}
.wa-flotante:hover { transform: scale(1.07); box-shadow: 0 6px 18px rgba(0, 0, 0, .34); }
@media (max-width: 600px) { .wa-flotante { right: 14px; bottom: 14px; width: 52px; height: 52px; } }

/* --- ventana de medidas ---------------------------------------------------- */
.opcion-cuenta.agotada { opacity: .5; cursor: not-allowed; }
.opcion-cuenta.agotada:hover { border-color: var(--linea); }
.opcion-cuenta .monto .tachado { margin-right: 4px; }
.pedir dialog { text-align: left; }

/* --- celular: las tablas pasan a TARJETAS (lista, carrito y pedidos) ---------- */
@media (max-width: 720px) {
  .envoltorio-tabla:has(table.tarjetas) { overflow: visible; border: 0; background: transparent; border-radius: 0; }
  table.tarjetas, table.tarjetas tbody, table.tarjetas tr, table.tarjetas td { display: block; }
  table.tarjetas thead { display: none; }
  table.tarjetas tbody tr, table.tarjetas tbody tr:nth-child(even), table.tarjetas tbody tr:hover { background: #fff; }
  table.tarjetas tbody tr {
    border: 1px solid var(--linea); border-radius: 10px; padding: 8px 14px 10px; margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  }
  table.tarjetas td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 6px 0; border-top: 0; text-align: right;
  }
  table.tarjetas td[data-label]::before {
    content: attr(data-label); flex: none; text-align: left; font-size: 11px;
    text-transform: uppercase; letter-spacing: .4px; color: var(--tenue);
  }
  table.tarjetas td:first-child { border-bottom: 1px solid var(--linea); padding-bottom: 8px; margin-bottom: 4px; justify-content: flex-start; gap: 10px; text-align: left; }
  table.tarjetas td:first-child .rubrito { display: inline; margin-left: 6px; }
  table.tarjetas td.desc { display: block; min-width: 0; text-align: left; font-size: 14px; line-height: 1.35; padding: 4px 0 8px; }
  table.tarjetas td.precio { white-space: normal; }
  table.tarjetas td.c-pedir { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--linea); }
  table.tarjetas td.c-pedir .pedir { width: 100%; }
  table.tarjetas td.c-pedir .pedir input { flex: 0 0 76px; width: 76px; }
  table.tarjetas td.c-pedir .pedir .boton { flex: 1; padding: 9px 14px; font-size: 14px; }
  table.tarjetas td.c-pedir .ya { white-space: nowrap; }
  table.tarjetas td.c-quitar, table.tarjetas td.c-ver { justify-content: flex-end; padding-top: 10px; }
  table.tarjetas td.c-ver .boton, table.tarjetas td.c-quitar .boton { width: 100%; text-align: center; }
  main { padding-bottom: 92px; }   /* aire para que el boton de WhatsApp no tape nada */
}

/* --- login: ojito para ver la clave ------------------------------------------ */
.con-ojo { position: relative; }
.con-ojo input { width: 100%; padding-right: 48px; }
.ojo {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  color: var(--tenue); display: flex; align-items: center; justify-content: center; border-radius: 6px;
}
.ojo:hover, .ojo[aria-pressed="true"] { color: var(--azul); }
@media (max-width: 720px) { .campo input, .campo select { font-size: 16px; } }  /* iPhone no hace zoom al escribir */

/* columna Stock centrada en la lista (solo computadora; en celular van las tarjetas) */
@media (min-width: 721px) { table.lista th.centro, table.lista td.centro { text-align: center; } }

/* --- codigo propio / ficha del administrador ---------------------------------- */
button.codigo-info { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-family: Consolas, monospace; font-weight: 700;
  color: var(--azul); border-bottom: 1px dotted var(--azul-medio); }
button.codigo-info:hover { color: var(--rojo); border-bottom-color: var(--rojo); }
.sku-admin { color: var(--tenue); font-family: Consolas, monospace; font-weight: 400; margin-left: 4px; }
.ficha-lista { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 18px; font-size: 14px; }
.ficha-lista dt { color: var(--tenue); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; align-self: center; }
.ficha-lista dd { margin: 0; text-align: right; }

/* --- alta de cliente: bloque de direccion de entrega ------------------------------ */
.titulo-form { flex: 1 1 100%; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--linea); font-size: 13px; font-weight: 700; color: var(--azul); }
.botones-form { flex: 1 1 100%; display: flex; gap: 10px; }

.debe-txt { color: var(--rojo); }

/* --- ficha del cliente --------------------------------------------------------- */
a.nro-cliente { font-family: Consolas, monospace; font-weight: 700; color: var(--azul); text-decoration: none; border-bottom: 1px dotted var(--azul-medio); }
a.nro-cliente:hover { color: var(--rojo); border-bottom-color: var(--rojo); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 18px; }
.kpi { background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: 12px 14px; }
.kpi .t { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--tenue); }
.kpi .v { font-size: 20px; font-weight: 700; color: var(--azul); margin-top: 2px; }
.kpi .d { font-size: 12px; color: var(--tenue); margin-top: 2px; }
.kpi.debe { border-color: #E7B4B4; background: #FDF4F4; }
.kpi.debe .v { color: var(--error); }
.kpi.aldia .v { color: var(--verde); }
.fichas { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 720px) { .fichas { grid-template-columns: 1fr; } }
.etiqueta-estado { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; background: #EEE; color: var(--tenue); }
.etiqueta-estado.ok { background: var(--verde-fondo); color: var(--verde); }
.etiqueta-estado.mal { background: var(--error-fondo2); color: var(--error); }
.titulo-ficha { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.titulo-ficha h1 { margin: 0; }

/* --- numero de cliente automatico y comprobantes ------------------------------ */
.nro-asignado { font-family: Consolas, monospace; font-weight: 700; color: var(--azul); padding: 9px 12px; border: 1px dashed var(--linea); border-radius: 6px; background: #FAF9F7; }
.nro-asignado small { font-family: inherit; font-weight: 400; color: var(--tenue); font-size: 11px; margin-left: 4px; }
label.adjuntar { cursor: pointer; }

/* --- configuracion ----------------------------------------------------------- */
.estado-aviso { padding: 9px 12px; border-radius: 8px; background: #F1F2F3; font-size: 13px; }
.estado-aviso.ok { background: var(--verde-fondo); color: var(--verde); }
.estado-aviso.mal { background: var(--amarillo-fondo); color: var(--amarillo); }
.ayuda { font-size: 12px; color: var(--tenue); margin-top: 4px; }

/* === TITULOS (2026-10-09): jerarquia mas clara en todo el sitio ================================ */
h1 { font-size: 28px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; color: var(--azul); margin: 6px 0 6px; }
h1::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 2px; background: var(--rojo); margin-top: 10px; }
h1 + .sub, h1 + p { margin-top: 12px; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.1px; color: var(--azul); margin: 0 0 12px; }
.tarjeta > h2:first-child { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--linea); }
.entrar-caja h1::after { margin-left: auto; margin-right: auto; }
.entrar-caja h1 { font-size: 24px; }
.titulo-ficha h1::after { display: none; }
.titulo-ficha { margin-bottom: 8px; }
@media (max-width: 720px) { h1 { font-size: 24px; } h2 { font-size: 16px; } }
/* titulos de las tablas: mas legibles */
table.lista th { font-size: 11.5px; font-weight: 700; letter-spacing: .7px; padding: 11px 10px; }

/* === comprobante de pago: la hojita, el visor y el adjuntar =================================== */
.doc-btn { position: relative; width: 38px; height: 38px; border: 1px solid #D5D9DD; border-radius: 9px; background: #fff; color: #7A8085;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.doc-btn:hover { border-color: var(--azul-medio); color: var(--azul); }
.doc-btn.cargado { color: var(--verde); background: var(--verde-fondo); border-color: #9CD3B3; }
.doc-btn.falta::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--error); border: 2px solid #fff; }
.doc-btn.cargado::after { content: "✓"; position: absolute; bottom: -5px; right: -5px; width: 15px; height: 15px; border-radius: 50%; background: var(--verde); color: #fff;
  font-size: 10px; line-height: 15px; text-align: center; border: 1.5px solid #fff; }
.doc-na { color: #B5BABE; }
th.col-doc, td.col-doc { text-align: center; width: 1%; white-space: nowrap; }
.ventana-ancha { max-width: 760px; }
.dc-visor { border: 1px solid var(--linea); border-radius: 8px; background: #F7F6F4; min-height: 160px; max-height: 62vh; overflow: auto;
  display: flex; align-items: center; justify-content: center; }
.dc-visor img { max-width: 100%; max-height: 62vh; display: block; }
.dc-visor iframe { width: 100%; height: 62vh; border: 0; background: #fff; }
.dc-vacio { padding: 36px 20px; color: var(--tenue); text-align: center; }
label.adjuntar-grande { display: inline-block; cursor: pointer; }

@media (max-width: 720px) {
  /* Mis pedidos / Pedidos en el celular: la tarjeta empieza por el numero y termina con la hojita y Ver */
  table.tarjetas.pedidos tbody tr { display: flex; flex-direction: column; }
  table.tarjetas.pedidos td.col-num { order: -1; border-bottom: 1px solid var(--linea); padding-bottom: 8px; margin-bottom: 4px; justify-content: flex-start; text-align: left; }
  table.tarjetas.pedidos td.col-doc { order: 98; border-bottom: 0; margin-bottom: 0; padding-bottom: 6px; justify-content: space-between; text-align: right; width: auto; }
  table.tarjetas.pedidos td.c-ver { order: 99; }
}

/* === Mis pedidos v2 (2026-10-09): numero de pedido con link, sin boton Ver ====================== */
a.nro-pedido { font-family: Consolas, monospace; font-weight: 700; font-size: 14px; color: var(--azul); text-decoration: none; border-bottom: 1px dotted var(--azul-medio); padding-bottom: 1px; }
a.nro-pedido:hover { color: var(--rojo); border-bottom-color: var(--rojo); }
.ver-detalle { display: none; }
table.pedidos td.col-num { white-space: nowrap; }
table.pedidos th.col-doc { width: 1%; }

/* la tarjeta del comprobante en el detalle del pedido: una fila compacta */
.comp-resumen { padding: 12px 16px; }
.comp-fila { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.comp-texto { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.comp-texto .sub { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  table.tarjetas.pedidos td.col-num { justify-content: space-between; }
  table.tarjetas.pedidos .ver-detalle { display: inline; font-size: 12px; font-weight: 600; color: var(--azul-medio); }
}

/* === Informar pagos (2026-10-09) ======================================================= */
.encabezado-pagina { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.encabezado-pagina .boton { margin-top: 6px; }
a.pill-pago { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: var(--error-fondo2); color: var(--error); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
a.pill-pago:hover { background: var(--error); color: #fff; }
@media (max-width: 720px) { .encabezado-pagina .boton { width: 100%; margin: 0 0 14px; } }

/* === Factura A / B en Mis pedidos ======================================================== */
.fac-btn { min-width: 36px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid #D5D9DD; background: #fff; cursor: pointer;
  font: 800 15px Consolas, monospace; color: var(--azul); }
.fac-btn:hover { border-color: var(--azul-medio); }
.fac-btn.lista { background: var(--verde-fondo); border-color: #9CD3B3; color: var(--verde); }
.fac-btn.pendiente { color: var(--tenue); border-style: dashed; background: #FAF9F7; }

/* === Configuracion: funciones que vienen despues ===================================== */
.pill-prox { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 10px; border-radius: 10px; background: var(--amarillo-fondo); color: var(--amarillo);
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.tarjeta.proximamente { border-style: dashed; background: #FDFCFB; }
details.requisitos { margin-top: 12px; font-size: 13px; }
details.requisitos summary { cursor: pointer; font-weight: 600; color: var(--azul-medio); }
details.requisitos ul { margin: 8px 0 0; padding-left: 20px; color: var(--tenue); }
details.requisitos li { margin-bottom: 4px; }

/* === Panel de Pedidos del administrador ================================================ */
.panel-pedidos { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 10px; margin: 0 0 12px; }
.panel-pedidos .kpi .v { font-size: 20px; }
.panel-pedidos .kpi { padding: 10px 14px; color: inherit; }
.panel-pedidos .kpi .v { font-size: 22px; }
.panel-pedidos .kpi .d { font-size: 11.5px; }
.panel-pedidos a.kpi:hover { border-color: var(--azul-medio); }
.kpi .d.sube { color: var(--verde); font-weight: 600; }
.kpi .d.baja { color: var(--rojo); font-weight: 600; }
.chips-estado { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
a.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--linea);
  color: var(--tenue); font-size: 12.5px; text-decoration: none; }
a.chip b { color: var(--azul); }
a.chip:hover { border-color: var(--azul-medio); }
a.chip.activo { background: var(--azul); border-color: var(--azul); color: #fff; }
a.chip.activo b { color: #fff; }

.panel-pedidos .por-cuenta{line-height:1.5}
.panel-pedidos .por-cuenta div{white-space:nowrap}

/* --- Ajustes: formulario de cambio de clave ------------------------------------ */
.form-ajustes .campo { margin-bottom: 18px; }
.form-ajustes input { width: 100%; }
.form-ajustes .boton { margin-top: 6px; }

/* --- firma del producto (myrst web) bajo la marca del negocio ----------------- */
.firma-producto { margin-top: 10px; font-size: 11px; color: var(--tenue); letter-spacing: .3px; text-align: center; }
.firma-producto b { font-weight: 700; }

/* --- Configuracion: Marca --------------------------------------------------------- */
.marca-fila { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.marca-logo { width: 96px; height: 96px; border: 1px solid var(--linea); border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; }
.marca-logo img { max-width: 84px; max-height: 84px; }
.marca-subir { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.marca-colores { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.marca-color { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--tenue); cursor: pointer; }
.marca-color input[type=color] { width: 44px; height: 36px; border: 1px solid var(--linea); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.marca-color b { color: var(--texto); font-size: 13px; }
.marca-acciones { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.marca-acciones form { margin: 0; }
