/* ==========================================================================
   Infoboard modernus stiliu rinkinys (.ib-*)
   Suderintas su NIS (#660033), izoliuotas nuo style.css ir style_night.css
   ========================================================================== */

:root {
    --ib-primary: #660033;
    --ib-primary-dark: #4a0025;
    --ib-primary-light: #7c0a42;
    --ib-bg: #eef2f6;
    --ib-card: #ffffff;
    --ib-border: #d5dde7;
    --ib-text: #0f172a;
    --ib-muted: #64748b;
    --ib-danger: #dc2626;
    --ib-danger-dark: #b91c1c;
    --ib-amber: #fbbf24;
    --ib-green: #15803d;
}

/* Bendras fonas ir bazinis sriftas (nemazinant dydzio) */
html {
    background: var(--ib-bg) !important;
    background-image: none !important;
}

body.ib-tv-mode,
body.ib-web-mode {
    margin: 0;
    padding: 0;
    background: var(--ib-bg) !important;
    background-image: none !important;
    color: var(--ib-text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

/* Tik TV dienos rezimas: grieztas 100vh ekranas be slankjuosciu */
body.ib-tv-mode {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.ib-web-mode.ib-has-ticker {
    padding-bottom: 52px;
}

.ib-hidden {
    display: none !important;
}

/* -------------------- 1. VIRSUTINE ANTRASTE -------------------- */
.ib-topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 14px;
    background: linear-gradient(90deg, var(--ib-primary-dark) 0%, var(--ib-primary) 55%, var(--ib-primary-light) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 20;
}

.ib-brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ib-brand-de {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.ib-brand-lt {
    font-size: 13px;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.15;
    white-space: nowrap;
}

.ib-datetime-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.ib-clock-box {
    background: #ffffff;
    color: #c62828;
    padding: 2px 14px;
    border-radius: 8px;
    font-size: 32px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    min-width: 152px;
    text-align: center;
}

.ib-clock-box #clock {
    color: #c62828;
    font-weight: 800;
    display: inline;
}

.ib-date-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ib-top-sep {
    font-size: 22px;
    opacity: 0.45;
    user-select: none;
}

.ib-weekday-text {
    font-size: 24px;
    font-weight: 700;
    color: #fde68a;
    white-space: nowrap;
}

.ib-weekday-text i {
    color: #ffffff;
    font-weight: 500;
}

/* -------------------- 2. PAGRINDINIS TINKLAS -------------------- */
.ib-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 8px;
    padding: 6px 8px;
}

body.ib-tv-mode .ib-main-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

body.ib-web-mode .ib-main-grid {
    gap: 12px;
    padding: 12px 14px;
    align-items: start;
}

.ib-left-col,
.ib-right-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}

body.ib-tv-mode .ib-left-col,
body.ib-tv-mode .ib-right-col {
    min-height: 0;
    height: 100%;
}

/* -------------------- 3. KORTELES -------------------- */
.ib-card {
    background: var(--ib-card);
    border-radius: 8px;
    border: 1px solid var(--ib-border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ib-card-header {
    flex: 0 0 auto;
    padding: 5px 12px;
    background: var(--ib-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    line-height: 1.25;
}

.ib-card-header i {
    font-weight: 400;
    opacity: 0.92;
}

.ib-card-header-alert {
    background: #b91c1c;
}

.ib-card-header-morgen {
    background: #0f766e;
}

/* Kairiosios puses korteles */
.ib-card-aktuell,
.ib-card-morgen {
    flex: 0 0 auto;
}

.ib-aktuell-media {
    padding: 0;
}

.ib-aktuell-media:not(:empty) {
    padding: 8px 10px 4px;
}

.ib-aktuell-body {
    padding: 6px 10px;
    color: #b91c1c;
    font-size: 15px;
    line-height: 1.35;
}

.ib-morgen-body {
    padding: 6px 10px;
    color: var(--ib-text);
    font-size: 15px;
    line-height: 1.35;
}

.ib-card-vert {
    flex: 1 1 auto;
}

body.ib-tv-mode .ib-card-vert {
    min-height: 0;
}

.ib-vert-viewport {
    padding: 6px 10px;
    position: relative;
}

body.ib-tv-mode .ib-vert-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Puslapiavimo zenkliukas ir pazangos juostele */
.ib-pager-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ib-pager-track {
    flex: 0 0 auto;
    height: 3px;
    background: #e2e8f0;
    width: 100%;
    overflow: hidden;
}

.ib-pager-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b, #660033);
}

/* Pavadavimu irasai kairiojoje korteleje */
.ib-vert-day-header {
    font-weight: 700;
    font-size: 15px;
    color: var(--ib-primary);
    border-bottom: 1px solid #cbd5e1;
    padding: 4px 0 2px;
    margin-top: 6px;
}

.ib-vert-day-header:first-child {
    margin-top: 0;
}

.ib-vert-item {
    font-size: 15px;
    line-height: 1.3;
    padding: 3px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.ib-vert-item:last-child {
    border-bottom: none;
}

.ib-v-lesson {
    color: #dc2626;
    font-weight: 700;
}

.ib-v-class {
    color: var(--ib-green);
    font-weight: 700;
}

.ib-v-comment {
    font-style: italic;
    color: #334155;
}

.ib-vert-empty {
    color: var(--ib-muted);
    font-size: 15px;
    padding: 8px 2px;
}

/* -------------------- 4. DESINIOSIOS PUSES TVARKARASCIO LENTELE -------------------- */
body.ib-tv-mode .ib-card-timetable {
    flex: 1 1 auto;
    min-height: 0;
}

.ib-table-wrap {
    width: 100%;
    overflow-x: auto;
}

body.ib-tv-mode .ib-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.ib-live-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fde68a;
    padding: 1px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.ib-timetable {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    background: #ffffff;
}

.ib-timetable th,
.ib-timetable td {
    border-bottom: 1px solid #d5dde7;
    vertical-align: middle;
}

.ib-timetable th {
    background: #f1f5f9;
    color: #0f172a;
}

.ib-timetable tr.ib-th-classes th {
    font-size: 19px;
    font-weight: 800;
    padding: 3px 2px;
}

.ib-timetable tr.ib-th-subclasses th {
    font-size: 13px;
    font-weight: 700;
    padding: 2px 2px;
    background: #f8fafc;
    color: #475569;
}

.ib-timetable th.ib-th-stunde {
    font-size: 15px;
    font-weight: 700;
    padding: 4px 6px;
    text-align: left;
    white-space: nowrap;
}

.ib-timetable td {
    padding: 3px 4px;
}

.ib-timetable .ib-class-sep {
    border-left: 2px solid #cbd5e1 !important;
}

.ib-timetable td.ib-time-col {
    text-align: left;
    white-space: nowrap;
    font-size: 14px;
    padding: 3px 6px;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 500;
    border-right: 1px solid #cbd5e1;
}

.ib-timetable td.ib-cell-empty {
    background-color: #dde3ec !important;
}

.ib-timetable td.ib-cell-sub {
    background-color: #fbbf24 !important;
    color: #111827 !important;
    font-weight: 700;
}

/* Kompaktiška tuščia Pause eilutė (su now() palaikymu) */
.ib-timetable td.ib-pause-empty {
    background: #e2e8f0;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    padding: 2px 6px;
    letter-spacing: 0.3px;
}

.ib-timetable tr.ib-pause-row-compact td.ib-time-col {
    padding: 2px 6px;
    font-size: 14px;
}

/* Einamosios pamokos / pauzės paryškinimas (su W3 .w3-red ir .ib-row-now) */
.ib-timetable tr.w3-red,
.ib-timetable tr.ib-row-now {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.ib-timetable tr.w3-red td,
.ib-timetable tr.ib-row-now td {
    border-bottom-color: #b91c1c;
}

.ib-timetable tr.w3-red td.ib-time-col,
.ib-timetable tr.ib-row-now td.ib-time-col {
    background-color: #b91c1c !important;
    color: #ffffff !important;
}

.ib-timetable tr.w3-red td.ib-cell-empty,
.ib-timetable tr.ib-row-now td.ib-cell-empty {
    background-color: #b91c1c !important;
    opacity: 0.85;
}

.ib-timetable tr.w3-red td.ib-cell-sub,
.ib-timetable tr.ib-row-now td.ib-cell-sub {
    background-color: #f59e0b !important;
    color: #111827 !important;
    box-shadow: inset 0 0 0 2px #ffffff;
}

.ib-timetable tr.w3-red td.ib-pause-empty,
.ib-timetable tr.ib-row-now td.ib-pause-empty {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.ib-weekend-notice {
    padding: 26px 16px;
    text-align: center;
    color: var(--ib-muted);
    font-size: 17px;
    font-weight: 600;
}

/* -------------------- 5. APATINE BEGANTI JUOSTA (TICKER) -------------------- */
.ib-ticker-bar {
    flex: 0 0 auto;
    width: 100%;
    background: #1f1420;
    color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.22);
    z-index: 200;
}

body.ib-web-mode .ib-ticker-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
}

.ib-ticker-flag {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #fdb913 0%, #fdb913 33.33%, #006a44 33.33%, #006a44 66.66%, #c1272d 66.66%, #c1272d 100%);
}

.ib-ticker-inner {
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.ib-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: ib-ticker-scroll var(--ib-ticker-dur, 28s) linear infinite;
}

.ib-ticker-track.is-paused {
    animation-play-state: paused;
}

@keyframes ib-ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ib-ticker-group {
    display: inline-flex;
    align-items: center;
}

.ib-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 48px;
    font-size: 20px;
    line-height: 1.2;
}

.ib-ticker-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.ib-dot-1 {
    background: #fdb913;
}

.ib-dot-2 {
    background: #22c55e;
}

.ib-dot-3 {
    background: #ef4444;
}

.ib-dot-4 {
    background: #f8fafc;
}

.ib-tick-de {
    font-weight: 700;
    color: #ffffff;
}

.ib-tick-lt {
    font-style: italic;
    color: #fde68a;
}

.ib-ticker-close {
    display: none;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
}

body.ib-web-mode .ib-ticker-close {
    display: inline-block;
}

.ib-ticker-close:hover {
    background: #b91c1c;
    color: #ffffff;
}

/* -------------------- 6. INDEX.PHP APATINE DALIS (WEB REZIMAS) -------------------- */
.ib-web-lower {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 14px;
    padding: 4px 14px 20px;
    align-items: start;
}

.ib-week-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: var(--ib-card);
    border: 1px solid var(--ib-border);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    margin-bottom: 10px;
}

.ib-week-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ib-primary);
}

.ib-day-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ib-filter-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ib-filter-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

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

.ib-today-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
}

.ib-filter-btn.is-active .ib-today-dot {
    background: #fde68a;
}

.ib-week-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ib-week-day-card {
    background: var(--ib-card);
    border: 1px solid var(--ib-border);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.ib-week-day-card.is-today {
    border: 2px solid var(--ib-primary);
    box-shadow: 0 4px 12px rgba(102, 0, 51, 0.12);
}

.ib-week-day-head {
    padding: 7px 12px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ib-week-day-card.is-today .ib-week-day-head {
    background: var(--ib-primary);
    color: #ffffff;
}

.ib-today-pill {
    background: #fde68a;
    color: #4a0025;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ib-week-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ib-week-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ib-week-table-wrap td,
.ib-week-table-wrap th {
    padding: 4px 4px !important;
    font-size: 12px;
    line-height: 1.2;
}

.ib-week-table-wrap td[style*="#999999"] {
    background-color: #dde3ec !important;
}

/* Kalendoriaus kortele */
.ib-cal-card {
    background: var(--ib-card);
    border: 1px solid var(--ib-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.ib-cal-head-main {
    background: var(--ib-primary);
    color: #ffffff;
    padding: 9px 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.ib-cal-head-main i {
    font-weight: 400;
    opacity: 0.92;
}

.ib-cal-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ib-cal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.35;
}

.ib-cal-table thead th {
    background: #b91c1c;
    color: #ffffff;
    padding: 7px 8px;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid #991b1b;
}

.ib-cal-table thead th.ib-c-center,
.ib-cal-table tbody td.ib-c-center {
    text-align: center;
}

.ib-cal-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

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

.ib-cal-table tbody tr:hover {
    background: #f1f5f9;
}

.ib-cal-table tbody td {
    padding: 7px 8px;
    vertical-align: middle;
}

.ib-cal-table tbody tr.ib-cal-today {
    background: #fef3c7 !important;
    box-shadow: inset 4px 0 0 #b91c1c;
}

.ib-cal-table tbody tr.ib-cal-soon {
    background: #ecfdf5;
    box-shadow: inset 4px 0 0 #15803d;
}

/* Mygtukas i virsu ir poraste */
body.ib-web-mode #myBtn {
    display: none;
    position: fixed;
    bottom: 62px;
    right: 18px;
    z-index: 210;
    border: none;
    outline: none;
    background: var(--ib-primary);
    color: #ffffff;
    cursor: pointer;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    align-items: center;
    justify-content: center;
}

body.ib-web-mode #myBtn:hover {
    background: var(--ib-primary-dark);
}

.ib-footer {
    margin: 12px 14px 20px;
    padding: 14px 18px;
    background: var(--ib-card);
    border: 1px solid var(--ib-border);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    color: #334155;
}

.ib-footer-login {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--ib-primary);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
}

.ib-footer-login:hover {
    background: var(--ib-primary-dark);
}

/* -------------------- 7. RESPONSIVE IR SPAUSDINIMAS -------------------- */
@media (max-width: 1100px) {

    body.ib-web-mode .ib-main-grid,
    .ib-web-lower {
        grid-template-columns: 1fr;
    }

    body.ib-web-mode .ib-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    body.ib-web-mode .ib-datetime-group {
        flex-wrap: wrap;
        gap: 8px;
    }

    body.ib-web-mode .ib-clock-box {
        font-size: 24px;
        min-width: 120px;
    }

    body.ib-web-mode .ib-date-text,
    body.ib-web-mode .ib-weekday-text {
        font-size: 18px;
    }
}

@media print {
    body.ib-web-mode {
        background: #ffffff !important;
        padding-bottom: 0 !important;
    }

    .ib-ticker-bar,
    .ib-day-filter,
    #myBtn,
    .ib-footer-login {
        display: none !important;
    }

    .ib-card,
    .ib-week-day-card,
    .ib-cal-card {
        box-shadow: none !important;
        border-color: #94a3b8 !important;
    }

    .ib-main-grid,
    .ib-web-lower {
        grid-template-columns: 1fr !important;
        padding: 4px 0 !important;
    }

    .ib-week-day-card {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/* -------------------- 8. V2 PAMOKU BLOKELIAI (CHIPS) IR PREVIEW -------------------- */
.ib-preview-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #fbbf24;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

.ib-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.ib-lesson-chip {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    background: #e8f8ee;
    border: 1px solid #b7e4c7;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.ib-lesson-chip.ib-chip-sub {
    background: #fbbf24;
    border-color: #d97706;
    color: #111827;
    font-weight: 700;
}

.ib-timetable tr.w3-red .ib-lesson-chip,
.ib-timetable tr.ib-row-now .ib-lesson-chip {
    background: #dcfce7;
    border-color: #86efac;
    color: #0f172a;
    font-weight: 700;
}

.ib-timetable tr.w3-red .ib-lesson-chip.ib-chip-sub,
.ib-timetable tr.ib-row-now .ib-lesson-chip.ib-chip-sub {
    background: #fbbf24;
    border-color: #ffffff;
    color: #111827;
    font-weight: 800;
}

.ib-week-table-wrap .ib-week-v2-table td.ib-cell-empty {
    background-color: #dde3ec !important;
}

.ib-week-table-wrap .ib-lesson-chip {
    padding: 1px 4px;
    font-size: 12px;
}


/* 2 zonų celė (viršuje bendri AB dalykai, apačioje A | B grupės) */
.ib-timetable td.ib-cell-split-td,
.ib-week-v2-table td.ib-cell-split-td {
    padding: 0 !important;
    vertical-align: stretch;
}

.ib-cell-split {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.ib-split-ab {
    padding: 2px 4px;
    border-bottom: 1px dashed #cbd5e1;
}

.ib-split-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    flex: 1 1 auto;
}

.ib-split-half {
    padding: 2px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
}

.ib-split-a {
    border-right: 1px solid #d5dde7;
}

.ib-split-empty {
    background: rgba(221, 227, 236, 0.55);
}

.ib-timetable tr.w3-red .ib-split-ab,
.ib-timetable tr.ib-row-now .ib-split-ab {
    border-bottom-color: rgba(255, 255, 255, 0.45);
}

.ib-timetable tr.w3-red .ib-split-a,
.ib-timetable tr.ib-row-now .ib-split-a {
    border-right-color: rgba(255, 255, 255, 0.45);
}

.ib-timetable tr.w3-red .ib-split-empty,
.ib-timetable tr.ib-row-now .ib-split-empty {
    background: rgba(185, 28, 28, 0.45);
}


/* 2 zonų celė (viršuje bendri AB dalykai, apačioje A | B grupės) */
.ib-timetable td.ib-cell-split-td,
.ib-week-v2-table td.ib-cell-split-td {
    padding: 0 !important;
    vertical-align: stretch;
}

.ib-cell-split {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.ib-split-ab {
    padding: 2px 4px;
    border-bottom: 1px dashed #cbd5e1;
}

.ib-split-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    flex: 1 1 auto;
}

.ib-split-half {
    padding: 2px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
}

.ib-split-a {
    border-right: 1px solid #d5dde7;
}

.ib-split-empty {
    background: rgba(221, 227, 236, 0.55);
}

.ib-timetable tr.w3-red .ib-split-ab,
.ib-timetable tr.ib-row-now .ib-split-ab {
    border-bottom-color: rgba(255, 255, 255, 0.45);
}

.ib-timetable tr.w3-red .ib-split-a,
.ib-timetable tr.ib-row-now .ib-split-a {
    border-right-color: rgba(255, 255, 255, 0.45);
}

.ib-timetable tr.w3-red .ib-split-empty,
.ib-timetable tr.ib-row-now .ib-split-empty {
    background: rgba(185, 28, 28, 0.45);
}