
/* PDF-faithful, responsive Grade 1–9 timetables */
.pdf-timetable-panel{background:#fff;border:1px solid #eadfce;border-radius:20px;padding:clamp(14px,2.5vw,28px);box-shadow:0 14px 38px rgba(16,43,105,.07)}
.pdf-timetable-heading{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:18px;flex-wrap:wrap}
.pdf-timetable-heading h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(1.5rem,2.6vw,2.1rem);color:#142b59;margin:0}
.pdf-timetable-heading p{color:#64748b;margin:0;font-size:.9rem}
.pdf-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;direction:ltr;border:1px solid #dce3ed;border-radius:14px;scrollbar-width:thin;scrollbar-color:#d7ad62 #edf1f7}
.pdf-timetable{width:100%;min-width:920px;border-collapse:separate;border-spacing:0;table-layout:fixed;background:#fff;color:#172b50}
.pdf-timetable th,.pdf-timetable td{padding:13px 10px;border-right:1px solid #dce3ed;border-bottom:1px solid #dce3ed;text-align:center;vertical-align:middle;overflow-wrap:break-word}
.pdf-timetable thead th{background:#142f64;color:#fff;font-size:.88rem;font-weight:700;line-height:1.35}
.pdf-timetable thead th strong{display:inline-block;font-size:.95rem;color:#f5d59d}
.pdf-timetable thead th span{display:inline-block;margin-top:4px;font-size:.74rem;font-weight:500;color:#edf3ff;white-space:nowrap}
.pdf-timetable thead th.day-col{width:112px;background:#0d2048;color:#f5d59d}
.pdf-timetable tbody th.day-name{width:112px;background:#f0f3f8;color:#142b59;text-align:left;font-weight:800;white-space:nowrap}
.pdf-timetable tbody td{font-size:.88rem;font-weight:600;line-height:1.35;min-height:56px;background:#fff}
.pdf-timetable tbody tr:nth-child(even) td:not(.break-cell):not(.empty-cell){background:#f7f9fc}
.pdf-timetable .break-head,.pdf-timetable .break-cell{background:#ffead5!important;color:#8e4c10!important}
.pdf-timetable .break-cell{font-weight:800;border-left:1px solid #efbd84;border-right:1px solid #efbd84}
.pdf-timetable .empty-cell{color:#94a3b8;background:#f8fafc}
.pdf-timetable tr:last-child th,.pdf-timetable tr:last-child td{border-bottom:0}
.pdf-timetable tr th:last-child,.pdf-timetable tr td:last-child{border-right:0}
#myTab{display:flex;flex-wrap:wrap;gap:9px;padding:0 0 22px;margin:0 0 24px;border-bottom:1px solid #e0e6f0;list-style:none}
#myTab .nav-item{margin:0}
#myTab .nav-link{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border:1px solid #e0e6f0;border-radius:12px;background:#f7f9fc;color:#52617b;font-weight:700;white-space:nowrap;text-decoration:none}
#myTab .nav-link.active{background:#142f64;border-color:#142f64;color:#fff;box-shadow:0 8px 18px rgba(16,43,105,.18)}
#myTabContent .tab-pane[hidden]{display:none!important}
@media(max-width:760px){.pdf-timetable-panel{padding:13px;border-radius:16px}.pdf-timetable-heading{align-items:start;flex-direction:column;gap:5px}.pdf-timetable{min-width:940px}.pdf-timetable th,.pdf-timetable td{padding:12px 9px}.pdf-timetable-heading p{font-size:.82rem}#myTab{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#myTab .nav-link{padding:9px 4px;font-size:.78rem}}


/* Responsive header fix for Classes page */
@media (max-width:760px) {
  .site-header { display:block !important; visibility:visible !important; }
  .site-header .header-main { display:flex !important; }
  .site-header .nav { display:none !important; }
  .site-header .menu-toggle { display:flex !important; align-items:center; justify-content:center; width:46px; height:46px; border:0; border-radius:13px; background:#142f64; color:#fff; cursor:pointer; font-size:25px; line-height:1; flex:0 0 46px; }
  .site-header .mobile-nav { display:none !important; }
  .site-header .mobile-nav.open { display:grid !important; position:absolute; top:100%; left:0; right:0; z-index:1100; padding:10px 22px 18px; background:#fff; border-top:1px solid #e0e6f0; box-shadow:0 18px 32px rgba(9,27,69,.16); }
  .site-header > .container { position:relative; }
  .site-header .mobile-nav a { display:block; padding:13px 4px; color:#142f64; font-weight:700; border-bottom:1px solid #e8edf4; }
  .site-header .mobile-nav a:last-child { border-bottom:0; }
}
@media (min-width:761px) {
  .site-header .menu-toggle, .site-header .mobile-nav { display:none !important; }
}
