/* Seguimiento de producto (solo Administración). Reutiliza .kpi-card, .search-box
   y .table-container del resto de la app; aquí solo lo propio de este tablero. */
.seg-kpi-click { cursor: pointer; }
.seg-kpi-click:hover { filter: brightness(0.97); }

.table-seguimiento { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 0.85rem; }
.table-seguimiento th,
.table-seguimiento td { padding: 8px 10px; text-align: right; vertical-align: top; border-bottom: 1px solid #e5e7eb; }
.table-seguimiento th { font-weight: 600; font-size: 0.75rem; color: #475569; white-space: nowrap; background: #fff; }
.table-seguimiento th.th-ordenable { cursor: pointer; user-select: none; }
.table-seguimiento th.th-ordenable:hover { text-decoration: underline; }
.table-seguimiento td.text-start,
.table-seguimiento th.text-start { text-align: left; }

/* Separación visual entre los cuatro grupos de columnas */
.table-seguimiento .seg-grupo { border-left: 2px solid #cbd5e1; }
.table-seguimiento thead tr.seg-grupos th { text-align: center; font-size: 0.75rem; letter-spacing: 0.03em; }
.table-seguimiento thead tr.seg-grupos th:first-child { border-left: 0; background: #fff; }
.table-seguimiento th.seg-g-inventario { background: #e0f2fe; color: #075985; }
.table-seguimiento th.seg-g-proceso { background: #fef3c7; color: #92400e; }
.table-seguimiento th.seg-g-ultima { background: #f1f5f9; color: #475569; }
.table-seguimiento th.seg-g-pedidos { background: #dcfce7; color: #166534; }

.seg-codigo { white-space: nowrap; }
.seg-fila { cursor: pointer; }
.seg-fila:hover td { background: #f8fafc; }
.seg-chevron { font-size: 0.65rem; color: #94a3b8; margin-left: 6px; }
.seg-sub { display: block; font-size: 0.72rem; color: #94a3b8; line-height: 1.35; font-weight: 400; }
.seg-viejo { color: #b45309 !important; }

.seg-badge { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.seg-badge-verde { background: #dcfce7; color: #166534; }
.seg-badge-ambar { background: #fef3c7; color: #92400e; }
.seg-badge-rojo { background: #fee2e2; color: #991b1b; }
.seg-badge-gris { background: #f1f5f9; color: #475569; }

.seg-detalle td { background: #f8fafc; text-align: left; padding: 12px 16px; }
.seg-det-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.seg-det-titulo { font-weight: 600; font-size: 0.78rem; color: #475569; margin-bottom: 6px; }
.seg-det-bloque { margin-bottom: 10px; font-size: 0.82rem; }
.seg-det-tabla { width: 100%; font-size: 0.8rem; border-collapse: collapse; }
.seg-det-tabla th,
.seg-det-tabla td { padding: 4px 8px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.seg-det-tabla .text-end { text-align: right; }

.seg-nota { font-size: 0.78rem; color: #64748b; line-height: 1.5; }

@media (max-width: 768px) {
    .seg-det-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
