/* =====================================================================
   GRUPO BRIMA-PROSEG · Sistema de Tickets — estilos
   ===================================================================== */
:root {
  /* Paleta GRUPO BRIMA-PROSEG: naranja #ff671d + grises claros + blancos */
  --mp-brand: #ff671d;         /* rellenos: botones, íconos, barras, indicadores */
  --mp-brand-hover: #f0580f;
  --mp-brand-active: #d94c08;
  --mp-brand-text: #c94a0a;    /* texto naranja legible sobre blanco (links, pestañas) */
  --mp-brand-soft: #fff1e9;    /* fondos suaves */
  --mp-brand-ring: rgba(255, 103, 29, .25);
  --mp-bg: #f4f5f7;
  --mp-gray-2: #eceef1;
  --mp-border: #e4e6ea;
  --mp-ink: #1f2328;
  --mp-muted: #6b7280;
  --topbar-h: 60px;
  --sidebar-w: 236px;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: #1f2328;
  --bs-primary: #ff671d;
  --bs-primary-rgb: 255, 103, 29;
  --bs-link-color: #c94a0a;
  --bs-link-color-rgb: 201, 74, 10;
  --bs-link-hover-color: #a33b06;
  --bs-primary-bg-subtle: #fff1e9;
  --bs-primary-border-subtle: #ffc4a5;
  --bs-primary-text-emphasis: #a33b06;
  --bs-focus-ring-color: rgba(255, 103, 29, .25);
}
body { background: var(--mp-bg); font-size: .94rem; color: var(--mp-ink); }
a { color: var(--mp-brand-text); } a:hover { color: #a33b06; }

/* ---------- Botones y controles en naranja ---------- */
.btn { font-weight: 500; }
.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: var(--mp-brand); --bs-btn-border-color: var(--mp-brand);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--mp-brand-hover); --bs-btn-hover-border-color: var(--mp-brand-hover);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--mp-brand-active); --bs-btn-active-border-color: var(--mp-brand-active);
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #ffb08a; --bs-btn-disabled-border-color: #ffb08a;
  font-weight: 600;
}
.btn-outline-primary {
  --bs-btn-color: var(--mp-brand-text); --bs-btn-border-color: var(--mp-brand);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--mp-brand); --bs-btn-hover-border-color: var(--mp-brand);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--mp-brand-hover); --bs-btn-active-border-color: var(--mp-brand-hover);
}
.btn-outline-secondary { --bs-btn-color: #4b5563; --bs-btn-border-color: #d5d8de; --bs-btn-hover-bg: var(--mp-gray-2); --bs-btn-hover-color: #1f2328; --bs-btn-hover-border-color: #c9cdd4; }
.btn:focus-visible, .btn-check:focus-visible + .btn { box-shadow: 0 0 0 .2rem var(--mp-brand-ring); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--mp-brand); --bs-nav-pills-link-active-color: #fff; }
.nav-link { color: #4b5563; }
.nav-link:hover, .nav-link:focus { color: var(--mp-brand-text); }
.nav-tabs .nav-link.active { color: var(--mp-brand-text); border-bottom: 2px solid var(--mp-brand); font-weight: 600; }
.form-check-input:checked { background-color: var(--mp-brand); border-color: var(--mp-brand); }
.form-check-input:focus { border-color: #ffa477; box-shadow: 0 0 0 .2rem var(--mp-brand-ring); }
.form-switch .form-check-input:focus:not(:checked) { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffa477'/%3e%3c/svg%3e"); }
.progress { --bs-progress-bar-bg: var(--mp-brand); --bs-progress-bg: var(--mp-gray-2); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--mp-brand); }
.text-bg-primary { background-color: var(--mp-brand) !important; color: #fff !important; }

/* ---------- Barra superior (blanca) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1030; height: var(--topbar-h);
  background: #fff; color: var(--mp-ink);
  border-bottom: 1px solid var(--mp-border);
  box-shadow: inset 0 3px 0 var(--mp-brand);
}
.topbar .btn-link { color: var(--mp-ink); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--mp-ink); }
.brand:hover { color: var(--mp-ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--mp-brand); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.brand-text { font-weight: 800; letter-spacing: .4px; line-height: 1.05; }
.brand-text small { display: block; font-weight: 500; font-size: .72rem; color: var(--mp-muted); letter-spacing: 0; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mp-brand-soft); color: var(--mp-brand-text); font-weight: 700;
}

/* ---------- Estructura ---------- */
.app-shell { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.sidebar { background: #fff; border-right: 1px solid var(--mp-border); }
@media (min-width: 992px) {
  .sidebar { width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); }
}
.sidebar .nav-link {
  color: #4b5563; border-radius: 8px; padding: .6rem .8rem; margin-bottom: 2px; font-weight: 500;
  display: flex; align-items: center; gap: .65rem; position: relative;
}
.sidebar .nav-link i { font-size: 1.1rem; color: #9ca3af; }
.sidebar .nav-link:hover { background: var(--mp-bg); color: var(--mp-ink); }
.sidebar .nav-link.active { background: var(--mp-brand-soft); color: var(--mp-ink); font-weight: 600; }
.sidebar .nav-link.active i { color: var(--mp-brand); }
.sidebar .nav-link.active::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--mp-brand); }
.content { flex: 1; min-width: 0; padding: 1.5rem; }
@media (max-width: 575.98px) { .content { padding: 1rem .75rem; } }

/* ---------- Encabezados de página ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.45rem; font-weight: 700; margin: 0; color: var(--mp-ink); }
.page-head .sub { color: var(--mp-muted); margin: .15rem 0 0; }
.folio { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; letter-spacing: .3px; }

/* ---------- Tarjetas ---------- */
.card { border: 1px solid var(--mp-border); border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--mp-border); font-weight: 600; padding: .85rem 1.1rem; border-radius: 12px 12px 0 0 !important; }
.section-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mp-brand); color: #fff; font-size: .78rem; margin-right: .45rem;
}
.form-label { font-weight: 500; font-size: .88rem; margin-bottom: .3rem; }
.req::after { content: " *"; color: #d92d20; }
.form-control, .form-select { border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: #ffa477; box-shadow: 0 0 0 .2rem var(--mp-brand-ring); }
.contador { font-size: .78rem; color: var(--mp-muted); }
.contador.limite { color: #d92d20; font-weight: 600; }

/* ---------- Datos solo lectura ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem 1.25rem; margin: 0; }
.dl-grid dt { font-size: .76rem; font-weight: 500; color: var(--mp-muted); text-transform: uppercase; letter-spacing: .3px; }
.dl-grid dd { margin: .1rem 0 0; font-weight: 500; word-break: break-word; }
.dl-grid .full { grid-column: 1 / -1; }
.texto-largo { white-space: pre-wrap; background: var(--mp-bg); border: 1px solid var(--mp-border); border-radius: 8px; padding: .7rem .85rem; }

/* ---------- Estatus para cliente ---------- */
.badge { font-weight: 600; padding: .38em .65em; border-radius: 6px; }
.st-pendiente { background: #eaecf0; color: #344054; }
.st-proceso   { background: var(--mp-brand-soft); color: #a33b06; }
.st-atendido  { background: #d3f4e4; color: #067647; }
.st-cerrado   { background: #12803f; color: #fff; }

/* ---------- Semáforo ---------- */
.semaforo { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .82rem; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.sem-verde    { background: #dcfae6; color: #067647; }
.sem-amarillo { background: #fef0c7; color: #93370d; }
.sem-rojo     { background: #fee4e2; color: #b42318; }
.sem-vencido  { background: #b42318; color: #fff; }
.sem-extra { font-weight: 400; opacity: .85; }
.sem-bar { height: 8px; border-radius: 99px; background: #eaecf0; overflow: hidden; }
.sem-bar > span { display: block; height: 100%; border-radius: 99px; }
.sem-bar .verde { background: #17b26a; } .sem-bar .amarillo { background: #f79009; }
.sem-bar .rojo, .sem-bar .vencido { background: #d92d20; }

/* ---------- KPIs ---------- */
.kpi { padding: 1rem 1.1rem; }
.kpi .kpi-label { font-size: .8rem; color: var(--mp-muted); font-weight: 500; }
.kpi .kpi-value { font-size: 1.75rem; font-weight: 700; color: #101828; line-height: 1.2; }
.kpi .kpi-foot { font-size: .78rem; color: var(--mp-muted); }
.kpi-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; }
.sem-counter { text-align: center; border-radius: 12px; padding: .9rem .5rem; }
.sem-counter .n { font-size: 1.8rem; font-weight: 700; line-height: 1; }

/* ---------- Tablas ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .35px; color: var(--mp-muted); font-weight: 600; background: var(--mp-bg); border-bottom: 1px solid var(--mp-border); white-space: nowrap; }
.table > tbody td { vertical-align: middle; }
.table-hover > tbody > tr.fila-link { cursor: pointer; }

/* En móvil, las tablas .table-stack se muestran como tarjetas */
@media (max-width: 767.98px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border: 1px solid var(--mp-border); border-radius: 10px; margin: .6rem 0; padding: .5rem .75rem; background: #fff; }
  .table-stack td { border: 0; padding: .3rem 0; text-align: right; overflow: hidden; }
  .table-stack td::before { content: attr(data-label); float: left; margin-right: 1rem; font-weight: 600; color: var(--mp-muted); font-size: .8rem; text-align: left; }
  .table-stack td[data-label=""]::before { display: none; }
  .table-stack td.td-full { text-align: left; }
  .table-stack td.td-full::before { float: none; display: block; }
  .card .table-stack { padding: 0 .6rem; }
}

/* ---------- Cronología ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px; background: var(--mp-border); }
.timeline li { position: relative; padding: 0 0 1rem 2.1rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--mp-brand); }
.timeline .t-fecha { font-size: .78rem; color: var(--mp-muted); }
.timeline .t-txt { white-space: pre-wrap; font-size: .9rem; }

/* ---------- Encuesta ---------- */
.escala { display: grid; grid-template-columns: repeat(10, 1fr); gap: .35rem; }
@media (max-width: 575.98px) { .escala { grid-template-columns: repeat(5, 1fr); } }
.escala input { position: absolute; opacity: 0; pointer-events: none; }
.escala label {
  display: grid; place-items: center; height: 44px; border: 1px solid var(--mp-border); border-radius: 8px;
  font-weight: 600; cursor: pointer; background: #fff; transition: all .12s;
}
.escala label:hover { border-color: var(--mp-brand); }
.escala input:checked + label { background: var(--mp-brand); color: #fff; border-color: var(--mp-brand); }
.escala input:focus-visible + label { outline: 2px solid var(--mp-brand); outline-offset: 2px; }

/* ---------- Adjuntos ---------- */
.adjunto { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; border: 1px solid var(--mp-border); border-radius: 8px; background: #fff; margin: 0 .35rem .35rem 0; font-size: .86rem; text-decoration: none; }
.adjunto:hover { background: #f2f4f7; }

/* ---------- Porqués ---------- */
.porque { border-left: 3px solid var(--mp-brand); padding-left: .85rem; }
.porque.opcional { border-left-color: #cfd4dc; }

/* ---------- Botonera fija en móvil ---------- */
@media (max-width: 575.98px) {
  .acciones-form { position: sticky; bottom: 0; background: rgba(243,245,248,.96); padding: .75rem 0; margin: 0 -.75rem; padding-inline: .75rem; backdrop-filter: blur(4px); z-index: 5; }
  .acciones-form .btn { flex: 1; }
}

/* ---------- Login / páginas públicas ---------- */
.auth-wrap { min-height: calc(100vh - var(--topbar-h) - 3rem); display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 420px; }
.hero-public { background: #fff; color: var(--mp-ink); border: 1px solid var(--mp-border); border-radius: 16px; padding: 2rem; position: relative; overflow: hidden; }
.hero-public::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--mp-brand); }
.hero-public .hero-sub { color: var(--mp-muted); }
.hero-public .hero-side { background: var(--mp-bg); border-radius: 12px; padding: 1.25rem; }

/* =====================================================================
   Modo público (sin sesión): sin menú lateral, contenido centrado
   ===================================================================== */
.brand-logo { height: 38px; width: auto; display: block; }
.modo-publico .topbar-inner { max-width: 1200px; margin: 0 auto; }
.modo-publico .app-shell { min-height: auto; }
.modo-publico .content { max-width: 1200px; margin: 0 auto; padding-top: 2rem; padding-bottom: 3rem; }
.nav-publica .nav-link { font-weight: 500; padding: .4rem .8rem; border-radius: 8px; }
.nav-publica .nav-link.active { color: var(--mp-brand-text); background: var(--mp-brand-soft); }
.pie { background: #fff; border-top: 1px solid var(--mp-border); }
.pie-inner { max-width: 1200px; margin: 0 auto; padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.pie a { color: #4b5563; text-decoration: none; } .pie a:hover { color: var(--mp-brand-text); }

/* ---------- Portada ---------- */
.portada-hero { padding: 2.5rem; }
@media (max-width: 575.98px) { .portada-hero { padding: 1.5rem 1.25rem 1.5rem 1.6rem; } }
.portada-hero h1 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.portada-hero .hero-sub { font-size: 1.05rem; max-width: 560px; }
.sla-chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--mp-brand-soft); color: #a33b06;
  font-weight: 600; font-size: .82rem; padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.hero-puntos { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: #4b5563; font-size: .88rem; }
.hero-puntos i { color: var(--mp-brand); }
.seccion-titulo { font-size: 1.2rem; font-weight: 700; margin: 2.5rem 0 .25rem; }
.seccion-sub { color: var(--mp-muted); margin-bottom: 1.25rem; }

.tipo-card { display: block; height: 100%; background: #fff; border: 1px solid var(--mp-border); border-radius: 12px;
  padding: 1.25rem; color: var(--mp-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tipo-card:hover { border-color: var(--mp-brand); box-shadow: 0 6px 18px rgba(255,103,29,.12); transform: translateY(-2px); color: var(--mp-ink); }
.tipo-card .tipo-icono { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem;
  background: var(--mp-brand-soft); color: var(--mp-brand); margin-bottom: .85rem; }
.tipo-card .tipo-cta { color: var(--mp-brand-text); font-weight: 600; font-size: .86rem; margin-top: .75rem; }

.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: paso; }
@media (max-width: 991.98px) { .pasos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .pasos { grid-template-columns: 1fr; } }
.paso { background: #fff; border: 1px solid var(--mp-border); border-radius: 12px; padding: 1.25rem; position: relative; }
.paso-num { width: 32px; height: 32px; border-radius: 50%; background: var(--mp-brand); color: #fff; font-weight: 700;
  display: grid; place-items: center; margin-bottom: .75rem; }
.paso h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.paso p { font-size: .88rem; color: var(--mp-muted); margin: 0; }
.paso .paso-tiempo { font-size: .78rem; font-weight: 600; color: #a33b06; margin-top: .6rem; }

.contacto-banda { background: #fff; border: 1px solid var(--mp-border); border-radius: 12px; padding: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; margin-top: 2.5rem; }
.contacto-item { display: flex; align-items: center; gap: .75rem; }
.contacto-item i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mp-bg); color: var(--mp-brand); font-size: 1.1rem; }
.contacto-item small { display: block; color: var(--mp-muted); }
/* En modo público el menú lateral solo existe como panel deslizable en celular */
.modo-publico .sidebar { position: fixed; top: 0; height: 100vh; width: 280px; }

/* Emblema de Grupo Brima-Proseg dentro del cuadro naranja */
.brand-mark img { width: 78%; height: auto; display: block; }
.brand-mark-sm { width: 28px; height: 28px; border-radius: 7px; }
.brand-text { white-space: nowrap; }
@media (max-width: 380px) { .brand-text { font-size: .9rem; } }

/* Botones principales de la portada: tamaño intermedio */
.btn-hero { padding: .55rem 1.2rem; font-size: .95rem; border-radius: 8px; }
.btn-hero i { font-size: 1rem; }

/* Footer siempre abajo: si hay poco contenido, el cuerpo crece y empuja el pie al fondo */
body.modo-publico { min-height: 100vh; display: flex; flex-direction: column; }
body.modo-publico .app-shell { flex: 1 0 auto; }
body.modo-publico .pie { flex-shrink: 0; }
/* En páginas públicas la tarjeta de login/consulta se centra en el espacio disponible, sin forzar alto */
body.modo-publico .app-shell > .content { display: flex; flex-direction: column; }
body.modo-publico .auth-wrap { min-height: 0; flex: 1; padding: 1rem 0; }

/* Mientras se aplica un filtro automático */
form.filtrando { opacity: .6; pointer-events: none; transition: opacity .15s; }

/* ---------- Semáforo del Dashboard (tarjetas blancas, color solo cuando hay pendientes) ---------- */
.sem-tile { --c: #17b26a; --c-soft: #ecfdf3; --c-text: #067647;
  display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--mp-border);
  border-left: 4px solid var(--c); border-radius: 12px; padding: .9rem 1rem; color: var(--mp-ink);
  transition: box-shadow .15s, transform .15s; }
a:hover > .sem-tile { box-shadow: 0 4px 14px rgba(16,24,40,.08); transform: translateY(-1px); }
.sem-tile-amarillo { --c: #f79009; --c-soft: #fffaeb; --c-text: #b54708; }
.sem-tile-rojo     { --c: #f04438; --c-soft: #fef3f2; --c-text: #b42318; }
.sem-tile-vencido  { --c: #b42318; --c-soft: #fef3f2; --c-text: #912018; }
.sem-tile-icono { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--c-soft); color: var(--c); font-size: 1.15rem; }
.sem-tile-n { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.sem-tile-txt { font-size: .85rem; font-weight: 600; color: #4b5563; }
.sem-tile-txt span { font-weight: 400; color: var(--mp-muted); margin-left: .25rem; }
@media (max-width: 575.98px) { .sem-tile-txt span { display: block; margin-left: 0; } }
/* Con tickets pendientes de atención: fondo suave del color y número resaltado */
.sem-tile.activo { background: var(--c-soft); border-color: var(--c); }
.sem-tile.activo .sem-tile-n { color: var(--c-text); }
.sem-tile.activo .sem-tile-icono { background: #fff; }

/* Menú lateral: opción activa en gris claro (el menú ya es blanco); rayita e ícono en naranja */
.sidebar .nav-link.active { background: var(--mp-bg); color: var(--mp-ink); }

/* Encabezado de cada pantalla dentro de una tarjeta blanca, igual que el resto del contenido */
.page-head { background: #fff; border: 1px solid var(--mp-border); border-radius: 12px;
  padding: 1rem 1.25rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); align-items: center; }
@media (max-width: 575.98px) { .page-head { padding: .85rem 1rem; } }
.page-head h1 { font-size: 1.35rem; }

/* Menú lateral: opción activa en naranja sólido con texto blanco (sin rayita) */
.sidebar .nav-link.active { background: var(--mp-brand); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 103, 29, .28); }
.sidebar .nav-link.active i { color: #fff; }
.sidebar .nav-link.active::before { display: none; }
.sidebar .nav-link:not(.active):hover i { color: var(--mp-brand); }

/* Títulos de bloque del Dashboard: "Ahora mismo" vs "Periodo" */
.bloque-titulo { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-bottom: .75rem; font-size: .88rem; color: var(--mp-muted); }
.bloque-etiqueta { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .4px; padding: .3rem .7rem; border-radius: 999px; }
.bloque-etiqueta.ahora { background: #ecfdf3; color: #067647; }
.bloque-etiqueta.periodo { background: var(--mp-brand-soft); color: #a33b06; }

/* ---------- Catálogos (usuarios, clientes) ---------- */
.fila-inactiva { opacity: .55; }
.lista-clientes { max-height: 70vh; overflow-y: auto; }
.lista-clientes .list-group-item { border-left: 3px solid transparent; }
.lista-clientes .list-group-item.seleccionado { background: var(--mp-brand-soft); border-left-color: var(--mp-brand); }
pre.codigo { background: var(--mp-bg); border: 1px solid var(--mp-border); border-radius: 8px; padding: .55rem .7rem;
  font-size: .78rem; white-space: pre-wrap; word-break: break-all; margin-bottom: .6rem; user-select: all; }
