@font-face{font-family:Noto Sans;src:url(vendor/NotoSans-Regular.ttf) format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Noto Sans;src:url(vendor/NotoSans-Bold.ttf) format('truetype');font-weight:700;font-display:swap}
:root{color-scheme:light;--ink:#23272d;--muted:#65728a;--line:#e1e7ef;--red:#e30613;--paper:#fff;--bg:#f3f5f8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 'Noto Sans',Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer;border:1px solid #cdd5e1;border-radius:8px;padding:10px 15px;background:white;color:var(--ink);font-weight:700}button:hover{background:#eef2f8}button:disabled{cursor:wait;opacity:.55}button.primary{background:var(--red);color:white;border-color:var(--red)}button.primary:hover{background:#bb1424}button.danger{color:#b91c1c}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}.top{height:82px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 3vw}.brand{display:flex;align-items:center;gap:14px;font-weight:700;line-height:1.1}.brand-mark{font-size:34px;letter-spacing:-2px;color:var(--red);border-right:1px solid var(--line);padding-right:15px}.brand-sub{display:block;font-size:9px;letter-spacing:2px;color:var(--muted);margin-top:7px}.top-actions{display:flex;align-items:center;gap:22px;font-size:12px}#schoolName{font-weight:700}main{max-width:1720px;margin:auto;padding:32px 3vw 50px}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#a81c2c;margin:0 0 9px}h1{font-size:30px;letter-spacing:-.7px;margin:0 0 7px}h2{font-size:27px;letter-spacing:-.5px;margin:0}h3{font-size:13px;margin:0 0 12px}.intro p:not(.eyebrow){color:var(--muted);margin:0;font-size:13px}.source-badge{border:1px solid #d2dae5;padding:8px 16px;border-radius:20px;font-size:12px;background:white}.controls{display:flex;gap:20px;align-items:flex-end;padding:21px 23px;background:white;border:1px solid var(--line);border-radius:12px}.controls>label:first-child{flex:1;min-width:250px}.controls>label>span:first-child{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}select,input[type=search]{border:1px solid #ccd5e2;padding:10px 12px;border-radius:7px;background:white;max-width:100%;width:100%;color:var(--ink)}fieldset{border:0;margin:0;padding:0;display:flex;gap:12px;align-items:center;min-height:43px}legend{font-size:11px;color:var(--muted);margin-bottom:6px}fieldset label,.week,.empty-option{white-space:nowrap;display:flex;align-items:center;gap:4px;font-size:11px}input[type=checkbox]{accent-color:var(--red);width:15px;height:15px}.week{padding-bottom:10px}#message{color:var(--muted);font-size:12px;margin:12px 3px;min-height:20px}#message.error{color:#ae1c2e}.batch-bar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:22px 0 16px}.batch-bar strong{display:block;font-size:14px}#snapshotTime{font-size:10px;color:var(--muted)}.batch-actions{display:flex;gap:8px;align-items:center}.batch-actions button{font-size:11px;padding:9px 12px}.workspace{display:grid;grid-template-columns:236px minmax(0,1fr);gap:20px;align-items:start}.directory{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;position:sticky;top:16px}.tabs{display:flex;padding:8px;border-bottom:1px solid var(--line);gap:4px}.tabs button{width:50%;border:0;padding:9px 5px;border-radius:6px;font-size:12px;background:transparent}.tabs button[aria-selected=true]{background:var(--ink);color:white}.search{display:block;padding:12px}.search input{font-size:11px;padding:9px}.people{max-height:640px;overflow:auto;padding:0 8px 10px}.person{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-radius:6px;text-align:left;font-size:12px;padding:11px 10px;margin-bottom:2px;font-weight:400;gap:6px}.person.active{background:#fff0f1;color:#a7192c;border-left:3px solid var(--red);font-weight:700}.person small{font-size:10px;white-space:nowrap;color:var(--muted);font-weight:400}.preview{background:white;border:1px solid var(--line);border-radius:12px;padding:25px;box-shadow:0 7px 22px #18294405;min-width:0}.report-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:22px}.report-head .eyebrow{color:var(--muted);letter-spacing:1.4px}.report-head p:last-child{margin:5px 0 0;color:var(--muted);font-size:11px}.exports{display:flex;gap:8px;align-items:center}.exports button{font-size:11px;padding:9px 12px}.grid-scroll{overflow:auto}table.timetable{width:100%;min-width:740px;border-collapse:separate;border-spacing:3px;table-layout:fixed}.timetable th{background:#e30613;color:white;padding:11px 5px;font-size:11px}.timetable th:first-child{width:49px;border-radius:6px 0 0 6px}.timetable th:last-child{border-radius:0 6px 6px 0}.timetable td{vertical-align:top;background:#fafbfc;height:94px;padding:0;border-radius:5px}.timetable td.period{font-size:12px;font-weight:700;text-align:center;vertical-align:middle;background:#f1f4f8}.lesson{height:100%;min-height:90px;padding:8px;border-radius:5px;border-left:3px solid var(--subject-line,#aebaca);background:var(--subject-fill,#f2f5f8);margin-bottom:4px;overflow-wrap:anywhere}.lesson strong{display:block;font-size:10.5px;line-height:1.4}.lesson .who{display:block;font-size:9px;margin:5px 0;color:#42516a;line-height:1.45}.lesson time{font-size:9px;letter-spacing:.2px;color:#5b6b82}.lesson em{display:block;font-style:normal;font-size:9px;color:#64572a}.empty-cell{display:block;padding:15px;color:#b5becc;text-align:center}.report-bottom{display:grid;grid-template-columns:1fr 1fr;gap:30px;border-top:1px solid var(--line);margin-top:22px;padding-top:22px}.load-row{display:flex;align-items:center;gap:8px;font-size:11px;margin:7px 0}.swatch{display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--subject-line,#8899aa);flex:none}.load-row b{margin-left:auto;padding-left:8px}.team-row{font-size:10px;color:var(--muted);margin:9px 0}.team-row strong{color:var(--ink);display:block}.report-bottom section:empty{display:none}#reportFooter{border-top:1px solid var(--line);margin-top:23px;padding-top:14px;color:var(--muted);font-size:10px}#reportNotes{font-size:11px;color:var(--muted);padding:8px 3px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(max-width:1100px){.controls{flex-wrap:wrap}.controls>label:first-child{min-width:100%}.workspace{grid-template-columns:195px minmax(0,1fr)}.batch-bar{align-items:start}.batch-actions{flex-wrap:wrap;justify-content:flex-end}.preview{padding:17px}.report-head{flex-wrap:wrap}}@media(max-width:720px){.top{height:auto;min-height:70px;padding:12px 5vw}.top-actions{gap:8px}.brand-sub,#schoolName{display:none}.brand-mark{font-size:28px}.brand{font-size:11px;gap:8px}.top-actions a,.top-actions button{font-size:10px}main{padding:24px 4vw}.intro{align-items:start}h1{font-size:24px}.source-badge{display:none}.controls{padding:16px;gap:12px}fieldset{flex-wrap:wrap;gap:7px}.workspace{display:block}.directory{position:static;margin-bottom:15px}.people{max-height:180px}.batch-bar{display:block}.batch-actions{justify-content:flex-start;margin-top:12px}.report-bottom{grid-template-columns:1fr}.report-head{gap:15px}.preview{padding:13px}.intro p:not(.eyebrow){font-size:12px}}

/* GEN brand: clear red structure and vivid, stable subject colors. */
.top{border-bottom:3px solid #e30613}.preview{border-top:5px solid #e30613}.report-head h2{color:#e30613}.lesson{border-left-width:4px}.lesson strong{color:#20242a}.lesson .who,.lesson time{color:#303944}.tabs button[aria-selected=true]{background:#e30613}.source-badge{border-color:#f29aa2;color:#a90510;background:#fff1f2}.swatch{width:12px;height:12px;border-radius:3px}.timetable th{font-weight:700}

@font-face{font-family:Noto Serif;src:url(vendor/NotoSerif-Regular.ttf) format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Noto Serif;src:url(vendor/NotoSerif-Bold.ttf) format('truetype');font-weight:700;font-display:swap}
.appearance-controls{margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 23px;display:flex;align-items:center;justify-content:space-between;gap:24px}.appearance-controls h2{font-size:14px;letter-spacing:0}.appearance-controls p{font-size:11px;color:var(--muted);max-width:430px;margin:5px 0 0}.appearance-fields{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.appearance-fields label>span{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.appearance-fields select{font-size:12px;min-width:88px}.appearance-fields button{font-size:11px;min-height:40px}.paper-format{font-size:11px;font-weight:700;align-self:center;border:1px solid var(--line);padding:8px;border-radius:6px;white-space:nowrap}.preview{font-family:var(--report-font,'Noto Sans'),serif;border-top-color:var(--report-accent,#e30613)}.report-head h2{color:var(--report-accent,#e30613)}.timetable th{background:var(--report-accent,#e30613)}.lesson strong{font-size:calc(var(--report-size,8px)*1.333)}.lesson .who,.lesson time,.lesson em{font-size:calc(var(--report-size,8px)*1.22)}
@media(max-width:1300px){.appearance-controls{align-items:flex-start;flex-direction:column;gap:14px}.appearance-controls p{max-width:none}}@media(max-width:720px){.appearance-controls{padding:16px}.appearance-fields{gap:9px}.appearance-fields label:first-child{width:100%}.appearance-fields label:first-child select{width:100%}}

/* Consolidated timetable reports use the same school, source and appearance. */
.report-toolbox{margin:20px 0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px}.toolbox-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.toolbox-heading h2{font-size:17px}.toolbox-heading p{color:var(--muted);font-size:12px;margin:5px 0}.toolbox-heading button{font-size:12px}.report-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.report-types button{text-align:left;padding:17px;border:1px solid var(--line);background:#fafbfc;min-width:0}.report-types strong,.report-types span{display:block}.report-types strong{font-size:14px}.report-types span{font-size:11px;font-weight:400;color:var(--muted);margin-top:7px}.report-types button[aria-pressed=true]{border-color:var(--red);background:#fff4f5;box-shadow:inset 0 3px var(--red)}.master-workspace{background:white;border:1px solid var(--line);border-top:4px solid var(--report-accent,var(--red));border-radius:12px;padding:24px;min-width:0;font-family:var(--report-font,'Noto Sans')}.master-controls{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--line)}.master-controls label>span{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}.master-controls select{min-width:100px}.master-exports{margin-left:auto;display:flex;gap:8px}.master-exports button{font-size:12px}#masterTitle{color:var(--report-accent,var(--red));font-size:23px}#masterContext,.master-note{font-size:11px;color:var(--muted);line-height:1.7}.master-grid{overflow:auto;max-height:76vh;isolation:isolate;margin-top:20px;border:1px solid var(--line);border-radius:8px}.master-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1300px;table-layout:fixed;font-size:var(--report-size,8pt)}.master-table caption{padding:12px;text-align:left;font-size:13px;font-weight:700;background:#f5f7fa}.master-table thead th{position:sticky;top:0;z-index:3;background:var(--report-accent,var(--red));color:white;white-space:pre-line;text-align:center;font-size:11px;padding:12px 5px;border-right:1px solid #ffffff50}.master-table th:first-child{width:155px;position:sticky;left:0;z-index:2}.master-table thead th:first-child{z-index:4}.master-table tbody th{background:#f3f5f8;padding:12px;font-size:12px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.master-table td{padding:3px;vertical-align:top;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:white}.master-table .master-day{font-size:11px;padding:10px;background:#fafbfc}.master-lesson{white-space:pre-line;overflow-wrap:anywhere;line-height:1.5;padding:9px 7px;border-left:3px solid var(--subject-line,#ddd);background:var(--subject-fill,#fafbfc);border-radius:4px;min-height:66px;margin-bottom:3px}#masterTeams{font-size:12px;margin-top:20px}#masterTeams summary{font-weight:700;cursor:pointer}#masterTeams p{line-height:1.7;color:var(--muted)}#masterTeams strong{color:var(--ink);margin-right:7px}.master-empty{padding:24px;color:var(--muted)}
@media(max-width:850px){.toolbox-heading{display:block}.toolbox-heading button{margin-top:8px}.report-types{grid-template-columns:1fr}.report-toolbox,.master-workspace{padding:16px}.master-controls{gap:12px}.master-exports{margin-left:0;flex-wrap:wrap}.report-types button{padding:13px}.report-types span{margin-top:4px}}

.master-table.layout-load .master-lesson{min-height:0;padding:6px 10px;text-align:right;background:transparent;border-left:0}.master-table.layout-load tbody th{padding:8px 12px}.master-table.layout-list .master-lesson{min-height:0}.master-table.layout-load{table-layout:auto}


/* Shared report identity and selectable palettes. */
.report-logo{display:block;flex:0 0 144px;width:144px;height:64px;overflow:hidden;background:white;border-radius:4px}
.report-logo img{display:block;width:144px;height:96px;max-width:none;margin-top:-16px}
.top .brand{gap:8px}.top .brand-sub{font-size:9px;letter-spacing:1.5px;max-width:145px;line-height:1.6;margin-top:0}
.appearance-controls{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:20px 28px;padding:23px}
.appearance-controls h2{font-size:17px}.appearance-controls p{max-width:570px;line-height:1.7}
.appearance-fields{gap:12px}.theme-gallery{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.theme-card{padding:10px;border:1px solid #dfe5ec;border-radius:9px;background:#fff;text-align:left;min-width:0;transition:border-color .15s,box-shadow .15s}
.theme-card:hover{background:#fbfcfe;border-color:var(--theme-header)}
.theme-card[aria-pressed=true]{border-color:var(--theme-header);box-shadow:0 0 0 1px var(--theme-header),0 4px 12px #1d304010}
.theme-sample{display:block;background:#fff;border:1px solid #e4e7ec;border-radius:4px;overflow:hidden;padding:0 5px 5px}
.theme-sample>i{display:block;height:7px;margin:0 -5px 5px;background:var(--theme-header)}
.theme-sample>span{display:grid;grid-template-columns:repeat(6,1fr);gap:3px}.theme-sample b{height:20px;border-radius:2px;border:1px solid #26354810}
.theme-name{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px;margin-top:8px;font-weight:700;min-height:18px}
.theme-check{color:var(--theme-header);font-size:13px}
.branded-report-head{position:relative;display:flex;align-items:center;gap:22px;padding-bottom:22px;margin-bottom:20px}
.branded-report-head:after{content:'';position:absolute;bottom:0;left:0;right:0;height:5px;border-radius:4px;background:var(--report-ribbon,var(--report-accent,#c90819))}
.report-heading{flex:1;min-width:0}.report-head .exports{flex-wrap:wrap;justify-content:flex-end;max-width:230px}
.report-head h2{font-size:25px;line-height:1.3}.report-heading p{line-height:1.6}
.preview,.master-workspace{box-shadow:0 8px 24px #1e304008;border-top-width:4px}
.master-workspace .branded-report-head{margin-bottom:0}.master-workspace #masterContext{margin:6px 0}.master-workspace #masterScope{margin:5px 0 0}
.preview .report-bottom h3{color:var(--report-accent,#c90819)}
.master-table caption{border-left:4px solid var(--report-accent,#c90819)}
.master-table tbody tr:nth-child(even)>th{background:#eaf0f5}
@media(max-width:1450px){.appearance-controls{grid-template-columns:1fr}.appearance-controls p{max-width:none}}
@media(max-width:1100px){.theme-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.report-head .exports{max-width:none;margin-left:auto}.report-head .report-heading{min-width:200px}}
@media(max-width:720px){.appearance-controls{padding:16px}.theme-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.branded-report-head{flex-wrap:wrap;gap:12px}.branded-report-head .report-heading{min-width:100%}.top .report-logo{flex-basis:118px;width:118px;height:54px}.top .report-logo img{width:118px;height:79px;margin-top:-13px}.top .brand-sub{display:none}.report-head .exports{margin-left:0}.theme-name{font-size:10px}}

/* Combine loaded school levels in every layout and export. */
.layout-levels{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;border:1px solid var(--line);border-radius:9px;padding:12px 16px;margin:0 0 18px;background:#fafbfc}
.layout-levels legend{font-size:12px;font-weight:700;color:var(--ink);padding:0 6px;margin:0}
.layout-level-options{display:flex;flex-wrap:wrap;gap:9px}
.layout-level-options label{display:flex;gap:7px;align-items:center;padding:8px 12px;border:1px solid #d6dde6;border-radius:7px;background:white;font-size:12px;cursor:pointer}
.layout-level-options label:has(input:checked){border-color:#e30613;background:#fff4f5;color:#a7192c}
.layout-level-options input{margin:0}.layout-levels button{font-size:11px;padding:8px 12px}
.layout-levels p{flex-basis:100%;font-size:11px;color:var(--muted);line-height:1.65;margin:0}
@media(max-width:720px){.layout-levels{padding:12px}.layout-level-options{width:100%}.layout-level-options label{flex:1 1 auto;justify-content:center}}

/* Sample-style, fitted school-wide Çarşaf reports. */
.carsaf-grid{background:#e8edf3;padding:24px;max-height:75vh;overflow:auto}
.carsaf-page{margin:0 auto 24px;min-width:740px;max-width:1800px;background:white;padding:12px;box-shadow:0 6px 22px #18395724}
.carsaf-page:last-child{margin-bottom:0}.carsaf-page svg{display:block;width:100%;height:auto}.carsaf-page figcaption{font-size:13px;color:#526078;margin:0 0 10px;text-align:right}
.carsaf-info{font-size:14px;padding:12px 16px;background:#edf4fa;color:#183957;border-left:3px solid #183957;margin:0 0 16px;line-height:1.6}
.carsaf-info.small-print{background:#fff8df;border-color:#b17c0e;color:#62450b}
.carsaf-key{padding:16px 0;font-size:14px}.carsaf-key summary{cursor:pointer;font-weight:700}.carsaf-key dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:8px 24px}.carsaf-key dl>div{display:flex;gap:12px;align-items:baseline;border-bottom:1px solid #e7edf4;padding:7px 0}.carsaf-key dt{font-weight:700;min-width:64px}.carsaf-key dd{margin:0;color:#526078}
@media(max-width:720px){.carsaf-grid{padding:12px}.carsaf-page{padding:8px}.master-controls label{min-width:0}.carsaf-info{font-size:14px}}

/* Individual handouts combined into a single print file. */
.print-packets{display:flex;gap:22px;justify-content:space-between;align-items:center;border:1px solid #ccd8e6;border-left:4px solid #183957;border-radius:8px;padding:18px;margin:0 0 20px;background:#f4f8fc;scroll-margin-top:20px}
.print-packets h3{font-size:17px;color:#183957;margin:0 0 7px}.print-packets p{max-width:610px;font-size:14px;line-height:1.55;color:#526078;margin:0}.print-actions{display:flex;align-items:end;gap:10px;flex-shrink:0}.print-actions label{font-size:13px;display:flex;flex-direction:column;gap:6px}.print-actions select{min-width:75px}.print-actions button{min-height:40px;font-size:14px}
@media(max-width:1250px){.print-packets{align-items:start;flex-direction:column}.print-packets p{max-width:none}.print-actions{flex-wrap:wrap;width:100%}}@media(max-width:650px){.print-actions button{flex:1 1 100%}.print-packets{padding:15px}}

.print-actions{flex-wrap:wrap;justify-content:flex-end;flex-shrink:1}.print-actions .print-theme{min-width:160px;max-width:220px}.print-actions button{white-space:nowrap}@media(max-width:1250px){.print-actions{justify-content:flex-start}}

/* A teacher can have multiple assignments in the same numbered period when
   bell profiles differ. Let those lesson cards stack instead of overlapping. */
.timetable td > .lesson{height:auto}
.compact-report #reportNotes:not(:empty){margin:12px 0;padding:8px 12px;background:#edf2f7;border-left:3px solid #65728a;font-weight:700;font-size:12px}
.compact-report .lesson{padding:7px;line-height:1.3}


.timetable .lunch-row th{background:#e8eef5;color:#334155;text-align:center;padding:10px 8px;border:1px solid #cbd5e1;font-weight:700}.load-total{border-top:2px solid #64748b;margin-top:8px;padding-top:10px;background:#f1f5f9}#reportNotes:empty{display:none}

/* Each class keeps its color inside a shared teacher lesson. */
.class-color-chips{display:flex;flex-wrap:wrap;gap:3px;align-items:center}.class-color-chip{display:inline-block;padding:2px 5px;border-left:3px solid var(--subject-line);background:var(--subject-fill);color:#20242a;border-radius:3px;white-space:nowrap}
