/* Custom styles */
.programme-header {
    /* background-color: #f8f9fa; */
    padding: 20px 0;
    margin-bottom: 30px;
    /* border-bottom: 1px solid #e9ecef; */
    gap: 20px;
}

.programme-title {
    color: #202859;
    font-weight: 700;
    margin-bottom: 5px;
}

.programme-subtitle {
    color: #87b048;
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
    flex-shrink: 0;
}

.nav-tabs .nav-link {
    border: 2px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.nav-tabs .nav-link.active {
    border-color: #e9ecef #e9ecef #fff;
    color: #184e94;
    border-top-width: 3px;
    margin-bottom: -1px;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    background: #dee2e6;
    color: #184e94;
}

.programme-table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.programme-table .vertical-align-middle {
    vertical-align: middle;
}

.programme-table hr {
    border-color: #fff;
}

.programme-table th,
.programme-table td {
    /* padding: 0.75rem; */
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.programme-table thead th {
    font-size: 1rem;
    vertical-align: middle;
    border: 1px #fff solid;
    /* border-bottom: 2px solid #dee2e6; */
    background-color: #184e94;
    font-weight: 600;
    color: #fff;
}

.programme-table thead th {
    width: 13%;
}

.programme-table thead th:first-child {
    width: 9%;
}

/* .programme-table thead th:nth-child(2) {
            width: auto;
        } */

.programme-table tbody+tbody {
    border-top: 2px solid #dee2e6;
}

.programme-table .time-slot {
    width: 120px;
    background-color: #184e94;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #fff;
}

.programme-table .session-cell {
    border-left: 1px solid #dee2e6;
    min-height: 80px;
    font-size: 0.875rem;
    background-color: #dbdbdb;
}

.programme-table .session-title {
    text-decoration: underline;
    font-weight: 600;
    margin-bottom: 5px;
}

.programme-table .session-chair {
    display: none;
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.programme-table .session-chair::after {
    content: "---";
    display: block;
}

.programme-table .session-speaker {
    font-size: 0.85rem;
    color: #000;
}

.session-item {
    padding: 10px;
    /* border-radius: 5px; */
    background-color: #f8f9fa;
}

.session-item.company-symposium {
    background-color: #C6E0B4;
}


.session-item.concurrent-clinical-session {
    background-color: #DDEBF7;
}

.session-item.concurrent-scientific-session {
    background-color: #FFFF89;
}

.session-item.company-presentations {
    background-color: #FFFF00;
}

.session-item.special-SIGs {
    background-color: #000;
    color: #fff;
}


.session-item.concurrent-general-session {
    background-color: #D5B8EA;
}


.session-item.concurrent-session {
    background-color: #91EBBE;
}

.session-item.free-communication {
    background-color: #fff;
}

.session-item.general-meeting {
    background-color: #333F4F;
    color: #fff;
}

.session-item.bruno-keynote-lecture {
    background-color: #FFB7B7;
}

.session-item.keynote-lecture {
    background-color: #FED6E5;
}

.session-item.coffee-break,
.session-item.lunch {
    background-color: #f8f9fa;
}


.session-item.ceremony {
    background-color: #FFC000;
}

.session-item.how-to-session {
    background-color: #FCE4D6;
}

.session-item.country-session {
    background-color: #f1f8e9;
}

.session-item.panel-discussion {
    background-color: #fff3e0;
}

.session-item.reception {
    background-color: #FF33CC;
    color: #fff;
}

.session-item.reception p {
    color: #fff;
}

.session-item.dinner {
    background-color: #f3e5f5;
}

/* Responsive styles */
@media (max-width: 768px) {

    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .programme-header {
        flex-direction: column;
        text-align: center;
    }

    .h1,
    h1 {
        font-size: 1.75rem;
    }

    .programme-table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .programme-table-responsive .programme-table {
        display: block;
        width: 100%;
    }


    .programme-table-responsive .programme-table thead,
    .programme-table-responsive .programme-table tbody,
    .programme-table-responsive .programme-table th,
    .programme-table-responsive .programme-table td,
    .programme-table-responsive .programme-table tr {
        display: block;
    }

    .programme-table-responsive .programme-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .programme-table-responsive .programme-table tr {
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
    }

    .programme-table-responsive .programme-table td {
        border: none;
        border-bottom: 1px solid #dee2e6;
        position: relative;
        padding-left: 50%;
    }

    .programme-table .time-slot {
        width: 100%;
    }

    .programme-table-responsive .programme-table td:before {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }
}