.afp{padding:20px;min-width:0}.afp-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.afp-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:16px 0}.afp label{display:grid;gap:6px;font-size:14px}.afp input,.afp textarea,.afp select{max-width:100%;min-width:0;width:100%;font:inherit}.afp-check{display:flex!important;align-items:center}.afp-check input{width:auto}.afp-table-wrap{overflow:auto;max-width:100%}.afp-table{width:100%;border-collapse:collapse;font-size:14px;min-width:1060px}.afp-table th,.afp-table td{padding:9px;border-bottom:1px solid #d9e1df;text-align:right;vertical-align:top}.afp-table th:first-child,.afp-table td:first-child{text-align:left;width:260px;min-width:230px}.afp-table input[type=number]{width:104px}.afp-table small{display:block;color:#54615d;font-size:12px;margin:5px 0}.afp-totals{display:flex;gap:22px;flex-wrap:wrap;padding:18px 0;margin:12px 0;border-top:2px solid #17664e}.afp-totals span{display:grid;gap:6px;font-size:14px}.afp-totals strong{font-size:20px;color:#15533f}.afp-status{margin:12px 0;white-space:pre-wrap}.afp-history{margin-top:26px}.afp-note{color:#54615d;font-size:14px}.afp textarea{resize:vertical}.afp-preview{width:min(1200px,96vw);max-height:94vh}.afp-preview iframe{width:100%;height:72vh;border:0}.afp-preview header{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px}.afp-preview header strong{margin-right:auto}@media(max-width:600px){.afp{padding:12px}.afp-fields{grid-template-columns:1fr 1fr}.afp-totals{gap:14px}.afp-totals strong{font-size:18px}}
.afp-notice{padding:12px 16px;background:#fff4db;border-left:4px solid #bd7900;color:#533d16;border-radius:4px}.afp-review{width:min(1100px,94vw);max-height:90vh;padding:24px;border:1px solid #cbd5d1;border-radius:12px;color:#202630}.afp-review::backdrop{background:#14231fcc}.afp-review h2{margin-top:0}.afp-review p,.afp-review small{line-height:1.5}.afp-review table{width:100%;border-collapse:collapse;font-size:14px}.afp-review th,.afp-review td{text-align:left;padding:12px;border-bottom:1px solid #d9e1df;vertical-align:top}.afp-review th{background:#f1f5f3;white-space:nowrap}.afp-review select{font:inherit;max-width:260px;width:100%;min-width:200px}.afp-review small{display:block;margin-top:8px;color:#54615d}.afp-review .afp-toolbar{justify-content:flex-end;margin:20px 0 0}.afp-review [role=status]{color:#8f321f}

.afp-status.afp-error{padding:12px;border:1px solid #b42318;border-radius:8px;color:#8a1c13;background:#fff4f2;font-weight:600}.afp-status:focus{outline:2px solid currentColor;outline-offset:3px}

.afp-variation-heading th{padding:12px 9px!important;text-align:left!important;font-size:16px;font-weight:700;border-top:2px solid #202630!important;border-bottom:1px solid #202630!important;background:#edf0f3;break-after:avoid}

/* Compact application ledger, using the shared Bindr table palette. */
#recordView .afp-table:not(.invoice-lines){font-size:14px;min-width:1000px;font-variant-numeric:tabular-nums}
#recordView .afp-table:not(.invoice-lines) :is(td,th){padding:6px 8px;vertical-align:middle}
#recordView .afp-table:not(.invoice-lines) td:first-child{width:270px;min-width:240px}
#recordView .afp-table:not(.invoice-lines) input{min-height:29px;height:29px;padding:4px 6px;font-size:14px;border-radius:4px}
#recordView .afp-table:not(.invoice-lines) input[type=number]{width:96px;text-align:right}
#recordView .afp-table:not(.invoice-lines) .afp-item-description{font-weight:500;border-color:transparent;background:transparent}
#recordView .afp-table:not(.invoice-lines) .afp-item-area{height:24px;min-height:24px;padding:2px 6px;color:#596574;border-color:transparent;background:transparent}
#recordView .afp-table:not(.invoice-lines) :is(.afp-item-description,.afp-item-area):is(:hover,:focus){border-color:#aab7c7;background:#fff}
#recordView .afp-table .work-billing-heading th{text-align:left;padding:7px 8px;background:var(--bindr-section-heading,#e9edf2)}
#recordView .afp-table .afp-variation-heading th{padding:8px!important;border-left:3px solid var(--bindr-section-orange,#ff7900);font-size:14px}
#recordView .afp-table:not(.invoice-lines) [data-afp-remove]{min-height:28px;padding:2px 6px}

#recordView .afp-draft-heading{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid #dce1e7}
#recordView .afp-draft-heading h3{margin:0;font-size:19px;color:var(--bindr-text,#252c35)}
.afp-draft-badge{padding:3px 9px;border:1px solid #d5a458;border-radius:4px;background:#fff6e8;color:#795018;font-size:13px;font-weight:600}
.afp-guidance{padding:10px 12px;background:#f4f6f8;border-left:3px solid var(--bindr-section-orange,#ff7900);font-size:14px;line-height:1.5;margin:12px 0}
.afp-guidance strong{display:block}.afp-update-tools{justify-content:flex-end}
#recordView .afp-table:not(.invoice-lines){min-width:940px}
#recordView .afp-table .afp-area-heading th{background:#f4f6f8;text-align:left;color:#475463;font-weight:600;padding:6px 10px;border-left:3px solid #bec8d3}
#recordView .afp-table:not(.invoice-lines) [data-afp-period]{font-weight:700;color:#252c35;background:#fff8ee}
#recordView .afp-table:not(.invoice-lines) .afp-item-description{width:100%;height:30px}
.afp-adjustments{border:1px solid var(--bindr-section-edge,#dce1e7);border-radius:5px;padding:0 12px;margin:18px 0;background:#fff}
.afp-adjustments summary{cursor:pointer;padding:12px 0;font-weight:600;color:#252c35}.afp-adjustments summary span{font-weight:400;color:#596574;margin-left:12px;font-size:14px}
.afp-adjustments[open]{padding-bottom:12px}.afp-adjustment-table{border-collapse:collapse;width:100%;min-width:680px;font-size:14px}.afp-adjustment-table :is(th,td){padding:7px 9px;border-bottom:1px solid #dce1e7;text-align:left}.afp-adjustment-table th{background:#e9edf2}.afp-adjustment-table small{display:block;color:#596574;font-size:12px}.afp-adjustment-table input{max-width:230px}.afp-adjustment-table input[type=number]{max-width:130px;text-align:right}
.afp-claim-summary{display:grid;grid-template-columns:minmax(280px,1fr) minmax(250px,1fr);gap:24px;margin:20px 0;padding:18px;border:1px solid var(--bindr-section-edge,#dce1e7);border-radius:6px;background:#f4f6f8}
.afp-claim-summary h3{margin:0 0 12px;font-size:16px}.afp-claim-summary dl{margin:0}.afp-claim-summary dl>div{display:flex;justify-content:space-between;gap:18px;margin:7px 0;font-size:14px}.afp-claim-summary dd{margin:0;font-variant-numeric:tabular-nums;font-weight:600}.afp-claim-summary dl>div:nth-child(4){border-top:1px solid #cbd3dd;padding-top:8px}
.afp-claim-amount{align-self:center;display:grid;gap:8px;border-left:4px solid var(--bindr-section-orange,#ff7900);padding:12px 20px;background:#fff}.afp-claim-amount>span{font-size:16px;font-weight:600}.afp-claim-amount strong{font-size:32px;line-height:1.2;color:#252c35;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.afp-claim-amount small{font-size:13px;color:#596574}
@media(max-width:760px){.afp-claim-summary{grid-template-columns:1fr;gap:14px;padding:12px}.afp-update-tools{justify-content:flex-start}.afp-adjustments summary span{display:block;margin:5px 0 0}.afp-claim-amount strong{font-size:27px}}
/* Slate work areas, orange variations and light blue application totals. */
#recordView .afp-table:not(.invoice-lines) .work-billing-heading th{background:#e9edf2!important;color:#344454;padding:7px 9px!important;border-left:3px solid #74808d}
#recordView .afp-table:not(.invoice-lines) .afp-area-heading th{background:#535d69;color:#fff;border-left:3px solid #46505b;border-bottom-color:#74808d;padding:8px 10px}
#recordView .afp-table:not(.invoice-lines) .afp-variation-heading th{background:#fff0e4;color:#773c12;border-left:4px solid var(--bindr-section-orange,#ff7900);border-top:1px solid #e4b892!important;border-bottom:1px solid #e4b892!important}
#recordView .afp-table:not(.invoice-lines) thead th:nth-child(7){background:#d9edfc;color:#1c4e70;border-bottom-color:#a8cfe9}
#recordView .afp-table:not(.invoice-lines) tbody [data-afp-period]{background:#edf7fe;border-left:1px solid #c5e2f5;color:#1c4e70}
#recordView .afp-claim-amount{background:#e3f2fd;border:1px solid #b4d8ef;border-left:4px solid #77b7df;border-radius:4px}
#recordView .afp-claim-amount>span,#recordView .afp-claim-amount strong{color:#1c4e70}
