:root {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: #182c27;
  background: #f6f8f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #182c27;
  --muted: #75827d;
  --line: #e6ece8;
  --green: #16816c;
  --green-dark: #116c5b;
  --green-soft: #e9f5ef;
  --yellow: #f2b846;
  --orange: #d8864b;
  --red: #c65f55;
  --white: #fff;
  --shadow: 0 10px 30px rgba(30, 65, 51, .045);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f6f8f6; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(22,129,108,.2); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { width: 248px; position: fixed; inset: 0 auto 0 0; z-index: 10; background: #fff; border-right: 1px solid #eaf0ec; display: flex; flex-direction: column; padding: 23px 15px 15px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px; text-decoration: none; color: var(--ink); height: 38px; margin-bottom: 27px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #27a482, #136e61); box-shadow: 0 5px 12px rgba(22,129,108,.21); }
.brand-mark svg { width: 25px; height: 25px; }
.brand-name { font-family: Manrope, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.9px; }
.tenant-picker { position: relative; margin-bottom: 28px; }
.school-switcher { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 10px; border: 1px solid #e8eeea; border-radius: 12px; background: #fcfdfc; cursor: pointer; }
.school-switcher:hover { border-color: #c9ded0; background: #fbfdfb; }
.tenant-menu { position: absolute; z-index: 22; top: calc(100% + 7px); left: 0; width: 290px; max-width: calc(100vw - 30px); padding: 7px; background: #fff; border: 1px solid #e5ece7; border-radius: 12px; box-shadow: 0 16px 40px rgba(24,44,39,.14); }
.tenant-menu[hidden] { display: none; }
.tenant-option { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 9px 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.tenant-option:hover, .tenant-option.active { background: #f0f7f2; }
.tenant-option-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.tenant-option-copy strong { color: #30443a; font-size: 10px; }
.tenant-option-copy small { color: #8d9991; font-size: 8px; }
.tenant-check { color: var(--green); font-size: 13px; font-weight: 700; }
.tenant-menu-note { margin: 5px 8px 4px; padding-top: 9px; border-top: 1px solid #edf1ee; color: #9ba69f; font-size: 8px; }
.school-emblem { width: 31px; height: 31px; flex: none; display: grid; place-items: center; background: #eff6f1; color: var(--green); border-radius: 9px; font-size: 10px; font-weight: 700; }
.school-info { min-width: 0; flex: 1; display: grid; gap: 2px; }
.school-info strong { font-size: 11px; font-weight: 700; white-space: nowrap; }
.school-info small { font-size: 9px; color: #87928d; white-space: nowrap; }
.switcher-chevron { color: #85908b; font-size: 15px; transform: translateY(-3px); }
.nav-label { padding: 0 12px; margin: 0 0 11px; color: #a3ada8; font-size: 9px; font-weight: 700; letter-spacing: .9px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 9px; height: 42px; padding: 0 12px; color: #65736d; cursor: pointer; font-size: 12px; transition: background .18s, color .18s; }
.nav-item:hover { background: #f6f9f7; color: var(--ink); }
.nav-item.is-active { color: var(--green-dark); background: #edf6f1; font-weight: 600; }
.live-workspace-link { color: var(--green-dark); text-decoration: none; }
.nav-icon { font-size: 17px; width: 18px; text-align: center; color: #8b9a92; line-height: 1; }
.nav-item.is-active .nav-icon { color: var(--green); }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.nav-badge-green { background: #dff0e7; color: #27866a; }
.nav-badge-orange { background: #fff0e2; color: #c67a39; }
.sidebar-bottom { margin-top: auto; }
.help-card { border: 1px solid #e7ede9; border-radius: 12px; padding: 14px 13px 13px; margin: 0 2px 15px; position: relative; background: linear-gradient(150deg, #fbfdfb, #f7faf7); }
.help-spark { color: #c99740; font-size: 16px; position: absolute; right: 12px; top: 12px; }
.help-card strong { font-size: 10px; display: block; padding-right: 14px; }
.help-card p { color: #83908a; font-size: 9px; margin: 6px 0 11px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--green); font-weight: 700; font-size: 10px; cursor: pointer; }
.text-button span { margin-left: 4px; }
.profile-button { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; width: 100%; padding: 9px 8px 5px; text-align: left; cursor: pointer; border-top: 1px solid #edf1ee; }
.avatar { display: grid; place-items: center; color: #276c59; font-weight: 700; border-radius: 50%; background: #e7f2eb; flex: none; }
.avatar-small { width: 30px; height: 30px; font-size: 10px; }
.profile-copy { display: grid; gap: 3px; flex: 1; }
.profile-copy strong { font-size: 10px; }
.profile-copy small { color: #89948f; font-size: 9px; }
.profile-more { color: #89948f; font-size: 17px; letter-spacing: 1px; }
.main-column { margin-left: 248px; min-height: 100vh; }
.topbar { height: 69px; display: flex; align-items: center; justify-content: space-between; padding: 0 39px; border-bottom: 1px solid #e9eeeb; background: rgba(255,255,255,.79); }
.crumbs { display: flex; align-items: center; gap: 10px; color: #9aa59f; font-size: 11px; }
.crumbs span:last-child { color: #4e6259; font-weight: 600; }
.crumb-divider { color: #c2cbc6; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.demo-label { color: #819087; background: #f2f6f2; border: 1px solid #e8eee9; border-radius: 6px; padding: 6px 8px; font-size: 7px; font-weight: 700; letter-spacing: .45px; white-space: nowrap; }
.search-box { display: flex; align-items: center; width: 238px; height: 35px; gap: 8px; background: #f7f9f7; border: 1px solid #edf1ee; border-radius: 9px; padding: 0 9px; color: #a5afa9; }
.search-box > span { font-size: 19px; line-height: 1; transform: rotate(-20deg); }
.search-box input { background: transparent; border: 0; outline: 0; min-width: 0; flex: 1; font-size: 10px; color: var(--ink); }
.search-box input::placeholder { color: #a0aaa4; }
.search-box kbd { color: #aab3ae; font: 9px 'DM Sans',sans-serif; padding: 3px 5px; border: 1px solid #e5ebe7; border-radius: 4px; white-space: nowrap; }
.icon-button { border: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: transparent; color: #73817a; cursor: pointer; font-size: 17px; }
.icon-button:hover { background: #f0f5f1; }
.notification-button { position: relative; font-size: 17px; }
.notification-button i { position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border: 1.5px solid #fff; background: #e6a64a; border-radius: 50%; }
.avatar-top { width: 30px; height: 30px; font-size: 9px; }
.mobile-menu { display: none; }
.view-root { max-width: 1420px; padding: 32px 39px 50px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.eyebrow { color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, 'Segoe UI', sans-serif; color: var(--ink); }
h1 { font-size: 25px; letter-spacing: -.85px; line-height: 1.22; margin: 0; font-weight: 700; }
.subtitle { color: #7f8b85; font-size: 11px; margin: 7px 0 0; line-height: 1.5; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.date-chip { color: #69776f; border: 1px solid #e4ebe6; background: #fff; padding: 9px 12px; border-radius: 8px; font-size: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 10px 14px; border: 1px solid transparent; font-size: 10px; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 5px 12px rgba(22,129,108,.13); }
.button-primary:hover { background: var(--green-dark); }
.button-outline { border-color: #e1e9e3; background: #fff; color: #55685e; }
.button-soft { border-color: #d9ebe0; background: #f3f8f4; color: var(--green-dark); }
.button-small { padding: 8px 10px; font-size: 9px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.metric-card, .panel { background: #fff; border: 1px solid #e9eeea; border-radius: 12px; box-shadow: var(--shadow); }
.metric-card { padding: 17px 17px 15px; min-height: 117px; }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: #829089; font-size: 10px; }
.metric-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; }
.metric-icon.green { color: #25826a; background: #e8f5ed; }
.metric-icon.amber { color: #b77d2e; background: #fff4e0; }
.metric-icon.orange { color: #c67440; background: #fff0e7; }
.metric-icon.blue { color: #5f83ac; background: #edf3fb; }
.metric-value { font-family: Manrope,sans-serif; font-size: 25px; line-height: 1; font-weight: 700; margin: 13px 0 8px; letter-spacing: -.8px; }
.metric-foot { font-size: 9px; color: #9aa49f; }
.trend-up { color: #31846b; font-weight: 700; }
.trend-down { color: #bf7650; font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .95fr); gap: 15px; margin-bottom: 15px; }
.panel { padding: 18px 19px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-title { font-family: Manrope,sans-serif; font-size: 12px; font-weight: 700; margin: 0; letter-spacing: -.15px; }
.panel-description { font-size: 9px; color: #9aa59f; margin: 5px 0 0; }
.select-control { background: #fff; border: 1px solid #e6ece8; border-radius: 7px; font-size: 9px; color: #6d7c73; padding: 7px 9px; }
.chart-wrap { height: 197px; position: relative; padding: 4px 0 22px 32px; }
.chart-grid-lines { position: absolute; inset: 6px 0 27px 32px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid-lines span { width: 100%; height: 1px; background: #eef2ef; }
.chart-y-labels { position: absolute; inset: 0 auto 25px 0; display: flex; flex-direction: column; justify-content: space-between; color: #abb5b0; font-size: 8px; }
.chart-bars { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; justify-content: space-around; gap: 16px; padding: 5px 17px 0 10px; }
.chart-day { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; flex: 1; color: #a0aaa4; font-size: 8px; }
.bar-pair { display: flex; align-items: flex-end; gap: 4px; height: 154px; width: 100%; justify-content: center; }
.bar { width: 15px; max-width: 34%; border-radius: 4px 4px 1px 1px; background: #65b89b; position: relative; transition: height .25s; }
.bar.absent { background: #f0c16a; }
.chart-legend { display: flex; align-items: center; gap: 15px; color: #88958e; font-size: 8px; margin: 8px 0 0 34px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; display: inline-block; margin-right: 5px; background: #65b89b; }
.legend-dot.absent { background: #f0c16a; }
.attendance-panel { background: #173c33; border: 0; color: #fff; position: relative; overflow: hidden; min-height: 291px; }
.attendance-panel::after { content: ''; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; position: absolute; right: -74px; top: 82px; box-shadow: 0 0 0 24px rgba(255,255,255,.025),0 0 0 50px rgba(255,255,255,.02); }
.attendance-panel .panel-title { color: #fff; }
.attendance-panel .panel-description { color: #b4ccc3; }
.attendance-panel .panel-head { position: relative; z-index: 1; }
.progress-ring-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; margin: 22px 0 18px; }
.progress-ring { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#8bd2ad 0 92%, rgba(255,255,255,.13) 92% 100%); position: relative; }
.progress-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #173c33; }
.progress-ring strong { z-index: 1; font-family: Manrope,sans-serif; font-size: 18px; }
.ring-copy strong { display: block; font-size: 11px; margin-bottom: 5px; }
.ring-copy span { display: block; color: #b4ccc3; font-size: 9px; }
.class-progress { display: grid; gap: 10px; position: relative; z-index: 1; margin-bottom: 17px; }
.class-line { display: grid; grid-template-columns: 47px 1fr 31px; gap: 8px; align-items: center; font-size: 8px; color: #d1e0d8; }
.class-line strong { font-weight: 600; text-align: right; }
.mini-track { height: 4px; border-radius: 5px; background: rgba(255,255,255,.15); overflow: hidden; }
.mini-track i { display: block; height: 100%; border-radius: inherit; background: #8bd2ad; }
.attendance-panel .button { position: relative; z-index: 1; background: #fff; color: #176d59; width: 100%; }
.alert-list { display: grid; }
.alert-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #f0f3f1; }
.alert-row:first-child { border-top: 0; padding-top: 0; }
.student-initials { width: 31px; height: 31px; display: grid; place-items: center; background: #f1f4f1; color: #64776c; border-radius: 50%; font-size: 9px; font-weight: 700; }
.alert-person { min-width: 0; }
.alert-person strong { display: block; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-person small { display: block; font-size: 8px; color: #98a39d; margin-top: 4px; }
.priority { font-size: 8px; border-radius: 6px; padding: 5px 7px; white-space: nowrap; }
.priority.high { background: #fff0e9; color: #c56d45; }
.priority.medium { background: #fff6e5; color: #b48535; }
.priority.low { background: #eef5f0; color: #579176; }
.panel-footer { display: flex; justify-content: center; border-top: 1px solid #f0f3f1; padding-top: 12px; margin-top: 4px; }
.panel-footer .text-button { font-size: 9px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(255px, .8fr); gap: 15px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
thead th { text-align: left; color: #9ba69f; font-size: 8px; letter-spacing: .45px; font-weight: 700; padding: 0 10px 10px; border-bottom: 1px solid #edf1ee; }
tbody td { padding: 10px; border-bottom: 1px solid #f1f4f2; color: #53655b; font-size: 9px; }
tbody tr:last-child td { border-bottom: 0; }
.student-cell { display: flex; align-items: center; gap: 8px; min-width: 145px; }
.student-cell .student-initials { width: 26px; height: 26px; font-size: 8px; }
.student-cell strong { display: block; color: #33463c; font-size: 9px; }
.student-cell small { color: #a2aca6; font-size: 8px; display: block; margin-top: 3px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; border-radius: 6px; padding: 5px 7px; white-space: nowrap; }
.status-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-present { color: #33856b; background: #eaf5ee; }
.status-late { color: #aa8136; background: #fff6e3; }
.status-absent { color: #bf6852; background: #fff0eb; }
.status-justified { color: #6788a5; background: #edf4fa; }
.status-unmarked { color: #89928d; background: #f0f2f0; }
.activity-list { display: grid; gap: 15px; }
.activity-item { display: grid; grid-template-columns: 26px 1fr; gap: 9px; align-items: start; }
.activity-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: #edf6f0; font-size: 11px; }
.activity-copy { font-size: 9px; line-height: 1.45; color: #78867f; }
.activity-copy strong { color: #40534a; font-weight: 600; }
.activity-copy small { display: block; color: #a4ada8; font-size: 8px; margin-top: 3px; }
.page-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 16px; align-items: start; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.filter-control { border: 1px solid #e4ebe6; border-radius: 8px; background: #fff; color: #64746a; font-size: 9px; padding: 9px 10px; }
.call-progress-card { padding: 16px 17px; background: #eff7f1; border: 1px solid #e0ece3; border-radius: 11px; margin-bottom: 15px; }
.call-progress-top { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 700; color: #456251; }
.call-progress-top span:last-child { color: var(--green); }
.call-progress-track { height: 5px; background: #dcebe1; border-radius: 10px; margin-top: 12px; overflow: hidden; }
.call-progress-track i { display: block; height: 100%; background: #54ad88; border-radius: inherit; }
.attendance-table thead th { padding-top: 10px; }
.attendance-table tbody td { padding-top: 8px; padding-bottom: 8px; }
.status-actions { display: flex; gap: 4px; }
.status-choice { border: 1px solid #e8ede9; background: #fff; color: #7e8a83; border-radius: 6px; padding: 5px 7px; font-size: 8px; cursor: pointer; }
.status-choice:hover { border-color: #a9d3ba; color: var(--green); }
.status-choice.selected { border-color: #8fc7a7; color: #20795e; background: #eaf5ee; font-weight: 700; }
.status-choice.selected.absent { border-color: #e6b7a6; color: #b75d49; background: #fff0eb; }
.status-choice.selected.late { border-color: #ead293; color: #9b762e; background: #fff7e4; }
.side-info { display: grid; gap: 13px; }
.mini-info-card { border-radius: 11px; border: 1px solid #e9eeea; background: #fff; padding: 16px; }
.mini-info-card h3 { font-size: 11px; margin: 0 0 7px; }
.mini-info-card p { font-size: 9px; color: #87938c; line-height: 1.55; margin: 0; }
.class-option-list { display: grid; gap: 6px; margin-top: 12px; }
.class-option { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 1px solid #edf1ee; border-radius: 7px; background: #fff; padding: 8px 9px; font-size: 9px; color: #65736b; cursor: pointer; }
.class-option.active { color: var(--green-dark); border-color: #b8dac7; background: #f2f8f4; font-weight: 700; }
.class-option small { color: #96a19b; font-size: 8px; }
.alert-card { border: 1px solid #e9eeea; background: #fff; border-radius: 11px; padding: 15px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; margin-bottom: 9px; box-shadow: var(--shadow); }
.alert-card-main { min-width: 0; }
.alert-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.alert-card-title strong { font-size: 10px; }
.alert-card-copy { color: #8b9690; font-size: 9px; line-height: 1.45; }
.alert-card-meta { display: flex; gap: 13px; color: #a0aaa4; font-size: 8px; margin-top: 7px; }
.followup-tag { font-size: 8px; color: #31846b; background: #edf6f0; border-radius: 6px; padding: 5px 7px; white-space: nowrap; }
.student-directory { width: 100%; min-width: 640px; }
.row-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 12px; border: 1px solid #cfe2d8; border-radius: 8px; color: var(--green); background: #f2f8f4; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.row-link:hover { color: #fff; background: var(--green); border-color: var(--green); }
.row-link:focus-visible { outline: 3px solid #8fc7aa; outline-offset: 2px; }
.report-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-bottom: 15px; }
.report-summary .metric-card { min-height: 100px; }
.table-note { font-size: 8px; color: #9da8a2; margin-top: 12px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(17,35,29,.38); display: grid; place-items: center; padding: 18px; backdrop-filter: blur(3px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(100%, 480px); max-height: min(90vh, 700px); overflow: auto; background: #fff; border: 1px solid #e8eeea; border-radius: 16px; padding: 25px; position: relative; box-shadow: 0 25px 80px rgba(18,49,38,.18); }
.modal-close { position: absolute; right: 14px; top: 13px; font-size: 22px; color: #8c9791; }
.modal-person { display: flex; align-items: center; gap: 12px; margin: 4px 26px 20px 0; }
.modal-person .student-initials { width: 42px; height: 42px; font-size: 11px; }
.modal-person h2 { font-size: 17px; margin: 0 0 4px; }
.modal-person p { color: #8e9993; font-size: 9px; margin: 0; }
.modal-section { border-top: 1px solid #edf1ee; padding-top: 15px; margin-top: 15px; }
.modal-section h3 { font-size: 10px; margin: 0 0 8px; }
.modal-section p { color: #7b8981; font-size: 9px; line-height: 1.55; margin: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.detail-chip { padding: 10px; background: #f7f9f7; border-radius: 8px; }
.detail-chip small { display: block; color: #96a19b; font-size: 8px; margin-bottom: 5px; }
.detail-chip strong { font-size: 10px; }
.modal textarea { display: block; resize: vertical; min-height: 74px; width: 100%; padding: 10px; border: 1px solid #e3eae5; border-radius: 8px; font-size: 9px; color: var(--ink); margin-top: 7px; }
.form-label { display: block; margin: 13px 0 6px; color: #66766c; font-size: 9px; font-weight: 700; }
.form-input { display: block; width: 100%; height: 38px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid #e3eae5; border-radius: 8px; font-size: 10px; }
.file-input { display: block; width: 100%; padding: 11px; border: 1px dashed #cfdcd2; border-radius: 8px; background: #f9fbf9; color: #64756a; font-size: 9px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: grid; gap: 8px; }
.toast { background: #173c33; color: #fff; padding: 12px 15px; border-radius: 9px; box-shadow: 0 10px 35px rgba(20,50,40,.2); font-size: 10px; animation: toast-in .22s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.empty-state { border: 1px dashed #dfe8e2; border-radius: 10px; padding: 28px; text-align: center; color: #839087; font-size: 10px; }
.empty-state strong { color: #52665a; display: block; margin-bottom: 5px; }

@media (max-width: 1120px) {
  .sidebar { width: 220px; }
  .main-column { margin-left: 220px; }
  .topbar { padding-inline: 25px; }
  .view-root { padding-inline: 25px; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0,1.2fr) minmax(255px,.9fr); }
  .bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .sidebar { transform: translateX(-102%); transition: transform .2s; box-shadow: 15px 0 40px rgba(24,44,39,.08); }
  .sidebar.open { transform: translateX(0); }
  .main-column { margin-left: 0; }
  .topbar { height: 60px; padding-inline: 15px; }
  .mobile-menu { display: grid; margin-right: 5px; }
  .crumbs { margin-right: auto; }
  .topbar-actions { gap: 8px; }
  .search-box { width: 185px; }
  .search-box kbd { display: none; }
  .view-root { padding: 24px 15px 36px; }
  .dashboard-grid, .page-grid { grid-template-columns: 1fr; }
  .attendance-panel { min-height: 0; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
}
@media (max-width: 560px) {
  .crumbs span:first-child, .crumb-divider, .avatar-top { display: none; }
  .crumbs { font-size: 10px; }
  .demo-label { display: none; }
  .search-box { width: 34px; padding: 0 8px; border: 0; background: transparent; }
  .search-box input { width: 0; flex: 0 1 0; opacity: 0; position: absolute; pointer-events: none; }
  .search-box:focus-within { position: absolute; left: 50px; right: 58px; width: auto; background: #f7f9f7; border: 1px solid #edf1ee; z-index: 2; }
  .search-box:focus-within input { position: static; width: auto; flex: 1; opacity: 1; pointer-events: auto; }
  h1 { font-size: 22px; }
  .metrics-grid { gap: 9px; }
  .metric-card { padding: 13px; min-height: 105px; }
  .metric-value { font-size: 22px; }
  .heading-actions .date-chip { display: none; }
  .heading-actions .button { flex: 1; }
  .panel { padding: 15px; }
  .chart-bars { gap: 7px; padding-right: 2px; padding-left: 3px; }
  .bar { width: 11px; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar-right .button { flex: 1; }
  .alert-card { grid-template-columns: 30px minmax(0,1fr); }
  .alert-card > .button, .alert-card > .followup-tag { grid-column: 2; justify-self: start; }
  .report-summary { grid-template-columns: 1fr; }
}
