/* /Components/CalendarioCrianza.razor.rz.scp.css */
/* CalendarioCrianza.razor.css - Estilos aislados para el componente */


.calendario-wrapper[b-ro5svyiydf] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Base (xs) - Móvil, ocupa todo el ancho disponible */
.calendario-crianza[b-ro5svyiydf] {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Cabecera con días de la semana */
.calendario-header[b-ro5svyiydf] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: var(--bs-primary, #0d6efd);
    color: #fff;
}

.calendario-header-dia[b-ro5svyiydf] {
    padding: 6px 1px;
    text-align: center;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Cuerpo del calendario */
.calendario-body[b-ro5svyiydf] {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background-color: #dee2e6;
}

/* Celda base */
.calendario-celda[b-ro5svyiydf] {
    aspect-ratio: 1;
    min-height: 40px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    border: none;
    overflow: hidden;
}

    .calendario-celda:hover[b-ro5svyiydf] {
        background-color: #f8f9fa;
        z-index: 1;
    }

/* Celda vacía (fuera del rango de crianza) */
.celda-vacia[b-ro5svyiydf] {
    background-color: #f8f9fa;
    cursor: default;
}

    .celda-vacia:hover[b-ro5svyiydf] {
        background-color: #f8f9fa;
    }

/* Celda activa (dentro del rango) */
.celda-activa[b-ro5svyiydf] {
    background-color: #fff;
}

/* Estados de datos */
.celda-sin-datos[b-ro5svyiydf] {
    background-color: #fff;
}

.celda-parcial[b-ro5svyiydf] {
    background-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.15);
}

.celda-completa[b-ro5svyiydf] {
    background-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.25);
}

/* Días con peso registrado */
.celda-activa.celda-completa[b-ro5svyiydf],
.celda-activa.celda-parcial[b-ro5svyiydf] {
    background-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.2);
}

/* Celda del día actual */
.celda-hoy[b-ro5svyiydf] {
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.5);
}

/* Celda de fecha futura - No seleccionable */
.celda-futuro[b-ro5svyiydf] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

    .celda-futuro:hover[b-ro5svyiydf] {
        background-color: #e9ecef;
    }

    .celda-futuro .celda-placeholder[b-ro5svyiydf] {
        color: #adb5bd;
    }

    .celda-futuro .celda-fecha[b-ro5svyiydf] {
        color: #adb5bd;
    }

/* Contenido de la celda */
.celda-contenido[b-ro5svyiydf] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 100%;
    height: 100%;
    padding: 2px;
    overflow: hidden;
}

/* Peso */
.celda-peso[b-ro5svyiydf] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-primary, #0d6efd);
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bajas */
.celda-bajas[b-ro5svyiydf] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-danger, #dc3545);
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pienso */
.celda-pienso[b-ro5svyiydf] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-success, #198754);
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.celda-placeholder[b-ro5svyiydf] {
    font-size: 0.75rem;
    font-weight: 400;
    color: #adb5bd;
}

/* Fecha pequeña debajo */
.celda-fecha[b-ro5svyiydf] {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 400;
}

/* Animación suave al hacer clic */
.calendario-celda:active:not(.solo-lectura)[b-ro5svyiydf] {
    transform: scale(0.98);
}

/* Estado solo lectura (deshabilitado) */
.calendario-crianza.solo-lectura[b-ro5svyiydf] {
    opacity: 0.65;
}

    .calendario-crianza.solo-lectura .calendario-header[b-ro5svyiydf] {
        background-color: #6c757d;
    }

    .calendario-crianza.solo-lectura .calendario-celda[b-ro5svyiydf] {
        cursor: default;
    }

        .calendario-crianza.solo-lectura .calendario-celda:hover[b-ro5svyiydf] {
            background-color: inherit;
        }

        .calendario-crianza.solo-lectura .calendario-celda:active[b-ro5svyiydf] {
            transform: none;
        }

    .calendario-crianza.solo-lectura .celda-peso[b-ro5svyiydf],
    .calendario-crianza.solo-lectura .celda-bajas[b-ro5svyiydf],
    .calendario-crianza.solo-lectura .celda-pienso[b-ro5svyiydf] {
        color: #6c757d;
    }

    .calendario-crianza.solo-lectura .celda-hoy[b-ro5svyiydf] {
        box-shadow: inset 0 0 0 1px rgba(108, 117, 125, 0.5);
    }

/* Aviso de solo lectura */
.calendario-aviso[b-ro5svyiydf] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.calendario-aviso-icono[b-ro5svyiydf] {
    font-size: 1rem;
}

/* Leyenda del calendario */
.calendario-leyenda[b-ro5svyiydf] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    color: #6c757d;
}

.leyenda-item[b-ro5svyiydf] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.leyenda-color[b-ro5svyiydf] {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

.leyenda-color.hoy[b-ro5svyiydf] {
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.5);
    background-color: #fff;
}

.leyenda-color.con-datos[b-ro5svyiydf] {
    background-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.2);
}

.leyenda-color.sin-datos[b-ro5svyiydf] {
    background-color: #fff;
}

.leyenda-color.futuro[b-ro5svyiydf] {
    background-color: #e9ecef;
}

/* sm (≥576px) */
@media (min-width: 576px) {
    .calendario-celda[b-ro5svyiydf] {
        min-height: 50px;
    }

    .celda-peso[b-ro5svyiydf],
    .celda-bajas[b-ro5svyiydf],
    .celda-pienso[b-ro5svyiydf] {
        font-size: 0.9rem;
    }

    .celda-placeholder[b-ro5svyiydf] {
        font-size: 0.9rem;
    }

    .celda-fecha[b-ro5svyiydf] {
        font-size: 0.75rem;
    }

    .calendario-header-dia[b-ro5svyiydf] {
        padding: 8px 2px;
        font-size: 0.75rem;
    }
}

/* md (≥768px) */
@media (min-width: 768px) {
    .calendario-celda[b-ro5svyiydf] {
        min-height: 55px;
    }

    .celda-peso[b-ro5svyiydf],
    .celda-bajas[b-ro5svyiydf],
    .celda-pienso[b-ro5svyiydf] {
        font-size: 1rem;
    }

    .celda-placeholder[b-ro5svyiydf] {
        font-size: 1rem;
    }

    .celda-fecha[b-ro5svyiydf] {
        font-size: 0.8rem;
    }

    .calendario-header-dia[b-ro5svyiydf] {
        padding: 10px 4px;
        font-size: 0.8rem;
    }

    .celda-contenido[b-ro5svyiydf] {
        padding: 3px;
    }
}

/* lg (≥992px) */
@media (min-width: 992px) {
    .calendario-celda[b-ro5svyiydf] {
        min-height: 60px;
    }

    .celda-peso[b-ro5svyiydf],
    .celda-bajas[b-ro5svyiydf],
    .celda-pienso[b-ro5svyiydf] {
        font-size: 1.1rem;
    }

    .celda-placeholder[b-ro5svyiydf] {
        font-size: 1.1rem;
    }

    .celda-fecha[b-ro5svyiydf] {
        font-size: 0.85rem;
    }

    .calendario-header-dia[b-ro5svyiydf] {
        padding: 11px 5px;
        font-size: 0.85rem;
    }
}

/* /Components/LoadingSpinner.razor.rz.scp.css */
.loading-spinner[b-kqr366ugol] {
    padding: 2rem;
}

.loading-centered[b-kqr366ugol] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading-fullpage[b-kqr366ugol] {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    z-index: 1050;
    min-height: 100vh;
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-hio8qucag9] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-hio8qucag9] {
    flex: 1;
}

.sidebar[b-hio8qucag9] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-hio8qucag9] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-hio8qucag9]  a, .top-row[b-hio8qucag9]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-hio8qucag9]  a:hover, .top-row[b-hio8qucag9]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-hio8qucag9]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-hio8qucag9] {
        justify-content: space-between;
    }

    .top-row[b-hio8qucag9]  a, .top-row[b-hio8qucag9]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-hio8qucag9] {
        flex-direction: row;
    }

    .sidebar[b-hio8qucag9] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-hio8qucag9] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-hio8qucag9]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

/*    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }*/
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-053wrmvt2b] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-053wrmvt2b] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-053wrmvt2b] {
    font-size: 1.1rem;
}

.bi[b-053wrmvt2b] {
    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-053wrmvt2b] {
    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-053wrmvt2b] {
    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-053wrmvt2b] {
    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-053wrmvt2b] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-053wrmvt2b] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-053wrmvt2b] {
        padding-bottom: 1rem;
    }

    .nav-item[b-053wrmvt2b]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-053wrmvt2b]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-053wrmvt2b]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-053wrmvt2b] {
        display: none;
    }

    .collapse[b-053wrmvt2b] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-053wrmvt2b] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
