/* EDUSAS 1.7.5 — complete O2zone-inspired, accessible role-based interface.
   Existing app forms, tables, permissions and database are intentionally preserved. */
:root{--ed-teal:#078b80;--ed-teal-dark:#066f68;--ed-deep:#07564f;--ed-bg:#f3f6f9;--ed-ink:#203247;--ed-muted:#748394;--ed-border:#e1e8ed;--ed-shadow:0 5px 22px rgba(30,60,73,.055);--ed-radius:13px}
html{scroll-behavior:smooth}
body{background:var(--ed-bg);color:var(--ed-ink);font-family:Inter,"Segoe UI",system-ui,Arial,sans-serif}
.ed-ui-icon{display:block;width:20px;height:20px;flex-shrink:0}
.ed-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100dvh}
.ed-sidebar{width:auto;min-height:0;height:100dvh;position:sticky;top:0;background:linear-gradient(180deg,#0b8e87 0%,#0b8079 48%,#096b66 100%);border:0;color:#fff;display:flex;flex-direction:column;z-index:50;box-shadow:3px 0 18px #143c3922}
.ed-brand-area{display:flex;gap:5px;align-items:center;min-height:82px;padding:6px 10px;border-bottom:1px solid #ffffff1c}
.ed-brand{flex:1;min-width:0;display:flex;height:auto;min-height:70px;gap:12px;padding:8px 6px;border:0;align-items:center;justify-content:flex-start;white-space:normal}
.ed-brand-mark{width:46px;height:46px;display:grid;place-items:center;background:#fff;color:var(--ed-teal-dark);border-radius:12px;box-shadow:0 6px 20px #06474423}
.ed-brand-mark svg{width:27px;height:27px}
.ed-brand-text{min-width:0;display:flex;flex-direction:column;gap:3px}
.ed-brand-text b{font-size:20px;line-height:1.1;letter-spacing:.04em;color:white}
.ed-brand-text small{font-size:10px;color:#b7e8e1;text-transform:none;line-height:1.3;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-sidebar-close{display:none;align-items:center;justify-content:center;width:33px;height:33px;border:1px solid #ffffff38;border-radius:9px;background:transparent;color:#fff;cursor:pointer}
.ed-nav-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 11px 15px;scrollbar-color:#ffffff50 transparent;scrollbar-width:thin}
.ed-nav-label{color:#aee6de;font-size:10px;letter-spacing:.08em;font-weight:800;padding:16px 12px 7px;text-transform:uppercase}
.ed-nav-link{min-height:42px;display:flex;align-items:center;gap:11px;color:#eafbf8;border-radius:9px;padding:9px 10px;text-decoration:none;font-size:13px;font-weight:600;transition:background .16s,color .16s}
.ed-nav-link:hover,.ed-nav-link:focus-visible{background:#ffffff1a;color:#fff}
.ed-nav-link.is-current{background:#075c58;color:#fff;box-shadow:inset 3px 0 #9bebdf}
.ed-nav-icon{display:flex;align-items:center;justify-content:center;width:21px;color:#e4fcf7}
.ed-nav-icon svg{width:19px;height:19px}
.ed-nav-text{min-width:0;flex:1}
.ed-nav-count{background:#fff;color:#0b6d64;font-size:11px;border-radius:16px;min-width:23px;text-align:center;padding:2px 6px}
.ed-side-foot{display:flex;align-items:center;gap:10px;background:#065e5a;color:#fff;border-top:1px solid #ffffff22;padding:14px 13px;font-size:12px;min-height:76px}
.ed-profile-monogram,.ed-profile-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#d8f5eb;color:#076d65;font-weight:800;font-size:16px;flex-shrink:0}
.ed-side-user{display:flex;flex-direction:column;min-width:0;gap:2px;flex:1}
.ed-side-user strong{font-size:12px;color:#fff;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ed-side-user small{font-size:10px;color:#b6ddd8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-status-dot{width:8px;height:8px;flex-shrink:0;display:inline-block;background:#6bdfa8;border-radius:50%;box-shadow:0 0 0 3px #6bdfa822}
.ed-main-column{min-width:0;min-height:100vh;display:flex;flex-direction:column}
.ed-topbar{background:#fff;border-bottom:1px solid var(--ed-border);padding:11px 22px;min-height:76px;height:auto;display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 2px 8px #234b5108}
.ed-top-left,.ed-top-actions,.ed-top-profile{display:flex;align-items:center;gap:12px;min-width:0}
.ed-page-identity{display:flex;flex-direction:column;min-width:0;gap:2px}
.ed-breadcrumb{font-size:10px;color:#718b96;text-transform:none;letter-spacing:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-page-identity strong{font-size:17px;color:#20334a;font-weight:800;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-top-actions{gap:8px}
.ed-date{font-size:12px;color:#748998;white-space:nowrap}
.ed-menu-toggle{display:none;align-items:center;justify-content:center;background:#e6f5f2;color:#0b7169;border:0;border-radius:9px;width:38px;height:38px;cursor:pointer}
.ed-top-action{display:grid;place-items:center;position:relative;width:38px;height:38px;border:1px solid var(--ed-border);border-radius:10px;background:#fff;color:#14877b;text-decoration:none}
.ed-top-action:hover{background:#e9f9f6}
.ed-top-action b{position:absolute;top:-7px;right:-7px;background:#eb4d62;color:#fff;min-width:19px;height:19px;line-height:19px;text-align:center;border-radius:50%;font-size:10px}
.ed-top-profile{gap:9px;border-left:1px solid #e9eef1;padding-left:10px}
.ed-profile-avatar{width:36px;height:36px}
.ed-top-person{min-width:0;display:flex;flex-direction:column;gap:1px;max-width:155px}
.ed-top-person strong{font-size:12px;color:#23354a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-top-person small{font-size:10px;color:#8999a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-logout{display:flex;gap:5px;align-items:center;color:#718394;text-decoration:none;font-size:12px;padding:8px;border-radius:8px}
.ed-logout:hover{background:#f1f5f7;color:#de4e5c}
.ed-logout .ed-ui-icon{width:17px;height:17px}
.ed-content{padding:23px 25px 44px;flex:1;min-width:0}
.ed-footer{padding:13px 24px;border-top:1px solid var(--ed-border);font-size:11px;color:#94a1aa;display:flex;gap:15px;justify-content:space-between;flex-wrap:wrap;background:#fff}
.ed-home-hero{background:linear-gradient(108deg,#ffffff 0%,#f2fbf8 77%,#e8f7f3 100%);border:1px solid #dbe9e5;border-radius:var(--ed-radius);min-height:142px;padding:23px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:var(--ed-shadow);margin-bottom:26px}
.ed-hero-eyebrow{display:flex;align-items:center;gap:8px;color:#0b887b;font-weight:800;font-size:11px;letter-spacing:.025em}
.ed-hero-eyebrow .ed-ui-icon{width:16px;height:16px}
.ed-home-hero h1{font-size:25px;color:#193a3c;letter-spacing:-.4px;line-height:1.2;margin:10px 0 7px}
.ed-home-hero p{font-size:13px;color:#627885;line-height:1.6;margin:0;max-width:730px}
.ed-home-hero p strong{color:#284257}
.ed-hero-tags{margin-top:13px;display:flex;flex-wrap:wrap;gap:7px}
.ed-hero-tags span{display:flex;align-items:center;gap:5px;font-size:10px;border-radius:15px;background:#e3f7f0;color:#0e7569;padding:5px 9px}
.ed-hero-tags .ed-ui-icon{width:12px;height:12px}
.ed-hero-chat{flex-shrink:0;display:flex;align-items:center;gap:9px;background:linear-gradient(110deg,#10a88f,#07897d);color:#fff;border-radius:10px;font-size:12px;font-weight:750;text-decoration:none;padding:13px 17px;box-shadow:0 8px 16px #0a9c8740}
.ed-hero-chat:hover{background:#06766c;color:#fff}
.ed-hero-chat .ed-ui-icon{width:17px;height:17px}
.ed-home-block{margin:20px 0 26px}
.ed-section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 12px}
.ed-section-heading h2{font-size:13px;color:#53677a;letter-spacing:.04em;font-weight:800;margin:0}
.ed-section-note{font-size:11px;color:#91a0ab}
.ed-section-heading a{font-size:12px;text-decoration:none;color:#0e937f;font-weight:700}
.ed-metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0}
.ed-metric{background:#fff;border:1px solid #e4ebee;border-radius:11px;min-height:139px;padding:17px 17px 14px;color:#26384c;text-decoration:none;display:flex;flex-direction:column;gap:13px;box-shadow:var(--ed-shadow);transition:transform .15s,box-shadow .15s,border-color .15s}
.ed-metric:hover{border-color:#9adcd2;transform:translateY(-2px);box-shadow:0 12px 25px #21494918}
.ed-metric-label{font-weight:750;color:#536a7b;font-size:11px}
.ed-metric-main{display:flex;align-items:center;gap:10px}
.ed-metric-main strong{font-weight:850;font-size:22px;letter-spacing:-.45px;overflow-wrap:anywhere;line-height:1.22}
.ed-metric-icon{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;background:#e4f7ee;border-radius:10px;color:#07a07e}
.ed-metric:nth-child(4n+2) .ed-metric-icon{background:#eaf1ff;color:#377ce5}
.ed-metric:nth-child(4n+3) .ed-metric-icon{background:#fff2e6;color:#df8a34}
.ed-metric:nth-child(4n+4) .ed-metric-icon{background:#fcecf0;color:#da5972}
.ed-metric-hint{display:flex;align-items:center;gap:5px;color:#0b9280;font-size:10px;font-weight:700;margin-top:auto}
.ed-metric-hint .ed-ui-icon{width:13px;height:13px}
.ed-dashboard-panel{min-width:0}
.ed-home-actions{margin:17px 0 23px}
.ed-home-actions .ed-section-heading,.ed-trend-panel .ed-section-heading{margin-bottom:14px}
.ed-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.ed-quick-grid a{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;background:#fff;border:1px solid #e1e9ed;border-radius:11px;padding:14px 12px;text-decoration:none;color:#304459;transition:background .15s}
.ed-quick-grid a:hover{background:#f1faf8;border-color:#a7ddd5}
.ed-quick-grid a>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#e6f6f2;color:#0b8f7e;flex-shrink:0}
.ed-quick-grid a>b{font-size:12px;line-height:1.4;flex:1 1 calc(100% - 50px)}
.ed-quick-grid a>small{font-size:10px;color:#95a4af;padding-left:46px;flex-basis:100%}
.ed-trend-panel{margin:22px 0;padding:19px 22px}
.ed-bar-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:end;min-height:210px;padding:16px 10px 0;border-bottom:1px solid #d6e4e6}
.ed-bar-item{height:180px;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:6px}
.ed-bar-value{font-size:10px;color:#7c919c;white-space:nowrap}
.ed-bar-track{height:148px;width:min(100%,47px);display:flex;align-items:end;border-radius:9px 9px 0 0;overflow:hidden;background:#eaf4f2}
.ed-bar-fill{width:100%;min-height:1px;background:linear-gradient(180deg,#1ecbb0,#09937e);border-radius:8px 8px 0 0}
.ed-bar-month{font-size:10px;color:#738b97}
.ed-chart-empty{min-height:140px;display:flex;align-items:center;justify-content:center;gap:12px;color:#8fa5af;font-size:13px}
.ed-chart-empty .ed-ui-icon{width:27px;height:27px}
.ed-mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ed-mini-stat{display:flex;align-items:center;justify-content:space-between;gap:7px;background:#fff;border:1px solid var(--ed-border);border-radius:10px;padding:13px 17px;color:#637a8a;text-decoration:none;font-size:12px;box-shadow:var(--ed-shadow)}
.ed-mini-stat strong{color:#098d7a;font-size:24px}
.ed-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:15px 0 25px}
.ed-two-columns .panel{margin:0}
.ed-activity-row{display:flex;gap:11px;padding:11px 0;border-bottom:1px solid #edf2f4;align-items:center}
.ed-activity-row:last-child{border-bottom:none}
.ed-activity-icon{width:36px;height:36px;border-radius:9px;background:#e9f7f3;color:#0d917d;display:grid;place-items:center;flex-shrink:0}
.ed-activity-row>div{flex:1;min-width:0}
.ed-activity-row strong{font-size:12px;line-height:1.4;color:#31495c;display:block;overflow-wrap:anywhere}
.ed-activity-row small{font-size:10px;color:#8595a4;display:block;margin-top:3px}
.ed-empty-message{font-size:12px;color:#91a0ad;padding:16px 6px}
.ed-empty-home{margin:18px 0}
.ed-logout:focus-visible,.ed-menu-toggle:focus-visible,.ed-nav-link:focus-visible,.ed-script-btn:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #f4bd4b;outline-offset:2px}
.ed-script-switch{display:inline-flex;align-items:center;gap:2px;border:1px solid #d9e8e5;background:#f6faf9;border-radius:10px;padding:3px;white-space:nowrap}
.ed-script-btn{border:0;background:transparent;color:#577b77;font-size:11px;padding:7px 9px;line-height:1.2;border-radius:7px;font-weight:750;cursor:pointer;min-width:34px}
.ed-script-btn.is-active{background:#0d8d7e;color:#fff;box-shadow:0 1px 5px #0a726633}
.ed-nav-backdrop[hidden]{display:none!important}
.ed-nav-backdrop{display:none}
.ed-skip{position:fixed;top:-60px;left:12px;background:#fff;padding:8px 12px;z-index:200;color:#066b61;border-radius:6px}
.ed-skip:focus{top:8px}
/* Preserve dense operational screens while making controls consistent with the dashboard. */
.ed-content .panel{background:#fff;border-color:#e1e9ed;border-radius:12px;box-shadow:var(--ed-shadow)}
.ed-content :is(input,select,textarea):not([type=checkbox]):not([type=radio]):focus{border-color:#18a994;outline:2px solid #0caa8c33;outline-offset:1px}
.ed-content .primary{background:#079b85;color:#fff;border-radius:9px}
.ed-content .primary:hover{background:#087b71}
.ed-content .smallbtn{background:#eaf7f3;color:#08796c;border:1px solid #bfe4d9}
.ed-content th{background:#f5faf9;color:#547083;border-bottom:1px solid #dfe8ed}
.ed-content .tablewrap{border-radius:9px;overflow-x:auto}
.ed-content .pagehead h1{font-size:24px;color:#203c48}
.ed-content .notice{line-height:1.55}
.ed-nav-backdrop{cursor:pointer}
@media (max-width:1370px){.ed-shell{grid-template-columns:225px minmax(0,1fr)}.ed-metrics-grid,.ed-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ed-topbar{padding:10px 16px}}
@media (max-width:960px){
 .ed-shell{grid-template-columns:minmax(0,1fr)}
 .ed-sidebar{position:fixed;top:0;left:0;bottom:0;height:100dvh;width:min(285px,84vw);transform:translateX(-105%);transition:transform .2s ease;box-shadow:9px 0 30px #082e2b24;z-index:110}
 .ed-sidebar-open .ed-sidebar{transform:translateX(0)}
 .ed-sidebar-close{display:inline-flex}
 .ed-nav-scroll{display:block;max-height:none}
 .ed-side-foot{display:flex}
 .ed-nav-backdrop{position:fixed;inset:0;z-index:100;width:100%;height:100%;background:#061c2266;border:0}
 .ed-sidebar-open .ed-nav-backdrop{display:block}
 .ed-menu-toggle{display:inline-flex}
 .ed-content{padding:17px 15px 30px}
 .ed-topbar{min-height:65px}
 .ed-home-hero{padding:19px}
}
@media (max-width:670px){
 .ed-metrics-grid,.ed-two-columns,.ed-quick-grid,.ed-mini-stats{grid-template-columns:1fr}
 .ed-home-hero{display:block;padding:17px}
 .ed-home-hero h1{font-size:21px}
 .ed-hero-chat{display:inline-flex;margin-top:15px}
 .ed-top-profile .ed-top-person,.ed-date,.ed-logout span,.ed-breadcrumb{display:none}
 .ed-topbar{gap:6px;padding:9px 10px}
 .ed-top-actions{gap:5px}
 .ed-top-left{gap:6px}
 .ed-top-action{width:32px;height:32px}
 .ed-profile-avatar{width:31px;height:31px}
 .ed-script-btn{font-size:10px;padding:7px 6px;min-width:27px}
 .ed-script-switch{gap:0;padding:2px}
 .ed-page-identity strong{font-size:14px}
 .ed-content .formgrid{grid-template-columns:1fr}
 .ed-home-block{margin:17px 0 22px}
 .ed-metric{min-height:115px}
 .ed-mini-stat{padding:12px}
 .ed-footer{padding:13px;font-size:10px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
