/* ==========================================================================
   UNIFIED TIMETABLE & BELLS - SFK KAI COLLEGE
   Modern, compact, high-contrast, centered & fully responsive schedule system
   ========================================================================== */

:root {
    --sched-primary: #0284c7;
    --sched-primary-dark: #0369a1;
    --sched-primary-hover: #0ea5e9;
    --sched-accent: #f59e0b;
    --sched-accent-light: #fef3c7;
    --sched-indigo: #4f46e5;
    --sched-indigo-light: #e0e7ff;
    --sched-text-main: #0f172a;
    --sched-text-muted: #64748b;
    --sched-border: #cbd5e1;
    --sched-border-light: #e2e8f0;
    --sched-bg-card: #ffffff;
    --sched-bg-alt: #f8fafc;
    --sched-radius-sm: 6px;
    --sched-radius-md: 10px;
    --sched-radius-lg: 14px;
    --sched-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --sched-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.07);
    --sched-shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.15);
    --sched-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   CONTAINER & HEADER
   -------------------------------------------------------------------------- */
.sched-container,
.sched-container *,
.sched-container *::before,
.sched-container *::after {
    box-sizing: border-box;
}

.sched-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px 60px;
    color: var(--sched-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
}

.sched-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.sched-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.sched-title i {
    color: var(--sched-primary);
}

.sched-subtitle {
    font-size: 0.95rem;
    color: var(--sched-text-muted);
    margin: 0 0 12px;
}

.sched-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid var(--sched-border);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: var(--sched-transition);
}

.sched-admin-badge:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   NAVIGATION TABS (5 TABS)
   -------------------------------------------------------------------------- */
.sched-nav-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: var(--sched-radius-lg);
    margin-bottom: 20px;
    border: 1px solid var(--sched-border-light);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sched-nav-tabs::-webkit-scrollbar {
    display: none;
}

.sched-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 16px;
    border: none;
    background: transparent;
    border-radius: var(--sched-radius-md);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sched-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--sched-transition);
    text-decoration: none;
}

@media (min-width: 992px) {
    .sched-tab-btn {
        flex: 1;
    }
}

.sched-tab-btn i {
    font-size: 1rem;
    transition: var(--sched-transition);
}

.sched-tab-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.sched-tab-btn.active {
    background: #ffffff;
    color: var(--sched-primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.sched-tab-btn.active i {
    color: var(--sched-primary);
}

/* --------------------------------------------------------------------------
   WEEK & CALENDAR BAR
   -------------------------------------------------------------------------- */
.sched-week-bar {
    background: var(--sched-bg-card);
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-lg);
    box-shadow: var(--sched-shadow-sm);
    padding: 12px 18px;
    margin-bottom: 16px;
}

.sched-week-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sched-week-nav-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.sched-nav-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--sched-border);
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    cursor: pointer;
    transition: var(--sched-transition);
    font-size: 0.95rem;
}

.sched-nav-btn:hover {
    background: #f8fafc;
    border-color: var(--sched-primary);
    color: var(--sched-primary);
    transform: scale(1.05);
}

.sched-calendar-picker-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--sched-border);
    border-radius: 30px;
    padding: 6px 18px;
    cursor: pointer;
    transition: var(--sched-transition);
    min-width: 270px;
    justify-content: center;
}

.sched-calendar-picker-box:hover {
    background: #f0f9ff;
    border-color: var(--sched-primary);
}

.sched-cal-icon {
    font-size: 1.15rem;
    color: var(--sched-primary);
}

.sched-week-label-box {
    text-align: center;
}

.sched-week-sublabel {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sched-text-muted);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 2px;
}

.sched-week-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.sched-week-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.sched-current-week-tag {
    background: #10b981;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sched-cal-arrow {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: var(--sched-transition);
}

.sched-calendar-picker-box:hover .sched-cal-arrow {
    color: var(--sched-primary);
}

.sched-today-btn {
    padding: 8px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--sched-primary-dark);
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--sched-transition);
}

.sched-today-btn:hover {
    background: #dbeafe;
    border-color: var(--sched-primary);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   CONTROLS CARD & MULTI-COLUMN GRID DROPDOWNS
   -------------------------------------------------------------------------- */
.sched-controls-card {
    position: relative;
    z-index: 50;
    background: var(--sched-bg-card);
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-lg);
    box-shadow: var(--sched-shadow-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
    overflow: visible; /* Never clip dropdowns */
}

.sched-select-container {
    position: relative;
}

.sched-select-container.open {
    z-index: 1000;
}

.sched-select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: #f8fafc;
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-md);
    cursor: pointer;
    transition: var(--sched-transition);
}

.sched-select-header:hover {
    background: #ffffff;
    border-color: var(--sched-primary);
}

.sched-select-val-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.sched-val-icon {
    font-size: 1.15rem;
    color: var(--sched-primary);
}

.sched-select-arrow {
    color: #94a3b8;
    transition: var(--sched-transition);
}

.sched-select-container.open .sched-select-arrow {
    transform: rotate(180deg);
    color: var(--sched-primary);
}

/* Dropdown Window */
.sched-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-md);
    box-shadow: var(--sched-shadow-lg);
    z-index: 1000;
    padding: 12px;
    display: none;
    animation: schedDropdownFade 0.15s ease-out;
    box-sizing: border-box;
    overflow-x: hidden !important;
}

.sched-select-list {
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.sched-select-list::-webkit-scrollbar {
    width: 4px;
}

.sched-select-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.sched-select-list::-webkit-scrollbar-track {
    background: transparent;
}

.sched-select-container.open .sched-select-dropdown {
    display: block;
}

@keyframes schedDropdownFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.sched-search-input-box {
    position: relative;
    margin-bottom: 10px;
}

.sched-search-input-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}

.sched-search-input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-sm);
    outline: none;
    font-size: 0.92rem;
    background: #f8fafc;
    box-sizing: border-box;
    transition: var(--sched-transition);
}

.sched-search-input:focus {
    border-color: var(--sched-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* MULTI-COLUMN GRID FOR GROUPS */
.sched-select-list.is-grid-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px 2px;
    list-style: none;
    margin: 0;
}

.sched-select-list.is-grid-groups .sched-select-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    background: #f8fafc;
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-sm);
    cursor: pointer;
    text-align: center;
    transition: var(--sched-transition);
}

.sched-select-list.is-grid-groups .sched-select-item:hover {
    background: #eff6ff;
    border-color: var(--sched-primary);
    color: var(--sched-primary-dark);
    transform: translateY(-1px);
}

.sched-select-list.is-grid-groups .sched-select-item.active {
    background: var(--sched-primary);
    border-color: var(--sched-primary);
    color: #ffffff;
    font-weight: 700;
}

.sched-select-list.is-grid-groups .sched-select-item.active .sched-item-subtext {
    color: rgba(255, 255, 255, 0.85);
}

/* MULTI-COLUMN GRID FOR TEACHERS */
.sched-select-list.is-grid-teachers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden !important;
    padding: 4px 2px;
    list-style: none;
    margin: 0;
    box-sizing: border-box !important;
}

.sched-select-list.is-grid-teachers .sched-select-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-sm);
    cursor: pointer;
    transition: var(--sched-transition);
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.sched-select-list.is-grid-teachers .sched-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    white-space: normal; /* Запобігаємо обрізанню трьома крапками (...) */
    line-height: 1.25;
    word-break: normal;
}

.sched-select-list.is-grid-teachers .sched-select-item:hover {
    background: #f0f9ff;
    border-color: var(--sched-primary);
    transform: translateY(-1px);
}

.sched-select-list.is-grid-teachers .sched-select-item.active {
    background: #e0f2fe;
    border-color: var(--sched-primary);
    font-weight: 700;
}

.sched-teacher-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sched-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    overflow: hidden;
}

.sched-teacher-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sched-item-text {
    flex: 1 1 auto;
    min-width: 0 !important;
    overflow: hidden;
}

.sched-item-title,
.sched-item-text > div:first-child {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.sched-item-subtext {
    font-size: 0.76rem;
    color: var(--sched-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   HOURS & JOURNAL SUMMARY CARD
   -------------------------------------------------------------------------- */
.sched-stats-card {
    position: relative;
    z-index: 1;
    background: var(--sched-bg-card);
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-lg);
    box-shadow: var(--sched-shadow-sm);
    padding: 12px 18px;
    margin-bottom: 20px;
    transition: var(--sched-transition);
}

.sched-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.sched-stats-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.sched-stats-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--sched-text-muted);
}

.sched-stats-icon {
    transition: var(--sched-transition);
}

.sched-stats-card.open .sched-stats-icon {
    transform: rotate(180deg);
}

.sched-stats-content {
    display: none;
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid var(--sched-border-light);
}

.sched-stats-card.open .sched-stats-content {
    display: block;
}

.sched-stats-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sched-subject-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: #f1f5f9;
    border: 1px solid var(--sched-border);
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: var(--sched-transition);
}

.sched-subject-badge:hover {
    background: #e0f2fe;
    border-color: var(--sched-primary);
    color: var(--sched-primary-dark);
    transform: translateY(-1px);
}

.sched-subject-hours {
    background: #0284c7;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   SCHEDULE DAY CARDS & COMPACT CENTERED TABLES
   -------------------------------------------------------------------------- */
.sched-days-container {
    position: relative;
    z-index: 1;
}

.sched-day-card {
    background: var(--sched-bg-card);
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-md);
    box-shadow: var(--sched-shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

/* Bold prominent centered day header */
.sched-day-header {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.sched-day-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sched-day-date {
    font-size: 1.15rem;
    font-weight: 700;
    opacity: 0.95;
}

.sched-day-today-badge {
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* Table layout */
.sched-table-responsive {
    overflow-x: auto;
    width: 100%;
}

.sched-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: center; /* All columns centered */
}

.sched-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 9px 12px;
    border-bottom: 2px solid var(--sched-border);
    border-right: 1px solid var(--sched-border-light);
    text-align: center;
}

.sched-table th:last-child {
    border-right: none;
}

.sched-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--sched-border-light);
    border-right: 1px solid var(--sched-border-light);
    vertical-align: middle;
    text-align: center; /* Centered cell contents */
}

.sched-table td:last-child {
    border-right: none;
}

.sched-table tbody tr:last-child td {
    border-bottom: none;
}

.sched-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.sched-table tbody tr:hover {
    background: #eff6ff;
}

/* Live Active Pair Highlight */
.sched-table tr.live-active {
    background: #fffbeb !important;
}

.sched-table tr.live-active td:first-child {
    border-left: 4px solid #f59e0b;
}

/* Balanced Columns */
.sched-col-pair {
    width: 110px;
    min-width: 100px;
    text-align: center;
    padding: 6px 8px !important;
}

.sched-pair-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e0f2fe;
    color: var(--sched-primary-dark);
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 50%;
}

.sched-pair-word {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--sched-primary-dark);
    margin-left: 4px;
}

.sched-table tr.live-active .sched-pair-num {
    background: #f59e0b;
    color: #ffffff;
}

.sched-pair-total-time {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2px;
    white-space: nowrap;
}

.sched-pair-breakdown {
    font-size: 0.68rem;
    color: var(--sched-text-muted);
    line-height: 1.25;
    margin-top: 2px;
    white-space: nowrap;
}

.sched-subbreak-tag {
    display: inline-block;
    color: #d97706;
    font-weight: 700;
    padding: 0 2px;
}

.sched-live-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #b45309;
    background: #fef3c7;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 3px;
}

.sched-col-target {
    width: 44%;
    text-align: center;
    color: #1e293b;
}

.sched-col-lesson {
    width: 46%;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
}

/* Stream / Split badges */
.sched-stream-item {
    padding: 3px 0;
    text-align: center;
}

.sched-stream-item:not(:last-child) {
    border-bottom: 1px dashed var(--sched-border-light);
    margin-bottom: 3px;
}

.sched-split-badge {
    display: inline-block;
    font-size: 0.72rem;
    padding: 1px 6px;
    background: var(--sched-indigo-light);
    color: var(--sched-indigo);
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 2px;
}

.sched-stream-badge {
    display: inline-block;
    font-size: 0.72rem;
    padding: 1px 6px;
    background: var(--sched-accent-light);
    color: #b45309;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 3px;
}

.sched-target-name, .sched-target-pill {
    display: inline-block;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    line-height: 1.35;
}

/* Empty day placeholder */
.sched-empty-day {
    padding: 24px;
    text-align: center;
    color: var(--sched-text-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   DOCUMENT SECTIONS (TABS 4 & 5: EXAMS & EXTRAMURAL)
   -------------------------------------------------------------------------- */
.sched-docs-container {
    background: var(--sched-bg-card);
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-lg);
    box-shadow: var(--sched-shadow-sm);
    padding: 24px;
    margin-bottom: 30px;
}

.sched-docs-header {
    margin-bottom: 22px;
}

.sched-docs-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sched-docs-header p {
    font-size: 0.92rem;
    color: var(--sched-text-muted);
    margin: 0;
}

.sched-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.sched-doc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-md);
    text-decoration: none;
    color: inherit;
    transition: var(--sched-transition);
}

.sched-doc-card:hover {
    background: #ffffff;
    border-color: var(--sched-primary);
    box-shadow: var(--sched-shadow-md);
    transform: translateY(-2px);
}

.sched-doc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e0f2fe;
    color: var(--sched-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sched-doc-body {
    flex: 1;
}

.sched-doc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.sched-doc-desc {
    font-size: 0.78rem;
    color: var(--sched-text-muted);
}

.sched-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--sched-primary);
    flex-shrink: 0;
}

/* Extramural emails table */
.sched-extramural-emails-box {
    margin-top: 30px;
    background: #ffffff;
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-md);
    padding: 18px;
}

.sched-extramural-emails-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.sched-extramural-emails-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sched-email-search {
    padding: 8px 14px;
    border: 1px solid var(--sched-border);
    border-radius: var(--sched-radius-sm);
    font-size: 0.88rem;
    outline: none;
    width: 260px;
    max-width: 100%;
    transition: var(--sched-transition);
}

.sched-email-search:focus {
    border-color: var(--sched-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.sched-emails-table a {
    color: var(--sched-primary-dark);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sched-emails-table a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   JOURNAL MODAL (TEACHER PAIR CONTROL SYSTEM)
   -------------------------------------------------------------------------- */
.sched-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sched-modal-overlay.active {
    display: flex;
    animation: schedModalFade 0.2s ease-out;
}

@keyframes schedModalFade {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.sched-modal-dialog {
    background: #ffffff;
    border-radius: var(--sched-radius-lg);
    box-shadow: var(--sched-shadow-lg);
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sched-border);
}

.sched-modal-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--sched-border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sched-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--sched-primary-dark);
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.sched-modal-title {
    margin: 0 0 2px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.sched-modal-subtitle {
    font-size: 0.88rem;
    color: var(--sched-text-muted);
}

.sched-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--sched-transition);
}

.sched-modal-close:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.sched-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
}

.sched-journal-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sched-border-light);
}

.journal-filter-btn {
    padding: 5px 12px;
    border: 1px solid var(--sched-border);
    background: #f8fafc;
    color: #334155;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--sched-transition);
}

.journal-filter-btn:hover {
    background: #f1f5f9;
}

.journal-filter-btn.active {
    background: var(--sched-primary);
    color: #ffffff;
    border-color: var(--sched-primary);
}

.sched-journal-month {
    padding: 6px 10px;
    background: #f1f5f9;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--sched-primary-dark);
    border-radius: 6px;
    margin: 14px 0 8px;
    text-transform: capitalize;
}

.sched-journal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.sched-journal-item:hover {
    background: #f8fafc;
}

.sched-journal-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1e293b;
}

.sched-journal-date i {
    color: var(--sched-primary);
}

.sched-journal-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #334155;
}

.sched-journal-group-tag {
    background: #e2e8f0;
    color: #334155;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   FLATPICKR CALENDAR OVERRIDES
   -------------------------------------------------------------------------- */
.flatpickr-calendar {
    border-radius: var(--sched-radius-lg) !important;
    box-shadow: var(--sched-shadow-lg) !important;
    border: 1px solid var(--sched-border) !important;
    font-family: inherit !important;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--sched-primary) !important;
    border-color: var(--sched-primary) !important;
}

.flatpickr-day.today {
    border-color: #f59e0b !important;
}

/* --------------------------------------------------------------------------
   MOBILE RESPONSIVENESS (ZERO HORIZONTAL SCROLL)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .sched-container {
        padding: 4px 6px 40px;
    }

    .sched-title {
        font-size: 1.4rem;
    }

    .sched-subtitle {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .sched-nav-tabs {
        gap: 6px;
        padding: 5px;
        margin-bottom: 14px;
        -webkit-overflow-scrolling: touch;
    }

    .sched-tab-btn {
        flex: 0 0 auto !important;
        min-width: auto !important;
        padding: 7px 14px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
    }

    .sched-week-bar {
        padding: 8px 10px;
    }

    .sched-week-controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .sched-week-nav-group {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
    }

    .sched-calendar-picker-box {
        flex: 1 1 auto;
        min-width: 0;
        padding: 4px 8px;
        gap: 6px;
        box-sizing: border-box;
    }

    .sched-cal-icon {
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .sched-cal-arrow {
        font-size: 0.72rem;
        flex-shrink: 0;
    }

    .sched-week-label-box {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .sched-week-sublabel {
        font-size: 0.62rem;
        letter-spacing: 0.04em;
        margin-bottom: 1px;
    }

    .sched-week-title-row {
        gap: 5px;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .sched-week-title {
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .sched-current-week-tag {
        font-size: 0.60rem;
        padding: 1px 5px;
        border-radius: 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .sched-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
        flex-shrink: 0;
    }

    .sched-today-btn {
        padding: 5px 14px;
        font-size: 0.78rem;
    }

    .sched-controls-card {
        padding: 10px 12px;
    }

    /* Compact Dropdown on mobile */
    .sched-select-dropdown {
        padding: 8px 6px;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .sched-search-input-box {
        margin-bottom: 6px;
    }

    .sched-search-input {
        padding: 7px 10px 7px 30px;
        font-size: 0.86rem;
    }

    .sched-search-input-box i {
        left: 10px;
        font-size: 0.82rem;
    }

    /* Multi-column grid on mobile */
    .sched-select-list.is-grid-groups {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        overflow-x: hidden !important;
    }

    .sched-select-list.is-grid-teachers {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 4px;
        max-height: 300px;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 2px 0;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .sched-select-list.is-grid-teachers .sched-select-item {
        padding: 5px 6px;
        gap: 7px;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .sched-teacher-avatar-mini {
        width: 24px;
        height: 24px;
        font-size: 0.74rem;
        flex-shrink: 0;
    }

    .sched-item-text {
        min-width: 0 !important;
    }

    .sched-item-title,
    .sched-item-text > div:first-child {
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sched-item-subtext {
        font-size: 0.70rem;
        line-height: 1.15;
    }

    /* DAY HEADER MOBILE */
    .sched-day-header {
        padding: 8px 10px;
        gap: 6px;
    }

    .sched-day-title {
        font-size: 0.95rem;
    }

    .sched-day-date {
        font-size: 0.95rem;
    }

    /* NO HORIZONTAL SCROLL ON TABLE */
    .sched-table-responsive {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .sched-table {
        table-layout: fixed !important;
        width: 100% !important;
    }

    .sched-col-pair {
        width: 68px !important;
        min-width: 0 !important;
        padding: 6px 2px !important;
    }

    .sched-pair-word {
        display: none; /* Hide 'ПАРА' text on tiny screens */
    }

    .sched-pair-breakdown {
        display: none; /* Hide subbreak details on tiny screens */
    }

    .sched-pair-total-time {
        font-size: 0.7rem;
    }

    .sched-col-target {
        width: calc((100% - 68px) / 2) !important;
        min-width: 0 !important;
        padding: 6px 4px !important;
        font-size: 0.82rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .sched-col-lesson {
        width: calc((100% - 68px) / 2) !important;
        min-width: 0 !important;
        padding: 6px 4px !important;
        font-size: 0.84rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .sched-docs-grid {
        grid-template-columns: 1fr;
    }

    .sched-extramural-emails-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sched-email-search {
        width: 100%;
    }
}


/* --------------------------------------------------------------------------
   TELEGRAM BOT BANNER (СИТУАЦІЯ 3)
   -------------------------------------------------------------------------- */
.sched-tg-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--sched-radius-md);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
    transition: var(--sched-transition);
}

.sched-tg-banner:hover {
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
    border-color: #7dd3fc;
}

.sched-tg-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sched-tg-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #229ed9 0%, #0088cc 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.35);
}

.sched-tg-text {
    min-width: 0;
}

.sched-tg-title {
    font-weight: 700;
    font-size: 0.96rem;
    color: #0c4a6e;
    line-height: 1.25;
}

.sched-tg-desc {
    font-size: 0.83rem;
    color: #0369a1;
    margin-top: 2px;
    line-height: 1.3;
}

.sched-tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #0088cc;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.25);
    transition: var(--sched-transition);
    flex-shrink: 0;
}

.sched-tg-btn:hover {
    background: #0077b5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.38);
}

.sched-tg-arrow {
    font-size: 0.74rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .sched-tg-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 14px;
    }
    .sched-tg-btn {
        justify-content: center;
        width: 100%;
        padding: 9px 14px;
    }
}

/* --------------------------------------------------------------------------
   АКАДЕМІЧНІ ГОДИНИ В ТАБЛИЦЯХ РОЗКЛАДУ (СИТУАЦІЯ 2)
   -------------------------------------------------------------------------- */
.sched-pair-hours {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 5px;
    font-size: 0.74rem;
    color: #475569;
}

.sched-hour-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    line-height: 1.25;
}

.sched-hour-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--sched-primary);
    background: #f0f9ff;
    padding: 1px 4px;
    border-radius: 4px;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

/* --------------------------------------------------------------------------
   ЖИВЕ ПУЛЬСУЮЧЕ ПІДСВІЧУВАННЯ РОЗКЛАДУ ДЗВІНКІВ (СИТУАЦІЯ 4)
   -------------------------------------------------------------------------- */
@keyframes cell-pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(37, 99, 235, 0.45), inset 0 0 6px rgba(37, 99, 235, 0.15);
        transform: scale(1.02);
    }
    50% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.85), inset 0 0 10px rgba(37, 99, 235, 0.28);
        transform: scale(1.03);
    }
}

@keyframes cell-break-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.45), inset 0 0 6px rgba(245, 158, 11, 0.15);
        transform: scale(1.02);
    }
    50% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.85), inset 0 0 10px rgba(245, 158, 11, 0.28);
        transform: scale(1.03);
    }
}

.rozklad-table tbody tr.row-active {
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.18) !important;
    position: relative;
    z-index: 1;
}

.rozklad-table td.highlight-active-hour {
    border: 2.5px solid #2563eb !important;
    background-color: #dbeafe !important;
    border-radius: 8px;
    color: #1e3a8a !important;
    font-weight: 800;
    animation: cell-pulse-glow 2.2s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

.rozklad-table td.highlight-active-mini-break {
    border: 2.5px dashed #f59e0b !important;
    background-color: #fef3c7 !important;
    border-radius: 8px;
    animation: cell-break-glow 2.2s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

.rozklad-table td.highlight-active-break {
    border: 2.5px dashed #ea580c !important;
    background-color: #ffedd5 !important;
    border-radius: 8px;
    animation: cell-break-glow 2.2s infinite ease-in-out;
    position: relative;
    z-index: 2;
}


/* --------------------------------------------------------------------------
   QUICK BELLS REFERENCE CARD (КОМПАКТНИЙ ГРАФІК ДЗВІНКІВ)
   -------------------------------------------------------------------------- */
.sched-quick-bells-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--sched-radius-md);
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: var(--sched-transition);
}

.sched-quick-bells-card:hover {
    border-color: #cbd5e1;
}

.sched-quick-bells-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
    background: #f8fafc;
    transition: background 0.2s ease;
}

.sched-quick-bells-header:hover {
    background: #f1f5f9;
}

.sched-qb-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sched-qb-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.sched-qb-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
}

.sched-qb-status {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #475569;
}

.sched-qb-status.is-live {
    background: #dcfce7;
    color: #15803d;
    animation: cell-pulse-glow 2s infinite ease-in-out;
}

.sched-qb-status.is-break {
    background: #fef3c7;
    color: #b45309;
}

.sched-qb-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
}

.sched-qb-chevron {
    font-size: 0.78rem;
    transition: transform 0.25s ease;
}

.sched-quick-bells-body {
    padding: 14px 16px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.sched-qb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.sched-qb-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.sched-qb-item.is-active {
    background: #ecfeff;
    border-color: #06b6d4;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.sched-qb-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284c7;
    margin-bottom: 2px;
}

.sched-qb-total {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.sched-qb-hours {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.35;
    border-top: 1px dashed #cbd5e1;
    padding-top: 4px;
}

.sched-qb-hour-tag {
    font-weight: 600;
    color: #475569;
}

/* --------------------------------------------------------------------------
   TELEGRAM BOT BANNER FIXES (MOBILE OVERFLOW PREVENTED)
   -------------------------------------------------------------------------- */
.sched-tg-banner {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

.sched-tg-btn {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .sched-tg-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        box-sizing: border-box !important;
    }

    .sched-tg-content {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    .sched-tg-btn {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
    }
}

/* --------------------------------------------------------------------------
   BELLS TAB: UNIFIED COMPACT TABLE (DESKTOP & MOBILE)
   Clean, contained, no page-overflow, smooth horizontal scroll on small screens
   -------------------------------------------------------------------------- */
.rozklad-timeline-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative;
    margin: 20px auto 14px !important;
    padding: 0 2px !important;
}

.rozklad-timeline {
    width: 100% !important;
    display: flex !important;
    height: 30px !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.rozklad-segment {
    flex-grow: 1;
    min-width: 0 !important;
    height: 100%;
    font-size: 0.72rem;
}

/* Біла картка розкладу дзвінків */
.rozklad-schedule {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 20px;
    margin: 20px 0 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

/* Контейнер таблиці: на ПК без скролів, на смартфонах плавний горизонтальний скрол всередині картки */
.rozklad-table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

/* Акуратний тонкий сучасний скролбар для мобільних/десктоп при скролі */
.rozklad-table-responsive::-webkit-scrollbar {
    height: 6px;
}
.rozklad-table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 9999px;
}
.rozklad-table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
.rozklad-table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.rozklad-table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    margin: 0;
}

.rozklad-table thead th {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #ffffff;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    border: none;
}

.rozklad-table td {
    padding: 10px 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    vertical-align: middle;
    white-space: nowrap;
}

/* Адаптивність для смартфонів (max-width: 768px) */
@media (max-width: 768px) {
    .rozklad-schedule {
        padding: 14px 10px !important;
        margin: 14px 0 20px !important;
        border-radius: 12px !important;
    }

    .rozklad-table {
        min-width: 480px !important; /* Гарантує, що стовпчики не стискатимуться в кашу */
    }

    .rozklad-table thead th {
        padding: 9px 8px !important;
        font-size: 0.8rem !important;
    }

    .rozklad-table td {
        padding: 8px 6px !important;
        font-size: 0.82rem !important;
    }

    .pair-badge {
        font-size: 0.72rem !important;
        padding: 3px 6px !important;
    }

    .time-range {
        font-size: 0.8rem !important;
    }

    .mini-break-tag, .main-break-tag, .final-break-tag {
        font-size: 0.72rem !important;
        padding: 2px 6px !important;
    }

    .rozklad-segment .seg-label {
        font-size: 0.65rem !important;
    }
}