/* El paquete de suministros en el detalle de la OT, la bandeja de aprobaciones y el comprobante. */

/* ── Tabla del paquete ─────────────────────────────────────────────── */
.tpq { container-type: inline-size; min-width: 0; }
.tpq-t { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink); }

.tpq-h,
.tpq-f {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) 7.5em 10.5em;
    column-gap: 14px;
    align-items: baseline;
}
.tpq.con-oc .tpq-h,
.tpq.con-oc .tpq-f { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 7.5em minmax(0, 1.4fr) 10.5em; }

.tpq-h {
    padding: 0 0 7px;
    border-bottom: 1px solid var(--line);
    font-size: 11px; font-weight: 500; color: var(--muted);
}
.tpq-f { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.tpq-sub { display: contents; }

.tpq-nom { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.tpq-prov { color: var(--ink-2); overflow-wrap: anywhere; min-width: 0; }
.tpq-falta {
    display: inline-block; width: 9px; height: 9px; margin: 0 9px 0 3px; vertical-align: 1px;
    border-radius: var(--lcm-radius-pill); background: var(--ambar); box-shadow: 0 0 0 3px var(--ambar-l);
}
.tpq-n { text-align: center; color: var(--muted); }
.tpq-lb { display: none; }
.tpq-oc { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; min-width: 0; }
.tpq-oc a.mono { color: var(--verde); font-weight: 600; text-decoration: none; }
.tpq-oc a.mono:hover { text-decoration: underline; }
.tpq-m { text-align: right; font-weight: 600; }
.tpq-m.tpq-sin { font-weight: 500; color: var(--ink-2); }

.tpq-tot {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end;
    column-gap: 14px; row-gap: 2px;
    padding: 10px 0 0;
}
.tpq-tot-l { margin-right: auto; font-weight: 600; }
.tpq-tot .tpq-m { font-size: 14px; font-weight: 700; }
.tpq-mo { color: var(--muted); font-size: 12px; }

/* Angosto: cada suministro en dos renglones —lo que se compra y su total arriba; proveedor, cotizaciones y orden abajo—, sin columnas que corten. */
@container (max-width: 560px) {
    .tpq-h { display: none; }
    .tpq .tpq-f,
    .tpq.con-oc .tpq-f {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "nom m" "sub sub";
        row-gap: 3px;
    }
    .tpq-nom { grid-area: nom; }
    .tpq-f > .tpq-m { grid-area: m; }
    .tpq-f > .tpq-m.tpq-sin { max-width: 8.5em; }
    .tpq-sub {
        grid-area: sub;
        display: flex; flex-wrap: wrap; align-items: baseline;
        column-gap: 12px; row-gap: 2px;
        font-size: 11.5px; color: var(--muted);
    }
    .tpq-oc:empty { display: none; }
    .tpq-n { text-align: left; }
    .tpq-lb { display: inline; }
}

/* ── Sección Suministro del detalle ───────────────────────────────── */
.sot { display: flex; flex-direction: column; gap: 12px; }
.sot-pedido { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.sot-lb { color: var(--muted); margin-right: 6px; }
.sot-estado { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.sot-falta { display: flex; flex-direction: column; gap: 6px; }
.sot-falta-f { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px; font-size: 12px; color: var(--rojo); font-weight: 500; }
.sot-oc { margin: 0; font-size: 12.5px; line-height: 1.6; }
.sot-oc a.mono { color: var(--verde); font-weight: 600; }
.sot-acts { display: flex; flex-direction: column; gap: 8px; }

/* ── Bandeja de aprobaciones ──────────────────────────────────────── */
/* La fila de un paquete: el encabezado con el monto a la derecha y, debajo, la tabla y las acciones a todo el ancho de la fila. */
.ui .li.li-paq { flex-wrap: wrap; row-gap: 0; }
.ui .li.li-paq > .li-c { display: contents; }
.ui .li.li-paq > .li-c > * { flex: 1 1 100%; order: 2; min-width: 0; }
.ui .li.li-paq > .li-c > .li-top { flex: 1 1 0; order: 0; }
.ui .li.li-paq > .li-r { order: 1; }
.ui .li .tpq { margin-top: 8px; position: relative; z-index: 1; }
