.invoice-sheet .inv-items-table .col-num{width:4%}.invoice-sheet .inv-items-table .col-desc{width:24%}.invoice-sheet .inv-items-table .col-code{width:12%;text-align:center;overflow-wrap:anywhere}.invoice-sheet .inv-items-table .col-qty{width:7%}.invoice-sheet .inv-items-table .col-rate{width:14%}.invoice-sheet .inv-items-table .col-tax{width:19%;text-align:center}.invoice-sheet .inv-items-table .col-amt{width:16%}.invoice-sheet .inv-items-table .col-actions{width:4%}
.adjustment-actions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.adjustment-actions button,.default-tax-editor button,.charge-tax-picker button{border:1px solid #afc2e0;border-radius:5px;padding:7px 9px;background:white;color:#143f8f;font:600 12px 'Segoe UI',Arial,sans-serif;cursor:pointer;min-height:34px}.default-tax-editor{display:grid;grid-template-columns:1fr 80px;gap:8px;padding:10px;border:1px solid #c9d5e7;border-radius:6px;margin-bottom:10px}.default-tax-editor[hidden]{display:none}.default-tax-editor label{font-size:12px;color:#42536b}.default-tax-editor input,.default-tax-editor select,.charge-tax-picker select{display:block;width:100%;min-width:0;font:14px 'Segoe UI',Arial,sans-serif;padding:6px;border:1px solid #afc2e0;border-radius:4px;background:white;color:#143f8f}.adjustment-help,.prompt-warnings{font-size:12px!important;line-height:1.5!important;letter-spacing:0;margin:8px 0;color:#42536b}.prompt-warnings{color:#963b0a;background:#fff6e4;padding:8px;border-radius:5px}.totals-table .t-label{overflow-wrap:anywhere}.totals-table .adjustment-row .t-val{white-space:normal}.remove-adjustment{border:0;background:transparent;color:#a52222;margin-left:5px;padding:2px 6px;cursor:pointer;min-width:26px;min-height:26px}.charge-tax-picker{font-size:12px;display:flex;flex-wrap:wrap;gap:6px;padding:8px;border:1px solid #c9d5e7;margin:8px 0}.charge-tax-picker label{flex:1;min-width:140px}.discount-adjustment .t-val{color:#963232}.col-tax:empty:before{content:attr(data-placeholder);color:#63748c;font-size:10px}.pdf-export .col-tax:empty:before{content:'—'}.adjustment-row [contenteditable]{min-width:16px;display:inline-block;white-space:pre-wrap}.extra-tax-row .t-label{font-size:12px}
@media(max-width:600px){.default-tax-editor input,.default-tax-editor select,.charge-tax-picker select{font-size:16px}.adjustment-actions button{min-height:38px}.inv-totals-box{min-width:0}}
.pdf-export .inv-items-table td.col-tax:empty:before{content:attr(data-default-tax)}
@media print{.invoice-sheet .inv-items-table td.col-tax:empty:before{content:attr(data-default-tax)!important}}
.item-tax-detail{display:flex;justify-content:center;align-items:baseline;gap:4px 7px;flex-wrap:wrap}.item-tax-rate{display:inline-block;min-width:1.25em}.item-tax-rate:empty:before{content:attr(data-default-tax);color:#526179}.item-tax-amount{white-space:nowrap;font-size:.92em}.inv-items-table th [contenteditable]{display:inline-block;max-width:100%;overflow-wrap:anywhere;min-width:30px}.signature-area{display:flex;flex-direction:column;align-items:flex-end;margin:12px 0 20px;break-inside:avoid}.signature-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;max-width:320px;margin-bottom:14px}.signature-upload,.signature-controls button{border:1px solid #afc2e0;border-radius:5px;padding:8px 12px;font:600 13px 'Segoe UI',Arial,sans-serif;background:white;color:#143f8f;cursor:pointer}.signature-upload small{font-weight:400}.signature-controls #signatureStatus{font-size:12px;line-height:1.5;color:#42536b;width:100%;text-align:right}.signature-block{text-align:center;width:220px;break-inside:avoid}.signature-block[hidden],.signature-controls [hidden]{display:none!important}.signature-block img{display:block;max-width:210px;max-height:90px;object-fit:contain;margin:0 auto 7px}.signature-block [contenteditable]{border-top:1px solid #c9d5e7;padding-top:6px;font-size:12px;overflow-wrap:anywhere}.signature-area:has(.signature-block[hidden]){margin-bottom:0}.pdf-export .signature-area:has(.signature-block[hidden]){display:none}.pdf-export .item-tax-rate:empty:before{content:attr(data-default-tax);color:inherit}.signature-controls:focus-within{outline:2px solid #638cca;outline-offset:3px}.site-brand-line{white-space:normal;line-height:1.5}
@media print{.invoice-sheet .item-tax-rate:empty:before{content:attr(data-default-tax)!important}.signature-area:has(.signature-block[hidden]){display:none}}
.signature-controls{position:relative;max-width:min(220px,100%)}.signature-block{max-width:100%}.invoice-branding{max-width:100%;white-space:normal!important;text-align:center}.invoice-branding>span{white-space:normal;overflow-wrap:anywhere}
.preview-tax-presets{margin-bottom:8px}.adjustment-actions button.active{background:#eaf0ff;border-color:#638cca;box-shadow:inset 0 0 0 1px #638cca}.presets-section .adjustment-actions{margin-top:8px}.invoice-sheet .inv-items-table [hidden]{display:none!important}
.invoice-sheet .inv-items-table[data-item-tax="false"][data-tax-code="false"] .col-desc{width:40%}.invoice-sheet .inv-items-table[data-item-tax="false"][data-tax-code="false"] .col-qty{width:10%}.invoice-sheet .inv-items-table[data-item-tax="false"][data-tax-code="false"] .col-rate{width:20%}.invoice-sheet .inv-items-table[data-item-tax="false"][data-tax-code="false"] .col-amt{width:22%}
.invoice-sheet .inv-items-table[data-item-tax="true"][data-tax-code="false"] .col-desc{width:32%}.invoice-sheet .inv-items-table[data-item-tax="true"][data-tax-code="false"] .col-amt{width:20%}
.invoice-sheet .inv-items-table[data-item-tax="false"][data-tax-code="true"] .col-desc{width:35%}.invoice-sheet .inv-items-table[data-item-tax="false"][data-tax-code="true"] .col-qty{width:8%}.invoice-sheet .inv-items-table[data-item-tax="false"][data-tax-code="true"] .col-rate{width:18%}.invoice-sheet .inv-items-table[data-item-tax="false"][data-tax-code="true"] .col-amt{width:19%}
.adjustment-actions button.active{color:#143f8f}.default-tax-editor label{min-width:0}.default-tax-editor label:nth-child(3){grid-column:1/-1}
.default-tax-editor .item-wise-option{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-height:32px;color:#143f8f;cursor:pointer}.default-tax-editor .item-wise-option input{width:18px;height:18px;margin:0;padding:0;accent-color:#143f8f;cursor:pointer}
.invoice-sheet .inv-items-table .col-taxable{text-align:right;white-space:nowrap}
.invoice-sheet .inv-items-table[data-item-tax="true"] .col-num{width:3%}.invoice-sheet .inv-items-table[data-item-tax="true"] .col-desc{width:21%}.invoice-sheet .inv-items-table[data-item-tax="true"] .col-code{width:9%}.invoice-sheet .inv-items-table[data-item-tax="true"] .col-qty{width:6%}.invoice-sheet .inv-items-table[data-item-tax="true"] .col-rate{width:12%}.invoice-sheet .inv-items-table[data-item-tax="true"] .col-taxable{width:15%}.invoice-sheet .inv-items-table[data-item-tax="true"] .col-tax{width:16%}.invoice-sheet .inv-items-table[data-item-tax="true"] .col-amt{width:14%}.invoice-sheet .inv-items-table[data-item-tax="true"] .col-actions{width:4%}
.invoice-sheet .inv-items-table[data-item-tax="true"][data-tax-code="false"] .col-desc{width:27%}.invoice-sheet .inv-items-table[data-item-tax="true"][data-tax-code="false"] .col-amt{width:17%}
