﻿/* Contenedor principal */
.hv-calendar-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Encabezado */
.hv-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #0078d7;
    color: white;
}

    .hv-calendar-header h2 {
        margin: 0;
        font-size: 1.5rem;
    }

/* Encabezado fijo para nombres de los días */
.hv-calendar-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Siete columnas */
    gap: 1px;
    background: #e0e0e0;
    height: 35px; /* Tamaño fijo */
}

    .hv-calendar-day-names .day-name {
        background: #0056b3;
        color: white;
        font-weight: bold;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1rem;
        text-align: center;
        border: 1px solid #ccc;
    }

/* Grid del calendario */
.hv-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Siete columnas, una por día */
    grid-auto-rows: 1fr; /* Cada celda toma la misma altura */
    gap: 1px;
    background: #e0e0e0;
    height: 100%; /* Asegura que la cuadrícula ocupe el espacio vertical disponible */
}

/* Celdas del calendario */
.hv-day-name, .hv-day, .hv-empty-day {
    background: white;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

/*.day-name {
    background: #0078d7;
    color: white;
    font-weight: bold;*/
/*padding: 0.5rem;*/
/*text-align: center;
}*/

/* Celdas de los días */
.hv-day {
    position: relative;
    overflow: hidden; /* Evita que el contenido desborde */
    min-height: 100px;
}

    /* Número del día */
    .hv-day .hv-day-number {
        font-weight: bold;
        background: #f4f4f4;
        width: 100%;
        text-align: center;
        /*padding: 0.1rem 0;
        border-bottom: 1px solid #ccc;*/
    }

    /* Contenedor con scroll */
    .hv-day .hv-records {
        flex-grow: 1; /* Expande para ocupar el espacio restante */
        overflow-y: auto; /* Scroll vertical */
        width: 100%;
        padding: 0.5rem;
        box-sizing: border-box; /* Padding incluido en el ancho total */
        /*max-height: calc(100% - 40px);*/ /* Ajusta dinámicamente el tamaño (40px es aproximado al alto de .day-number) */
    }
