
.tt-grade-groups{display:flex;flex-direction:column;gap:24px}.tt-grade-block{border:1px solid #c7d9e5;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 4px 16px rgba(10,45,75,.06)}.tt-grade-title{display:flex;justify-content:space-between;align-items:center;padding:13px 18px;background:#11688b;color:#fff;font-size:17px}.tt-grade-title span{font-size:12px;opacity:.85}.tt-grade-color-1 .tt-grade-title{background:#366b63}.tt-grade-color-2 .tt-grade-title{background:#725f91}.tt-grade-table-wrap{overflow-x:auto}.tt-grade-block .tt-matrix{min-width:600px}.tt-grade-block .tt-matrix .tt-section-head{background:#e2edf4}.tt-grade-color-1 .tt-matrix .tt-section-head{background:#e1f0e9}.tt-grade-color-2 .tt-matrix .tt-section-head{background:#ede8f5}@media print{.tt-grade-groups{gap:9mm}.tt-grade-block{break-inside:avoid;box-shadow:none;border-radius:0}.tt-grade-title{padding:5px 10px;font-size:13px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.tt-grade-block .tt-matrix{min-width:0}.tt-grade-table-wrap{overflow:visible}}
.tt-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:14px 0}.tt-controls label{min-width:150px}.tt-scroller{overflow:auto;max-width:100%}.tt-matrix{border-collapse:collapse;min-width:720px;width:100%;direction:rtl;table-layout:fixed}.tt-matrix th,.tt-matrix td{border:1px solid #95a9b5;padding:3px;text-align:center;vertical-align:middle}.tt-matrix thead th{background:#dceaf2;font-size:12px}.tt-matrix .tt-grade-head{background:#0b7093;color:white;font-weight:800;font-size:13px}.tt-matrix .tt-section-head{background:#cfe8f1;font-weight:700}.tt-matrix .tt-grade-start{border-right:3px solid #177a98!important}.tt-matrix .tt-day{background:#c4e3ed;font-weight:700;width:80px}.tt-matrix .tt-period{background:#eaf3f7;font-weight:700;width:55px}.tt-slot{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:48px;border:0;border-radius:4px;background:transparent;color:#15374d;cursor:pointer;gap:3px;padding:3px;white-space:normal}.tt-slot strong{font-size:12px}.tt-slot small{font-size:10px;color:#50667a}.tt-slot:hover{outline:2px solid #0580aa}.tt-filled{background:#eef6df}.tt-matrix .tt-day-row-1 td{background:#edf4ff}.tt-matrix .tt-day-row-2 td{background:#fff6d8}.tt-matrix .tt-day-row-3 td{background:#fceadd}.tt-matrix .tt-day-row-4 td{background:#e8f5f6}.tt-matrix .tt-day-row-0 td{background:#fff7c5}.tt-matrix .tt-day-row-1 .tt-filled,.tt-matrix .tt-day-row-2 .tt-filled,.tt-matrix .tt-day-row-3 .tt-filled,.tt-matrix .tt-day-row-4 .tt-filled,.tt-matrix .tt-day-row-0 .tt-filled{background:transparent}.tt-conflict,.tt-matrix .tt-day-row-0 .tt-conflict,.tt-matrix .tt-day-row-1 .tt-conflict,.tt-matrix .tt-day-row-2 .tt-conflict,.tt-matrix .tt-day-row-3 .tt-conflict,.tt-matrix .tt-day-row-4 .tt-conflict{background:#b42335!important;color:white!important;outline:2px solid #7f1423}.tt-conflict small{color:white!important}.tt-conflict-banner{background:#fff0f0;color:#8c1524;border:2px solid #c72b3c;border-radius:9px;padding:12px;margin:12px 0;line-height:1.9}.tt-conflict-banner strong{display:block}.tt-dialog{max-width:520px!important}.tt-head{text-align:center;margin:8px 0 16px}.tt-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
@media print{@page{size:A3 landscape;margin:7mm}.tt-controls,.tt-actions,.export-v72,.tt-intro,.tt-modal{display:none!important}.tt-scroller{overflow:visible}.tt-matrix{min-width:0}.tt-slot{min-height:30px}.tt-slot strong{font-size:9px}.tt-slot small{font-size:8px}}

/* V7.8 — تخطيط مطابق لترتيب الجدول المرجعي: صفوف أفقية وأيام عمودية */
.tt-image-wrap{width:100%;overflow-x:auto;border:1px solid #6b8795;background:white}
.tt-reference-matrix{min-width:1050px;width:100%;border-collapse:collapse;table-layout:fixed;direction:rtl;font-family:Tahoma,Arial,sans-serif}
.tt-reference-matrix th,.tt-reference-matrix td{border:1px solid #b35d61;padding:0;text-align:center;vertical-align:middle}
.tt-reference-matrix .tt-grade-group{background:#d2eaf2!important;color:#142d3d!important;font-size:13px;padding:9px 2px;border:1px solid #335f70}
.tt-reference-matrix .tt-day-side{width:53px;background:#c5e2eb!important;color:#132d38!important}
.tt-reference-matrix .tt-section-head{background:#c5e2eb!important;font-size:11px;padding:6px 1px;white-space:normal}
.tt-reference-matrix .tt-period-head,.tt-reference-matrix .tt-period-number{width:25px;background:#64b2c8!important;color:#073144!important;font-weight:bold;font-size:11px;border-left:2px solid #356d7f}
.tt-reference-matrix .tt-day-label{width:53px;writing-mode:vertical-rl;text-orientation:mixed;font-size:20px;font-weight:800;letter-spacing:2px;border-right:2px solid #385c69}
.tt-reference-matrix .tt-day-row-0 .tt-day-label{background:#fff500!important}
.tt-reference-matrix .tt-day-row-1 .tt-day-label{background:#cadff4!important}
.tt-reference-matrix .tt-day-row-2 .tt-day-label{background:#c7dda7!important}
.tt-reference-matrix .tt-day-row-3 .tt-day-label{background:#f6c49e!important}
.tt-reference-matrix .tt-day-row-4 .tt-day-label{background:#b9dce9!important}
.tt-reference-matrix .tt-day-row-0 .tt-lesson-cell{background:#fff600!important}
.tt-reference-matrix .tt-day-row-1 .tt-lesson-cell{background:#c9def4!important}
.tt-reference-matrix .tt-day-row-2 .tt-lesson-cell{background:#c7dda7!important}
.tt-reference-matrix .tt-day-row-3 .tt-lesson-cell{background:#f7c59f!important}
.tt-reference-matrix .tt-day-row-4 .tt-lesson-cell{background:#b9dce9!important}
.tt-reference-matrix .tt-day-divider td{height:20px;background:#4da9c2!important;border:1px solid #356e80}
.tt-reference-matrix .tt-slot{min-height:41px;padding:3px 1px;border-radius:0;gap:2px}
.tt-reference-matrix .tt-slot strong{font-size:11px;line-height:1.2;font-weight:700}
.tt-reference-matrix .tt-slot small{font-size:10px;line-height:1.2;color:#263e4d}
.tt-reference-matrix .tt-slot.tt-conflict{background:#bd1e31!important;color:white!important;outline:2px solid #8a0b1d;outline-offset:-2px}
.tt-reference-matrix .tt-slot.tt-conflict small{color:white!important}
@media print{.tt-image-wrap{overflow:visible;border:0}.tt-reference-matrix{min-width:0;width:100%}.tt-reference-matrix .tt-slot{min-height:22px}.tt-reference-matrix .tt-slot strong{font-size:7px}.tt-reference-matrix .tt-slot small{font-size:6px}.tt-reference-matrix .tt-day-divider td{height:8px}.tt-reference-matrix .tt-day-label{font-size:13px}.tt-reference-matrix .tt-section-head{font-size:8px}.tt-reference-matrix .tt-grade-group{font-size:10px;padding:3px 0}}


/* Compact academic-organization filters to match the standard search controls. */
.tt-controls{gap:9px;align-items:end}
.tt-controls label{min-width:140px;max-width:225px;flex:0 1 225px;font-size:13px}
.tt-controls select{width:100%;min-height:38px;padding:8px 10px;font-size:13px}
@media(max-width:600px){.tt-controls label{min-width:0;max-width:none;flex:1 1 145px}.tt-controls select{font-size:16px}}
