/* Admin-only surfaces; shared controls inherit the main school design system. */
.admin-next-step{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;padding:20px;border:1px solid #c8d7ef;border-radius:12px;background:#f3f7ff;margin:0 0 22px}.admin-next-step h3{font-size:18px;margin:0 0 7px}.admin-next-step p{font-size:13px;line-height:1.8;color:#526582;margin:0}.admin-next-step .form-actions{margin:0}
.admin-pagination{display:flex;align-items:center;justify-content:center;gap:16px;padding:22px 0;font-size:13px;color:#526582}.admin-pagination .button{min-height:40px}.admin-row-actions details{position:relative}.admin-row-actions summary{padding:9px 12px;cursor:pointer;font-size:13px;border:1px solid #d6e0ee;border-radius:6px;list-style:none}.admin-row-actions details[open] .secondary-actions{display:flex;flex-wrap:wrap;gap:7px;padding:12px;margin-top:8px;max-width:300px;background:#f5f8fe;border:1px solid #d6e0ee;border-radius:8px}.admin-tab-group{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px;border:1px solid #e0e7f0;border-radius:8px}.admin-tab-group>span{width:100%;font-size:11px;color:#64748b;letter-spacing:.06em;padding:0 6px}.admin-shell .admin-tabs{gap:10px;align-items:stretch}.admin-tab-group button{white-space:nowrap}
@media(max-width:760px){.admin-pagination{gap:10px;flex-wrap:wrap}.admin-shell .admin-tabs{flex-wrap:wrap!important;overflow:visible!important}.admin-tab-group{flex:1 1 220px}.admin-row-actions details[open] .secondary-actions{max-width:none}}
.admin-heading,.admin-section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.admin-heading h2{font-size:23px;margin:8px 0}.admin-heading p{font-size:13px;line-height:1.8;color:#71839f;margin:0}.admin-section-heading h2{margin:0}.admin-toolbar{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.admin-toolbar label,.admin-sheet-label{display:grid;gap:7px;font-size:13px;color:#687e9e}.admin-row-actions{display:flex!important;flex:0 0 auto!important;flex-wrap:wrap;gap:6px;justify-content:flex-end}.admin-row-actions .button{min-height:35px}.admin-empty{color:#7487a4;font-size:14px;line-height:1.8;padding:20px 0}.admin-checks{margin:0;padding:14px;border:1px solid #d6e0ee;border-radius:7px;display:flex;flex-wrap:wrap;gap:14px}.admin-checks legend{font-size:13px;color:#7187a7;padding:0 6px}.admin-checks label{font-size:13px;line-height:1.6}.admin-checks input,.admin-review-check input{width:17px;height:17px;min-width:17px;accent-color:#3049db}.admin-dialog h2{font-size:23px;line-height:1.5;margin-top:0}.admin-dialog .form-grid{margin:18px 0}.admin-dialog input,.admin-dialog select,.admin-dialog textarea,.admin-sheet-label select{width:100%;box-sizing:border-box}.admin-dialog input[type=checkbox]{width:17px}.admin-evidence{margin:20px 0;border:1px solid #dce5f0;border-radius:7px;padding:14px;background:#f8faff}.admin-evidence summary,.admin-history summary{cursor:pointer;font-size:13px;line-height:1.7;color:#516995}.admin-evidence pre{white-space:pre-wrap;word-break:break-word;max-height:360px;overflow:auto;font-size:12px;line-height:1.7}.admin-json-label{display:grid;gap:9px;margin-top:12px;font-size:13px}.admin-json{min-height:320px;width:100%;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.65;tab-size:2}.admin-preview{max-height:340px;border:1px solid #dce5f0;border-radius:7px}.admin-preview thead{position:sticky;top:0;background:#eff4fb}.admin-preview table{min-width:580px}.admin-review-check{display:flex;align-items:flex-start;gap:9px;font-size:13px;color:#607999;line-height:1.8;margin-top:20px}.admin-review-check input{margin-top:3px}.admin-history{border-bottom:1px solid #dfe6f1;padding:16px 0}.admin-history:last-child{border-bottom:0}.admin-break{white-space:pre-wrap;overflow-wrap:anywhere;max-width:280px}.admin-shell .table-wrap{margin-top:18px}.admin-shell .table td{max-width:350px;overflow-wrap:anywhere}.admin-shell .source-warning p{white-space:pre-wrap}.admin-shell button:focus-visible,.admin-dialog button:focus-visible,.admin-dialog summary:focus-visible{outline:3px solid #7992f8;outline-offset:3px}.admin-shell .admin-row p{white-space:pre-wrap;overflow-wrap:anywhere}.admin-shell .stat-grid{margin:12px 0 24px}.admin-dialog [data-bulk-value]{display:grid}.admin-dialog form [data-errors]:empty{display:none}.admin-dialog .form-grid>.full{grid-column:1/-1}
@media(max-width:760px){.admin-heading,.admin-section-heading{align-items:flex-start;gap:12px}.admin-heading{flex-direction:column}.admin-heading h2{font-size:21px}.admin-toolbar{grid-template-columns:1fr 1fr}.admin-toolbar>label:first-child{grid-column:1/-1}.admin-row-actions{flex-basis:100%!important;justify-content:flex-start;padding-left:24px}.admin-row-actions .button{min-height:39px}.admin-dialog h2{font-size:21px}.admin-checks{gap:12px}.admin-dialog .admin-checks label{font-size:13px}.admin-evidence{padding:11px}.admin-preview table{min-width:530px}.admin-json{min-height:300px;font-size:12px}.admin-shell .table th,.admin-shell .table td{padding:9px 7px}.admin-dialog .form-actions>.button{min-height:43px}}
/* Controlled publication and recovery: long evidence remains readable on small screens. */
.admin-diff{overflow:auto;margin:18px 0;border:1px solid #dce5f0;border-radius:8px}.admin-diff table{min-width:560px}.admin-diff td{white-space:pre-wrap;overflow-wrap:anywhere;max-width:330px;vertical-align:top}.admin-impact{padding:16px;border:1px solid #d7e1ef;border-radius:8px;background:#f5f8fe;margin:18px 0}.admin-impact h3{margin:0 0 10px;font-size:17px}.admin-impact p{font-size:13px;line-height:1.8}.admin-impact pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6}.admin-json.compact{min-height:140px}.admin-dialog form>label{display:grid;gap:8px;margin:14px 0}.admin-dialog form>.inline-check{display:flex}.admin-dialog .form-section{margin-top:20px}.admin-shell [data-backup-create],.admin-shell [data-backup-import],.admin-shell [data-archive-form]{margin:20px 0}.admin-shell .admin-break{max-width:none}.admin-dialog [data-backup-check] .table-wrap{max-height:360px;overflow:auto}.admin-tabs{flex-wrap:wrap}.admin-dialog .admin-history strong{overflow-wrap:anywhere}.admin-dialog .admin-evidence li{font-size:13px;line-height:1.8;margin-bottom:8px}
@media(max-width:760px){.admin-impact{padding:12px}.admin-diff table{min-width:470px}.admin-dialog .admin-history .form-actions{flex-wrap:wrap}.admin-shell .admin-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap}.admin-shell .admin-tabs button{white-space:nowrap}.admin-dialog .form-actions{gap:9px}.admin-dialog [data-backup-restore-form] .button{white-space:normal}}
