/* Quiet billing states. Existing document/print layouts remain unchanged. */
.fp-billing-status{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 9px;border:1px solid #d5dfe9;border-radius:7px;background:#f9fafc;color:#52667f;font-size:12px;line-height:1.4;font-weight:500;text-align:center;white-space:normal}
.fp-billing-status::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
.fp-billing-status-open{border-color:#e8c7cd;background:#fffafb;color:#9b4253}
.fp-billing-status-processing{border-color:#dfc481;background:#fffdf5;color:#806014}
.fp-billing-status-billed{border-color:#b7d5c4;background:#f7fcf9;color:#2e7452}
.billing-detail[data-customer-key]>summary>.fp-billing-status[data-customer-billing-status],.fp-costcenter-overview>summary>.fp-billing-status[data-costcenter-billing-status]{padding:4px 9px;font-weight:500}
.table .btn.billing-open,.table .btn.billing-done{border:1px solid #cbd8e8;background:transparent;color:#304f70;font-weight:500;line-height:1.4;white-space:normal}
.table .btn.billing-done{border-color:#b7d5c4;color:#2e7452;background:#f7fcf9}
.fp-workflow-start{display:block;margin-top:6px;font-weight:500;color:#806014;border-color:#dfc481;background:#fffdf5}
.fp-kts-workflow-row>td{padding-top:0!important;border-top:0!important}
.fp-kts-checklist{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;border:1px solid #dce5f0;border-radius:8px;margin:0 0 8px;padding:8px 12px;background:#fbfcfe;min-width:0}
.fp-kts-checklist legend{padding:0 5px;font-size:11px;color:#647a95;font-weight:500}
.fp-kts-checklist label{display:flex;align-items:center;gap:7px;min-height:32px;font-size:12px;color:#304d70;white-space:normal}
.fp-kts-checklist input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:#ad8226;flex:none}
.fp-kts-checklist input[type=date]{font:inherit;min-height:32px;min-width:135px;max-width:100%;border:1px solid #cbd8e8;border-radius:6px;padding:4px 7px;color:#274769;background:#fff}
.fp-kts-save-state{font-size:12px;color:#647a95}
.fp-kts-group-documents{font-weight:400;overflow-wrap:anywhere}
.fp-workflow-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #cbd8e8;border-radius:13px;padding:22px;background:#fff;color:#17324d;box-shadow:0 12px 45px #152b4933;font:14px/1.5 system-ui,sans-serif}
.fp-workflow-dialog::backdrop{background:#172f5060}
.fp-workflow-dialog h3{margin:0 0 10px;font-size:18px}.fp-workflow-dialog p{margin:10px 0}
.fp-workflow-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:18px}
@media(max-width:680px){.fp-kts-checklist{gap:5px 14px}.fp-kts-checklist label{min-height:38px}.fp-kts-date{flex-wrap:wrap}.fp-workflow-dialog-actions{justify-content:flex-start}}
/* Align summary states immediately before their export actions. */
details.billing-detail[data-customer-key]>summary{grid-template-columns:minmax(0,1fr) auto auto;column-gap:18px}
details.billing-detail[data-customer-key]>summary>.fp-billing-status{justify-self:end;max-width:38ch;text-align:right}
details.fp-costcenter-overview>summary{grid-template-columns:12px minmax(0,1fr) auto auto;column-gap:14px}
details.fp-costcenter-overview>summary>.fp-billing-status{justify-self:end;max-width:38ch;text-align:right}
.fp-costcenter-heading>strong{flex:1;min-width:0}
@media(max-width:900px){details.fp-costcenter-overview>summary{grid-template-columns:12px minmax(0,1fr) auto}details.fp-costcenter-overview>summary>.fp-billing-status{grid-column:2/-1;grid-row:2;justify-self:end}}
@media(max-width:680px){details.billing-detail[data-customer-key]>summary{grid-template-columns:minmax(0,1fr)}details.billing-detail[data-customer-key]>summary>.fp-billing-status{max-width:100%}}
@media print{.fp-kts-workflow-row,.fp-workflow-start,.fp-workflow-dialog{display:none!important}}
