@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.olwso25aue.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-3lsm330dx7] {
    position: relative;
    display: flex;
    /* Use row by default so sidebar and main sit side-by-side and the sidebar pushes content */
    flex-direction: row;
}

main[b-3lsm330dx7] {
    flex: 1;
}

.sidebar[b-3lsm330dx7] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-3lsm330dx7] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-3lsm330dx7]  a, .top-row[b-3lsm330dx7]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-3lsm330dx7]  a:hover, .top-row[b-3lsm330dx7]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-3lsm330dx7]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-3lsm330dx7] {
        justify-content: space-between;
    }

    .top-row[b-3lsm330dx7]  a, .top-row[b-3lsm330dx7]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-3lsm330dx7] {
        flex-direction: row;
    }

    /* Sidebar visual only; width/position handled by NavMenu component CSS so it participates in flex layout */
    .sidebar[b-3lsm330dx7] {
        height: 100vh;
        align-self: stretch;
    }

    /* Provide fallback variables in case NavMenu CSS hasn't loaded yet */
    :root[b-3lsm330dx7] {
        --sidebar-expanded-width: 240px;
        --sidebar-collapsed-width: 72px;
        --sidebar-transition: 280ms cubic-bezier(.4,0,.2,1);
    }

    .sidebar-wrapper[b-3lsm330dx7] {
        flex: 0 0 var(--sidebar-expanded-width);
        width: var(--sidebar-expanded-width);
        transition: flex-basis var(--sidebar-transition), width var(--sidebar-transition);
    }

    /* When toggle is checked the wrapper will shrink */
    .sidebar-toggle:checked + .sidebar-wrapper[b-3lsm330dx7] { flex-basis: var(--sidebar-collapsed-width); width: var(--sidebar-collapsed-width); }

    /* Ensure main content grows and doesn't get overlapped */
    .page > .main-content[b-3lsm330dx7], .page > main[b-3lsm330dx7] { flex: 1 1 auto; min-width: 0; }

    /* Visually hide the toggle checkbox but keep it accessible */
    .sidebar-toggle[b-3lsm330dx7] { position: absolute; left: -9999px; }

    /* Collapse/expand behaviour affecting NavMenu internals */
    .sidebar-toggle:checked + .sidebar-wrapper[b-3lsm330dx7] { flex-basis: var(--sidebar-collapsed-width); width: var(--sidebar-collapsed-width); }
    .sidebar-toggle:checked + .sidebar-wrapper .sidebar[b-3lsm330dx7] { width: 100%; }
    .sidebar-toggle:checked + .sidebar-wrapper .sidebar .brand-text[b-3lsm330dx7] { opacity: 0; max-width: 0; transform: translateX(-6px); }
    .sidebar-toggle:checked + .sidebar-wrapper .sidebar .nav-text[b-3lsm330dx7] { opacity: 0; max-width: 0; transform: translateX(-6px); }
    .sidebar-toggle:checked + .sidebar-wrapper .sidebar .collapse-btn[b-3lsm330dx7] { transform: rotate(180deg); }
    .sidebar-toggle:checked + .sidebar-wrapper .sidebar .sidebar-footer[b-3lsm330dx7] { justify-content: center; }

    .top-row[b-3lsm330dx7] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-3lsm330dx7]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-3lsm330dx7], article[b-3lsm330dx7] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-3lsm330dx7] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-3lsm330dx7] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Sidebar base */
:root[b-uza0wrk649] {
    --sidebar-expanded-width: 240px;
    --sidebar-collapsed-width: 72px;
    --sidebar-transition: 280ms cubic-bezier(.4,0,.2,1);
}

.sidebar[b-uza0wrk649] {
    /* Inner sidebar fills the wrapper; wrapper controls overall width so main is pushed */
    width: 100%;
    max-width: var(--sidebar-expanded-width);
    height: 100vh;
    position: relative;
    background-color: rgba(0,0,0,0.6);
    color: #d7d7d7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width var(--sidebar-transition);
    z-index: 1000;
    overflow: hidden;
}

/* Collapsed state */
.sidebar-toggle[b-uza0wrk649] {
    display: none;
}

.sidebar .top-row[b-uza0wrk649] {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(0,0,0,0.4);
}

.brand-logo[b-uza0wrk649] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: white;
    color: black;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 0.75rem;
}

.brand-text[b-uza0wrk649] {
    font-size: 1.1rem;
    display: inline-block;
    vertical-align: middle;
    transition: opacity var(--sidebar-transition), max-width var(--sidebar-transition), transform var(--sidebar-transition);
    max-width: 160px;
    opacity: 1;
    transform: translateX(0);
    overflow: hidden;
    white-space: nowrap;
}

.collapse-btn[b-uza0wrk649] {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.8)' d='M3 12h18v2H3z'/%3E%3C/svg%3E") no-repeat center/1rem;
    cursor: pointer;
}

.nav-item[b-uza0wrk649] {
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

.nav-item:first-of-type[b-uza0wrk649] { padding-top: 0.5rem; }
.nav-item:last-of-type[b-uza0wrk649] { padding-bottom: 0.5rem; }

.nav-link[b-uza0wrk649] {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
    padding: 0 0.75rem;
}

.nav-link:hover[b-uza0wrk649], .nav-link.active[b-uza0wrk649] {
    background-color: rgba(255,255,255,0.08);
    color: white;
}

.nav-text[b-uza0wrk649] {
    white-space: nowrap;
    transition: opacity var(--sidebar-transition), max-width var(--sidebar-transition), transform var(--sidebar-transition);
    max-width: 160px;
    opacity: 1;
    transform: translateX(0);
    display: inline-block;
    overflow: hidden;
}

.nav-scrollable[b-uza0wrk649] {
    overflow-y: auto;
    height: calc(100vh - 7rem);
}

.sidebar-footer[b-uza0wrk649] { display: flex; align-items: center; justify-content: center; padding: 1rem; }

/* Theme toggle styles */
.theme-toggle[b-uza0wrk649] { display: inline-flex; align-items: center; gap: 0.5rem; }
.theme-toggle input[type="checkbox"][b-uza0wrk649] {
    width: 3.2rem; height: 1.6rem; -webkit-appearance: none; appearance: none;
    background-color: #6c757d; border-radius: 1.6rem; position: relative; outline: none; cursor: pointer; transition: background-color .2s ease-in-out;
}
.theme-toggle input[type="checkbox"][b-uza0wrk649]::after { content: ''; width: 1.2rem; height: 1.2rem; background: white; border-radius: 50%; position: absolute; top: 0.2rem; left: 0.2rem; transition: transform .2s ease-in-out; }
.theme-toggle input[type="checkbox"]:checked[b-uza0wrk649] { background-color: #343a40; }
.theme-toggle input[type="checkbox"]:checked[b-uza0wrk649]::after { transform: translateX(1.6rem); }

/* Note: collapse/expand rules that depend on the checkbox input are defined in MainLayout.razor.css
   because the input checkbox lives in MainLayout and component-scoped CSS cannot target siblings outside
   the component. */

/* Ensure content (main) has left padding to avoid being hidden under sidebar */
/* Let the layout handle space: ensure main expands to remaining space */
@media (min-width: 641px) {
    /* On wide screens the page (MainLayout) already uses flex row; ensure main grows */
    .page > .main-content[b-uza0wrk649], .page > main[b-uza0wrk649] { flex: 1 1 auto; transition: margin-left var(--sidebar-transition); }
    .sidebar-toggle:checked + .sidebar-wrapper[b-uza0wrk649] { flex-basis: var(--sidebar-collapsed-width); }
    .sidebar-wrapper[b-uza0wrk649] { flex-basis: var(--sidebar-expanded-width); }
}

@media (max-width: 640px) {
    /* On small screens the sidebar acts as an overlay */
    .sidebar[b-uza0wrk649] { position: fixed; left: 0; top: 0; width: var(--sidebar-expanded-width); z-index: 2000; }
    .page > .main-content[b-uza0wrk649], .page > main[b-uza0wrk649] { padding-left: 0; }
}
/* /Components/Modals/EscalaPronosticaModal.razor.rz.scp.css */
/* ============================================================
   ModalEscalaPronostica.razor.css  — Estilos aislados
   ============================================================ */

/* ── Diálogo base ────────────────────────────────────────── */
[b-675qu316kq] .ep-dialog .e-dlg-content {
    padding: 1rem 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* ── Encabezado del modal ────────────────────────────────── */
.ep-header[b-675qu316kq] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e3a5f;
}

.ep-header-icon[b-675qu316kq] {
    font-size: 1.2rem;
}

/* ── Sección selector ────────────────────────────────────── */
.ep-section[b-675qu316kq] {
    margin-bottom: 1.25rem;
}

.ep-label[b-675qu316kq] {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ep-dropdown[b-675qu316kq] {
    width: 100%;
}

/* ── Loading ─────────────────────────────────────────────── */
.ep-loading[b-675qu316kq] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #6b7280;
    justify-content: center;
}

.ep-spinner[b-675qu316kq] {
    width: 22px;
    height: 22px;
    border: 3px solid #d1d5db;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: ep-spin-b-675qu316kq 0.7s linear infinite;
}

@keyframes ep-spin-b-675qu316kq {
    to {
        transform: rotate(360deg);
    }
}

/* ── Contenedor del formulario ───────────────────────────── */
.ep-form-container[b-675qu316kq] {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

/* ── Título de la escala ─────────────────────────────────── */
.ep-scale-title[b-675qu316kq] {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

/* ── Grupos / Secciones ──────────────────────────────────── */
.ep-group[b-675qu316kq] {
    border-bottom: 1px solid #e5e7eb;
}

    .ep-group:last-child[b-675qu316kq] {
        border-bottom: none;
    }

.ep-group-header[b-675qu316kq] {
    background: #f0f4ff;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #dbeafe;
}

/* ── Fila de ítem ────────────────────────────────────────── */
.ep-item-row[b-675qu316kq] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

    .ep-item-row:last-child[b-675qu316kq] {
        border-bottom: none;
    }

    .ep-item-row:hover[b-675qu316kq] {
        background: #f9fafb;
    }

.ep-item-label[b-675qu316kq] {
    flex: 1;
    font-size: 0.875rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ep-badge[b-675qu316kq] {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

.ep-item-control[b-675qu316kq] {
    min-width: 200px;
    max-width: 280px;
}

/* Variantes por tipo de control */
.ep-item-checkbox .ep-item-control[b-675qu316kq] {
    min-width: 36px;
    max-width: 36px;
}

.ep-item-select .ep-item-control[b-675qu316kq] {
    min-width: 220px;
}

.ep-item-numeric .ep-item-control[b-675qu316kq] {
    min-width: 110px;
    max-width: 140px;
}

.ep-item-text .ep-item-control[b-675qu316kq] {
    min-width: 200px;
}

.ep-item-dropdown[b-675qu316kq] {
    width: 100%;
}

.ep-numeric[b-675qu316kq] {
    width: 100%;
}

.ep-textbox[b-675qu316kq] {
    width: 100%;
}

/* ── Panel de resultado ──────────────────────────────────── */
.ep-result-panel[b-675qu316kq] {
    background: #f8fafc;
    border-top: 2px solid #e5e7eb;
    padding: 0.85rem 1rem;
}

.ep-score-row[b-675qu316kq] {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.ep-score-label[b-675qu316kq] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ep-score-value[b-675qu316kq] {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1;
}

/* Interpretación activa */
.ep-interpretation[b-675qu316kq] {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-top: 0.25rem;
}

.ep-int-resultado[b-675qu316kq] {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.ep-int-desc[b-675qu316kq] {
    font-size: 0.82rem;
    opacity: 0.9;
}

.ep-int-danger[b-675qu316kq] {
    background: #fee2e2;
    color: #991b1b;
}

.ep-int-warning[b-675qu316kq] {
    background: #fef3c7;
    color: #92400e;
}

.ep-int-info[b-675qu316kq] {
    background: #dbeafe;
    color: #1e40af;
}

.ep-int-success[b-675qu316kq] {
    background: #d1fae5;
    color: #065f46;
}

/* Tabla de referencia (sin selección aún) */
.ep-interpretations-ref[b-675qu316kq] {
    margin-top: 0.4rem;
}

.ep-ref-title[b-675qu316kq] {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.ep-ref-row[b-675qu316kq] {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #374151;
    padding: 0.2rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.ep-ref-range[b-675qu316kq] {
    font-weight: 600;
    color: #1e3a5f;
    min-width: 100px;
}

/* ── Estado vacío ────────────────────────────────────────── */
.ep-empty[b-675qu316kq] {
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ── Alerta ──────────────────────────────────────────────── */
.ep-alert[b-675qu316kq] {
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0.9rem;
}

/* ── Pie del modal ───────────────────────────────────────── */
.ep-footer[b-675qu316kq] {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.ep-btn-guardar[b-675qu316kq] {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    border: none !important;
    font-weight: 600;
}

.ep-btn-limpiar[b-675qu316kq] {
    font-weight: 500;
}

/* ── Checkbox wrap ───────────────────────────────────────── */
.ep-checkbox-wrap[b-675qu316kq] {
    display: flex;
    justify-content: center;
}
/* /Components/Pages/Catalogos/Frecuencia.razor.rz.scp.css */
.cat-page[b-4uwfonqgv5] {
    padding: 1.5rem;
}

.cat-header[b-4uwfonqgv5] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.cat-title[b-4uwfonqgv5] {
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .cat-title h2[b-4uwfonqgv5] {
        margin: 0;
        font-size: 1.4rem;
    }

.cat-icon[b-4uwfonqgv5] {
    font-size: 1.5rem;
}

.cat-alert[b-4uwfonqgv5] {
    margin-bottom: 1rem;
}

.cat-form-card[b-4uwfonqgv5] {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.cat-form-title[b-4uwfonqgv5] {
    margin-bottom: 1rem;
    font-weight: 600;
}

.cat-form-actions[b-4uwfonqgv5] {
    display: flex;
    gap: .5rem;
}

.cat-badge[b-4uwfonqgv5] {
    display: inline-block;
    padding: .25em .65em;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.cat-grid-wrapper[b-4uwfonqgv5] {
    border-radius: .5rem;
    overflow: hidden;
}
/* /Components/Pages/ConsultaMedica/ConsultaForm.razor.rz.scp.css */
/* ============================================================
   ConsultaForm.razor.css — Historia Clínica
   ============================================================ */

/* ── Reset y base ────────────────────────────────────────── */
.cf-page[b-12rfciojvp] {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f0f4f8;
    min-height: 100vh;
    padding: 0 0 2rem;
    color: #1a2433;
}

/* ══════════════════════════════════════════
   LAYOUT RAÍZ — main + sidebar
══════════════════════════════════════════ */
.cf-root[b-12rfciojvp] {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    position: relative;
}

.cf-main[b-12rfciojvp] {
    flex: 1 1 auto;
    min-width: 0;
    overflow-y: auto;
}

/* ── Header del paciente ─────────────────────────────────── */
.cf-patient-header[b-12rfciojvp] {
    background: linear-gradient(135deg, #0f2942 0%, #1a5276 60%, #2471a3 100%);
    color: #fff;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 16px rgba(15,41,66,.35);
    position: sticky;
    top: 0;
    z-index: 100;
}

.cf-patient-avatar[b-12rfciojvp] {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.18);
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.5px;
    flex-shrink: 0;
}

.cf-patient-name[b-12rfciojvp] {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 .3rem;
    letter-spacing: -.2px;
}

.cf-patient-info[b-12rfciojvp] {
    flex: 1;
    min-width: 0;
}

.cf-patient-meta[b-12rfciojvp] {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.cf-meta-chip[b-12rfciojvp] {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: .2rem .7rem;
    font-size: .75rem;
    white-space: nowrap;
}

.cf-chip-date[b-12rfciojvp] {
    background: rgba(46,204,113,.25);
    border-color: rgba(46,204,113,.5);
}

.cf-chip-priorizacion[b-12rfciojvp] {
    background: var(--bs-primary);
    color: #fff;
    border: none;
    font-weight: 700;
}

.cf-header-actions[b-12rfciojvp] {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

/* ── Botón Historial ─────────────────────────────────────── */
.cf-btn-historial[b-12rfciojvp] {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .85rem;
    border-radius: .45rem;
    border: 2px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    position: relative;
}

    .cf-btn-historial:hover[b-12rfciojvp],
    .cf-btn-historial--active[b-12rfciojvp] {
        background: rgba(255,255,255,.25);
        border-color: rgba(255,255,255,.7);
    }

.cf-btn-hist-icon[b-12rfciojvp] {
    font-size: .95rem;
}

.cf-hist-badge[b-12rfciojvp] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 0 4px;
    line-height: 1;
}

/* ── Botones de acción ───────────────────────────────────── */
.cf-btn-save[b-12rfciojvp] {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    font-weight: 600 !important;
    padding: .5rem 1.25rem !important;
    border-radius: 8px !important;
    color: #fff !important;
}

    .cf-btn-save:hover[b-12rfciojvp] {
        background: #1e8449 !important;
    }

.cf-btn-close-consulta[b-12rfciojvp] {
    background: #1a5276;
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: .5rem;
    padding: .45rem 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

    .cf-btn-close-consulta:hover[b-12rfciojvp] {
        background: #0f2942;
    }

/* ── Alerta global ───────────────────────────────────────── */
.cf-alert[b-12rfciojvp] {
    margin: .75rem 2rem;
    padding: .75rem 1.25rem;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    animation: cf-slidein-b-12rfciojvp .25s ease;
}

.cf-alert-ok[b-12rfciojvp] {
    background: #d5f5e3;
    color: #1e8449;
    border: 1px solid #a9dfbf;
}

.cf-alert-error[b-12rfciojvp] {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

@keyframes cf-slidein-b-12rfciojvp {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Cuerpo — dos columnas ───────────────────────────────── */
.cf-body[b-12rfciojvp] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.25rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .cf-body[b-12rfciojvp] {
        grid-template-columns: 1fr;
    }

    .cf-patient-header[b-12rfciojvp] {
        flex-wrap: wrap;
    }

    .cf-header-actions[b-12rfciojvp] {
        margin-left: 0;
        width: 100%;
    }

    .cf-sidebar--open[b-12rfciojvp] {
        flex-basis: 100%;
        width: 100%;
    }
}

/* ── Secciones ───────────────────────────────────────────── */
.cf-section[b-12rfciojvp] {
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.04);
    border: 1px solid #e8edf3;
}

.cf-section-header[b-12rfciojvp] {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .9rem;
    flex-wrap: wrap;
}

.cf-section-icon[b-12rfciojvp] {
    font-size: 1rem;
    line-height: 1;
}

.cf-section-header h2[b-12rfciojvp] {
    font-size: .95rem;
    font-weight: 700;
    color: #0f2942;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0;
    flex: 1;
}

.cf-header-btns[b-12rfciojvp] {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* ── Botones inline ──────────────────────────────────────── */
.cf-btn-edit[b-12rfciojvp] {
    background: transparent !important;
    border: 1px solid #2471a3 !important;
    color: #2471a3 !important;
    font-size: .78rem !important;
    padding: .25rem .75rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    height: auto !important;
}

    .cf-btn-edit:hover[b-12rfciojvp] {
        background: #eaf4fb !important;
    }

.cf-btn-primary-sm[b-12rfciojvp] {
    background: #1a5276 !important;
    border-color: #1a5276 !important;
    color: #fff !important;
    font-size: .78rem !important;
    padding: .25rem .85rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    height: auto !important;
}

    .cf-btn-primary-sm:hover[b-12rfciojvp] {
        background: #0f2942 !important;
    }

/* ── Textarea ────────────────────────────────────────────── */
.cf-textarea[b-12rfciojvp] {
    width: 100%;
    border-radius: 8px !important;
    border-color: #dce3ec !important;
    font-size: .875rem !important;
    resize: vertical;
}

/* ── Lista de ítems ──────────────────────────────────────── */
.cf-list[b-12rfciojvp] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.cf-list-item[b-12rfciojvp] {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .875rem;
    color: #2c3e50;
    line-height: 1.4;
}

.cf-list-dot[b-12rfciojvp] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2471a3;
    flex-shrink: 0;
    margin-top: .35rem;
}

.cf-dot-vaccine[b-12rfciojvp] {
    background: #27ae60;
}

/* ── Mensajes vacíos / contador ──────────────────────────── */
.cf-empty-msg[b-12rfciojvp] {
    font-size: .82rem;
    color: #95a5a6;
    font-style: italic;
    margin: .25rem 0;
}

.cf-count-badge[b-12rfciojvp] {
    display: inline-block;
    background: #eaf4fb;
    color: #1a5276;
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .7rem;
    border-radius: 999px;
    margin-left: auto;
}

.cf-loading-badge[b-12rfciojvp] {
    font-size: .75rem;
    color: #7f8c8d;
    margin-left: auto;
}

/* ── Grid de escalas pronósticas ─────────────────────────── */
.cf-escalas-grid[b-12rfciojvp] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .85rem;
    margin-top: .25rem;
}

.cf-escala-card[b-12rfciojvp] {
    border-radius: 10px;
    padding: .85rem 1rem;
    border-left: 4px solid #bdc3c7;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    transition: box-shadow .15s;
}

    .cf-escala-card:hover[b-12rfciojvp] {
        box-shadow: 0 4px 14px rgba(0,0,0,.1);
    }

.cf-escala-danger[b-12rfciojvp] {
    border-left-color: #e74c3c;
    background: #fef9f9;
}

.cf-escala-warning[b-12rfciojvp] {
    border-left-color: #f39c12;
    background: #fffbf2;
}

.cf-escala-ok[b-12rfciojvp] {
    border-left-color: #27ae60;
    background: #f4fdf7;
}

.cf-escala-neutral[b-12rfciojvp] {
    border-left-color: #2471a3;
    background: #f4f8fc;
}

.cf-escala-nombre[b-12rfciojvp] {
    font-size: .78rem;
    font-weight: 700;
    color: #1a2433;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.3;
}

.cf-escala-resultado[b-12rfciojvp] {
    min-height: 1.2rem;
}

.cf-resultado-badge[b-12rfciojvp] {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    background: rgba(0,0,0,.07);
    border-radius: 4px;
    padding: .1rem .45rem;
    color: #1a2433;
}

.cf-escala-puntaje[b-12rfciojvp] {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    margin: .2rem 0;
}

.cf-puntaje-num[b-12rfciojvp] {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f2942;
    line-height: 1;
}

.cf-puntaje-label[b-12rfciojvp] {
    font-size: .72rem;
    color: #7f8c8d;
    font-weight: 600;
}

.cf-escala-interp[b-12rfciojvp] {
    font-size: .75rem;
    color: #5d6d7e;
    line-height: 1.35;
    border-top: 1px solid rgba(0,0,0,.07);
    padding-top: .35rem;
    margin-top: .1rem;
}

.cf-escala-fecha[b-12rfciojvp] {
    font-size: .7rem;
    color: #aab7c4;
    margin-top: .1rem;
}

/* ── Clasificación: Frecuencia ───────────────────────────── */
.cf-clasificacion-bloque[b-12rfciojvp] {
    margin-bottom: .25rem;
}

.cf-clasificacion-label[b-12rfciojvp] {
    font-size: .8rem;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: block;
    margin-bottom: .4rem;
}

.cf-frecuencia-grid[b-12rfciojvp] {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .4rem;
}

.cf-frec-btn[b-12rfciojvp] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: .5rem .75rem;
    border-radius: .5rem;
    border: 2px solid #6B7280;
    background: transparent;
    color: #1a2433;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}

    .cf-frec-btn small[b-12rfciojvp] {
        font-size: .68rem;
        font-weight: 400;
        opacity: .85;
        margin-top: .15rem;
        display: block;
    }

    .cf-frec-btn:not(.cf-frec-active):hover[b-12rfciojvp] {
        opacity: .8;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,.12);
    }

    .cf-frec-btn.cf-frec-active[b-12rfciojvp] {
        color: #fff !important;
        box-shadow: 0 3px 10px rgba(0,0,0,.2);
        transform: translateY(-1px);
    }

/* ── Clasificación: Priorización ─────────────────────────── */
.cf-priorizacion-grid[b-12rfciojvp] {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.cf-pri-btn[b-12rfciojvp] {
    min-width: 52px;
    padding: .4rem .9rem;
    border-radius: .375rem;
    border: 2px solid #dce3ec;
    background: transparent;
    color: #1a2433;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
}

    .cf-pri-btn:hover[b-12rfciojvp] {
        border-color: #2471a3;
        color: #2471a3;
    }

.cf-pri-active[b-12rfciojvp] {
    background: #2471a3 !important;
    border-color: #2471a3 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(36,113,163,.35);
}

/* ══════════════════════════════════════════
   SIDEBAR — HISTORIAL CLÍNICO
══════════════════════════════════════════ */
.cf-sidebar[b-12rfciojvp] {
    flex: 0 0 0;
    width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-left: 1px solid transparent;
    background: #fff;
    transition: flex-basis .3s ease, border-color .3s ease;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: none;
}

.cf-sidebar--open[b-12rfciojvp] {
    flex-basis: 380px;
    width: 380px;
    border-color: #e8edf3;
    box-shadow: -4px 0 20px rgba(0,0,0,.06);
}

.cf-sidebar-header[b-12rfciojvp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e8edf3;
    background: linear-gradient(135deg, #0f2942, #1a5276);
    flex-shrink: 0;
}

.cf-sidebar-title[b-12rfciojvp] {
    display: flex;
    gap: .45rem;
    font-weight: 700;
    font-size: .95rem;
    align-items: center;
    color: #fff;
}

.cf-sidebar-close[b-12rfciojvp] {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    cursor: pointer;
    font-size: .9rem;
    padding: .2rem .5rem;
    border-radius: .3rem;
    line-height: 1;
    transition: background .15s;
}

    .cf-sidebar-close:hover[b-12rfciojvp] {
        background: rgba(255,255,255,.3);
    }

.cf-sidebar-body[b-12rfciojvp] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem .85rem;
    background: #f8fafc;
}

/* ══════════════════════════════════════════
   LÍNEA DE TIEMPO
══════════════════════════════════════════ */
.cf-tl[b-12rfciojvp] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cf-tl-entry[b-12rfciojvp] {
    display: flex;
    flex-direction: column;
}

.cf-tl-row[b-12rfciojvp] {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    cursor: pointer;
    padding: .6rem .5rem;
    border-radius: .5rem;
    transition: background .12s;
    user-select: none;
}

    .cf-tl-row:hover[b-12rfciojvp] {
        background: #eaf4fb;
    }

.cf-tl-entry--open .cf-tl-row[b-12rfciojvp] {
    background: #eaf4fb;
    border-radius: .5rem .5rem 0 0;
}

/* Indicador dot + línea */
.cf-tl-indicator[b-12rfciojvp] {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
}

.cf-tl-dot-outer[b-12rfciojvp] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .15s, box-shadow .15s;
}

.cf-tl-entry--open .cf-tl-dot-outer[b-12rfciojvp] {
    border-color: #2471a3;
    box-shadow: 0 0 0 3px rgba(36,113,163,.15);
}

.cf-tl-dot-inner[b-12rfciojvp] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bdc3c7;
    display: block;
}

.cf-tl-line[b-12rfciojvp] {
    width: 2px;
    flex: 1 1 auto;
    min-height: 16px;
    background: #e8edf3;
    margin-top: 2px;
}

/* Texto */
.cf-tl-info[b-12rfciojvp] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.cf-tl-time[b-12rfciojvp] {
    font-size: .7rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cf-tl-motivo[b-12rfciojvp] {
    font-size: .84rem;
    line-height: 1.35;
    font-weight: 500;
    color: #1a2433;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cf-tl-chips[b-12rfciojvp] {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
    margin-top: .2rem;
}

.cf-tl-chip[b-12rfciojvp] {
    font-size: .67rem;
    font-weight: 600;
    padding: .1em .5em;
    border-radius: 999px;
    background: #e8edf3;
    color: #1a2433;
    white-space: nowrap;
}

.cf-tl-chip--pri[b-12rfciojvp] {
    background: #2471a3;
    color: #fff;
}

.cf-tl-chip--closed[b-12rfciojvp] {
    background: #d5f5e3;
    color: #1e8449;
}

.cf-tl-chip--open[b-12rfciojvp] {
    background: #fef9e7;
    color: #b7770d;
}

.cf-tl-chevron[b-12rfciojvp] {
    font-size: .7rem;
    color: #aab7c4;
    align-self: center;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   DETALLE EXPANDIBLE
══════════════════════════════════════════ */
.cf-tl-detail[b-12rfciojvp] {
    margin: 0 0 .75rem 1.7rem;
    border: 1px solid #d6e4f0;
    border-top: none;
    border-radius: 0 0 .5rem .5rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.cf-tl-det-loading[b-12rfciojvp] {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1rem;
    font-size: .82rem;
    color: #7f8c8d;
}

.cf-det-bloque[b-12rfciojvp] {
    padding: .65rem .9rem;
    border-bottom: 1px solid #f0f4f8;
}

    .cf-det-bloque:last-child[b-12rfciojvp] {
        border-bottom: none;
    }

.cf-det-titulo[b-12rfciojvp] {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #7f8c8d;
    margin-bottom: .35rem;
}

.cf-det-texto[b-12rfciojvp] {
    font-size: .82rem;
    margin: 0;
    line-height: 1.5;
    color: #2c3e50;
}

.cf-det-notas[b-12rfciojvp] {
    font-size: .77rem;
    color: #95a5a6;
    font-style: italic;
    margin: .3rem 0 0;
}

.cf-det-grid[b-12rfciojvp] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .3rem .65rem;
}

.cf-det-dato[b-12rfciojvp] {
    display: flex;
    flex-direction: column;
}

.cf-det-lbl[b-12rfciojvp] {
    font-size: .67rem;
    color: #95a5a6;
}

.cf-det-val[b-12rfciojvp] {
    font-size: .84rem;
    font-weight: 700;
    color: #1a2433;
}

.cf-det-receta[b-12rfciojvp] {
    font-size: .8rem;
    padding: .22rem 0;
    border-bottom: 1px solid #f0f4f8;
    color: #2c3e50;
}

    .cf-det-receta:last-child[b-12rfciojvp] {
        border-bottom: none;
    }

/* ── Estado vacío / cargando ─────────────────────────────── */
.cf-tl-empty[b-12rfciojvp] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 2.5rem 1rem;
    color: #95a5a6;
    font-size: .87rem;
    text-align: center;
}

.cf-tl-empty-icon[b-12rfciojvp] {
    font-size: 2.4rem;
}
