.fa-workspace{display:grid;gap:12px;min-width:0;color:#203b5b;font-size:13px}
.fa-workspace .panel{margin:0;min-width:0;padding:14px 16px}
.fa-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.fa-heading h3{margin:0;font-size:14px;line-height:1.5}.fa-heading h3 small{margin-left:8px;color:#708198;font-size:12px;font-weight:400}
.fa-actions,.fa-row-actions,.fa-filter-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.fa-workspace button,.fa-workspace summary{font-family:inherit;font-size:13px}
.fa-workspace button{width:auto!important;min-height:34px;margin:0;padding:6px 10px;white-space:nowrap;border:1px solid #d6e0ef;background:#fff;color:#24518a;border-radius:6px;line-height:20px}
.fa-workspace button[data-fa="new"],.fa-workspace button[type="submit"]{color:#fff;background:#175dcc;border-color:#175dcc}.fa-workspace button:disabled{opacity:.55;cursor:not-allowed}
.fa-workspace button[data-fa="discardDraft"],.fa-workspace button[data-fa="confirmDiscard"],.fa-workspace button[data-fa="scrap"],.fa-workspace button[data-fa="archive"]{color:#b12c2c}
.fa-workspace button[data-fa="confirmDiscard"]{border-color:#e6b7b7;background:#fff7f7}
.fa-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) minmax(150px,1.4fr);gap:0;margin-top:12px;border-top:1px solid #e6edf4;padding-top:10px}.fa-stats>div{padding:0 14px;border-right:1px solid #e6edf4;min-width:0}.fa-stats>div:first-child{padding-left:0}.fa-stats>div:last-child{border-right:0}.fa-stats span{color:#708198;font-size:12px;display:block}.fa-stats strong{font-size:18px;line-height:1.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fa-list>.fa-heading{min-height:34px;flex-wrap:nowrap}.fa-list .business-list-sort-inline{margin:0 0 0 auto}.fa-list .business-list-sort-inline label{margin:0}.fa-list .business-list-sort-inline select{height:34px;min-height:34px;margin:0}
.fa-filters{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:10px 0 12px}.fa-filters label{display:grid;gap:5px;margin:0;font-size:12px;min-width:120px;flex:0 1 145px}.fa-filters label:first-child{flex:1 1 210px;min-width:170px}.fa-filters input,.fa-filters select{box-sizing:border-box;width:100%;height:34px;min-height:34px;margin:0;font-size:13px}.fa-filter-actions{flex-wrap:nowrap}
.fa-table-wrap{overflow-x:auto;max-width:100%}.fa-table{width:100%;table-layout:fixed;border-collapse:collapse}
.fa-table th:nth-child(1){width:29%}.fa-table th:nth-child(2){width:21%}.fa-table th:nth-child(3){width:11%}.fa-table th:nth-child(4){width:15%}.fa-table th:nth-child(5){width:24%}
.fa-table th,.fa-table td{padding:9px 10px;vertical-align:middle;overflow-wrap:anywhere;white-space:normal;font-size:13px;border-bottom:1px solid #e3eaf3}.fa-table th{font-size:12px;color:#61758f;font-weight:500;background:#f7f9fc;text-align:left}
.fa-table small,.fa-detail small{display:block;color:#708198;margin-top:4px;font-size:12px;line-height:1.5}.fa-table .fa-amount,.fa-table th:nth-child(4){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.fa-row-actions{gap:5px;flex-wrap:nowrap}.fa-row-actions button,.fa-more summary{min-height:29px;padding:3px 8px;font-size:12px;line-height:21px}
.fa-status{display:inline-block;white-space:nowrap;padding:3px 7px;border-radius:4px;font-size:12px;background:#f1f5f9;color:#4b637e}.fa-status-assigned{color:#175dcc;background:#eef4ff}.fa-status-repairing{color:#956018;background:#fff6e8}.fa-status-scrapped,.fa-status-archived{color:#6c7280;background:#f2f3f5}
.fa-more,.fa-drafts{position:relative}.fa-more summary,.fa-drafts summary{list-style:none;cursor:pointer;border:1px solid #d6e0ef;border-radius:6px;color:#24518a;background:#fff;white-space:nowrap}.fa-more summary::-webkit-details-marker,.fa-drafts summary::-webkit-details-marker{display:none}.fa-more summary:after,.fa-drafts summary:after{content:' ▾';font-size:10px}.fa-drafts summary{padding:6px 10px;line-height:20px}
.fa-more>div,.fa-draft-list{position:fixed;z-index:40;background:#fff;border:1px solid #d6e0ef;border-radius:7px;padding:6px;box-shadow:0 6px 20px #213b5d24;min-width:120px;max-height:calc(100vh - 40px);overflow:auto}.fa-more>div{display:grid;gap:4px}.fa-more>div button{text-align:left}.fa-draft-list{width:360px;max-width:calc(100vw - 32px)}.fa-draft-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px;border-bottom:1px solid #edf1f6}.fa-draft-list>div:last-child{border-bottom:0}.fa-draft-list span{overflow-wrap:anywhere}
.fa-message:empty{display:none}.fa-message{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 0;padding:9px 11px;background:#eef5ff;border-radius:6px;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.fa-error,.fa-warning{color:#942b22;background:#fff3ec;padding:10px;border-radius:6px;font-size:13px;line-height:1.6}
dialog.fa-dialog{box-sizing:border-box;width:min(860px,calc(100vw - 32px));max-width:860px;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid #d7e1ee;border-radius:10px;background:#fff;color:#203b5b;box-shadow:0 18px 55px #132a4b3d;overflow:hidden;font-size:13px}dialog.fa-dialog::backdrop{background:#12263d66}
.fa-dialog .fa-editor,.fa-dialog .fa-detail{display:flex;flex-direction:column;max-height:calc(100dvh - 42px);min-height:0;margin:0;padding:0;border:0}.fa-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #dfe7f1;flex-shrink:0}.fa-dialog-header h3{margin:0;font-size:14px;line-height:1.6;font-weight:600;overflow-wrap:anywhere}
.fa-dialog .fa-form{display:flex;flex-direction:column;min-height:0;margin:0}.fa-dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 18px}.fa-dialog-body>.fa-message:first-child{margin-top:0;margin-bottom:10px}
.fa-draft-state{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;line-height:1.6;margin:0 0 8px;color:#708198}.fa-draft-state button{font-size:12px;min-height:27px;padding:2px 7px}
.fa-form fieldset{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;min-width:0}.fa-form label{display:grid;gap:5px;font-size:13px;min-width:0;margin:0;line-height:1.5}
.fa-form input,.fa-form select,.fa-form textarea{box-sizing:border-box;width:100%;min-height:36px;margin:0;font:inherit;border:1px solid #ccd7e5;border-radius:5px;padding:7px 9px;color:#203b5b;background:#fff}.fa-form input[readonly],.fa-form textarea[readonly]{background:#f5f7fa;color:#60738a}.fa-form textarea{resize:vertical;min-height:60px}.fa-form .fa-wide{grid-column:1/-1}.fa-form .fa-form-help{margin:0;font-size:12px;line-height:1.6;color:#708198}.fa-form .fa-section-title{font-size:13px;margin:0;padding-top:4px;font-weight:600}.fa-form .fa-section-title:not(:first-child){border-top:1px solid #e8eef5;padding-top:10px}
.fa-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 18px;border-top:1px solid #dfe7f1;background:#fff;flex-shrink:0}.fa-detail>.fa-dialog-footer{justify-content:flex-end}.fa-dialog-footer .fa-actions:last-child{margin-left:auto}
.fa-discard-confirm{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #e6bf89;padding:10px 12px;background:#fff8ec;border-radius:6px;margin-bottom:12px;line-height:1.6}
.fa-conflict{grid-column:1/-1;border:1px solid #e7ad56;background:#fff8e8;border-radius:7px;padding:12px;margin:10px 0;overflow-wrap:anywhere}.fa-conflict p{margin:8px 0}.fa-conflict select{width:100%;min-height:36px}
.fa-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding:12px;background:#f7f9fc;border:1px solid #e4ebf3;border-radius:7px;line-height:1.6}.fa-detail p{margin:10px 0;overflow-wrap:anywhere;line-height:1.7;font-size:13px;white-space:pre-wrap}.fa-detail h4{margin:18px 0 8px;padding-bottom:7px;border-bottom:1px solid #e4ebf3;font-size:13px;font-weight:600}.fa-history{border-bottom:1px solid #e2e8f0;padding:8px 0}.fa-history:last-child{border-bottom:0}
@media(max-width:1100px){.fa-filters label{flex:1 1 135px}.fa-filters label:first-child{flex-basis:100%}.fa-table th:nth-child(1){width:27%}.fa-table th:nth-child(2){width:20%}.fa-table th:nth-child(3){width:12%}.fa-table th:nth-child(4){width:15%}.fa-table th:nth-child(5){width:26%}}
@media(max-width:768px){.fa-workspace{gap:10px}.fa-workspace .panel{padding:12px}.fa-heading{gap:8px}.fa-heading>.fa-actions{flex-wrap:wrap}.fa-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 0}.fa-stats>div:nth-child(3){border-right:0}.fa-stats>div:nth-child(4){padding-left:0}.fa-stats strong{font-size:16px}.fa-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.fa-filters label,.fa-filters label:first-child{min-width:0}.fa-filters label:first-child{grid-column:1/-1}.fa-filter-actions{grid-column:1/-1;justify-content:flex-end}.fa-list>.fa-heading{flex-wrap:wrap}.fa-list .business-list-sort-inline{margin-left:auto;max-width:100%}.fa-list .business-list-sort-inline select{max-width:180px}.fa-table{min-width:680px}.fa-table th,.fa-table td{padding:9px 8px}.fa-row-actions button{min-height:32px}dialog.fa-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:8px}.fa-dialog .fa-editor,.fa-dialog .fa-detail{max-height:calc(100dvh - 26px)}.fa-dialog-header,.fa-dialog-footer{padding:10px 12px}.fa-dialog-body{padding:12px}.fa-form fieldset,.fa-facts{grid-template-columns:1fr;gap:10px}.fa-form input,.fa-form select{min-height:38px}.fa-dialog-footer{gap:8px}.fa-dialog-footer .fa-actions{gap:5px}.fa-dialog-footer button{font-size:12px;padding:5px 7px;min-height:34px}}

.fa-dialog .fa-facts>span{min-width:0;overflow-wrap:anywhere}
.fa-approval-pending{color:#955715;background:#fff5de}
.fa-table small.fa-approval-pending{display:block;padding:3px 5px;border-radius:4px;white-space:normal;line-height:1.5}
.fa-archive-record{border:1px solid #dce5ef;border-radius:7px;padding:12px;margin:10px 0;min-width:0}
.fa-archive-record>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;line-height:1.6}
.fa-archive-record strong{overflow-wrap:anywhere;min-width:0}
.fa-archive-record p{font-size:13px;line-height:1.7;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.fa-archive-reason{color:#304d6b}.fa-archive-record>.fa-actions:empty{display:none}
.fa-archive-events{border-top:1px solid #e4ebf3;padding-top:9px;margin-top:9px}.fa-archive-events summary{cursor:pointer;color:#61758f}.fa-archive-events p{padding:6px 0;border-bottom:1px solid #edf1f6}
.fa-archive-filters{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0}.fa-archive-filters label{display:grid;gap:5px;font-size:12px;min-width:120px}.fa-archive-filters label:first-child{flex:1;min-width:180px}.fa-archive-filters input,.fa-archive-filters select{width:100%;box-sizing:border-box;margin:0;padding:7px 9px;min-height:34px;border:1px solid #ccd7e5;border-radius:5px;color:#203b5b;background:#fff;font:inherit}
.fa-archive-detail .fa-dialog-footer{justify-content:space-between}

/* Keep the desktop overview compact and avoid stacking panel margin with the grid gap. */
@media screen and (min-width:769px){
  .fa-workspace{row-gap:8px}
  .fa-workspace>.panel.fa-summary{padding-block:10px;margin-bottom:0}
  .fa-workspace>.fa-summary .fa-stats{margin-top:6px;padding-top:6px}
}

/* One toolbar for the ledger title, search, filters and sort. */
.fa-list-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px;min-width:0}
.fa-list-toolbar>.fa-heading{flex:0 0 auto;min-width:0}
.fa-list-toolbar>.fa-heading h3{margin:0;white-space:nowrap}
.fa-list-toolbar>.fa-filters{order:2;flex-basis:100%;margin:0}
@media screen and (min-width:1280px){
  .fa-list-toolbar{flex-wrap:nowrap}
  .fa-list-toolbar>.fa-filters{order:0;flex:1 1 auto;min-width:0;flex-wrap:nowrap;align-items:center;gap:6px}
  .fa-list-toolbar>.fa-filters>label{flex:0 1 118px;min-width:85px;gap:0}
  .fa-list-toolbar>.fa-filters>label:first-child{flex:1 1 220px;min-width:140px}
  .fa-list-toolbar>.fa-filters>label>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .fa-list-toolbar>.business-list-sort-inline select{width:160px}
}
