/* tvls-tkb.css — Thời Khóa Biểu Styles */
        /* ======================== TAB 1: THỜI KHÓA BIỂU ======================== */
        .tkb-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
            padding-bottom: 10px;
            border-bottom: 1.5px solid rgba(225, 205, 175, 0.6);
            flex-wrap: wrap;
            gap: 10px;
            position: relative;
        }

        .tkb-title-area {
            flex: 1;
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .tkb-title-area h2 {
            font-family: var(--font-title);
            font-size: 19px;
            font-weight: 800;
            color: var(--primary);
            letter-spacing: 0.5px;
            margin: 0;
            text-transform: uppercase;
        }

        .tkb-title-area p {
            font-size: 12px;
            color: var(--text-sub);
            font-weight: 600;
            margin: 0;
        }

        .tkb-table-wrap {
            width: 100%;
            overflow-x: auto;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: #ffffff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.03);
        }

        .tkb-table-wrap {
            width: 100%;
            overflow-x: auto;
            border-radius: 12px;
            border: 2px solid var(--border-card);
            background: #ffffff;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }

        .tkb-table {
            width: 100%;
            border-collapse: collapse;
            text-align: center;
            font-size: 12.5px;
        }

        .tkb-table th {
            background: #1f4e79;
            color: #ffffff !important;
            font-family: var(--font-title);
            font-weight: 700;
            padding: 7px 6px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            font-size: 12.5px;
            letter-spacing: 0.3px;
            user-select: none;
        }

        .tkb-table th.today-col {
            background: #0284c7 !important;
            color: #ffffff !important;
            border: 2px solid #38bdf8 !important;
            box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
        }

        .tkb-table td {
            padding: 3px 4px;
            border: 1px solid #e2e8f0;
            vertical-align: middle;
            height: 38px;
        }

        .col-buoi {
            font-weight: 700;
            background: #f8fafc;
            color: #475569;
            width: 46px;
            font-size: 11px;
            user-select: none;
            padding: 2px !important;
        }

        .col-tiet {
            font-weight: 700;
            background: #f8fafc;
            width: 40px;
            color: #1e293b;
            font-size: 11.5px;
            user-select: none;
            padding: 2px !important;
        }

        .col-time {
            font-size: 10.5px;
            color: #64748b;
            font-weight: 600;
            width: 76px;
            background: #fafafa;
            user-select: none;
            padding: 2px !important;
            white-space: nowrap;
        }

        .banner-cell {
            font-weight: 700;
            font-size: 12px;
            padding: 4px;
            user-select: none;
            cursor: default;
        }

        .banner-shdg {
            background: #fff1f2 !important;
            color: #be185d;
        }

        .banner-break {
            background: #f1f5f9 !important;
            color: #475569;
        }

        .banner-lunch {
            background: #fef3c7 !important;
            color: transparent !important;
            height: 12px !important;
            min-height: 12px !important;
            max-height: 12px !important;
            padding: 0 !important;
            font-size: 0 !important;
            line-height: 0 !important;
            border-top: 1px solid #fde68a !important;
            border-bottom: 1px solid #fde68a !important;
        }

        .select-wrapper {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        .subject-select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            width: 100%;
            max-width: 135px;
            height: 28px;
            border-radius: 7px;
            font-family: var(--font-main);
            font-weight: 700;
            font-size: 12.5px;
            text-align: center;
            text-align-last: center;
            cursor: pointer;
            outline: none;
            border: 1px solid rgba(148, 163, 184, 0.4);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
            transition: all 0.15s ease;
            padding: 0 4px;
        }

        .subject-select:hover {
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
        }

        .subject-select:focus {
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
            border-color: var(--primary);
        }

        .current-period-pulse {
            box-shadow: 0 0 0 3px #10b981 !important;
            animation: pulsePeriod 2s infinite;
        }

        @keyframes pulsePeriod {
            0% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.7); }
            50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.3); }
            100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.7); }
        }

        /* =========================================================================
           RESPONSIVE THỜI KHÓA BIỂU (MOBILE DAY VIEW)
           ========================================================================= */
        .tkb-mobile-day-picker {
            display: none;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 12px;
            padding: 10px 12px;
            background: rgba(248, 250, 252, 0.95);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1.5px solid var(--border-color);
            border-radius: var(--radius-card);
            position: sticky;
            top: 0;
            z-index: 45;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .tkb-picker-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            gap: 8px;
        }

        .tkb-picker-title {
            font-size: 13px;
            font-weight: 800;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .tkb-day-tabs {
            display: flex;
            align-items: center;
            gap: 6px;
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            padding: 3px 2px 5px 2px;
            scrollbar-width: none;
        }

        .tkb-day-tabs::-webkit-scrollbar {
            display: none;
        }

        .tkb-day-tab {
            position: relative;
            flex: 1 0 auto;
            min-width: 58px;
            text-align: center;
            padding: 7px 10px;
            border: 1.5px solid #cbd5e1;
            background: #ffffff;
            color: #334155;
            border-radius: var(--radius-button);
            font-size: 12.5px;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s ease;
            user-select: none;
        }

        .tkb-day-tab:hover {
            background: #f1f5f9;
            border-color: #94a3b8;
        }

        .tkb-day-tab.active {
            background: #1f4e79 !important;
            color: #ffffff !important;
            border-color: #1f4e79 !important;
            box-shadow: 0 2px 6px rgba(31, 78, 121, 0.25);
        }

        .tkb-day-tab.is-today::after {
            content: '';
            position: absolute;
            top: 4px;
            right: 4px;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #10b981;
            box-shadow: 0 0 0 1.5px #fff;
        }

        .tkb-day-tab.active.is-today::after {
            background: #34d399;
            box-shadow: 0 0 0 1.5px #1f4e79;
        }

        .tkb-mode-toggle {
            display: flex;
            align-items: center;
            background: #e2e8f0;
            border-radius: 8px;
            padding: 2px;
            gap: 2px;
            flex-shrink: 0;
        }

        .btn-tkb-mode {
            border: none;
            background: transparent;
            color: #475569;
            padding: 5px 9px;
            border-radius: 6px;
            font-size: 11.5px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .btn-tkb-mode.active {
            background: #ffffff;
            color: #1f4e79;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
        }

        @media (max-width: 640px) {
            .tkb-mobile-day-picker {
                display: flex;
            }

            .tkb-header {
                flex-direction: column;
                align-items: center;
                gap: 8px;
            }

            .tkb-header > div {
                width: 100% !important;
                justify-content: center !important;
            }

            .tkb-title-area h2 {
                font-size: 17px;
            }

            /* Khi ở chế độ Day View trên màn hình nhỏ */
            .tkb-table-wrap.tkb-mobile-day-mode {
                overflow-x: hidden !important;
            }

            .tkb-table-wrap.tkb-mobile-day-mode .tkb-table {
                min-width: unset !important;
                width: 100% !important;
                table-layout: fixed !important;
            }

            .tkb-table-wrap.tkb-mobile-day-mode th:nth-child(1),
            .tkb-table-wrap.tkb-mobile-day-mode .col-buoi {
                width: 38px !important;
                max-width: 38px !important;
                font-size: 11px !important;
                padding: 4px 1px !important;
            }

            .tkb-table-wrap.tkb-mobile-day-mode th:nth-child(2),
            .tkb-table-wrap.tkb-mobile-day-mode .col-tiet {
                width: 32px !important;
                max-width: 32px !important;
                font-size: 11.5px !important;
                padding: 4px 1px !important;
            }

            .tkb-table-wrap.tkb-mobile-day-mode th:nth-child(3),
            .tkb-table-wrap.tkb-mobile-day-mode .col-time {
                width: 68px !important;
                max-width: 68px !important;
                font-size: 10px !important;
                padding: 4px 1px !important;
            }

            .tkb-table-wrap.tkb-mobile-day-mode th:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)) {
                width: auto !important;
                font-size: 13.5px !important;
                padding: 8px 6px !important;
            }

            .tkb-table-wrap.tkb-mobile-day-mode .tkb-badge-card {
                padding: 7px 10px !important;
                min-height: 38px !important;
                border-radius: 8px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: space-between !important;
                width: 100% !important;
                box-sizing: border-box !important;
            }

            .tkb-table-wrap.tkb-mobile-day-mode .tkb-badge-name {
                font-size: 13.5px !important;
                font-weight: 800 !important;
                text-align: left !important;
                padding-left: 4px !important;
            }

            .tkb-table-wrap.tkb-mobile-day-mode .banner-cell {
                white-space: normal !important;
                word-break: break-word !important;
                font-size: 11.5px !important;
                line-height: 1.3 !important;
                padding: 6px 4px !important;
            }
        }

        @media print {
            .tkb-mobile-day-picker {
                display: none !important;
            }
        }

