/* ═══════════════════════════════════════════════════════════════════════════════
   compras.css — estilos del módulo Compras.
   Convención del repo: UN css por módulo, clases con prefijo propio por componente.
   Prefijo `map-` = Modal Actualizar Precios (ModalActualizarPreciosOcComponent).
   Colores: variables corporativas globales, nunca hexcodes sueltos.
   ═══════════════════════════════════════════════════════════════════════════════ */

.map-header {
    background: var(--primario, #1e3a5f);
    color: #fff;
    border-bottom: 3px solid #d4af37;
}

.map-header .modal-title { color: #fff; font-size: 1rem; }
.map-header .close { color: #fff; opacity: .85; text-shadow: none; }
.map-header .close:hover { opacity: 1; }

/* La nota explica la regla de negocio antes de que el usuario toque nada:
   por qué hay líneas que no va a poder editar. */
.map-nota {
    border-left: 3px solid #d4af37;
    background: #f5f7fb;
    color: #34455c;
    padding: .6rem .85rem;
    font-size: .84rem;
    line-height: 1.45;
    border-radius: 0 4px 4px 0;
    margin-bottom: .9rem;
}

/* SIN `position: sticky`, a propósito. Se reportó el modal mostrando el encabezado y ninguna
   fila; el sticky era lo único de este bloque capaz de producir un problema de PINTADO, porque
   Bootstrap arma `.table` con `border-collapse: collapse` y en ese modo el fondo y el borde de
   un `th` pegajoso se comportan distinto según el navegador.
   No está comprobado que fuera la causa —no se pudo reproducir sin un tenant— pero una orden de
   compra tiene pocas líneas y el modal es `modal-xl`: el encabezado fijo no aportaba nada que
   justifique dejar en pie el único sospechoso. Si se quiere recuperar, va junto con
   `border-collapse: separate` en la tabla. */
.map-thead th {
    background: var(--primario, #1e3a5f);
    color: #fff;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .02em;
}

/* El conteo es la comprobación a simple vista de que el detalle de la orden llegó:
   si dice 3 líneas, hay 3 filas. */
.map-conteo {
    font-size: .78rem;
    color: #6b7a90;
    margin-bottom: .35rem;
}

/* Una orden sin líneas es un estado raro que hay que poder LEER, no una tabla en
   blanco que se confunde con una pantalla rota. */
.map-vacio {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    border-left: 3px solid #c77700;
    background: #fff8ec;
    color: #6b5a3e;
    padding: .75rem .9rem;
    font-size: .84rem;
    line-height: 1.45;
    border-radius: 0 4px 4px 0;
}

.map-vacio > i { color: #c77700; margin-top: .15rem; }

/* Una línea que no se puede tocar se ve apagada, no roja: no es un error del
   usuario, es el estado natural de una entrega ya facturada. */
.map-bloqueada { background: #f2f4f7; color: #7b8794; }
.map-bloqueada td { font-style: italic; }

.map-pill {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: .1rem .5rem;
    border-radius: 10px;
    white-space: nowrap;
}

.map-pill-ok   { background: #e8f3e9; color: #2e7d32; }
.map-pill-warn { background: #fff4e0; color: #c77700; }
.map-pill-off  { background: #eef1f5; color: #6b7a90; }

.map-resultado {
    margin-top: .9rem;
    padding: .7rem .9rem;
    border-radius: 4px;
    background: #e8f3e9;
    border-left: 3px solid #2e7d32;
    font-size: .86rem;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Reposición a la empresa afiliada (F1 del plan de reposición afiliada)
   Prefijo .rep- — no reutilizar en otro componente.
   ═══════════════════════════════════════════════════════════════════════════ */

.rep-resumen {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rep-resumen__item {
    background: #fff;
    border: 1px solid var(--linea-suave, #e0e4ec);
    border-left: 4px solid var(--primario, #1e3a5f);
    border-radius: 4px;
    padding: 10px 16px;
    min-width: 170px;
}

.rep-resumen__item--alerta {
    border-left-color: #c77700;
}

.rep-resumen__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
}

.rep-resumen__valor {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--primario, #1e3a5f);
    line-height: 1.2;
}

/* Una fila que no se puede pedir se muestra igual, marcada: ocultarla haría
   desaparecer su faltante de la vista sin que nadie se entere. */
.rep-fila-bloqueada {
    background: #fdecea;
}

.rep-motivo {
    font-size: 11px;
    color: #c62828;
    margin-top: 2px;
}

.rep-modal-header {
    background: var(--primario, #1e3a5f);
    color: #fff;
    border-bottom: 3px solid #d4af37;
}

.rep-modal-header .modal-title,
.rep-modal-header .close {
    color: #fff;
}

.rep-tabla-modal {
    max-height: 46vh;
    overflow-y: auto;
}

.rep-tabla-modal thead th {
    position: sticky;
    top: 0;
    background: #f5f7fb;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Prefijo `imc-` = Importador de Compras (ImportarComprasPage).
   Carga inicial de facturas de gasto desde Excel.
   ═══════════════════════════════════════════════════════════════════════════════ */

.imc-nota {
    border-left: 3px solid #d4af37;
    background: #f5f7fb;
    color: #34455c;
    padding: .7rem .9rem;
    font-size: .85rem;
    line-height: 1.5;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1rem;
}

.imc-header {
    background: var(--primario, #1e3a5f);
    color: #fff;
    border-bottom: 3px solid #d4af37;
}

.imc-header .card-title { color: #fff; font-size: .95rem; font-weight: 600; }

/* Monoespaciada: pegar de Excel es texto tabulado y las columnas se leen mejor alineadas. */
.imc-pegar {
    font-family: Consolas, "Courier New", monospace;
    font-size: .78rem;
    white-space: pre;
    overflow-x: auto;
}

.imc-kpis { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }

.imc-kpi {
    flex: 1 1 130px;
    background: #f5f7fb;
    border-left: 3px solid #c3cbd9;
    border-radius: 0 4px 4px 0;
    padding: .5rem .7rem;
}

.imc-kpi > span { display: block; font-size: 1.3rem; font-weight: 700; color: #1e3a5f; line-height: 1.1; }
.imc-kpi > small { color: #6b7a90; font-size: .74rem; }

.imc-kpi.imc-ok   { border-left-color: #2e7d32; }
.imc-kpi.imc-warn { border-left-color: #c77700; }
.imc-kpi.imc-bad  { border-left-color: #c62828; }
.imc-kpi.imc-bad > span { color: #c62828; }

.imc-tabla { max-height: 340px; overflow: auto; }

.imc-thead th {
    background: var(--primario, #1e3a5f);
    color: #fff;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.imc-fila-bad  { background: #fdf2f2; }
.imc-fila-bad td > i { color: #c62828; margin-right: .3rem; }
.imc-fila-warn { background: #fff8ec; }
.imc-fila-warn td > i { color: #c77700; margin-right: .3rem; }
.imc-fila-omitida { color: #7b8794; font-style: italic; }

.imc-pill {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    padding: .1rem .45rem;
    border-radius: 10px;
    background: #eef1f5;
    color: #6b7a90;
    margin-left: .3rem;
}

.imc-pill-ok   { background: #e8f3e9; color: #2e7d32; }
.imc-pill-warn { background: #fff4e0; color: #c77700; }
.imc-pill-new  { background: #e3f0fb; color: #1976d2; }

/* Que no se pueda importar con errores tiene que VERSE, no deducirse de un botón ausente. */
.imc-bloqueo {
    border-left: 3px solid #c62828;
    background: #fdf2f2;
    color: #7a3b3b;
    padding: .7rem .9rem;
    font-size: .85rem;
    border-radius: 0 4px 4px 0;
}

.imc-bloqueo > i { color: #c62828; margin-right: .4rem; }

/* ═══════════════════════════════════════════════════════════════════════════════
   Prefijo `gam-` = Generación de Asientos Masiva (GenerarAsientosCompraComponent).
   Regenera el asiento de muchas compras y muestra el resultado de CADA una.
   ⚠️ Sin transform / filter / will-change en ningún contenedor: adentro vive el
   modal del asiento, que es position: fixed (trampa del containing block).
   ═══════════════════════════════════════════════════════════════════════════════ */

.gam-toolbar { margin-bottom: .5rem; }

.gam-nota {
    border-left: 3px solid #d4af37;
    background: #f5f7fb;
    color: #34455c;
    padding: .7rem .9rem;
    font-size: .85rem;
    line-height: 1.5;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1rem;
}

.gam-card { margin-bottom: 1rem; }

.gam-header {
    background: var(--primario, #1e3a5f);
    color: #fff;
    border-bottom: 3px solid #d4af37;
}

.gam-header .card-title { color: #fff; font-size: .95rem; font-weight: 600; margin-top: .3rem; }
.gam-header .card-title > i { margin-right: .35rem; }
.gam-acciones .btn { margin-left: .35rem; }

.gam-subheader { background: #f5f7fb; border-bottom: 1px solid #e0e4ec; }

/* ── Alcance: de dónde salen las compras. Que "116 de 3213" no sea un misterio. ── */
.gam-alcance { font-size: .86rem; color: #34455c; margin-bottom: .8rem; line-height: 1.5; }
.gam-alcance-nota { color: #1976d2; }

.gam-alcance-alerta {
    margin-top: .45rem;
    border-left: 3px solid #c77700;
    background: #fff8ec;
    color: #6b5a3e;
    padding: .45rem .7rem;
    border-radius: 0 4px 4px 0;
}

.gam-alcance-alerta > i { color: #c77700; margin-right: .3rem; }

/* ── La barra es el avance Y la calidad a la vez: lo rojo se ve crecer mientras corre. ── */
.gam-barra {
    display: flex;
    height: 14px;
    background: #e9edf3;
    border-radius: 7px;
    overflow: hidden;
}

.gam-barra > span { display: block; height: 100%; transition: width .35s ease; }
.gam-seg-ok      { background: #2e7d32; }
.gam-seg-error   { background: #c62828; }
.gam-seg-omitida { background: #c77700; }

.gam-seg-proceso {
    background-color: #1976d2;
    background-image: linear-gradient(45deg,
        rgba(255, 255, 255, .28) 25%, transparent 25%, transparent 50%,
        rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, .28) 75%, transparent 75%, transparent);
    background-size: 14px 14px;
    animation: gam-rayas 1s linear infinite;   /* anima el fondo, no la caja: no crea containing block */
}

@keyframes gam-rayas {
    from { background-position: 14px 0; }
    to   { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .gam-seg-proceso { animation: none; }
    .gam-barra > span { transition: none; }
}

.gam-barra-pie {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .3rem 1rem;
    font-size: .8rem;
    color: #6b7a90;
    margin-top: .35rem;
}

/* ── Contadores: son también los filtros de la tabla. ── */
.gam-kpis { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }

.gam-kpi {
    flex: 1 1 130px;
    font: inherit;
    text-align: left;
    background: #f5f7fb;
    border: 1px solid transparent;
    border-left: 3px solid #c3cbd9;
    border-radius: 0 4px 4px 0;
    padding: .5rem .7rem;
    cursor: pointer;
}

/* Solo tres lados: el izquierdo lleva el color del estado y no se toca. */
.gam-kpi:hover { border-top-color: #e0e4ec; border-right-color: #e0e4ec; border-bottom-color: #e0e4ec; }
.gam-kpi:focus { outline: 2px solid #1976d2; outline-offset: 1px; }

.gam-kpi.activo {
    background: #fff;
    border-top-color: #c3cbd9;
    border-right-color: #c3cbd9;
    border-bottom-color: #c3cbd9;
    box-shadow: 0 1px 3px rgba(30, 58, 95, .14);
}

.gam-kpi > span { display: block; font-size: 1.35rem; font-weight: 700; color: #1e3a5f; line-height: 1.1; }
.gam-kpi > small { color: #6b7a90; font-size: .74rem; }

.gam-kpi-ok      { border-left-color: #2e7d32; }
.gam-kpi-error   { border-left-color: #c62828; }
.gam-kpi-omitida { border-left-color: #c77700; }
.gam-kpi-error.con-valor > span { color: #c62828; }

/* ── Pausa automática: dice qué pasó y qué hacer, no solo que algo falló. ── */
.gam-aviso {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin-top: .9rem;
    border-left: 3px solid #c77700;
    background: #fff8ec;
    color: #6b5a3e;
    padding: .7rem .9rem;
    font-size: .85rem;
    line-height: 1.45;
    border-radius: 0 4px 4px 0;
}

.gam-aviso > i { color: #c77700; margin-top: .2rem; }

/* ── Errores por causa: cien compras con la misma causa son UN arreglo, no cien. ── */
.gam-causas {
    margin-top: .9rem;
    border: 1px solid #f3d5d5;
    border-radius: 4px;
    background: #fffafa;
    overflow: hidden;
}

.gam-causas-titulo {
    padding: .45rem .75rem;
    font-size: .82rem;
    font-weight: 600;
    color: #7a3b3b;
    background: #fdf2f2;
}

.gam-causas-titulo > i { margin-right: .3rem; }
.gam-causas-titulo > small { font-weight: 400; color: #9a6a6a; }

.gam-causa {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 1px solid #f6e3e3;
    padding: .42rem .75rem;
    cursor: pointer;
}

.gam-causa:hover, .gam-causa.activo { background: #fdecea; }

.gam-causa-n {
    min-width: 2.4rem;
    text-align: center;
    font-weight: 700;
    font-size: .78rem;
    color: #c62828;
    background: #fdecea;
    border-radius: 10px;
    padding: .05rem .45rem;
}

.gam-causa.activo .gam-causa-n { background: #c62828; color: #fff; }
.gam-causa-texto { flex: 1; color: #5c2b2b; font-size: .85rem; }
.gam-causa-ver { font-size: .76rem; color: #1976d2; white-space: nowrap; }

/* ── Filtros de la tabla ──
   .card-header es display:flex en insi-layout.css: sin flex:1 la barra mide lo que su contenido y el
   margin-left:auto del buscador no tiene espacio que empujar (medido en el harness, 2026-10-01). */
.gam-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; flex: 1 1 auto; min-width: 0; }

.gam-chip {
    font: inherit;
    font-size: .78rem;
    line-height: 1.4;
    border: 1px solid #d5dbe5;
    background: #fff;
    color: #34455c;
    border-radius: 14px;
    padding: .18rem .7rem;
    cursor: pointer;
}

.gam-chip > b { margin-left: .25rem; }
.gam-chip.activo { background: var(--primario, #1e3a5f); border-color: var(--primario, #1e3a5f); color: #fff; }
.gam-chip-causa { cursor: default; background: #fdecea; border-color: #f3c6c6; color: #7a3b3b; }

.gam-chip-quitar {
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 700;
    line-height: 1;
    padding: 0 0 0 .35rem;
    cursor: pointer;
}

.gam-filtros-derecha { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.gam-buscar { width: 300px; max-width: 100%; }

@media (max-width: 768px) {
    .gam-filtros-derecha { margin-left: 0; width: 100%; }
    .gam-buscar { flex: 1; width: auto; }
}

/* ── Tabla: encabezado fijo con border-collapse: separate (con collapse, un th pegajoso
   pinta distinto según el navegador; ver la nota de .map-thead). ── */
.gam-tabla { max-height: 62vh; overflow: auto; }
.gam-tabla > table { border-collapse: separate; border-spacing: 0; }

.gam-thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--primario, #1e3a5f);
    color: #fff;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .02em;
    border-top: 0;
    white-space: nowrap;
}

.gam-tabla td { font-size: .82rem; vertical-align: top; }

/* mistyle.css pone `.table td { white-space: nowrap }` en todo el ERP: sin esto el detalle de un error no se
   ajusta y la tabla medía 2039 px en una pantalla de 1440 (medido en el harness). Solo el texto largo ajusta;
   asiento, fecha y total siguen en una línea. */
.gam-tabla td.gam-detalle,
.gam-tabla td.gam-proveedor { white-space: normal; }

/* Mínimos para que, en una pantalla de 1100 px, el proveedor no quede en cuatro renglones
   mientras el detalle (vacío al procesar) se queda con el espacio. */
.gam-tabla .gam-proveedor { min-width: 150px; }
.gam-tabla .gam-detalle   { min-width: 220px; }
.gam-orden { color: #8a96a8; font-size: .76rem; }
.gam-moneda { color: #8a96a8; font-size: .74rem; }

.gam-fila-error   { background: #fdf6f6; }
.gam-fila-omitida td { color: #7b8794; }
.gam-fila-proceso { background: #f3f8fe; }

.gam-sin-filas { text-align: center; color: #6b7a90; padding: 1.2rem !important; }
.gam-sin-filas .fa-check-circle { color: #2e7d32; }

.gam-detalle { line-height: 1.45; }
.gam-fila-error .gam-detalle > strong { color: #c62828; }
.gam-nota-fila { color: #1976d2; font-size: .78rem; }

.gam-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: .12rem .5rem;
    border-radius: 10px;
    white-space: nowrap;
    background: #eef1f5;
    color: #6b7a90;
}

.gam-pill-ok      { background: #e8f3e9; color: #2e7d32; }
.gam-pill-error   { background: #fdecea; color: #c62828; }
.gam-pill-omitida { background: #fff4e0; color: #c77700; }
.gam-pill-proceso { background: #e3f0fb; color: #1976d2; }

.gam-link {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: #1976d2;
    cursor: pointer;
    text-align: left;
}

.gam-link:hover { text-decoration: underline; }
.gam-link-chico { font-size: .74rem; margin-top: .15rem; }

.gam-tecnico {
    font-family: Consolas, "Courier New", monospace;
    font-size: .72rem;
    color: #5f6b7d;
    background: #f5f7fb;
    border-radius: 3px;
    padding: .3rem .45rem;
    margin-top: .3rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.gam-acciones-fila { white-space: nowrap; }

.gam-accion {
    border: 0;
    background: transparent;
    color: #2c5282;
    padding: .1rem .35rem;
    cursor: pointer;
}

.gam-accion:hover { color: #1976d2; }
.gam-accion:disabled { color: #b8c2d0; cursor: default; }

.gam-vacio {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    border-left: 3px solid #c77700;
    background: #fff8ec;
    color: #6b5a3e;
    padding: .8rem 1rem;
    font-size: .86rem;
    line-height: 1.5;
    border-radius: 0 4px 4px 0;
}

.gam-vacio > i { color: #c77700; margin-top: .2rem; }

/* ── .ckx- · Aviso de costo del almacén vs. tipo de cambio de la factura ──────────────────────
   Bootstrap 4.3.1: nada de text-end/me-1/gap. Paleta corporativa por variable. */

.ckx-aviso {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 10px;
    padding: 8px 12px;
    background: #fff8e6;
    border-left: 4px solid #c77700;
    border-radius: 0 4px 4px 0;
    font-size: .82rem;
}

.ckx-aviso__texto { display: flex; align-items: flex-start; flex: 1 1 320px; }
.ckx-aviso__texto > i { color: #c77700; margin-right: 8px; margin-top: .15rem; }

.ckx-sube { color: #c62828; }
.ckx-baja { color: #2e7d32; }

.ckx-header {
    background: var(--primario, #1e3a5f);
    color: #fff;
    border-bottom: 3px solid #d4af37;
}
.ckx-header .modal-title { font-size: 1rem; }
.ckx-header .close { color: #fff; opacity: .9; text-shadow: none; }

.ckx-explica {
    font-size: .82rem;
    color: #4a5568;
    margin-bottom: 10px;
}
.ckx-explica__ojo {
    margin-top: 6px;
    padding: 6px 10px;
    background: #f5f7fb;
    border-radius: 4px;
}
.ckx-explica__ojo > i { color: var(--primario, #1e3a5f); margin-right: 5px; }

.ckx-mov { margin-bottom: 12px; border: 1px solid #e0e4ec; border-radius: 4px; overflow: hidden; }

.ckx-mov__cab {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 6px 10px;
    background: #f5f7fb;
    font-size: .8rem;
    font-weight: 600;
    color: var(--primario, #1e3a5f);
}
.ckx-mov__cab .ckx-tc { margin-left: auto; color: #c77700; }

.ckx-tabla { font-size: .8rem; margin-bottom: 0; }
.ckx-tabla thead th {
    background: var(--primario, #1e3a5f);
    color: #fff;
    font-weight: 600;
    border: 0;
    padding: 5px 8px;
}
.ckx-tabla tbody td { padding: 5px 8px; vertical-align: middle; }
.ckx-fila-no { background: #fafafa; color: #8a94a6; }

.ckx-total {
    text-align: right;
    padding: 8px 10px;
    background: #f5f7fb;
    border-radius: 4px;
    font-size: .85rem;
}

/* ── Costos internos de la factura (SQL 107): vista "Costos internos" y catálogo de tipos ── */
.cin .container-fluid { padding-bottom: 1.5rem; }
.cin-explica {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #eef4fb;
    border-left: 4px solid var(--primario, #1e3a5f);
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: .85rem;
    color: #34445c;
}
.cin-explica > i { color: var(--primario, #1e3a5f); margin-top: .2rem; }

.cin-doc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: .9rem;
    color: #4a5568;
}
.cin-doc > strong { color: var(--primario, #1e3a5f); font-size: 1rem; }

.cin-impedimento {
    background: #fdecea;
    border-left: 4px solid #c62828;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: .85rem;
    color: #8e1c1c;
}

.cin-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.cin-kpi {
    flex: 1 1 160px;
    background: #fff;
    border: 1px solid #e0e4ec;
    border-left: 4px solid var(--primario, #1e3a5f);
    border-radius: 4px;
    padding: 8px 12px;
}
.cin-kpi > small { display: block; color: #6b7a90; font-size: .74rem; }
.cin-kpi > span { display: block; font-size: 1.2rem; font-weight: 700; color: #1e3a5f; line-height: 1.2; }
.cin-kpi--interno { border-left-color: #d4af37; }
.cin-kpi--real { border-left-color: #fe7800; }

.cin-card { margin-bottom: 14px; }
.cin-card .card-title { font-size: .95rem; font-weight: 600; color: #1e3a5f; }

.cin-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; margin-bottom: 6px; }
.cin-campo { display: flex; flex-direction: column; flex: 0 1 130px; min-width: 0; }
.cin-campo > label { font-size: .74rem; color: #6b7a90; margin-bottom: 2px; }
.cin-campo--tipo { flex: 1 1 170px; }
.cin-campo--desc { flex: 2 1 220px; }
.cin-campo--monto { flex: 0 1 120px; }
.cin-campo--acciones { flex-direction: row; gap: 6px; flex: 0 0 auto; }

.cin-nota { font-size: .76rem; color: #6b7a90; margin: 4px 0 8px; }

.cin-tabla { font-size: .82rem; margin-bottom: 0; }
.cin-tabla thead th {
    background: var(--primario, #1e3a5f);
    color: #fff;
    font-weight: 600;
    border: 0;
    padding: 5px 8px;
    white-space: nowrap;
}
.cin-tabla tbody td { padding: 5px 8px; vertical-align: middle; }
.cin-tabla tfoot th { background: #f5f7fb; border-top: 2px solid #e0e4ec; padding: 5px 8px; }
.cin-tabla td.cin-texto { white-space: normal; min-width: 180px; }
.cin-codigo { color: #1976d2; font-weight: 600; margin-right: 4px; }
.cin-presentacion { display: block; color: #8a94a6; }
.cin-real { font-weight: 700; color: #1e3a5f; }
.cin-registro { color: #8a94a6; font-size: .76rem; }
.cin-acciones { white-space: nowrap; }
.cin-acciones .btn { padding: 0 4px; }
.cin-editando { background: #fff8e1; }
.cin-inactivo { color: #8a94a6; }
.cin-aviso-icono { color: #c77700; margin-left: 4px; }

.cin-advertencia {
    background: #fff8e1;
    border-left: 4px solid #c77700;
    border-radius: 4px;
    padding: 6px 10px;
    margin: 6px 0;
    font-size: .8rem;
    color: #6d4c00;
}
.cin-advertencia > i { color: #c77700; }

.cin-vacio {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    padding: 18px;
    color: #6b7a90;
    font-size: .88rem;
}
.cin-vacio--chico { padding: 10px 0; }

@media (max-width: 575.98px) {
    .cin-campo, .cin-campo--tipo, .cin-campo--desc, .cin-campo--monto { flex: 1 1 100%; }
    .cin-campo--acciones { flex: 1 1 100%; }
    .cin-campo--acciones .btn { flex: 1 1 auto; }
    .cin-kpi { flex: 1 1 calc(50% - 10px); }
}
