/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-p7trqsluy9] {
    position: relative;
    display: flex;
    flex-direction: column;
    /* main mide width:80% colocado tras un sidebar de ancho fijo, lo que desborda ~29px en horizontal
       y provoca una barra de scroll horizontal de página (y de rebote ~15px de scroll vertical). El
       contenido real (rejillas) cabe y scrollea internamente; recortamos ese excedente (padding) para
       que no aparezcan barras de scroll de página innecesarias a 100% de zoom. */
    overflow-x: hidden;
}

main[b-p7trqsluy9] {
    flex: 1;
    width: 80% !important
}

.sidebar[b-p7trqsluy9] {
    background: rgb(0, 51, 102);
    background: linear-gradient(180deg, rgba(0, 51, 102, 1) 6%, rgba(102, 153, 204, 1) 100%);
}


.dark-sidebar[b-p7trqsluy9] {
    background: rgb(34, 34, 34);
    background: linear-gradient(180deg, rgba(34, 34, 34, 1) 6%, rgba(68, 68, 68, 1) 100%);
}

.top-row[b-p7trqsluy9] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-p7trqsluy9]  a, .top-row .btn-link[b-p7trqsluy9] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-p7trqsluy9] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-p7trqsluy9] {
        display: none;
    }

    .top-row.auth[b-p7trqsluy9] {
        justify-content: space-between;
    }

    .top-row a[b-p7trqsluy9], .top-row .btn-link[b-p7trqsluy9] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-p7trqsluy9] {
        flex-direction: row;
    }

    .sidebar[b-p7trqsluy9] {
        width: 290px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-p7trqsluy9] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-p7trqsluy9], article[b-p7trqsluy9] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* NavMenu — estilo del proyecto DicomWebHighWay: secciones <details>/<summary> minimalistas,
   items con altura 3rem y hover/active, sobre la barra lateral oscura (día y noche). */

.navbar-toggler[b-80gd3lkz45] {
    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-80gd3lkz45] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-80gd3lkz45] {
    min-height: 3.5rem;
    background-color: rgba(0, 0, 0, 0.4);
}

.navbar-brand[b-80gd3lkz45] {
    font-size: 1.1rem;
}

/* Iconos de fuente (Bootstrap Icons) de los items: ancho fijo + separación del texto.
   El <span class="bi"> es marcado de este componente (lleva el scope), así que un selector
   descendente lo alcanza sin ::deep aunque el <a> de NavLink no esté escopado. */
.nav-link .bi[b-80gd3lkz45] {
    display: inline-block;
    width: 1.25rem;
    text-align: center;
    margin-right: 0.75rem;
}

.nav-item[b-80gd3lkz45] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item[b-80gd3lkz45]  .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    /* Altura mínima en lugar de fija para permitir wrap a 2 líneas en etiquetas largas. */
    min-height: 3rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    display: flex;
    align-items: center;
    line-height: 1.2rem;
    width: 100%;
    /* Permitimos wrap; el icono al inicio se alinea con la primera línea. */
    white-space: normal;
    word-wrap: break-word;
}

/* Cuando el texto envuelve, el icono se alinea arriba para no descentrarse. */
.nav-item[b-80gd3lkz45]  .nav-link .bi {
    align-self: flex-start;
    line-height: 1.2rem;
    margin-top: 0.05rem;
}

.nav-item[b-80gd3lkz45]  a.active {
    background-color: rgba(255, 255, 255, 0.37);
    color: white;
}

.nav-item[b-80gd3lkz45]  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Separadores entre secciones del menú. */
hr.nav-section-divider[b-80gd3lkz45] {
    margin-left: 1rem;
    margin-right: 1rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    opacity: 1;
}

/* === Secciones colapsables (toggle nativo del navegador, persistencia con nav-section-toggle.js) ===
   Minimalista: sin chevron/triángulo; summary con opacidad 0.4 y una línea blanca abajo que actúa
   de separador y "pista" de que es una sección. */
.nav-section[b-80gd3lkz45] {
    margin: 1rem 0 0 0;
}

.nav-section > summary[b-80gd3lkz45] {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 0.3rem 0;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    opacity: 0.4;
    cursor: pointer;
    user-select: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
}

.nav-section > summary[b-80gd3lkz45]::-webkit-details-marker { display: none; }
.nav-section > summary[b-80gd3lkz45]::marker { content: ""; }

.nav-section > summary small[b-80gd3lkz45] {
    opacity: 0.6;
    font-size: 0.7rem;
}

/* Padding de los items dentro del <details> (el :first-of-type general no aplica porque el
   <summary> cuenta como primer hijo). */
.nav-section .nav-item:first-of-type[b-80gd3lkz45] { padding-top: 0.5rem; }
.nav-section .nav-item:last-of-type[b-80gd3lkz45] { padding-bottom: 0.5rem; }

.nav-scrollable[b-80gd3lkz45] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-80gd3lkz45] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-80gd3lkz45] {
        display: none;
    }

    .nav-scrollable[b-80gd3lkz45] {
        /* En pantallas anchas la barra no se colapsa nunca */
        display: block;
        /* Permitir scroll si el menú es alto */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
