:root {
  --green: #187b5a;
  --green-dark: #126346;
  --green-light: #eaf5ef;
  --ink: #25332e;
  --muted: #839089;
  --line: #e8ede9;
  --surface: #f7f9f8;
  --orange: #be8138;
  --bs-primary: #187b5a;
  --bs-body-font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --bs-body-color: #25332e;
  --bs-border-color: #e8ede9;
  --bs-border-radius: 6px;
}
* {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}
body {
  font-size: 14px;
  background: var(--surface);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  color: var(--green-dark);
}
svg.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  flex-shrink: 0;
}
button {
  touch-action: manipulation;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  min-height: 38px;
  padding: 8px 14px;
  white-space: normal;
}
.btn-primary {
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--green-dark);
  --bs-btn-hover-border-color: var(--green-dark);
  --bs-btn-active-bg: var(--green-dark);
  --bs-btn-active-border-color: var(--green-dark);
  --bs-btn-disabled-bg: var(--green);
  --bs-btn-disabled-border-color: var(--green);
}
.btn-light {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: #f0f5f2;
  --bs-btn-hover-border-color: #d4e3da;
  --bs-btn-active-bg: #eaf5ef;
  color: #4c5c54;
}
.btn-danger {
  --bs-btn-bg: #b64b47;
  --bs-btn-border-color: #b64b47;
}
.btn-link {
  color: var(--green);
  padding: 4px;
  font-size: 12px;
}
.btn-sm {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}
.icon-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 7px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #6b7a71;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button:hover {
  background: #ecf1ee;
  color: var(--green);
}
.icon-button:disabled {
  opacity: 0.4;
}
.form-control,
.form-select {
  font-size: 13px;
  min-height: 39px;
  border-color: #dde5df;
  border-radius: 5px;
}
.form-control:focus,
.form-select:focus {
  border-color: #5aab86;
  box-shadow: 0 0 0 3px #187b5a10;
}
.form-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-check-input:checked {
  background-color: var(--green);
  border-color: var(--green);
}
.text-muted {
  color: var(--muted) !important;
}
.small {
  font-size: 12px;
}
.boot-state {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--green);
}
.sidebar {
  width: 228px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 1020;
  padding: 0 16px;
}
.brand {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
}
.brand-mark {
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px 8px 8px 2px;
}
.brand-mark svg {
  width: 23px;
  height: 23px;
}
.brand-name {
  font-size: 21px;
  font-weight: 650;
  color: #203d2f;
}
.brand-sub {
  font-size: 9px;
  color: #94a299;
  margin-top: 1px;
}
.workspace-select {
  margin: 7px 8px 26px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: #58675f;
}
.workspace-select .workspace-dot {
  width: 7px;
  height: 7px;
  background: #51a37a;
  border-radius: 50%;
}
.workspace-select .lucide {
  margin-left: auto;
  width: 14px;
  color: #8c9991;
}
.nav-section-label {
  font-size: 10px;
  color: #9ca79f;
  padding: 0 15px;
  margin: 6px 0 10px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side-nav a {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #6c7871;
  padding: 0 15px;
  border-radius: 5px;
  font-size: 13px;
}
.side-nav a:hover {
  background: #f5f8f6;
}
.side-nav a.active {
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
}
.side-nav .nav-count {
  margin-left: auto;
  color: #438167;
  background: #d9ecdf;
  border-radius: 4px;
  font-size: 10px;
  padding: 2px 6px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 8px 20px;
}
.campus-photo {
  height: 95px;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  filter: saturate(0.65);
  margin-bottom: 11px;
}
.campus-caption {
  font-size: 11px;
  color: #78857c;
  display: flex;
  justify-content: space-between;
}
.sidebar-divider {
  border-top: 1px solid var(--line);
  margin: 23px 0 17px;
}
.system-status {
  font-size: 11px;
  color: #8b988f;
  display: flex;
  align-items: center;
  gap: 7px;
}
.system-status span {
  width: 6px;
  height: 6px;
  background: #57a67e;
  border-radius: 50%;
}
.main-shell {
  margin-left: 228px;
  min-height: 100vh;
}
.topbar {
  height: 71px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 18px;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #a0aaa4;
}
.breadcrumbs strong {
  font-weight: 500;
  color: #54645b;
}
.breadcrumbs svg {
  width: 13px;
  height: 13px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9aa69e;
  background: #f7f9f8;
  border: 1px solid #edf0ee;
  border-radius: 5px;
  padding: 7px 10px;
  width: 205px;
}
.global-search svg {
  width: 15px;
  height: 15px;
}
.global-search input {
  width: 100%;
  background: transparent;
  border: 0;
  font-size: 11px;
  outline: 0;
}
.user-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #526358;
  font-size: 12px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f0eb;
  color: #50755e;
  font-size: 13px;
  flex-shrink: 0;
  font-weight: 600;
}
.avatar.lilac {
  background: #f0ecf7;
  color: #8b75a7;
}
.avatar.blue {
  background: #eaf0f6;
  color: #67869e;
}
.avatar.peach {
  background: #f8eee6;
  color: #a38265;
}
.avatar.small-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.user-copy {
  text-align: left;
  line-height: 1.5;
}
.user-copy small {
  display: block;
  color: #9ba69f;
  font-size: 10px;
}
.mobile-toggle {
  display: none;
}
.content {
  padding: 31px 35px 24px;
  max-width: 1660px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.page-heading h1 {
  font-size: 25px;
  font-weight: 650;
  margin: 0 0 8px;
}
.page-heading p {
  font-size: 12px;
  color: #8a968e;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-heading p svg {
  width: 14px;
  height: 14px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 11px;
  color: #8b988f;
  margin-bottom: 7px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 27px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 19px 20px 17px;
  min-height: 139px;
  position: relative;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7c8980;
  font-size: 12px;
}
.metric-symbol {
  color: #67937a;
  display: grid;
  place-items: center;
  background: #edf5f0;
  width: 30px;
  height: 30px;
  border-radius: 5px;
}
.metric.blue .metric-symbol {
  color: #7295ac;
  background: #edf3f7;
}
.metric.gold .metric-symbol {
  color: #b69258;
  background: #faf4e9;
}
.metric.pink .metric-symbol {
  color: #ba8280;
  background: #faf0ee;
}
.metric-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 12px;
}
.metric-value strong {
  font-size: 31px;
  line-height: 1.2;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.metric-value span {
  font-size: 11px;
  color: #95a097;
}
.metric-bottom {
  margin-top: 13px;
  font-size: 10px;
  color: #9ba59f;
  display: flex;
  gap: 6px;
  align-items: center;
}
.metric-bottom .accent {
  color: var(--green);
}
.metric-bottom svg {
  width: 12px;
  height: 12px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 25px;
}
.section {
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.section-head h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-head h2 .count {
  font-weight: 400;
  font-size: 11px;
  color: #98a299;
}
.section-head .sub {
  font-size: 11px;
  color: #94a097;
}
.surface {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  align-items: center;
  gap: 19px;
}
.tab-button {
  background: transparent;
  border: 0;
  color: #96a198;
  font-size: 12px;
  padding: 3px 0;
  position: relative;
  white-space: nowrap;
}
.tab-button.active {
  color: var(--green);
  font-weight: 600;
}
.tab-button.active:after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}
.tab-button span {
  font-size: 10px;
  margin-left: 4px;
}
.table {
  font-size: 12px;
  margin: 0;
  --bs-table-color: #59685e;
  --bs-table-bg: #fff;
  --bs-table-border-color: #edf0ee;
}
.table th {
  background: #fbfcfb;
  color: #909c93;
  font-size: 11px;
  font-weight: 400;
  padding: 13px 16px;
  white-space: nowrap;
}
.table td {
  vertical-align: middle;
  padding: 16px;
  border-bottom-color: #edf0ee;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover td {
  background: #fcfdfc;
}
.student-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.student-cell strong {
  font-size: 12px;
  font-weight: 500;
  color: #435348;
}
.student-cell small {
  display: block;
  font-size: 10px;
  color: #9ba59e;
  margin-top: 3px;
}
.person-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
}
.person-link:hover strong {
  color: var(--green);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  background: #f1f3f2;
  color: #909b94;
}
.status-badge:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.status-badge.present,
.status-badge.active {
  color: #4e9270;
  background: #edf6ef;
}
.status-badge.leave {
  color: #b59458;
  background: #fbf5e8;
}
.status-badge.absent,
.status-badge.inactive {
  color: #bf8280;
  background: #fbefed;
}
.status-badge.pending {
  color: #8e9da5;
  background: #eff3f5;
}
.status-badge.cancelled,
.status-badge.paused {
  color: #9c9d99;
  background: #f0f0ee;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 17px;
  border-top: 1px solid var(--line);
  color: #9ca69f;
  font-size: 10px;
}
.pagination-tools {
  display: flex;
  gap: 4px;
  align-items: center;
}
.pagination-tools button {
  height: 25px;
  min-width: 26px;
  width: 26px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  font-size: 10px;
  color: #9ba69e;
}
.pagination-tools button.active {
  color: var(--green);
  border-color: #c5ddcf;
  background: #f2f8f4;
}
.pagination-tools svg {
  width: 12px;
}
.low-heading {
  color: #927441;
  background: #fbf5e9;
  padding: 11px 12px;
  font-size: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.low-heading svg {
  width: 14px;
  height: 14px;
}
.low-row {
  display: flex;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.low-row .low-info {
  flex: 1;
  min-width: 0;
}
.low-row strong {
  font-size: 12px;
  font-weight: 500;
}
.low-row small {
  display: block;
  color: #a0aaa2;
  font-size: 10px;
  margin-top: 5px;
}
.low-row .remaining {
  text-align: right;
  font-size: 11px;
  color: #b78a4c;
}
.low-row .remaining b {
  font-size: 19px;
  font-weight: 500;
  margin-right: 3px;
}
.low-row .remaining small {
  color: #b6bdb8;
  font-size: 9px;
}
.section-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  margin-top: 17px;
  color: #799583;
}
.section-link svg {
  width: 13px;
  height: 13px;
}
.trend-section {
  margin-top: 26px;
}
.chart-legend {
  font-size: 10px;
  color: #96a299;
  display: flex;
  gap: 7px;
  align-items: center;
}
.chart-legend:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #65a888;
}
.bar-chart {
  height: 169px;
  display: flex;
  gap: 17px;
  padding: 10px 6px 24px 35px;
  position: relative;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 39px,
    #edf1ee 39px,
    #edf1ee 40px
  );
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}
.chart-axis {
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #aeb8b0;
  font-size: 9px;
}
.bar-column {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  min-width: 0;
}
.bar {
  background: #bedbcb;
  width: 32px;
  max-width: 70%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: height 0.35s;
}
.bar-column:last-child .bar {
  background: #579b77;
}
.bar:hover {
  background: #72ad8b;
}
.bar-label {
  position: absolute;
  bottom: -23px;
  font-size: 9px;
  color: #9aa69e;
  white-space: nowrap;
}
.bar-number {
  position: absolute;
  top: -19px;
  left: 0;
  right: 0;
  text-align: center;
  color: #7b9384;
  font-size: 9px;
}
.activity-section {
  margin-top: 29px;
}
.activity-item {
  padding: 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.activity-dot {
  background: #f0f5f2;
  color: #8ba693;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.activity-dot svg {
  width: 13px;
  height: 13px;
}
.activity-text {
  flex: 1;
  font-size: 11px;
  line-height: 1.65;
  color: #617368;
}
.activity-text small {
  display: block;
  font-size: 9px;
  color: #aab2ac;
}
.activity-amount {
  font-size: 11px;
  color: #75947d;
}
.page-footer {
  margin-top: 31px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #a6afa9;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0 20px;
}
.filters .form-control,
.filters .form-select {
  width: auto;
  min-width: 130px;
  max-width: 230px;
  height: 38px;
  background-color: #fff;
}
.filters .search-field {
  min-width: 210px;
}
.filter-label {
  font-size: 11px;
  color: #94a095;
}
.date-navigation {
  display: flex;
  align-items: center;
  gap: 7px;
}
.date-navigation .form-control {
  width: 146px;
  min-width: 0;
}
.table-responsive {
  overflow-x: auto;
  scrollbar-width: thin;
}
.wide-table {
  min-width: 860px;
}
.editable-table {
  min-width: 1030px;
}
.editable-table td {
  padding: 12px;
}
.editable-table .form-select {
  min-width: 91px;
  padding-left: 8px;
  font-size: 11px;
  min-height: 34px;
}
.editable-table input[type="number"] {
  width: 69px;
  min-height: 34px;
  font-size: 12px;
  padding: 6px;
}
.editable-table .notes-input {
  min-width: 115px;
  max-width: 170px;
  font-size: 11px;
  min-height: 34px;
}
.editable-table tr.dirty td {
  background: #fcfcf3;
}
.bulk-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 15px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 4;
  font-size: 12px;
}
.bulk-bar .buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.empty-state {
  text-align: center;
  padding: 55px 20px;
  color: #99a69b;
}
.empty-state svg {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  color: #91ad9b;
}
.empty-state h3 {
  font-size: 15px;
  color: #718378;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.8;
}
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.teacher-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 23px;
}
.teacher-top {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 20px;
}
.teacher-top .avatar {
  width: 43px;
  height: 43px;
  font-size: 16px;
}
.teacher-top h2 {
  font-size: 15px;
  margin-bottom: 7px;
}
.teacher-top .icon-button {
  margin-left: auto;
}
.teacher-info {
  font-size: 12px;
  color: #88968c;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.teacher-info svg {
  width: 14px;
  height: 14px;
}
.teacher-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding-top: 15px;
  font-size: 12px;
  color: #8d9b90;
}
.teacher-bottom strong {
  font-size: 20px;
  color: #4d6c57;
  font-weight: 500;
  margin-right: 5px;
}
.detail-top {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.detail-top .avatar {
  width: 56px;
  height: 56px;
  font-size: 22px;
}
.detail-top h2 {
  font-size: 19px;
  margin-bottom: 7px;
}
.detail-balance {
  margin-left: auto;
  text-align: right;
}
.detail-balance strong {
  font-size: 29px;
  font-weight: 600;
  color: var(--green);
}
.detail-balance small {
  display: block;
  color: #97a69b;
  font-size: 11px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
  padding: 25px 0;
}
.detail-item small {
  display: block;
  color: #9aa69d;
  font-size: 11px;
  margin-bottom: 8px;
}
.detail-item span {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.detail-tabs {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 15px 0;
}
.detail-tabs .tab-button.active:after {
  bottom: -17px;
}
.modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 70px #15312522;
}
.modal-header {
  padding: 21px 25px;
  border-bottom: 1px solid var(--line);
}
.modal-title {
  font-size: 18px;
  font-weight: 600;
}
.modal-body {
  padding: 25px;
}
.modal-footer-actions {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal .row {
  --bs-gutter-x: 20px;
  --bs-gutter-y: 18px;
}
.form-error {
  color: #b6554c;
  background: #fcf0ed;
  font-size: 12px;
  line-height: 1.8;
  padding: 10px 13px;
  border-radius: 5px;
  margin-bottom: 18px;
  display: none;
}
.form-error:not(:empty) {
  display: block;
}
.form-note {
  font-size: 11px;
  color: #99a69b;
  margin-top: 7px;
}
.student-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 13px;
  gap: 0 15px;
}
.student-option {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f3f0;
  font-size: 12px;
  min-width: 0;
}
.student-option small {
  color: #97a398;
  margin-left: auto;
  font-size: 10px;
}
.report-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  margin-top: 15px;
}
.settings-layout {
  max-width: 790px;
}
.settings-band {
  border-bottom: 1px solid var(--line);
  padding: 22px 0 26px;
}
.settings-band:first-child {
  padding-top: 0;
}
.settings-band h2 {
  font-size: 15px;
  margin: 0 0 23px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 17px 0;
}
.setting-row .form-control,
.setting-row .form-select {
  width: 270px;
  max-width: 50%;
  background: #fff;
}
.setting-row label {
  font-size: 13px;
}
.setting-row label small {
  display: block;
  font-size: 11px;
  color: #99a69d;
  margin-top: 6px;
}
.form-switch .form-check-input {
  width: 36px;
  height: 20px;
}
.toast {
  background: #fff;
  border: 1px solid #dce9df;
  box-shadow: 0 6px 25px #233d2512;
  color: #416a51;
  font-size: 12px;
}
.toast.error {
  color: #ac564d;
  border-color: #eed4d0;
}
.toast-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
}
.toast .btn-close {
  margin-left: auto;
  font-size: 9px;
}
.danger-text {
  color: #bb746b;
}
.positive {
  color: var(--green);
}
.negative {
  color: #ad8b64;
}
.audit-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  background: #f6f8f6;
  padding: 15px;
  max-height: 280px;
  overflow: auto;
}
.row-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: white;
}
.login-scene {
  position: relative;
  min-height: 100vh;
  background: #cbd5c8 url("/assets/campus.jpg") center/cover;
}
.login-scene:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #183e2922 40%, #10281abd);
}
.login-caption {
  position: absolute;
  bottom: 70px;
  left: 60px;
  right: 35px;
  color: #fff;
  z-index: 1;
}
.login-caption p {
  font-size: 13px;
  opacity: 0.78;
  margin-bottom: 14px;
}
.login-caption h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.7;
}
.login-side {
  display: flex;
  flex-direction: column;
  padding: 27px 45px;
}
.login-side .brand {
  padding: 0;
  height: 55px;
}
.login-form-wrap {
  width: 100%;
  max-width: 350px;
  margin: auto;
  padding: 40px 0;
}
.login-form-wrap h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 11px;
}
.login-intro {
  font-size: 12px;
  color: #94a198;
  margin-bottom: 32px;
}
.login-form-wrap .form-control {
  height: 46px;
  font-size: 14px;
}
.login-form-wrap .btn-primary {
  height: 45px;
  width: 100%;
  margin-top: 10px;
}
.login-footer {
  color: #a8b1aa;
  font-size: 10px;
  text-align: center;
  padding: 15px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 43px;
}
.password-wrap .icon-button {
  position: absolute;
  right: 6px;
  top: 5px;
}
.demo-login {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #a0aba3;
}
.demo-login button {
  font-size: 11px;
}
.loading-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: #8c9f90;
  font-size: 12px;
}
.error-panel {
  border-left: 3px solid #bc8478;
  padding: 20px;
  background: #fff;
  line-height: 1.8;
  color: #8f675b;
  font-size: 13px;
}
.mobile-overlay {
  display: none;
}
.session-label {
  font-size: 10px;
  color: #9ca79f;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table .hour-value {
  font-variant-numeric: tabular-nums;
  color: #59745f;
}
.table .warning-value {
  color: #bd9459;
}
.checkbox-cell {
  width: 35px;
  padding-right: 0 !important;
}
.page-select {
  width: 80px;
  min-height: 28px;
  font-size: 10px;
}
.settings-actions {
  display: flex;
  gap: 10px;
  padding-top: 22px;
}
.report-date {
  font-size: 11px;
  color: #97a299;
}
.mobile-only {
  display: none;
}
@media (min-width: 1450px) {
  .content {
    padding: 35px 43px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 305px;
    gap: 30px;
  }
  .metric {
    padding: 22px 24px;
  }
  .table td {
    padding-top: 19px;
    padding-bottom: 19px;
  }
  .sidebar {
    width: 244px;
  }
  .main-shell {
    margin-left: 244px;
  }
  .bar-chart {
    height: 184px;
  }
}
@media (max-width: 1199px) {
  .sidebar {
    width: 204px;
    padding: 0 12px;
  }
  .main-shell {
    margin-left: 204px;
  }
  .content {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 20px;
  }
  .metric {
    padding: 16px 14px;
  }
  .metric-grid {
    gap: 12px;
  }
  .table td,
  .table th {
    padding-left: 11px;
    padding-right: 11px;
  }
  .dashboard-table .grade-column {
    display: none;
  }
  .global-search {
    width: 165px;
  }
  .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .user-copy {
    display: none;
  }
}
@media (max-width: 991px) {
  .sidebar {
    width: 188px;
  }
  .main-shell {
    margin-left: 188px;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand {
    padding: 0 7px;
  }
  .workspace-select {
    margin: 4px 3px 23px;
    font-size: 11px;
  }
  .side-nav a {
    padding: 0 12px;
    gap: 10px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .activity-section {
    margin-top: 0;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .global-search {
    display: none;
  }
  .report-columns {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 25px 22px;
  }
  .login-caption {
    left: 35px;
  }
  .login-caption h2 {
    font-size: 27px;
  }
  .login-side {
    padding: 25px;
  }
  .teacher-grid {
    gap: 14px;
  }
}
@media (max-width: 767px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 228px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar.open + .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #20332955;
    z-index: 1019;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
    gap: 8px;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .breadcrumbs {
    margin-right: auto;
    font-size: 11px;
    gap: 7px;
  }
  .breadcrumbs > span {
    display: none;
  }
  .topbar-right {
    gap: 6px;
  }
  .topbar-right > .icon-button {
    display: none;
  }
  .content {
    padding: 23px 17px 18px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 21px;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading p {
    font-size: 10px;
    line-height: 1.6;
    flex-wrap: wrap;
    gap: 5px;
  }
  .heading-actions {
    gap: 7px;
    justify-content: flex-end;
  }
  .heading-actions .btn {
    font-size: 11px;
    padding: 7px 10px;
    min-height: 34px;
  }
  .heading-actions .btn svg {
    width: 14px;
    height: 14px;
  }
  .metric-grid {
    gap: 11px;
    margin-bottom: 25px;
  }
  .metric {
    min-height: 128px;
    padding: 15px 13px;
  }
  .metric-top {
    font-size: 11px;
  }
  .metric-value strong {
    font-size: 28px;
  }
  .metric-symbol {
    width: 27px;
    height: 27px;
  }
  .metric-bottom {
    font-size: 9px;
    margin-top: 10px;
  }
  .section-head h2 {
    font-size: 14px;
  }
  .dashboard-aside {
    grid-template-columns: 1fr;
    margin-top: 4px;
    gap: 28px;
  }
  .dashboard-table {
    min-width: 590px;
  }
  .dashboard-table .grade-column {
    display: table-cell;
  }
  .table-toolbar {
    padding: 14px 12px;
  }
  .tabs {
    gap: 16px;
  }
  .tab-button {
    font-size: 11px;
  }
  .table-toolbar .btn {
    font-size: 10px;
  }
  .table td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .table-footer {
    padding: 12px;
  }
  .trend-section {
    margin-top: 25px;
  }
  .bar-chart {
    height: 170px;
    gap: 10px;
  }
  .teacher-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    gap: 8px;
    padding-bottom: 17px;
  }
  .filters .form-control,
  .filters .form-select {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 130px;
    width: 130px;
    font-size: 12px;
  }
  .filters .search-field {
    min-width: 100%;
    max-width: 100%;
  }
  .filters .date-navigation {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
  .filters .date-navigation .form-control {
    flex: 0 0 145px;
  }
  .filters .filter-label {
    flex-basis: 100%;
    margin-top: 5px;
  }
  .bulk-bar {
    padding: 12px;
    align-items: flex-start;
    font-size: 11px;
    position: fixed;
    inset: auto 0 0;
    box-shadow: 0 -4px 16px #2946320a;
  }
  body:has(.bulk-bar) .content {
    padding-bottom: 95px;
  }
  .bulk-bar .buttons {
    gap: 6px;
    justify-content: flex-end;
  }
  .bulk-bar .btn {
    font-size: 11px;
    padding: 7px 10px;
  }
  .bulk-bar > span {
    padding-top: 9px;
    white-space: nowrap;
  }
  .page-footer {
    font-size: 9px;
    flex-wrap: wrap;
    line-height: 1.7;
    margin-top: 24px;
  }
  .modal-dialog {
    margin: 12px;
  }
  .modal-header {
    padding: 19px;
  }
  .modal-body {
    padding: 19px;
  }
  .modal-title {
    font-size: 17px;
  }
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 15px;
  }
  .detail-top {
    gap: 12px;
  }
  .detail-top .avatar {
    width: 44px;
    height: 44px;
  }
  .detail-top h2 {
    font-size: 17px;
  }
  .detail-balance strong {
    font-size: 24px;
  }
  .detail-balance .btn {
    font-size: 10px;
  }
  .student-selector {
    grid-template-columns: 1fr;
  }
  .setting-row {
    gap: 15px;
  }
  .setting-row .form-control {
    width: 170px;
  }
  .setting-row label {
    font-size: 12px;
  }
  .setting-row label small {
    font-size: 10px;
  }
  .login-layout {
    display: block;
  }
  .login-scene {
    display: none;
  }
  .login-side {
    min-height: 100vh;
    padding: 25px 27px;
  }
  .login-form-wrap {
    padding: 48px 0;
  }
  .login-side .brand {
    height: 65px;
  }
  .mobile-only {
    display: block;
  }
  .audit-json {
    font-size: 10px;
  }
  .toast-container {
    max-width: 100%;
    width: 370px;
  }
}
.chart-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
  max-width: 100%;
}
.report-columns > section {
  min-width: 0;
}
.workspace-select > span:not(.workspace-dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teacher-top > div {
  min-width: 0;
}
.teacher-top h2,
.detail-top h2 {
  overflow-wrap: anywhere;
}
.detail-top > div {
  min-width: 0;
}
.detail-top .detail-balance {
  flex-shrink: 0;
}
.activity-text {
  overflow-wrap: anywhere;
}
.metric-bottom {
  color: #7d8c81;
}
.table th {
  color: #728477;
}
.student-cell small,
.table-footer,
.page-heading p {
  color: #819184;
}
.dashboard-table td {
  padding-top: 12px;
  padding-bottom: 12px;
}
.dashboard-table .student-cell {
  min-height: 33px;
}
@media (max-width: 767px) {
  .dashboard-table {
    min-width: 0;
    width: 100%;
  }
  .dashboard-table .grade-column,
  .dashboard-table th:nth-child(3),
  .dashboard-table td:nth-child(3) {
    display: none;
  }
  .dashboard-table td,
  .dashboard-table th {
    padding-left: 10px;
    padding-right: 10px;
  }
  .editable-table {
    display: block;
    min-width: 0;
  }
  .editable-table thead {
    display: none;
  }
  .editable-table tbody {
    display: block;
  }
  .editable-table tr {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 100px;
    gap: 7px 9px;
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
  }
  .editable-table td {
    border: 0;
    padding: 0;
    background: transparent !important;
    min-width: 0;
  }
  .editable-table td:nth-child(1) {
    grid-area: 1 / 1;
    align-self: center;
  }
  .editable-table td:nth-child(2) {
    grid-area: 1 / 2;
  }
  .editable-table td:nth-child(3) {
    grid-area: 2 / 2;
    color: #8d9c91;
    font-size: 10px;
  }
  .editable-table td:nth-child(4) {
    grid-area: 2 / 3;
    text-align: right;
    font-size: 10px;
    color: #8d9c91;
  }
  .editable-table td:nth-child(5) {
    grid-area: 3 / 2;
  }
  .editable-table td:nth-child(6) {
    grid-area: 3 / 3;
  }
  .editable-table td:nth-child(5):before,
  .editable-table td:nth-child(6):before {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    color: #87978c;
  }
  .editable-table td:nth-child(5):before {
    content: "到课状态";
  }
  .editable-table td:nth-child(6):before {
    content: "本次课时";
  }
  .editable-table td:nth-child(7) {
    grid-area: 1 / 3;
    text-align: right;
    align-self: center;
    font-size: 12px;
  }
  .editable-table td:nth-child(7):before {
    content: "余 ";
    color: #8d9c91;
    font-size: 10px;
  }
  .editable-table td:nth-child(7):after {
    content: " 课时";
    color: #8d9c91;
    font-size: 10px;
  }
  .editable-table td:nth-child(8) {
    grid-area: 4 / 2;
  }
  .editable-table td:nth-child(9) {
    grid-area: 4 / 3;
  }
  .editable-table .form-select,
  .editable-table .form-control {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .editable-table .row-actions {
    justify-content: flex-end;
  }
  .editable-table .student-cell {
    white-space: normal;
  }
  .editable-table tr.dirty {
    background: #fbfbf0;
  }
  .editable-table tr.dirty td {
    background: transparent !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
