/* v0.74.2: contract-driven stage workbook and balanced invoice requests. */
.stage-payment-heading{align-items:end;gap:18px}.stage-contract-settings{display:grid;grid-template-columns:minmax(190px,1.25fr) minmax(160px,1fr) minmax(150px,.8fr);gap:9px;min-width:min(610px,100%);align-items:end}.stage-contract-settings label{margin:0;font-size:.76rem}.stage-contract-settings input,.stage-contract-settings select{width:100%;min-height:39px;margin-top:4px}.stage-toolbar{display:grid!important;grid-template-columns:auto auto 1fr;align-items:center;gap:8px 12px;padding:9px 10px!important;background:#f7faf8;border:1px solid #d7e3dc;border-bottom:0}.stage-add-actions,.stage-selection-actions{display:flex;flex-wrap:wrap;gap:7px}.stage-selection-actions{justify-content:center}.stage-toolbar .autosave-status{grid-column:1/-1;margin:0;text-align:right}.stage-percentage-status{justify-self:end;padding:5px 9px;border-radius:999px;background:#e7f4eb;color:#1c6f3d;font-size:.75rem;font-weight:800;white-space:nowrap}.stage-percentage-status.danger{background:#fff0d9;color:#9a4f00}.stage-create-selected{margin:0!important}.stage-sheet-canvas{max-width:100%;overflow:auto;scrollbar-gutter:stable;border:1px solid #b7c8bf}.yeorton-sheet{min-width:1650px!important}.yeorton-sheet .stage-select-cell,.yeorton-sheet tr>th:first-child{position:sticky;left:0;z-index:3;width:46px;min-width:46px!important;max-width:46px;text-align:center;background:#f6faf7}.yeorton-sheet tr[class$="-head"]>th:first-child{z-index:6;background:inherit}.stage-select-cell input{width:17px!important;min-width:17px!important;height:17px!important;margin:0;accent-color:#199447}.stage-select-cell input:disabled{opacity:.28}.stage-calculated-cell{position:relative;min-height:30px}.stage-calculated-cell .stage-money-field{padding-right:25px!important}.stage-calculated-field:not(.is-manual-override){background:#f1f6f4!important;color:#18372a}.stage-calculated-field.is-manual-override{background:#fff6df!important;box-shadow:inset 3px 0 #d39b24!important}.stage-reset-calculation{position:absolute;right:2px;top:50%;width:21px!important;min-width:21px!important;height:21px!important;min-height:21px!important;transform:translateY(-50%);padding:0!important;border:1px solid #d7b76d!important;border-radius:50%!important;background:#fff!important;color:#805b05!important;font-size:13px!important;line-height:1!important}.stage-reset-calculation.hidden{display:none!important}.yeorton-sheet td[colspan="3"] .stage-wrap-field{min-width:100%;white-space:pre-wrap}.yeorton-sheet [data-stage-field="notes"]{background:#fffdf4!important}.yeorton-sheet .stage-status-cell{min-height:30px}.yeorton-sheet .stage-status-cell textarea{min-height:30px!important}.yeorton-sheet .sheet-formula td{font-variant-numeric:tabular-nums}.yeorton-sheet .stage-head th{background:#63a843!important;color:#101010!important}

#customerInvoiceRequestDialog{width:min(1240px,calc(100vw - 20px));max-height:calc(100dvh - 16px);overflow:hidden}#customerInvoiceRequestDialog>form{max-height:calc(100dvh - 16px);padding:0;overflow:auto}#customerInvoiceRequestDialog .dialog-heading{position:sticky;top:0;z-index:12;margin:0;padding:10px 16px 9px;background:rgba(247,251,249,.98);box-shadow:0 1px 0 #d8e2df}#customerInvoiceRequestDialog .dialog-heading p{margin-bottom:2px}#customerInvoiceRequestDialog .customer-request-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-areas:"customer customer customer customer customer customer coding coding coding coding coding coding" "lines lines lines lines lines lines lines lines lines lines lines lines" "files files files files files files files files files files files files";gap:8px;width:auto;margin:8px 14px;align-items:start}#customerInvoiceRequestDialog .customer-request-panel{padding:9px 11px;border-color:#ceddd5;background:#fbfdfc;box-shadow:0 1px 3px rgba(28,65,47,.04)}#customerInvoiceRequestDialog .customer-request-panel h3{margin:0 0 3px}.customer-request-section-heading{display:flex;align-items:start;justify-content:space-between;margin-bottom:6px}.customer-request-section-heading small{color:#60747c}.customer-request-search{display:grid;gap:3px}.customer-request-selected-customer{display:grid;gap:2px;margin:6px 0;padding:7px 9px;border:1px dashed #bccdc4;border-radius:8px;background:#fff;color:#60747c}.customer-request-selected-customer.has-customer{border-style:solid;border-color:#9bc9aa;background:#f0f8f2;color:#17324d}.customer-request-selected-customer span{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.customer-request-new-toggle{margin-top:5px!important;padding-top:6px;border-top:1px solid #e0e8e3}.customer-request-new-fields{margin-top:7px}.customer-request-new-fields.hidden{display:none!important}#customerInvoiceRequestDialog .customer-request-coding-section .compact-form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 8px}#customerInvoiceRequestDialog .customer-request-coding-section .full{grid-column:1/-1}#customerInvoiceRequestDialog .customer-request-lines-section{grid-area:lines;padding:0;overflow:hidden}#customerInvoiceRequestDialog .customer-request-lines-heading{padding:8px 11px;margin:0;border-bottom:1px solid #d9e3de;background:#f5f9f7}#customerInvoiceRequestDialog .customer-request-lines-heading button{align-self:center;min-height:34px}#customerInvoiceRequestDialog #customerRequestLineRows{display:grid;gap:0}#customerInvoiceRequestDialog .customer-request-line{display:grid;grid-template-columns:minmax(280px,2.5fr) 68px 82px 105px 105px 76px 105px auto;gap:7px;width:100%;padding:7px 10px;border:0;border-bottom:1px solid #e0e7e3;border-radius:0;background:#fff;align-items:end}#customerInvoiceRequestDialog .customer-request-line>*{grid-column:auto;min-width:0}#customerInvoiceRequestDialog .customer-request-line textarea{height:36px;min-height:36px;resize:vertical}#customerInvoiceRequestDialog .request-line-gross{align-self:end;min-height:36px;padding:3px 5px}#customerInvoiceRequestDialog .request-line-actions{display:flex;grid-column:auto;gap:4px;justify-self:end}#customerInvoiceRequestDialog .request-line-actions button{width:34px;min-width:34px;padding:.35rem}#customerInvoiceRequestDialog .request-line-actions .remove-request-line{width:auto;min-width:70px}#customerInvoiceRequestDialog .customer-request-totals{margin:0;padding:7px 12px;gap:28px;border-top:1px solid #cadbd1;background:#f2f8f4}#customerInvoiceRequestDialog .customer-request-files-section{grid-area:files;display:grid;grid-template-columns:1fr 1fr;gap:5px 12px}#customerInvoiceRequestDialog .customer-request-files-section h3{grid-column:1/-1}#customerInvoiceRequestDialog .customer-request-files-section textarea{min-height:44px}#customerInvoiceRequestDialog .customer-request-error{margin:0 16px}#customerInvoiceRequestDialog .dialog-actions{position:sticky;bottom:0;z-index:12;margin:6px 0 0;padding:8px 14px;background:rgba(255,255,255,.98);box-shadow:0 -1px 0 #d8e2df}

@media(max-width:1050px){.stage-payment-heading{align-items:stretch;flex-direction:column}.stage-contract-settings{min-width:0;width:100%}#customerInvoiceRequestDialog .customer-request-layout{grid-template-areas:"customer customer customer customer customer customer customer customer customer customer customer customer" "coding coding coding coding coding coding coding coding coding coding coding coding" "lines lines lines lines lines lines lines lines lines lines lines lines" "files files files files files files files files files files files files"}#customerInvoiceRequestDialog .customer-request-line{grid-template-columns:minmax(260px,2fr) repeat(3,minmax(80px,1fr));align-items:end}#customerInvoiceRequestDialog .request-line-description{grid-column:1/-1}#customerInvoiceRequestDialog .request-line-actions{grid-column:3/-1}}
@media(max-width:700px){.stage-contract-settings{grid-template-columns:1fr}.stage-toolbar{grid-template-columns:1fr}.stage-selection-actions{justify-content:flex-start}.stage-percentage-status{justify-self:start}.stage-toolbar .autosave-status{grid-column:auto;text-align:left}#customerInvoiceRequestDialog{box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0}#customerInvoiceRequestDialog>form{box-sizing:border-box;height:100dvh;max-height:100dvh}#customerInvoiceRequestDialog .customer-request-layout{margin:9px;gap:9px}#customerInvoiceRequestDialog .customer-request-coding-section .compact-form-grid{grid-template-columns:1fr}#customerInvoiceRequestDialog .customer-request-line{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}#customerInvoiceRequestDialog .request-line-description,#customerInvoiceRequestDialog .request-line-actions{grid-column:1/-1}#customerInvoiceRequestDialog .request-line-actions{justify-self:stretch}#customerInvoiceRequestDialog .customer-request-files-section{grid-template-columns:1fr}#customerInvoiceRequestDialog .customer-request-files-section h3{grid-column:auto}.customer-request-selected-customer span{display:grid}.yeorton-sheet{min-width:1580px!important}}
.stage-percentage-field{text-align:right;font-variant-numeric:tabular-nums}
#customerInvoiceRequestDialog .request-line-actions button{color:#17324d!important;font-size:.9rem;font-weight:800;line-height:1}
.request-existing-attachments{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 12px;border:1px solid #c8ddd3;border-radius:10px;background:#f4faf7}.request-existing-attachments a{display:inline-flex;padding:6px 9px;border:1px solid #b8d8c6;border-radius:8px;background:#fff;font-weight:700;max-width:100%;overflow-wrap:anywhere}
