.sal-tab { display: flex; flex-direction: column; gap: 16px; }
.sal-acciones { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sal-btn-archivo { position: relative; overflow: hidden; cursor: pointer; }
.sal-btn-archivo input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sal-carga-info { font-size: 12px; color: #5b6878; margin-left: auto; }
.sal-cargando { color: #5b6878; padding: 24px 0; }
.sal-vacio { text-align: center; padding: 48px 20px; color: #5b6878; background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; }

.sal-hist-filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; min-width: 0; }
.sal-hist-input { max-width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 10px; font-size: 13px; font-family: inherit; background: #fff; color: #0f172a; }
.sal-hist-busqueda { min-width: min(260px, 100%); flex: 1; }
.sal-hist-resumen { font-size: 12px; color: #5b6878; white-space: nowrap; align-self: center; }

.sal-hist-marco { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; }
.sal-hist-scroll { overflow: auto; max-height: 68vh; }
.sal-hist-scroll:focus-visible { outline: 2px solid #0E7C6B; outline-offset: -2px; }

.sal-hist-tabla { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 12px; }
.sal-hist-tabla thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #0c2340;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-align: center;
    padding: 10px 12px;
    white-space: nowrap;
}
.sal-hist-tabla tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    text-align: center;
    white-space: nowrap;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sal-hist-tabla tbody tr:hover td { background: #f8fafc; }
.sal-hist-tabla tbody td.sal-hist-izq { text-align: left; }
.sal-hist-num { color: #64748b; font-variant-numeric: tabular-nums; width: 1%; }

.sal-cargas { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 0; }
.sal-cargas summary { cursor: pointer; padding: 12px 16px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 13px; color: #0f172a; }
.sal-cargas summary span { color: #5b6878; font-size: 12px; }
.sal-cargas-tabla { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sal-cargas-tabla th { text-align: left; padding: 8px 16px; background: #f8fafc; color: #5b6878; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; border-top: 1px solid #e5e7eb; }
.sal-cargas-tabla td { padding: 8px 16px; border-top: 1px solid #f1f5f9; color: #334155; }
.sal-cargas-tabla tr.actual td { background: #f0fdfa; font-weight: 600; }
.sal-cargas-num { text-align: right; font-variant-numeric: tabular-nums; }
.sal-vacio h3 { margin: 0 0 6px; color: #0f172a; }
.sal-error { text-align: center; padding: 40px 20px; background: #fff7f7; border: 1px solid #fecaca; border-left: 4px solid #dc2626; border-radius: 14px; color: #7f1d1d; }
.sal-error h3 { margin: 0 0 6px; color: #991b1b; }
.sal-error p { margin: 0 0 14px; color: #b91c1c; }

.sal-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sal-kpi { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; align-items: flex-start; cursor: pointer; font-family: inherit; text-align: left; transition: box-shadow .15s, border-color .15s; }
div.sal-kpi { cursor: default; }
.sal-kpi:hover { border-color: #cbd5e1; }
.sal-kpi.activo { border-color: #0E7C6B; box-shadow: 0 0 0 3px rgba(14, 124, 107, 0.12); }
.sal-kpi-n { font-size: 24px; font-weight: 700; color: #0f172a; line-height: 1.1; }
.sal-kpi-l { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: #5b6878; }
.sal-kpi-verde .sal-kpi-n { color: #059669; }
.sal-kpi-ambar .sal-kpi-n { color: #D97706; }
.sal-kpi-naranja .sal-kpi-n { color: #E8963E; }
.sal-kpi-rojo .sal-kpi-n { color: #DC2626; }

.sal-pcts { display: flex; gap: 10px; flex-wrap: wrap; }
.sal-pct { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 4px 12px; font-size: 12px; color: #334155; }
.sal-pct i { width: 9px; height: 9px; border-radius: 50%; background: var(--sal-color, #4A5568); }

.sal-filtros-barra { display: flex; flex-wrap: wrap; gap: 10px; }
.sal-filtros { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.sal-filtro-titulo { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: #5b6878; font-weight: 700; display: block; margin-bottom: 6px; }
.sal-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sal-chip { border: 1px solid #cbd5e1; background: #fff; color: #475569; border-radius: 999px; padding: 3px 12px; font-size: 12px; cursor: pointer; font-family: inherit; }
.sal-chip.on { background: #0E7C6B; color: #fff; border-color: #0E7C6B; }
.sal-chip:disabled { opacity: .4; cursor: not-allowed; }

.sal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.sal-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px 18px; }
.sal-card h3 { margin: 0 0 10px; font-size: 14px; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.sal-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sal-card-head h3 { margin: 0; }
.sal-card-dato { font-size: 11px; color: #5b6878; font-weight: 500; }
.sal-grupos { display: flex; gap: 6px; }
.sal-vs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #5b6878; font-weight: 700; }
.sal-vs select { border: 1px solid #cbd5e1; border-radius: 8px; padding: 5px 9px; font-size: 12px; color: #0f172a; font-family: inherit; }

.sal-user-head h1 { font-size: 24px; margin: 2px 0; color: #0f172a; }
.sal-user-sub { color: #5b6878; font-size: 13px; margin: 0; }
.sal-user-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.sal-user-card-head { padding: 14px 22px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; font-size: 13px; font-weight: 700; color: #334155; }
.sal-user-resultado { display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #fff; background: var(--sal-color, #4A5568); }
.sal-user-venc { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: 12px; background: #e2e8f0; color: #475569; }
.sal-user-venc.verde { background: #d1fae5; color: #065f46; }
.sal-user-venc.ambar { background: #fef3c7; color: #92400e; }
.sal-user-venc.rojo { background: #fee2e2; color: #991b1b; }
.sal-user-footer { text-align: center; color: #5b6878; font-size: 11.5px; border-top: 1px solid #e2e8f0; padding-top: 16px; margin-top: 8px; }

.sal-consulta-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; margin-bottom: 16px; }
.sal-consulta-head h2 { margin: 0; font-size: 22px; color: #0c2340; display: flex; align-items: center; gap: 10px; }
.sal-consulta-head p { margin: 4px 0 0; color: #5b6878; font-size: 13px; }
.sal-centros-badge { background: #dbeafe; color: #1d4ed8; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 700; }
.sal-alerta { border: 2px solid; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.sal-alerta.rojo { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.sal-alerta.ambar { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.sal-alerta span { font-size: 13px; opacity: .9; }
.sal-centros { padding: 14px 18px; }
.sal-consulta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 18px; }
.sal-lista { padding: 14px 20px; display: flex; flex-direction: column; }
.sal-lista > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef2f6; }
.sal-lista > div:last-child { border-bottom: none; }
.sal-lista span { font-size: 12.5px; color: #5b6878; }
.sal-lista strong { font-size: 13px; color: #0c2340; font-family: ui-monospace, monospace; }
.sal-lista-full { flex-direction: column; align-items: stretch !important; }
.sal-chip-naranja { background: #fff7ed; color: #E8963E; padding: 2px 8px; border-radius: 6px; }
.sal-aptitudes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 16px 20px; }
.sal-aptitud { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.sal-aptitud span { font-size: 11.5px; font-weight: 600; color: #475569; }
.sal-aptitud strong, .sal-antecedentes strong { font-family: ui-monospace, monospace; font-size: 13px; }
.sal-antecedentes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding: 16px 20px; }
.sal-antecedentes > div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 11px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sal-antecedentes span { font-size: 12.5px; color: #5b6878; }
.sal-consulta .verde { color: #047857; }
.sal-consulta .rojo { color: #dc2626; }
.sal-consulta .ambar { color: #b45309; }
.sal-consulta .gris { color: #5b6878; }
.sal-obs { border-color: #fcd34d; background: #fffbeb; }
.sal-obs .sal-user-card-head { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.sal-obs-lista { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.sal-obs-item { background: #fff; border-left: 4px solid #f59e0b; border-radius: 8px; padding: 10px 14px; }
.sal-obs-item span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: #b45309; font-weight: 700; }
.sal-obs-item p { margin: 4px 0 0; font-size: 13px; color: #1f2937; font-weight: 600; }
.sal-page { padding: 18px 22px 60px; max-width: 100%; }
.sal-eyebrow { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #5b6878; margin: 0 0 2px; font-weight: 600; }
.sal-mono { font-family: ui-monospace, monospace; font-weight: 600; color: #0c2340; }
