@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap");
/* MWR Staff Dashboard — mid-tone slate-blue (not too light, not too dark) (load LAST). Scoped to the light theme; dark mode untouched.
   Same palette as mwr-theme.css / mwr-student-dashboard.css. No JS, IDs or data logic changed. */
html:not([data-theme="dark"]){
  --bg:#D9E2ED; --bg-deep:#E2E9F2; --panel:#F5F8FB; --panel-2:#DCE5F0;
  --chalk:#172033; --chalk-dim:#38475C; --muted:#586678; --line:#B3C1D3; --gold-line:#9FB1C6;
  --yellow:#1F4170; --gold-bright:#3F6F96; --teal:#3F6F96; --teal-soft:#3F7D62; --clay:#1F4170; --clay-soft:#A3584A;
  --shadow:0 18px 40px -24px rgba(31,65,112,.28),0 3px 10px rgba(31,65,112,.06);
  --shadow-sm:0 6px 18px -12px rgba(31,65,112,.22);
  --sidebar-w:230px;
}
html:not([data-theme="dark"]) body{background:var(--bg)}
html:not([data-theme="dark"]) body::before{display:none}

/* ---------- Sidebar (white, like the student portal) ---------- */
html:not([data-theme="dark"]) .sidebar{
  --panel:#F5F8FB; --panel-2:#DCE5F0; --band:#F4F6F9; --chalk:#172033; --chalk-dim:#38475C; --muted:#586678;
  --line:#B3C1D3; --gold-line:#9FB1C6; --gold-bright:#1F4170; --yellow:#3F6F96; --teal-soft:#3F6F96;
  background:#E6ECF4!important;border-right:1px solid #B3C1D3;box-shadow:none;padding:16px 14px 0;
}
:where(html:not([data-theme="dark"])) .sidebar-brand{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 6px 14px!important;margin:0 0 10px!important;border-bottom:1px solid #B3C1D3!important;border-radius:0!important;gap:10px!important}
:where(html:not([data-theme="dark"])) .sidebar-brand::before{display:none!important}
:where(html:not([data-theme="dark"])) .sidebar-brand:hover{transform:none!important}
:where(html:not([data-theme="dark"])) .sidebar-brand .brand-logo{width:46px;height:auto;flex-shrink:0;display:block}
:where(html:not([data-theme="dark"])) .sidebar-brand .brand-text{min-width:0}
:where(html:not([data-theme="dark"])) .sidebar-brand .brand-name,:where(html:not([data-theme="dark"])) .sidebar-brand .brand-name span{font-family:Montserrat,Inter,system-ui,sans-serif!important;font-weight:700!important;font-style:normal!important;font-size:12px!important;letter-spacing:.06em!important;text-transform:uppercase;color:#1F4170!important;text-shadow:none!important;white-space:nowrap;line-height:1.05}
:where(html:not([data-theme="dark"])) .sidebar-brand .brand-tag{color:#3F6F96!important;font-family:Inter,system-ui,sans-serif!important;font-weight:700!important;font-size:8.5px!important;letter-spacing:.2em!important;text-transform:uppercase;margin-top:6px!important;white-space:nowrap}
html:not([data-theme="dark"]) .nav-group-label{font-family:Inter,sans-serif!important;font-weight:700;font-size:11px!important;letter-spacing:.06em!important;text-transform:uppercase;color:#6B7889!important;padding:12px 11px 4px}
html:not([data-theme="dark"]) .navlist button{border-radius:10px;font-size:13.5px;color:#44536A;transform:none;box-shadow:none}
html:not([data-theme="dark"]) .navlist button:hover{background:#D5DFEB;color:#1F4170;transform:none}
html:not([data-theme="dark"]) .navlist button.active{background:#CBD8E8;color:#1F4170;font-weight:600;box-shadow:none}
html:not([data-theme="dark"]) .navlist button.active::before{left:-14px;width:4px;height:22px;background:#1F4170;box-shadow:none;border-radius:0 4px 4px 0}
html:not([data-theme="dark"]) .nav-symbol{background:#DCE5F0;border:1px solid #B3C1D3;color:#3F6F96;box-shadow:none;border-radius:9px;font-family:Inter,sans-serif}
html:not([data-theme="dark"]) .navlist button.active .nav-symbol{background:#1F4170;border-color:#1F4170;color:#fff}
html:not([data-theme="dark"]) .sidebar-footer{background:#DDE5EF!important;border-top:1px solid #B3C1D3!important;box-shadow:none!important;margin:0 -14px;padding:12px 14px 14px}
html:not([data-theme="dark"]) .sidebar-logout{background:#fff;border:1px solid #9FB1C6;color:#1F4170;font-family:Inter,sans-serif;font-weight:600;font-size:13px;border-radius:10px;padding:10px}
html:not([data-theme="dark"]) .sidebar-logout:hover{background:#F6EDEA;border-color:#A3584A;color:#A3584A}

/* ---------- Top bar ---------- */
:where(html:not([data-theme="dark"])) .dash-body{padding:0 28px}
:where(html:not([data-theme="dark"])) .topbar{margin:14px 0!important;border-radius:14px!important;padding:10px 16px!important}
:where(html:not([data-theme="dark"])) .sf-global-search input,:where(html:not([data-theme="dark"])) .topbar .search-input{background:#EEF2F7!important;border:1px solid #B3C1D3!important;border-radius:10px!important}
:where(html:not([data-theme="dark"])) .sf-global-search input:focus{border-color:#3F6F96!important;box-shadow:0 0 0 3px rgba(63,111,150,.15)!important;outline:0}
:where(html:not([data-theme="dark"])) .acct-avatar{background:#1F4170!important;color:#fff!important;border:0!important;font-family:Inter,sans-serif!important;font-weight:700}
:where(html:not([data-theme="dark"])) .acct-name{color:#172033!important;font-weight:600}
:where(html:not([data-theme="dark"])) .acct-role{color:#3F6F96!important;font-weight:600}
:where(html:not([data-theme="dark"])) .sf-notif-bell,:where(html:not([data-theme="dark"])) .tb-icon-btn{border-radius:10px!important;border:1px solid #B3C1D3!important;background:#F5F8FB!important;color:#1F4170!important}
:where(html:not([data-theme="dark"])) .sf-notif-bell:hover{background:#EBF0F6!important;border-color:#3F6F96!important}
:where(html:not([data-theme="dark"])) .sf-notif-badge{background:#A3584A!important;color:#fff!important}

/* ---------- Overview ---------- */
html:not([data-theme="dark"]) .ov-banner{background:linear-gradient(120deg,#1F4170 0%,#3F6F96 100%)!important;border:0!important;border-radius:18px;color:#fff;box-shadow:0 22px 40px -26px rgba(31,65,112,.7);overflow:hidden}
html:not([data-theme="dark"]) .ov-banner *{color:#fff}
html:not([data-theme="dark"]) .ov-banner-greet{font-family:Fraunces,serif;font-weight:600}
html:not([data-theme="dark"]) .ov-banner-quote{color:rgba(255,255,255,.85);font-style:italic}
html:not([data-theme="dark"]) .ov-banner-datetime{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:12px}
:where(html:not([data-theme="dark"])) .kpi-card,:where(html:not([data-theme="dark"])) .ov-panel,:where(html:not([data-theme="dark"])) .table-panel,:where(html:not([data-theme="dark"])) .add-panel,:where(html:not([data-theme="dark"])) .ov-card{background:#F5F8FB!important;border:1px solid #B3C1D3!important;border-radius:14px!important;box-shadow:var(--shadow-sm)!important}
:where(html:not([data-theme="dark"])) .kpi-card:hover,:where(html:not([data-theme="dark"])) .ov-card:hover{border-color:#3F6F96!important;box-shadow:var(--shadow)!important}
:where(html:not([data-theme="dark"])) .kpi-blue{--kpi-accent:#1F4170}:where(html:not([data-theme="dark"])) .kpi-green{--kpi-accent:#3F7D62}:where(html:not([data-theme="dark"])) .kpi-red{--kpi-accent:#A3584A}:where(html:not([data-theme="dark"])) .kpi-purple{--kpi-accent:#3F6F96}
:where(html:not([data-theme="dark"])) .kpi-card:nth-child(n){--kpi-accent:#1F4170}:where(html:not([data-theme="dark"])) .kpi-card:nth-child(2){--kpi-accent:#3F7D62}:where(html:not([data-theme="dark"])) .kpi-card:nth-child(3){--kpi-accent:#A3584A}:where(html:not([data-theme="dark"])) .kpi-card:nth-child(4){--kpi-accent:#3F6F96}
:where(html:not([data-theme="dark"])) .ov-section-label{font-family:Inter,sans-serif!important;font-weight:700;color:#1F4170!important;text-transform:none!important;letter-spacing:.01em!important}
:where(html:not([data-theme="dark"])) .qa-btn{background:#F5F8FB!important;border:1px solid #9FB1C6!important;color:#1F4170!important;border-radius:12px!important;font-weight:600;box-shadow:var(--shadow-sm)}
:where(html:not([data-theme="dark"])) .qa-btn:hover{background:#EBF0F6!important;border-color:#3F6F96!important}
:where(html:not([data-theme="dark"])) .qa-icon{color:#3F6F96}
:where(html:not([data-theme="dark"])) .ov-panel-head{border-bottom:1px solid #C9D5E3}

/* ---------- All tabs: tables, buttons, pills ---------- */
:where(html:not([data-theme="dark"])) thead th,:where(html:not([data-theme="dark"])) table th{background:#CFDAE8!important;color:#1F4170!important;font-family:Inter,sans-serif!important;font-weight:600!important;border-bottom:1px solid #B3C1D3!important}
:where(html:not([data-theme="dark"])) table td{border-bottom:1px solid #CBD6E3!important}
:where(html:not([data-theme="dark"])) table tbody tr:hover td{background:#E6ECF4}
html:not([data-theme="dark"]) .btn{background:#1F4170;border:1px solid #1F4170;color:#fff;box-shadow:0 10px 20px -12px rgba(31,65,112,.6)}
html:not([data-theme="dark"]) .btn:hover{background:#3F6F96;border-color:#3F6F96;filter:none}
html:not([data-theme="dark"]) .btn-ghost,html:not([data-theme="dark"]) .btn-tiny{color:#1F4170;border-color:#9FB1C6;background:#fff;font-family:Inter,sans-serif;font-weight:600}
html:not([data-theme="dark"]) .btn-ghost:hover,html:not([data-theme="dark"]) .btn-tiny:hover{background:#EBF0F6;border-color:#3F6F96}
:where(html:not([data-theme="dark"])) .status-pill{font-family:Inter,sans-serif!important;font-weight:600!important}
:where(html:not([data-theme="dark"])) .status-pill.neutral{background:#D3DFEE!important;color:#1F4170!important;border-color:#9FB1C6!important}
:where(html:not([data-theme="dark"])) .status-pill.paid{background:#D6E8DD!important;color:#3F7D62!important;border-color:#BCD6C6!important}
:where(html:not([data-theme="dark"])) .status-pill.pending{background:#EEDDD8!important;color:#A3584A!important;border-color:#E0C4BD!important}
@media (max-width:900px){:where(html:not([data-theme="dark"])) .dash-body{padding:0 14px}}

/* ---------- Dark mode only: form controls the page's own CSS leaves at browser defaults ---------- */
html[data-theme="dark"] .enr-filter-bar input[type="text"],
html[data-theme="dark"] .enr-filter-bar select{
  background:var(--bg-deep);border:1px solid var(--line);color:var(--chalk);border-radius:8px;padding:10px 12px;
  font-family:'Inter',sans-serif;font-size:14px}
html[data-theme="dark"] .enr-filter-bar input[type="text"]::placeholder{color:var(--muted)}
html[data-theme="dark"] .enr-filter-bar input[type="text"]:focus,
html[data-theme="dark"] .enr-filter-bar select:focus{outline:none;border-color:var(--gold-bright)}

/* ---------- Sidebar logo = index header logo ----------
   LIGHT MODE ONLY: sidebar header logo = the index.html header logo (blue gradient "MwR" mark with the gold "w",
   blue MATHS WITH RAJESH wordmark, gold tag line). Reuses the .brand-logo-ft mark that is already in the markup
   (its colours are re-pointed here); the old logo image is hidden. Dark mode is not touched. */
html:not([data-theme="dark"]) .sidebar-brand{gap:9px!important}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo{display:none!important}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft{display:block!important;flex:0 0 auto;width:50px;height:30px;border-radius:0;filter:drop-shadow(0 4px 8px rgba(11,58,130,.28))}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft rect{fill:url(#mwrG)}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft path:nth-of-type(1){stroke:#fff;stroke-opacity:.35}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft path:nth-of-type(2),
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft path:nth-of-type(4){stroke:#fff;stroke-opacity:1}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft path:nth-of-type(3){stroke:#F2C94C;stroke-opacity:1}
html:not([data-theme="dark"]) .sidebar-brand .brand-name,
html:not([data-theme="dark"]) .sidebar-brand .brand-name span{color:#0B3A82!important;font-size:11px!important}
html:not([data-theme="dark"]) .sidebar-brand .brand-tag{color:#B8860B!important}

/* ---------- Sidebar header = admin dashboard's light-mode sidebar header ----------
   LIGHT MODE ONLY. Same top offset, same side inset (logo and divider line up with the admin sidebar)
   and the same divider colour as admin. Dark mode is not touched. */
html:not([data-theme="dark"]) .sidebar{padding-top:2px!important}
html:not([data-theme="dark"]) .sidebar .sidebar-brand{margin:0 -2px 10px!important;padding:4px 6px 14px!important;border-bottom:1px solid rgba(16,35,80,.12)!important}

/* ---------- Login screen centred in the space under the header (left/right and top/bottom) ----------
   Both themes. The card block already sat in the horizontal middle; auto margins now centre it vertically too. */
#loginMain .lg-shell{margin:auto}

/* ---------- Sidebar footer = admin dashboard's dark-mode sidebar footer ----------
   DARK MODE ONLY. Same flat footer as admin: no coloured band, a thin divider on top, and the same gradient
   Log out button. Light mode is not touched. */
html[data-theme="dark"] .sidebar-footer{margin:0;padding:12px 0 14px;background:transparent;box-shadow:none;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
html[data-theme="dark"] .sidebar-logout{background:linear-gradient(165deg,var(--panel-2),var(--panel) 85%);border:1px solid var(--line);color:var(--chalk-dim)}
html[data-theme="dark"] .sidebar-logout:hover{border-color:var(--clay);color:var(--clay-soft);background:rgba(166,69,59,.1)}

/* ---------- Staff sidebar, light mode: fit the header and footer to the dark-mode width (230px) ----------
   LIGHT MODE ONLY. Side padding matches admin's (12px) so the logo and wordmark sit on one line. */
html:not([data-theme="dark"]) .sidebar{padding-left:12px!important;padding-right:12px!important}
html:not([data-theme="dark"]) .sidebar .sidebar-brand{margin:0 0 10px!important;padding:4px 2px 14px!important}
html:not([data-theme="dark"]) .sidebar-footer{margin:0 -12px!important;padding:12px 12px 14px!important}
