/* @media print {
    .calendar-week {
        page-break-inside: avoid;
        page-break-after: always;
    }
} */


#calendar-cookiteka-shotcode.print-pdf {

    .calendar-filters {display: none;}
    & {
        /* font-size: 0.8em; */
    }

    .categoria {
        /* display: none; */
    }
    
    .nombre-curso {
        display: none;
    }
    
    .calendar-time-period-label {
        /* writing-mode: vertical-rl; */
        /* text-orientation: mixed; */
        font-size: 10px;
    }
    
    .nombre-taller {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


}
#calendar-cookiteka-shotcode .calendar-filters {
    margin-bottom: 60px;
    display: flex;

    .filter-option {
        display: flex;
        align-items: center;

        label {
            margin-right: 24px;
        }
        select {
            font-size: 14px;
            height: 40px;
        }
    }

    .filter-option:not(:first-child) {
        margin-left: 60px;
    }

    .export-pdf-option {
        margin-left: auto;
        display: flex;
    }
}

#calendar-cookiteka-shotcode .calendar-navigation {
    display: flex;
    justify-content: space-between;

    h2 {
        margin-bottom: 20px;
        font-size: 20px;
        font-weight: bold;
        text-transform: uppercase;
    }
    a {
        font-size: 20px;
        text-transform: capitalize;
    }
}

.calendar-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* margin: 20px 0; */
}

/* Contenidor de cada setmana */
.calendar-week {
    display: grid;
    grid-template-columns: auto repeat(7, 1fr);
    gap: 5px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
    page-break-inside: avoid;

    &.sin-domingo {
        grid-template-columns: auto repeat(6, 1fr);
        /* grid-template-columns: repeat(6, 1fr); */

        .calendar-day-header:last-child, .calendar-day-cell:last-child {
            display: none;
        }
    }
}

@media print {
    .print-pdf {
        font-size: 0.8em; /* Redueix la mida de la font */
    }

    .print-pdf table {
        width: 100%; /* Assegura que la taula ocupi tot l'ample disponible */
    }

    .print-pdf th, .print-pdf td {
        padding: 4px; /* Redueix el padding de les cel·les */
    }

    .calendar-week {
        page-break-inside: avoid; /* Evita salts de pàgina dins de les setmanes */
    }
}


/* Fila de la capçalera de cada setmana */
.calendar-header-row {
    display: contents; 
}

/* Fila per cada franja horària (Mañana, Mediodía, etc.) */
.calendar-time-period-row {
    display: contents; 
}

/* Cel·les de la capçalera amb els dies de la setmana */
.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    background-color: #e6e6ff;
}

/* Cel·les dels períodes de temps (franges horàries) */
.calendar-time-period-label {
    text-align: left;
    font-weight: bold;
    padding: 10px;
    background-color: #e6e6e6;
}

/* Cel·les dels dies */
.calendar-day-cell {
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 5px;

    .empty-day {
        background-color: #f4f4f4;
    }

    /* Contingut del curs/producte */
    .curs-contingut {
        padding: 5px;
        border: 1px solid #ccc;
        word-wrap: break-word;
        background-color: #e6e6e6;

        /* .nombre-curso, */
        .nombre-taller,
        .precio-taller-curso {
            font-weight: bold;
        }
        .nombre-curso {
            display: none;
        }

        /* &.trimestral {
            background-color: #53876A;
        }
        &.pack {
            background-color: #227098;
        }
        &.taller {
            background-color: #DC5A41;
        }
        a {
            color: #fff;
        } */
    }

}


/* table, th, td {
    border: 1px solid;
}

.calendar-week-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.calendar-week-header {
    background-color: #f4f4f4;
}

.calendar-week-row-header th {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
}

.calendar-week-row-header th.calendar-week-blank {
    background: #fff;
    border-color: #fff;
}

.calendar-time-period-row td {
    padding: 5px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: top;
}

.calendar-time-period-label {
    background-color: #e6e6e6;
    font-weight: bold;
}

.empty-day {
    background-color: #f9f9f9;
}

.calendar-day-header {
    background-color: #e6e6ff;
}

.calendar-day-cell {
    background-color: #fff;
    min-height: 50px;
}

.curs-contingut {
    margin: 5px;
    padding: 5px;
    border: 1px solid #ccc;
    background-color: #fdfdfd;
} */
