.workspace{min-width:0}.workspace-heading{font:inherit;color:inherit;text-align:left;padding:0;min-height:44px}.workspace-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}.workspace-tabs button{min-width:0;padding:10px 4px}.workspace-tabs button[aria-pressed=true]{background:var(--accent,var(--green));color:var(--on-accent,#fff)}.workspace .platform-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.workspace .field{min-width:0}.workspace .field input,.workspace .field select,.workspace .field textarea{width:100%;max-width:100%;box-sizing:border-box}.workspace-status,.workspace-error{margin:8px 0;overflow-wrap:anywhere}.workspace-status:empty,.workspace-error:empty{display:none}.workspace-error{color:var(--negative,var(--danger));font-size:14px}.workspace-amount{display:flex;gap:6px;min-width:164px;align-items:center}.workspace-amount input{width:100px;min-width:80px;text-align:right;font-variant-numeric:tabular-nums}.workspace-amount button{white-space:nowrap}.workspace .num{display:block;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.workspace-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0;font-size:13px}.workspace-pager button{min-height:44px;padding:8px}.workspace-summary{display:flex;flex-wrap:wrap;gap:12px;padding:12px 0;font-size:14px}.workspace-link{display:block;color:var(--accent,var(--green));padding:16px 0;text-decoration:underline;text-underline-offset:4px}.workspace-checks{min-width:0;border:1px solid var(--border,var(--line));border-radius:12px;margin:16px 0;padding:12px;max-height:280px;overflow:auto}.workspace-checks label{display:flex;align-items:center;gap:10px;min-height:44px}.workspace-checks input{width:20px;min-height:20px;margin:0}.workspace-config{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.workspace .data-table td:first-child,.workspace .table td:first-child{text-align:left}.workspace .data-table td{vertical-align:middle}.workspace .teacher-fee-section{margin:0;box-shadow:none;border:0}.workspace h3{font-size:16px;margin:20px 0 12px}@media(max-width:600px){.workspace-config{grid-template-columns:1fr}.workspace-fields{gap:8px}.workspace-tabs button{font-size:14px}.workspace .platform-content{padding:12px}}

.workspace-checks input{accent-color:var(--accent,var(--green))}.workspace .teacher-fee-section{padding:0}.workspace .teacher-fee-section .platform-content{padding:0}.workspace .teacher-fee-section .teacher-fee-roles{gap:12px}

.workspace-salary-config{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px}.workspace-salary-config h3,.workspace-salary-config>p,.workspace-salary-config>button{grid-column:1/-1}.workspace-salary-config h3,.workspace-salary-config>p{margin:0}.workspace-salary-config>button{justify-self:start}.workspace-salary-config textarea{resize:vertical;min-height:96px}@media(max-width:600px){.workspace-salary-config{grid-template-columns:1fr}}

.workspace-leadership{min-width:0}.workspace-leadership textarea{min-height:112px;resize:none}.workspace-leadership>.field{margin:16px 0}.workspace-leaders{padding:12px 16px;border:1px solid var(--border,var(--line));border-radius:var(--control-radius,9px)}.workspace-leaders h4{font-size:14px;margin:0 0 8px}.workspace-leaders ul{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px 20px}.workspace-leaders li{overflow-wrap:anywhere}.workspace-leadership h3{margin-top:0}

.two-choice.three-choice{grid-template-columns:repeat(3,minmax(0,1fr))}
.activity-participants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.activity-bills{min-width:0}.activity-bills .field{min-width:0}.activity-bill-roster{padding:0;list-style:none}.activity-bill-roster li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding-block:6px}.activity-bills .ft-row-actions{display:flex;flex-wrap:wrap;gap:8px}.activity-bills .workspace-fields{margin-block:12px}

.workspace-insurance-tools{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin-block:12px}.workspace-insurance-tools .field{flex:1;min-width:120px;margin:0}.workspace-insurance-cell{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.workspace-insurance-cell .text-button{min-height:36px;font-size:12px}.workspace [name^="receiver:"]{max-width:180px;min-width:110px;min-height:44px}.workspace-amount{min-width:150px;flex-wrap:wrap}.workspace-amount input{max-width:110px}

/* Collective forms keep incoming and outgoing parties paired on phones. */
.collective-sides{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:12px 0}.collective-sides>div{min-width:0}.collective-entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:6px;margin-bottom:8px}.collective-entry .field{min-width:0;margin:0}.collective-entry input{width:100%;min-width:0;padding:8px 5px}.collective-entry .text-button{grid-column:1/-1;justify-self:end}.collective-record .between{gap:8px;align-items:center}.collective-record .collective-sides .between span:first-child{overflow-wrap:anywhere}.collective-record .collective-sides .between span:last-child{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.collective-pending h2{margin-top:0}.activity-bills textarea{width:100%;box-sizing:border-box}.collective-record .finance-status{font-weight:600}

/* Principal reports stay in one card, from the campus heading to the detail rows. */
.platform-overview .principal-workspace {
  margin: 16px 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.principal-workspace .principal-heading {margin:0;padding:0;font-size:20px}
.principal-heading .principal-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px clamp(14px, 3vw, 24px);
  border-radius: 15px;
  background: var(--deep);
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-align: left;
}
.principal-toggle[aria-expanded=true] {border-radius:15px 15px 0 0}
.principal-toggle small {margin-left:auto;color:inherit;font-size:13px;font-weight:500;overflow-wrap:anywhere}
.principal-toggle span {flex:none}
.principal-toggle::after {
  content:"";
  width:8px;
  height:8px;
  flex:none;
  margin-left:auto;
  border:solid currentColor;
  border-width:0 1.5px 1.5px 0;
  transform:rotate(45deg);
}
.principal-toggle:has(small)::after {margin-left:0}
.principal-toggle[aria-expanded=true]::after {transform:rotate(225deg)}
.principal-body {padding:clamp(10px, 2.4vw, 22px)}
.principal-body .workspace-tabs {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:3px;
  padding:4px;
  margin:0 0 14px;
  border-radius:12px;
  background:var(--tint);
}
.principal-body .workspace-tabs button {
  min-width:0;min-height:44px;
  padding:6px 2px;border:1px solid transparent;border-radius:9px;
  background:transparent;color:var(--main);font-size:14px;
}
.principal-body .workspace-tabs button[aria-pressed=true] {background:#fff;border-color:var(--border);color:var(--deep);font-weight:700}
.workspace-person {font-weight:600;color:var(--deep)}
.workspace-real-name {display:block;margin-top:2px;font-size:12px;font-weight:400;line-height:1.4;color:var(--muted)}
.principal-body .workspace-detail-partner .workspace-person {font-weight:inherit}
.principal-body .workspace-operation .table-scroll {border:1px solid var(--border);border-radius:10px}
.principal-body .workspace-operation .data-table th {background:var(--tint);color:var(--deep)}
.principal-body .workspace-operation .data-table td {border-inline:0}
.principal-body .workspace-net tbody tr:has(strong) td {background:var(--surface);font-weight:650}
.principal-body .workspace-operation button.workspace-count {text-decoration-style:dotted;color:var(--main)}
.principal-body .workspace-operation button.workspace-count[aria-expanded=true] {color:var(--deep);background:var(--tint);border-radius:6px}
.principal-body .principal-reload {min-height:44px;color:var(--muted);font-size:13px}
.principal-body :focus-visible,.principal-heading :focus-visible {outline:2px solid var(--accent);outline-offset:-3px}
.langya-own-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:12px;padding:14px}.langya-own-summary .langya-rank{grid-column:1/-1}.langya-own-summary .langya-amount{text-align:right}

/* Fees and reminders share one table owner; only the table scrolls on phones. */
.campus-expenses .data-table{table-layout:auto;min-width:540px}.campus-expenses .table-scroll{max-width:100%;overflow-x:auto}
.campus-expenses{min-width:0}.campus-expenses .workspace-amount{min-width:148px;flex-wrap:nowrap}.campus-expenses .workspace-amount input{width:90px;min-height:44px;font-size:16px;box-sizing:border-box;border:1px solid var(--border);border-radius:var(--control-radius,9px);padding:8px;background:var(--surface);color:var(--deep)}.campus-expenses button{min-height:44px}.campus-expenses .data-table th,.campus-expenses .data-table td{white-space:nowrap}.campus-expenses .data-table td:first-child{min-width:6em;white-space:normal;overflow-wrap:anywhere}.campus-expenses .data-table td:not(:first-child){text-align:right}.campus-expenses .data-table td:last-child{white-space:normal;min-width:6em;text-align:left}.workspace-finance-unavailable{display:block;color:var(--negative);margin-top:4px}.campus-expense-reminder h2{font-size:18px;margin-top:0}.workspace-month{font:inherit;font-weight:inherit;min-height:44px;text-align:left;padding:0;text-decoration:underline;text-underline-offset:4px;touch-action:pan-y;-webkit-user-select:none;user-select:none}.workspace-count{font:inherit;min-height:44px;min-width:44px;text-align:right;font-variant-numeric:tabular-nums;text-decoration:underline;text-underline-offset:3px}.workspace-student-counts{display:flex;align-items:center;justify-content:center;white-space:nowrap}.workspace-operation td:last-child{text-align:right}.workspace-student-detail{margin:12px 0 20px;padding:12px 0;border-block:1px solid var(--border)}.workspace-student-detail h4{font-size:15px;margin:0 0 8px}.workspace-operation .workspace-count[aria-expanded=true]{font-weight:700;color:var(--deep)}

/* Principal tables and their home reminders share the same fitted layout. */
:is(.principal-workspace,.campus-expense-reminder) .table-scroll>.data-table{width:100%;min-width:0;max-width:100%;table-layout:fixed}
:is(.principal-workspace,.campus-expense-reminder) .table-scroll>.data-table th,
:is(.principal-workspace,.campus-expense-reminder) .table-scroll>.data-table td{
 min-width:0;max-width:none;padding:10px clamp(4px,1vw,10px);
 text-align:center;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;
}
:is(.principal-workspace,.campus-expense-reminder) .data-table .num,
:is(.principal-workspace,.campus-expense-reminder) .data-table button,
:is(.principal-workspace,.campus-expense-reminder) .data-table input,
:is(.principal-workspace,.campus-expense-reminder) .data-table select{
 min-width:0;max-width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere;
}
:is(.principal-workspace,.campus-expense-reminder) .data-table button{justify-content:center;padding-inline:4px}
.principal-workspace .data-table .workspace-count{width:100%}
:is(.principal-workspace,.campus-expense-reminder) .workspace-amount{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:6px;min-width:0;width:100%}
:is(.principal-workspace,.campus-expense-reminder) .workspace-amount input{width:100%;max-width:100%;min-width:0;padding-inline:4px}
:is(.principal-workspace,.campus-expense-reminder) .workspace-amount button{width:100%}
:is(.principal-workspace .campus-expenses,.campus-expense-reminder) .data-table th:nth-child(1){width:22%}
:is(.principal-workspace .campus-expenses,.campus-expense-reminder) .data-table th:nth-child(2){width:24%}
:is(.principal-workspace .campus-expenses,.campus-expense-reminder) .data-table th:nth-child(3){width:30%}
:is(.principal-workspace .campus-expenses,.campus-expense-reminder) .data-table th:nth-child(4){width:24%}
.workspace-operation:not(.workspace-net)>.table-scroll>.data-table th:nth-child(2){width:40%}
.campus-expenses.campus-expense-reminder .data-table th:nth-child(n){width:25%}
.campus-expense-reminder .data-table :is(th,td):nth-child(odd){text-align:left}
.campus-expense-reminder .data-table :is(th,td):nth-child(even),.campus-expense-reminder .data-table .num{text-align:center;white-space:nowrap}
.workspace-operation>.table-scroll>.data-table>thead>tr>th:first-child .workspace-month{width:100%;text-align:center}
.workspace-operation>.table-scroll>.data-table>tbody>.workspace-detail-row>td{padding:0;text-align:left}
.workspace-student-detail{margin:0;padding:8px 10px 12px;border:0}
.workspace-operation .workspace-student-row td{background:var(--surface);border-top:1px solid var(--border);vertical-align:middle}
.workspace-operation .workspace-student-row td:first-child{text-align:left}
.workspace-operation .workspace-student-row td:not(:first-child){text-align:center}
.workspace-detail-name{display:block;line-height:1.35}
.workspace-detail-partner{display:block;font-size:12px;line-height:1.35;color:var(--muted);white-space:normal;overflow-wrap:anywhere}
.workspace-student-detail .workspace-pager{margin-bottom:0}
.principal-workspace .workspace-student-counts{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);width:100%;white-space:normal}
.principal-workspace .workspace-student-counts .workspace-count{width:100%;padding-inline:0}

/* Finance is a separate role entry, using the same fitted campus table surface. */
.platform-page .finance-workspace{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.finance-workspace .membership-heading{padding-inline:0}.workspace .finance-tabs{grid-template-columns:minmax(0,1fr)}
.finance-workspace .table-scroll>.data-table{width:100%;min-width:0;max-width:100%;table-layout:fixed}
.finance-workspace .data-table th,.finance-workspace .data-table td{min-width:0;max-width:none;padding:10px clamp(4px,1vw,10px);text-align:center;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.finance-workspace .data-table :is(.num,button,input,select){min-width:0;max-width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere}
.finance-workspace .data-table button{justify-content:center;padding-inline:4px}
.finance-workspace .workspace-amount{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px;min-width:0;width:100%}
.finance-workspace .workspace-amount input,.finance-workspace .workspace-amount button{width:100%;max-width:100%;min-width:0;padding-inline:4px}
.finance-workspace .campus-expenses .data-table th:nth-child(1){width:20%}.finance-workspace .campus-expenses .data-table th:nth-child(2){width:22%}.finance-workspace .campus-expenses .data-table th:nth-child(3){width:58%}
.finance-home-workspace .workspace-tabs button{font-size:clamp(11px,2.9vw,14px)}
.finance-operations-modules{margin-top:20px;padding-top:12px;border-top:1px solid var(--border)}
.finance-operations-modules h2{font-size:16px;margin:0 0 10px}
.finance-workspace .workspace-amount button{width:auto;min-height:44px;font-size:12px;white-space:nowrap;padding:6px}
.finance-workspace .workspace-amount input{font-size:16px;min-height:44px}
.finance-workspace .workspace-amount input::placeholder{color:var(--muted);opacity:.65}
.finance-workspace .campus-expenses [data-campus-fill]{margin:0;font-size:13px;min-height:36px}
.workspace-net>.table-scroll>.data-table th{width:25%}
.workspace-net tbody tr:last-child{border-top:2px solid var(--border,var(--line))}

/* Finance-only accounts reuse the same expense owner on their compact home. */
.finance-home{min-width:0}
.finance-home .finance-home-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:0;padding:18px;margin-bottom:16px}
.finance-home-heading h1{font-size:26px;line-height:1.3;letter-spacing:1px;color:var(--deep)}
.finance-home-heading h1{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;width:100%}
.finance-home-balance{font-size:18px;letter-spacing:0;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.finance-home-heading .account-button{max-width:50%;min-height:44px;overflow-wrap:anywhere;background:var(--surface);color:var(--main)}
.finance-home-workspace.card,.finance-course-placeholder.card{padding:16px;margin-bottom:16px;border-color:var(--border)}
.finance-operations-page .finance-operations-workspace.card{padding:0;background:transparent;border:0;box-shadow:none;width:100%}
.finance-operations-workspace [data-operation-view=students]>.table-scroll>.data-table th:nth-child(n){width:25%}
.finance-operations-workspace .workspace-operation>.table-scroll{border:0;border-radius:0}
.finance-operations-workspace .workspace-operation>.table-scroll>.data-table :is(th,td,button,.num){text-align:center}
.finance-home-workspace h3{margin:12px 0 10px;font-size:18px;line-height:1.4}
.finance-home-workspace .campus-expenses>h3:first-of-type{margin-top:0}
.finance-home-workspace [data-campus-fill]{margin:0}
.finance-home-workspace .workspace-pager{margin-block:12px}
.finance-home-reload{display:block;margin:8px 0 0 auto;min-height:44px}
.finance-course-placeholder h2{font-size:18px;line-height:1.4}
.finance-course-placeholder>div{min-height:80px}
.bottom-nav[data-nav-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:360px){.finance-home-workspace.card,.finance-course-placeholder.card{padding:12px}.finance-home .finance-home-heading{padding:14px}.finance-home-heading h1{font-size:24px}}

/* Pending notices remain in normal flow; no notification takes another slot. */
.home-pending-list,.finance-home-pending,.student-name-other-pending{display:grid;gap:12px;min-width:0}
.home-pending-list>.card,.finance-home-pending>.card{margin-block:0}

.principal-workspace .workspace-operation{overflow-anchor:none}

.finance-workspace .campus-expenses .data-table :is(th,td),.finance-workspace .campus-expenses .data-table td:first-child{text-align:center}

[data-auto-reminder-stack]{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px;min-width:0}
[data-auto-reminder-stack]>.card{margin-block:0}

.workspace .card.user-platform-workspace {
 margin:16px 0;padding:0;min-width:0;border:1px solid var(--border);
 border-radius:16px;background:#fff;box-shadow:none;
}
.platform-work-heading {margin:0;padding:0;font-size:20px}
.platform-work-toggle {
 display:flex;align-items:center;gap:12px;width:100%;min-height:64px;
 padding:14px clamp(14px,3vw,24px);border-radius:15px;
 background:var(--tint);color:var(--deep);text-align:left;font:inherit;font-weight:650;
}
.platform-work-toggle small {margin-left:auto;color:var(--main);font-size:13px;font-weight:500}
.platform-work-toggle::after {
 content:"";width:8px;height:8px;border:solid currentColor;
 border-width:0 1.5px 1.5px 0;transform:rotate(45deg);
}
.platform-work-toggle[aria-expanded=true] {border-radius:15px 15px 0 0}
.platform-work-toggle[aria-expanded=true]::after {transform:rotate(225deg)}
.platform-work-body {display:grid;gap:14px;padding:clamp(10px,2.4vw,22px);min-width:0}
.platform-work-body .platform-tabs {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:6px;margin:0;align-content:start;
}
.platform-work-body .platform-tabs button {
 min-height:46px;text-align:left;padding:8px 12px;
 border:1px solid var(--border);border-radius:9px;
 background:#fff;color:var(--deep);font-size:14px;
}
.platform-work-body .platform-tabs button[aria-pressed=true] {
 background:var(--deep);border-color:var(--deep);color:#fff;
}
.platform-work-body :focus-visible,.platform-work-heading :focus-visible {outline:2px solid var(--accent);outline-offset:-3px}
.platform-report {min-width:0}
.platform-report > header {display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--border);margin:0 0 12px}
.platform-report > header h3 {margin:0;color:var(--deep);font-size:17px}
.platform-report > header button {min-height:44px;color:var(--muted);font-size:13px}
.user-platform-workspace .table-scroll {width:100%;max-width:100%}
.workspace-relation {display:flex;align-items:flex-start;gap:4px;flex-wrap:wrap;white-space:normal}
.workspace-relation + .workspace-relation {margin-top:4px}
.platform-report .workspace-leaders ul {display:flex;gap:8px;flex-wrap:wrap;margin:8px 0;padding:0;list-style:none}
.platform-report .workspace-leaders li {padding:6px 10px;border-radius:8px;background:var(--surface)}
@media(min-width:960px) {
 .platform-work-body:has(.platform-report) {grid-template-columns:minmax(140px,185px) minmax(0,1fr);gap:20px}
 .platform-work-body:has(.platform-report) .platform-tabs {grid-template-columns:minmax(0,1fr)}
 .platform-work-body:not(:has(.platform-report)) .platform-tabs {grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
}
.workspace .insurance-add-teacher{display:flex;gap:8px;align-items:end;margin-block:12px}
.workspace .insurance-add-teacher .field{flex:1;min-width:0;margin:0}
.workspace .insurance-add-teacher button{margin:0;min-height:44px;white-space:nowrap}

/* Developer payroll and insurance share the monthly table and finance controls. */
.deduction-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:16px;min-width:0;container-type:inline-size}
.deduction-layout>.panel{min-width:0;margin:0}
.deduction-heading,.deduction-tools,.deduction-review{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 18px}
.deduction-heading{padding-block:18px}
.deduction-heading p,.deduction-tools p,.deduction-review p{margin:0;color:var(--muted);font-size:13px}
.deduction-title,.deduction-controls,.deduction-tools>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.deduction-title{gap:10px;margin-bottom:4px}
.deduction-title h2{margin:0;color:var(--deep);font-size:22px;line-height:1.35}
.deduction-title small,.deduction-unset{color:var(--muted)}
.deduction-heading strong,.deduction-review strong{color:var(--ink)}
.deduction-month,.deduction-uniform{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap}
.deduction-month details{position:relative}
.deduction-month summary{display:flex;align-items:center;gap:8px;list-style:none;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--ink);font-weight:600;cursor:pointer}
.deduction-month summary::-webkit-details-marker{display:none}
.deduction-month details>div{position:absolute;z-index:7;top:calc(100% + 5px);inset-inline-end:0;min-width:11rem;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--white);box-shadow:0 4px 12px #183f3518}
.deduction-month details .field{margin:0}
.deduction-month form{display:grid;gap:8px}
.deduction-month form button{justify-self:end;min-height:36px}
.deduction-controls button,.deduction-tools button,.deduction-review button{min-height:44px;white-space:nowrap}
.deduction-controls .salary-roster-add{background:var(--soft);color:var(--green);font-weight:600}
.deduction-tools{background:var(--hover);border-block:1px solid var(--line)}
.deduction-uniform>span:nth-child(2){position:relative;display:block}
.deduction-uniform input{width:7rem;padding-inline-end:28px}
.deduction-uniform small{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.deduction-sheet>.workspace-status:empty,.deduction-sheet>.workspace-error:empty{display:none}
.deduction-sheet>.workspace-status,.deduction-sheet>.workspace-error{margin:0;padding:0 18px 10px}
:root[data-management-portal="developer"] .deduction-sheet .table-scroll table{width:100%;min-width:40rem}
.deduction-sheet .table-scroll{scrollbar-gutter:auto}
.deduction-sheet .table :is(th,td){padding-block:9px;vertical-align:middle}
.deduction-sheet .table thead tr:first-child th{background:var(--soft);font-size:12px;text-align:start;border-bottom:1px solid var(--line)}
.deduction-sheet .table thead tr:last-child th{white-space:nowrap}
.deduction-sheet .table :is(th,td):nth-child(2){border-inline-end:1px solid var(--line)}
.deduction-sheet .table thead tr:first-child th:nth-child(2){border-inline-end:0}
.deduction-sheet .table thead tr:last-child th:nth-child(n+3),.deduction-sheet .table tbody td:nth-child(n+3){width:24%;text-align:end}
.deduction-sheet .table thead tr:last-child th:has(.deduction-selected-month){background:var(--soft);color:var(--deep)}
.deduction-sheet:not(.insurance-roster-sheet) .table tbody td:nth-child(4){background:var(--hover)}
.deduction-sheet .table thead tr:first-child th:first-child{position:static;box-shadow:none}
.deduction-sheet .cell-input{display:block;width:100%;min-width:7rem;min-height:42px;text-align:end;font-variant-numeric:tabular-nums}
.deduction-sheet .cell-input:placeholder-shown{background:var(--white)}
.deduction-selected-month{display:inline-block;margin-inline-end:3px;padding:1px 4px;border-radius:4px;background:var(--white);color:var(--green);font-size:10px}
.deduction-paid{display:flex;align-items:baseline;justify-content:space-between;gap:8px;white-space:nowrap}
.deduction-paid small{color:var(--green)}
.deduction-paid strong{font-size:16px}
.deduction-receipt:empty{display:none}
.deduction-receipt small,.deduction-refunded{color:var(--muted);font-size:12px}
.deduction-receipt button{padding-inline:0;font-size:12px}
.deduction-review{border-top:1px solid var(--line)}
.deduction-review strong{margin-inline-start:6px}
.deduction-sheet .table-pagination{padding:8px 18px;margin:0}
:root[data-management-portal="developer"] .insurance-roster-sheet .table-scroll table{min-width:54rem;table-layout:fixed}
.insurance-roster-sheet .deduction-heading{padding-block:14px}
.insurance-roster-sheet .deduction-tools,.insurance-roster-sheet .deduction-review{padding-block:8px}
.insurance-roster-sheet :is(.deduction-controls,.deduction-tools,.deduction-review) button,.insurance-roster-sheet .deduction-month summary{min-height:36px}
.insurance-roster-sheet .table :is(th,td){padding:5px 8px}
.insurance-roster-sheet .table :is(thead tr:last-child th,tbody td):first-child{width:9%}
.insurance-roster-sheet .table :is(thead tr:last-child th,tbody td):nth-child(2){width:10%}
.insurance-roster-sheet .table :is(thead tr:last-child th,tbody td):nth-child(n+3){width:13.5%;border-inline-end:1px solid var(--line)}
.insurance-roster-sheet .table tbody td{overflow-wrap:anywhere}
.insurance-roster-sheet .table tbody td:nth-child(7){background:var(--hover)}
.insurance-roster-sheet .cell-input{min-width:0;min-height:30px;padding:3px 7px;font-size:14px}
.insurance-roster-sheet .cell-input::placeholder{color:var(--muted)}
.deduction-insurance-record summary{display:flex;align-items:baseline;justify-content:flex-end;gap:5px;min-height:29px;line-height:29px;list-style:none;cursor:pointer}
.deduction-insurance-record summary::-webkit-details-marker{display:none}
.deduction-insurance-record summary>span{color:var(--green)}
.deduction-insurance-record small,.deduction-insurance-record>div,.deduction-paid-legend{color:var(--muted);font-size:12px}
.deduction-insurance-record>div{display:grid;justify-items:end;gap:3px;line-height:1.4}
.deduction-insurance-record button{padding-inline:0}
.deduction-review-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 16px}
@media(max-width:600px){.insurance-roster-sheet :is(.deduction-controls,.deduction-tools,.deduction-review) button,.insurance-roster-sheet .deduction-month summary{min-height:44px}}

.salary-roster-picker{padding:14px 16px}
.salary-roster-heading,.salary-roster-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}
.salary-roster-heading h3{margin:0;color:var(--deep);font-size:18px}
.salary-roster-heading button{min-width:44px;min-height:44px;font-size:21px}
.salary-roster-picker input[type=search]{width:100%}
.salary-roster-results{max-height:19rem;overflow:auto;overscroll-behavior:contain}
.salary-roster-option-heading,.salary-roster-option{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px;padding:7px 5px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.salary-roster-option-heading{color:var(--muted);font-size:12px}
.salary-roster-option{min-height:44px;cursor:pointer}
.salary-roster-option:has(:checked){background:var(--soft)}
.salary-roster-option:has(:disabled){cursor:default;color:var(--muted)}
.salary-roster-option input[type=radio]{width:17px;height:17px;margin:0;accent-color:var(--green)}
.salary-roster-option small{display:block;color:var(--muted);font-size:11px}
.salary-roster-actions{justify-content:flex-end;padding-top:10px;border-top:1px solid var(--line)}
@media(min-width:1240px){.deduction-layout.has-salary-picker{grid-template-columns:minmax(0,1fr) minmax(17rem,.36fr)}}
@media(max-width:600px){.deduction-heading,.deduction-tools,.deduction-review{padding-inline:12px}.deduction-controls{width:100%}}

.campus-expense-reminder .campus-reminder-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.campus-expense-reminder .campus-reminder-title h2{margin:0}
.campus-expense-reminder .campus-reminder-title button{flex:none;margin:0;min-height:44px}

/* Finance home keeps money actions and teacher protection in independent cards.
   Shared table components and the existing expense owner still handle all actions. */
.finance-principal-balance{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin-bottom:14px;padding:10px 14px;border-radius:12px;background:var(--tint);overflow-wrap:anywhere}
.finance-principal-balance strong{margin-inline-start:auto;font-variant-numeric:tabular-nums}
.finance-home-layout,.finance-money-blocks{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start;min-width:0}
.finance-home-layout .finance-block.card{margin:0;padding:16px 14px 14px;border:1px solid var(--border);border-radius:18px;min-width:0}
.finance-block-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.finance-block-heading h2{display:flex;align-items:center;gap:9px;margin:0;font-size:18px;line-height:1.4;font-weight:600}
.finance-block-icon{display:grid;place-items:center;width:30px;height:30px;flex:none;background:var(--tint);border-radius:9px;color:var(--accent)}
.finance-block-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.finance-block-count{font-size:12px;color:var(--muted);white-space:nowrap}
.finance-home-layout .finance-block .table-scroll{border-radius:11px;border-color:var(--border);min-width:0}
.finance-home-layout .finance-block .data-table :is(th,td){padding:8px 7px;min-width:0;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.finance-home-layout .finance-block .data-table th{height:44px;background:var(--tint);font-size:12px;font-weight:500}
.finance-home-layout .finance-block .data-table td{height:62px}
.finance-home-layout .finance-block .data-table tr:last-child td{border-bottom:0}
.finance-home-layout .finance-block .data-table :is(th,td):first-child{text-align:left}
.finance-home-layout .finance-money-block .data-table th:nth-child(1){width:17%}
.finance-home-layout .finance-money-block .data-table th:nth-child(2){width:25%}
.finance-home-layout .finance-money-block .data-table th:nth-child(3){width:58%;text-align:left}
.finance-home-layout .finance-money-block .data-table :is(th,td):nth-child(2),.finance-home-layout .finance-money-block .data-table .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.finance-home-layout .finance-money-block .data-table td:nth-child(2){font-size:13px}
.finance-amount-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}
.finance-amount-heading>span{white-space:nowrap}
.finance-home-layout .finance-money-block [data-campus-fill]{min-height:36px;padding:0 2px;font-size:11px;white-space:nowrap}
.finance-home-layout .finance-money-block .workspace-amount{grid-template-columns:minmax(0,1fr) 72px;gap:6px}
.finance-home-layout .finance-money-block .workspace-amount input{width:100%;max-width:100%;min-width:0;height:44px;padding:8px 6px;font-size:16px;text-align:right}
.finance-home-layout .finance-money-block .workspace-amount input::placeholder{font-size:11px}
.finance-home-layout .finance-money-block .workspace-amount button{width:100%;min-width:0;min-height:44px;padding:8px 3px;font-size:11px;white-space:nowrap}
.finance-home-layout .workspace-protection.card{border-top:3px solid var(--accent);padding-top:14px}
.workspace-protection .finance-block-heading{margin-bottom:11px}
.finance-protection-help{font-size:12px;line-height:1.75;color:var(--muted);padding:10px 12px;background:var(--surface);border-radius:10px;margin:0 0 14px}
.finance-protection-add{display:grid;grid-template-columns:minmax(0,1fr) 106px;align-items:end;gap:10px;margin-bottom:14px}
.finance-protection-add .field{margin:0}
.finance-protection-add .field>span{font-size:12px;margin-bottom:6px}
.finance-protection-add select{height:44px;min-height:44px;font-size:16px;padding:8px 10px;background:var(--surface)}
.finance-protection-add .primary{min-height:44px;padding:8px 10px;font-size:13px}
.finance-home-layout .workspace-protection .data-table th:first-child{width:62%;padding-left:12px}
.finance-home-layout .workspace-protection .data-table th:last-child{width:38%;text-align:center}
.finance-home-layout .workspace-protection .data-table td:first-child{padding-left:12px}
.finance-home-layout .workspace-protection .data-table button{min-height:44px;font-size:12px;padding:8px}
.finance-protected-name{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--deep)}
.finance-protected-name small{font-size:11px;line-height:1.5;color:var(--accent);background:var(--tint);padding:3px 7px;border-radius:99px;white-space:nowrap}
@media(min-width:760px){.finance-home-layout{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px}}
@media(max-width:360px){.finance-home-layout .finance-block.card{padding-inline:10px}.finance-home-layout .finance-block .data-table :is(th,td){padding-inline:4px}.finance-home-layout .finance-money-block .workspace-amount{grid-template-columns:minmax(0,1fr) 64px;gap:4px}.finance-home-layout .finance-money-block .workspace-amount input{padding-inline:3px}.finance-block-heading h2{font-size:17px}}

/* The two-month insurance register is shared by the platform and finance workspaces. */
.insurance-register{
  --sheet-line:var(--border,var(--line,#d7e4df));--sheet-tint:color-mix(in srgb,var(--accent,var(--green,#278568)) 9%,white);
  --sheet-ink:var(--ink,var(--deep,#153c33));--sheet-paper:var(--white,#fff);
  min-width:0;margin:12px 0;color:var(--sheet-ink);container-type:inline-size;
}
.panel>.insurance-register{margin:0;padding:clamp(12px,2vw,24px)}
.insurance-head,.insurance-actions,.insurance-review,.insurance-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.insurance-head,.insurance-review{justify-content:space-between}
.insurance-head{margin:0 0 14px;padding:0 0 14px;border-bottom:2px solid var(--sheet-line)}
.insurance-head h3{margin:0;color:var(--sheet-ink);font-size:21px;line-height:1.4}
.insurance-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.insurance-head strong{color:var(--sheet-ink);font-weight:600}
.insurance-register .insurance-tools{align-items:end;padding:12px;border-radius:10px;background:var(--sheet-tint);margin-bottom:14px}
.insurance-tools>.field{flex:1 1 7rem;min-width:0;max-width:14rem;margin:0}
.insurance-tools button,.insurance-actions button,.insurance-review button{margin:0;min-height:44px;padding-inline:10px}
.insurance-register .table-scroll{width:100%;max-width:100%;margin:0;border:1px solid var(--sheet-line);border-radius:10px;scrollbar-gutter:auto}
:root .workspace .insurance-register .table-scroll table{width:100%;min-width:0;table-layout:fixed}
:root .workspace .insurance-register .table-scroll :is(th,td){
  min-width:0;padding:9px 6px;white-space:normal;text-align:right;vertical-align:middle;font-variant-numeric:tabular-nums;
}
:root .workspace .insurance-register .table-scroll :is(th,td):first-child{width:32%;position:static;text-align:left;overflow-wrap:anywhere;box-shadow:none}
:root .workspace .insurance-register .table-scroll th{background:var(--sheet-tint);color:var(--sheet-ink);font-weight:650}
.insurance-register :is(th small,.insurance-legal-name){display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5}
.insurance-register th span{display:block}
.insurance-register td:last-child{background:color-mix(in srgb,var(--sheet-tint) 30%,var(--sheet-paper))}
.insurance-register .cell-input{display:block;width:100%;min-width:0;min-height:42px;padding:6px;text-align:right;font-variant-numeric:tabular-nums}
.insurance-register .deduction-paid{display:grid;justify-content:end;gap:0;white-space:normal}
.insurance-register .deduction-receipt button,.insurance-register .deduction-insurance-record summary{min-height:40px;margin:0}
.insurance-register .insurance-review{margin-top:12px;padding-top:12px;border-top:1px solid var(--sheet-line)}
.insurance-register .insurance-review p{display:grid;gap:2px;margin:0;font-size:12px;color:var(--muted)}
.insurance-register .insurance-review strong{color:var(--sheet-ink);font-size:17px}
.insurance-register .workspace-status:empty,.insurance-register .workspace-error:empty{display:none}
@container (max-width:360px){
  .insurance-register .insurance-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .insurance-register .insurance-tools>.field{display:flex;flex-direction:row;align-items:center;grid-column:1/-1;width:100%;max-width:none;gap:10px}
  .insurance-register .insurance-tools>.field>span{flex:none}
  .insurance-register .insurance-tools>.field>input{width:0;flex:1;min-width:0}
  .insurance-register .table-scroll th span{font-size:12px}
}
