:root{--navy:#092f63;--blue:#0c78b7;--cyan:#16a3c7;--bg:#f3f6f9;--ink:#152335;--muted:#64748b;--line:#dbe4ed;--white:#fff;--danger:#b42318}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:16px}.auth{min-height:100vh;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at 20% 10%,#1c87c7 0,transparent 34%),linear-gradient(145deg,#061b3a,#0b477d)}.auth-card{width:min(440px,100%);background:#fff;border-radius:26px;padding:30px;box-shadow:0 25px 70px #00152e70}.auth-card>img{width:92px;height:92px;object-fit:contain;display:block;margin:auto}.auth h1{text-align:center;margin:12px 0 4px}.auth p{text-align:center;color:var(--muted);margin:0 0 22px}.tabs{display:flex;background:#edf3f8;border-radius:12px;padding:4px;margin-bottom:18px}.tabs button{flex:1;border:0;padding:11px;background:transparent;border-radius:9px}.tabs button.active{background:#fff;color:var(--navy);box-shadow:0 2px 9px #22384d18;font-weight:700}label{display:block;font-weight:650;margin:12px 0}input,select,textarea{width:100%;padding:12px 13px;border:1px solid #cbd8e3;border-radius:10px;background:#fff;font:inherit;margin-top:6px}textarea{min-height:100px;resize:vertical}button{font:inherit;cursor:pointer}.primary{width:100%;border:0;border-radius:11px;padding:13px;background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;font-weight:750}.message{margin-top:12px;color:var(--danger)}header{height:72px;background:linear-gradient(135deg,#072b5b,#0b558a);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:10px 24px;position:sticky;top:0;z-index:5}.brand{display:flex;gap:11px;align-items:center}.brand img{width:50px;height:50px;object-fit:contain}.brand small{display:block;opacity:.78}#logout{color:#fff;background:#ffffff15;border:1px solid #ffffff45;border-radius:10px;padding:9px 13px}.shell{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 72px)}aside{background:#fff;border-right:1px solid var(--line);padding:18px 14px}.user-card{padding:14px;border-radius:14px;background:#eef7fc;margin-bottom:16px}.user-card b,.user-card small{display:block}.user-card small{color:var(--muted);margin-top:4px}nav{display:grid;gap:5px}nav button{border:0;background:transparent;text-align:left;padding:12px;border-radius:10px;color:#415267}nav button.active,nav button:hover{background:#e8f3fb;color:var(--navy);font-weight:700}main{padding:26px;min-width:0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.page-head h1{margin:0;font-size:27px}.page-head p{margin:4px 0 0;color:var(--muted)}.action{border:0;background:var(--navy);color:#fff;padding:11px 14px;border-radius:10px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;box-shadow:0 4px 15px #18324b0a}.stat b{display:block;font-size:28px;color:var(--navy)}.stat span,.muted{color:var(--muted)}.list{display:grid;gap:10px}.item{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px}.item h3{margin:0 0 5px;font-size:17px}.pill{display:inline-block;background:#e7f4fb;color:#075a87;padding:4px 8px;border-radius:20px;font-size:13px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px}table{width:100%;border-collapse:collapse;min-width:680px}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line)}th{background:#edf4f8;color:#42566c}.switch{width:21px;height:21px}.empty{text-align:center;padding:45px 20px;color:var(--muted);background:#fff;border:1px dashed #bdcad6;border-radius:15px}.filters{display:flex;gap:9px;margin-bottom:15px}.filters select{max-width:230px;margin:0}dialog{border:0;border-radius:18px;padding:0;width:min(520px,calc(100% - 28px));box-shadow:0 24px 80px #00152e70}dialog form{padding:24px}.close{float:right;border:0;background:transparent;font-size:28px}.mobile-title{display:none}@media(max-width:760px){header{padding:8px 13px}.brand b{font-size:14px}.shell{display:block}.shell aside{position:fixed;bottom:0;left:0;right:0;z-index:6;padding:6px;border:0;border-top:1px solid var(--line)}.user-card{display:none}nav{display:flex;overflow:auto}nav button{min-width:76px;text-align:center;padding:10px 7px;font-size:13px}main{padding:18px 14px 88px}.grid{grid-template-columns:1fr 1fr}.page-head{align-items:flex-start}.page-head h1{font-size:23px}.page-head p{font-size:14px}}@media(max-width:430px){.grid{grid-template-columns:1fr}.auth-card{padding:22px}}

.discipline-student-info{min-height:3.1rem;margin:.35rem 0 .9rem;padding:.75rem .9rem;border:1px solid #bfcfe0;border-radius:10px;background:#f5f8fc;color:#263a55;font-weight:600;line-height:1.45}.discipline-student-info.found{border-color:#1b6948;background:#edf8f1;color:#15583c}#disciplineNumber{font-size:1.25rem;min-height:3.2rem;font-weight:700}#disciplineStudent[hidden]{display:none}

.discipline-tabs{display:flex;gap:.4rem;overflow-x:auto;max-width:100%;padding-bottom:.5rem;scrollbar-width:thin}.discipline-tabs button{flex:0 0 auto;white-space:nowrap}.discipline-archive{display:grid;gap:1rem}.discipline-archive>.module-card{max-width:none}#disc-tab-daily{align-items:start}#disc-tab-daily>.module-card{min-width:0}#disc-tab-daily table{width:100%}#disc-tab-board details{margin:1rem 0}#disc-tab-board textarea,#disc-tab-decision textarea{width:100%}@media(max-width:700px){#disc-tab-daily{display:grid;grid-template-columns:1fr;gap:.65rem}#disc-tab-daily>.module-card{padding:.85rem}#disc-tab-daily .table-wrap{max-height:28vh;overflow:auto}#disc-tab-daily #disciplineNumber{font-size:1.25rem}#disc-tab-daily #disciplineSave{width:100%;min-height:48px}#disc-tab-daily textarea{min-height:58px}}
.discipline-suggestions{display:grid;gap:4px;max-height:215px;overflow:auto;border:1px solid #b4c8d7;border-radius:9px;padding:5px;background:#fff;margin:4px 0 9px}.discipline-suggestions[hidden]{display:none}.discipline-suggestions button{padding:9px 11px;text-align:left;background:#f5f9fd;border:0;border-bottom:1px solid #e0eaf2;border-radius:5px;cursor:pointer;font:inherit}.discipline-suggestions button:hover,.discipline-suggestions button:focus-visible{background:#e4f1fc}
/* Daily control: compact entry on the left and dated records on the right. */
#content>.module-layout:has(#disciplineSave){display:grid;grid-template-columns:minmax(330px,1fr) minmax(390px,1.03fr);gap:18px;align-items:start;margin-top:16px}
#content>.module-layout:has(#disciplineSave)>.module-card{min-width:0;border:1px solid #dce6ee;border-radius:16px;box-shadow:0 3px 16px #153d5b0a}
#content>.module-layout:has(#disciplineSave) h2{color:#153d5b;margin:0 0 14px}
#disciplineSave{width:100%;min-height:48px;background:#127e85}
#disciplineClothingChoices{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:4px 0 12px;margin:0}
#disciplineClothingChoices legend{font-weight:700;margin-bottom:8px}
#disciplineClothingChoices label{border:1px solid #d5e2ea;border-radius:9px;background:#f4f8fa;padding:7px 9px}
.disc-day-head{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end;justify-content:space-between}
.disc-day-head h2{flex:1 1 100%;margin:0!important}
.disc-day-head label{font-size:13px;font-weight:700}.disc-day-head input{max-width:175px;min-height:38px}
.disc-day-head button{white-space:normal}.disc-event-list{display:grid;gap:10px;margin-top:12px;max-height:585px;overflow:auto}
.disc-event{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:13px;border:1px solid #dfe9ee;border-radius:10px;background:#f8fbfc}
.disc-event>div:first-child{min-width:0;display:grid;gap:5px}.disc-event strong{color:#153d5b}.disc-event small{color:#667f90}.disc-event span{overflow-wrap:anywhere}
.disc-event-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.disc-event-actions button{font-size:12px;padding:7px 9px}
@media(max-width:840px){#content>.module-layout:has(#disciplineSave){grid-template-columns:minmax(0,1fr)}.disc-event-list{max-height:330px}.disc-event{flex-direction:column}.disc-event-actions{justify-content:flex-start}}
