/* Подключать после tabs.css и общих стилей сайта. */
#tabs_container, #tabs_content, #tabs_content > div {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
#tabs_content .schedule-scroll {
    width: 100%;
    max-width: 100%;
    max-height: 75vh;
    max-height: 75dvh;
    overflow: auto;
    position: relative;
    isolation: isolate;
    -webkit-overflow-scrolling: touch;
}
#tabs_content .schedule-scroll:focus-visible {
    outline: 2px solid #67b1c2;
    outline-offset: 2px;
}
#tabs_content .schedule-scroll table.schedule-table {
    width: 100% !important;
    min-width: var(--schedule-min-width) !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    table-layout: fixed !important;
}
#tabs_content .schedule-scroll .schedule-table > colgroup > col:first-child {
    width: 60px !important;
}
#tabs_content .schedule-scroll .schedule-table > colgroup > col:not(:first-child) {
    width: auto !important;
}
#tabs_content .schedule-scroll .schedule-table > :is(thead, tbody, tfoot) > tr > :is(td, th) {
    box-sizing: border-box;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow-wrap: anywhere;
}
#tabs_content .schedule-scroll .schedule-table .schedule-time {
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: right !important;
    background-color: #cccccc !important;
    white-space: nowrap;
}
#tabs_content .schedule-scroll .schedule-table .schedule-time * {
    text-align: right !important;
}
#tabs_content .schedule-scroll .schedule-table .schedule-heading {
    position: sticky;
    top: var(--schedule-header-top, 0px);
    z-index: 3;
    background-color: #cccccc !important;
}
#tabs_content .schedule-scroll .schedule-table .schedule-heading.schedule-time {
    z-index: 4;
    text-align: center !important;
}

#tabs_content .schedule-scroll table.schedule-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 0 !important;
}

#tabs_content .schedule-scroll .schedule-table > :is(thead, tbody, tfoot) > tr > :is(td, th) {
    border-width: 0 1px 1px 0 !important;
    border-style: solid !important;
}

#tabs_content .schedule-scroll .schedule-table .schedule-time {
    border-left-width: 1px !important;
    background-color: #dceef5 !important;
    vertical-align: bottom !important;
}

#tabs_content .schedule-scroll .schedule-table .schedule-heading {
    border-top-width: 1px !important;
}

/* Тонкая рамка и мягкое скругление области прокрутки */
#tabs_content .schedule-scroll {
    box-sizing: border-box;
    x-border: 1px solid #d2dae0;
    border-radius: 6px;
}

/* Спокойная сетка вместо чёрных границ */
#tabs_content .schedule-scroll .schedule-table > :is(thead, tbody, tfoot) > tr > :is(td, th) {
    border-color: #d2dae0 !important;
}

/* Немного больше воздуха в шапке */
#tabs_content .schedule-scroll .schedule-table .schedule-heading {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}