/* Fuentes Stint (Amplab) cargadas en App.razor (head): Archivo / Hanken Grotesk / JetBrains Mono. */

html, body {
    font-family: "Hanken Grotesk", system-ui, "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Densidad por defecto ~90% (equivalente al zoom 90% del navegador, que es como se prefiere ver el sistema). */
html {
    zoom: 0.9;
}

/* Botón flotante "Reportar": colapsado = círculo coral con el icono; al pasar el mouse se expande
   y muestra el texto. */
.fb-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    height: 48px; width: 48px; padding: 0; overflow: hidden;
    background: var(--stint-coral); color: #fff; border-radius: 999px;
    box-shadow: 0 3px 12px rgba(14, 42, 59, .28); cursor: pointer;
    transition: width .18s ease, padding .18s ease;
}
.fb-fab:hover { width: auto; padding: 0 18px; gap: 8px; filter: brightness(.97); }
.fb-fab .fb-fab-text {
    max-width: 0; opacity: 0; white-space: nowrap; font-weight: 700; letter-spacing: .02em;
    transition: max-width .18s ease, opacity .18s ease;
}
.fb-fab:hover .fb-fab-text { max-width: 130px; opacity: 1; }

/* Barra "Grabando…" del reporte por video. */
.fb-recbar {
    position: fixed; bottom: 24px; right: 24px; z-index: 1300;
    display: flex; align-items: center; gap: 10px;
    background: #E5484D; color: #fff; padding: 7px 10px 7px 16px; border-radius: 999px;
    box-shadow: 0 3px 12px rgba(14, 42, 59, .3); font-weight: 700;
}
.fb-recdot { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: fbpulse 1s infinite; }
.fb-recbar .fb-recstop { background: #fff !important; color: #E5484D !important; }
@keyframes fbpulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Datos / IDs / etiquetas técnicas en monoespaciada (regla Stint). */
.ct-mono {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-feature-settings: "tnum" 1;
    letter-spacing: -0.01em;
}

/* ── AppBar ───────────────────────────────────────────────── */
.ct-appbar {
    background: var(--stint-ink) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(8px);
}

.ct-brand {
    font-family: "Archivo", system-ui, sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.92) !important;
}

.ct-brand-bold {
    font-weight: 800;
    color: var(--stint-coral);
}

/* Wordmark "stint" del logo único (estilo de la guía): Archivo, blanco sobre el chrome ink. */
.ct-brand-word {
    font-family: "Archivo", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1;
}

.ct-user-chip {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.8rem;
}

/* ── Country flag autocomplete ────────────────────────────── */
/* Indent the text input when a flag overlay is showing        */
.country-flag-selected .mud-input input {
    padding-left: 40px !important;
}

/* ── Drawer ───────────────────────────────────────────────── */
.ct-drawer {
    background: var(--stint-ink) !important;
    border-right: none !important;
}

.ct-drawer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
}

.ct-drawer-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 4px 16px 8px;
    flex-shrink: 0;
}

/* Elimina todo espacio interno del drawer y nav */
.ct-drawer .mud-drawer-content > * {
    flex-shrink: 0;
}

/* Nada de scroll horizontal en el drawer — los labels largos se truncan */
.ct-drawer .mud-drawer-content {
    overflow-x: hidden !important;
}

.ct-drawer .mud-nav-menu {
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
}

.ct-drawer .mud-nav-menu > ul,
.ct-drawer .mud-navmenu {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
    overflow-x: hidden !important;
}

/* Truncar texto largo de los nav links con elipsis en vez de desbordar */
.ct-drawer .mud-nav-link {
    min-width: 0;
}

.ct-drawer .mud-nav-link .mud-nav-link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Nav links en sidebar oscuro */
.ct-drawer .mud-nav-link {
    color: var(--stint-mist) !important;
    border-radius: 8px !important;
    margin: 1px 8px !important;
    padding: 8px 12px !important;
    font-size: 0.875rem;
    transition: all 0.18s ease;
}

.ct-drawer .mud-nav-link:hover {
    background: rgba(28,114,147,0.20) !important;
    color: var(--stint-text-on-dark) !important;
}

/* Activo en TEAL de marca (el teal eléctrico de Amplab es de uso puntual, no para todo el nav). */
.ct-drawer .mud-nav-link.active {
    background: rgba(28,114,147,0.28) !important;
    color: #FFFFFF !important;
    font-weight: 600;
}

.ct-drawer .mud-nav-link .mud-icon-root {
    color: inherit !important;
    font-size: 1.15rem !important;
}

/* NavGroup headers = ETIQUETAS DE SECCIÓN (se distinguen claramente de las entradas).
   Las entradas son Title Case con ícono normal; los headers son MAYÚSCULAS, más
   chicos, bold y con tracking — más el chevron de expandir/colapsar a la derecha. */
.ct-drawer .mud-nav-group .mud-nav-group-header {
    color: var(--stint-slate) !important;
    border-radius: 8px !important;
    margin: 8px 8px 2px !important;
    font-family: var(--stint-font-mono) !important;   /* kicker de la guía: mono tracked */
    font-size: 0.66rem !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.ct-drawer .mud-nav-group .mud-nav-group-header:hover {
    background: rgba(28,114,147,0.10) !important;
    color: var(--stint-mist) !important;
}

/* Ícono del header de grupo: más chico y tenue que el de las entradas */
.ct-drawer .mud-nav-group .mud-nav-group-header .mud-nav-link-icon .mud-icon-root {
    font-size: 1rem !important;
    opacity: 0.7;
}

/* Chevron de expandir/colapsar — visible para que se note que es plegable */
.ct-drawer .mud-nav-group .mud-nav-group-header .mud-nav-link-expand-icon {
    opacity: 0.9;
}

/* Entradas dentro de un grupo: leve indentación + guía vertical para jerarquía */
.ct-drawer .mud-nav-group .mud-collapse-container .mud-nav-link {
    margin-left: 16px !important;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* ── Main Content ─────────────────────────────────────────── */
.ct-main-content {
    background: var(--stint-base) !important;
}

.ct-page-wrapper {
    padding: 24px;
    min-height: calc(100vh - 64px);
}

/* En pantallas chicas, menos padding para aprovechar el ancho disponible. */
@media (max-width: 960px) {
    .ct-page-wrapper { padding: 12px; }
}

/* ── Cards más modernas ───────────────────────────────────── */
.mud-card {
    border-radius: var(--stint-radius-lg) !important;
    box-shadow: var(--stint-shadow-sm) !important;
    border: 1px solid var(--stint-border);
    transition: box-shadow 0.2s ease;
}

.mud-card:hover {
    box-shadow: var(--stint-shadow-md) !important;
}

/* ── Paper / MudPaper ─────────────────────────────────────── */
.mud-paper {
    border-radius: var(--stint-radius-lg) !important;
}

/* ── DataGrid ─────────────────────────────────────────────── */
.mud-table-container {
    border-radius: var(--stint-radius-lg) !important;
    /* Scroll horizontal en pantallas angostas en vez de cortar columnas (ej. chip Conserv.). */
    overflow-x: auto;
}

/* Cabeceras de tabla al estilo de la guía: ink oscuro + texto blanco en mono MAYÚSCULAS. */
.mud-table thead th {
    background: var(--stint-ink) !important;
    color: #fff !important;
    font-family: var(--stint-font-mono) !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: none !important;
}

.mud-table tbody tr {
    transition: background 0.12s ease;
}

/* ── Buttons ──────────────────────────────────────────────── */
.mud-button-root {
    border-radius: var(--stint-radius-md) !important;
    font-weight: 600 !important;
}

/* ── Input fields ─────────────────────────────────────────── */
.mud-input-outlined .mud-input-outlined-border {
    border-radius: var(--stint-radius-md) !important;
}

/* ── Chips ────────────────────────────────────────────────── */
.mud-chip {
    border-radius: var(--stint-radius-sm) !important;
    font-weight: 500 !important;
    font-size: 0.78rem !important;
}

/* Badge de columnas (Estado / Conservación / Transporte) en las listas: mismo ancho y
   contenido centrado sin importar el largo del texto, para que todos se vean parejos. */
.mud-chip.ct-badge {
    min-width: 112px !important;
    justify-content: center !important;
}

/* Filas de lista clickeables: toda la fila entra al detalle (cursor de mano + realce al pasar). */
.ct-clickable-grid tbody tr {
    cursor: pointer;
}

/* Columnas numéricas alineadas a la derecha. */
.ct-num { text-align: right; }

/* Filtro sutil en la cabecera de columna (lista de contratos): título + ícono de embudo
   que abre un menú con las opciones; el ícono se colorea cuando el filtro está activo. */
.ct-head-filter { display: inline-flex; align-items: center; gap: 2px; }
.ct-head-filter .mud-button-root { padding: 3px; }

/* Filas del selector de columnas (lista de contratos): solo el grip ⠿ arrastra
   (así el "fantasma" del drag es el ícono chico, no toda la lista). */
.ct-col-row { display: flex; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 6px; }
.ct-col-row:hover { background: var(--stint-base); }
.ct-col-grip { display: inline-flex; align-items: center; cursor: grab; flex-shrink: 0; }
.ct-col-grip:active { cursor: grabbing; }
/* Feedback al arrastrar: la fila origen se atenúa y la fila destino marca el borde coral. */
.ct-col-row--src { opacity: 0.4; }
.ct-col-row--over { box-shadow: inset 0 2px 0 0 var(--stint-coral); background: var(--stint-coral-bg); }

/* ── Stat Cards (Dashboard) ───────────────────────────────── */
.ct-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: var(--stint-radius-lg);
    background: var(--stint-white);
    border: 1px solid var(--stint-border);
    box-shadow: var(--stint-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: default;
}

.ct-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--stint-shadow-md) !important;
}

.ct-stat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
}

.ct-stat-icon-wrap .mud-icon-root {
    font-size: 1.6rem !important;
}

.ct-stat-blue .ct-stat-icon-wrap  { background: rgba(28,114,147,0.10); color: var(--stint-teal); }
.ct-stat-green .ct-stat-icon-wrap { background: rgba(30,158,106,0.10); color: var(--stint-success); }
.ct-stat-orange .ct-stat-icon-wrap{ background: rgba(224,160,48,0.12); color: var(--stint-warning); }
.ct-stat-red .ct-stat-icon-wrap   { background: rgba(229,72,77,0.10);  color: var(--stint-danger); }
.ct-stat-teal .ct-stat-icon-wrap  { background: rgba(21,179,199,0.12); color: var(--amplab-teal-electric); }
.ct-stat-coral .ct-stat-icon-wrap { background: var(--stint-coral-bg);  color: var(--stint-coral); }

.ct-stat-body {
    flex: 1;
}

.ct-stat-value {
    font-family: "Archivo", system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--stint-ink);
    line-height: 1;
    margin-bottom: 4px;
}

.ct-stat-label {
    font-family: var(--stint-font-mono);
    font-size: 0.72rem;
    color: var(--stint-mist);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Auth / Login Layout ──────────────────────────────────── */
.ct-auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--stint-ink) 0%, var(--stint-slate) 55%, var(--stint-teal) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: "Hanken Grotesk", system-ui, sans-serif;
}

.ct-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    color: #fff;
}

.ct-auth-brand-icon {
    font-size: 2.4rem;
    background: rgba(255,107,91,0.20);
    color: var(--stint-coral);
    border-radius: 14px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 6px;
    box-sizing: border-box;
    text-align: center;
}

.ct-auth-brand-name {
    font-family: "Archivo", system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.3px;
}

.ct-auth-brand-name strong {
    font-weight: 800;
    color: var(--stint-coral);
}

.ct-auth-brand-sub {
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0.3px;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
}

.ct-auth-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--stint-shadow-lg);
    padding: 40px 44px;
    width: 100%;
    max-width: 440px;
}

.ct-auth-card h1 {
    font-family: "Archivo", system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--stint-ink);
    margin: 0 0 4px;
}

.ct-auth-card h2 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--stint-muted);
    margin: 0 0 24px;
}

.ct-auth-card .form-floating {
    margin-bottom: 16px;
}

.ct-auth-card .form-control {
    border-radius: 10px !important;
    border: 1.5px solid var(--stint-border);
    background: var(--stint-base);
    font-size: 0.9rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ct-auth-card .form-control:focus {
    border-color: var(--stint-teal) !important;
    box-shadow: 0 0 0 3px rgba(28,114,147,0.14) !important;
    background: #fff;
}

.ct-auth-card label {
    color: var(--stint-muted);
    font-size: 0.85rem;
}

/* Botón primario del login = acción primaria → CORAL (regla Stint). */
.ct-auth-card .btn-primary {
    background: var(--stint-coral);
    border: none;
    border-radius: 10px !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px;
    letter-spacing: 0.02em;
    transition: opacity 0.18s ease, transform 0.12s ease;
}

.ct-auth-card .btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.ct-auth-card hr {
    border-color: var(--stint-border);
    margin: 20px 0;
}

.ct-auth-card a {
    color: var(--stint-teal);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

.ct-auth-card a:hover {
    text-decoration: underline;
    color: var(--stint-ink);
}

.ct-auth-card p {
    margin: 6px 0;
}

.ct-auth-card .checkbox label {
    font-size: 0.85rem;
    color: var(--stint-muted);
}

.ct-auth-card .text-danger {
    font-size: 0.8rem;
}

.ct-auth-card .alert {
    border-radius: 10px;
    font-size: 0.875rem;
}

.ct-auth-card .btn-link {
    color: var(--stint-teal) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.ct-auth-card .btn-link:hover {
    text-decoration: underline;
}

.ct-auth-footer {
    margin-top: 24px;
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    text-align: center;
}

/* ── Stint · acción primaria = CORAL ──────────────────────────
   El botón "filled primary" es la llamada a la acción (CTA) → coral. El resto de
   "primary" (links, nav activo, botones outlined/text, íconos, switches) se queda
   en el teal del tema. Así el coral queda reservado a la acción primaria + marca. */
.mud-button-filled-primary:not(.mud-button-disabled),
.mud-fab.mud-fab-primary:not(.mud-button-disabled) {
    background-color: var(--stint-coral) !important;
    color: #fff !important;
    --mud-ripple-color: #fff !important;
}
.mud-button-filled-primary:not(.mud-button-disabled):hover,
.mud-fab.mud-fab-primary:not(.mud-button-disabled):hover {
    background-color: #EF5848 !important; /* hover canónico del .btn-primary de la guía */
}

/* Botón SECUNDARIO de la guía = ink filled (hover #143A4F). En MudBlazor: Variant.Filled Color.Secondary. */
.mud-button-filled-secondary:not(.mud-button-disabled) {
    background-color: var(--stint-ink) !important;
    color: #fff !important;
    --mud-ripple-color: #fff !important;
}
.mud-button-filled-secondary:not(.mud-button-disabled):hover {
    background-color: #143A4F !important;
}

/* ── Stint · pills de estado tintadas (fondo suave + texto del color) ──────
   Los chips de estado pasan de relleno sólido a tint, como en la guía Stint.
   Solo afecta a colores semánticos (success/error/warning/info), no a primary. */
/* Texto de pill OSCURECIDO según la guía (legibilidad sobre el tint): s-success #16744D,
   s-info #15566E, s-warn #9A6A12, s-danger #B3343A. El punto ::before hereda currentColor. */
.mud-chip.mud-chip-filled.mud-chip-color-success { background-color: var(--stint-success-bg) !important; color: #16744D !important; }
.mud-chip.mud-chip-filled.mud-chip-color-error   { background-color: var(--stint-danger-bg)  !important; color: #B3343A !important; }
.mud-chip.mud-chip-filled.mud-chip-color-warning { background-color: var(--stint-warning-bg) !important; color: #9A6A12 !important; }
.mud-chip.mud-chip-filled.mud-chip-color-info    { background-color: var(--stint-info-bg)    !important; color: #15566E !important; }

/* Pills de estado al estilo de la guía: monoespaciada, MAYÚSCULAS, radio pill, con PUNTO inicial. */
.mud-chip.mud-chip-filled.mud-chip-color-success,
.mud-chip.mud-chip-filled.mud-chip-color-error,
.mud-chip.mud-chip-filled.mud-chip-color-warning,
.mud-chip.mud-chip-filled.mud-chip-color-info,
.mud-chip.ct-badge {
    border-radius: var(--stint-radius-pill) !important;
    font-family: var(--stint-font-mono) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500 !important;
    font-size: 0.68rem !important;
}

/* Punto inicial (en el color del badge) como en la guía. Es el indicador; reemplaza al ícono. */
.mud-chip.mud-chip-filled.mud-chip-color-success::before,
.mud-chip.mud-chip-filled.mud-chip-color-error::before,
.mud-chip.mud-chip-filled.mud-chip-color-warning::before,
.mud-chip.mud-chip-filled.mud-chip-color-info::before,
.mud-chip.ct-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
    margin-right: 5px;
}
/* Con el punto como indicador, se oculta el ícono del chip (look de la guía). */
.mud-chip.mud-chip-filled.mud-chip-color-success .mud-icon-root,
.mud-chip.mud-chip-filled.mud-chip-color-error .mud-icon-root,
.mud-chip.mud-chip-filled.mud-chip-color-warning .mud-icon-root,
.mud-chip.mud-chip-filled.mud-chip-color-info .mud-icon-root,
.mud-chip.ct-badge .mud-icon-root { display: none !important; }
/* Tints neutros/teal para que TODOS los ct-badge sean pill tintado (no relleno sólido). */
.mud-chip.ct-badge.mud-chip-color-secondary,
.mud-chip.ct-badge.mud-chip-color-default { background-color: #EDF0F2 !important; color: var(--stint-muted) !important; }
.mud-chip.ct-badge.mud-chip-color-tertiary { background-color: rgba(21,179,199,0.16) !important; color: #0E7C8C !important; }

/* ── Stint · Tracker de hitos (timeline horizontal) ───────────────────────── */
/* Tracker de hitos: una sola barra horizontal continua con nombres en diagonal (estilo metro).
   Puntos de ancho fijo (88px) para que el encabezado de segmento calce con sus puntos. */
.ct-tracker { overflow-x:auto; padding:4px 0 6px }
.ct-tracker-bar { display:flex; flex-direction:column; width:100% }
/* Fila de segmentos: rótulo de planta/destino sobre los puntos que abarca (separado de los hitos). */
.ct-trkseg-row { display:flex; align-items:flex-end; height:16px; margin-bottom:18px }
.ct-trkseg { flex:0 0 auto; display:flex; align-items:center; min-width:0; overflow:hidden }
.ct-trkseg-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
                color:var(--stint-muted); white-space:nowrap; padding-left:6px; line-height:1;
                border-left:2px solid var(--stint-border); overflow:hidden; text-overflow:ellipsis }
/* Fila de puntos: barra única. */
.ct-step-row { display:flex; align-items:flex-start; padding-bottom:108px }
.ct-step { flex:1 1 0; min-width:0; position:relative; height:24px }
.ct-step::before { content:""; position:absolute; top:11px; left:50%; width:100%; height:3px; background:var(--stint-border) }
.ct-step:last-child::before { display:none }
.ct-step-node { position:absolute; top:0; left:50%; transform:translateX(-50%); width:24px; height:24px; border-radius:50%;
                background:#fff; border:3px solid var(--stint-border); z-index:2; display:flex; align-items:center;
                justify-content:center; font-size:12px; color:#fff; line-height:1 }
/* Nombre en diagonal anclado bajo cada punto (no colisionan: cada uno parte de su nodo). */
.ct-step-info { position:absolute; top:30px; left:50%; transform-origin:left top; transform:rotate(40deg);
                display:flex; flex-direction:column; white-space:nowrap; text-align:left; z-index:1 }
.ct-step-t { font-size:12px; font-weight:600; color:var(--stint-ink); line-height:1.15 }
.ct-step-s { font-family:var(--stint-font-mono); font-size:10px; color:var(--stint-mist); line-height:1.15 }
/* Estados */
.ct-step--done .ct-step-node { background:var(--stint-coral); border-color:var(--stint-coral) }
/* El conector se pinta coral entre hitos cumplidos consecutivos Y al entrar al hito actual. */
.ct-step--done:has(+ .ct-step--done)::before,
.ct-step--done:has(+ .ct-step--current)::before { background:var(--stint-coral) }

/* Hito ACTUAL = locator de la guía: anillo coral con un punto coral al centro. */
.ct-step--current .ct-step-node { background:#fff; border-color:var(--stint-coral) }
.ct-step--current .ct-step-node::after {
    content:""; position:absolute; inset:5px; border-radius:50%; background:var(--stint-coral);
}

/* ── Stint · Tabs al estilo de la guía ────────────────────────────────────────────────────
   La guía usa tabs en Title-case (Hanken 600), inactivo en muted y activo en ink, con un
   subrayado CORAL. MudBlazor por defecto los pone en MAYÚSCULAS con el slider del color del tema;
   acá lo alineamos a la guía. */
.mud-tabs .mud-tab {
    text-transform: none !important;
    font-family: var(--stint-font-text) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    color: var(--stint-muted) !important;
    /* Borde inferior transparente que se solapa con la hairline de la barra (técnica de la guía). */
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
}
.mud-tabs .mud-tab:hover { color: var(--stint-ink) !important; }
/* Pestaña activa: texto ink + "bordecito naranja" abajo (como la guía). */
.mud-tabs .mud-tab.mud-tab-active {
    color: var(--stint-ink) !important;
    border-bottom-color: var(--stint-coral) !important;
}
/* Tabs solo-texto como la guía: ocultar el ícono dentro de cada pestaña. */
.mud-tabs .mud-tab .mud-icon-root { display: none !important; }
/* Usamos el border-bottom de la pestaña activa como subrayado; ocultamos el slider nativo de MudBlazor. */
.mud-tabs .mud-tab-slider { display: none !important; }
/* Barra plana con hairline inferior, sin la tarjeta/elevación alrededor (como la guía). */
.mud-tabs { box-shadow: none !important; border-radius: 0 !important; }
.mud-tabs .mud-tabs-tabbar {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 2px solid var(--stint-border);
}

/* ── Stint · Forms: foco teal con halo suave (guía). Las etiquetas NO se ponen en mono/MAYÚSCULAS:
   en los inputs outlined ensanchaban el label y la línea del borde (notch) pisaba el texto. */
.mud-input-control:focus-within .mud-input-outlined-border {
    box-shadow: 0 0 0 3px rgba(28,114,147,0.14);
}

/* ── Stint · Alerts al estilo de la guía: tinte + acento de 4px a la izquierda + texto oscuro, radio md. ── */
.mud-alert { border-radius: var(--stint-radius-md) !important; }
.mud-alert.mud-alert-text-success { border-left: 4px solid var(--stint-success) !important; background-color: var(--stint-success-bg) !important; color: #125A3B !important; }
.mud-alert.mud-alert-text-error   { border-left: 4px solid var(--stint-danger)  !important; background-color: var(--stint-danger-bg)  !important; color: #8E2A2E !important; }
.mud-alert.mud-alert-text-warning { border-left: 4px solid var(--stint-warning) !important; background-color: var(--stint-warning-bg) !important; color: #7A520D !important; }
.mud-alert.mud-alert-text-info    { border-left: 4px solid var(--stint-info)    !important; background-color: var(--stint-info-bg)    !important; color: #114A60 !important; }

/* ── Stint · contador de la campana en CORAL (acento de marca; el rojo danger es solo crítico). ── */
.ct-notif-badge .mud-badge {
    background-color: var(--stint-coral) !important;
    color: #fff !important;
}

/* ── Stint · páginas /Account/Manage (Bootstrap crudo → tokens de la guía) ─────────────────── */
.ct-manage h1, .ct-manage h2, .ct-manage h3, .ct-manage h4 {
    font-family: var(--stint-font-display);
    color: var(--stint-ink);
}
.ct-manage .btn-primary {
    background: var(--stint-coral);
    border: none;
    border-radius: var(--stint-radius-md);
    font-weight: 600;
}
.ct-manage .btn-primary:hover { background: #EF5848; }
.ct-manage .form-control {
    border-radius: var(--stint-radius-md);
    border: 1.5px solid var(--stint-border);
}
.ct-manage .form-control:focus {
    border-color: var(--stint-teal);
    box-shadow: 0 0 0 3px rgba(28,114,147,0.14);
}
.ct-manage .nav-pills .nav-link {
    color: var(--stint-muted);
    border-radius: var(--stint-radius-sm);
    font-weight: 500;
}
.ct-manage .nav-pills .nav-link.active {
    background: var(--stint-teal);
    color: #fff;
}

/* ── Blazor error */
.blazor-error-boundary {
    background: var(--stint-danger);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "Ha ocurrido un error.";
}
