/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-7hdtz3qc4l] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-7hdtz3qc4l] {
    flex: 1;
}

/*.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}*/

.top-row[b-7hdtz3qc4l] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-7hdtz3qc4l]  a, .top-row[b-7hdtz3qc4l]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-7hdtz3qc4l]  a:hover, .top-row[b-7hdtz3qc4l]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-7hdtz3qc4l]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-7hdtz3qc4l] {
        justify-content: space-between;
    }

    .top-row[b-7hdtz3qc4l]  a, .top-row[b-7hdtz3qc4l]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-7hdtz3qc4l] {
        flex-direction: row;
    }

    .sidebar[b-7hdtz3qc4l] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-7hdtz3qc4l] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-7hdtz3qc4l]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-7hdtz3qc4l], article[b-7hdtz3qc4l] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-7hdtz3qc4l] {
    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-7hdtz3qc4l] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-8gscga1h4m] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-8gscga1h4m] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-8gscga1h4m] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-8gscga1h4m] {
    font-size: 1.1rem;
}

.bi[b-8gscga1h4m] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-8gscga1h4m] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-8gscga1h4m] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-8gscga1h4m] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-8gscga1h4m] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-8gscga1h4m] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-8gscga1h4m] {
        padding-bottom: 1rem;
    }

    .nav-item[b-8gscga1h4m]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-8gscga1h4m]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-8gscga1h4m]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-8gscga1h4m] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-8gscga1h4m] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-8gscga1h4m] {
        display: none;
    }

    .nav-scrollable[b-8gscga1h4m] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-t1rjbxuxnh],
.components-reconnect-repeated-attempt-visible[b-t1rjbxuxnh],
.components-reconnect-failed-visible[b-t1rjbxuxnh],
.components-pause-visible[b-t1rjbxuxnh],
.components-resume-failed-visible[b-t1rjbxuxnh],
.components-rejoining-animation[b-t1rjbxuxnh] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-t1rjbxuxnh],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-t1rjbxuxnh],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-t1rjbxuxnh],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-t1rjbxuxnh],
#components-reconnect-modal.components-reconnect-retrying[b-t1rjbxuxnh],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-t1rjbxuxnh],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-t1rjbxuxnh],
#components-reconnect-modal.components-reconnect-failed[b-t1rjbxuxnh],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-t1rjbxuxnh] {
    display: block;
}


#components-reconnect-modal[b-t1rjbxuxnh] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-t1rjbxuxnh 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-t1rjbxuxnh 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-t1rjbxuxnh 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-t1rjbxuxnh]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-t1rjbxuxnh 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-t1rjbxuxnh {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-t1rjbxuxnh {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-t1rjbxuxnh {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-t1rjbxuxnh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-t1rjbxuxnh] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-t1rjbxuxnh] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-t1rjbxuxnh] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-t1rjbxuxnh] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-t1rjbxuxnh] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-t1rjbxuxnh] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-t1rjbxuxnh 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-t1rjbxuxnh] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-t1rjbxuxnh {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Liquidaciones/GenerarLiquidacionModal.razor.rz.scp.css */
.form-generar[b-qapkf56re9] {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
}

.reporte-a4[b-qapkf56re9] {
    max-width: 210mm;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    font-size: .82rem;
    color: #1e293b;
}

.reporte-header[b-qapkf56re9] {
    text-align: center;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #1e293b;
    padding-bottom: .75rem;
}

.reporte-header h2[b-qapkf56re9] {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.reporte-header-medico[b-qapkf56re9] {
    font-weight: 600;
}

.reporte-header-periodo[b-qapkf56re9] {
    color: #64748b;
    font-size: .8rem;
}

.reporte-grupo[b-qapkf56re9] {
    margin-bottom: 1.25rem;
    break-inside: avoid;
}

.reporte-grupo-titulo[b-qapkf56re9] {
    background: #f1f5f9;
    border-left: 4px solid #1e293b;
    padding: .35rem .6rem;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .35rem;
}

.reporte-tabla-scroll[b-qapkf56re9] {
    overflow-x: auto;
}

.reporte-tabla[b-qapkf56re9] {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
}

.reporte-tabla th[b-qapkf56re9], .reporte-tabla td[b-qapkf56re9] {
    padding: .3rem .5rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.reporte-tabla thead th[b-qapkf56re9] {
    border-bottom: 1px solid #1e293b;
    font-weight: 600;
    color: #475569;
}

.reporte-tabla .col-num[b-qapkf56re9] {
    text-align: right;
    white-space: nowrap;
}

.reporte-tabla .col-mono[b-qapkf56re9] {
    font-family: 'Courier New', monospace;
}

.reporte-tabla tfoot td[b-qapkf56re9] {
    border-top: 1px solid #1e293b;
    border-bottom: none;
    font-weight: 700;
}

.reporte-total-general[b-qapkf56re9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 2px solid #1e293b;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 700px) {
    .form-generar[b-qapkf56re9] {
        grid-template-columns: 1fr;
    }

    .reporte-tabla[b-qapkf56re9] {
        font-size: .72rem;
    }
}

@media print {
    .no-imprimir[b-qapkf56re9] {
        display: none !important;
    }

    .modal-backdrop[b-qapkf56re9] {
        position: static !important;
        background: none !important;
        padding: 0 !important;
    }

    .card[b-qapkf56re9] {
        position: static;
        max-width: none !important;
        max-height: none !important;
        box-shadow: none !important;
        border: none !important;
    }

    .reporte-a4[b-qapkf56re9] {
        border: none;
        max-width: 100%;
    }
}
/* /Components/Pages/Liquidaciones/LiquidacionDetalle.razor.rz.scp.css */
.barra-superior-sticky[b-wtoyeqh2o8] {
    position: sticky;
    top: var(--topbar-height, 60px);
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 40;
    background: var(--color-bg, #f0f2f5);
    padding-top: .5rem;
    padding-bottom: .75rem;
}

.revision-bar[b-wtoyeqh2o8] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .75rem;
    background: var(--color-success-bg, #dcfce7);
    border: 1px solid #bbf7d0;
    border-left: 4px solid var(--color-success, #15803d);
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
}

.revision-bar .form-control[b-wtoyeqh2o8] {
    max-width: 280px;
}

.revision-bar-texto[b-wtoyeqh2o8] {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: #14532d;
}

.revision-bar-texto .material-symbols-outlined[b-wtoyeqh2o8] {
    font-size: 1.2rem;
}

.revision-bar-acciones[b-wtoyeqh2o8] {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.revision-bar-acciones .form-control[b-wtoyeqh2o8] {
    min-width: 220px;
}

.detalle-con-panel[b-wtoyeqh2o8] {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detalle-principal[b-wtoyeqh2o8] {
    flex: 1;
    min-width: 0;
}

.panel-aprobacion[b-wtoyeqh2o8] {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--topbar-height, 60px) + 1rem);
    max-height: calc(100vh - var(--topbar-height, 60px) - 2rem);
    overflow-y: auto;
}

.resumen-liquidacion[b-wtoyeqh2o8] {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem 1rem;
    margin: 0;
    font-size: .85rem;
}

.resumen-liquidacion dt[b-wtoyeqh2o8] {
    color: var(--color-muted);
}

.resumen-liquidacion dd[b-wtoyeqh2o8] {
    margin: 0;
    text-align: right;
    font-weight: 600;
}

.resumen-liquidacion dd .form-control[b-wtoyeqh2o8] {
    text-align: right;
    font-weight: 400;
}

.resumen-liquidacion-total[b-wtoyeqh2o8] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 2px solid #1e293b;
    font-size: 1rem;
    font-weight: 700;
}

.arbol-titulo-fila[b-wtoyeqh2o8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.arbol-titulo[b-wtoyeqh2o8] {
    font-weight: 700;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.btn-cerrar-panel[b-wtoyeqh2o8] {
    display: inline-flex;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: .1rem;
    line-height: 1;
}

.arbol-backdrop[b-wtoyeqh2o8] {
    display: none;
}

.historial-panel[b-wtoyeqh2o8] {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 88vw;
    background: #fff;
    padding: .85rem;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .25);
    z-index: 1200;
    font-size: .78rem;
}

.historial-panel.historial-abierto[b-wtoyeqh2o8] {
    display: block;
}

.historial-evento[b-wtoyeqh2o8] {
    position: relative;
    border-left: 2px solid #e2e8f0;
    padding: 0 0 .85rem .85rem;
    margin: 0 0 .1rem .1rem;
}

.historial-evento[b-wtoyeqh2o8]::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1e293b;
}

.historial-evento-fecha[b-wtoyeqh2o8] {
    font-size: .68rem;
    color: #94a3b8;
}

.historial-evento-label[b-wtoyeqh2o8] {
    font-weight: 600;
    margin: .15rem 0;
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.historial-evento-usuario[b-wtoyeqh2o8] {
    font-size: .72rem;
    color: #64748b;
}

.historial-evento-obs[b-wtoyeqh2o8] {
    font-size: .72rem;
    color: #475569;
    font-style: italic;
    margin-top: .2rem;
}

.historial-evento-firma[b-wtoyeqh2o8] {
    display: block;
    max-width: 140px;
    max-height: 50px;
    margin-top: .3rem;
    border-bottom: 1px solid #e2e8f0;
}

/* =================================================================
   RESPONSIVO
   ================================================================= */
@media (max-width: 1100px) {
    .arbol-backdrop[b-wtoyeqh2o8] {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .5);
        z-index: 1150;
    }

    .detalle-con-panel[b-wtoyeqh2o8] {
        flex-direction: column;
    }

    .panel-aprobacion[b-wtoyeqh2o8] {
        width: 100%;
        position: static;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .revision-bar[b-wtoyeqh2o8] {
        flex-direction: column;
        align-items: stretch;
    }

    .revision-bar .form-control[b-wtoyeqh2o8] {
        max-width: none;
    }
}

@media print {
    .no-imprimir[b-wtoyeqh2o8] {
        display: none !important;
    }

    .page-header[b-wtoyeqh2o8] {
        display: none !important;
    }
}
/* /Components/Pages/Liquidaciones/ReporteLiquidacionA4.razor.rz.scp.css */
.paginacion-bar[b-rcis5wx7iq] {
    position: sticky;
    top: var(--topbar-height, 60px);
    z-index: 40;
    background: var(--color-bg, #f0f2f5);
    padding: .5rem 0 .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}

.paginacion-nav[b-rcis5wx7iq] {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.paginacion-acciones[b-rcis5wx7iq] {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.detalle-layout[b-rcis5wx7iq] {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detalle-hojas[b-rcis5wx7iq] {
    flex: 1;
    min-width: 0;
}

.reporte-tabla-scroll[b-rcis5wx7iq] {
    overflow-x: auto;
}

.arbol-nav[b-rcis5wx7iq] {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: .75rem;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    font-size: .78rem;
}

.arbol-titulo-fila[b-rcis5wx7iq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.arbol-titulo[b-rcis5wx7iq] {
    font-weight: 700;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.btn-indice-toggle[b-rcis5wx7iq] {
    display: none;
}

.btn-cerrar-arbol[b-rcis5wx7iq] {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: .1rem;
    line-height: 1;
}

.arbol-backdrop[b-rcis5wx7iq] {
    display: none;
}

.arbol-nivel1[b-rcis5wx7iq] {
    font-weight: 700;
    margin-top: .65rem;
    color: #1e293b;
}

.arbol-nivel1:first-of-type[b-rcis5wx7iq] {
    margin-top: 0;
}

.arbol-nivel2[b-rcis5wx7iq] {
    font-weight: 600;
    margin: .3rem 0 .15rem .5rem;
    color: #475569;
    font-size: .74rem;
}

.arbol-nivel3[b-rcis5wx7iq] {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: .2rem .4rem .2rem 1.1rem;
    margin: 1px 0;
    border-radius: 4px;
    color: #334155;
    cursor: pointer;
    font-size: .74rem;
    line-height: 1.3;
}

.arbol-nivel3:hover[b-rcis5wx7iq] {
    background: #f1f5f9;
}

.arbol-nivel3.activo[b-rcis5wx7iq] {
    background: #1e293b;
    color: #fff;
    font-weight: 600;
}

.reporte-a4[b-rcis5wx7iq] {
    max-width: 210mm;
    min-height: 297mm;
    margin: 0 auto 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    padding: 1.5rem;
    font-size: .82rem;
    color: #1e293b;
    display: flex;
    flex-direction: column;
}

.pagina-inactiva[b-rcis5wx7iq] {
    display: none;
}

.reporte-pie[b-rcis5wx7iq] {
    margin-top: auto;
    padding-top: 1rem;
    text-align: center;
    font-size: .7rem;
    color: #94a3b8;
}

.reporte-header[b-rcis5wx7iq] {
    text-align: center;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #1e293b;
    padding-bottom: .75rem;
}

.reporte-logo[b-rcis5wx7iq] {
    display: block;
    max-height: 55px;
    width: auto;
    margin: 0 auto .5rem;
}

.reporte-header h2[b-rcis5wx7iq] {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.reporte-header-medico[b-rcis5wx7iq] {
    font-weight: 600;
}

.reporte-header-periodo[b-rcis5wx7iq] {
    color: #64748b;
    font-size: .8rem;
}

.reporte-grupo[b-rcis5wx7iq] {
    margin-bottom: 1.25rem;
}

.reporte-resumen[b-rcis5wx7iq] {
    margin-bottom: 1rem;
    break-inside: avoid;
}

.reporte-resumen .reporte-tabla tfoot td[b-rcis5wx7iq] {
    background: #f1f5f9;
}
    .reporte-resumen .reporte-tabla th[b-rcis5wx7iq] {
        color: #fff;
    }
.reporte-grupo-titulo[b-rcis5wx7iq] {
    background: #f1f5f9;
    border-left: 4px solid #1e293b;
    padding: .35rem .6rem;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .35rem;
    /* Que el título no quede huérfano al final de una página, separado de su
       tabla — pero sin forzar todo el grupo (que puede superar una hoja) como
       bloque indivisible, porque eso deja la hoja anterior en blanco. */
    break-after: avoid;
}

.reporte-tabla[b-rcis5wx7iq] {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .78rem;
}

.reporte-tabla th[b-rcis5wx7iq], .reporte-tabla td[b-rcis5wx7iq] {
    padding: .3rem .5rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    overflow-wrap: break-word;
}

.reporte-tabla thead th[b-rcis5wx7iq] {
    border-bottom: 1px solid #1e293b;
    font-weight: 600;
    color: #475569;
}

/* Evita que una fila se corte a la mitad entre dos páginas del PDF. */
.reporte-tabla tbody tr[b-rcis5wx7iq] {
    break-inside: avoid;
}

.reporte-tabla .col-fecha[b-rcis5wx7iq]    { width: 9%; }
.reporte-tabla .col-ticket[b-rcis5wx7iq]   { width: 9%; }
.reporte-tabla .col-paciente[b-rcis5wx7iq] { width: 24%; }
.reporte-tabla .col-servicio[b-rcis5wx7iq] { width: 25%; }

.reporte-tabla .col-num[b-rcis5wx7iq] {
    width: 11%;
    text-align: right;
    white-space: nowrap;
}

    .reporte-tabla .col-mono[b-rcis5wx7iq] {
        font-family: 'Arial Narrow', monospace;
    }

.reporte-tabla tfoot td[b-rcis5wx7iq] {
    border-top: 1px solid #1e293b;
    border-bottom: none;
    font-weight: 700;
}

.reporte-total-general[b-rcis5wx7iq] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 2px solid #1e293b;
    font-size: 1rem;
    font-weight: 700;
}

.reporte-firmas[b-rcis5wx7iq] {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    break-inside: avoid;
}

/* Sello de firma electrónica: no es una línea para firmar a mano — es la
   constancia de que el acto (validar/aprobar) ya quedó registrado con
   usuario y fecha. ".pendiente" es el mismo sello en gris cuando el acto
   todavía no ocurrió. */
.reporte-firma-e[b-rcis5wx7iq] {
    flex: 1;
    min-width: 220px;
    max-width: 260px;
    display: flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid #16a34a;
    border-radius: 8px;
    padding: .5rem .7rem;
    background: #f0fdf4;
}

.reporte-firma-e.pendiente[b-rcis5wx7iq] {
    border-color: #cbd5e1;
    border-style: dashed;
    background: #f8fafc;
}

.reporte-firma-e-sello[b-rcis5wx7iq] {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
}

.reporte-firma-e.pendiente .reporte-firma-e-sello[b-rcis5wx7iq] {
    background: #cbd5e1;
    color: #64748b;
}

/* Firma real (imagen) del usuario/médico, cuando existe — reemplaza el sello
   ✓/– de texto. */
.reporte-firma-e-img[b-rcis5wx7iq] {
    flex-shrink: 0;
    max-width: 60px;
    max-height: 32px;
    object-fit: contain;
}

.reporte-firma-e-datos[b-rcis5wx7iq] {
    min-width: 0;
}

.reporte-firma-e-titulo[b-rcis5wx7iq] {
    font-weight: 700;
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #15803d;
}

.reporte-firma-e.pendiente .reporte-firma-e-titulo[b-rcis5wx7iq] {
    color: #64748b;
}

.reporte-firma-e-nombre[b-rcis5wx7iq] {
    font-size: .78rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reporte-firma-e-fecha[b-rcis5wx7iq] {
    font-size: .7rem;
    color: #64748b;
}

/* =================================================================
   RESPONSIVO
   ================================================================= */
@media (max-width: 1100px) {
    .detalle-layout[b-rcis5wx7iq] {
        flex-direction: column;
    }

    .reporte-a4[b-rcis5wx7iq] {
        min-height: 0;
    }

    /* El índice deja de ir arriba de la hoja: se oculta y solo aparece
       como panel lateral (drawer) cuando se pide con el botón "Índice". */
    .btn-indice-toggle[b-rcis5wx7iq] {
        display: inline-flex;
    }

    .btn-cerrar-arbol[b-rcis5wx7iq] {
        display: inline-flex;
    }

    .arbol-nav[b-rcis5wx7iq] {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        max-height: none;
        border-radius: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, .25);
        z-index: 1200;
    }

    .arbol-nav.arbol-abierto[b-rcis5wx7iq] {
        display: block;
    }

    .arbol-backdrop[b-rcis5wx7iq] {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .5);
        z-index: 1150;
    }
}

@media (max-width: 768px) {
    .reporte-a4[b-rcis5wx7iq] {
        padding: 1rem;
    }

    .reporte-header-periodo[b-rcis5wx7iq] {
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .reporte-a4[b-rcis5wx7iq] {
        padding: .75rem;
        font-size: .76rem;
    }

    .reporte-header h2[b-rcis5wx7iq] {
        font-size: 1rem;
    }

    .reporte-total-general[b-rcis5wx7iq] {
        flex-direction: column;
        align-items: flex-start;
        gap: .25rem;
    }

    .paginacion-bar[b-rcis5wx7iq] {
        justify-content: center;
        text-align: center;
    }

    .arbol-nav[b-rcis5wx7iq] {
        max-height: 180px;
    }
}

@media print {
    @page {
        size: A4;
        margin: 15mm;
    }

    .no-imprimir[b-rcis5wx7iq] {
        display: none !important;
    }

    .pagina-inactiva[b-rcis5wx7iq] {
        display: flex !important;
    }

    .reporte-a4[b-rcis5wx7iq] {
        border: none;
        box-shadow: none;
        max-width: 100%;
        min-height: 0;
        margin: 0;
    }

    .reporte-a4:not(:last-child)[b-rcis5wx7iq] {
        page-break-after: always;
    }

    .reporte-pie[b-rcis5wx7iq] {
        display: none;
    }
}
