/* Matching LabLink: estados compartidos (Match/includes/_states.html.twig).
   Colores de los tokens de lablink-landing.css, con el valor del contrato de respaldo; los errores, en rojo oscuro. */
.tl-match-state {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 320px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--tl-line, #D3DEEA);
    border-radius: 14px;
    font-family: 'Roboto', sans-serif;
    color: var(--tl-ink, #002553);
}
.tl-match-state--no-results, .tl-match-state--error, .tl-match-state--unavailable { justify-content: center; padding: 30px 24px; }
.tl-match-state[hidden] { display: none; }
/* Página contenedora (shell) y contenido que trae el JS (view): no cambian el layout de su <main>. */
.tl-match-shell, .tl-match-view { display: contents; }
.tl-match-shell[hidden], .tl-match-view[hidden] { display: none; }
.tl-match-state-retry { display: contents; }
.tl-match-state-status { display: flex; gap: 12px; align-items: center; }
.tl-match-state-status-text { display: flex; flex-direction: column; gap: 3px; }
.tl-match-state-spinner { flex: 0 0 auto; animation: tl-match-state-spin 0.9s linear infinite; }
.tl-match-state-spin-track { stroke: var(--tl-line, #D3DEEA); }
.tl-match-state-spin-arc { stroke: var(--tl-ink, #002553); }
@keyframes tl-match-state-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tl-match-state-spinner { animation-duration: 3s; } }
.tl-match-state-title-sm { font-size: 15px; font-weight: 500; color: var(--tl-ink, #002553); }
.tl-match-state-text { font-size: 13px; line-height: 1.45; color: var(--tl-muted, #375478); }
.tl-match-state-skeleton { display: flex; flex-direction: column; gap: 10px; }
.tl-match-state-bar { height: 11px; border-radius: 5px; background: var(--tl-neutral-bg, #F1F2F4); }
.tl-match-state-bar--w40 { width: 40%; }
.tl-match-state-bar--w32 { width: 32%; }
.tl-match-state-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-match-state-chips span { height: 40px; max-width: 100%; border-radius: 10px; background: var(--tl-neutral-bg, #F1F2F4); }
.tl-match-state-chips .w84 { width: 84px; }
.tl-match-state-chips .w90 { width: 90px; }
.tl-match-state-chips .w100 { width: 100px; }
.tl-match-state-chips .w130 { width: 130px; }
.tl-match-state-chips .w140 { width: 140px; }
.tl-match-state-chips .w180 { width: 180px; }
/* Faltan cargo o nivel: es un error, en rojo oscuro. */
.tl-match-state-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #FBEAEC; font-size: 13px; line-height: 1.45; color: #A40E26; }
.tl-match-state-alert svg { flex: 0 0 auto; margin-top: 1px; }
.tl-match-state-alert-title { font-weight: 500; margin-bottom: 3px; }
.tl-match-state-field { display: flex; flex-direction: column; gap: 6px; }
.tl-match-state-label { font-size: 12px; font-weight: 500; color: #A40E26; }
.tl-match-state-select { box-sizing: border-box; height: 44px; width: 100%; padding: 0 10px; border: 1.5px solid #A40E26; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--tl-ink, #002553); }
.tl-match-state-error { font-size: 12px; color: #A40E26; }
.tl-match-state-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; }
.tl-match-state-hint { font-size: 12px; color: var(--tl-muted, #375478); }
.tl-match-state-center { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tl-match-state-icon { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--tl-neutral-bg, #F1F2F4); color: var(--tl-ink, #002553); }
.tl-match-state-icon--warn { background: var(--tl-partial-bg, #FFF4DC); color: var(--tl-partial, #8A5A00); }
.tl-match-state-title { margin: 0; font-size: 17px; font-weight: 500; color: var(--tl-ink, #002553); }
.tl-match-state-body { margin: 0; max-width: 400px; line-height: 1.5; }
.tl-match-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.tl-match-state-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
/* Actuar va en tinta, como «Buscar perfiles»; el rojo queda para los errores. */
.tl-match-state-btn--primary { background: var(--tl-ink, #002553); color: #fff; }
.tl-match-state-btn--primary:hover { background: var(--tl-hero, #172033); color: #fff; }
.tl-match-state-btn--primary:disabled { background: var(--tl-neutral-bg, #F1F2F4); color: var(--tl-neutral, #4A5060); cursor: not-allowed; }
.tl-match-state-btn--ghost { padding: 0 16px; border: 1px solid var(--tl-line, #D3DEEA); background: #fff; color: var(--tl-ink, #002553); }
.tl-match-state-btn--ghost:hover { border-color: var(--tl-ink, #002553); color: var(--tl-ink, #002553); text-decoration: none; }
/* Enlaces con forma de botón: le ganan al color de enlace de cada pantalla (.tl-res a). */
.tl-match-state a.tl-match-state-btn--primary, .tl-match-state a.tl-match-state-btn--primary:hover { color: #fff; text-decoration: none; }
.tl-match-state a.tl-match-state-btn--ghost, .tl-match-state a.tl-match-state-btn--ghost:hover { color: var(--tl-ink, #002553); }
.tl-match-state-btn:focus-visible, .tl-match-state-select:focus-visible { outline: 2px solid var(--tl-focus, #1D5C6B); outline-offset: 2px; }
@media (max-width: 480px) {
    .tl-match-state { padding: 20px 16px; min-height: 0; }
    .tl-match-state-actions, .tl-match-state-footer { width: 100%; }
    .tl-match-state-actions .tl-match-state-btn, .tl-match-state-footer .tl-match-state-btn { flex: 1 1 100%; }
}
