:root {
  --blue: #364f91;
  --blue-dark: #283e76;
  --blue-pale: #eef2fb;
  --red: #d20011;
  --ink: #1c273b;
  --muted: #6d7789;
  --line: #e6eaf0;
  --bg: #f5f7fa;
  --white: #fff;
  --green: #197c61;
  --green-bg: #edf8f3;
  --amber: #a56717;
  --amber-bg: #fff6e7;
  --danger-bg: #fff0f1;
  --shadow: 0 16px 60px #1c273b12;
  --radius: 14px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
.preline {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.payroll-fieldset {
  min-width: 0;
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}
.payroll-fieldset legend {
  max-width: 100%;
  padding: 0 8px;
  color: var(--blue-dark);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.payroll-fieldset .form-grid {
  margin-top: 18px;
}
.payroll-line .confirm-summary {
  margin-top: 16px;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a2b4e2;
  outline-offset: 3px;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.8px;
  font-weight: 680;
}
h2 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
small {
  font-size: 12px;
}
svg {
  flex: none;
}
img {
  max-width: 100%;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 1000;
  background: var(--blue);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.initial-loading {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.brand {
  height: 97px;
  padding: 24px 27px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand img {
  width: 132px;
  height: 41px;
  object-fit: contain;
}
.brand .cms-label {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--blue);
  border-left: 1px solid var(--line);
  padding-left: 9px;
}
.sidebar-caption {
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 10px 27px 7px;
  color: #97a0ae;
}
.nav-list {
  padding: 0 14px;
  display: grid;
  gap: 4px;
}
.nav-scroll {
  overflow-y: auto;
  flex: 1;
  padding-bottom: 20px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 10px 13px;
  color: #5b6577;
  font-size: 13px;
  min-height: 40px;
}
.nav-item:hover {
  background: var(--bg);
}
.nav-item.active {
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 650;
}
.nav-item.active svg {
  stroke: var(--blue);
}
.nav-item svg {
  stroke: #8892a5;
}
.sidebar-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 25px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.campus-symbol {
  width: 32px;
  height: 32px;
  background: var(--blue-pale);
  border-radius: 9px;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.sidebar-bottom p {
  font-size: 12px;
  font-weight: 600;
}
.sidebar-bottom small {
  color: var(--muted);
  font-size: 10px;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: #ffffffed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.topbar-date {
  font-size: 12px;
  color: var(--muted);
}
.account-button {
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px;
  border-radius: 8px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  flex: none;
  width: 33px;
  height: 33px;
  border-radius: 50%;
}
.account-text {
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
}
.account-text small {
  font-size: 10px;
  color: var(--muted);
}
.menu-toggle {
  display: none;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  flex: none;
}
.icon-button:hover {
  background: var(--bg);
}
.main-content {
  max-width: 1580px;
  margin: 0 auto;
  padding: 31px 35px 40px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  color: var(--blue);
  margin-bottom: 8px;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  max-width: 760px;
  line-height: 1.8;
}
.heading-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  background: white;
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: #f7f9fc;
  text-decoration: none;
}
.button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.button.primary:hover {
  background: var(--blue-dark);
}
.button.danger {
  color: var(--red);
  border-color: #f1cdd2;
}
.button.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
}
.button.small {
  font-size: 11px;
  min-height: 30px;
  padding: 5px 10px;
}
.button.full {
  width: 100%;
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--blue);
  font-weight: 550;
}
.link-button:hover {
  text-decoration: underline;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 11px;
}
.nowrap {
  white-space: nowrap;
}
.align-right {
  text-align: right;
}
.grow {
  flex: 1;
  min-width: 0;
}
.red {
  color: var(--red);
}
.green {
  color: var(--green);
}
.number {
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  word-break: break-all;
}
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f1f3f7;
  color: #667287;
  font-weight: 550;
  white-space: nowrap;
}
.pill.blue {
  background: var(--blue-pale);
  color: var(--blue);
}
.pill.green {
  background: var(--green-bg);
  color: var(--green);
}
.pill.amber {
  background: var(--amber-bg);
  color: var(--amber);
}
.pill.red {
  background: var(--danger-bg);
  color: var(--red);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 7px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  padding: 19px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.panel-heading p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.panel-body {
  padding: 22px;
}
.panel-footer {
  border-top: 1px solid var(--line);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.stack {
  display: grid;
  gap: 20px;
}
.section-gap {
  margin-top: 22px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  padding: 20px 22px;
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.metric-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  gap: 10px;
}
.metric-icon {
  width: 30px;
  height: 30px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.metric-value {
  font-size: 31px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 11px 0 7px;
  color: var(--ink);
}
.metric-unit {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 5px;
  font-weight: 400;
}
.metric-note {
  font-size: 10px;
  color: #8690a1;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 22px;
}
.dashboard-wide {
  grid-column: 1/-1;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 22px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fc;
  border: 1px solid #edf0f5;
  border-radius: 9px;
  text-align: left;
  padding: 15px 11px;
  font-size: 12px;
}
.quick-action svg {
  color: var(--blue);
}
.quick-action:hover {
  background: var(--blue-pale);
  border-color: #d6dff2;
}
.timeline {
  display: grid;
  padding: 0 22px;
}
.timeline-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #eff1f5;
}
.timeline-row:last-child {
  border: 0;
}
.time-block {
  min-width: 58px;
  font-size: 14px;
  font-weight: 600;
  align-self: flex-start;
}
.time-block small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.timeline-mark {
  height: 39px;
  width: 3px;
  align-self: center;
  background: #9baddc;
  border-radius: 4px;
  flex: none;
}
.timeline-title {
  font-size: 12px;
  font-weight: 600;
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.task-list {
  padding: 0 22px;
}
.task-row {
  display: flex;
  gap: 11px;
  padding: 16px 0;
  border-bottom: 1px solid #eff1f5;
  align-items: flex-start;
}
.task-row:last-child {
  border: 0;
}
.task-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--amber-bg);
  color: var(--amber);
  display: grid;
  place-items: center;
  flex: none;
}
.task-title {
  font-size: 12px;
  font-weight: 550;
}
.task-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.task-row button {
  margin-left: auto;
  flex: none;
}
.workflow-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 19px 22px;
  overflow-x: auto;
}
.workflow-step {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 11px;
  color: #727e91;
}
.step-number {
  height: 23px;
  width: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff2f8;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
}
.workflow-arrow {
  color: #b9c0cc;
  font-size: 16px;
  padding: 0 4px;
}
.helper-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid #dfe7f6;
  border-radius: 10px;
  background: #f4f7fd;
  font-size: 12px;
  color: #4b628f;
  line-height: 1.8;
}
.helper-note.warning {
  border-color: #f0dfbe;
  background: #fffaf0;
  color: #8b641f;
}
.helper-note.danger {
  border-color: #f2cdd1;
  background: #fff5f6;
  color: #9b2837;
}
.helper-note svg {
  margin-top: 3px;
}
.inline-empty {
  padding: 33px 25px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.empty-state {
  padding: 58px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  min-height: 290px;
}
.empty-symbol {
  width: 54px;
  height: 54px;
  background: #f1f4fa;
  color: #93a0bc;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
}
.empty-state h3 {
  font-size: 14px;
  margin-bottom: 7px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.8;
  margin-bottom: 19px;
}
.tabs {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 21px;
  overflow: auto;
  scrollbar-width: thin;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  padding: 10px 13px 13px;
}
.tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 650;
}
.collection-toolbar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fbfcfe;
  min-width: 230px;
  flex: 1;
  max-width: 370px;
  color: #939bad;
}
.search-wrap input {
  border: 0;
  background: transparent;
  padding: 9px 0;
  font-size: 12px;
  min-width: 0;
  width: 100%;
  outline: none;
}
.search-wrap:focus-within {
  border-color: #8a9fce;
}
.filter-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  color: #657083;
  font-size: 12px;
  max-width: 200px;
}
.toolbar-meta {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.data-table th {
  background: #f8fafc;
  color: #818a9b;
  font-size: 10px;
  font-weight: 550;
  padding: 12px 20px;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #eff1f5;
  vertical-align: middle;
  max-width: 250px;
  overflow-wrap: anywhere;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fbfcff;
}
.data-table .primary-cell {
  font-weight: 600;
  color: var(--ink);
}
.data-table .cell-secondary {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.data-table .row-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}
.data-table.compact td,
.data-table.compact th {
  padding: 12px 16px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}
.skeleton {
  border-radius: 6px;
  background: #eef1f6;
  animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-row {
  height: 16px;
  margin: 17px 22px;
  max-width: 80%;
}
.skeleton-row:nth-child(even) {
  max-width: 60%;
}
.spinner {
  height: 20px;
  width: 20px;
  border: 2px solid #dce3f1;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 60px;
  color: var(--muted);
  font-size: 12px;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.overlay {
  position: fixed;
  inset: 0;
  background: #18223852;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  backdrop-filter: blur(3px);
}
.dialog {
  background: white;
  width: min(760px, 100%);
  max-height: calc(100dvh - 56px);
  border-radius: 16px;
  box-shadow: 0 30px 100px #15234433;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dialog.wide {
  width: min(1010px, 100%);
}
.dialog-header {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: none;
}
.dialog-title {
  font-size: 19px;
  font-weight: 650;
}
.dialog-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.dialog-body {
  padding: 24px 25px;
  overflow-y: auto;
  min-height: 0;
}
.dialog-footer {
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  flex: none;
  background: #fcfdff;
}
.dialog-footer .footer-note {
  margin-right: auto;
  font-size: 10px;
  color: var(--muted);
  max-width: 60%;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.form-field.full {
  grid-column: 1/-1;
}
.field-label {
  font-size: 12px;
  font-weight: 550;
  color: #46546b;
  display: flex;
  align-items: center;
  gap: 4px;
}
.required-star {
  color: var(--red);
}
.input {
  border: 1px solid #dce2eb;
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
.input:focus {
  border-color: #8ea1ce;
}
.input[readonly],
.input:disabled {
  background: #f5f7fa;
  color: #8b96a9;
}
.input[type="checkbox"] {
  min-height: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
textarea.input {
  min-height: 100px;
  resize: vertical;
  line-height: 1.7;
}
select.input[multiple] {
  min-height: 122px;
}
.field-hint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.form-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 0;
}
.form-check label {
  font-size: 12px;
  color: #54637a;
}
.form-section {
  font-size: 12px;
  font-weight: 650;
  color: var(--blue);
  padding: 16px 0 10px;
  border-bottom: 1px solid var(--line);
  grid-column: 1/-1;
}
.form-error {
  color: #a9283a;
  border: 1px solid #f3d5da;
  background: #fff5f7;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  margin-bottom: 18px;
  white-space: pre-wrap;
}
.form-error:empty {
  display: none;
}
.confirm-summary {
  background: #f7f9fc;
  border-radius: 9px;
  padding: 15px;
  display: grid;
  gap: 8px;
  font-size: 12px;
}
.confirm-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 26px;
}
.detail-field dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-field dd {
  margin: 0;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-field.full {
  grid-column: 1/-1;
}
.detail-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.detail-section h3 {
  margin-bottom: 13px;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.detail-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}
.profile-avatar {
  height: 52px;
  width: 52px;
  border-radius: 13px;
  background: var(--blue-pale);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 600;
}
.profile-name {
  font-size: 20px;
  font-weight: 650;
}
.profile-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.mini-metric {
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 8px;
}
.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.mini-metric strong {
  font-size: 20px;
  display: block;
  margin-top: 4px;
  font-weight: 600;
}
.json-view {
  margin: 0;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: #59677c;
  line-height: 1.7;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow: auto;
}
.details-toggle {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.report-preview {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1.9;
}
.report-preview .report-label {
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 1px;
}
.report-preview h3 {
  font-size: 22px;
  margin: 8px 0;
}
.report-block {
  margin-top: 18px;
}
.report-block h4 {
  font-size: 12px;
  margin: 0 0 6px;
  color: #64718a;
}
.report-block p {
  font-size: 13px;
  white-space: pre-wrap;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.integration-card {
  padding: 21px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
}
.integration-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.integration-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 16px;
}
.metric-definitions {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.bar-row {
  display: grid;
  grid-template-columns: 85px 1fr 55px;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 15px;
}
.bar-track {
  height: 7px;
  background: #edf1f8;
  border-radius: 5px;
  overflow: hidden;
}
.bar-value {
  height: 100%;
  background: #829ace;
  border-radius: 5px;
  width: 0;
}
.bar-level-0 {
  width: 0;
}
.bar-level-1 {
  width: 10%;
}
.bar-level-2 {
  width: 20%;
}
.bar-level-3 {
  width: 30%;
}
.bar-level-4 {
  width: 40%;
}
.bar-level-5 {
  width: 50%;
}
.bar-level-6 {
  width: 60%;
}
.bar-level-7 {
  width: 70%;
}
.bar-level-8 {
  width: 80%;
}
.bar-level-9 {
  width: 90%;
}
.bar-level-10 {
  width: 100%;
}
.calendar-list {
  display: grid;
  gap: 15px;
}
.calendar-day-label {
  font-size: 12px;
  font-weight: 650;
  color: #65768f;
  margin-bottom: 8px;
}
.calendar-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid #9baddc;
  border-radius: 10px;
  margin-bottom: 8px;
}
.calendar-card-time {
  font-size: 16px;
  font-weight: 600;
  min-width: 72px;
}
.calendar-card-time small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.calendar-card-content h3 {
  font-size: 13px;
}
.calendar-card-content p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.calendar-card-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.view-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.view-switch button {
  font-size: 11px;
  padding: 7px 10px;
  border: 0;
  background: white;
  color: var(--muted);
}
.view-switch button.active {
  background: var(--blue-pale);
  color: var(--blue);
}
.login-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(400px, 1fr);
  background: white;
}
.login-aside {
  padding: 52px 10%;
  background: #f1f4fa;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-aside img {
  width: 158px;
  object-fit: contain;
}
.login-copy {
  margin: 65px 0;
  max-width: 400px;
}
.login-copy .eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
}
.login-copy h1 {
  font-size: 36px;
  line-height: 1.5;
  letter-spacing: -1px;
  margin: 18px 0;
}
.login-copy p {
  color: #718097;
  font-size: 13px;
  line-height: 2;
  max-width: 300px;
}
.login-flow {
  margin-top: 34px;
  display: grid;
  gap: 15px;
}
.login-flow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #54678b;
}
.login-flow-item span {
  background: #e2e8f5;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 11px;
  font-weight: 650;
}
.login-aside footer {
  font-size: 10px;
  color: #8d99ab;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-card {
  width: 100%;
  max-width: 345px;
}
.login-card h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}
.login-card > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 30px;
}
.login-security {
  display: flex;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
  margin: 20px 0 35px;
  line-height: 1.8;
}
.login-divider {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}
.login-dev {
  padding: 16px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.login-dev p {
  font-size: 11px;
  margin-bottom: 10px;
  color: var(--muted);
}
.login-dev .input {
  margin-bottom: 10px;
}
.login-links {
  font-size: 11px;
  display: flex;
  gap: 17px;
}
.auth-state {
  min-height: 65dvh;
  display: grid;
  place-items: center;
}
.auth-state > div {
  max-width: 470px;
  text-align: center;
  padding: 30px;
}
.auth-state p {
  margin: 13px 0 23px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.toast-region {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 120;
  display: grid;
  gap: 10px;
  max-width: min(420px, calc(100vw - 40px));
  pointer-events: none;
}
.toast {
  background: #233654;
  color: white;
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.8;
  pointer-events: auto;
}
.toast.error {
  background: #992d3b;
}
.toast button {
  background: none;
  border: 0;
  color: inherit;
  margin-left: auto;
  padding: 0 0 0 8px;
}
.backdrop-nav {
  display: none;
}
.body-locked {
  overflow: hidden;
}
.source-tag {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #7b8699;
  font-size: 10px;
}
.notice-banner {
  margin-bottom: 20px;
}
.mobile-brand {
  display: none;
}
.refund-summary {
  margin: 16px 0;
}
.attendance-count {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 0;
}
.parent-intro {
  border-radius: 14px;
  background: var(--blue);
  color: white;
  padding: 24px 27px;
  margin-bottom: 22px;
}
.parent-intro p {
  font-size: 12px;
  color: #d4ddf3;
  margin-top: 8px;
}
.parent-intro .button {
  margin-top: 18px;
  background: #ffffff15;
  color: white;
  border-color: #ffffff44;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.report-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.report-card h3 {
  font-size: 16px;
  margin: 12px 0 6px;
}
.report-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  white-space: pre-wrap;
}
.report-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
@media (min-width: 1500px) {
  .main-content {
    padding-top: 37px;
  }
  .metric {
    padding: 23px 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  }
}
@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 207px minmax(0, 1fr);
  }
  .sidebar {
    width: 207px;
  }
  .brand {
    padding-left: 22px;
    padding-right: 17px;
  }
  .brand img {
    width: 113px;
  }
  .nav-list {
    padding: 0 10px;
  }
  .topbar {
    padding: 0 24px;
  }
  .main-content {
    padding: 25px 24px;
  }
  .metric-grid {
    gap: 11px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 27px;
  }
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
  }
  .topbar-date {
    display: none;
  }
}
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-wide {
    grid-column: auto;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .login-layout {
    grid-template-columns: 0.85fr 1fr;
  }
  .login-aside {
    padding: 40px 10%;
  }
  .login-main {
    padding: 35px;
  }
  .login-copy h1 {
    font-size: 30px;
  }
  .main-content {
    padding: 24px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    justify-content: flex-end;
  }
  h1 {
    font-size: 25px;
  }
}
@media (max-width: 720px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s ease;
    width: 240px;
    z-index: 52;
  }
  .app-shell.nav-open .sidebar {
    transform: translateX(0);
  }
  .app-shell.nav-open .backdrop-nav {
    display: block;
    position: fixed;
    inset: 0;
    background: #17273d55;
    z-index: 51;
    border: 0;
    border-radius: 0;
  }
  .workspace {
    width: 100%;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 60px;
    padding: 0 17px;
    gap: 12px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
  }
  .mobile-brand img {
    width: 88px;
    height: 29px;
    object-fit: contain;
  }
  .topbar-right {
    gap: 9px;
  }
  .account-text {
    display: none;
  }
  .main-content {
    padding: 23px 17px 35px;
  }
  .page-heading {
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 19px;
  }
  .heading-actions {
    justify-content: flex-start;
  }
  h1 {
    font-size: 25px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .subtitle {
    font-size: 11px;
  }
  .metric-grid {
    gap: 10px;
    margin-bottom: 19px;
  }
  .metric {
    padding: 15px;
  }
  .metric-heading {
    font-size: 10px;
  }
  .metric-icon {
    height: 25px;
    width: 25px;
  }
  .metric-value {
    font-size: 28px;
    margin-top: 10px;
  }
  .metric-note {
    font-size: 9px;
  }
  .dashboard-grid {
    gap: 17px;
  }
  .panel-heading {
    padding: 16px 17px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .panel-body {
    padding: 18px 17px;
  }
  .panel-footer {
    padding: 12px 17px;
  }
  .quick-actions {
    padding: 15px 17px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline,
  .task-list {
    padding: 0 17px;
  }
  .timeline-row {
    gap: 10px;
  }
  .timeline-row > .button {
    font-size: 10px;
    padding: 5px 8px;
  }
  .timeline-title {
    font-size: 11px;
  }
  .time-block {
    font-size: 13px;
    min-width: 48px;
  }
  .timeline-meta {
    font-size: 9px;
  }
  .workflow-strip {
    padding: 16px 17px;
  }
  .collection-toolbar {
    padding: 13px 14px;
    gap: 8px;
  }
  .search-wrap {
    min-width: 160px;
    max-width: none;
  }
  .filter-select {
    max-width: 130px;
  }
  .toolbar-meta {
    width: 100%;
    margin: 0;
  }
  .data-table th {
    padding: 11px 14px;
  }
  .data-table td {
    padding: 14px;
    font-size: 11px;
  }
  .table-wrap {
    overscroll-behavior-x: contain;
  }
  .tabs {
    margin-bottom: 17px;
  }
  .tab {
    padding: 9px 11px 12px;
    font-size: 11px;
  }
  .overlay {
    padding: 10px;
    align-items: center;
  }
  .dialog {
    max-height: calc(100dvh - 20px);
    border-radius: 13px;
  }
  .dialog-header {
    padding: 18px;
  }
  .dialog-title {
    font-size: 17px;
  }
  .dialog-body {
    padding: 19px 18px;
  }
  .dialog-footer {
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .dialog-footer .footer-note {
    max-width: 100%;
    width: 100%;
    margin-bottom: 3px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .form-field.full,
  .form-section {
    grid-column: 1;
  }
  .detail-grid {
    gap: 17px 18px;
  }
  .detail-profile {
    margin-bottom: 17px;
  }
  .detail-actions {
    gap: 6px;
  }
  .mini-metric {
    padding: 11px 8px;
  }
  .mini-metric strong {
    font-size: 17px;
  }
  .mini-metric span {
    font-size: 9px;
  }
  .calendar-card {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
  }
  .calendar-card-time {
    min-width: 58px;
    font-size: 14px;
  }
  .calendar-card-content {
    flex: 1;
    min-width: 0;
  }
  .calendar-card-actions {
    width: 100%;
    margin-left: 68px;
  }
  .login-layout {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
  .login-aside {
    padding: 28px 27px;
    display: block;
  }
  .login-aside img {
    width: 130px;
  }
  .login-copy {
    margin: 28px 0 0;
  }
  .login-copy h1 {
    font-size: 25px;
    line-height: 1.5;
    margin: 10px 0;
  }
  .login-copy p {
    font-size: 11px;
    max-width: 100%;
  }
  .login-flow,
  .login-aside footer,
  .login-copy .eyebrow {
    display: none;
  }
  .login-main {
    padding: 36px 27px;
    flex: 1;
  }
  .login-card {
    max-width: 420px;
  }
  .login-card h2 {
    font-size: 23px;
  }
  .login-card > p {
    font-size: 11px;
    margin-bottom: 24px;
  }
  .toast-region {
    right: 15px;
    bottom: 15px;
    max-width: calc(100vw - 30px);
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .report-preview {
    padding: 19px;
  }
  .view-switch {
    margin-left: auto;
  }
  .parent-intro {
    padding: 21px;
  }
  .button {
    font-size: 11px;
    min-height: 38px;
  }
  .empty-state {
    padding: 40px 22px;
    min-height: 250px;
  }
  .empty-state p {
    font-size: 11px;
  }
  .attendance-mobile-label {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.trend-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 160px;
}
.trend-legend {
  justify-content: center;
  padding-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
}
.trend-series::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.trend-receivedCents::before {
  background: #364f91;
}
.trend-refundedCents::before {
  background: #d20011;
}
.trend-expenseCents::before {
  background: #8994a7;
}
.collection-toolbar .form-field {
  min-width: 130px;
  flex: 1;
  max-width: 250px;
}
@media (max-width: 600px) {
  .table-wrap:has(.record-table) {
    overflow: visible;
  }
  .record-table,
  .record-table tbody {
    display: block;
    width: 100%;
  }
  .record-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .record-table tbody {
    padding: 12px;
    display: grid;
    gap: 12px;
  }
  .record-table tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: white;
  }
  .record-table tbody tr:hover {
    background: white;
  }
  .record-table td,
  .record-table.compact td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    max-width: none;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    min-height: 34px;
  }
  .record-table td::before {
    content: attr(data-label);
    flex: 0 0 6em;
    font-size: 10px;
    font-weight: 400;
    color: var(--muted);
    padding-top: 1px;
  }
  .record-table td:first-child {
    padding-top: 13px;
    padding-bottom: 12px;
    background: #f8fafd;
    border-bottom: 1px solid var(--line);
    margin-bottom: 5px;
  }
  .record-table td .cell-value,
  .record-table td .primary-cell {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .record-table td .primary-cell {
    font-size: 13px;
    font-weight: 650;
  }
  .record-table td.action-cell {
    padding-top: 11px;
    padding-bottom: 12px;
    border-top: 1px solid #f0f2f6;
    margin-top: 5px;
    align-items: center;
  }
  .record-table .row-actions {
    margin-left: auto;
    flex-wrap: wrap;
    gap: 8px;
  }
  .record-table .row-actions .button {
    min-height: 34px;
    padding: 6px 13px;
  }
  .table-wrap > .data-table:not(.record-table) {
    min-width: 550px;
  }
  .dialog-body .record-table tbody {
    padding: 0;
  }
}
