:root {
  --ink: #1f302b;
  --muted: #74817b;
  --paper: #f5f2eb;
  --panel: #fffdf9;
  --line: #e7e4dc;
  --mint: #d8e9dd;
  --green: #317456;
  --coral: #dc725a;
  --yellow: #e9b857;
  --blue: #6c9eb1;
  --shadow: 0 14px 40px rgba(39, 58, 46, 0.06);
}
:root[data-theme="ocean"] {
  --ink: #203747;
  --muted: #718592;
  --paper: #edf5f6;
  --panel: #fbfefd;
  --line: #d8e7e9;
  --mint: #cce8e7;
  --green: #197c82;
  --coral: #d27662;
  --yellow: #c59a42;
  --blue: #397fa1;
  --shadow: 0 14px 40px rgba(32, 74, 83, 0.08);
}
:root[data-theme="terracotta"] {
  --ink: #402e2a;
  --muted: #88736c;
  --paper: #f8f0e9;
  --panel: #fffaf5;
  --line: #ebddd3;
  --mint: #f1d8c8;
  --green: #a85443;
  --coral: #c9654f;
  --yellow: #ce963d;
  --blue: #668da0;
  --shadow: 0 14px 40px rgba(100, 61, 45, 0.08);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px "DM Sans",
    sans-serif;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  color: inherit;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.app-shell,
.login-screen {
  display: none;
}
.app-shell.authenticated {
  display: flex;
}
.app-shell.is-entering {
  animation: dashboard-enter 0.48s ease both;
}
.login-screen {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 34px 20px;
  background: var(--paper);
}
.login-screen:not(.authenticated) {
  display: flex;
}
.login-screen.is-exiting {
  display: flex;
  animation: login-exit 0.48s ease both;
}
.login-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 18%, rgba(216, 233, 221, 0.76), transparent 25%), radial-gradient(circle at 88% 82%, rgba(229, 198, 174, 0.34), transparent 23%);
}
.login-grid {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image: linear-gradient(rgba(49, 116, 86, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(49, 116, 86, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, black, transparent 65%);
}
.login-orbit {
  position: absolute;
  display: block;
  border: 1px solid rgba(49, 116, 86, 0.16);
  border-radius: 50%;
}
.orbit-one {
  width: 420px;
  height: 420px;
  left: -170px;
  top: -150px;
}
.orbit-two {
  width: 290px;
  height: 290px;
  right: -90px;
  bottom: -110px;
  border-color: rgba(220, 114, 90, 0.18);
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 38px 40px 29px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(231, 228, 220, 0.95);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(39, 58, 46, 0.12);
  animation: pop 0.35s ease;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.login-brand strong,
.login-brand span {
  display: block;
}
.login-brand strong {
  font: 800 15px Manrope;
}
.login-brand span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.login-heading {
  margin: 52px 0 27px;
}
.login-heading h1 {
  font: 800 30px Manrope;
  letter-spacing: -1.2px;
  margin: 9px 0 8px;
}
.login-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.login-form label {
  display: block;
  color: #607067;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px;
}
.login-form select,
.login-form input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #dfe3dc;
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-form select:focus,
.login-form input:focus {
  border-color: #8db49a;
  box-shadow: 0 0 0 3px rgba(141, 180, 154, 0.16);
}
.password-field {
  display: block;
  position: relative;
}
.password-field input {
  padding-right: 42px;
}
.password-field button {
  position: absolute;
  top: 7px;
  right: 0;
  height: 39px;
  width: 40px;
  background: transparent;
  color: #91a099;
  font-size: 13px;
}
.login-error {
  min-height: 16px;
  color: #bd604d;
  font-size: 11px;
  margin: -2px 0 8px;
}
.login-submit {
  width: 100%;
  padding: 13px 16px;
}
.login-submit span {
  float: right;
  color: #e4c574;
  font-size: 17px;
  line-height: 12px;
}
.login-note {
  display: flex;
  justify-content: center;
  gap: 7px;
  color: #9aa49e;
  font-size: 10px;
  margin: 27px 0 0;
}
.login-note span {
  color: var(--green);
}
.sidebar {
  width: 256px;
  background: #faf9f5;
  border-right: 1px solid var(--line);
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.brand-lockup,
.profile-card,
.topbar,
.topbar-actions,
.welcome-row,
.panel-heading,
.company-hero,
.company-meta,
.stat-top,
.setting-row {
  display: flex;
  align-items: center;
}
.brand-lockup {
  gap: 11px;
  padding: 0 10px 30px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: var(--ink);
  color: #f9e3a8;
  border-radius: 11px;
  font: 800 13px Manrope;
}
.brand-lockup strong,
.brand-lockup span,
.profile-card strong,
.profile-card span,
.help-card strong,
.help-card span {
  display: block;
}
.brand-lockup strong {
  font: 800 15px Manrope;
  letter-spacing: -0.3px;
}
.brand-lockup span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.profile-card {
  gap: 10px;
  background: #f0eee7;
  border-radius: 12px;
  padding: 11px 10px;
  margin-bottom: 27px;
}
.avatar,
.mini-avatar {
  display: grid;
  place-items: center;
  background: #e5c6ae;
  color: #7a4e3d;
  border-radius: 50%;
  font-weight: 700;
}
.avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.profile-card strong {
  font-size: 12px;
}
.profile-card span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.icon-button {
  margin-left: auto;
  background: transparent;
  color: #93a099;
  letter-spacing: 1px;
}
.nav-label,
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #99a39d;
  margin: 0;
}
.nav-label {
  padding: 0 10px 9px;
}
.nav-label-spaced {
  margin-top: 24px;
}
.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 11px 10px;
  background: transparent;
  border-radius: 9px;
  color: #6f7d76;
  text-align: left;
  font-size: 13px;
  margin: 2px 0;
}
.nav-item.active {
  background: var(--mint);
  color: #27543e;
  font-weight: 700;
}
.nav-icon {
  width: 17px;
  text-align: center;
  font-size: 17px;
  line-height: 1;
}
.sidebar-footer {
  margin-top: auto;
}
.help-card {
  display: flex;
  gap: 9px;
  padding: 13px 10px;
  background: #f1eee6;
  border-radius: 10px;
  margin-bottom: 19px;
}
.help-icon {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  border: 1px solid #adb9ae;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  padding: 0;
  color: #587364;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.help-card strong {
  font-size: 11px;
}
.help-card span:last-child {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.logout-button {
  background: transparent;
  color: #8b938e;
  padding: 8px 10px;
  font-size: 12px;
}
.logout-button span {
  font-size: 18px;
  margin-right: 9px;
}
.main-content {
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 5.2%;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}
.breadcrumb {
  color: #9aa49e;
  font-size: 12px;
}
.breadcrumb b {
  font-weight: 400;
  margin: 0 8px;
  color: #c8cbc5;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}
.topbar-actions {
  gap: 22px;
}
.live-dot {
  font-size: 11px;
  color: #5b8870;
}
.live-dot:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #65a57c;
  border-radius: 50%;
  margin: 0 6px 1px;
}
.notification-button {
  background: transparent;
  color: #74827a;
  font-size: 21px;
  position: relative;
}
.notification-button i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--coral);
  border-radius: 50%;
  top: 1px;
  right: 1px;
}
.notification-button.teacher-visible {
  display: inline-grid;
  place-items: center;
}
.notification-button i[hidden],
.nav-badge[hidden] {
  display: none;
}
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: auto;
  border-radius: 9px;
  background: var(--coral);
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.mini-avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
}
.content-wrap {
  max-width: 1250px;
  padding: 42px 5.2% 70px;
  margin: 0 auto;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.welcome-row {
  justify-content: space-between;
  margin-bottom: 34px;
}
.welcome-row h1,
.view-heading h1 {
  font: 800 31px Manrope;
  letter-spacing: -1.4px;
  margin: 9px 0 6px;
}
.subheading {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.primary-button,
.secondary-button {
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 12px;
}
.primary-button {
  background: var(--ink);
  color: #fffdf7;
  box-shadow: 0 8px 16px rgba(31, 48, 43, 0.13);
}
.primary-button span {
  color: #e4c574;
  margin-right: 8px;
}
.secondary-button {
  border: 1px solid #d7ddd4;
  background: transparent;
  color: #4f685b;
}
.full-width {
  width: 100%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 17px;
}
.stat-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stat-card {
  padding: 17px 18px;
  min-height: 146px;
  position: relative;
  overflow: hidden;
}
.stat-card.highlight {
  background: #e0eee2;
  border-color: #d5e7d8;
}
.stat-top {
  justify-content: space-between;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: var(--green);
  background: #c9e1cf;
  font-size: 17px;
}
.stat-icon.coral {
  color: #bb6554;
  background: #f5ddd4;
}
.stat-icon.blue {
  color: #518196;
  background: #deedf0;
}
.stat-icon.yellow {
  color: #ae7a1d;
  background: #f8eac6;
}
.trend {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 10px;
}
.trend.up {
  background: #c8e4ce;
  color: #4c8560;
}
.muted-label {
  font-size: 10px;
  color: #9ca7a0;
}
.stat-card strong {
  display: block;
  font: 800 27px Manrope;
  margin: 13px 0 3px;
  letter-spacing: -1px;
}
.stat-card > span:not(.trend) {
  font-size: 11px;
  color: #6d7a74;
}
.sparkline {
  position: absolute;
  right: 15px;
  bottom: 16px;
  display: flex;
  align-items: end;
  gap: 3px;
  height: 22px;
}
.sparkline i {
  display: block;
  width: 4px;
  background: #91bc9b;
  border-radius: 4px;
}
.sparkline i:nth-child(1) {
  height: 7px;
}
.sparkline i:nth-child(2) {
  height: 11px;
}
.sparkline i:nth-child(3) {
  height: 8px;
}
.sparkline i:nth-child(4) {
  height: 16px;
}
.sparkline i:nth-child(5) {
  height: 13px;
}
.sparkline i:nth-child(6) {
  height: 18px;
}
.sparkline i:nth-child(7) {
  height: 15px;
}
.sparkline i:nth-child(8) {
  height: 20px;
}
.sparkline i:nth-child(9) {
  height: 17px;
}
.sparkline i:nth-child(10) {
  height: 22px;
}
.progress-track {
  height: 5px;
  background: #edf0ea;
  border-radius: 6px;
  margin: 19px 0 7px;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--coral);
  border-radius: 6px;
}
.stat-card small {
  font-size: 10px;
  color: #9aa49e;
}
.mini-bars {
  display: flex;
  gap: 4px;
  align-items: end;
  height: 20px;
  margin-top: 17px;
}
.mini-bars i {
  display: block;
  width: 7px;
  background: #a6c4ce;
  border-radius: 3px;
}
.mini-bars i:nth-child(1) {
  height: 8px;
}
.mini-bars i:nth-child(2) {
  height: 13px;
}
.mini-bars i:nth-child(3) {
  height: 11px;
}
.mini-bars i:nth-child(4) {
  height: 17px;
}
.mini-bars i:nth-child(5) {
  height: 13px;
}
.mini-bars i:nth-child(6) {
  height: 19px;
}
.mini-bars i:nth-child(7) {
  height: 16px;
}
.stat-card a {
  display: block;
  color: var(--coral);
  font-size: 10px;
  margin-top: 15px;
  text-decoration: none;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 17px;
  margin-bottom: 17px;
}
.panel {
  padding: 23px;
}
.panel-heading {
  justify-content: space-between;
}
.panel h2 {
  font: 800 17px Manrope;
  letter-spacing: -0.5px;
  margin: 7px 0 0;
}
.more-button,
.row-menu {
  background: transparent;
  color: #a0aaa4;
  letter-spacing: 2px;
}
.timeline {
  margin-top: 27px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 45px 22px 1fr auto;
  align-items: start;
  min-height: 61px;
}
.timeline-time {
  color: #818c86;
  font-size: 11px;
  padding-top: 1px;
}
.timeline-line {
  height: 100%;
  border-left: 1px solid #dce4dc;
  position: relative;
}
.timeline-line i {
  position: absolute;
  left: -5px;
  top: 1px;
  width: 9px;
  height: 9px;
  background: #c5d6c9;
  border: 2px solid var(--panel);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #c5d6c9;
}
.timeline-item.done .timeline-line i {
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.timeline-item.next .timeline-line i {
  background: #e3b866;
  box-shadow: 0 0 0 1px #e3b866;
}
.timeline-item > div {
  padding-left: 12px;
}
.timeline-item strong,
.timeline-item span:not(.timeline-time):not(.timeline-line) {
  display: block;
}
.timeline-item strong {
  font-size: 12px;
}
.timeline-item div span {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.status-pill.success {
  background: #dcecdf;
  color: #43805b;
}
.status-pill.warning {
  background: #f7e9c9;
  color: #aa7a26;
}
.status-pill.sick {
  background: #f5ddd4;
  color: #b45f4c;
}
.status-pill.absent {
  background: #ece9e5;
  color: #766f68;
}
.status-pill.neutral {
  background: #eef0ed;
  color: #7e8983;
}
.status-pill.outline {
  border: 1px solid #dce1db;
  color: #8a9690;
}
.company-panel {
  min-height: 277px;
}
.verified-badge {
  background: #e0eee2;
  color: #46805c;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}
.company-hero {
  gap: 13px;
  padding: 24px 0 20px;
}
.company-logo {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: #e1ebe3;
  border-radius: 12px;
  color: #347057;
  font: 800 13px Manrope;
}
.company-hero h3 {
  font: 700 13px Manrope;
  margin: 0 0 5px;
}
.company-hero p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.company-meta {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  gap: 30px;
}
.company-meta div {
  flex: 1;
}
.company-meta span,
.profile-details span {
  display: block;
  font-size: 10px;
  color: #9aa49e;
  margin-bottom: 5px;
}
.company-meta strong,
.profile-details strong {
  font-size: 11px;
}
.full-width.secondary-button {
  padding: 10px;
}
.full-width.secondary-button span {
  float: right;
}
.recent-panel {
  padding-bottom: 6px;
}
.text-button {
  background: transparent;
  color: var(--coral);
  font-size: 11px;
}
.text-button span {
  font-size: 16px;
  margin-left: 5px;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 660px;
  text-align: left;
}
th {
  font-size: 9px;
  letter-spacing: 1px;
  color: #a1aaa4;
  font-weight: 700;
  padding: 0 12px 11px;
}
td {
  border-top: 1px solid #eeeae3;
  padding: 13px 12px;
  color: #68766f;
  font-size: 11px;
}
td strong,
td span {
  display: block;
}
td strong {
  color: var(--ink);
  font-size: 11px;
}
td span:not(.status-pill):not(.location-dot) {
  font-size: 10px;
  color: #a3ada6;
  margin-top: 3px;
}
.muted-text {
  color: #b6beb9;
}
.location-dot {
  display: inline-block !important;
  width: 6px;
  height: 6px;
  background: #569579;
  border-radius: 50%;
  margin-right: 7px;
}
.location-dot.school {
  background: #d79c55;
}
.view-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}
.filter-bar {
  display: flex;
  align-items: end;
  gap: 15px;
  margin-bottom: 17px;
}
.filter-bar label {
  font-size: 10px;
  color: #929d96;
}
.filter-bar select {
  display: block;
  margin-top: 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 32px 10px 11px;
  color: var(--ink);
}
.filter-summary {
  margin-left: auto;
  color: #9aa49e;
  font-size: 11px;
  padding-bottom: 11px;
}
.filter-summary strong {
  color: var(--green);
}
.full-panel {
  padding: 16px 21px 10px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 17px;
}
.student-import-actions,
.teacher-import-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
}
.student-import-actions p,
.teacher-import-actions p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}
.teacher-only {
  display: none;
}
.student-report-content {
  display: none;
}
.report-layout.student-report-content {
  display: none;
}
.report-history.teacher-only.teacher-visible {
  display: block;
}
.student-report-content.student-visible {
  display: block;
}
.report-layout.student-report-content.student-visible {
  display: grid;
}
.teacher-nav-item.teacher-visible {
  display: flex;
}
.student-only {
  display: none;
}
.student-only.student-visible {
  display: block;
  margin-top: 16px;
}
.student-import-actions.teacher-visible {
  display: flex;
}
.teacher-location-panel.teacher-visible {
  display: block;
}
.teacher-location-panel {
  margin-top: 17px;
  padding: 20px 21px;
}
.teacher-location-panel h2 {
  margin: 6px 0;
  font: 800 17px Manrope;
}
.pkl-location-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}
.pkl-location-form label,
.student-location-dialog label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.pkl-location-form input,
.student-location-dialog select,
.student-other-location input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
.pkl-location-form .primary-button {
  white-space: nowrap;
}
.form-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
  margin: 10px 0 0;
}
.student-list-panel {
  margin-top: 17px;
  padding: 20px 21px 10px;
}
.student-list-panel h2 {
  margin: 6px 0 0;
  font: 800 17px Manrope;
}
.student-table-wrap {
  overflow-x: auto;
}
.student-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}
.student-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
  padding: 11px 10px;
}
.student-table td {
  border-top: 1px solid var(--line);
  padding: 12px 10px;
}
.student-location-select {
  min-width: 180px;
  max-width: 260px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
.student-location-dialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}
.student-location-dialog::backdrop {
  background: rgba(26, 40, 34, 0.52);
}
.student-location-dialog h2 {
  margin: 8px 0;
  font: 800 22px Manrope;
}
.student-location-dialog .modal-copy {
  margin-bottom: 20px;
}
.student-location-dialog select {
  margin-top: 8px;
}
.student-location-dialog .primary-button {
  margin-top: 12px;
}
.student-location-dialog .secondary-button {
  margin-top: 8px;
}
.student-other-location {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.student-other-location[hidden] {
  display: none;
}
.student-profile {
  text-align: center;
  padding-top: 35px;
}
.large-avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  background: #e5c6ae;
  color: #7a4e3d;
  border-radius: 50%;
  font: 800 23px Manrope;
  margin: 0 auto 20px;
}
.student-profile h2 {
  margin: 8px 0 4px;
  font: 800 20px Manrope;
}
.profile-details {
  border-top: 1px solid var(--line);
  display: flex;
  text-align: left;
  margin-top: 30px;
  padding-top: 18px;
  gap: 20px;
}
.profile-details div {
  flex: 1;
}
.settings-list {
  padding: 0;
}
.teacher-profile-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1.25fr);
  gap: 17px;
}
.teacher-profile-summary {
  text-align: center;
  padding: 30px 24px 24px;
}
.teacher-profile-summary h2,
.teacher-profile-form h2 {
  margin: 8px 0 5px;
  font: 800 19px Manrope;
}
.teacher-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.teacher-profile-stats strong,
.teacher-profile-stats span {
  display: block;
}
.teacher-profile-stats strong {
  font: 800 22px Manrope;
}
.teacher-profile-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.teacher-profile-form {
  display: grid;
  align-content: start;
  gap: 16px;
}
.teacher-profile-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.teacher-profile-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
.teacher-profile-form input[readonly] {
  background: #f1f0eb;
  color: var(--muted);
}
.teacher-profile-form .form-status {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.notification-actions {
  display: flex;
  gap: 8px;
}
.notification-list {
  padding: 0 20px;
}
.notification-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.notification-item:last-child {
  border-bottom: 0;
}
.notification-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}
.notification-item.unread .notification-mark {
  background: var(--coral);
}
.notification-copy {
  min-width: 0;
}
.notification-copy > * {
  display: block;
}
.notification-category {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
.notification-copy strong {
  margin-top: 4px;
  font-size: 12px;
}
.notification-copy p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.notification-copy time {
  color: #9aa49e;
  font-size: 10px;
}
.notification-link,
.notification-file-link {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--coral);
  font: 700 11px "DM Sans", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.notification-list .empty-state {
  padding: 26px 0;
  color: var(--muted);
  text-align: center;
}
.report-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 17px;
  margin-bottom: 17px;
}
.upload-panel,
.report-info-panel {
  min-height: 310px;
}
.upload-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--mint);
  color: var(--green);
  font-size: 22px;
  margin-bottom: 20px;
}
.upload-panel h2,
.report-info-panel h2 {
  margin: 7px 0 6px;
  font: 800 18px Manrope;
}
.file-dropzone {
  display: grid;
  gap: 4px;
  margin: 22px 0 12px;
  padding: 18px;
  border: 1px dashed #a9c5b0;
  border-radius: 10px;
  background: #f4f8f2;
  color: var(--green);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.file-dropzone:hover,
.file-dropzone:focus-within {
  background: var(--mint);
  border-color: var(--green);
}
.file-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.file-dropzone strong {
  font-size: 12px;
}
.file-dropzone span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-error {
  min-height: 15px;
  color: #bd604d;
  font-size: 11px;
  margin: 0 0 8px;
}
.report-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.report-check:first-of-type {
  margin-top: 18px;
}
.report-check > span {
  color: var(--coral);
  font: 800 11px Manrope;
}
.report-check strong,
.report-check small,
.report-file-row strong,
.report-file-row small {
  display: block;
}
.report-check strong {
  font-size: 11px;
}
.report-check small,
.report-file-row small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin-top: 3px;
}
.report-history {
  padding-bottom: 17px;
}
.empty-report {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 18px;
  padding-top: 18px;
  font-size: 11px;
}
.empty-report > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f0eee7;
  color: #9aa49e;
}
.empty-report p {
  margin: 0;
}
.report-file-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.file-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}
.report-file-row strong {
  color: var(--ink);
  font-size: 11px;
}
.setting-row {
  justify-content: space-between;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border: 0;
}
.theme-setting-row {
  align-items: center;
  gap: 24px;
}
.theme-options {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}
.theme-option {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 48px;
  padding: 0;
  background: transparent;
  color: #8a9690;
  font-size: 9px;
}
.theme-option i {
  display: block;
  width: 27px;
  height: 27px;
  border: 3px solid var(--panel);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d6ddd7;
}
.theme-option[aria-pressed="true"] i {
  box-shadow: 0 0 0 2px var(--green), 0 0 0 4px var(--panel);
}
.theme-garden i {
  background: linear-gradient(135deg, #317456 50%, #d8e9dd 50%);
}
.theme-ocean i {
  background: linear-gradient(135deg, #197c82 50%, #cce8e7 50%);
}
.theme-terracotta i {
  background: linear-gradient(135deg, #a85443 50%, #f1d8c8 50%);
}
.setting-row strong,
.setting-row span {
  display: block;
}
.setting-row strong {
  font-size: 12px;
}
.setting-row span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.toggle {
  width: 39px;
  height: 23px;
  border-radius: 20px;
  background: #cbd3cc;
  padding: 3px;
}
.toggle i {
  display: block;
  width: 17px;
  height: 17px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle.on {
  background: var(--green);
}
.toggle.on i {
  transform: translateX(16px);
}
.select-button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 11px;
}
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 40, 34, 0.42);
  z-index: 5;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open {
  display: flex;
}
.modal {
  position: relative;
  width: min(390px, 100%);
  background: var(--panel);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
  animation: pop 0.25s ease;
}
.modal-close {
  position: absolute;
  right: 17px;
  top: 13px;
  background: transparent;
  font-size: 24px;
  color: #9aa49e;
}
.modal h2 {
  font: 800 23px Manrope;
  margin: 9px 0 6px;
}
.modal-copy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.qr-frame {
  height: 190px;
  border: 1px dashed #afc8b5;
  border-radius: 12px;
  margin: 22px 0 12px;
  display: grid;
  place-items: center;
  background: #f1f6f0;
  position: relative;
  overflow: hidden;
}
.qr-frame video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qr-frame canvas {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qr-frame.camera-active video {
  display: block;
  transform: scaleX(-1);
}
.qr-frame.camera-active .face-guide {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.qr-frame.camera-active > span {
  display: none;
}
.camera-tag {
  display: none;
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  text-align: left;
  pointer-events: none;
}
.qr-frame.camera-active .camera-tag {
  display: block;
}
.camera-tag strong,
.camera-tag span,
.camera-tag time {
  position: static;
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.camera-tag strong {
  font-size: 11px;
}
.camera-tag span,
.camera-tag time {
  background: transparent;
  padding: 0;
}
.qr-frame > span {
  position: absolute;
  bottom: 13px;
  font-size: 10px;
  color: #89a18e;
  background: rgba(241, 246, 240, 0.88);
  padding: 3px 7px;
  border-radius: 5px;
}
.qr-frame.photo-captured video,
.qr-frame.photo-captured .face-guide,
.qr-frame.photo-captured .camera-tag {
  display: none;
}
.qr-frame.photo-captured canvas {
  display: block;
}
.face-guide {
  width: 104px;
  height: 135px;
  border: 2px dashed #75a282;
  border-radius: 48% 48% 42% 42%;
  display: grid;
  place-items: center;
  color: #75a282;
  font-size: 66px;
  line-height: 1;
}
.qr-pattern {
  font-size: 100px;
  line-height: 1;
  color: var(--green);
  opacity: 0.8;
}
.modal-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.modal-actions .secondary-button {
  flex: 1;
  padding: 10px 8px;
  font-size: 10px;
}
.modal-actions span {
  margin-right: 4px;
  color: var(--green);
}
.scan-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}
.scan-status i {
  width: 7px;
  height: 7px;
  background: #e0b45c;
  border-radius: 50%;
}
.scan-status.shared i {
  background: #69a278;
}
.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  display: none;
  align-items: center;
  gap: 11px;
  background: #213b30;
  color: white;
  padding: 14px 17px;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(25, 50, 36, 0.2);
  z-index: 8;
  animation: slide 0.3s ease;
}
.toast.show {
  display: flex;
}
.toast.error {
  background: #542b2b;
  box-shadow: 0 14px 30px rgba(88, 30, 30, 0.24);
}
.toast > span {
  display: grid;
  place-items: center;
  background: #74ae83;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
}
.toast.error > span {
  background: #d76565;
}
.toast.error small {
  color: #f0caca;
}
.toast strong,
.toast small {
  display: block;
}
.toast strong {
  font-size: 11px;
}
.toast small {
  color: #b8d1bf;
  font-size: 10px;
  margin-top: 3px;
}
@keyframes pop {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes login-exit {
  to {
    opacity: 0;
    transform: scale(0.97) translateY(-12px);
  }
}
@keyframes dashboard-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes slide {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 980px) {
  .sidebar {
    width: 210px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .content-wrap {
    padding-left: 4%;
    padding-right: 4%;
  }
}
@media (max-width: 680px) {
  body {
    min-height: 100dvh;
    overflow-x: hidden;
  }
  .app-shell.authenticated {
    display: block;
    min-height: 100dvh;
  }
  .login-card {
    padding: 30px 23px 24px;
  }
  .login-heading {
    margin-top: 42px;
  }
  .sidebar {
    position: fixed;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-right: 0;
    flex-direction: row;
    background: #faf9f5;
  }
  .brand-lockup,
  .profile-card,
  .sidebar-footer {
    display: none;
  }
  .side-nav {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    overflow: hidden;
  }
  .nav-label {
    display: none;
  }
  .nav-item {
    position: relative;
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 5px 2px;
    border-radius: 7px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 9px;
    line-height: 1.1;
  }
  .nav-icon {
    width: auto;
    font-size: 18px;
  }
  .nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    min-width: 15px;
    height: 15px;
    font-size: 9px;
  }
  .topbar {
    height: 58px;
    padding: 0 15px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .breadcrumb b {
    margin: 0 5px;
  }
  .live-dot {
    display: none;
  }
  .topbar-actions {
    gap: 10px;
  }
  .content-wrap {
    width: 100%;
    padding: 24px 14px calc(82px + env(safe-area-inset-bottom));
  }
  .welcome-row,
  .view-heading {
    display: block;
    margin-bottom: 22px;
  }
  .welcome-row h1,
  .view-heading h1 {
    font-size: 24px;
    line-height: 1.2;
  }
  .welcome-row .primary-button {
    width: 100%;
    margin-top: 20px;
  }
  .view-heading .secondary-button {
    margin-top: 14px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .stat-card {
    min-width: 0;
    min-height: 122px;
    padding: 12px;
  }
  .stat-card strong {
    margin: 10px 0 3px;
    font-size: 21px;
  }
  .stat-card > span:not(.trend) {
    font-size: 10px;
    line-height: 1.35;
  }
  .panel {
    min-width: 0;
    padding: 15px;
  }
  .dashboard-grid,
  .profile-grid,
  .report-layout {
    gap: 12px;
  }
  .company-hero {
    align-items: flex-start;
  }
  .company-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
  .company-meta strong {
    font-size: 10px;
  }
  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
  }
  .filter-bar label,
  .filter-bar select {
    width: 100%;
    min-width: 0;
  }
  .filter-bar select {
    padding: 10px 26px 10px 9px;
    font-size: 13px;
  }
  .filter-summary {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }
  .theme-setting-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .filter-summary {
    margin-left: 0;
  }
  .pkl-location-form {
    grid-template-columns: 1fr;
  }
  .pkl-location-form input,
  .pkl-location-form button,
  .student-location-dialog select {
    width: 100%;
    min-width: 0;
  }
  .student-import-actions,
  .teacher-import-actions {
    align-items: flex-start;
  }
  .report-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .teacher-profile-layout {
    grid-template-columns: 1fr;
  }
  .notification-item {
    grid-template-columns: 10px minmax(0, 1fr);
  }
  .notification-link,
  .notification-file-link {
    grid-column: 2;
    justify-self: start;
  }
  .notification-actions .secondary-button {
    padding: 10px;
  }
  .profile-details {
    gap: 12px;
  }
  .full-panel {
    padding: 10px;
  }
  #full-table {
    min-width: 0;
  }
  #full-table thead {
    display: none;
  }
  #full-table tbody {
    display: grid;
    gap: 10px;
  }
  #full-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
  }
  #full-table td {
    min-width: 0;
    padding: 10px 9px;
    border-top: 0;
    overflow-wrap: anywhere;
    font-size: 11px;
  }
  #full-table td::before {
    display: block;
    margin-bottom: 5px;
    color: #929d96;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
  }
  #full-table td:nth-child(1) {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
  }
  #full-table td:nth-child(1)::before { content: "Tanggal"; }
  #full-table td:nth-child(2)::before { content: "Jam masuk"; }
  #full-table td:nth-child(3)::before { content: "Jam pulang"; }
  #full-table td:nth-child(4)::before { content: "Status"; }
  #full-table td:nth-child(5) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
  #full-table td:nth-child(5)::before { content: "Lokasi foto"; }
  #full-table td:nth-child(6) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
  #full-table td:nth-child(6)::before { content: "Detail pengambilan"; }
  #full-table td[colspan] {
    grid-column: 1 / -1;
    text-align: center;
  }
  #full-table td[colspan]::before {
    display: none;
  }
  #full-table td a {
    color: var(--green);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }
  #full-table td strong {
    font-size: 11px;
  }
  .modal-backdrop {
    align-items: flex-end;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  }
  .modal {
    width: 100%;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top));
    overflow-y: auto;
    padding: 24px 17px 17px;
    border-radius: 14px;
  }
  .modal h2 {
    max-width: calc(100% - 28px);
    font-size: 21px;
  }
  .qr-frame {
    height: clamp(150px, 28dvh, 250px);
    margin: 16px 0 12px;
  }
  .modal-actions .secondary-button {
    min-height: 44px;
    font-size: 11px;
  }
  .student-location-dialog {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top));
    overflow-y: auto;
    padding: 22px 18px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .toast {
    right: 15px;
    bottom: 15px;
    left: 15px;
  }
  .topbar-actions {
    gap: 12px;
  }
}

/* ---- Role visibility, dialogs, account menu, and admin pages ---- */
[hidden] {
  display: none !important;
}
button.help-card {
  width: 100%;
  border: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
button.help-card:hover {
  background: #e9e6dc;
}
button.mini-avatar {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.icon-button:focus-visible,
button.mini-avatar:focus-visible,
button.help-card:focus-visible,
.account-menu button:focus-visible,
.app-dialog button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.muted-label {
  color: var(--muted);
  font-size: 12px;
}

.app-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}
.app-dialog::backdrop {
  background: rgba(26, 40, 34, 0.52);
}
.app-dialog h2 {
  margin: 8px 0;
  font: 800 22px Manrope;
}
.app-dialog label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.app-dialog input,
.app-dialog select,
.app-dialog textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
.app-dialog .password-field input {
  padding-right: 42px;
}
.app-dialog .primary-button,
.app-dialog .secondary-button {
  margin-top: 10px;
}
.dialog-body {
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}
.dialog-body ol {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.dialog-body dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.dialog-body dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.dialog-body dd {
  margin: 2px 0 0;
}
.tutorial-dialog {
  width: min(560px, calc(100% - 32px));
}
.tutorial-audience {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-menu {
  position: fixed;
  z-index: 20;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  display: grid;
}
.account-menu button {
  border: 0;
  border-radius: 7px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.account-menu button:hover,
.account-menu button:focus {
  background: var(--mint);
}
.account-menu button.danger {
  color: #b45f4c;
}

.camera-hint {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.download-actions {
  display: grid;
  justify-items: end;
  gap: 4px;
}
.download-actions .form-status {
  margin: 0;
}

.today-panel {
  margin-bottom: 17px;
  padding: 20px 21px;
}
.today-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.today-photo-grid .empty-state {
  grid-column: 1 / -1;
}
.photo-card {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.photo-card strong {
  font-size: 12px;
}
.photo-card span {
  color: var(--muted);
}
.photo-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--mint);
}
.photo-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.photo-thumbs a {
  display: grid;
  gap: 3px;
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
}
.photo-thumbs .photo-thumb {
  width: 72px;
}
.attendance-detail summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.attendance-detail span {
  display: block;
}

.review-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef0ed;
  color: #7e8983;
}
.review-badge.valid {
  background: #dcecdf;
  color: #43805b;
}
.review-badge.perlu_revisi {
  background: #f7e9c9;
  color: #aa7a26;
}
.review-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.row-actions button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.row-actions button.danger {
  color: #b45f4c;
}

.location-request-panel,
.admin-form-panel,
.admin-table-panel {
  margin-top: 17px;
  padding: 20px 21px;
}
.student-location-requests {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--mint);
  font-size: 12px;
  display: grid;
  gap: 6px;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}
.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.admin-form input,
.admin-form select,
.chip-select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
.admin-form-short {
  grid-template-columns: minmax(200px, 360px) auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--mint);
  font-size: 11px;
  font-weight: 700;
}
.chip button {
  border: 0;
  background: transparent;
  color: #b45f4c;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.audit-filter {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.audit-filter select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
.audit-detail {
  max-width: 280px;
  word-break: break-word;
  color: var(--muted);
  font-size: 11px;
}

/* Presensi: pilihan jenis, izin, dan panel hari ini */
.attendance-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.attendance-modes .mode-button {
  padding: 10px 8px;
  font-size: 11px;
}
.attendance-modes .mode-button.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.attendance-modes .mode-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.leave-fields {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.leave-fields[hidden],
.leave-fields [hidden] {
  display: none;
}
.leave-fields textarea,
.leave-fields input[type="file"] {
  width: 100%;
  font: inherit;
}
.today-attendance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 6px 0 10px;
}
.today-attendance div {
  display: grid;
  gap: 2px;
}
.today-attendance span {
  font-size: 11px;
  color: var(--muted, #766f68);
}
.attendance-warning-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7e9c9;
  color: #7a5718;
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.attendance-warning-banner[hidden] {
  display: none;
}
.attendance-note {
  display: block;
  font-size: 11px;
  color: var(--muted, #766f68);
}
.warning-button {
  font-size: 11px;
  padding: 6px 10px;
}

/* Penugasan pembimbing: pilih banyak siswa */
.assignment-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--line, #e2ddd6);
  border-radius: 12px;
  padding: 6px;
  display: grid;
  gap: 2px;
}
.assignment-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.assignment-row:hover {
  background: rgba(0, 0, 0, 0.04);
}
.assignment-row small {
  display: block;
  color: var(--muted, #766f68);
}
.assignment-row em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted, #766f68);
}
.assignment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.assignment-actions span {
  font-size: 12px;
  color: var(--muted, #766f68);
}
.assignment-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-list {
  padding-left: 18px;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

/* Panel penugasan: tata letak vertikal agar daftar siswa memakai lebar penuh */
#teacher-assignment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: end;
}
#teacher-assignment-form .assignment-check,
#teacher-assignment-form .assignment-list,
#teacher-assignment-form .assignment-actions,
#teacher-assignment-form > button[type="submit"] {
  grid-column: 1 / -1;
}
#teacher-assignment-form > button[type="submit"] {
  justify-self: start;
}
.attendance-modes {
  margin-top: 12px;
}
@media (max-width: 720px) {
  #teacher-assignment-form {
    grid-template-columns: 1fr;
  }
}
#teacher-assignment-form label.assignment-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
#teacher-assignment-form label.assignment-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  color: inherit;
}
#teacher-assignment-form .assignment-row strong {
  font-weight: 600;
}
#teacher-assignment-form input[type="checkbox"] {
  width: auto;
  min-width: 0;
  margin: 0;
  flex: none;
}

.leave-fields label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #766f68);
}
.leave-fields textarea {
  padding: 10px 12px;
  border: 1px solid var(--line, #e2ddd6);
  border-radius: 12px;
  background: #fff;
  resize: vertical;
  font-size: 13px;
}
.leave-fields input[type="file"] {
  font-size: 12px;
}


.teacher-import-actions {
  align-items: flex-start;
  margin-top: 8px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5ecea;
  --muted: #a7b5b2;
  --paper: #252e33;
  --panel: #303a40;
  --line: #465258;
  --mint: #3a5149;
  --green: #83c2a0;
  --coral: #e2937d;
  --yellow: #e0c27b;
  --blue: #86bbce;
  --shadow: 0 14px 40px rgba(8, 14, 17, 0.2);
}
:root[data-theme="dark"] body {
  color-scheme: dark;
}
:root[data-theme="dark"] .login-decoration {
  background: radial-gradient(circle at 12% 18%, rgba(86, 132, 108, 0.2), transparent 25%), radial-gradient(circle at 88% 82%, rgba(159, 107, 86, 0.16), transparent 23%);
}
:root[data-theme="dark"] .login-grid {
  background-image: linear-gradient(rgba(155, 194, 171, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 194, 171, 0.045) 1px, transparent 1px);
}
:root[data-theme="dark"] .login-orbit {
  border-color: rgba(131, 194, 160, 0.18);
}
:root[data-theme="dark"] .orbit-two {
  border-color: rgba(226, 147, 125, 0.18);
}
:root[data-theme="dark"] .login-card {
  background: rgba(48, 58, 64, 0.97);
  border-color: var(--line);
  box-shadow: 0 24px 70px rgba(8, 14, 17, 0.34);
}
:root[data-theme="dark"] .login-form label {
  color: var(--muted);
}
:root[data-theme="dark"] .login-form select,
:root[data-theme="dark"] .login-form input {
  background: #283238;
  border-color: var(--line);
  color: var(--ink);
}
:root[data-theme="dark"] .login-form select:focus,
:root[data-theme="dark"] .login-form input:focus {
  border-color: #83c2a0;
  box-shadow: 0 0 0 3px rgba(131, 194, 160, 0.16);
}
:root[data-theme="dark"] .sidebar {
  background: #293338;
}
:root[data-theme="dark"] .profile-card,
:root[data-theme="dark"] .help-card {
  background: #354147;
}
:root[data-theme="dark"] .nav-label,
:root[data-theme="dark"] .eyebrow {
  color: #a7b5b2;
}
:root[data-theme="dark"] .nav-item {
  color: #c1ccca;
}
:root[data-theme="dark"] .nav-item.active {
  background: #3a5149;
  color: #d3eee0;
}
:root[data-theme="dark"] .help-icon {
  border-color: #71817e;
  color: #b7d3c4;
}
:root[data-theme="dark"] .logout-button,
:root[data-theme="dark"] .icon-button,
:root[data-theme="dark"] .breadcrumb,
:root[data-theme="dark"] .notification-button,
:root[data-theme="dark"] .more-button,
:root[data-theme="dark"] .row-menu {
  color: #a7b5b2;
}
:root[data-theme="dark"] .breadcrumb b {
  color: #64716f;
}
:root[data-theme="dark"] .primary-button {
  background: #42785e;
  color: #f5faf7;
  box-shadow: 0 8px 16px rgba(8, 14, 17, 0.24);
}
:root[data-theme="dark"] .secondary-button {
  border-color: #59676c;
  color: #c5d8d0;
}
:root[data-theme="dark"] .secondary-button:hover {
  background: rgba(190, 218, 204, 0.08);
}
:root[data-theme="dark"] .stat-card.highlight,
:root[data-theme="dark"] .student-location-requests {
  background: #354940;
  border-color: #4a6257;
}
:root[data-theme="dark"] .stat-icon {
  background: #3d5a4b;
  color: #a9dec0;
}
:root[data-theme="dark"] .stat-icon.coral {
  background: #59413c;
  color: #f0ad9b;
}
:root[data-theme="dark"] .stat-icon.blue {
  background: #394e56;
  color: #a6d1df;
}
:root[data-theme="dark"] .stat-icon.yellow {
  background: #574e39;
  color: #ecd28e;
}
:root[data-theme="dark"] .trend.up {
  background: #3d5948;
  color: #b4e1c2;
}
:root[data-theme="dark"] .stat-card > span:not(.trend),
:root[data-theme="dark"] .stat-card small,
:root[data-theme="dark"] .muted-label,
:root[data-theme="dark"] .timeline-time,
:root[data-theme="dark"] .filter-bar label,
:root[data-theme="dark"] .filter-summary,
:root[data-theme="dark"] th,
:root[data-theme="dark"] td,
:root[data-theme="dark"] td span:not(.status-pill):not(.location-dot),
:root[data-theme="dark"] .muted-text {
  color: #a7b5b2;
}
:root[data-theme="dark"] .progress-track {
  background: #465258;
}
:root[data-theme="dark"] .status-pill.success {
  background: #354e40;
  color: #a9daba;
}
:root[data-theme="dark"] .status-pill.warning {
  background: #514832;
  color: #ebd18c;
}
:root[data-theme="dark"] .status-pill.sick {
  background: #553d39;
  color: #efb4a5;
}
:root[data-theme="dark"] .status-pill.absent,
:root[data-theme="dark"] .status-pill.neutral {
  background: #414b50;
  color: #c3ccca;
}
:root[data-theme="dark"] .attendance-warning-banner {
  background: #514832;
  color: #f0d998;
}
:root[data-theme="dark"] .assignment-row:hover {
  background: rgba(222, 237, 230, 0.07);
}
:root[data-theme="dark"] .leave-fields textarea {
  background: #283238;
  border-color: var(--line);
  color: var(--ink);
}
:root[data-theme="dark"] .toast {
  background: #294638;
  color: #f1f7f3;
}
:root[data-theme="dark"] .toast > span {
  background: #4d8767;
}
:root[data-theme="dark"] .toast small {
  color: #c0d8c9;
}
:root[data-theme="dark"] .toast.error {
  background: #543735;
}
:root[data-theme="dark"] .toast.error > span {
  background: #bd6960;
}
:root[data-theme="dark"] .toast.error small {
  color: #f0caca;
}
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
  background-color: #283238;
  border-color: var(--line);
  color: var(--ink);
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #92a19e;
}
:root[data-theme="dark"] input[type="checkbox"],
:root[data-theme="dark"] input[type="radio"] {
  accent-color: #83c2a0;
}
:root[data-theme="dark"] .theme-dark i {
  background: linear-gradient(135deg, #303a40 50%, #83c2a0 50%);
}
