.invoice-final-modal{width:min(1240px,100%)}.invoice-document{width:min(1120px,calc(100% - 48px))}.invoice-sheet-wrap{margin-top:28px;border:1px solid #cfd7d3;border-radius:8px;overflow:auto;background:#fff}.invoice-sheet{min-width:max-content}.invoice-sheet-row{display:grid;grid-template-columns:52px 190px repeat(var(--day-count),72px) 120px}.invoice-sheet-cell{min-height:46px;padding:9px 8px;border-right:1px solid #dce2df;border-bottom:1px solid #dce2df;display:flex;align-items:center;justify-content:center;font-size:.69rem;text-align:center;background:#fff}.invoice-sheet-row:last-child .invoice-sheet-cell{border-bottom:0}.invoice-sheet-cell:first-child{position:sticky;left:0;z-index:1;justify-content:flex-start;text-align:left;font-weight:600;background:#f7f9f8}.invoice-sheet-cell:last-child{position:sticky;right:0;z-index:1;border-right:0;background:#f7f9f8;font-weight:600;color:var(--teal)}.invoice-sheet-head .invoice-sheet-cell{min-height:52px;background:#17372f;color:#fff;border-color:#365149;font:600 .62rem Manrope;text-transform:uppercase;letter-spacing:.35px}.invoice-sheet-head .invoice-sheet-cell:first-child,.invoice-sheet-head .invoice-sheet-cell:last-child{z-index:2;background:#17372f;color:#fff}.invoice-sheet-date{flex-direction:column;line-height:1.15}.invoice-sheet-date small{font-size:.56rem;color:#a9c2ba;margin-top:3px}.invoice-sheet-item small{display:block;color:var(--muted);font-weight:400;font-size:.61rem;margin-top:2px}.invoice-sheet-value{color:#315e52}.invoice-sheet-empty{color:#aeb8b4}@media(max-width:700px){.invoice-document{width:100%}.invoice-sheet-row{grid-template-columns:52px 150px repeat(var(--day-count),64px) 105px}.invoice-sheet-cell{padding:8px 6px}}
@media print{.invoice-final-modal{width:100%}.invoice-document{width:100%}.invoice-sheet-wrap{overflow:visible}.invoice-sheet{transform-origin:left top;transform:scale(.78);width:128%;margin-bottom:-10%}}
.invoice-sheet-input{padding:5px;background:#fff}.invoice-sheet-input:focus-within{background:#eef8f5;box-shadow:inset 0 0 0 2px var(--teal)}.invoice-sheet-input input{width:100%;height:34px;border:0;background:transparent;text-align:center;color:#24594d;font:600 .74rem DM Sans;outline:0;padding:0}.invoice-sheet-price{display:grid!important;grid-template-columns:auto 1fr;gap:2px 4px;align-content:center;padding:5px 7px!important}.invoice-sheet-price span{font-size:.56rem;color:var(--muted)}.invoice-sheet-price input{width:70px;min-width:0;border:0;border-bottom:1px solid #aac2bc;background:transparent;color:var(--teal);font:600 .72rem DM Sans;outline:0;padding:2px}.invoice-sheet-price small{grid-column:1/-1;color:var(--muted);font-size:.58rem}.invoice-sheet-price:focus-within{background:#eef8f5!important;box-shadow:inset 0 0 0 2px var(--teal)}
.invoice-document-bottom{display:flex;justify-content:flex-end}.invoice-totals{width:270px}
.invoice-sheet-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:26px}.invoice-sheet-actions strong,.invoice-sheet-actions small{display:block}.invoice-sheet-actions strong{font:600 .78rem Manrope}.invoice-sheet-actions small{color:var(--muted);font-size:.65rem;margin-top:2px}.invoice-sheet-actions>div:last-child{display:flex;gap:7px}.invoice-sheet-actions+.invoice-sheet-wrap{margin-top:9px}@media(max-width:560px){.invoice-sheet-actions{align-items:flex-start;flex-direction:column}.invoice-sheet-actions>div:last-child{width:100%}.invoice-sheet-actions button{flex:1}}
.invoice-meta{grid-template-columns:repeat(3,1fr)}@media(max-width:700px){.invoice-meta{grid-template-columns:1fr 1fr}}
.table-head,.invoice-row{grid-template-columns:1.2fr 1.2fr .7fr .8fr .65fr}.drawer .details{grid-template-columns:1fr}
.status.submitted{background:#e8ecf7;color:#4f5f8c}.invoice-sheet-locked .invoice-sheet-input,.invoice-sheet-locked .invoice-sheet-price{background:#f3f5f4}.invoice-sheet-locked input{color:#6f7c77;cursor:not-allowed}.invoice-sheet-locked .invoice-sheet-input:focus-within,.invoice-sheet-locked .invoice-sheet-price:focus-within{box-shadow:none!important;background:#f3f5f4!important}
.status.draft{background:#f2eee3;color:#856b34}
#final-invoice-lineage button{border:0;background:none;color:var(--teal);font:600 .72rem Manrope;padding:4px 0;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.invoice-meta:has(#final-invoice-lineage:not([hidden])){grid-template-columns:repeat(4,1fr)}@media(max-width:700px){.invoice-meta:has(#final-invoice-lineage:not([hidden])){grid-template-columns:1fr 1fr}}
.invoice-matrix-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.invoice-matrix-controls select{width:190px;border:1px solid var(--line);border-radius:9px;padding:9px;background:#fff;font:.7rem DM Sans}.invoice-sheet-item{gap:8px;justify-content:space-between!important}.invoice-delete-line{flex:0 0 auto;border:0;border-radius:6px;width:24px;height:24px;background:#f8e9e7;color:var(--red);font-size:1rem;cursor:pointer}.invoice-delete-line:hover{background:#f2d8d4}@media(max-width:700px){.invoice-matrix-controls{justify-content:flex-start;width:100%}.invoice-matrix-controls select{width:100%}.invoice-matrix-controls button{flex:1}}

.invoice-sheet-cell.invoice-sheet-sn{justify-content:center;text-align:center}.invoice-sheet-cell.invoice-sheet-item{position:sticky;left:52px;z-index:1;text-align:left;font-weight:600;background:#f7f9f8}.invoice-sheet-head .invoice-sheet-cell.invoice-sheet-item{z-index:2;background:#17372f;color:#fff}
