.timeline {
    overflow-x: auto;
    /*position: relative;*/
    overflow-y: hidden;
}

.timeline-wrapper {
    position: relative;
}

.timeline-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 1100px;
    table-layout: fixed;
    border: 1px solid #ddd;
}

.timeline-table tbody tr:nth-child(even) {
    background-color: transparent;
}
.timeline-table tbody tr:nth-child(odd) {
    background-color: #f5f9fd;
}

.timeline-table th,
.timeline-table td {
    text-align: center;
    vertical-align: middle;
    padding: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-table th {
    border: 1px solid #ddd;
}

.col-hours {
    min-width: 10px;
    min-height: 44px;
    height: 50px;
}

.row-hours {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    position: sticky;
    left: 0;
    z-index: 4;
}

.col-resource-name {
    background-color: #dcdcdc;
    /*position: sticky;*/
    left: 0;
    z-index: 4;
}

.col-resource {
    background-color: #dcdcdc;
}


.aircraft-name, .instructor-name {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    background-color: #f0f0f0;
    /*position: sticky;*/
    left: 0;
    z-index: 4;
    border-right: 1px solid #ddd;
}

.time-slot,
.booked {
    background-color: inherit;
    width: 2.5%;
    min-width: 10px;
    min-height: 44px;
    height: 50px;
    padding: 0;
    margin: 0;
    border-left: 1px solid rgba(244, 244, 244, 0.96);
}

.timeline-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.time-slot.hour-end {
    border-right: 1px solid #ddd;
}

.time-slot.available {
    cursor: pointer;
}

.time-slot.available:hover, .time-slot.available.selected {
    background-color: #d6eaf4;
}


.time-slot.unavailable {
    background-color: #f0f0f0;
}

.booking-content {
    background-color: #c2dfef;
    padding: 1px;
    margin: 1px;
    height: calc(100% - 2px);
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.booking-content.booking-briefing {
    padding-right: 0;
    margin-right: 0;
    /*background: repeating-linear-gradient(*/
    /*        45deg,*/
    /*        #c2dfef,*/
    /*        #c2dfef 3px,*/
    /*        #ebf4fa 3px,*/
    /*        #ebf4fa 6px*/
    /*);*/
}

.booking-content.booking-flight {
    padding-right: 0;
    margin-right: 0;
    padding-left: 0;
    margin-left: 0;
}

.booking-content.booking-debriefing {
    padding-left: 0;
    margin-left: 0;
    background: repeating-linear-gradient(
            45deg,
            #c2dfef,
            #c2dfef 3px,
            #ebf4fa 3px,
            #ebf4fa 6px
    );
}

.booking-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    pointer-events: auto;
    container-type: inline-size;
}

.booking-content:hover {
    background-color: #98cae4;
}

.booking-label {
    width: 100%;
    margin: 0;
    padding-left:0.25rem;
    padding-right:0.25rem;
    text-align: center;
    white-space: normal;
    overflow: visible;
}

/* Use a container query to change behavior at a certain width, like 120px */
@container (max-width: 120px) {
    .booking-label {
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .booking-label-main,
    .booking-label-sub {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        margin: 0;
    }

}


.current-time-line {
    position: absolute;
    width: 1px;
    background-color: rgba(255, 0, 0, 0.3);
    z-index: 3;
}

.scheduler-tooltip .tooltip-inner {
    background-color: white !important;
    border: 2px solid rgba(0,0,0,0.16) !important;
    color: black !important;
    border-radius: 0;
    padding: 12px 15px;
    text-align: left;
    max-width: 300px !important;
}

.scheduler-tooltip .tooltip-arrow::before {
    border-bottom-color: rgba(0,0,0,0.16) !important;
    border-top-color: rgba(0,0,0,0.16) !important;
}

.booking-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}