/* Task-oriented layouts. Mobile uses the same controls and data, not duplicates. */
.presence-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:0;padding:0;margin:0;min-width:280px;max-width:380px}.presence-choice{display:flex;align-items:center;gap:8px;min-height:48px;padding:10px;border:2px solid var(--border);border-radius:8px;cursor:pointer;background:white;white-space:normal;font-size:16px;line-height:1.4}.presence-choice input{width:20px;height:20px;min-height:20px;margin:0;flex-shrink:0;accent-color:var(--green)}.presence-choice:has(input:checked){border-color:var(--green);background:var(--mint);font-weight:600}.presence-choice:has(input:focus-visible){outline:3px solid var(--yellow);outline-offset:2px}.presence-reset{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.presence-reset .btn{margin-left:auto}@media(max-width:700px){.presence-options{min-width:0;max-width:none}#main[data-route=attendance] .responsive-table td:nth-child(2),#main[data-route=attendance] .responsive-table td:nth-child(3){grid-column:1/-1}}
.attendance-tools{margin-bottom:10px}.attendance-history{margin-top:24px}.presence-records article{padding:14px 0;border-bottom:1px solid var(--border)}.presence-records p{overflow-wrap:anywhere}.attendance-history .setting-row{gap:15px}#main[data-route=attendance] td select{max-width:100%;min-height:44px}#main[data-route=attendance] td input{max-width:100%}.sidebar{overflow-y:auto}
.teacher-level{border:1px solid var(--border);border-radius:8px;padding:8px 14px;margin:12px 0}.teacher-level legend{padding:0 6px;font-weight:600}#close-menu{display:none}@media(max-width:1100px){#close-menu{display:block;margin:10px 20px}}
[hidden]{display:none!important}.sr-only,.visually-hidden-input{position:absolute;left:0;top:0;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;overflow:hidden;clip-path:inset(50%)}
.cycle-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.level-picker{justify-content:flex-start;padding:16px 0}.level-picker select{min-width:180px}.level-picker span{color:var(--muted)}
.section-list{padding:0 20px}.section-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:20px 0;border-bottom:1px solid var(--border)}.section-row:last-child{border:0}.section-row h3{font-size:20px}.section-rules{grid-column:1/-1;font-size:16px}.section-rules summary{color:var(--green)}.section-rules p{margin:10px 0}.common-rules{margin:20px 0}.catalog>summary,.settings-group>summary,.dashboard-chart>summary{padding:20px;font-size:18px;font-weight:600;cursor:pointer}summary{cursor:pointer;min-height:44px;padding:10px 0}summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}.catalog-list{margin-top:15px}.section-choice-field>label{display:none}.section-toggles{display:flex;flex-wrap:wrap;gap:10px}.section-toggles label{border:1px solid var(--border);border-radius:8px;padding:8px 14px}.section-choices textarea{width:100%;margin:8px 0}.check-label{display:flex;align-items:center;gap:10px;min-height:44px;min-width:44px;cursor:pointer}input[type=checkbox]{width:24px;min-width:24px;height:24px;min-height:24px;accent-color:var(--green)}
.settings-groups{display:grid;gap:16px}.settings-content{display:grid;gap:16px;padding:0 20px 20px}.settings-content>.panel{border:0;border-radius:0}.settings-content .panel-header{padding:14px 0}.settings-content .panel-body{padding:16px 0}.settings-content .settings-grid{display:block}.settings-group[open]>summary{color:var(--green);border-bottom:1px solid var(--border)}
.dashboard-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.compact-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.action-notice{display:flex;justify-content:space-between;gap:15px;align-items:center}.dashboard-chart>.panel{border:0}.dashboard-grid{margin-bottom:20px}.dashboard-chart .panel-header{display:none}.school-switch{display:none}.hero{display:none}
.filters{align-items:end}.search{min-width:240px;flex:1}.search input{width:100%;min-width:0}.search:focus-within{min-width:240px}.pager{display:flex;align-items:center;justify-content:center;gap:15px;padding:16px;border-top:1px solid var(--border)}.pager span{font-size:16px}.table-wrap{scroll-margin-top:12px}thead th{position:sticky;top:0;z-index:1}.grade-help{margin-bottom:18px}.grade-help summary{color:var(--green)}.field-error{color:var(--red);font-size:15px;line-height:1.5}.field [aria-invalid=true]{border:2px solid var(--red)}.payment-balance{grid-column:1/-1;margin:0}.form-grid>details.field{display:block}.form-grid>details.field[open]>.field{margin-top:12px}
.daily-view{display:none}.schedule{min-width:0;table-layout:fixed}.schedule th:first-child{width:125px}.schedule th,.schedule td{min-width:0;padding:8px;font-size:14px}.schedule .lesson{font-size:14px;overflow-wrap:anywhere}.schedule .lesson small{font-size:13px}.schedule .move-button{font-size:14px;padding:6px}.schedule td{height:150px}.document-dialog{width:min(1000px,calc(100vw - 24px))}.document-dialog .no-print{position:sticky;bottom:-24px;background:white;z-index:2;margin:0;padding:15px 0;border-top:1px solid var(--border)}
@media(max-width:1200px){.schedule{min-width:1050px}.compact-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media screen and (max-width:700px){
  .section-row{grid-template-columns:1fr;gap:10px}.section-row>.button-row{justify-content:flex-start}.section-list{padding:0 16px}.common-rules .panel-header{align-items:flex-start}.level-picker{gap:10px}.level-picker select{flex:1;min-width:140px}.settings-content{padding:0 16px 16px}.settings-group>summary{font-size:18px}.compact-stats,.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:14px 10px}.stat-head{font-size:14px;align-items:flex-start}.stat-icon{display:none}.stat-value{font-size:24px;letter-spacing:-.4px}.stat-value small{font-size:13px}.stat-foot{font-size:13px}.action-notice{align-items:flex-start;flex-direction:column}.dashboard-actions .btn{flex:1}.dashboard-actions{gap:8px}.page-heading h1{font-size:26px}.page-heading .sub{font-size:16px}.search{flex-basis:100%;min-width:0}.search:focus-within{min-width:0}.filters>.field{width:100%}.filters{align-items:stretch}.toolbar>.button-row{margin-left:0}.pager{gap:8px;justify-content:space-between;padding:12px}.pager .btn{padding:8px}.pager span{font-size:14px}.table-wrap{overflow-x:visible}
  .responsive-table,.responsive-table tbody{display:block;width:100%;white-space:normal}.responsive-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.responsive-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:16px;gap:12px;border-bottom:1px solid var(--border)}.responsive-table td{display:block;padding:0;border:0;font-size:16px;min-width:0;overflow-wrap:anywhere}.responsive-table td::before{content:attr(data-label);display:block;font-size:13px;color:var(--muted);margin-bottom:4px;letter-spacing:.3px}.responsive-table td:first-child,.responsive-table td:last-child,.responsive-table td[colspan]{grid-column:1/-1}.responsive-table td:first-child::before,.responsive-table td:last-child::before,.responsive-table td[colspan]::before{display:none}.responsive-table td:last-child{display:flex;gap:8px;flex-wrap:wrap}.responsive-table td:last-child .btn{flex:1}.responsive-table .person strong{font-size:17px}.responsive-table td input:not([type=checkbox]):not([type=radio]){width:100%!important}.responsive-table .grade-input{width:100%}.responsive-table .empty{display:block!important;text-align:left}.responsive-table .person small{font-size:14px}.responsive-table .tag{white-space:normal}.responsive-table .person{align-items:start}
  .week-view{display:none}.week-view:has(.schedule){display:none}.panel:has(>.week-view){display:none}.daily-view{display:block}.daily-slots{padding:0 16px}.daily-slot{padding:18px 0;border-bottom:1px solid var(--border)}.daily-slot:last-child{border:0}.daily-slot h3{margin-bottom:12px}.daily-slot p{margin:8px 0}.daily-slot .btn{flex:1}.daily-view .panel-header select{width:100%}#main[data-route=schedule]>.inline-info{font-size:14px}
  .document-dialog{width:calc(100vw - 16px);max-height:95dvh}.document-dialog #modal-body{padding:16px}.bulletin{min-width:0}.bulletin-info{flex-direction:column;gap:10px}.bulletin table,.bulletin tbody{display:block;table-layout:auto}.bulletin thead{display:none}.bulletin tbody tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--border);padding:12px 0;gap:8px}.bulletin td{display:block!important;width:auto!important;padding:0;border:0;font-size:15px}.bulletin td::before{content:attr(data-label);display:block;color:var(--muted);font-size:13px}.bulletin td:first-child,.bulletin td:last-child{grid-column:1/-1}.bulletin td:first-child{font-weight:600}.bulletin td:first-child::before{display:none}.bulletin-summary{justify-content:space-between;padding:12px}.document-dialog .no-print{bottom:-16px}.modal-top{padding:16px}#modal-body{padding:16px}.form-actions{bottom:-16px}.document-dialog .detail-grid{grid-template-columns:1fr}.print-note{overflow-wrap:anywhere}
}
@media print{.document-dialog .no-print{display:none!important}.bulletin table{display:table!important}.bulletin tbody{display:table-row-group!important}.bulletin tr{display:table-row!important}.bulletin td{display:table-cell!important}.bulletin td::before{display:none!important}.bulletin thead{display:table-header-group!important}.bulletin-info{flex-direction:row}.bulletin{min-width:0!important}}
