/* Расписание: таблица на весь лист, кегль клетки — --cell (считается от ширины колонки), дни своим цветом */
.sc-field { display: flex; flex-direction: column; gap: 2px; font-size: 14px; margin-bottom: 6px; }
.sc-field input { font: 16px var(--body); padding: 6px 8px; border: 1.5px solid #d9cfb8; border-radius: 8px; }
.sc-check { display: block; font-size: 14px; margin: 4px 0; }
.sc-gridwrap { overflow-x: auto; }
.sc-grid { border-collapse: collapse; font-size: 12px; }
.sc-grid th { font-weight: 700; padding: 2px; color: #6b5e3a; white-space: nowrap; }
.sc-grid td { padding: 1px; }
.sc-grid [hidden] { display: none; }
.sc-in { width: 74px; font: 13px var(--body); padding: 4px 4px; border: 1px solid #d9cfb8; border-radius: 5px; }
.sc-tin { width: 84px; }
.sc-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.sc-btn { font: 700 14px var(--body); padding: 6px 12px; border-radius: 10px; border: 1.5px solid #d9cfb8; background: #fff; cursor: pointer; }

.sc-table { width: 100%; height: 100%; display: grid; border: .35mm solid #8fa0b0; border-right: 0; border-bottom: 0; color: #2c2a22; }
.sc-table > div { border-right: .35mm solid #8fa0b0; border-bottom: .35mm solid #8fa0b0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-width: 0; min-height: 0; overflow: hidden; }
.sc-h { font: 600 13pt/1.1 "Fredoka", var(--head); background: #eef2f6; }
.lang-ko .sc-h { font-family: "Jua", var(--head); font-weight: 400; font-size: 15pt; }
.sc-time-h { font-size: 10pt !important; }
.sc-p { font: 600 12pt/1 "Fredoka", var(--head); background: #f7f4ec; }
.lang-ko .sc-p { font-family: "Jua", var(--head); font-weight: 400; font-size: 10.5pt; }
.sc-time { font-size: 8.5pt; color: #5a5040; white-space: nowrap; padding: 0 1mm; }
.sc-c { font: 600 var(--cell, 14pt)/1.15 var(--body); padding: 1mm 1.2mm; overflow-wrap: anywhere; hyphens: auto; }
.sc-ic .sc-e { display: block; font: 24pt/1.1 "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; margin-bottom: 1mm; }
.sc-icons .sc-c { font-size: calc(var(--cell, 14pt) * .9); }
.sc-table > .sc-break { grid-column: 1 / -1; background: #fff6df; font: 700 11pt/1 var(--body); color: #8a6a2a; letter-spacing: .05em; }
.sc-color .sc-d0 { background: #ffe3e3; } .sc-color .sc-d1 { background: #fff3bf; } .sc-color .sc-d2 { background: #d3f9d8; }
.sc-color .sc-d3 { background: #d0ebff; } .sc-color .sc-d4 { background: #e5dbff; } .sc-color .sc-d5 { background: #ffe8cc; }

.sc-hw { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 4mm; }
.sc-hwd { display: flex; flex-direction: column; border: .35mm solid #8fa0b0; border-radius: 3mm; overflow: hidden; min-height: 0; }
.sc-hwh { font: 600 13pt/1 "Fredoka", var(--head); padding: 2mm 3mm; background: #eef2f6; }
.lang-ko .sc-hwh { font-family: "Jua", var(--head); font-weight: 400; }
.sc-hw:not(.sc-color) .sc-hwd { background: #fff; }
.sc-hwd.sc-d0 .sc-hwh, .sc-hwd.sc-d1 .sc-hwh, .sc-hwd.sc-d2 .sc-hwh, .sc-hwd.sc-d3 .sc-hwh, .sc-hwd.sc-d4 .sc-hwh, .sc-hwd.sc-d5 .sc-hwh { background: inherit; }
.sc-hw.sc-color .sc-hwd { background: #fff; }
.sc-hw.sc-color .sc-hwd.sc-d0 .sc-hwh { background: #ffe3e3; } .sc-hw.sc-color .sc-hwd.sc-d1 .sc-hwh { background: #fff3bf; } .sc-hw.sc-color .sc-hwd.sc-d2 .sc-hwh { background: #d3f9d8; }
.sc-hw.sc-color .sc-hwd.sc-d3 .sc-hwh { background: #d0ebff; } .sc-hw.sc-color .sc-hwd.sc-d4 .sc-hwh { background: #e5dbff; } .sc-hw.sc-color .sc-hwd.sc-d5 .sc-hwh { background: #ffe8cc; }
.sc-hw:not(.sc-color) .sc-hwh { background: #f2f2f2; }
.sc-hwt { flex: 1; width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9.5pt; }
.sc-hwt th { font: 700 8.5pt/1 var(--body); color: #6b5e3a; text-align: left; padding: 1mm 2mm; border-bottom: .3mm solid #b9c6d1; }
.sc-hwt th:nth-child(1) { width: 40%; } .sc-hwt th:nth-child(3) { width: 14%; text-align: center; }
.sc-hwt td { border-bottom: .3mm solid #d3dbe2; padding: 0 2mm; }
.sc-hs { font-weight: 700; font-size: 8.5pt; line-height: 1.1; overflow-wrap: anywhere; }
.sc-ok { text-align: center; }
.sc-box { display: inline-block; width: 4.5mm; height: 4.5mm; border: .35mm solid #7a8a9a; border-radius: 1mm; vertical-align: middle; }
fieldset:has(.sc-gridwrap) { min-width: 0; }
.sc-gridwrap { max-width: 100%; }
.tool > .panel { min-width: 0; }
