*{box-sizing:border-box}body{margin:0;font-family:Kalpurush,"Times New Roman",sans-serif;background:#f4f7fb;color:#172033}.admin{min-height:100vh;display:flex}aside{width:240px;background:#123b2a;color:#fff;padding:24px 14px}aside h2{margin:0 10px 24px;font-size:22px}aside a{display:block;color:#fff;text-decoration:none;padding:12px 14px;border-radius:8px;margin:4px 0}aside a:hover,aside a.active{background:#e98b2a}main{flex:1;padding:28px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.cards>div,.panel,.auth-card{background:#fff;border-radius:14px;padding:24px;box-shadow:0 5px 20px rgba(0,0,0,.07)}.cards b{display:block;font-size:34px}.cards span{color:#657080}.auth-card{width:min(440px,calc(100% - 30px));margin:8vh auto}.auth-card h1{margin-top:0}.auth-card form{display:grid;gap:14px;margin:20px 0}.auth-card label{display:grid;gap:6px;font-weight:600}.auth-card input{padding:12px;border:1px solid #ccd5df;border-radius:8px;font-size:16px}.auth-card button{padding:12px;border:0;border-radius:8px;background:#123b2a;color:#fff;font-size:16px;cursor:pointer}.ok{background:#e4f7ea;padding:10px;border-radius:8px}.err{background:#fde7e7;padding:10px;border-radius:8px}@media(max-width:800px){.admin{display:block}aside{width:auto}.cards{grid-template-columns:repeat(2,1fr)}.top{display:block}}@media(max-width:480px){.cards{grid-template-columns:1fr}}
.menu-group{margin:4px 0}.menu-group summary{list-style:none;cursor:pointer;color:#fff;padding:12px 14px;border-radius:8px;position:relative}.menu-group summary::-webkit-details-marker{display:none}.menu-group summary:after{content:'▾';position:absolute;right:14px;transition:transform .2s}.menu-group:not([open]) summary:after{transform:rotate(-90deg)}.menu-group summary:hover,.menu-group[open] summary{background:rgba(233,139,42,.22)}.submenu{margin:2px 0 6px 8px;padding-left:8px;border-left:2px solid rgba(255,255,255,.18)}.submenu a{font-size:15px;padding:10px 10px;margin:2px 0}.submenu a:hover,.submenu a.active{background:#e98b2a}.step-note{margin-top:18px;padding:12px 14px;background:#eef7f2;border-left:4px solid #123b2a;border-radius:8px}

/* Main Menu always stays visible; clicking a Main Menu only opens/closes its own Submenu. */
.admin-sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;flex:0 0 240px;width:240px}
.admin-sidebar .menu-group{display:block}
.admin-sidebar .menu-group summary{font-weight:700}
.admin-sidebar .submenu{display:block}
@media(max-width:800px){.admin-sidebar{position:relative;height:auto;width:auto;max-height:none}}

/* Standalone Main Menus stay visible beside the expandable Main Menu groups. */
.admin-sidebar .standalone-menu{font-weight:700;margin:4px 0;padding:12px 14px}
.admin-sidebar .standalone-menu:hover,.admin-sidebar .standalone-menu.active{background:rgba(233,139,42,.22)}

/* Sidebar menu and submenu icons */
.admin-sidebar a, .admin-sidebar summary{display:flex;align-items:center;gap:12px}
/* Main Menu icons: clear separation from the menu text */
.admin-sidebar > a i, .admin-sidebar > .menu-group > summary i{width:22px;min-width:22px;text-align:center;font-size:16px}
.admin-sidebar summary span, .admin-sidebar a span{flex:1}
/* Submenu: use a small filled circle with comfortable spacing */
.admin-sidebar .submenu a{gap:11px;padding-left:12px}
.admin-sidebar .submenu a i{width:9px;min-width:9px;font-size:7px;line-height:1;opacity:.9}
.admin-sidebar .menu-group summary:after{margin-left:auto}

/* Final menu icon styling: icons only on Main Menus, filled circles on Submenus */
.admin-sidebar a,
.admin-sidebar summary{display:flex;align-items:center;gap:0}
.admin-sidebar > .standalone-menu > i,
.admin-sidebar > .menu-group > summary > i{
  width:22px;
  min-width:22px;
  margin-right:12px;
  text-align:center;
  font-size:16px;
}
.admin-sidebar > .menu-group > summary > span,
.admin-sidebar > .standalone-menu > span{flex:1}
.admin-sidebar .submenu{
  margin:2px 0 7px 8px;
  padding-left:9px;
  border-left:1px solid rgba(255,255,255,.16);
}
.admin-sidebar .submenu a{
  display:flex;
  align-items:center;
  gap:0;
  padding:9px 10px 9px 9px;
  margin:2px 0;
  font-size:15px;
}
.admin-sidebar .submenu-dot{
  display:block;
  width:6px;
  height:6px;
  min-width:6px;
  border-radius:50%;
  background:currentColor;
  margin-right:11px;
  opacity:.95;
}
.admin-sidebar .submenu a span{flex:1}

/* Arju School branding */
.admin-sidebar .brand-title{margin:0 10px 24px;line-height:1.2;font-size:22px;font-weight:700}.admin-sidebar .brand-title small{display:block;margin-top:5px;font-size:13px;font-weight:400;line-height:1.2}
/* Video-matched management forms */
.admin main{background:#f5f8fc;min-height:100vh;padding:24px 28px}.top h1{font-size:24px;margin:0}.flash{padding:12px 16px;border-radius:10px;margin:0 0 16px;font-weight:600}.flash.ok{background:#e7f8ef;color:#146c43}.flash.err{background:#fdebec;color:#a51d2d}.page-banner{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-radius:14px;color:#fff;margin-bottom:18px;box-shadow:0 8px 25px rgba(15,70,150,.12)}.page-banner.blue{background:linear-gradient(135deg,#0e70df,#1468c7)}.page-banner h2{margin:3px 0;font-size:23px}.page-banner p,.page-banner small{margin:0;opacity:.88}.page-banner>b{background:rgba(255,255,255,.16);padding:12px 16px;border-radius:12px}.school-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-card,.table-card{background:#fff;border:1px solid #e6ebf2;border-radius:14px;padding:18px;box-shadow:0 4px 18px rgba(25,55,90,.05)}.card-title{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf1f5;padding-bottom:13px;margin-bottom:16px;color:#1266cf}.card-title>i{width:34px;height:34px;border-radius:9px;background:#eaf3ff;display:grid;place-items:center}.card-title b{display:block;font-size:17px;color:#17314f}.card-title small{display:block;color:#8a96a6;font-size:12px;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}.form-grid label,.stack-form label{display:grid;gap:6px;color:#435268;font-weight:600;font-size:13px}.form-grid label.full,.stack-form label.full{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea,.stack-form input,.stack-form select,.stack-form textarea,.table-search{width:100%;padding:11px 12px;border:1px solid #d7dfe9;border-radius:8px;background:#fff;color:#23344d;font-family:inherit;font-size:14px;outline:none}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.stack-form input:focus,.stack-form select:focus,.stack-form textarea:focus,.table-search:focus{border-color:#1976e8;box-shadow:0 0 0 3px rgba(25,118,232,.09)}em{color:#e23b4b;font-style:normal}.help{font-size:11px;color:#8a96a6;font-weight:400}.form-actions{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding-top:8px;color:#8a96a6;font-size:12px}.full-width{grid-column:1/-1}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:8px;padding:10px 16px;text-decoration:none;cursor:pointer;font-family:inherit;font-weight:700}.btn.primary{background:#1375eb;color:#fff}.btn.primary:hover{background:#0865d2}.btn.tiny{padding:6px 9px;font-size:11px}.btn.edit{background:#fff4dd;color:#b76d00}.btn.danger{background:#fff0f2;color:#c51e38}.two-card-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(500px,1.5fr);gap:16px}.stack-form{display:grid;gap:13px}.table-search{margin-bottom:12px}.table-scroll{overflow:auto}.admin-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}.admin-table th{background:#123b5d;color:#fff;padding:10px 9px;text-align:left;white-space:nowrap}.admin-table td{padding:9px;border-bottom:1px solid #e8edf3;vertical-align:middle}.admin-table tr:nth-child(even) td{background:#fbfcfe}.thumb{width:64px;height:42px;object-fit:cover;border-radius:5px}.avatar-thumb{width:42px;height:42px;object-fit:cover;border-radius:50%}.modal-backdrop{position:fixed;inset:0;background:rgba(9,24,40,.55);display:grid;place-items:center;padding:20px;z-index:1000}.edit-modal{width:min(520px,100%);background:#fff;border-radius:14px;padding:20px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.25)}.edit-modal h3{margin:0 0 16px;color:#123b5d}.modal-close{position:absolute;right:15px;top:8px;font-size:28px;text-decoration:none;color:#8090a4}.school-form-grid .form-card{min-height:100%}
@media(max-width:950px){.school-form-grid,.two-card-grid{grid-template-columns:1fr}.form-actions{align-items:flex-start;gap:12px;flex-direction:column}}
@media(max-width:600px){.admin main{padding:16px}.form-grid{grid-template-columns:1fr}.form-actions{grid-column:1}.page-banner{display:block}.page-banner>b{display:inline-block;margin-top:10px}}

/* Permanent top header - shared by Dashboard and every Management page */
.admin-header{position:sticky;top:0;z-index:1200;height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:7px 14px;background:#eef3f7;border-bottom:1px solid #cfd8e2;box-shadow:0 2px 7px rgba(20,45,70,.12)}
.header-brand{height:64px;flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:6px 12px;border-radius:12px;background:linear-gradient(180deg,#173e5e,#0f2f49);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.header-brand-icon{width:38px;height:38px;flex:0 0 38px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);font-size:17px}
.header-brand-text{min-width:0;line-height:1.12}
.header-title{font-family:Arial,Helvetica,sans-serif;font-size:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-school{margin-top:3px;font-family:Kalpurush,"Times New Roman",sans-serif;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-school-en{margin-top:1px;font-family:Arial,Helvetica,sans-serif;font-size:9px;font-weight:400;opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-user-wrap{position:relative;flex:0 0 auto}
.header-user{border:0;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:48px;padding:5px 9px 5px 6px;border-radius:25px;background:#173e5e;color:#fff;font-family:Kalpurush,"Times New Roman",sans-serif}
.header-user:hover{background:#214d70}
.header-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f2a62b;color:#fff;border:2px solid rgba(255,255,255,.65);font-size:13px}
.header-user-name{font-size:13px;font-weight:500;white-space:nowrap}
.header-user-arrow{font-size:10px;opacity:.85;margin-left:2px;transition:transform .15s}
.header-user[aria-expanded="true"] .header-user-arrow{transform:rotate(180deg)}
.header-user-menu{display:none;position:absolute;right:0;top:calc(100% + 7px);width:155px;padding:6px;border-radius:10px;background:#fff;border:1px solid #dce4ec;box-shadow:0 10px 28px rgba(15,45,70,.18)}
.header-user-menu.show{display:block}
.header-user-menu a{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:7px;text-decoration:none;color:#21384d;font-family:Arial,Helvetica,sans-serif;font-size:13px}
.header-user-menu a:hover{background:#edf4fb;color:#1266cf}
.admin{min-height:100vh}
/* Desktop: the header occupies only the open content area on the right; it never covers the sidebar. */
@media(min-width:801px){
  .admin-header{margin-left:240px;width:calc(100% - 240px);}
  .admin-sidebar{position:sticky;top:0;height:100vh;}
  .admin main{min-height:100vh;padding:102px 28px 28px;}
}
@media(max-width:700px){.admin-header{height:auto;min-height:72px;padding:6px 8px;margin-left:0;width:100%}.header-title{font-size:14px}.header-school{font-size:12px}.header-school-en{display:none}.header-user-name{display:none}.admin{min-height:calc(100vh - 72px)}.admin-sidebar{top:0;height:auto}}


/* Dashboard presentation — screenshot-matched desktop layout */
@media (min-width:801px){
  .admin-sidebar{
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:205px;
    flex:0 0 205px;
    height:100vh;
    overflow-y:auto;
    background:#12384f;
    padding:14px 8px 18px;
    z-index:1300;
  }
  .admin-header{
    margin-left:205px;
    width:calc(100% - 205px);
    height:68px;
    min-height:68px;
    padding:7px 8px 7px 10px;
    background:#eef3f7;
  }
  .header-brand{height:54px;border-radius:11px;padding:5px 10px;gap:10px}
  .header-brand-icon{width:34px;height:34px;flex-basis:34px;font-size:14px}
  .header-title{font-size:15px}
  .header-school{font-size:12px;margin-top:2px}
  .header-school-en{font-size:8px}
  .header-user{min-height:42px;padding:4px 8px 4px 5px}
  .header-avatar{width:31px;height:31px}
  .header-user-name{font-size:12px}
  .admin{display:block;min-height:calc(100vh - 68px)}
  .admin main{
    margin-left:205px;
    min-height:calc(100vh - 68px);
    padding:18px 12px 30px;
    background:#f3f7fb;
  }
}
.admin-sidebar .brand-title{
  margin:2px 7px 18px;
  color:#fff;
  font-family:Kalpurush,"Times New Roman",sans-serif;
  font-size:18px;
  font-weight:700;
  line-height:1.15;
}
.admin-sidebar .brand-title small{font-size:10px;color:#d8e6ef;margin-top:3px;font-weight:400}
.admin-sidebar .standalone-menu,
.admin-sidebar .menu-group summary{
  padding:9px 10px;
  margin:2px 0;
  border-radius:8px;
  font-size:13px;
}
.admin-sidebar .menu-group summary{font-weight:600}
.admin-sidebar .dashboard-link.active,
.admin-sidebar .dashboard-link:hover{
  background:#0d8df2;
  color:#fff;
}
.admin-sidebar .standalone-menu:hover,
.admin-sidebar .standalone-menu.active{background:rgba(13,141,242,.16)}
.admin-sidebar .menu-group summary:hover,
.admin-sidebar .menu-group[open] summary{background:rgba(13,141,242,.16)}
.admin-sidebar .submenu{margin-left:5px;padding-left:8px;border-left:1px solid rgba(255,255,255,.14)}
.admin-sidebar .submenu a{font-size:12px;padding:7px 8px}
.dashboard-heading{
  background:#fff;
  border:1px solid #e5e9ee;
  border-radius:14px;
  padding:18px 20px;
  margin:0;
  min-height:88px;
  box-shadow:0 4px 16px rgba(25,55,90,.06);
}
.dashboard-heading h1{font-size:24px;font-weight:500;margin:0 0 4px;color:#172b3d}
.dashboard-heading p{margin:0;font-size:12px;color:#7f8c98}
.dashboard-heading:after{
  content:'';
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  display:grid;
  place-items:center;
  width:45px;height:45px;
  border-radius:11px;
  background:#168cf0;
  color:#fff;
  font-size:18px;
  box-shadow:0 5px 14px rgba(22,140,240,.22);
}
@media(max-width:800px){
  .dashboard-heading{min-height:auto;padding:16px}
  .dashboard-heading h1{font-size:21px}
}

/* Compact edit modal for slider image updates */
.slider-edit-modal{width:min(380px,calc(100vw - 28px));padding:12px 14px 14px;border-radius:12px}
.slider-edit-modal .modal-close{right:8px;top:4px;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-size:22px;line-height:1;color:#6d7d8e}
.slider-edit-modal .modal-close:hover{background:#eef3f7;color:#173e5e}
.compact-form{gap:7px;padding-top:2px}
.compact-form label{gap:3px;font-size:11px}
.compact-form input,.compact-form textarea{padding:6px 8px;font-size:12px;border-radius:6px}
.compact-form textarea{resize:vertical;min-height:48px}
.modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;padding-top:2px}.slider-form-card,.slider-table-card{padding-top:14px}
.btn.secondary{background:#eef1f5;color:#405268;border:1px solid #d7dee7}
.btn.secondary:hover{background:#e3e8ee}
/* Management page banner: the blue section is the page header; no separate title is shown above it. */
.management-page-banner{margin-top:0;margin-bottom:18px;min-height:118px}
.admin main>.top:not(.dashboard-heading){display:none}
@media(min-width:1200px){.admin main{padding-left:22px;padding-right:22px}}
.page-count-badge{display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap;font-family:Kalpurush,"Times New Roman",sans-serif;font-weight:600}.page-count-badge strong{font-size:18px;line-height:1}
.wide-card{max-width:1100px;margin:0 auto}.secondary{background:#eef2f6;color:#3b4c60}.modal-subtitle{margin:-8px 0 12px;color:#7d8b9b;font-size:12px}.edit-modal.compact{width:min(460px,94vw);padding:18px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:6px}.admin-sidebar .standalone-menu.active{background:#0d8df2;color:#fff}

.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}.stat-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e5eaf0;border-radius:12px;padding:14px;text-decoration:none;color:#1b3045;box-shadow:0 4px 15px rgba(25,55,90,.05)}.stat-card>span{width:40px;height:40px;border-radius:10px;background:#eaf3ff;color:#1475df;display:grid;place-items:center}.stat-card b{display:block;font-size:20px}.stat-card small{display:block;color:#7d8a98;font-size:11px}.dashboard-banner{min-height:118px}.dashboard-banner>b{width:52px;height:52px;display:grid;place-items:center;font-size:20px}.dashboard-page{max-width:none}@media(max-width:1050px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.dashboard-stats{grid-template-columns:1fr}}

/* School/board logo upload preview */
.upload-preview{margin-top:10px;display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #dce5eb;border-radius:10px;background:#f8fbfd}.upload-preview img{width:64px;height:64px;object-fit:contain;background:#fff;border:1px solid #e2e8ec;border-radius:8px;padding:4px}.upload-preview span{font-size:12px;color:#65737e}

/* Branch manager — screenshot-matched select form */
.branch-manager-grid{align-items:start;grid-template-columns:minmax(300px,.72fr) minmax(560px,1.55fr);gap:16px}
.branch-form-card,.branch-table-card{padding:0;overflow:hidden;border-radius:13px}
.branch-card-title{margin:0;padding:14px 15px;border-bottom:1px solid #e8edf3}
.branch-card-title>i{width:36px;height:36px;border-radius:9px;background:#0d8df2;color:#fff;box-shadow:0 5px 12px rgba(13,141,242,.22)}
.branch-card-title b{font-size:15px}
.branch-card-title small{margin-top:2px;font-size:11px}
.branch-select-form{padding:16px;gap:12px}
.branch-select-form label{gap:7px}
.branch-select-form select{height:43px;border-radius:9px;background-color:#fff}
.branch-save-btn{width:100%;min-height:40px;border-radius:8px;box-shadow:0 4px 10px rgba(19,117,235,.18)}
.branch-table-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:64px;
  gap:24px;
  padding:14px 22px;
  box-sizing:border-box;
  background:#fff;
  color:#718095;
  font-size:12px;
}
.branch-table-toolbar>span{
  flex:0 0 auto;
  white-space:nowrap;
}
.branch-search-wrap{
  position:relative;
  width:300px;
  max-width:42%;
  margin-left:auto;
  flex:0 1 300px;
}
.branch-search-wrap>i{
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  font-size:12px;
  color:#8b98a8;
  pointer-events:none;
}
.branch-search-wrap .table-search{
  width:100%;
  height:38px;
  margin:0;
  padding:0 13px 0 36px;
  box-sizing:border-box;
  border-radius:8px;
}
.branch-table{border:1px solid #e5ebf2;border-radius:10px;overflow:hidden}
.branch-table th{background:#eef4f8;color:#536579;font-weight:700;border-bottom:1px solid #dce5ed}
.branch-table td{height:47px;background:#fff!important}
.branch-table th:last-child,.branch-table td:last-child{text-align:right}
.serial-chip{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:7px;background:#edf5fb;color:#48728f;font-size:11px}
.branch-table-card .table-scroll{padding:0 15px 16px}
@media(max-width:950px){.branch-manager-grid{grid-template-columns:1fr}.branch-search-wrap{width:300px;max-width:48%;flex-basis:300px}}
@media(max-width:560px){.branch-table-toolbar{align-items:stretch;flex-direction:column;gap:10px;padding:14px 15px}.branch-search-wrap{width:100%;max-width:100%;flex-basis:auto}}

/* SUBJECT_MANAGER_SCREENSHOT_LAYOUT */
.subject-page-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 18px}.subject-page-head h1{font-size:27px;line-height:1.1;margin:0 0 5px;color:#17314f;font-weight:500}.subject-page-head p{margin:0;color:#78879a;font-size:12px}.subject-head-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#087fa0,#008d83);color:#fff;font-size:19px;box-shadow:0 8px 18px rgba(0,120,145,.16)}
.subject-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.subject-stat{background:#fff;border:1px solid #e5eaf0;border-radius:13px;min-height:76px;padding:14px 18px;box-shadow:0 4px 15px rgba(25,55,90,.045);position:relative;overflow:hidden}.subject-stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px}.subject-stat.total:before{background:#1684ff}.subject-stat.active:before{background:#15995c}.subject-stat.inactive:before{background:#ff4e58}.subject-stat small{display:block;color:#738297;font-size:12px}.subject-stat b{display:block;margin-top:4px;font-size:20px;color:#20334b;font-weight:500}
.subject-manager-grid{display:grid;grid-template-columns:minmax(320px,.72fr) minmax(650px,1.5fr);gap:16px;align-items:start}.subject-form-card,.subject-table-card{padding:0;overflow:hidden}.subject-card-title{padding:14px 16px 12px;margin:0;border-bottom:1px solid #e8edf3}.subject-card-title>i{background:transparent;width:auto;height:auto;color:#173f59;font-size:16px}.subject-card-title b{font-size:16px;font-weight:500}.subject-card-title small{margin-top:2px}.subject-stack-form{padding:15px 17px 18px;display:grid;gap:12px}.subject-stack-form label{display:grid;gap:6px;color:#30425a;font-size:12px;font-weight:600}.subject-stack-form select,.subject-stack-form input{width:100%;height:38px;border:1px solid #d7dfe9;border-radius:8px;background:#fff;padding:0 11px;font-family:inherit;font-size:13px;color:#293c55;outline:none}.subject-stack-form select:focus,.subject-stack-form input:focus{border-color:#1884f3;box-shadow:0 0 0 3px rgba(24,132,243,.08)}.subject-stack-form input[readonly]{background:#f7f9fc;color:#607084}.subject-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.subject-help{font-size:10px;color:#8b97a5;font-weight:400;line-height:1.4}.subject-active-row{display:flex!important;align-items:center;gap:8px!important}.subject-active-row input{width:16px!important;height:16px!important}.subject-save{width:100%;min-height:38px}.subject-cancel{text-align:center;color:#738297;font-size:11px;text-decoration:none}.subject-list-head{display:flex}.subject-total-pill{margin-left:auto;border:1px solid #dfe5ec;border-radius:7px;padding:4px 8px;color:#344a63;font-size:11px}.subject-table-toolbar{display:flex;justify-content:space-between;align-items:center;padding:13px 17px 10px;color:#44556b;font-size:12px}.subject-table-toolbar label{display:flex;align-items:center;gap:7px}.subject-table-toolbar select{height:34px;border:1px solid #dbe2ea;border-radius:7px;padding:0 28px 0 9px;background:#fff}.subject-search-label{margin-left:auto}.subject-search-wrap{display:inline-flex;position:relative;width:180px}.subject-search-wrap i{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#8a98a8;font-size:11px}.subject-search-wrap input{width:100%;height:34px;border:1px solid #dbe2ea;border-radius:7px;padding:0 9px 0 29px;font-family:inherit;outline:none}.subject-table{font-size:11px}.subject-table th{background:#084e66;padding:10px 8px}.subject-table td{padding:9px 8px}.subject-code-chip{display:inline-flex;min-width:40px;justify-content:center;background:#f1f5f8;border-radius:6px;padding:5px 7px;color:#607386}.subject-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;font-size:10px}.subject-status i{width:6px;height:6px;border-radius:50%;background:currentColor}.subject-status.on{background:#eaf8f0;color:#138c53}.subject-status.off{background:#fff0f1;color:#d74d58}.subject-actions{white-space:nowrap}.subject-action{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:7px;text-decoration:none;margin-right:3px;background:#fff;border:1px solid currentColor;font-size:11px}.subject-action.edit{color:#1677e8}.subject-action.toggle{color:#e4aa19}.subject-action.delete{color:#df4051}.subject-empty{text-align:center;padding:18px;color:#8090a2;font-size:12px}
@media(max-width:1100px){.subject-manager-grid{grid-template-columns:1fr}.subject-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.subject-stats{grid-template-columns:1fr}.subject-mini-grid{grid-template-columns:1fr}.subject-table-toolbar{align-items:stretch;flex-direction:column;gap:10px}.subject-search-label{margin-left:0;justify-content:space-between}.subject-search-wrap{width:min(240px,65%)}}

/* SUBJECT_MANAGER_EXACT_SCREENSHOT_V2 */
.admin main{background:#f3f8fb!important;padding:20px 18px 28px!important}
.subject-page-head{height:55px;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;margin:0 0 16px!important;padding:0!important}
.subject-page-head h1{margin:0 0 4px!important;font-size:25px!important;line-height:1.05!important;font-weight:500!important;color:#18324a!important;letter-spacing:-.2px}
.subject-page-head p{margin:0!important;font-size:11px!important;line-height:1.4!important;color:#7e8d9b!important}
.subject-head-icon{width:47px!important;height:47px!important;border-radius:12px!important;margin-top:2px!important;background:linear-gradient(135deg,#087f95,#008f86)!important;color:#fff!important;font-size:18px!important;box-shadow:0 8px 18px rgba(0,126,145,.14)!important}
.subject-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:13px!important;margin:0 0 17px!important}
.subject-stat{height:74px!important;min-height:74px!important;padding:14px 16px!important;border:1px solid #e4e9ef!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 13px rgba(36,60,86,.035)!important}
.subject-stat:before{width:3px!important}
.subject-stat small{font-size:11px!important;line-height:1.1!important;color:#778593!important}
.subject-stat b{font-size:20px!important;line-height:1!important;margin-top:8px!important;font-weight:500!important;color:#21364c!important}
.subject-manager-grid{display:grid!important;grid-template-columns:minmax(330px,32.6%) minmax(0,67.4%)!important;gap:15px!important;align-items:start!important}
.subject-form-card,.subject-table-card{padding:0!important;border:1px solid #e4e9ef!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 13px rgba(35,59,85,.035)!important;overflow:hidden!important}
.subject-card-title{height:64px!important;box-sizing:border-box!important;margin:0!important;padding:11px 15px!important;border-bottom:1px solid #e7ecf1!important;display:flex!important;align-items:center!important;gap:10px!important;color:#18384e!important}
.subject-card-title>i{width:18px!important;height:18px!important;display:grid!important;place-items:center!important;background:transparent!important;color:#163e55!important;font-size:16px!important}
.subject-card-title b{display:block!important;font-size:15px!important;line-height:1.2!important;font-weight:500!important;color:#263d51!important}
.subject-card-title small{display:block!important;margin-top:4px!important;font-size:10px!important;line-height:1.2!important;color:#8995a1!important;font-weight:400!important}
.subject-stack-form{display:grid!important;gap:13px!important;padding:15px 16px 18px!important}
.subject-stack-form label{display:grid!important;gap:6px!important;margin:0!important;font-size:12px!important;line-height:1.25!important;font-weight:500!important;color:#3b4c5e!important}
.subject-stack-form .label-title{display:inline-flex!important;align-items:baseline!important;gap:2px!important;width:max-content!important;white-space:nowrap!important}
.subject-stack-form .label-title em{margin-left:1px!important}
.subject-stack-form select,.subject-stack-form input{height:38px!important;box-sizing:border-box!important;border:1px solid #d5dce4!important;border-radius:8px!important;background:#fff!important;padding:0 11px!important;font-size:12px!important;color:#35485b!important;box-shadow:none!important}
.subject-stack-form select{padding-right:34px!important}
.subject-stack-form input[readonly]{background:#f7f9fb!important;color:#556779!important}
.subject-stack-form select:focus,.subject-stack-form input:focus{border-color:#1487f5!important;box-shadow:0 0 0 2px rgba(20,135,245,.10)!important}
.subject-help{margin-top:-1px!important;font-size:9.5px!important;line-height:1.35!important;color:#8e99a4!important;font-weight:400!important}
.subject-mini-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
.subject-active-row{display:flex!important;align-items:center!important;gap:7px!important;font-size:11px!important}
.subject-active-row input{width:15px!important;height:15px!important;margin:0!important}
.subject-save{height:39px!important;min-height:39px!important;padding:0 14px!important;border-radius:8px!important;font-size:12px!important;box-shadow:0 5px 12px rgba(19,117,235,.14)!important}
.subject-list-head{position:relative!important}
.subject-total-pill{position:absolute!important;right:14px!important;top:18px!important;margin:0!important;padding:2px 7px!important;height:20px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;border:1px solid #dce2e8!important;border-radius:5px!important;background:#fff!important;color:#526170!important;font-size:9.5px!important;font-weight:500!important}
.subject-table-toolbar{height:62px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:12px 16px!important;border-bottom:0!important;color:#45586a!important;font-size:11px!important}
.subject-table-toolbar>label:first-child{display:flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important}
.subject-table-toolbar select{height:34px!important;min-width:56px!important;padding:0 25px 0 9px!important;border:1px solid #d8dfe6!important;border-radius:7px!important;background:#fff!important;font-size:11px!important;color:#35485a!important}
.subject-search-label{display:flex!important;align-items:center!important;gap:6px!important;margin-left:auto!important;white-space:nowrap!important}
.subject-search-wrap{position:relative!important;display:inline-flex!important;width:160px!important}
.subject-search-wrap i{position:absolute!important;left:10px!important;top:50%!important;transform:translateY(-50%)!important;color:#8090a0!important;font-size:10px!important;z-index:2!important}
.subject-search-wrap input{width:100%!important;height:35px!important;box-sizing:border-box!important;margin:0!important;padding:0 10px 0 28px!important;border:1px solid #d8dfe6!important;border-radius:7px!important;background:#fff!important;font-size:11px!important;color:#35485a!important;outline:none!important}
.subject-table-card .table-scroll{overflow:auto!important;padding:0 14px 14px!important}
.subject-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid #e0e5ea!important;border-radius:8px!important;overflow:hidden!important;font-size:10.5px!important;color:#33475a!important;background:#fff!important}
.subject-table th{height:38px!important;box-sizing:border-box!important;padding:0 8px!important;background:#07536b!important;color:#fff!important;border-right:1px solid rgba(255,255,255,.18)!important;border-bottom:0!important;font-size:10.5px!important;line-height:38px!important;font-weight:500!important;text-align:left!important;white-space:nowrap!important}
.subject-table th:last-child{border-right:0!important}
.subject-table td{height:43px!important;box-sizing:border-box!important;padding:6px 8px!important;border-bottom:1px solid #e7ebef!important;background:#fff!important;vertical-align:middle!important;white-space:nowrap!important}
.subject-table tr:nth-child(even) td{background:#fff!important}
.subject-table tbody tr:last-child td{border-bottom:0!important}
.subject-table td:first-child{width:38px!important;text-align:center!important;color:#40556a!important}
.subject-table th:first-child{text-align:center!important}
.subject-code-chip{min-width:39px!important;height:23px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 7px!important;border-radius:6px!important;background:#f1f4f6!important;color:#5f7181!important;font-size:9.5px!important}
.subject-status{height:23px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;gap:5px!important;padding:0 8px!important;border-radius:999px!important;font-size:9.5px!important;font-weight:500!important}
.subject-status i{width:6px!important;height:6px!important}
.subject-status.on{background:#eef9f2!important;color:#27935e!important}
.subject-status.off{background:#fff1f2!important;color:#d95c63!important}
.subject-actions{min-width:108px!important;white-space:nowrap!important;text-align:left!important}
.subject-action{width:29px!important;height:29px!important;box-sizing:border-box!important;display:inline-grid!important;place-items:center!important;margin:0 3px 0 0!important;border-radius:7px!important;background:#fff!important;font-size:11px!important}
.subject-action.edit{color:#1482f0!important;border:1px solid #1482f0!important}
.subject-action.toggle{color:#e5b522!important;border:1px solid #e5b522!important}
.subject-action.delete{color:#e24d58!important;border:1px solid #e24d58!important}
.subject-empty{padding:14px!important;font-size:11px!important;color:#8290a0!important;text-align:center!important}
@media(max-width:1100px){.subject-manager-grid{grid-template-columns:1fr!important}.subject-stats{grid-template-columns:repeat(3,1fr)!important}}
@media(max-width:650px){.admin main{padding:14px 10px 24px!important}.subject-page-head h1{font-size:22px!important}.subject-stats{grid-template-columns:1fr!important}.subject-mini-grid{grid-template-columns:1fr!important}.subject-table-toolbar{height:auto!important;align-items:stretch!important;flex-direction:column!important;gap:10px!important}.subject-search-label{margin-left:0!important;justify-content:space-between!important}.subject-search-wrap{width:min(220px,65%)!important}}


/* SUBJECT_SCREENSHOT_43_FINAL */
.subject-page-head{height:72px!important;margin:0!important;padding:0 0 10px!important}
.subject-page-head h1{font-size:29px!important;line-height:1.12!important}
.subject-page-head p{font-size:12px!important;margin-top:5px!important}
.subject-head-icon{width:48px!important;height:48px!important;border-radius:13px!important}
.subject-stats{gap:13px!important;margin:0 0 19px!important}
.subject-stat{height:76px!important;padding:15px 17px!important;border-radius:12px!important}
.subject-stat small{font-size:12px!important}
.subject-stat b{font-size:22px!important;margin-top:7px!important}
.subject-manager-grid{grid-template-columns:32.8% 67.2%!important;gap:15px!important}
.subject-card-title{height:65px!important;padding:12px 16px!important}
.subject-card-title b{font-size:16px!important}
.subject-card-title small{font-size:10.5px!important}
.subject-stack-form{gap:14px!important;padding:17px 17px 20px!important}
.subject-stack-form label{font-size:12.5px!important;gap:7px!important}
.subject-stack-form select,.subject-stack-form input{height:39px!important;font-size:12px!important;border-radius:8px!important}
.subject-help{font-size:10px!important}
.subject-mini-grid{gap:13px!important}
.subject-list-head{height:65px!important}
.subject-table-toolbar{height:62px!important;padding:12px 16px!important;font-size:11.5px!important}
.subject-table-toolbar select{height:36px!important;min-width:58px!important}
.subject-search-wrap{width:158px!important}
.subject-search-wrap input{height:36px!important}
.subject-table-card .table-scroll{padding:0 14px 14px!important}
.subject-table{font-size:11px!important}
.subject-table th{height:40px!important;line-height:40px!important;font-size:11px!important;padding:0 9px!important}
.subject-table td{height:47px!important;padding:7px 9px!important}
.subject-table th:nth-child(1){width:48px!important}
.subject-table th:nth-child(2){width:54px!important}
.subject-table th:nth-child(3){width:70px!important}
.subject-table th:nth-child(4){width:72px!important}
.subject-table th:nth-child(6){width:112px!important}
.subject-table th:nth-child(7){width:95px!important}
.subject-table th:nth-child(8){width:120px!important}
.subject-code-chip{height:24px!important;min-width:42px!important}
.subject-status{height:24px!important}
.subject-action{width:30px!important;height:30px!important}
@media(min-width:1200px){
  .subject-page-head,.subject-stats,.subject-manager-grid{max-width:none!important;width:100%!important}
}


/* ===== Netlify SPA compatibility + reference fidelity ===== */
*{box-sizing:border-box}body{margin:0;font-family:Kalpurush,"Times New Roman",sans-serif;background:#f4f7fb;color:#172033}.admin{min-height:100vh;display:flex}aside{width:240px;background:#123b2a;color:#fff;padding:24px 14px}aside h2{margin:0 10px 24px;font-size:22px}aside a{display:block;color:#fff;text-decoration:none;padding:12px 14px;border-radius:8px;margin:4px 0}aside a:hover,aside a.active{background:#e98b2a}main{flex:1;padding:28px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.cards>div,.panel,.auth-card{background:#fff;border-radius:14px;padding:24px;box-shadow:0 5px 20px rgba(0,0,0,.07)}.cards b{display:block;font-size:34px}.cards span{color:#657080}.auth-card{width:min(440px,calc(100% - 30px));margin:8vh auto}.auth-card h1{margin-top:0}.auth-card form{display:grid;gap:14px;margin:20px 0}.auth-card label{display:grid;gap:6px;font-weight:600}.auth-card input{padding:12px;border:1px solid #ccd5df;border-radius:8px;font-size:16px}.auth-card button{padding:12px;border:0;border-radius:8px;background:#123b2a;color:#fff;font-size:16px;cursor:pointer}.ok{background:#e4f7ea;padding:10px;border-radius:8px}.err{background:#fde7e7;padding:10px;border-radius:8px}@media(max-width:800px){.admin{display:block}aside{width:auto}.cards{grid-template-columns:repeat(2,1fr)}.top{display:block}}@media(max-width:480px){.cards{grid-template-columns:1fr}}
.menu-group{margin:4px 0}.menu-group summary{list-style:none;cursor:pointer;color:#fff;padding:12px 14px;border-radius:8px;position:relative}.menu-group summary::-webkit-details-marker{display:none}.menu-group summary:after{content:'▾';position:absolute;right:14px;transition:transform .2s}.menu-group:not([open]) summary:after{transform:rotate(-90deg)}.menu-group summary:hover,.menu-group[open] summary{background:rgba(233,139,42,.22)}.submenu{margin:2px 0 6px 8px;padding-left:8px;border-left:2px solid rgba(255,255,255,.18)}.submenu a{font-size:15px;padding:10px 10px;margin:2px 0}.submenu a:hover,.submenu a.active{background:#e98b2a}.step-note{margin-top:18px;padding:12px 14px;background:#eef7f2;border-left:4px solid #123b2a;border-radius:8px}

/* Main Menu always stays visible; clicking a Main Menu only opens/closes its own Submenu. */
.admin-sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;flex:0 0 240px;width:240px}
.admin-sidebar .menu-group{display:block}
.admin-sidebar .menu-group summary{font-weight:700}
.admin-sidebar .submenu{display:block}
@media(max-width:800px){.admin-sidebar{position:relative;height:auto;width:auto;max-height:none}}

/* Standalone Main Menus stay visible beside the expandable Main Menu groups. */
.admin-sidebar .standalone-menu{font-weight:700;margin:4px 0;padding:12px 14px}
.admin-sidebar .standalone-menu:hover,.admin-sidebar .standalone-menu.active{background:rgba(233,139,42,.22)}

/* Sidebar menu and submenu icons */
.admin-sidebar a, .admin-sidebar summary{display:flex;align-items:center;gap:12px}
/* Main Menu icons: clear separation from the menu text */
.admin-sidebar > a i, .admin-sidebar > .menu-group > summary i{width:22px;min-width:22px;text-align:center;font-size:16px}
.admin-sidebar summary span, .admin-sidebar a span{flex:1}
/* Submenu: use a small filled circle with comfortable spacing */
.admin-sidebar .submenu a{gap:11px;padding-left:12px}
.admin-sidebar .submenu a i{width:9px;min-width:9px;font-size:7px;line-height:1;opacity:.9}
.admin-sidebar .menu-group summary:after{margin-left:auto}

/* Final menu icon styling: icons only on Main Menus, filled circles on Submenus */
.admin-sidebar a,
.admin-sidebar summary{display:flex;align-items:center;gap:0}
.admin-sidebar > .standalone-menu > i,
.admin-sidebar > .menu-group > summary > i{
  width:22px;
  min-width:22px;
  margin-right:12px;
  text-align:center;
  font-size:16px;
}
.admin-sidebar > .menu-group > summary > span,
.admin-sidebar > .standalone-menu > span{flex:1}
.admin-sidebar .submenu{
  margin:2px 0 7px 8px;
  padding-left:9px;
  border-left:1px solid rgba(255,255,255,.16);
}
.admin-sidebar .submenu a{
  display:flex;
  align-items:center;
  gap:0;
  padding:9px 10px 9px 9px;
  margin:2px 0;
  font-size:15px;
}
.admin-sidebar .submenu-dot{
  display:block;
  width:6px;
  height:6px;
  min-width:6px;
  border-radius:50%;
  background:currentColor;
  margin-right:11px;
  opacity:.95;
}
.admin-sidebar .submenu a span{flex:1}

/* Arju School branding */
.admin-sidebar .brand-title{margin:0 10px 24px;line-height:1.2;font-size:22px;font-weight:700}.admin-sidebar .brand-title small{display:block;margin-top:5px;font-size:13px;font-weight:400;line-height:1.2}
/* Video-matched management forms */
.admin main{background:#f5f8fc;min-height:100vh;padding:24px 28px}.top h1{font-size:24px;margin:0}.flash{padding:12px 16px;border-radius:10px;margin:0 0 16px;font-weight:600}.flash.ok{background:#e7f8ef;color:#146c43}.flash.err{background:#fdebec;color:#a51d2d}.page-banner{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-radius:14px;color:#fff;margin-bottom:18px;box-shadow:0 8px 25px rgba(15,70,150,.12)}.page-banner.blue{background:linear-gradient(135deg,#0e70df,#1468c7)}.page-banner h2{margin:3px 0;font-size:23px}.page-banner p,.page-banner small{margin:0;opacity:.88}.page-banner>b{background:rgba(255,255,255,.16);padding:12px 16px;border-radius:12px}.school-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-card,.table-card{background:#fff;border:1px solid #e6ebf2;border-radius:14px;padding:18px;box-shadow:0 4px 18px rgba(25,55,90,.05)}.card-title{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf1f5;padding-bottom:13px;margin-bottom:16px;color:#1266cf}.card-title>i{width:34px;height:34px;border-radius:9px;background:#eaf3ff;display:grid;place-items:center}.card-title b{display:block;font-size:17px;color:#17314f}.card-title small{display:block;color:#8a96a6;font-size:12px;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}.form-grid label,.stack-form label{display:grid;gap:6px;color:#435268;font-weight:600;font-size:13px}.form-grid label.full,.stack-form label.full{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea,.stack-form input,.stack-form select,.stack-form textarea,.table-search{width:100%;padding:11px 12px;border:1px solid #d7dfe9;border-radius:8px;background:#fff;color:#23344d;font-family:inherit;font-size:14px;outline:none}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.stack-form input:focus,.stack-form select:focus,.stack-form textarea:focus,.table-search:focus{border-color:#1976e8;box-shadow:0 0 0 3px rgba(25,118,232,.09)}em{color:#e23b4b;font-style:normal}.help{font-size:11px;color:#8a96a6;font-weight:400}.form-actions{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding-top:8px;color:#8a96a6;font-size:12px}.full-width{grid-column:1/-1}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:8px;padding:10px 16px;text-decoration:none;cursor:pointer;font-family:inherit;font-weight:700}.btn.primary{background:#1375eb;color:#fff}.btn.primary:hover{background:#0865d2}.btn.tiny{padding:6px 9px;font-size:11px}.btn.edit{background:#fff4dd;color:#b76d00}.btn.danger{background:#fff0f2;color:#c51e38}.two-card-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(500px,1.5fr);gap:16px}.stack-form{display:grid;gap:13px}.table-search{margin-bottom:12px}.table-scroll{overflow:auto}.admin-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}.admin-table th{background:#123b5d;color:#fff;padding:10px 9px;text-align:left;white-space:nowrap}.admin-table td{padding:9px;border-bottom:1px solid #e8edf3;vertical-align:middle}.admin-table tr:nth-child(even) td{background:#fbfcfe}.thumb{width:64px;height:42px;object-fit:cover;border-radius:5px}.avatar-thumb{width:42px;height:42px;object-fit:cover;border-radius:50%}.modal-backdrop{position:fixed;inset:0;background:rgba(9,24,40,.55);display:grid;place-items:center;padding:20px;z-index:1000}.edit-modal{width:min(520px,100%);background:#fff;border-radius:14px;padding:20px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.25)}.edit-modal h3{margin:0 0 16px;color:#123b5d}.modal-close{position:absolute;right:15px;top:8px;font-size:28px;text-decoration:none;color:#8090a4}.school-form-grid .form-card{min-height:100%}
@media(max-width:950px){.school-form-grid,.two-card-grid{grid-template-columns:1fr}.form-actions{align-items:flex-start;gap:12px;flex-direction:column}}
@media(max-width:600px){.admin main{padding:16px}.form-grid{grid-template-columns:1fr}.form-actions{grid-column:1}.page-banner{display:block}.page-banner>b{display:inline-block;margin-top:10px}}

/* Permanent top header - shared by Dashboard and every Management page */
.admin-header{position:sticky;top:0;z-index:1200;height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:7px 14px;background:#eef3f7;border-bottom:1px solid #cfd8e2;box-shadow:0 2px 7px rgba(20,45,70,.12)}
.header-brand{height:64px;flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:6px 12px;border-radius:12px;background:linear-gradient(180deg,#173e5e,#0f2f49);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.header-brand-icon{width:38px;height:38px;flex:0 0 38px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);font-size:17px}
.header-brand-text{min-width:0;line-height:1.12}
.header-title{font-family:Arial,Helvetica,sans-serif;font-size:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-school{margin-top:3px;font-family:Kalpurush,"Times New Roman",sans-serif;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-school-en{margin-top:1px;font-family:Arial,Helvetica,sans-serif;font-size:9px;font-weight:400;opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-user-wrap{position:relative;flex:0 0 auto}
.header-user{border:0;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:48px;padding:5px 9px 5px 6px;border-radius:25px;background:#173e5e;color:#fff;font-family:Kalpurush,"Times New Roman",sans-serif}
.header-user:hover{background:#214d70}
.header-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f2a62b;color:#fff;border:2px solid rgba(255,255,255,.65);font-size:13px}
.header-user-name{font-size:13px;font-weight:500;white-space:nowrap}
.header-user-arrow{font-size:10px;opacity:.85;margin-left:2px;transition:transform .15s}
.header-user[aria-expanded="true"] .header-user-arrow{transform:rotate(180deg)}
.header-user-menu{display:none;position:absolute;right:0;top:calc(100% + 7px);width:155px;padding:6px;border-radius:10px;background:#fff;border:1px solid #dce4ec;box-shadow:0 10px 28px rgba(15,45,70,.18)}
.header-user-menu.show{display:block}
.header-user-menu a{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:7px;text-decoration:none;color:#21384d;font-family:Arial,Helvetica,sans-serif;font-size:13px}
.header-user-menu a:hover{background:#edf4fb;color:#1266cf}
.admin{min-height:100vh}
/* Desktop: the header occupies only the open content area on the right; it never covers the sidebar. */
@media(min-width:801px){
  .admin-header{margin-left:240px;width:calc(100% - 240px);}
  .admin-sidebar{position:sticky;top:0;height:100vh;}
  .admin main{min-height:100vh;padding:102px 28px 28px;}
}
@media(max-width:700px){.admin-header{height:auto;min-height:72px;padding:6px 8px;margin-left:0;width:100%}.header-title{font-size:14px}.header-school{font-size:12px}.header-school-en{display:none}.header-user-name{display:none}.admin{min-height:calc(100vh - 72px)}.admin-sidebar{top:0;height:auto}}


/* Dashboard presentation — screenshot-matched desktop layout */
@media (min-width:801px){
  .admin-sidebar{
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:205px;
    flex:0 0 205px;
    height:100vh;
    overflow-y:auto;
    background:#12384f;
    padding:14px 8px 18px;
    z-index:1300;
  }
  .admin-header{
    margin-left:205px;
    width:calc(100% - 205px);
    height:68px;
    min-height:68px;
    padding:7px 8px 7px 10px;
    background:#eef3f7;
  }
  .header-brand{height:54px;border-radius:11px;padding:5px 10px;gap:10px}
  .header-brand-icon{width:34px;height:34px;flex-basis:34px;font-size:14px}
  .header-title{font-size:15px}
  .header-school{font-size:12px;margin-top:2px}
  .header-school-en{font-size:8px}
  .header-user{min-height:42px;padding:4px 8px 4px 5px}
  .header-avatar{width:31px;height:31px}
  .header-user-name{font-size:12px}
  .admin{display:block;min-height:calc(100vh - 68px)}
  .admin main{
    margin-left:205px;
    min-height:calc(100vh - 68px);
    padding:18px 12px 30px;
    background:#f3f7fb;
  }
}
.admin-sidebar .brand-title{
  margin:2px 7px 18px;
  color:#fff;
  font-family:Kalpurush,"Times New Roman",sans-serif;
  font-size:18px;
  font-weight:700;
  line-height:1.15;
}
.admin-sidebar .brand-title small{font-size:10px;color:#d8e6ef;margin-top:3px;font-weight:400}
.admin-sidebar .standalone-menu,
.admin-sidebar .menu-group summary{
  padding:9px 10px;
  margin:2px 0;
  border-radius:8px;
  font-size:13px;
}
.admin-sidebar .menu-group summary{font-weight:600}
.admin-sidebar .dashboard-link.active,
.admin-sidebar .dashboard-link:hover{
  background:#0d8df2;
  color:#fff;
}
.admin-sidebar .standalone-menu:hover,
.admin-sidebar .standalone-menu.active{background:rgba(13,141,242,.16)}
.admin-sidebar .menu-group summary:hover,
.admin-sidebar .menu-group[open] summary{background:rgba(13,141,242,.16)}
.admin-sidebar .submenu{margin-left:5px;padding-left:8px;border-left:1px solid rgba(255,255,255,.14)}
.admin-sidebar .submenu a{font-size:12px;padding:7px 8px}
.dashboard-heading{
  background:#fff;
  border:1px solid #e5e9ee;
  border-radius:14px;
  padding:18px 20px;
  margin:0;
  min-height:88px;
  box-shadow:0 4px 16px rgba(25,55,90,.06);
}
.dashboard-heading h1{font-size:24px;font-weight:500;margin:0 0 4px;color:#172b3d}
.dashboard-heading p{margin:0;font-size:12px;color:#7f8c98}
.dashboard-heading:after{
  content:'';
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  display:grid;
  place-items:center;
  width:45px;height:45px;
  border-radius:11px;
  background:#168cf0;
  color:#fff;
  font-size:18px;
  box-shadow:0 5px 14px rgba(22,140,240,.22);
}
@media(max-width:800px){
  .dashboard-heading{min-height:auto;padding:16px}
  .dashboard-heading h1{font-size:21px}
}

/* Compact edit modal for slider image updates */
.slider-edit-modal{width:min(380px,calc(100vw - 28px));padding:12px 14px 14px;border-radius:12px}
.slider-edit-modal .modal-close{right:8px;top:4px;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-size:22px;line-height:1;color:#6d7d8e}
.slider-edit-modal .modal-close:hover{background:#eef3f7;color:#173e5e}
.compact-form{gap:7px;padding-top:2px}
.compact-form label{gap:3px;font-size:11px}
.compact-form input,.compact-form textarea{padding:6px 8px;font-size:12px;border-radius:6px}
.compact-form textarea{resize:vertical;min-height:48px}
.modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;padding-top:2px}.slider-form-card,.slider-table-card{padding-top:14px}
.btn.secondary{background:#eef1f5;color:#405268;border:1px solid #d7dee7}
.btn.secondary:hover{background:#e3e8ee}
/* Management page banner: the blue section is the page header; no separate title is shown above it. */
.management-page-banner{margin-top:0;margin-bottom:18px;min-height:118px}
.admin main>.top:not(.dashboard-heading){display:none}
@media(min-width:1200px){.admin main{padding-left:22px;padding-right:22px}}
.page-count-badge{display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap;font-family:Kalpurush,"Times New Roman",sans-serif;font-weight:600}.page-count-badge strong{font-size:18px;line-height:1}
.wide-card{max-width:1100px;margin:0 auto}.secondary{background:#eef2f6;color:#3b4c60}.modal-subtitle{margin:-8px 0 12px;color:#7d8b9b;font-size:12px}.edit-modal.compact{width:min(460px,94vw);padding:18px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:6px}.admin-sidebar .standalone-menu.active{background:#0d8df2;color:#fff}

.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}.stat-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e5eaf0;border-radius:12px;padding:14px;text-decoration:none;color:#1b3045;box-shadow:0 4px 15px rgba(25,55,90,.05)}.stat-card>span{width:40px;height:40px;border-radius:10px;background:#eaf3ff;color:#1475df;display:grid;place-items:center}.stat-card b{display:block;font-size:20px}.stat-card small{display:block;color:#7d8a98;font-size:11px}.dashboard-banner{min-height:118px}.dashboard-banner>b{width:52px;height:52px;display:grid;place-items:center;font-size:20px}.dashboard-page{max-width:none}@media(max-width:1050px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.dashboard-stats{grid-template-columns:1fr}}

/* School/board logo upload preview */
.upload-preview{margin-top:10px;display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #dce5eb;border-radius:10px;background:#f8fbfd}.upload-preview img{width:64px;height:64px;object-fit:contain;background:#fff;border:1px solid #e2e8ec;border-radius:8px;padding:4px}.upload-preview span{font-size:12px;color:#65737e}

/* Branch manager — screenshot-matched select form */
.branch-manager-grid{align-items:start;grid-template-columns:minmax(300px,.72fr) minmax(560px,1.55fr);gap:16px}
.branch-form-card,.branch-table-card{padding:0;overflow:hidden;border-radius:13px}
.branch-card-title{margin:0;padding:14px 15px;border-bottom:1px solid #e8edf3}
.branch-card-title>i{width:36px;height:36px;border-radius:9px;background:#0d8df2;color:#fff;box-shadow:0 5px 12px rgba(13,141,242,.22)}
.branch-card-title b{font-size:15px}
.branch-card-title small{margin-top:2px;font-size:11px}
.branch-select-form{padding:16px;gap:12px}
.branch-select-form label{gap:7px}
.branch-select-form select{height:43px;border-radius:9px;background-color:#fff}
.branch-save-btn{width:100%;min-height:40px;border-radius:8px;box-shadow:0 4px 10px rgba(19,117,235,.18)}
.branch-table-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:64px;
  gap:24px;
  padding:14px 22px;
  box-sizing:border-box;
  background:#fff;
  color:#718095;
  font-size:12px;
}
.branch-table-toolbar>span{
  flex:0 0 auto;
  white-space:nowrap;
}
.branch-search-wrap{
  position:relative;
  width:300px;
  max-width:42%;
  margin-left:auto;
  flex:0 1 300px;
}
.branch-search-wrap>i{
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  font-size:12px;
  color:#8b98a8;
  pointer-events:none;
}
.branch-search-wrap .table-search{
  width:100%;
  height:38px;
  margin:0;
  padding:0 13px 0 36px;
  box-sizing:border-box;
  border-radius:8px;
}
.branch-table{border:1px solid #e5ebf2;border-radius:10px;overflow:hidden}
.branch-table th{background:#eef4f8;color:#536579;font-weight:700;border-bottom:1px solid #dce5ed}
.branch-table td{height:47px;background:#fff!important}
.branch-table th:last-child,.branch-table td:last-child{text-align:right}
.serial-chip{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:7px;background:#edf5fb;color:#48728f;font-size:11px}
.branch-table-card .table-scroll{padding:0 15px 16px}
@media(max-width:950px){.branch-manager-grid{grid-template-columns:1fr}.branch-search-wrap{width:300px;max-width:48%;flex-basis:300px}}
@media(max-width:560px){.branch-table-toolbar{align-items:stretch;flex-direction:column;gap:10px;padding:14px 15px}.branch-search-wrap{width:100%;max-width:100%;flex-basis:auto}}

/* SUBJECT_MANAGER_SCREENSHOT_LAYOUT */
.subject-page-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 18px}.subject-page-head h1{font-size:27px;line-height:1.1;margin:0 0 5px;color:#17314f;font-weight:500}.subject-page-head p{margin:0;color:#78879a;font-size:12px}.subject-head-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#087fa0,#008d83);color:#fff;font-size:19px;box-shadow:0 8px 18px rgba(0,120,145,.16)}
.subject-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.subject-stat{background:#fff;border:1px solid #e5eaf0;border-radius:13px;min-height:76px;padding:14px 18px;box-shadow:0 4px 15px rgba(25,55,90,.045);position:relative;overflow:hidden}.subject-stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px}.subject-stat.total:before{background:#1684ff}.subject-stat.active:before{background:#15995c}.subject-stat.inactive:before{background:#ff4e58}.subject-stat small{display:block;color:#738297;font-size:12px}.subject-stat b{display:block;margin-top:4px;font-size:20px;color:#20334b;font-weight:500}
.subject-manager-grid{display:grid;grid-template-columns:minmax(320px,.72fr) minmax(650px,1.5fr);gap:16px;align-items:start}.subject-form-card,.subject-table-card{padding:0;overflow:hidden}.subject-card-title{padding:14px 16px 12px;margin:0;border-bottom:1px solid #e8edf3}.subject-card-title>i{background:transparent;width:auto;height:auto;color:#173f59;font-size:16px}.subject-card-title b{font-size:16px;font-weight:500}.subject-card-title small{margin-top:2px}.subject-stack-form{padding:15px 17px 18px;display:grid;gap:12px}.subject-stack-form label{display:grid;gap:6px;color:#30425a;font-size:12px;font-weight:600}.subject-stack-form select,.subject-stack-form input{width:100%;height:38px;border:1px solid #d7dfe9;border-radius:8px;background:#fff;padding:0 11px;font-family:inherit;font-size:13px;color:#293c55;outline:none}.subject-stack-form select:focus,.subject-stack-form input:focus{border-color:#1884f3;box-shadow:0 0 0 3px rgba(24,132,243,.08)}.subject-stack-form input[readonly]{background:#f7f9fc;color:#607084}.subject-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.subject-help{font-size:10px;color:#8b97a5;font-weight:400;line-height:1.4}.subject-active-row{display:flex!important;align-items:center;gap:8px!important}.subject-active-row input{width:16px!important;height:16px!important}.subject-save{width:100%;min-height:38px}.subject-cancel{text-align:center;color:#738297;font-size:11px;text-decoration:none}.subject-list-head{display:flex}.subject-total-pill{margin-left:auto;border:1px solid #dfe5ec;border-radius:7px;padding:4px 8px;color:#344a63;font-size:11px}.subject-table-toolbar{display:flex;justify-content:space-between;align-items:center;padding:13px 17px 10px;color:#44556b;font-size:12px}.subject-table-toolbar label{display:flex;align-items:center;gap:7px}.subject-table-toolbar select{height:34px;border:1px solid #dbe2ea;border-radius:7px;padding:0 28px 0 9px;background:#fff}.subject-search-label{margin-left:auto}.subject-search-wrap{display:inline-flex;position:relative;width:180px}.subject-search-wrap i{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#8a98a8;font-size:11px}.subject-search-wrap input{width:100%;height:34px;border:1px solid #dbe2ea;border-radius:7px;padding:0 9px 0 29px;font-family:inherit;outline:none}.subject-table{font-size:11px}.subject-table th{background:#084e66;padding:10px 8px}.subject-table td{padding:9px 8px}.subject-code-chip{display:inline-flex;min-width:40px;justify-content:center;background:#f1f5f8;border-radius:6px;padding:5px 7px;color:#607386}.subject-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;font-size:10px}.subject-status i{width:6px;height:6px;border-radius:50%;background:currentColor}.subject-status.on{background:#eaf8f0;color:#138c53}.subject-status.off{background:#fff0f1;color:#d74d58}.subject-actions{white-space:nowrap}.subject-action{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:7px;text-decoration:none;margin-right:3px;background:#fff;border:1px solid currentColor;font-size:11px}.subject-action.edit{color:#1677e8}.subject-action.toggle{color:#e4aa19}.subject-action.delete{color:#df4051}.subject-empty{text-align:center;padding:18px;color:#8090a2;font-size:12px}
@media(max-width:1100px){.subject-manager-grid{grid-template-columns:1fr}.subject-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.subject-stats{grid-template-columns:1fr}.subject-mini-grid{grid-template-columns:1fr}.subject-table-toolbar{align-items:stretch;flex-direction:column;gap:10px}.subject-search-label{margin-left:0;justify-content:space-between}.subject-search-wrap{width:min(240px,65%)}}

/* SUBJECT_MANAGER_EXACT_SCREENSHOT_V2 */
.admin main{background:#f3f8fb!important;padding:20px 18px 28px!important}
.subject-page-head{height:55px;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;margin:0 0 16px!important;padding:0!important}
.subject-page-head h1{margin:0 0 4px!important;font-size:25px!important;line-height:1.05!important;font-weight:500!important;color:#18324a!important;letter-spacing:-.2px}
.subject-page-head p{margin:0!important;font-size:11px!important;line-height:1.4!important;color:#7e8d9b!important}
.subject-head-icon{width:47px!important;height:47px!important;border-radius:12px!important;margin-top:2px!important;background:linear-gradient(135deg,#087f95,#008f86)!important;color:#fff!important;font-size:18px!important;box-shadow:0 8px 18px rgba(0,126,145,.14)!important}
.subject-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:13px!important;margin:0 0 17px!important}
.subject-stat{height:74px!important;min-height:74px!important;padding:14px 16px!important;border:1px solid #e4e9ef!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 13px rgba(36,60,86,.035)!important}
.subject-stat:before{width:3px!important}
.subject-stat small{font-size:11px!important;line-height:1.1!important;color:#778593!important}
.subject-stat b{font-size:20px!important;line-height:1!important;margin-top:8px!important;font-weight:500!important;color:#21364c!important}
.subject-manager-grid{display:grid!important;grid-template-columns:minmax(330px,32.6%) minmax(0,67.4%)!important;gap:15px!important;align-items:start!important}
.subject-form-card,.subject-table-card{padding:0!important;border:1px solid #e4e9ef!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 13px rgba(35,59,85,.035)!important;overflow:hidden!important}
.subject-card-title{height:64px!important;box-sizing:border-box!important;margin:0!important;padding:11px 15px!important;border-bottom:1px solid #e7ecf1!important;display:flex!important;align-items:center!important;gap:10px!important;color:#18384e!important}
.subject-card-title>i{width:18px!important;height:18px!important;display:grid!important;place-items:center!important;background:transparent!important;color:#163e55!important;font-size:16px!important}
.subject-card-title b{display:block!important;font-size:15px!important;line-height:1.2!important;font-weight:500!important;color:#263d51!important}
.subject-card-title small{display:block!important;margin-top:4px!important;font-size:10px!important;line-height:1.2!important;color:#8995a1!important;font-weight:400!important}
.subject-stack-form{display:grid!important;gap:13px!important;padding:15px 16px 18px!important}
.subject-stack-form label{display:grid!important;gap:6px!important;margin:0!important;font-size:12px!important;line-height:1.25!important;font-weight:500!important;color:#3b4c5e!important}
.subject-stack-form .label-title{display:inline-flex!important;align-items:baseline!important;gap:2px!important;width:max-content!important;white-space:nowrap!important}
.subject-stack-form .label-title em{margin-left:1px!important}
.subject-stack-form select,.subject-stack-form input{height:38px!important;box-sizing:border-box!important;border:1px solid #d5dce4!important;border-radius:8px!important;background:#fff!important;padding:0 11px!important;font-size:12px!important;color:#35485b!important;box-shadow:none!important}
.subject-stack-form select{padding-right:34px!important}
.subject-stack-form input[readonly]{background:#f7f9fb!important;color:#556779!important}
.subject-stack-form select:focus,.subject-stack-form input:focus{border-color:#1487f5!important;box-shadow:0 0 0 2px rgba(20,135,245,.10)!important}
.subject-help{margin-top:-1px!important;font-size:9.5px!important;line-height:1.35!important;color:#8e99a4!important;font-weight:400!important}
.subject-mini-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
.subject-active-row{display:flex!important;align-items:center!important;gap:7px!important;font-size:11px!important}
.subject-active-row input{width:15px!important;height:15px!important;margin:0!important}
.subject-save{height:39px!important;min-height:39px!important;padding:0 14px!important;border-radius:8px!important;font-size:12px!important;box-shadow:0 5px 12px rgba(19,117,235,.14)!important}
.subject-list-head{position:relative!important}
.subject-total-pill{position:absolute!important;right:14px!important;top:18px!important;margin:0!important;padding:2px 7px!important;height:20px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;border:1px solid #dce2e8!important;border-radius:5px!important;background:#fff!important;color:#526170!important;font-size:9.5px!important;font-weight:500!important}
.subject-table-toolbar{height:62px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:12px 16px!important;border-bottom:0!important;color:#45586a!important;font-size:11px!important}
.subject-table-toolbar>label:first-child{display:flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important}
.subject-table-toolbar select{height:34px!important;min-width:56px!important;padding:0 25px 0 9px!important;border:1px solid #d8dfe6!important;border-radius:7px!important;background:#fff!important;font-size:11px!important;color:#35485a!important}
.subject-search-label{display:flex!important;align-items:center!important;gap:6px!important;margin-left:auto!important;white-space:nowrap!important}
.subject-search-wrap{position:relative!important;display:inline-flex!important;width:160px!important}
.subject-search-wrap i{position:absolute!important;left:10px!important;top:50%!important;transform:translateY(-50%)!important;color:#8090a0!important;font-size:10px!important;z-index:2!important}
.subject-search-wrap input{width:100%!important;height:35px!important;box-sizing:border-box!important;margin:0!important;padding:0 10px 0 28px!important;border:1px solid #d8dfe6!important;border-radius:7px!important;background:#fff!important;font-size:11px!important;color:#35485a!important;outline:none!important}
.subject-table-card .table-scroll{overflow:auto!important;padding:0 14px 14px!important}
.subject-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid #e0e5ea!important;border-radius:8px!important;overflow:hidden!important;font-size:10.5px!important;color:#33475a!important;background:#fff!important}
.subject-table th{height:38px!important;box-sizing:border-box!important;padding:0 8px!important;background:#07536b!important;color:#fff!important;border-right:1px solid rgba(255,255,255,.18)!important;border-bottom:0!important;font-size:10.5px!important;line-height:38px!important;font-weight:500!important;text-align:left!important;white-space:nowrap!important}
.subject-table th:last-child{border-right:0!important}
.subject-table td{height:43px!important;box-sizing:border-box!important;padding:6px 8px!important;border-bottom:1px solid #e7ebef!important;background:#fff!important;vertical-align:middle!important;white-space:nowrap!important}
.subject-table tr:nth-child(even) td{background:#fff!important}
.subject-table tbody tr:last-child td{border-bottom:0!important}
.subject-table td:first-child{width:38px!important;text-align:center!important;color:#40556a!important}
.subject-table th:first-child{text-align:center!important}
.subject-code-chip{min-width:39px!important;height:23px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 7px!important;border-radius:6px!important;background:#f1f4f6!important;color:#5f7181!important;font-size:9.5px!important}
.subject-status{height:23px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;gap:5px!important;padding:0 8px!important;border-radius:999px!important;font-size:9.5px!important;font-weight:500!important}
.subject-status i{width:6px!important;height:6px!important}
.subject-status.on{background:#eef9f2!important;color:#27935e!important}
.subject-status.off{background:#fff1f2!important;color:#d95c63!important}
.subject-actions{min-width:108px!important;white-space:nowrap!important;text-align:left!important}
.subject-action{width:29px!important;height:29px!important;box-sizing:border-box!important;display:inline-grid!important;place-items:center!important;margin:0 3px 0 0!important;border-radius:7px!important;background:#fff!important;font-size:11px!important}
.subject-action.edit{color:#1482f0!important;border:1px solid #1482f0!important}
.subject-action.toggle{color:#e5b522!important;border:1px solid #e5b522!important}
.subject-action.delete{color:#e24d58!important;border:1px solid #e24d58!important}
.subject-empty{padding:14px!important;font-size:11px!important;color:#8290a0!important;text-align:center!important}
@media(max-width:1100px){.subject-manager-grid{grid-template-columns:1fr!important}.subject-stats{grid-template-columns:repeat(3,1fr)!important}}
@media(max-width:650px){.admin main{padding:14px 10px 24px!important}.subject-page-head h1{font-size:22px!important}.subject-stats{grid-template-columns:1fr!important}.subject-mini-grid{grid-template-columns:1fr!important}.subject-table-toolbar{height:auto!important;align-items:stretch!important;flex-direction:column!important;gap:10px!important}.subject-search-label{margin-left:0!important;justify-content:space-between!important}.subject-search-wrap{width:min(220px,65%)!important}}


/* SUBJECT_SCREENSHOT_43_FINAL */
.subject-page-head{height:72px!important;margin:0!important;padding:0 0 10px!important}
.subject-page-head h1{font-size:29px!important;line-height:1.12!important}
.subject-page-head p{font-size:12px!important;margin-top:5px!important}
.subject-head-icon{width:48px!important;height:48px!important;border-radius:13px!important}
.subject-stats{gap:13px!important;margin:0 0 19px!important}
.subject-stat{height:76px!important;padding:15px 17px!important;border-radius:12px!important}
.subject-stat small{font-size:12px!important}
.subject-stat b{font-size:22px!important;margin-top:7px!important}
.subject-manager-grid{grid-template-columns:32.8% 67.2%!important;gap:15px!important}
.subject-card-title{height:65px!important;padding:12px 16px!important}
.subject-card-title b{font-size:16px!important}
.subject-card-title small{font-size:10.5px!important}
.subject-stack-form{gap:14px!important;padding:17px 17px 20px!important}
.subject-stack-form label{font-size:12.5px!important;gap:7px!important}
.subject-stack-form select,.subject-stack-form input{height:39px!important;font-size:12px!important;border-radius:8px!important}
.subject-help{font-size:10px!important}
.subject-mini-grid{gap:13px!important}
.subject-list-head{height:65px!important}
.subject-table-toolbar{height:62px!important;padding:12px 16px!important;font-size:11.5px!important}
.subject-table-toolbar select{height:36px!important;min-width:58px!important}
.subject-search-wrap{width:158px!important}
.subject-search-wrap input{height:36px!important}
.subject-table-card .table-scroll{padding:0 14px 14px!important}
.subject-table{font-size:11px!important}
.subject-table th{height:40px!important;line-height:40px!important;font-size:11px!important;padding:0 9px!important}
.subject-table td{height:47px!important;padding:7px 9px!important}
.subject-table th:nth-child(1){width:48px!important}
.subject-table th:nth-child(2){width:54px!important}
.subject-table th:nth-child(3){width:70px!important}
.subject-table th:nth-child(4){width:72px!important}
.subject-table th:nth-child(6){width:112px!important}
.subject-table th:nth-child(7){width:95px!important}
.subject-table th:nth-child(8){width:120px!important}
.subject-code-chip{height:24px!important;min-width:42px!important}
.subject-status{height:24px!important}
.subject-action{width:30px!important;height:30px!important}
@media(min-width:1200px){
  .subject-page-head,.subject-stats,.subject-manager-grid{max-width:none!important;width:100%!important}
}


/* NETLIFY SPA compatibility only; original management CSS above remains the visual source of truth. */
button{font-family:inherit}.hidden{display:none!important}.nav-btn{width:100%;border:0;background:transparent;text-align:left;font:inherit;cursor:pointer}.admin-sidebar .nav-btn{color:#fff}.admin-sidebar .nav-btn.standalone-menu{display:flex}.admin-sidebar .submenu .nav-btn{display:flex;align-items:center;color:#fff;text-decoration:none;padding:9px 10px 9px 9px;border-radius:8px;margin:2px 0;font-size:15px}.admin-sidebar .submenu .nav-btn:hover,.admin-sidebar .submenu .nav-btn.active{background:#e98b2a}.admin-sidebar .nav-btn.active{background:#e98b2a}.admin-sidebar summary{user-select:none}.spa-main{min-width:0}.spa-toplinks{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-bottom:12px;font-size:12px}.spa-toplinks a{color:#1468c7;text-decoration:none}.save-state{color:#147a56;font-weight:700}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.list-toolbar .left,.list-toolbar .right{display:flex;align-items:center;gap:8px;font-size:12px;color:#627285}.list-toolbar input{width:210px}.image-preview{display:flex;align-items:center;gap:10px;margin-top:7px}.image-preview img{width:76px;height:56px;object-fit:cover;border-radius:5px;border:1px solid #dde5eb}.file-name{font-size:11px;color:#758496}.routine-periods{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;grid-column:1/-1}.routine-periods label{display:grid;gap:6px}.dashboard-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.dashboard-cards>div{background:#fff;border-radius:14px;padding:24px;box-shadow:0 5px 20px rgba(0,0,0,.07)}.dashboard-cards b{display:block;font-size:34px}.dashboard-cards span{color:#657080}.checkbox-line{display:flex!important;align-items:center!important;gap:8px!important}.checkbox-line input{width:auto!important}.social-single{max-width:700px}.global-feedback-overlay,.global-delete-confirm{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:20px!important;background:rgba(15,23,42,.20)!important}.global-feedback-box,.global-delete-box{box-sizing:border-box!important;width:min(370px,calc(100vw - 34px))!important;background:#fff!important;border:1px solid #d9e1e8!important;border-radius:8px!important;box-shadow:0 16px 45px rgba(0,0,0,.20)!important;text-align:center!important;padding:23px 24px 19px!important;color:#27313c!important}.global-feedback-check,.global-delete-icon{width:54px!important;height:54px!important;border-radius:50%!important;display:grid!important;place-items:center!important;margin:0 auto 13px!important;font-size:23px!important}.global-feedback-check{border:2px solid #cde9d7!important;color:#6fc58c!important}.global-delete-icon{border:2px solid #f2c7cb!important;color:#db4e59!important}.global-feedback-box h3,.global-delete-box h3{margin:0 0 7px!important;font-size:19px!important;font-weight:500!important}.global-feedback-box p,.global-delete-box p{margin:0 0 16px!important;font-size:11px!important;line-height:1.6!important;color:#72808d!important}.global-feedback-ok,.global-delete-cancel,.global-delete-confirm-btn{min-width:78px!important;height:35px!important;padding:0 16px!important;border-radius:6px!important;font-size:11px!important;cursor:pointer!important}.global-feedback-ok{border:0!important;background:#1686f3!important;color:#fff!important}.global-delete-actions{display:flex!important;justify-content:center!important;gap:9px!important}.global-delete-cancel{border:1px solid #d5dde5!important;background:#fff!important;color:#526474!important}.global-delete-confirm-btn{border:0!important;background:#dc4f59!important;color:#fff!important}.global-table-pager{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:12px 14px 13px!important;border-top:1px solid #e4eaef!important;background:#fff!important;color:#657786!important;font-size:10.5px!important}.global-table-pager .gp-buttons{display:flex!important;align-items:center!important;margin-left:auto!important}.global-table-pager button{height:30px!important;min-width:49px!important;padding:0 10px!important;border:1px solid #dce3e9!important;background:#f8fafb!important;color:#687986!important;font-size:10.5px!important;cursor:pointer!important}.global-table-pager .gp-current{height:30px!important;min-width:31px!important;padding:0 9px!important;display:grid!important;place-items:center!important;background:#1686f3!important;color:#fff!important;border-top:1px solid #1686f3!important;border-bottom:1px solid #1686f3!important;font-size:10.5px!important}.required-title{display:inline-flex;align-items:baseline;gap:3px}.required-title em{color:#dc3545;font-style:normal}.login-shell{min-height:100vh;display:grid;place-items:center;background:#f4f7fb}.login-shell .auth-card{margin:0}.admin-header.hidden-header{display:none!important}@media(max-width:950px){.dashboard-cards{grid-template-columns:repeat(2,1fr)}.routine-periods{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.dashboard-cards{grid-template-columns:1fr}.list-toolbar{align-items:flex-start;flex-direction:column}.routine-periods{grid-template-columns:1fr}.admin-header{height:auto;align-items:stretch;flex-direction:column}.header-brand{height:auto}.header-user-wrap{align-self:flex-end}}
\n\n/* FINAL SIDEBAR WIDTH + DRAG/DROP IMAGE PREVIEW FIX */\n.admin-sidebar{flex:0 0 285px!important;width:285px!important;padding-left:16px!important;padding-right:16px!important}\n.spa-main{min-width:0;flex:1}\n@media(max-width:800px){.admin-sidebar{width:auto!important;flex-basis:auto!important}}\n.file-field{display:grid!important;gap:6px!important}\n.file-drop-zone{position:relative;border:1.5px dashed #cbd7e5;border-radius:10px;background:#fbfdff;padding:10px;transition:.18s ease;min-height:84px}\n.file-drop-zone.dragging{border-color:#1375eb;background:#eef6ff;box-shadow:0 0 0 3px rgba(19,117,235,.08)}\n.file-drop-zone>input[type=file]{width:100%!important;min-height:40px!important;cursor:pointer!important;background:#fff!important}\n.file-drop-hint{display:flex;align-items:center;gap:8px;margin-top:8px;color:#7a8999;font-size:11px;font-weight:500}\n.file-drop-hint i{color:#1375eb;font-size:15px}\n.image-preview{display:none;align-items:center;gap:10px;margin-top:9px;padding:8px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;min-height:46px}\n.image-preview.has-file{display:flex}\n.image-preview img{display:block!important;width:96px;height:72px;object-fit:cover;border-radius:6px;border:1px solid #e3e8ef;background:#f3f5f7}\n.image-preview .file-name{font-size:12px;color:#4c5b6d;word-break:break-word}\n
/* Reference fidelity: preserve original dimensions/forms while keeping the requested wider sidebar */
@media(min-width:801px){.admin-sidebar{width:270px!important;flex-basis:270px!important}.admin-sidebar .brand-title{margin-left:10px!important}.spa-main{min-width:0}}
.admin-sidebar button{font-family:inherit}.admin-sidebar .nav-btn{border:0;text-align:left;width:100%;cursor:pointer}
.help{display:block;margin-top:4px;color:#7b8794;font-size:11px;line-height:1.45}.active-line{display:flex!important;align-items:center!important;gap:7px!important}.active-line input{width:auto!important;margin:0!important}
.class-manager-grid,.branch-manager-grid,.subject-manager-grid,.routine-manager-grid{align-items:start}.routine-subject-grid select{width:100%;min-height:40px;border:1px solid #d8e0e7;border-radius:7px;background:#fff;padding:7px 9px}
#classBranchField[style*="none"],#classDivisionField[style*="none"]{display:none!important}
.subject-stack-form input[readonly]{background:#f6f8fa;color:#5b6772}.headteacher-card .form-grid>label.full{grid-column:1/-1}
