.allowance-panel{padding:0 20px 18px;min-width:0}.allowance-panel>.business-tabs{margin:0 -20px;padding:12px 20px;border-bottom:1px solid var(--line);gap:6px;flex-wrap:wrap}.allowance-panel .business-tabs button{padding:8px 12px;min-height:36px;white-space:nowrap}.allowance-bookbar,.allowance-daybar,.allowance-range,.allowance-actions,.allowance-summary-tools,.allowance-savebar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.allowance-bookbar{padding:15px 0 12px;border-bottom:1px solid var(--line)}.allowance-bookbar>label{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}.allowance-bookbar select{width:auto;min-width:160px}.allowance-mode{font-size:12px;color:var(--muted);margin-left:auto}.allowance-daybar{padding:16px 0 12px;justify-content:space-between}.allowance-date{display:flex;align-items:center;gap:8px}.allowance-date input{width:156px;min-width:0}.allowance-date>button{padding:0;width:32px;min-height:36px;font-size:22px}.allowance-date>span{color:var(--muted);font-size:12px}.allowance-totals{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;font-size:12px;color:var(--muted)}.allowance-totals strong{font-size:22px;color:var(--text);font-variant-numeric:tabular-nums}.allowance-warning{color:#9b641d}.allowance-actions{margin-bottom:14px}.allowance-actions button{min-height:34px;padding:6px 11px}.allowance-actions>[data-refresh]{margin-left:auto}.allowance-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.allowance-group{border:1px solid var(--line);border-radius:9px;overflow:hidden;min-width:0}.allowance-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:#f7f8fa;border-bottom:1px solid var(--line)}.allowance-group-head h3{display:flex;align-items:center;gap:10px;font-size:14px;margin:0}.allowance-group-head h3 span{font-size:11px;color:var(--muted);font-weight:400}.allowance-panel button.allowance-icon{padding:0;width:28px;min-height:28px;flex-shrink:0;border-color:transparent;background:transparent;color:var(--muted);font-size:18px;line-height:1}.allowance-panel button.allowance-icon:hover{background:var(--accent-soft);color:var(--accent)}.allowance-panel button.is-locked,.allowance-panel button.linked{color:var(--accent);background:var(--accent-soft)}.allowance-record{display:grid;grid-template-columns:minmax(82px,1fr) minmax(0,330px);align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #edf0f4}.allowance-record:last-child{border:0}.allowance-record-title{min-width:0;font-size:13px}.allowance-record-title small{display:block;font-size:11px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.allowance-row-controls{display:grid;grid-template-columns:minmax(92px,1fr) 86px 58px 28px;gap:6px;align-items:center;min-width:0}.allowance-row-controls select{width:100%;min-width:0;font-size:12px;min-height:32px;padding-top:4px;padding-bottom:4px}.allowance-money{font-size:13px;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.allowance-money.muted{color:#95a0ae;font-weight:400}.allowance-source{font-size:10px;color:var(--muted)}.allowance-evening{grid-column:1/-1}.allowance-evening-head{display:grid;grid-template-columns:1fr 1fr;background:#f7f8fa;padding-left:62px;padding-right:40px;border-bottom:1px solid var(--line)}.allowance-evening-head .allowance-group-head{border:0}.allowance-pair{display:grid;grid-template-columns:52px minmax(0,1fr) minmax(0,1fr) 28px;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid #edf0f4}.allowance-pair:last-child{border:0}.allowance-class{font-size:13px}.allowance-field-label{display:none}.allowance-evening-cell .allowance-row-controls{grid-template-columns:minmax(100px,1fr) 86px 65px 28px}.allowance-savebar{justify-content:space-between;gap:12px;padding:14px 0 0;margin-top:16px;border-top:1px solid var(--line)}.allowance-savebar>span{font-size:12px;color:var(--muted)}.allowance-savebar>div{display:flex;gap:8px}.allowance-notice{background:#fff8e9;border:1px solid #efdfb9;border-radius:7px;padding:10px 12px;font-size:12px;color:#805c2c}.allowance-dialog{width:min(780px,calc(100vw - 32px))}.allowance-dialog .dialog-body>label{margin-bottom:14px}.allowance-dialog .dialog-body label.allowance-check,.allowance-checks>label,.allowance-teacher-picker>label{display:flex;align-items:center;gap:8px}.allowance-dialog input[type=checkbox],.allowance-checks input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--accent)}.allowance-checks{display:flex;gap:14px;flex-wrap:wrap;margin:12px 0 18px}.allowance-checks>label{font-size:12px}.allowance-teacher-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:230px;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:7px;margin-top:8px}.allowance-teacher-picker>label{font-size:12px}.allowance-teacher-picker [hidden]{display:none}.allowance-class-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.allowance-removed>div{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.allowance-range{padding:16px 0;align-items:end}.allowance-range>label{display:grid;gap:5px;font-size:12px;color:var(--muted)}.allowance-range input{width:160px}.allowance-range .allowance-totals{margin-left:auto;padding-bottom:7px}.allowance-summary-tools{justify-content:space-between;margin-bottom:12px}.allowance-summary-tools>div{display:flex;gap:8px;flex-wrap:wrap}.allowance-summary-table{min-width:0;width:100%}.allowance-summary-table td,.allowance-summary-table th{padding:10px 12px}.allowance-history{border-top:1px solid var(--line);margin-top:18px;padding-top:10px}.allowance-history h3{font-size:14px}.allowance-history>div{display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #edf0f4}.allowance-history>div>span{flex:1}.allowance-history small{display:block;color:var(--muted);margin-top:4px}.allowance-issues{border:1px solid #eadab5;border-radius:6px;background:#fffaf0;font-size:12px;padding:10px 12px;margin-bottom:12px}.allowance-issues summary{cursor:pointer}.allowance-issues p{line-height:1.7;overflow-wrap:anywhere}.allowance-publication-total{font-size:30px;font-weight:700;margin:16px 0;color:var(--accent)}.allowance-settings h3{font-size:14px;margin:0 0 14px}.allowance-settings section{padding:18px 0;border-bottom:1px solid var(--line)}.allowance-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.allowance-rate-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.allowance-rate-grid label,.allowance-companions label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.allowance-unit-input{position:relative}.allowance-unit-input input{width:100%;padding-right:32px}.allowance-unit-input span{position:absolute;right:12px;top:11px;color:var(--muted)}.allowance-companions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.allowance-companions label{grid-template-columns:42px minmax(0,1fr);align-items:center}.allowance-companions select{width:100%;min-width:0}.allowance-template-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.allowance-template-head h3{margin:0}.allowance-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.allowance-template-grid>label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.allowance-template-grid select{min-width:0;width:100%}.allowance-detail-table small{display:block;color:var(--muted);font-size:11px}.allowance-panel input:disabled,.allowance-panel select:disabled{opacity:.75}.allowance-settings textarea{width:100%;border:1px solid var(--line);border-radius:7px;padding:10px;font:inherit;resize:vertical;background:var(--surface);color:var(--text)}
@media(max-width:1200px){.allowance-groups{grid-template-columns:1fr}.allowance-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.allowance-pair{gap:8px}.allowance-evening-cell .allowance-row-controls{grid-template-columns:minmax(86px,1fr) 78px 50px 24px;gap:4px}}
@media(max-width:700px){.allowance-panel{padding:0 12px 14px}.allowance-panel>.business-tabs{margin:0 -12px;padding:10px 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.allowance-panel>.business-tabs button{padding:7px 4px;font-size:12px;min-width:0}.allowance-bookbar{gap:7px}.allowance-bookbar>label{gap:7px}.allowance-bookbar select{min-width:0;max-width:160px;font-size:12px}.allowance-bookbar .scope-tags{display:none}.allowance-daybar{gap:12px}.allowance-date{width:100%;justify-content:space-between}.allowance-date input{flex:1;max-width:190px}.allowance-totals{gap:10px}.allowance-actions{gap:6px}.allowance-actions button{font-size:11px;padding:5px 8px}.allowance-actions>[data-refresh]{margin-left:0}.allowance-record{grid-template-columns:1fr;padding:8px 10px;gap:6px}.allowance-record-title{display:flex;gap:8px;align-items:baseline}.allowance-record-title small{margin:0}.allowance-row-controls{grid-template-columns:minmax(0,1fr) 80px 52px 24px}.allowance-evening-head{padding:0}.allowance-evening-head .allowance-group-head{padding:9px 10px}.allowance-pair{grid-template-columns:1fr 28px;gap:8px;padding:10px}.allowance-class{grid-column:1}.allowance-pair>.allowance-icon{grid-column:2;grid-row:1}.allowance-evening-cell{grid-column:1/-1;display:grid;grid-template-columns:38px minmax(0,1fr);gap:5px;align-items:center}.allowance-field-label{display:block;font-size:10px;color:var(--muted)}.allowance-evening-cell .allowance-row-controls{grid-template-columns:minmax(0,1fr) 72px 42px 20px;gap:4px}.allowance-row-controls select{font-size:11px;padding-left:7px;padding-right:25px;background-position:right 9px center}.allowance-savebar{align-items:start}.allowance-savebar>div{margin-left:auto}.allowance-savebar>span{width:100%}.allowance-dialog{width:calc(100vw - 20px)}.allowance-teacher-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.allowance-range{gap:8px}.allowance-range>label{flex:1;min-width:0}.allowance-range input{width:100%;min-width:0;padding:8px 5px;font-size:12px}.allowance-range>.allowance-totals{width:100%;margin:4px 0 0;padding:0}.allowance-summary-tools{gap:10px}.allowance-summary-table td,.allowance-summary-table th{font-size:11px;padding:8px 4px}.allowance-summary-table th:nth-child(2),.allowance-summary-table td:nth-child(2){display:none}.allowance-history>div{gap:8px;flex-wrap:wrap}.allowance-history>div>span{min-width:150px}.allowance-history small{font-size:10px}.allowance-history>div button{font-size:11px;padding:6px 8px}.allowance-settings-grid{grid-template-columns:1fr;gap:0}.allowance-template-grid{grid-template-columns:1fr 1fr;gap:10px}.allowance-template-grid select{font-size:11px}.allowance-checks{gap:12px}.allowance-companions label{grid-template-columns:36px minmax(0,1fr);gap:2px}.allowance-companions select{font-size:11px}.allowance-settings .field-grid{grid-template-columns:1fr}.allowance-detail-table{min-width:0}.allowance-detail-table td,.allowance-detail-table th{font-size:11px;padding:7px 5px}.allowance-detail-table td:first-child{white-space:nowrap}}

.allowance-panel .allowance-icon svg{display:block;width:17px;height:17px;margin:auto}

.allowance-pick-field{margin:14px 0;font-size:12px;color:var(--muted)}.allowance-pick-field>input{width:100%;margin-top:7px}.allowance-dialog table{min-width:0;width:100%}.allowance-dialog td{overflow-wrap:anywhere}
/* Daily ledger: one geometry for teacher, attendance, amount and tools. */
.allowance-panel{--attendance-width:84px;--amount-width:62px;--row-tool-width:28px;--ledger-gap:8px}
.allowance-bookbar{min-height:60px}.allowance-bookbar .soft-note,.allowance-bookbar .allowance-mode{margin-top:0;margin-bottom:0;line-height:1.5}
.allowance-record{grid-template-columns:56px minmax(0,1fr);gap:var(--ledger-gap);padding:8px 12px;min-height:51px}
.allowance-record-title{align-self:center}.allowance-record-title b{font-size:12px;white-space:nowrap}.allowance-record-title small:empty{display:none}
.allowance-row-controls,.allowance-evening-cell .allowance-row-controls{grid-template-columns:minmax(0,1fr) var(--attendance-width) var(--amount-width) var(--row-tool-width);gap:var(--ledger-gap);align-items:center}
.allowance-row-controls select{height:34px;min-height:34px;line-height:20px;padding-top:6px;padding-bottom:6px;font-size:12px}
.allowance-money{display:flex;align-items:center;justify-content:flex-end;height:34px;line-height:20px;font-size:13px}
.allowance-panel .allowance-row-controls>.allowance-icon{height:28px;min-height:28px;line-height:28px}
.allowance-group-head{min-height:46px;padding:8px 12px;border-left:0;background:#f5f6f8}
.allowance-group-head h3{font-size:13px;line-height:20px;gap:8px;white-space:nowrap}
.allowance-evening-head,.allowance-pair{grid-template-columns:56px minmax(0,1fr) minmax(0,1fr) 28px;gap:var(--ledger-gap);padding-left:12px;padding-right:12px}
.allowance-evening-head{background:transparent}.allowance-evening-head>.allowance-group-head:first-child{grid-column:2}.allowance-evening-head>.allowance-group-head:nth-child(2){grid-column:3}.allowance-evening-head .allowance-group-head{padding:8px;min-width:0}
.allowance-pair{min-height:51px;padding-top:8px;padding-bottom:8px}.allowance-pair>.allowance-icon{justify-self:center}.allowance-evening-cell{min-width:0}
@media(min-width:701px) and (max-width:1100px){.allowance-panel{--attendance-width:76px;--amount-width:54px;--ledger-gap:6px}.allowance-groups{grid-template-columns:1fr}.allowance-row-controls select{font-size:12px}}
@media(max-width:700px){.allowance-panel{--attendance-width:82px;--amount-width:54px;--ledger-gap:6px}.allowance-record{grid-template-columns:1fr;gap:5px;min-height:0}.allowance-record-title{display:flex;gap:8px}.allowance-row-controls select{font-size:12px;padding-left:8px;padding-right:25px}.allowance-evening-head{grid-template-columns:1fr 1fr;padding:0;gap:0}.allowance-evening-head>.allowance-group-head:first-child{grid-column:1}.allowance-evening-head>.allowance-group-head:nth-child(2){grid-column:2}.allowance-pair{grid-template-columns:minmax(0,1fr) 28px;padding:10px;gap:8px}.allowance-evening-cell{grid-template-columns:34px minmax(0,1fr);gap:4px}.allowance-evening-cell .allowance-row-controls{grid-template-columns:minmax(0,1fr) 76px 48px 20px;gap:4px}.allowance-field-label{font-size:11px}.allowance-money{font-size:12px}.allowance-bookbar{min-height:56px}.allowance-group-head h3{font-size:13px}.allowance-daybar{padding-top:13px}}
@media(min-width:701px){.allowance-evening-head{gap:0;grid-template-columns:64px minmax(0,1fr) minmax(0,1fr) 36px;padding:0}.allowance-evening-head>.allowance-group-head:first-child{grid-column:1/3;padding:8px 12px}.allowance-evening-head>.allowance-group-head:nth-child(2){grid-column:3/5;padding:8px 12px}}
.allowance-date>.allowance-date-trigger{display:flex;align-items:center;justify-content:space-between;gap:18px;width:164px;height:36px;min-height:36px;padding:7px 11px;font-size:13px;line-height:20px;font-weight:600;font-variant-numeric:tabular-nums}.allowance-date-trigger>span{font-size:16px}.allowance-date-trigger.confirmed{color:#246646;border-color:#a3c9b3;background:#f0f8f3;box-shadow:inset 3px 0 #39805a}.allowance-date-trigger.unconfirmed{color:#9d1d23;border-color:#e0b4b7;background:#fff4f3;box-shadow:inset 3px 0 #b7222a}.allowance-date-trigger.future{color:#365f8c;border-color:#aac3df;background:#f0f6fc;box-shadow:inset 3px 0 #557aa5}.allowance-calendar-dialog{width:min(360px,calc(100vw - 28px))}.allowance-calendar-dialog .dialog-body{padding:16px}.ledger-calendar-month{display:grid;grid-template-columns:32px 1fr 32px;align-items:center;text-align:center;margin-bottom:12px}.ledger-calendar-month button{min-height:30px;height:30px;padding:0;font-size:23px;border-color:transparent}.ledger-calendar-month b{font-size:14px}.ledger-calendar-week,.ledger-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;text-align:center}.ledger-calendar-week{font-size:11px;color:var(--muted);margin-bottom:8px}.ledger-calendar-days button,.ledger-calendar-days>span{aspect-ratio:1;width:100%;min-width:0;min-height:0;display:grid;place-items:center;padding:0;font-size:13px;font-weight:600;border:1px solid transparent;border-radius:6px;font-variant-numeric:tabular-nums}.ledger-calendar-days .confirmed,.ledger-calendar-legend .confirmed{background:#dff2e7;color:#246646}.ledger-calendar-days .unconfirmed,.ledger-calendar-legend .unconfirmed{background:#fde3e3;color:#9d1d23}.ledger-calendar-days .future,.ledger-calendar-legend .future{background:#e6f0fa;color:#365f8c}.ledger-calendar-days .selected{outline:2px solid #ac813c;outline-offset:1px}.ledger-calendar-days .unavailable{background:#f3f4f6;color:#a8aeb8;opacity:1}.ledger-calendar-legend{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;font-size:11px;color:var(--muted)}.ledger-calendar-legend span{display:flex;align-items:center;gap:5px}.ledger-calendar-legend i{width:10px;height:10px;border-radius:2px}
.allowance-template-dialog{width:min(600px,calc(100vw - 28px))}.allowance-template-dialog .dialog-head{padding:18px 20px}.allowance-template-dialog .dialog-body{padding:20px}.allowance-template-dialog .dialog-footer{padding:12px 20px}.allowance-template-options{display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px;align-items:end}.allowance-template-options>label:first-child{display:grid;gap:6px;font-size:12px;color:var(--muted)}.allowance-template-options select{width:100%;height:36px;min-height:36px;margin:0}.allowance-template-options>label.allowance-check{margin:0;min-height:36px;align-self:end;font-size:13px;line-height:20px}.allowance-template-form>.allowance-checks{border:0;padding:0;margin:18px 0 12px;gap:10px 16px;min-width:0}.allowance-template-form>.allowance-checks>label{font-size:13px;line-height:22px;white-space:nowrap;gap:7px}.allowance-template-form>.soft-note{margin:0;font-size:12px;line-height:1.7}.allowance-template-form input[type=checkbox]{width:16px;height:16px;min-height:16px;flex-shrink:0;margin:0}
@media(max-width:700px){.allowance-template-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.allowance-template-dialog .dialog-body{padding:16px}.allowance-template-options>label.allowance-check{font-size:12px;gap:6px;white-space:nowrap}.allowance-template-form>.allowance-checks{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.allowance-template-form>.allowance-checks>label{font-size:12px}.allowance-template-dialog .dialog-head{padding:16px}.allowance-template-dialog .dialog-footer{padding:12px 16px}}
/* Shared financial form and table rhythm, including all secondary dialogs. */
.allowance-dialog{width:min(680px,calc(100vw - 28px))}.allowance-dialog .dialog-head{padding:18px 20px}.allowance-dialog .dialog-body{padding:20px}.allowance-dialog .dialog-footer{padding:12px 20px}.allowance-dialog .field-grid{align-items:end;gap:14px}.allowance-dialog input:not([type=checkbox]):not([type=hidden]),.allowance-dialog select{height:36px;min-height:36px;font-size:13px}.allowance-dialog .dialog-body>label{font-size:12px;margin-bottom:0}.allowance-pick-field{margin:14px 0;font-size:12px}.allowance-picker-heading{display:flex;align-items:center;justify-content:space-between;min-height:28px;gap:10px}.allowance-picker-heading>span{display:flex;gap:10px;align-items:center}.allowance-picker-heading b{font-size:11px;font-weight:400;color:var(--muted)}.allowance-picker-heading .text-button{font-size:12px;min-height:28px;padding:3px 6px}.allowance-teacher-picker{max-height:190px;gap:3px 10px;padding:8px}.allowance-teacher-picker>label{min-height:26px;font-size:13px;gap:7px}.allowance-teacher-picker[hidden]{display:none}.allowance-picker-empty{padding:20px 0;margin:8px 0;text-align:center;font-size:12px;color:var(--muted);border:1px dashed var(--line);border-radius:7px}.allowance-picker-empty[hidden]{display:none}.allowance-class-picker button{height:38px;min-height:38px;padding:7px 10px;font-size:13px}.allowance-dialog .soft-note{font-size:12px;line-height:1.7}.allowance-dialog .form-error:empty{display:none}
.allowance-template-dialog{width:min(600px,calc(100vw - 28px))}.allowance-calendar-dialog{width:min(360px,calc(100vw - 28px))}.allowance-calendar-dialog .dialog-body{padding:16px}
.allowance-summary-tools{align-items:center;gap:10px}.allowance-summary-tools>.business-tabs{display:inline-flex;align-items:center;min-height:36px;height:36px;border:0;padding:0;margin:0;gap:6px}.allowance-summary-tools button{height:36px;min-height:36px;padding:7px 12px;font-size:12px;line-height:20px}.allowance-range button{height:36px;min-height:36px;padding:7px 12px}.allowance-range .allowance-totals{align-items:center;height:36px;align-self:end;padding:0;margin-left:auto;line-height:20px}.allowance-range input{height:36px;min-height:36px}.allowance-range .allowance-totals strong{line-height:28px}
.allowance-summary-table th,.allowance-summary-table td{font-size:13px;text-align:left;vertical-align:middle;padding:10px 12px;font-variant-numeric:tabular-nums}.allowance-summary-table th:nth-child(3),.allowance-summary-table td:nth-child(3),.allowance-summary-table th:nth-child(4),.allowance-summary-table td:nth-child(4){text-align:right}.allowance-summary-table th:last-child,.allowance-summary-table td:last-child{width:64px;text-align:right;padding-right:6px}.allowance-summary-table .text-button{white-space:nowrap;min-height:30px;padding:4px 6px}.allowance-dialog .allowance-teacher-table,.allowance-dialog .allowance-detail-table{table-layout:fixed;width:100%;min-width:0}.allowance-teacher-table th,.allowance-teacher-table td,.allowance-detail-table th,.allowance-detail-table td{font-size:12px;vertical-align:middle;padding:9px 10px;text-align:left;font-variant-numeric:tabular-nums}.allowance-teacher-table th:nth-child(n+3),.allowance-teacher-table td:nth-child(n+3),.allowance-detail-table th:last-child,.allowance-detail-table td:last-child{text-align:right}.allowance-detail-table th:first-child{width:106px}.allowance-detail-table th:nth-child(3){width:80px}.allowance-detail-table th:last-child{width:82px}.allowance-detail-table small{line-height:1.6;margin-top:3px}.allowance-dialog details{margin-top:12px;font-size:12px}.allowance-dialog details>summary{cursor:pointer;line-height:1.7}.allowance-history>div{display:grid;grid-template-columns:minmax(0,1fr) 110px 92px;align-items:center;gap:12px}.allowance-history>div>b{text-align:right;font-variant-numeric:tabular-nums}.allowance-history>div>button{min-height:34px;padding:6px 10px;font-size:12px}.allowance-history small{line-height:1.6}
.allowance-rate-grid{gap:10px 12px}.allowance-rate-grid label{grid-template-columns:minmax(0,1fr) 90px;align-items:center;gap:8px;line-height:1.5}.allowance-unit-input input{height:36px;min-height:36px;padding-right:28px;text-align:right;font-size:13px;font-variant-numeric:tabular-nums}.allowance-unit-input span{top:50%;transform:translateY(-50%);font-size:12px;line-height:18px;right:10px}.allowance-companions label{font-size:12px;line-height:1.5}.allowance-companions select{height:36px;min-height:36px;font-size:12px}.allowance-template-grid select{height:36px;min-height:36px}.allowance-settings h3{margin-bottom:14px}.allowance-settings .field-grid{align-items:start}.allowance-settings .field-grid input{height:36px;min-height:36px}.allowance-settings .field-grid label{min-width:0}
@media(max-width:700px){.allowance-dialog .dialog-head{padding:16px}.allowance-dialog .dialog-body{padding:16px}.allowance-dialog .dialog-footer{padding:12px 16px}.allowance-dialog .field-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.allowance-dialog .field-grid label{min-width:0}.allowance-dialog .field-grid input,.allowance-dialog .field-grid select{width:100%;min-width:0;font-size:12px}.allowance-teacher-picker{grid-template-columns:repeat(3,minmax(0,1fr));max-height:190px;gap:3px 8px;padding:7px}.allowance-teacher-picker>label{font-size:12px;gap:6px;min-width:0}.allowance-class-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.allowance-summary-tools>div{gap:6px}.allowance-summary-tools>.business-tabs{width:100%;margin-bottom:3px}.allowance-summary-tools>div:last-child{margin-left:auto}.allowance-summary-tools button{font-size:12px;padding:7px 9px}.allowance-range .allowance-totals{height:auto;width:100%;margin:3px 0 0;justify-content:space-between}.allowance-summary-table th,.allowance-summary-table td{font-size:12px;padding:9px 5px}.allowance-summary-table th:last-child,.allowance-summary-table td:last-child{width:42px;padding-right:0}.allowance-dialog .allowance-detail-table{table-layout:auto}.allowance-detail-table th:first-child{width:84px}.allowance-detail-table th:nth-child(3){width:52px}.allowance-detail-table th:last-child{width:54px}.allowance-detail-table th,.allowance-detail-table td{padding:9px 4px;font-size:11px}.allowance-teacher-table th,.allowance-teacher-table td{padding:9px 5px;font-size:12px}.allowance-history>div{grid-template-columns:minmax(0,1fr) auto;gap:8px}.allowance-history>div>b{align-self:start}.allowance-history>div>button{grid-column:2;justify-self:end}.allowance-rate-grid{gap:10px}.allowance-rate-grid label{grid-template-columns:minmax(0,1fr) 64px;gap:6px;font-size:12px}.allowance-unit-input input{font-size:12px;padding-left:4px;padding-right:23px}.allowance-unit-input span{right:7px}.allowance-companions{gap:10px}.allowance-companions label{grid-template-columns:35px minmax(0,1fr);gap:4px}.allowance-companions select{font-size:12px}.allowance-template-grid>label>span{display:flex;align-items:end;min-height:32px;line-height:16px}.allowance-settings .field-grid{grid-template-columns:1fr}}
.allowance-dialog .dialog-body>.soft-note,.allowance-dialog .dialog-body>p,.allowance-pick-field{margin:0}
.allowance-publication-total{margin:0;font-size:26px;line-height:34px;font-variant-numeric:tabular-nums}
.allowance-panel input[type=number],.allowance-dialog input[type=number]{appearance:textfield;-moz-appearance:textfield}.allowance-panel input[type=number]::-webkit-inner-spin-button,.allowance-panel input[type=number]::-webkit-outer-spin-button,.allowance-dialog input[type=number]::-webkit-inner-spin-button,.allowance-dialog input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.allowance-summary-tools>div:last-child{display:flex;align-items:center;gap:7px;flex-wrap:wrap}

.allowance-summary-strip{display:flex;flex-wrap:wrap;gap:12px 24px;margin:12px 0}.allowance-summary-strip b{display:block;font-size:16px;color:var(--text)}
.allowance-matrix-scroll{max-width:100%;overflow:auto;margin:10px 0 18px}.allowance-matrix{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-variant-numeric:tabular-nums}.allowance-matrix th,.allowance-matrix td{white-space:nowrap;padding:8px 10px;text-align:right;border-bottom:1px solid var(--line);background:var(--surface,#fff)}.allowance-matrix tr>:nth-child(2){position:sticky;left:0;text-align:left;z-index:1}.allowance-matrix thead th{background:var(--bg,#f3f5f8)}.allowance-matrix small{display:block;color:var(--muted);font-size:11px}
