/* Funding tab (14 Nov 2026): status tiles, one card per action, two-column form at desktop, one column on phones. Theme tokens only. */
.fundingAdmin{color:var(--ink);max-width:none;font-variant-numeric:tabular-nums}
.fundingAdmin:not(.embedded){background:var(--surface);padding:20px;border:1px solid var(--hair);border-radius:12px}
.fundingAdmin>h2{font:400 22px var(--disp);margin:0 0 4px}
.funding-notice{font-size:13px;color:var(--ink-2);margin:0 0 12px}.funding-notice:empty{display:none}
.funding-card{background:var(--surface);border:1px solid var(--hair);border-radius:12px;padding:20px 24px;margin:0 0 16px}
.funding-card-head{margin:0 0 14px}.funding-card-head h3{font:400 20px/1.3 var(--disp);letter-spacing:-.2px;margin:0 0 4px;color:var(--ink)}.funding-card-head p{margin:0;font-size:13px;color:var(--ink-2);line-height:1.5}
.funding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px}
.funding-field{display:flex;flex-direction:column;gap:var(--gap-label);margin:8px 0;min-width:0}.funding-field.wide{grid-column:1/-1}
.funding-field label{font-size:13px;font-weight:500;color:var(--ink)}
.funding-required{color:var(--brick)}
.funding-hint{display:block;font-size:12px;line-height:1.45;color:var(--ink-3);margin:0}
.fundingAdmin .input{min-height:42px;max-width:100%;box-sizing:border-box;width:100%}
.fundingAdmin input[type=number],.fundingAdmin input[inputmode=decimal]{text-align:right;font-variant-numeric:tabular-nums}
.fundingAdmin input[type=checkbox]{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--accent-button);vertical-align:middle}
.funding-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0 4px}
.fundingAdmin .btn{white-space:normal}
.funding-alert{color:var(--brick);font-size:13px;margin:10px 0 0}.funding-alert:empty{display:none}
/* Client month: company total + most one person can use, the arithmetic line, and two closed-by-default sections. */
.funding-grid>.wide{grid-column:1/-1}
.funding-arith{margin:4px 0 8px;padding:10px 12px;border-radius:10px;background:var(--surface-2);font-size:13px;line-height:1.5;color:var(--ink-2)}.funding-arith:empty{display:none}
.funding-more-people{margin:0 0 4px}
.funding-people,.funding-options{margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--hair);min-width:0}
.funding-people>summary,.funding-options>summary{cursor:pointer;font:500 14px/1.4 var(--ui);color:var(--ink);width:max-content;max-width:100%}
.funding-people[open]>summary,.funding-options[open]>summary{margin-bottom:8px}
.funding-people>.funding-hint,.funding-options>.funding-hint{margin:0 0 4px}
.funding-card-head p+p{margin-top:4px}
.funding-plan{font-size:15px!important;line-height:1.5;color:var(--ink)!important;font-weight:500;margin:0 0 4px!important}
.funding-table-scroll{overflow-x:auto;margin:10px 0 6px;border:1px solid var(--hair);border-radius:10px}
.funding-table{width:100%;border-collapse:collapse;font-size:13px}
.funding-table th,.funding-table td{padding:10px 14px;text-align:left;border-bottom:1px solid var(--hair);vertical-align:middle}
.funding-table tbody tr:last-child>*{border-bottom:0}
.funding-table thead th{font-size:11px;font-weight:500;color:var(--ink-3);text-transform:none;background:var(--surface-2)}
.funding-table tbody th{font-weight:500}.funding-table tbody th label{font-size:13px}
.funding-table .num{text-align:right;font-variant-numeric:tabular-nums}.funding-table .center{text-align:center}
.funding-table .funding-credit{width:110px;min-height:36px;margin-left:auto;display:block}
.funding-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;margin:0 0 6px}
.funding-summary div{min-width:0}.funding-summary dt{font-size:12px;color:var(--ink-3);margin:0 0 2px}.funding-summary dd{margin:0;font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.funding-saved{font-size:14px!important;color:var(--sage-dk)!important;font-weight:500}
.funding-cancel{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;margin-top:8px}.funding-cancel .funding-field{flex:1 1 240px}
.funding-more{margin:12px 0 0;font-size:12px;color:var(--ink-3)}.funding-more summary{cursor:pointer;width:max-content}.funding-more[open]>summary{margin-bottom:8px}
.funding-more pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.4 var(--mono);max-height:240px;overflow:auto;background:var(--surface-2);padding:10px;border-radius:8px}
.funding-other{margin:0 0 16px;border:1px dashed var(--hair-2);border-radius:12px;padding:12px 16px}.funding-other>summary{cursor:pointer;font-size:13px;color:var(--ink-2)}.funding-other[open]>summary{margin-bottom:6px}
.funding-trouble{margin-top:20px}
.fundingAdmin :focus-visible{outline:2px solid var(--iris);outline-offset:2px}
/* Tab header, status tiles and footnote (client/native-owner-funding-page.js). */
.funding-head{align-items:flex-start}.funding-head h2{font:400 24px/1.2 var(--disp);letter-spacing:-.2px}.funding-lede{font-size:13px!important;line-height:1.5;color:var(--ink-2)!important}
.funding-how{flex:0 1 380px;font-size:12px;color:var(--ink-2);border:1px solid var(--hair);border-radius:12px;padding:8px 12px;background:var(--surface)}
.funding-how summary{font-weight:500;color:var(--ink)}.funding-how ol{margin:8px 0 2px;padding-left:18px;display:grid;gap:6px;line-height:1.45}
/* The two groups (your limit, clients) sit side by side at desktop width and stack on phones; each tile fills its group. */
.funding-status{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin:0 0 18px;align-items:start}.funding-status:empty{display:none}
.funding-status>.admin-loader{grid-column:1/-1}
.funding-group-title{font:600 14px/1.3 var(--ui);color:var(--ink);margin:0 0 8px}
.funding-group-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
.funding-tile{background:var(--surface);border:1px solid var(--hair);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:6px;min-width:0}
.funding-tile.warn .funding-tile-label::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--status-warn);vertical-align:1px} /* needs action: a status dot in the normal card, no coloured edge */
.funding-tile-label{font-size:12px;font-weight:500;color:var(--ink-3)}
.funding-tile-value{font:400 28px/1.15 var(--disp);letter-spacing:-.3px;color:var(--ink);font-variant-numeric:tabular-nums}.funding-tile-value small{font:400 13px var(--ui);letter-spacing:0;color:var(--ink-2)}
.funding-tile p{margin:0;font-size:12px;color:var(--ink-2);line-height:1.45;flex:1;min-height:2.9em} /* two lines reserved: a save that changes the line does not move what is below */
.funding-tile .btn{align-self:flex-start;margin-top:6px}
.funding-footnote{font-size:12px;color:var(--ink-3);margin:18px 0 0}
@media(max-width:640px){.funding-grid,.funding-summary{grid-template-columns:1fr}.funding-card{padding:16px}.fundingAdmin:not(.embedded){padding:14px}.funding-actions .btn{flex:1 1 100%}.funding-how{flex:1 1 100%}.funding-table .funding-credit{width:84px}.funding-table th,.funding-table td{padding:8px}}
