/* ===== Sistema Distribuidora — paleta del proyecto ===== */
:root {
  --naranja: #F26430;
  --naranja-dark: #D6491C;
  --navy: #1A2942;
  --navy-dark: #0F1A2E;
  --crema: #FAF7F2;
  --teal: #2A9D8F;
  --amarillo: #F4B942;
  --gris-medio: #5C6378;
  --gris-claro: #B8BDC9;
  --gris-bg: #F4F5F8;

  --bs-primary: var(--naranja);
  --bs-primary-rgb: 242, 100, 48;
}

html, body { background: var(--gris-bg); color: var(--navy); }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding-bottom: 90px;
  font-size: 17px;        /* mas grande para gente grande */
  line-height: 1.45;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

.btn-primary, .bg-primary { background-color: var(--naranja) !important; border-color: var(--naranja) !important; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--naranja-dark) !important; border-color: var(--naranja-dark) !important; }
.text-primary { color: var(--naranja) !important; }
.btn-success { background-color: var(--teal) !important; border-color: var(--teal) !important; }
.btn-success:hover { background-color: #228076 !important; border-color: #228076 !important; }
.btn-warning { background-color: var(--amarillo) !important; border-color: var(--amarillo) !important; color: var(--navy) !important; }
.badge.bg-primary { background-color: var(--naranja) !important; }
.badge.bg-info { background-color: var(--teal) !important; }

/* Botones mas grandes en general (gente grande) */
.btn { font-size: 1rem; padding: 0.55rem 1rem; }
.btn-lg { font-size: 1.1rem; padding: 0.85rem 1.4rem; min-height: 52px; }
.btn-sm { font-size: 0.9rem; padding: 0.4rem 0.7rem; }
.form-control, .form-select { font-size: 1rem; padding: 0.55rem 0.85rem; }
.form-control-lg { font-size: 1.1rem; padding: 0.75rem 1rem; }

/* ===== Topbar ===== */
.topbar { background: var(--navy); color: white; }
.topbar .brand { color: white; font-weight: 600; }
.topbar .brand:hover { color: var(--amarillo); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--naranja); color: white; font-weight: 700;
  flex-shrink: 0;
}
.logo-mark.logo-lg { width: 64px; height: 64px; font-size: 30px; border-radius: 16px; }

/* ===== Login ===== */
.login-card {
  background: white; padding: 2rem; border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06); margin-top: 2rem;
}

/* ===== Hero card (home vendedora) ===== */
.hero-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white; border-radius: 18px; padding: 1.25rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-width: 0;
}
.hero-card > div { min-width: 0; }
.hero-card .text-light-alt { color: var(--gris-claro); }
.hero-icon { font-size: 2.5rem; opacity: .25; flex-shrink: 0; }

/* ===== Stat cards ===== */
.stat-card {
  background: white; border-radius: 14px; padding: 1.1rem 1rem;
  text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.04);
  height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-num { font-size: 2.1rem; font-weight: 700; color: var(--naranja); line-height: 1; }
.stat-label { color: var(--gris-medio); font-size: .9rem; margin-top: .35rem; }
.stat-foot { color: var(--gris-medio); font-size: .8rem; margin-top: .35rem; font-weight: 600; }

/* ===== Big buttons (home actions) ===== */
.big-btn {
  display: flex; align-items: center; gap: 1rem;
  background: white; border-radius: 14px; padding: 1.1rem 1.25rem;
  text-decoration: none; color: var(--navy); margin-bottom: .75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  transition: transform .1s ease;
  min-height: 76px;
  min-width: 0;
}
.big-btn:hover { transform: translateY(-2px); color: var(--navy); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.big-btn > i:first-child {
  font-size: 1.7rem; color: var(--naranja);
  background: rgba(242,100,48,.12); border-radius: 12px;
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.big-btn > div { min-width: 0; flex-grow: 1; }
.big-btn-title {
  font-weight: 600; font-size: 1.05rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
  line-height: 1.25;
}
.big-btn-sub {
  color: var(--gris-medio); font-size: .9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
  line-height: 1.3;
}
.big-btn.primary > i:first-child { background: var(--naranja); color: white; }
.big-btn .badge { flex-shrink: 0; }

.install-card {
  align-items: center;
  background: var(--amarillo);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  color: var(--navy);
  display: flex;
  gap: 1rem;
  min-height: 76px;
  padding: 1rem 1.15rem;
  text-align: left;
  width: 100%;
}
.install-card > i:first-child {
  align-items: center;
  background: rgba(26,41,66,.12);
  border-radius: 12px;
  display: flex;
  flex-shrink: 0;
  font-size: 1.55rem;
  height: 50px;
  justify-content: center;
  width: 50px;
}
.install-card div {
  flex: 1;
  min-width: 0;
}
.install-card strong,
.install-card span {
  display: block;
  line-height: 1.25;
}
.install-card strong { font-size: 1.05rem; }
.install-card span { color: rgba(26,41,66,.72); font-size: .9rem; }

/* ===== Lista (clientes / productos / combos) ===== */
.list-stack { display: flex; flex-direction: column; gap: .5rem; }
.list-stack-item {
  display: flex; align-items: center; gap: .85rem;
  background: white; border-radius: 12px; padding: .85rem 1rem;
  text-decoration: none; color: var(--navy);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  min-width: 0;
}
.list-stack-item:hover { background: #fff; color: var(--navy); }
.ls-avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gris-bg); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .9rem; flex-shrink: 0;
}
.ls-avatar.lg { width: 64px; height: 64px; font-size: 1.05rem; }
.ls-avatar.combo { background: var(--naranja); color: white; font-size: .8rem; }
.ls-avatar.prod { background: rgba(42,157,143,.15); color: var(--teal); font-size: 1.3rem; }
.ls-body { flex-grow: 1; min-width: 0; }
.ls-title {
  font-weight: 600; font-size: 1.02rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
  line-height: 1.25;
}
.ls-sub {
  color: var(--gris-medio); font-size: .9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
  line-height: 1.3;
  margin-top: 2px;
}
.ls-arrow { color: var(--gris-claro); flex-shrink: 0; }

/* botones a la derecha de un list-stack-item */
.list-stack-item > .btn { flex-shrink: 0; }

/* ===== Cliente header ===== */
.cliente-header { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.cliente-header > div:last-child { min-width: 0; flex-grow: 1; }

/* ===== Info card ===== */
.info-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.info-row { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--gris-bg); }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--gris-medio); font-size: .95rem; flex-shrink: 0; }
.info-value { font-weight: 600; text-align: right; min-width: 0; word-break: break-word; }

/* ===== Chips (filtros) — mas grandes ===== */
.chip {
  display: inline-block; padding: .5rem 1.1rem;
  border-radius: 999px; background: white; color: var(--navy);
  text-decoration: none; font-size: .95rem; font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  white-space: nowrap;
}
.chip.active { background: var(--naranja); color: white; }

/* ===== Aderezo buttons (modal) ===== */
.aderezo-btn {
  display: flex; justify-content: space-between; align-items: center;
  background: white; border: 2px solid var(--gris-bg); border-radius: 10px;
  padding: .85rem 1rem; cursor: pointer;
  font-size: 1rem;
}
.aderezo-btn.active { border-color: var(--naranja); background: rgba(242,100,48,.07); }
.aderezo-btn .ad-nombre { font-weight: 500; }
.aderezo-btn .ad-tag { font-size: .85rem; color: var(--gris-medio); }

/* ===== Total card ===== */
.total-card {
  background: var(--navy); color: white; border-radius: 12px;
  padding: 1.1rem 1.25rem; display: flex; justify-content: space-between; align-items: center;
  font-size: 1.1rem;
}
.total-card strong { font-size: 1.6rem; color: var(--amarillo); }

/* ===== Confirm hero ===== */
.confirm-hero { padding: 1.5rem 0; }
.confirm-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--teal); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

/* ===== Bottom navbar (mobile) ===== */
.bottombar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: white; display: flex; justify-content: space-around;
  padding: .25rem 0; border-top: 1px solid var(--gris-bg); z-index: 1020;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottombar-item {
  flex: 1; text-align: center; text-decoration: none; color: var(--gris-medio);
  font-size: .72rem; padding: .5rem 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  position: relative;
  font-weight: 500;
}
.bottombar-item i { font-size: 1.35rem; }
.bottombar-item:hover { color: var(--naranja); }
.bottombar-item.active { color: var(--naranja); }
.bottombar-item.active i { color: var(--naranja); }
.badge-dot {
  position: absolute; top: 4px; right: 25%;
  background: var(--naranja); color: white;
  border-radius: 999px; padding: 1px 6px; font-size: .65rem;
}

/* ===== Carrito flotante (mobile, en catalogo) ===== */
/* Cuando esta el FAB, agregar mas espacio abajo para que no tape */
body:has(.fab-carrito) { padding-bottom: 170px; }
@media (min-width: 768px) { body:has(.fab-carrito) { padding-bottom: 100px; } }

.fab-carrito {
  position: fixed; bottom: 84px; right: 18px;
  background: var(--amarillo); color: var(--navy);
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 1015;
  border: 3px solid white;
}
.fab-carrito:hover { color: var(--navy); transform: scale(1.05); }
.fab-carrito .badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--naranja); color: white;
  border-radius: 999px; padding: 4px 9px; font-size: .8rem; font-weight: 700;
  border: 2px solid white;
}
@media (min-width: 768px) {
  .fab-carrito { bottom: 24px; }
}

/* ===== Empty state ===== */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gris-medio); }
.empty-state i { font-size: 3rem; opacity: .35; }
.empty-state p { margin-top: .75rem; font-size: 1.05rem; }
.empty-state.compact { padding: 1.5rem 1rem; }

/* ===== Vendedora: stock solo lectura ===== */
.stock-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
}
.stock-choice {
  align-items: center;
  background: white;
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  color: var(--navy);
  display: flex;
  gap: .85rem;
  min-height: 74px;
  padding: .9rem 1rem;
  text-decoration: none;
}
.stock-choice:hover {
  color: var(--navy);
  border-color: rgba(242,100,48,.25);
}
.stock-choice.selected {
  border-color: var(--naranja);
}
.stock-choice > i {
  align-items: center;
  background: rgba(42,157,143,.13);
  border-radius: 12px;
  color: var(--teal);
  display: flex;
  flex-shrink: 0;
  font-size: 1.45rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}
.stock-choice strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
  word-break: break-word;
}
.stock-choice span {
  color: var(--gris-medio);
  display: block;
  font-size: .9rem;
  margin-top: .15rem;
}
.stock-read-card {
  background: white;
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  padding: 1rem;
}
.stock-read-card.low { border-left-color: var(--amarillo); }
.stock-read-card.empty { border-left-color: #DC3545; }
.stock-read-head {
  align-items: center;
  display: flex;
  gap: .85rem;
  min-width: 0;
}
.stock-counts-read { margin-top: .9rem; }
.stock-status {
  border-radius: 10px;
  font-weight: 700;
  margin-top: .75rem;
  padding: .55rem .7rem;
}
.stock-status.ok {
  background: rgba(42,157,143,.13);
  color: #197568;
}
.stock-status.warning {
  background: #FFF3CD;
  color: #856404;
}
.stock-status.danger {
  background: rgba(220,53,69,.1);
  color: #842029;
}
.stock-results-title {
  align-items: center;
  background: var(--navy);
  border-radius: 12px;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin: .25rem 0 .75rem;
  padding: .9rem 1rem;
  scroll-margin-top: 84px;
}
.stock-results-title h2 {
  font-size: 1.08rem;
  margin: 0;
}
.stock-results-title span {
  color: var(--gris-claro);
  font-size: .9rem;
}
.simple-form-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  padding: 1rem;
}

/* ===== Toast simple ===== */
.toast-mini {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: white; padding: .7rem 1.3rem;
  border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 2000;
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
  font-size: .95rem;
}
.toast-mini.show { opacity: 1; }

@media (min-width: 768px) {
  body { background: var(--gris-bg); }
  .container-md { max-width: 760px; }
}

/* ===== Carrito: control de cantidad mas grande ===== */
.qty-control {
  display: flex; align-items: center; gap: .4rem;
  flex-shrink: 0;
}
.qty-control .btn {
  width: 40px; height: 40px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700;
}
.qty-control input {
  width: 64px; text-align: center;
  font-size: 1.05rem; font-weight: 600;
  height: 40px;
}

/* Pedido item con boton trash */
.btn-trash {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(220,53,69,.08);
  color: #DC3545; border: none;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.btn-trash:hover { background: rgba(220,53,69,.18); }

/* ===== Estados de pedido (badges) ===== */
.estado-pill {
  display: inline-block;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.estado-PENDIENTE { background: #FFF3CD; color: #856404; }
.estado-EN_PREPARACION { background: rgba(244,185,66,.25); color: #876012; }
.estado-FACTURADO { background: rgba(42,157,143,.18); color: #1d6b62; }
.estado-ENTREGADO { background: rgba(42,157,143,.3); color: #14524a; }
.estado-CANCELADO { background: rgba(220,53,69,.12); color: #842029; }
.estado-BORRADOR { background: rgba(242,100,48,.15); color: #a13b15; }

/* Borde izquierdo coloreado para tarjetas de pedido en historial */
.pedido-card { border-left: 4px solid var(--gris-claro); }
.pedido-card.borde-PENDIENTE { border-left-color: #F4B942; }
.pedido-card.borde-EN_PREPARACION { border-left-color: #F4B942; }
.pedido-card.borde-FACTURADO { border-left-color: var(--teal); }
.pedido-card.borde-ENTREGADO { border-left-color: #1d6b62; }
.pedido-card.borde-CANCELADO { border-left-color: #DC3545; }
.pedido-card.borde-BORRADOR { border-left-color: var(--naranja); }

/* ============================================================
   ===== ADMIN layout (igual que antes) =====
   ============================================================ */
.admin-body {
  margin: 0; padding: 0; min-height: 100vh;
  background: var(--gris-bg); color: var(--navy);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1050;
  width: 240px; background: var(--navy); color: white;
  display: flex; flex-direction: column; overflow-y: auto;
}
.admin-sidebar-header {
  display: flex; align-items: center; padding: 1.1rem 1.25rem; gap: .65rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-header strong { font-size: .95rem; line-height: 1.15; }
.admin-sidebar-header small { font-size: .72rem; }
.text-light-alt { color: var(--gris-claro) !important; }

.admin-nav { display: flex; flex-direction: column; flex-grow: 1; padding: .5rem 0; }
.admin-nav-section {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.4); padding: 1rem 1.25rem .25rem;
}
.admin-nav-item {
  color: rgba(255,255,255,.78); padding: .65rem 1.25rem;
  text-decoration: none; display: flex; align-items: center; gap: .65rem;
  font-size: .95rem; border-left: 3px solid transparent;
  transition: background .15s ease;
}
.admin-nav-item:hover { color: white; background: rgba(255,255,255,.05); }
.admin-nav-item.active {
  background: rgba(242,100,48,.15); color: var(--amarillo);
  border-left-color: var(--naranja);
}
.admin-nav-switch {
  color: rgba(255,255,255,.62);
  font-size: .88rem;
}
.admin-nav-item.disabled { color: rgba(255,255,255,.32); pointer-events: none; }
.admin-nav-item .badge { font-size: .62rem; margin-left: auto; }

.admin-sidebar-foot { margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.admin-user { display: flex; align-items: center; gap: .55rem; color: rgba(255,255,255,.85); font-size: .9rem; }
.admin-user i { font-size: 1.4rem; }

.admin-main { margin-left: 240px; min-height: 100vh; }
.admin-content { padding: 1.5rem 2rem; max-width: 1280px; }

.admin-mobile-header { display: none; background: var(--navy); color: white;
  padding: .75rem 1rem; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 1030; }
.admin-burger { background: transparent; border: 0; color: white; font-size: 1.5rem; padding: 0; line-height: 1; }

.admin-backdrop { display: none; }
body.sidebar-open { overflow: hidden; }

@media (max-width: 767.98px) {
  .admin-sidebar { width: 78%; max-width: 280px;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 24px rgba(0,0,0,.35); }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 1rem; }
  .admin-mobile-header { display: flex; }
  .admin-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 1040; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .admin-backdrop.show { opacity: 1; pointer-events: auto; }
}

/* KPI cards */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.kpi-card { background: white; border-radius: 14px; padding: 1rem 1.25rem; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.kpi-label { color: var(--gris-medio); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.kpi-num { font-size: 1.75rem; font-weight: 700; color: var(--navy); margin-top: .25rem; line-height: 1; }
.kpi-num.naranja { color: var(--naranja); }
.kpi-num.teal { color: var(--teal); }
.kpi-foot { color: var(--gris-medio); font-size: .8rem; margin-top: .35rem; }

.alert-card { display: flex; align-items: center; gap: 1rem;
  background: white; border-left: 4px solid var(--amarillo);
  border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: .75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.alert-card.danger { border-left-color: #DC3545; }
.alert-card.info { border-left-color: var(--teal); }
.alert-card .ic { font-size: 1.6rem; color: var(--amarillo); }
.alert-card.danger .ic { color: #DC3545; }
.alert-card.info .ic { color: var(--teal); }
.alert-card-body { flex-grow: 1; min-width: 0; }
.alert-card-title { font-weight: 600; }
.alert-card-sub { color: var(--gris-medio); font-size: .87rem; }

.admin-table { width: 100%; background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04); margin-bottom: 1rem; }
.admin-table th { background: var(--gris-bg); color: var(--gris-medio);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  padding: .75rem 1rem; text-align: left; font-weight: 600; }
.admin-table td { padding: .75rem 1rem; border-top: 1px solid var(--gris-bg); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(242,100,48,.03); }
.admin-table-wrap { overflow-x: auto; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-title h1 { font-size: 1.4rem; margin: 0; }

.prov-group { background: white; border-radius: 12px; margin-bottom: .75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04); overflow: hidden; }
.prov-summary { list-style: none; cursor: pointer;
  padding: 1rem 1.25rem; display: flex; align-items: center; gap: .65rem;
  background: white; user-select: none; border-bottom: 1px solid transparent; }
.prov-summary::-webkit-details-marker { display: none; }
.prov-summary:hover { background: var(--gris-bg); }
.prov-group[open] > .prov-summary { border-bottom-color: var(--gris-bg); }
.prov-summary .ico { transition: transform .2s ease; color: var(--gris-medio); font-size: .9rem; }
.prov-group[open] > .prov-summary .ico { transform: rotate(90deg); }
.prov-summary strong { font-size: 1rem; }
.prov-summary > i.bi-building, .prov-summary > i.bi-question-circle { font-size: 1.1rem; color: var(--naranja); }
.prov-summary .btn-link { padding: 0; font-size: .85rem; text-decoration: none; }

.prov-content { padding: .75rem 1.25rem 1rem; }
.prov-content .cat-title { color: var(--gris-medio); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em; margin: .75rem 0 .35rem; }
.prov-content .admin-table { box-shadow: none; }

/* ===== Inicio por modulos ===== */
.module-hero {
  margin-bottom: 1.5rem;
}
.module-hero h1 {
  font-size: 2rem;
  color: var(--navy);
  margin: 0 0 .35rem;
  font-weight: 750;
}
.module-hero p {
  color: var(--gris-medio);
  font-size: 1.1rem;
  margin: 0;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.module-card {
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(26,41,66,.08);
  border-top: 5px solid var(--navy);
  box-shadow: 0 6px 18px rgba(26,41,66,.08);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 1.35rem;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.module-card:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26,41,66,.12);
}
.module-card.module-blue { border-top-color: var(--navy); }
.module-card.module-green { border-top-color: var(--teal); }
.module-card.module-orange { border-top-color: var(--naranja); }
.module-icon {
  align-items: center;
  border-radius: 14px;
  display: flex;
  font-size: 2rem;
  height: 62px;
  justify-content: center;
  width: 62px;
  margin-bottom: 1rem;
}
.module-blue .module-icon { background: rgba(26,41,66,.09); color: var(--navy); }
.module-green .module-icon { background: rgba(42,157,143,.12); color: var(--teal); }
.module-orange .module-icon { background: rgba(242,100,48,.12); color: var(--naranja); }
.module-body { flex: 1; min-width: 0; }
.module-body h2 {
  font-size: 1.35rem;
  font-weight: 750;
  margin: 0 0 .55rem;
}
.module-body p {
  color: var(--gris-medio);
  line-height: 1.35;
  margin: 0;
}
.module-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .9rem;
}
.module-stats span {
  background: var(--gris-bg);
  border-radius: 999px;
  color: var(--gris-medio);
  font-size: .82rem;
  font-weight: 650;
  padding: .3rem .65rem;
}
.module-foot {
  background: var(--gris-bg);
  border-radius: 999px;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .05em;
  margin-top: 1rem;
  padding: .45rem .75rem;
  text-transform: uppercase;
}
.module-green .module-foot { background: rgba(42,157,143,.12); color: #197568; }
.module-orange .module-foot { background: rgba(242,100,48,.12); color: var(--naranja-dark); }
.module-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.module-shortcuts a {
  align-items: center;
  background: white;
  border: 1px solid rgba(26,41,66,.08);
  border-radius: 999px;
  color: var(--navy);
  display: inline-flex;
  gap: .4rem;
  padding: .55rem .9rem;
  text-decoration: none;
}
.module-shortcuts a:hover { color: var(--naranja); }
@media (max-width: 1100px) {
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: auto; }
}

/* ===== Stock simple deposito ===== */
.stock-simple-search {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.stock-simple-search .form-select { max-width: 240px; }
.stock-simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.stock-simple-card {
  background: white;
  border: 1px solid rgba(26,41,66,.08);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.stock-simple-card.stock-low { border-left-color: var(--amarillo); }
.stock-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.stock-code {
  color: var(--gris-medio);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.stock-card-top h2 {
  font-size: 1.05rem;
  line-height: 1.2;
  margin: .15rem 0 0;
}
.stock-box-size {
  background: var(--gris-bg);
  border-radius: 10px;
  min-width: 66px;
  padding: .45rem .65rem;
  text-align: center;
}
.stock-box-size span {
  color: var(--gris-medio);
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
}
.stock-box-size strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}
.stock-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: 1rem;
}
.stock-counts div {
  background: var(--gris-bg);
  border-radius: 10px;
  padding: .65rem .55rem;
  text-align: center;
}
.stock-counts span {
  color: var(--gris-medio);
  display: block;
  font-size: .75rem;
}
.stock-counts strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  margin-top: .2rem;
}
.stock-warning {
  color: #856404;
  background: #FFF3CD;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  margin-top: .75rem;
  padding: .55rem .7rem;
}
.stock-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  margin-top: 1rem;
}
.stock-actions .btn {
  min-height: 48px;
  padding-left: .35rem;
  padding-right: .35rem;
}
.stock-current {
  background: var(--gris-bg);
  border-radius: 10px;
  padding: .75rem .9rem;
}
@media (max-width: 520px) {
  .stock-simple-grid { grid-template-columns: 1fr; }
  .stock-actions { grid-template-columns: 1fr; }
}

/* ===== Admin pedidos operativo ===== */
.pedidos-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.pedidos-lane {
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(26,41,66,.08);
  border-radius: 12px;
  padding: .75rem;
  min-width: 0;
}
.pedidos-lane-title {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  padding: .25rem .25rem .75rem;
}
.pedidos-lane-title h2 {
  font-size: 1rem;
  margin: 0;
}
.pedidos-lane-title span {
  display: block;
  color: var(--gris-medio);
  font-size: .82rem;
  line-height: 1.25;
  margin-top: .2rem;
}
.pedidos-lane-title strong {
  background: white;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  min-width: 34px;
  padding: .25rem .55rem;
  text-align: center;
}
.pedidos-stack {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.pedido-card {
  background: white;
  border: 1px solid rgba(26,41,66,.08);
  border-left: 4px solid var(--gris-claro);
  border-radius: 10px;
  padding: .85rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  min-width: 0;
}
.pedido-card-head,
.pedido-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
}
.pedido-num {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.pedido-num:hover { color: var(--naranja); }
.pedido-cliente {
  font-weight: 650;
  margin-top: .65rem;
  line-height: 1.2;
  word-break: break-word;
}
.pedido-meta {
  display: flex;
  gap: .35rem .75rem;
  flex-wrap: wrap;
  color: var(--gris-medio);
  font-size: .82rem;
  margin-top: .45rem;
}
.pedido-items {
  color: var(--gris-medio);
  font-size: .82rem;
  line-height: 1.25;
  margin-top: .65rem;
}
.pedido-items > div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pedido-card-foot {
  align-items: center;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--gris-bg);
}
.empty-state.compact {
  background: white;
  border-radius: 10px;
  padding: 1.5rem .75rem;
}
.empty-state.compact i { font-size: 2rem; }
.estado-EN_TRANSITO { background: rgba(42,157,143,.18); color: #1d6b62; }

@media (max-width: 1100px) {
  .pedidos-board { grid-template-columns: 1fr; }
}
