:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #26372e;
  --muted: #7b8981;
  --line: #e6ece8;
  --green: #248463;
  --green-soft: #eaf5ef;
  --blue: #4b82b4;
  --blue-soft: #edf4fb;
  --amber: #b57b2c;
  --amber-soft: #fcf3e3;
  --red: #bd5b55;
  --red-soft: #fbefed;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 13px; line-height: 1.6; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a, input, select, textarea { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); }
button { letter-spacing: 0; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; letter-spacing: 0; }
h1 { font-size: 25px; font-weight: 650; line-height: 1.4; }
h2 { font-size: 15px; font-weight: 650; line-height: 1.5; }
h3 { font-size: 15px; font-weight: 600; }
small { font-size: 11px; }
.app-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: 25px 16px 14px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 10px 27px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 40px; background: var(--green); color: white; border-radius: 7px; }
.brand-mark svg { width: 24px; height: 24px; }
.brand strong { display: block; font-size: 18px; font-weight: 650; }
.brand small { display: block; color: var(--muted); margin-top: 2px; font-size: 11px; }
#navigation { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 12px; }
.nav-group { display: block; font-size: 10px; color: #9ba69f; margin: 19px 12px 7px; }
.nav-group:first-child { margin-top: 0; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; border: 0; background: none; border-radius: 5px; padding: 0 12px; text-align: left; color: #697a70; margin-bottom: 3px; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { background: #f5f8f6; color: var(--ink); }
.nav-item.active { background: var(--green-soft); color: var(--green); font-weight: 600; }
.nav-item small { margin-left: auto; padding: 0 5px; min-width: 20px; text-align: center; background: #d8ecdf; color: var(--green); border-radius: 4px; }
.sidebar-bottom { margin-top: auto; padding-top: 18px; }
.local-status { display: flex; align-items: center; gap: 7px; padding: 0 13px 14px; color: #88958d; font-size: 10px; }
.local-status span, .status-dot { width: 5px; height: 5px; display: inline-block; background: #81b397; border-radius: 50%; }
.identity-button { display: flex; align-items: center; gap: 10px; padding: 12px 7px 0; border: 0; border-top: 1px solid var(--line); background: none; width: 100%; text-align: left; }
.identity-button strong { font-size: 12px; font-weight: 600; display: block; }
.identity-button small { display: block; color: var(--muted); font-size: 10px; }
.identity-button > svg { margin-left: auto; width: 14px; }
.avatar, .topbar-avatar, .employee-avatar { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; border-radius: 50%; background: #e7efe9; color: #64806b; font-size: 12px; }
.workspace { min-width: 0; }
.topbar { height: 67px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 32px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.breadcrumb svg { width: 12px; height: 12px; color: #b1bab4; }
.breadcrumb strong { color: #55695d; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.campus-control { display: flex; align-items: center; gap: 7px; }
.campus-control svg { color: #8a9990; width: 15px; height: 15px; }
.campus-control select { border: 0; background: none; width: 107px; padding-right: 12px; font-size: 12px; min-height: 32px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #819087; width: 32px; height: 32px; border-radius: 5px; flex-shrink: 0; padding: 0; position: relative; }
.icon-button:hover { color: var(--green); background: var(--green-soft); }
.notification-dot { position: absolute; top: 5px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: #cb9b54; border: 1px solid white; }
.mobile-menu, .sidebar-backdrop { display: none; }
#main { padding: 29px 32px 14px; outline: none; min-height: calc(100vh - 110px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.date-control { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); padding: 0 11px; height: 34px; border-radius: 5px; }
.date-control svg { width: 14px; color: #8b998f; }
.date-control select { font-size: 11px; border: none; background: transparent; padding: 0; min-height: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 0 13px; border-radius: 5px; border: 1px solid #dfe7e1; background: white; color: #617368; font-size: 12px; white-space: nowrap; }
.button svg { width: 15px; height: 15px; }
.button:hover { background: #f3f7f4; border-color: #b9cbbf; }
.button.primary { background: var(--green); border-color: var(--green); color: white; }
.button.primary:hover { background: #196c50; }
.button.danger { color: var(--red); background: var(--red-soft); border-color: #efd6d2; }
.button.small { min-height: 29px; padding: 0 11px; font-size: 11px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 0; border: 0; background: transparent; color: var(--green); font-size: 11px; white-space: nowrap; }
.text-button svg { width: 13px; height: 13px; }
.text-button:hover { color: #165e44; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 2px 7px; font-size: 10px; line-height: 1.5; border-radius: 4px; background: #f0f3f1; color: #7e8c83; white-space: nowrap; font-weight: 500; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.metrics-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); background: var(--surface); margin-bottom: 20px; padding: 22px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 0 23px; border-right: 1px solid var(--line); min-width: 0; }
.metric:last-child { border-right: 0; }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: #75877a; font-size: 12px; gap: 4px; }
.metric-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 5px; }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon svg { width: 14px; height: 14px; }
.metric-value { display: block; font-size: 28px; line-height: 1.35; font-weight: 600; margin: 13px 0 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric small { font-size: 10px; color: #98a59c; }
.negative { color: var(--red) !important; }
.positive { color: var(--green) !important; }
.muted { color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr); gap: 0; background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.section { min-width: 0; background: var(--surface); padding: 21px 23px; margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dashboard-grid > .section { margin: 0; border-top: 0; border-bottom: 0; }
.dashboard-grid > .section + .section { border-left: 1px solid var(--line); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { flex-shrink: 0; }
.chart-legend { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #77887b; margin-top: 9px; }
.chart-legend .muted { margin-left: auto; font-size: 9px; }
.legend-line { width: 12px; height: 2px; background: var(--green); }
.chart-wrap { position: relative; height: 225px; margin-top: 13px; }
#trendChart { display: block; width: 100%; height: 100%; }
.chart-tooltip { position: absolute; padding: 6px 9px; background: white; border: 1px solid var(--line); border-radius: 4px; color: #40694e; font-size: 10px; box-shadow: 0 3px 9px #26372e12; pointer-events: none; white-space: nowrap; }
.segments { display: inline-flex; gap: 2px; padding: 3px; border-radius: 5px; background: #f1f5f2; max-width: 100%; overflow-x: auto; }
.segments button { flex-shrink: 0; font-size: 11px; min-height: 28px; background: transparent; border: 0; color: #87968b; padding: 0 10px; border-radius: 3px; }
.segments .selected { color: var(--green); background: white; box-shadow: 0 1px 3px #2e513013; font-weight: 600; }
.pending-row { display: flex; gap: 10px; width: 100%; align-items: center; background: none; border: 0; border-bottom: 1px solid #eef2ef; padding: 15px 0; text-align: left; }
.pending-row > span:nth-child(2) { min-width: 0; }
.pending-row strong { font-size: 12px; font-weight: 500; display: block; }
.pending-row small { display: block; margin-top: 4px; font-size: 9px; color: var(--muted); }
.pending-symbol { width: 31px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 5px; }
.pending-symbol.blue { color: var(--blue); background: var(--blue-soft); }
.pending-symbol.amber { color: var(--amber); background: var(--amber-soft); }
.pending-symbol svg { width: 16px; }
.pending-amount { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; font-size: 11px; font-weight: 500; }
.pending-amount svg { width: 12px; color: #a3afa7; }
.pending-note { display: flex; gap: 7px; align-items: center; font-size: 9px; margin-top: 17px; color: #91a098; }
.table-wrap { width: 100%; overflow: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
th { color: #8a998f; font-weight: 400; background: #f7faf8; font-size: 10px; padding: 11px 12px; white-space: nowrap; }
td { padding: 15px 12px; border-bottom: 1px solid #edf1ee; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fbfdfb; }
td strong { font-weight: 500; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th:has(.num) { text-align: right; }
.total-row { background: #f8fbf9; font-weight: 600; }
.table-empty { text-align: center; color: #9daa9f; padding: 17px 8px; font-size: 12px; }
.wrap-cell { white-space: normal; min-width: 160px; max-width: 240px; line-height: 1.8; }
.cell-sub { display: block; margin-top: 4px; font-size: 9px; color: #9aa89f; font-weight: 400; }
.campus-name, .staff-name { display: flex; align-items: center; gap: 10px; }
.campus-symbol { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; font-size: 12px; font-weight: 500; }
.campus-symbol.c0 { background: #eaf3ed; color: #76a886; }
.campus-symbol.c1 { background: #edf4fb; color: #7a9fbf; }
.campus-symbol.c2 { background: #fcf3e7; color: #c3a167; }
.cost-track { display: flex; height: 7px; gap: 2px; overflow: hidden; margin: 5px 0 20px; }
.cost-track span { min-width: 2px; }
.cost-track .green, .legend-dot.green { background: #73a991; }
.cost-track .blue, .legend-dot.blue { background: #7ea9c8; }
.cost-track .amber, .legend-dot.amber { background: #d6b97c; }
.cost-track .coral, .legend-dot.coral { background: #c6a29b; }
.cost-track .gray, .legend-dot.gray { background: #bbc4be; }
.cost-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 28px; }
.cost-list > div { display: flex; align-items: center; font-size: 10px; gap: 7px; }
.cost-list span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.cost-list strong { font-weight: 500; margin-left: auto; }
.cost-list small { font-size: 9px; width: 35px; text-align: right; color: #98a59d; }
.configuration-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-top: 24px; }
.configuration-grid span { display: block; font-size: 9px; color: #89998e; }
.configuration-grid strong { display: block; font-size: 22px; font-weight: 500; margin-top: 7px; }
.configuration-grid small { font-size: 10px; font-weight: 400; color: #8fa095; }
.data-caption { color: #9caaa0; font-size: 10px; line-height: 1.7; margin-top: 18px; }
.report-status { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 11px; margin: -7px 0 18px; }
.report-status svg { width: 14px; height: 17px; color: var(--amber); }
.report-notes { margin: 0 0 20px; padding: 12px 0; border-block: 1px solid var(--line); font-size: 12px; line-height: 1.8; color: var(--muted); }
.report-notes p:first-child { display: flex; align-items: flex-start; gap: 8px; }
.report-notes svg { flex: 0 0 16px; width: 16px; height: 21px; }
.policy-strip { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 14px 0 22px; color: var(--muted); font-size: 12px; }
.form-section { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 20px 0 0; min-width: 0; }
.form-section legend { padding: 0 10px 0 0; font-size: 14px; font-weight: 600; }
.purchase-line { padding: 12px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.line-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.7; }
.check-field input { flex: 0 0 16px; width: 16px; min-height: 16px; height: 16px; margin-top: 3px; accent-color: var(--green); }
.reconcile-total { display: block; padding-top: 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
.proof-list { list-style: none; padding: 0; margin: 20px 0; }
.proof-list li { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.proof-list a { display: flex; align-items: flex-start; gap: 6px; overflow-wrap: anywhere; }
.proof-list svg { flex: 0 0 14px; width: 14px; height: 18px; }
.approval-timeline { list-style: none; padding: 0 0 0 16px; margin: 20px 0; border-left: 2px solid var(--line); }
.approval-timeline li { padding: 8px 0; font-size: 12px; }
.approval-timeline li > span:not(.badge) { display: block; margin-top: 8px; color: var(--muted); }
.approval-timeline p { margin-top: 6px; overflow-wrap: anywhere; }
.row-tools { display: flex; gap: 4px; }
.form-field input[type="file"] { padding: 8px; font-size: 11px; max-width: 100%; }
dialog .table-wrap { max-width: 100%; }
@media (max-width: 720px) {
  .form-section .form-grid { grid-template-columns: 1fr; }
  .proof-list li { grid-template-columns: 1fr; gap: 5px; }
  .page-heading { flex-wrap: wrap; }
  .page-tabs .segments { max-width: 100%; flex-wrap: wrap; }
}
.course-tags { display: flex; flex-wrap: wrap; gap: 14px; padding: 17px 0; }
.app-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 32px 18px; font-size: 9px; color: #a1ada5; }
.summary-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 20px 25px; background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.summary-strip span { color: #8a9a8e; font-size: 11px; display: block; }
.summary-strip strong { font-size: 24px; font-weight: 550; display: block; margin-top: 7px; font-variant-numeric: tabular-nums; }
.summary-strip strong small { font-size: 11px; color: var(--muted); font-weight: 400; }
.page-tabs { margin-bottom: 18px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 17px; }
input, select, textarea { border: 1px solid #dee7e0; border-radius: 5px; min-height: 35px; background: white; padding: 6px 10px; font-size: 12px; }
textarea { resize: vertical; }
input:read-only { background: #f7faf8; color: var(--muted); }
.quota-band { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin-bottom: 23px; }
.quota-item { padding: 0 25px; border-right: 1px solid var(--line); }
.quota-item:last-child { border-right: none; }
.quota-item > div:first-child { display: flex; align-items: center; gap: 12px; }
.quota-item > div:first-child span { font-size: 10px; color: var(--muted); }
.quota-item p { margin: 12px 0; }
.quota-item p strong { font-size: 24px; font-weight: 500; }
.quota-item p span, .quota-item small { color: #9aa89f; font-size: 10px; }
.progress-track { height: 4px; background: #f0f4f1; border-radius: 2px; margin-bottom: 7px; overflow: hidden; }
.progress-track span { height: 100%; display: block; background: #82ad95; }
.progress-track span.amber { background: #d1b072; }
.policy-line { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #92a198; padding: 10px 0; }
.policy-line svg { width: 14px; height: 14px; }
.week-controls { display: flex; align-items: center; gap: 12px; }
.week-controls strong { font-size: 12px; font-weight: 500; }
.calendar-date-nav { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.schedule-filters { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.schedule-filters .form-field { margin: 0; min-width: 100px; }
.schedule-filters .form-field > span { font-size: 10px; }
.schedule-filters select { min-height: 32px; padding: 4px 25px 4px 8px; font-size: 11px; background-color: white; }
.schedule-summary, .reference-heading { display: flex; flex-wrap: wrap; gap: 6px; }
.reference-heading { margin-bottom: 16px; }
.calendar-scroll { overflow: auto; width: 100%; max-width: 100%; max-height: 760px; overscroll-behavior: contain; background: white; border: 1px solid var(--line); }
.calendar-table { table-layout: fixed; min-width: 1100px; }
.calendar-table th, .calendar-table td { padding: 8px; white-space: normal; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
.calendar-table thead th { position: sticky; top: 0; z-index: 2; color: var(--ink); background: #f7faf8; text-align: center; font-size: 12px; font-weight: 600; }
.calendar-table thead th:first-child, .calendar-table tbody th { width: 76px; position: sticky; left: 0; background: white; text-align: center; color: #536b5f; font-size: 11px; z-index: 1; }
.calendar-table thead th:first-child { z-index: 3; background: #f7faf8; }
.calendar-table small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.calendar-table th.calendar-today { background: #e9f4ee; color: var(--green); }
.calendar-cell { display: flex; flex-direction: column; gap: 7px; min-height: 105px; }
.calendar-cell-add { align-self: center; margin-top: auto; color: #a0b3a6; }
.calendar-event { display: grid; gap: 5px; padding: 10px 8px; border: 1px solid #dcebe0; border-left: 3px solid #4b8f6e; background: #eff8f2; border-radius: 4px; font-size: 11px; min-width: 0; overflow-wrap: anywhere; }
.calendar-event.thinking { background: #eff5fc; border-color: #dce6f1; border-left-color: #5e86b3; }
.calendar-event.music { background: #fff4f5; border-color: #f0dce2; border-left-color: #b55d73; }
.calendar-event.creative { background: #fff8eb; border-color: #efe4cd; border-left-color: #b88a37; }
.calendar-event-title { display: flex; align-items: start; justify-content: space-between; gap: 4px; padding: 0; border: 0; background: transparent; text-align: left; width: 100%; white-space: normal; }
.calendar-event-title strong { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.calendar-event-title svg { width: 13px; height: 17px; flex: 0 0 13px; color: #6d8176; }
.calendar-event .cell-sub, .calendar-event-group { font-size: 10px; color: #62756a; }
.calendar-event-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.calendar-event .badge { white-space: normal; font-size: 10px; }
.schedule-day { padding: 14px 0; border-top: 1px solid var(--line); }
.schedule-day h3 { display: flex; gap: 9px; align-items: center; font-size: 13px; margin-bottom: 12px; }
.schedule-day h3 time { color: var(--muted); font-size: 11px; font-weight: 400; }
.agenda-row { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 12px; margin-bottom: 10px; }
.agenda-row > time { font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 10px; }
.agenda-row > time small { display: block; color: var(--muted); }
.schedule-no-lessons { font-size: 11px; color: var(--muted); padding-left: 70px; }
.schedule-checks { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 10px 0; }
.schedule-checks .check-field { margin: 0; }
#scheduleForm .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
#schedulePreview { margin-top: 15px; }
#alternateFields { align-items: end; }
#rotationLabel { padding-bottom: 9px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
@media (max-width:720px) {
  .page-heading:has(.calendar-date-nav) .heading-actions { flex-wrap: wrap; width: 100%; }
  .calendar-date-nav { width: 100%; justify-content: space-between; }
  .calendar-date-nav .date-control { padding: 0 6px; }
  .calendar-date-nav input { max-width: 118px; }
  .schedule-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .schedule-filters .form-field { min-width: 0; }
  .schedule-section { padding: 16px 12px; }
  .schedule-summary { justify-content: flex-end; }
  #scheduleForm .form-grid { grid-template-columns: minmax(0,1fr); }
}
.day-empty { display: block; margin-top: 25px; font-size: 10px; color: #c0c9c3; text-align: center; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 42px 20px; min-height: 235px; }
.empty-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 8px; background: #f0f6f2; color: #afc2b5; margin-bottom: 15px; }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h2 { color: #6e8476; font-size: 14px; font-weight: 500; }
.empty-state p { margin-top: 7px; color: #a0aea5; font-size: 11px; max-width: 400px; }
.empty-state .button { margin-top: 20px; }
.pending-section .empty-state { min-height: 200px; padding: 20px; }
.rule-section { margin-top: 24px; }
.rule-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; padding: 8px 0; }
.rule-grid > div { display: grid; grid-template-columns: 22px 1fr; gap: 7px 8px; }
.rule-grid svg { width: 17px; height: 17px; color: #a3b6a8; }
.rule-grid strong { font-size: 11px; font-weight: 500; }
.rule-grid p { grid-column: 2; color: #96a79b; font-size: 10px; line-height: 1.8; }
.search-field { display: flex; align-items: center; gap: 7px; background: white; border: 1px solid var(--line); border-radius: 5px; padding: 0 10px; }
.search-field svg { width: 14px; color: #9caba1; }
.search-field input { border: none; width: 180px; padding-left: 0; font-size: 11px; }
.staff-name .employee-avatar { width: 27px; height: 27px; font-size: 10px; }
dialog { width: min(570px, calc(100vw - 32px)); padding: 0; border: 1px solid #dfe9e2; border-radius: 8px; background: white; box-shadow: 0 25px 80px #233a2c24; max-height: calc(100dvh - 48px); }
dialog.wide { width: min(680px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(26,43,32,.28); backdrop-filter: blur(2px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 19px 23px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 16px; font-weight: 550; }
.dialog-body { padding: 24px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding: 16px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 15px; }
.form-field { display: grid; gap: 7px; font-size: 11px; }
.form-field > span { color: #7e9084; }
.form-field.full { grid-column: 1 / -1; }
dialog.feedback-dialog { width: min(1120px, calc(100vw - 32px)); }
.feedback-top { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 18px; }
.feedback-top > span { font-size: 12px; padding-bottom: 10px; color: #596b60; }
.feedback-member { width: 240px; max-width: 100%; }
.feedback-identity { display: grid; grid-template-columns: 90px minmax(0,1fr) 90px minmax(0,1fr); gap: 10px; font-size: 12px; padding-bottom: 20px; margin: 0; }
.feedback-identity dt { color: #687c6f; }
.feedback-identity dd { margin: 0; overflow-wrap: anywhere; }
.feedback-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 28px; }
.feedback-fields { display: grid; gap: 16px; min-width: 0; }
.feedback-fields textarea { resize: vertical; min-height: 90px; line-height: 1.7; }
.feedback-paper { min-width: 0; border: 1px solid #d7dfda; background: #fff; }
.feedback-paper img, .feedback-export img { display: block; width: 100%; height: auto; }
.feedback-export { max-width: 780px; margin: 0 auto 20px; background: #fff; }
.feedback-save-state { margin-top: 12px; font-size: 12px; color: #607467; text-align: right; }
.feedback-warning { padding: 12px; background: #fff3d7; color: #785c16; font-size: 12px; margin-bottom: 15px; }
.feedback-actions { margin-top: 18px; }
@media (max-width: 720px) {
  .feedback-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .feedback-identity { grid-template-columns: 80px minmax(0,1fr); }
  .feedback-dialog .dialog-body { padding: 18px 14px; }
  .feedback-dialog .dialog-head { padding-inline: 14px; gap: 8px; }
  .feedback-dialog .dialog-head h2 { overflow-wrap: anywhere; }
  .feedback-top { gap: 8px; }
  .feedback-member { width: 100%; }
  .feedback-actions .button { flex: 1 1 100px; padding-inline: 8px; }
}
.form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.form-note { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8ba092; background: #f6faf7; padding: 10px 12px; margin-top: 15px; border-radius: 4px; }
.form-note svg { width: 14px; }
.form-error { color: var(--red); font-size: 11px; margin-top: 12px; }
.read-value { margin: 0; font-size: 11px; color: #97a59c; line-height: 1.8; }
.detail-title { display: flex; gap: 12px; align-items: center; }
.detail-title > .badge { margin-left: auto; }
.detail-title p { font-size: 10px; color: #9baaa0; margin-top: 4px; }
.detail-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; background: var(--green-soft); color: var(--green); flex-shrink: 0; }
.approval-amount { font-size: 30px; font-weight: 500; padding: 20px 0 12px; }
.detail-list { display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 15px 12px; font-size: 12px; margin: 20px 0 0; }
.detail-list dt { color: #9baa9f; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.timeline { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.timeline > div { display: grid; grid-template-columns: 14px 1fr; gap: 3px 10px; padding: 8px 0; }
.timeline span { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; background: #84ae95; }
.timeline span.pending { background: #d6ba89; }
.timeline strong { font-size: 11px; font-weight: 500; }
.timeline small { grid-column: 2; color: #a1afa6; font-size: 10px; }
.confirm-text { font-size: 12px; color: #7b9082; line-height: 2; }
.payroll-preview { background: #f4f9f5; padding: 17px; margin-top: 20px; border-radius: 5px; }
.payroll-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 11px; color: #7f9988; margin-bottom: 10px; }
.payroll-preview > div:last-child { margin-bottom: 0; }
.payroll-preview > div:nth-child(2) strong { font-size: 23px; color: var(--green); font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); padding: 11px 19px; background: #304e3d; color: white; border-radius: 6px; box-shadow: 0 6px 20px #1d372d20; max-width: calc(100vw - 32px); font-size: 12px; z-index: 100; text-align: center; }
@media (min-width: 1550px) {
  #main { max-width: 1550px; margin: 0 auto; padding: 35px 42px; }
  .chart-wrap { height: 280px; }
  .topbar { padding: 0 42px; }
}
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 205px minmax(0,1fr); }
  #main { padding: 25px 22px; }
  .topbar { padding: 0 22px; }
  .metric { padding: 0 16px; }
  .metric-value { font-size: 24px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.4fr) minmax(260px,1fr); }
  .configuration-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 10px; }
  .cost-list { grid-template-columns: 1fr; gap: 9px; }
  .chart-legend .muted { font-size: 8px; }
  .pending-amount { font-size: 10px; }
  .pending-row { gap: 7px; }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 180px minmax(0,1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .brand { margin-left: 7px; gap: 9px; }
  .brand strong { font-size: 16px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid > .section + .section { border-left: 0; border-top: 1px solid var(--line); }
  .metrics-band { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 0; }
  .metric:nth-child(2) { border-right: 0; }
  .metric-value { font-size: 27px; }
  .page-heading { flex-wrap: wrap; }
  .cost-list { grid-template-columns: 1fr 1fr; }
  .configuration-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .quota-band { grid-template-columns: 1fr; gap: 20px; }
  .quota-item { border-right: none; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: 224px; height: 100dvh; transform: translateX(-100%); transition: transform .2s ease; padding: 25px 16px 14px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; display: block; border: none; z-index: 15; background: #1e332739; }
  .mobile-menu { display: flex; }
  .mobile-menu svg { width: 18px; height: 18px; }
  .topbar { padding: 0 15px; height: 59px; }
  .topbar-actions { gap: 9px; }
  .breadcrumb { gap: 7px; }
  .breadcrumb > span, .breadcrumb > svg { display: none; }
  .breadcrumb strong { font-size: 11px; }
  .topbar-avatar { width: 27px; height: 27px; font-size: 10px; }
  .campus-control { gap: 3px; }
  .campus-control select { width: 92px; font-size: 11px; padding-left: 3px; }
  #notificationButton { width: 25px; }
  #main { padding: 23px 16px; min-height: calc(100vh - 100px); }
  h1 { font-size: 23px; }
  .page-heading { gap: 16px; margin-bottom: 20px; }
  .heading-actions { flex-wrap: wrap; flex-shrink: 1; }
  .metric { padding: 0 16px; }
  .metric-value { font-size: 25px; }
  .metric-label { font-size: 11px; }
  .metric small { font-size: 9px; }
  .metrics-band { padding: 19px 0; gap: 24px 0; }
  .section { padding: 18px 16px; }
  .chart-wrap { height: 215px; }
  .section-head { gap: 10px; }
  .section-head h2 { font-size: 14px; }
  .chart-legend .muted { font-size: 8px; }
  .chart-legend { gap: 5px; }
  .cost-list { grid-template-columns: 1fr; }
  .configuration-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-footer { padding: 0 16px 20px; font-size: 8px; }
  .summary-strip { padding: 19px 16px; }
  .summary-strip strong { font-size: 24px; }
  .toolbar { flex-wrap: wrap; gap: 14px; }
  .week-controls { gap: 5px; }
  .week-controls strong { font-size: 11px; }
  .rule-grid { grid-template-columns: 1fr; gap: 20px; }
  .policy-line { align-items: flex-start; font-size: 9px; }
  .search-field { width: 100%; }
  .search-field input { width: 100%; }
  .form-grid { gap: 15px 12px; }
  .dialog-body { padding: 20px; }
  .dialog-head { padding: 17px 20px; }
  .detail-title { flex-wrap: wrap; }
  .detail-title > .badge { margin-left: 0; }
  .form-note { align-items: flex-start; font-size: 10px; }
}
@media (max-width: 370px) {
  .metric-value { font-size: 22px; }
  .topbar-avatar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .heading-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.boot-state { padding: 48px 20px; text-align: center; color: var(--muted); }
.auth-page { min-height: 100dvh; width: min(100%, 460px); margin: 0 auto; padding: 72px 28px 28px; }
.auth-brand { display: flex; gap: 15px; align-items: center; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.auth-brand > svg { width: 42px; height: 42px; color: var(--green); }
.auth-brand strong { font-size: 28px; font-weight: 650; display: block; }
.auth-brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.auth-form { display: grid; gap: 18px; padding: 32px 0; }
.auth-form h1 { font-size: 21px; margin-bottom: 6px; }
.auth-form .button { min-height: 42px; width: 100%; }
.auth-status { color: var(--muted); font-size: 13px; line-height: 1.7; }
.contract-detail-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.enrollment-child .line-heading { align-items: end; gap: 12px; margin-bottom: 16px; }
.enrollment-child .line-heading .form-field { flex: 1; min-width: 0; }
.course-limit { display: block; color: var(--muted); font-size: 11px; margin-top: 12px; }
#enrollmentForm { display: grid; gap: 20px; }
#enrollmentForm .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
#enrollmentForm .form-section { margin-top: 0; }
#enrollmentForm input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
#enrollmentForm input[type="number"]::-webkit-inner-spin-button,
#enrollmentForm input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#enrollmentForm input[readonly] { background: var(--surface-soft, #f3f5f4); color: var(--muted, #5b6660); }
#enrollmentForm [name="childIndex"] { appearance: none; background-image: none; }
#enrollmentForm [hidden] { display: none !important; }
.contract-file-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contract-file-row > :first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.contract-file-row .check-field { margin: 0; }
.contract-file-row .check-field > span { min-width: 0; overflow-wrap: anywhere; }
.contract-file-row .icon-button { flex: 0 0 34px; }
#contractFileStatus { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
@media(max-width:600px){ #enrollmentForm .form-grid { grid-template-columns: minmax(0,1fr); } }
.auth-form .form-grid { gap: 14px; }
.auth-footer { border-top: 1px solid var(--line); padding-top: 22px; font-size: 11px; color: var(--muted); text-align: center; }
.site-filing { min-height: 48px; padding: 12px 20px; color: var(--muted); text-align: center; font-size: 12px; overflow-wrap: anywhere; }
.site-filing a:hover { color: var(--green); text-decoration: underline; }
body:has(> .site-filing) .auth-page { min-height: calc(100dvh - 48px); }
.form-error { color: var(--red); min-height: 18px; font-size: 12px; overflow-wrap: anywhere; }
.date-control input { border: 0; font-size: 11px; padding: 0; min-height: 30px; max-width: 145px; }
.dialog-body > form { display: grid; gap: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.detail-list dd { overflow-wrap: anywhere; white-space: normal; }
.metric-value { overflow-wrap: anywhere; }
.summary-strip strong { overflow-wrap: anywhere; }
.report-status { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 11px; margin: -7px 0 18px; }
.report-status svg { width: 14px; height: 17px; color: var(--amber); }
@media (max-width: 720px) {
  .topbar { gap: 8px; }
  .topbar-actions { gap: 6px; }
  .breadcrumb strong { white-space: nowrap; }
  .campus-control select { width: 86px; }
}
@media (max-width: 370px) {
  .summary-strip { column-gap: 8px; }
  .summary-strip strong { font-size: 20px; white-space: nowrap; overflow-wrap: normal; }
}
.summary-strip.live-summary strong { white-space: normal; overflow-wrap: anywhere; }
.client-test-banner { padding: 8px 16px; background: var(--amber-soft); color: #7a561b; border-bottom: 1px solid #ead8b5; text-align: center; font-size: 11px; line-height: 1.5; }
.calendar-kind-tabs, .attendance-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); max-width: 100%; overflow-x: auto; }
.calendar-kind-tabs button, .attendance-tabs button { flex: 0 0 auto; padding: 11px 0; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 12px; color: var(--muted); min-height: 40px; }
.calendar-kind-tabs button.selected, .attendance-tabs button.selected { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.calendar-attendance-link { display: flex; align-items: center; gap: 5px; border: 0; background: transparent; padding: 5px 0 0; text-align: left; color: #416c57; font-size: 11px; min-height: 28px; }
.calendar-attendance-link svg { width: 14px; height: 14px; }
.schedule-dialog-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.attendance-policy { color: #67796e; font-size: 11px; line-height: 1.7; margin: 0 0 16px; }
.attendance-summary { padding-block: 16px; }
.attendance-summary strong { font-size: 22px; }
.attendance-matrix-section { padding-inline: 0; }
.attendance-matrix-section > .section-head { padding-inline: 23px; flex-wrap: wrap; }
.attendance-matrix-scroll { --att-name-width: 140px; --att-total-width: 92px; width: 100%; max-width: 100%; max-height: 560px; overflow: auto; overscroll-behavior: contain; border-block: 1px solid var(--line); background: white; scrollbar-gutter: stable; }
.attendance-matrix { width: calc(var(--att-name-width) + var(--att-total-width) + var(--attendance-days) * 48px); table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.attendance-name-col { width: var(--att-name-width); }
.attendance-day-col { width: 48px; }
.attendance-total-col { width: var(--att-total-width); }
.attendance-matrix th, .attendance-matrix td { box-sizing: border-box; padding: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
.attendance-matrix thead th { height: 48px; position: sticky; top: 0; z-index: 2; background: #f4f8f5; color: #53675b; font-size: 12px; }
.attendance-matrix small { display: block; font-size: 10px; line-height: 1.5; font-weight: 400; color: #75877b; white-space: normal; overflow-wrap: anywhere; }
.attendance-matrix .attendance-name { position: sticky; left: 0; z-index: 1; text-align: left; padding: 8px 10px; background: white; box-shadow: 2px 0 3px #26372e0a; white-space: normal; overflow-wrap: anywhere; }
.attendance-name strong { display: block; font-size: 12px; }
.attendance-matrix .attendance-total { position: sticky; right: 0; z-index: 1; padding: 6px 3px; background: #f4f8f5; box-shadow: -2px 0 3px #26372e0a; }
.attendance-matrix thead .attendance-name, .attendance-matrix thead .attendance-total { z-index: 3; background: #edf4f0; }
.attendance-matrix .is-today { background: #eef7fc; }
.attendance-matrix tbody tr { height: 54px; }
.attendance-matrix tbody tr:hover .attendance-name { background: #f7fbf8; }
.attendance-matrix tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.attendance-cell { position: relative; width: 100%; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; border-radius: 0; padding: 3px; background: transparent; color: var(--green); font-size: 13px; line-height: 1.2; }
button.attendance-cell:hover { background: #eaf3ed; }
button.attendance-cell:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.attendance-cell .attendance-leave { color: #946a22; }
.attendance-cell .attendance-absent { color: var(--red); }
.attendance-pending { color: #91703b; font-size: 10px; }
.attendance-pending-dot { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #b4893c; }
.care-attendance-cell svg { width: 20px; height: 20px; stroke-width: 2.5; }
.care-state-present { color: var(--green); }
.care-state-leave { color: #9a6c1f; }
.care-state-leave svg { fill: currentColor; stroke-width: 1.5; }
.care-state-absent { color: var(--red); }
.care-attendance-cell[aria-busy="true"] { opacity: .45; cursor: progress; }
.attendance-nonclass { color: #bdc8c1; }
.attendance-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 14px; font-size: 12px; }
.attendance-legend > span { display: inline-flex; gap: 5px; align-items: center; }
.attendance-legend svg { width: 15px; height: 15px; }
.attendance-member-filter { width: 160px; max-width: 100%; }
.attendance-member-filter > label { color: var(--muted); font-size: 10px; }
.schedule-filters:has(.attendance-member-filter) > .form-field { width: 160px; flex: 0 0 160px; }
.schedule-filters:has(.attendance-member-filter) select { height: 32px; }
.member-combobox { position: relative; min-width: 0; }
.member-combobox > input { width: 100%; height: 32px; min-height: 32px; padding: 4px 34px 4px 8px; font-size: 11px; }
.member-dropdown-toggle { position: absolute; right: 1px; top: 1px; width: 32px; height: calc(100% - 2px); display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 4px; }
.member-dropdown-toggle svg { width: 16px; height: 16px; }
.member-options { position: absolute; z-index: 12; top: calc(100% + 4px); left: 0; width: 100%; max-height: 250px; overflow-y: auto; padding: 4px; background: white; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 6px 18px #20372b14; }
.member-options[hidden] { display: none; }
.member-options button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; min-height: 36px; padding: 7px 9px; background: transparent; border: 0; border-radius: 3px; font-size: 12px; color: var(--ink); }
.member-options button:hover, .member-options button[data-active="true"], .member-options button[aria-selected="true"] { background: #eaf3ed; }
.member-options small, .member-options-empty { color: var(--muted); font-size: 11px; }
.member-options-empty { padding: 10px; }
.attendance-status-toggle { display: grid; place-items: center; width: 38px; height: 36px; margin: auto; border: 1px solid var(--line); border-radius: 4px; background: white; }
.attendance-status-toggle svg { width: 20px; height: 20px; stroke-width: 2; }
.attendance-status-toggle:disabled { opacity: .65; cursor: default; }
.attendance-stepper { display: grid; grid-template-columns: 30px minmax(24px,48px) 30px; align-items: center; justify-content: center; gap: 3px; }
.attendance-stepper .icon-button { width: 30px; height: 34px; border: 1px solid var(--line); border-radius: 4px; }
.attendance-stepper input { width: 100%; padding: 5px 1px; text-align: center; min-height: 34px; }
.attendance-stepper.is-fixed { grid-template-columns: 48px; }
.attendance-lines th:first-child { width: 32%; }
.attendance-lines th:nth-child(2) { width: 22%; }
.consumption-summary strong { font-size: 20px; overflow-wrap: anywhere; }
.consumption-report .table-wrap { max-height: 640px; }
.consumption-report thead th { position: sticky; top: 0; z-index: 1; }
.report-grouping { margin-bottom: 16px; }
#consumptionYear { width: 86px; }
.commission-assistant { grid-template-columns: minmax(0,1fr) minmax(100px,.5fr) 32px; align-items: end; margin: 12px 0; }
.commission-assistant .icon-button { width: 32px; height: 35px; }
#courseTransferForm input[name="quantity"], #courseTransferDecisionForm input[name="verifiedRemaining"] { appearance: textfield; -moz-appearance: textfield; }
#courseTransferForm input[name="quantity"]::-webkit-inner-spin-button,
#courseTransferForm input[name="quantity"]::-webkit-outer-spin-button,
#courseTransferDecisionForm input[name="verifiedRemaining"]::-webkit-inner-spin-button,
#courseTransferDecisionForm input[name="verifiedRemaining"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#materialForm input[name="amount"], #materialForm input[name="receiptAmount"], #materialForm input[name="paidAmount"] { appearance: textfield; -moz-appearance: textfield; }
#materialForm input[name="amount"]::-webkit-inner-spin-button, #materialForm input[name="amount"]::-webkit-outer-spin-button,
#materialForm input[name="receiptAmount"]::-webkit-inner-spin-button, #materialForm input[name="receiptAmount"]::-webkit-outer-spin-button,
#materialForm input[name="paidAmount"]::-webkit-inner-spin-button, #materialForm input[name="paidAmount"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.attendance-queue .table-wrap { max-height: 520px; }
.attendance-queue thead th { position: sticky; top: 0; z-index: 1; }
.attendance-dialog .dialog-head h2 { min-width: 0; overflow-wrap: anywhere; }
.attendance-dialog .dialog-head > button { flex: 0 0 32px; }
.attendance-sheet-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; line-height: 1.6; }
.attendance-lines { max-height: 420px; }
.attendance-lines table { min-width: 330px; table-layout: fixed; }
.attendance-lines th, .attendance-lines td { padding: 9px 7px; }
.attendance-lines tbody th { background: white; color: var(--ink); font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.attendance-lines thead th { position: sticky; top: 0; z-index: 1; }
.attendance-lines th:first-child { width: 32%; }
.attendance-lines select, .attendance-lines input { width: 100%; min-width: 0; }
.attendance-lines input:disabled { color: #687b6e; background: #f7faf8; opacity: 1; }
.attendance-group-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.attendance-member-picker { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 34px; align-items: end; gap: 10px; margin: 15px 0; }
.attendance-member-picker .icon-button { width: 34px; height: 35px; }
.attendance-members { max-height: 360px; }
.attendance-members table { min-width: 430px; }
.attendance-members th, .attendance-members td { padding: 8px 6px; }
.attendance-members tbody th { color: var(--ink); background: white; white-space: normal; min-width: 70px; max-width: 120px; overflow-wrap: anywhere; }
.attendance-members input { width: 135px; min-width: 0; }
.attendance-roster-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.attendance-history { border-top: 1px solid var(--line); padding-top: 14px; min-width: 0; }
.placement-records { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.attendance-history summary { cursor: pointer; font-size: 12px; color: #667a6c; padding-bottom: 12px; }
.att-conflict { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; background: var(--amber-soft); color: #7d5b29; font-size: 12px; line-height: 1.6; }
@media (max-width: 720px) {
  .calendar-kind-tabs { gap: 14px; }
  .calendar-kind-tabs button { font-size: 11px; }
  .attendance-matrix-scroll { --att-name-width: 88px; --att-total-width: 70px; max-height: 60dvh; }
  .attendance-matrix .attendance-name { padding-inline: 6px; }
  .attendance-matrix .attendance-name strong { font-size: 11px; }
  .attendance-matrix small { font-size: 9px; }
  .attendance-matrix-section > .section-head { padding-inline: 16px; gap: 6px; }
  .attendance-matrix-section > .section-head .badge { white-space: normal; }
  .attendance-summary { gap: 14px; }
  .attendance-summary strong { font-size: 21px; }
  .attendance-member-picker { grid-template-columns: minmax(0,1fr) 34px; }
  .attendance-member-picker > .form-field:first-child { grid-column: 1 / -1; }
  .attendance-group-fields .form-grid { grid-template-columns: minmax(0,1fr); }
  .attendance-dialog .dialog-body { padding: 18px 14px; }
  .attendance-dialog .dialog-head { padding-inline: 14px; }
  .attendance-dialog .dialog-actions .button { padding-inline: 10px; min-height: 38px; }
  .attendance-lines table { min-width: 0; width: 100%; }
  .attendance-lines th, .attendance-lines td { padding: 8px 4px; }
  .attendance-lines thead th { white-space: normal; overflow-wrap: anywhere; font-size: 10px; }
  .attendance-lines tbody th { font-size: 11px; }
  .attendance-lines select, .attendance-lines input { padding: 5px 4px; font-size: 11px; min-height: 34px; }
  .attendance-stepper { grid-template-columns: 26px minmax(22px,34px) 26px; gap: 2px; }
  .attendance-stepper .icon-button { width: 26px; }
  .attendance-lines .attendance-stepper input { padding-inline: 0; }
  .attendance-member-filter { width: 100%; }
  .schedule-filters:has(.attendance-member-filter) > .form-field { width: 100%; min-width: 0; }
}
