.gts-schedule {
    width: 100%;
    margin: 40px auto;
}

.gts-schedule-header {
    margin-bottom: 25px;
}

.gts-schedule-title {
    margin: 0;
}


/*
|--------------------------------------------------------------------------
| Calendar wrapper
|--------------------------------------------------------------------------
*/

.gts-calendar-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Calendar
|--------------------------------------------------------------------------
*/

.gts-calendar {
    min-width: 1100px;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.gts-calendar-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
}

.gts-time-header,
.gts-day-header {
    min-height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    font-weight: 700;

    border-right: 1px solid #e5e5e5;
}

.gts-time-header {
    font-size: 13px;
    color: #777777;
}

.gts-day-header:last-child {
    border-right: none;
}


/*
|--------------------------------------------------------------------------
| Calendar body
|--------------------------------------------------------------------------
*/

.gts-calendar-body {
    display: grid;
    grid-template-columns: 80px 1fr;
}


/*
|--------------------------------------------------------------------------
| Time column
|--------------------------------------------------------------------------
*/

.gts-time-column {
    position: relative;

    height: var(--gts-calendar-height);

    border-right: 1px solid #e5e5e5;

    background: #fafafa;
}

.gts-time-slot {
    position: absolute;

    left: 0;

    width: 100%;

    transform: translateY(-50%);

    padding-right: 10px;

    text-align: right;

    font-size: 12px;

    color: #777777;
}


/*
|--------------------------------------------------------------------------
| Days container
|--------------------------------------------------------------------------
*/

.gts-days-columns {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    height: var(--gts-calendar-height);
}


/*
|--------------------------------------------------------------------------
| Individual day
|--------------------------------------------------------------------------
*/

.gts-day-column {
    position: relative;

    height: var(--gts-calendar-height);

    border-right: 1px solid #e5e5e5;

    background: #ffffff;
}

.gts-day-column:last-child {
    border-right: none;
}


/*
|--------------------------------------------------------------------------
| Hour lines
|--------------------------------------------------------------------------
*/

.gts-hour-line {
    position: absolute;

    left: 0;
    right: 0;

    height: 1px;

    background: #eeeeee;

    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| Training session
|--------------------------------------------------------------------------
*/

.gts-calendar-session {
    position: absolute;

    /* left: 6px;
    right: 6px; */

    box-sizing: border-box;

    padding: 8px;

    border-left: 4px solid var(--gts-session-color);

    border-radius: 6px;

    background: color-mix(
        in srgb,
        var(--gts-session-color) 12%,
        white
    );

    overflow: hidden;

    z-index: 2;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.gts-calendar-session:hover {
    transform: scale(1.02);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);

    z-index: 5;
}


/*
|--------------------------------------------------------------------------
| Session content
|--------------------------------------------------------------------------
*/

.gts-session-time {
    margin-bottom: 4px;

    font-size: 11px;

    font-weight: 700;

    color: #666666;
}

.gts-session-title {
    margin-bottom: 4px;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.3;
}

.gts-session-instructor {
    font-size: 12px;

    color: #666666;

    margin-bottom: 4px;
}

.gts-session-description {
    font-size: 11px;

    line-height: 1.4;

    color: #777777;
}


/*
|--------------------------------------------------------------------------
| Errors
|--------------------------------------------------------------------------
*/

.gts-error {
    padding: 15px;

    border: 1px solid #d63638;

    background: #fcf0f1;

    color: #d63638;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1200px) {

    .gts-calendar {
        min-width: 1000px;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .gts-schedule {
        margin: 25px auto;
    }

    .gts-calendar {
        min-width: 900px;
    }

    .gts-calendar-header {
        grid-template-columns:
            65px repeat(7, minmax(120px, 1fr));
    }

    .gts-calendar-body {
        grid-template-columns: 65px 1fr;
    }

    .gts-time-header,
    .gts-day-header {
        min-height: 50px;

        font-size: 13px;
    }

}