.invoice-settings-panel{margin-top:24px}.invoice-profile-settings{border-bottom:1px solid var(--line)}.invoice-profile-settings summary{display:flex;justify-content:space-between;gap:18px;padding:18px 4px;cursor:pointer;list-style:none}.invoice-profile-settings summary::after{content:'+';font-size:20px}.invoice-profile-settings[open] summary::after{content:'−'}.invoice-profile-settings summary span{margin-left:auto;color:var(--muted);font-size:12px}.invoice-settings-grid,.invoice-draft-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:8px 0 24px}.invoice-wide{grid-column:1/-1}.invoice-settings-panel label,.invoice-draft-editor label{display:grid;gap:8px;font-size:13px;color:var(--muted)}.invoice-settings-panel input,.invoice-settings-panel select,.invoice-settings-panel textarea,.invoice-draft-editor input,.invoice-draft-editor textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;padding:11px;background:var(--panel,#fff);color:var(--ink);font:inherit;font-size:14px}.invoice-settings-panel input[type=color]{padding:5px;height:45px}.invoice-settings-panel input[type=file]{background:var(--bg);font-size:13px}.invoice-settings-panel small{font-size:12px;line-height:1.5}.invoice-footer-heading{margin:28px 0 18px}.invoice-footer-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.invoice-settings-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px}.invoice-settings-actions .muted{font-size:13px}.invoice-preview-column{min-width:0}.invoice-options{position:static;display:flex;flex-direction:column;gap:18px;min-width:0}.invoice-options input{width:100%;min-width:0}.invoice-order-picker{display:grid;gap:12px;border-top:1px solid var(--line);padding-top:16px}.invoice-order-picker h3{font-size:16px;margin:0}.invoice-button-row{display:flex;gap:8px;flex-wrap:wrap}.invoice-button-row button{flex:1;font-size:12px;padding:11px}.invoice-checks{font-size:12px;line-height:1.6;color:#a27631}.invoice-options .muted{font-size:12px;line-height:1.6;margin:0}.invoice-order-picker #invoiceOrderResults{display:grid;gap:7px;max-height:350px;overflow:auto}.invoice-order-picker [data-invoice-order]{display:flex;justify-content:space-between;gap:12px;width:100%;text-align:left;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:12px;font:inherit;cursor:pointer}.invoice-order-picker [data-invoice-order]:hover{border-color:#b89858}.invoice-order-picker [data-invoice-order] span{min-width:0}.invoice-order-picker [data-invoice-order] strong{font-size:12px;display:block}.invoice-order-picker [data-invoice-order] small{display:block;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.invoice-draft-editor{margin-bottom:18px}.invoice-draft-editor summary{cursor:pointer;font-weight:600}.invoice-draft-editor form{padding-top:20px}.invoice-item-editor{min-width:560px;table-layout:fixed}.invoice-item-editor th:nth-child(-n+2){width:28%}.invoice-item-editor td{padding:8px 4px}.invoice-item-editor input{font-size:12px;padding:8px;margin-bottom:5px}.invoice-draft-editor .muted{font-size:12px;line-height:1.6}
.invoice-sheet-wrap{padding:24px;background:var(--bg);border:1px solid var(--line);border-radius:14px;overflow:auto}.invoice-sheet{--invoice-color:#001c3d;--invoice-text:#fff;--invoice-accent:#b89858;padding:0!important;min-width:580px;max-width:820px;min-height:1080px;display:flex;flex-direction:column;font:12px 'DM Sans',Arial,sans-serif;color:#0e2744;background:#fff;line-height:1.5}.invoice-reference-header{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--invoice-color);color:var(--invoice-text);padding:22px 28px;min-height:110px}.invoice-reference-header img{width:230px;height:67px;object-fit:contain;object-position:left center}.invoice-reference-header>div{text-align:right;max-width:50%;overflow-wrap:anywhere}.invoice-reference-header strong{display:block;font-size:25px;letter-spacing:.045em;line-height:1.25}.invoice-reference-header span{display:block;font-size:11px;letter-spacing:.1em;margin-top:4px;color:var(--invoice-accent)}.invoice-reference-body{padding:28px 24px;flex:1}.invoice-reference-addresses{display:grid;grid-template-columns:1fr 1fr 1.08fr;gap:22px}.invoice-reference-addresses h3,.invoice-reference-note b{font-size:11px;font-weight:500;margin:0 0 6px}.invoice-reference-addresses p{font-size:11px;line-height:1.55;margin:0;overflow-wrap:anywhere}.invoice-reference-addresses small{font-size:10px;display:block;overflow-wrap:anywhere}.invoice-reference-addresses dl{font-size:9px}.invoice-reference-addresses dl>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #dbe0e5;padding:6px 0}.invoice-reference-addresses dt{color:#4d5966;flex:none}.invoice-reference-addresses dd{margin:0;text-align:right;overflow-wrap:anywhere}.invoice-reference-note{margin-top:12px;max-width:65%;font-size:11px}.invoice-reference-note p{margin:0;white-space:normal;overflow-wrap:anywhere}.invoice-draft-strip{font-size:9px;color:#93815a;border:1px solid #c7b58a;padding:6px 9px;margin:16px 0}.invoice-reference-lines{width:100%;table-layout:fixed;border-collapse:collapse;font-size:10px;margin-top:18px}.invoice-reference-lines th{background:var(--invoice-color);color:var(--invoice-text);font-size:9px;font-weight:500;text-align:left;padding:6px 4px;border:0}.invoice-reference-lines th:nth-child(1){width:6%}.invoice-reference-lines th:nth-child(2){width:13%}.invoice-reference-lines th:nth-child(3){width:16%}.invoice-reference-lines th:nth-child(4){width:26%}.invoice-reference-lines th:nth-child(5){width:7%}.invoice-reference-lines th:nth-child(n+6){width:16%;text-align:right}.invoice-reference-lines td{padding:9px 4px;border-bottom:1px solid #d2d9e0;vertical-align:top;overflow-wrap:anywhere;color:#142e4d}.invoice-reference-lines td:nth-child(n+5){text-align:right}.invoice-reference-lines td strong{font-weight:500}.invoice-reference-lines td small{display:block;font-size:9px;color:#566677;margin-top:3px;line-height:1.5}.invoice-reference-summary{margin-top:120px;break-inside:avoid}.invoice-shipping{display:flex;justify-content:space-between;border-top:1px solid #d2d9e0;padding:8px 6px;font-size:10px}.invoice-shipping b{font-weight:500}.invoice-reference-summary dl{width:45%;margin:12px 0 0 auto;font-size:12px}.invoice-reference-summary dl>div{display:flex;justify-content:space-between;gap:14px;padding:4px 0}.invoice-reference-summary dt{color:#142e4d}.invoice-reference-summary dd{margin:0;text-align:right}.invoice-reference-summary .invoice-reference-total{background:var(--invoice-color);color:var(--invoice-text);padding:8px 9px;margin-top:10px;font-weight:600}.invoice-reference-total dt{color:var(--invoice-text)}.invoice-sheet .invoice-reference-footer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;background:var(--invoice-color);color:var(--invoice-text);padding:25px 28px;margin:0;border:0;font-size:9px;line-height:1.65}.invoice-reference-footer h3{font-size:9px;color:var(--invoice-accent);margin:0 0 6px;font-weight:600}.invoice-reference-footer p{margin:0;overflow-wrap:anywhere;white-space:normal}
html[data-theme=dark] .invoice-settings-panel input,html[data-theme=dark] .invoice-settings-panel select,html[data-theme=dark] .invoice-settings-panel textarea,html[data-theme=dark] .invoice-draft-editor input,html[data-theme=dark] .invoice-draft-editor textarea{background:#1d1d1d;color:#eee;border-color:#404040}
#invoicePreviewSheet .invoice-reference-lines th{background:var(--invoice-color);color:var(--invoice-text);white-space:normal}
#invoicePreviewSheet .invoice-reference-lines td{background:#fff;color:#142e4d;border-color:#d2d9e0;white-space:normal}
@media screen and (max-width:600px){.invoice-preview-column .invoice-sheet{min-width:0;min-height:0}.invoice-reference-header{gap:12px;padding:18px 14px;min-height:80px}.invoice-reference-header img{width:45%;height:42px}.invoice-reference-header strong{font-size:16px}.invoice-reference-header span{font-size:8px}.invoice-reference-body{padding:20px 12px}.invoice-reference-addresses{grid-template-columns:1fr 1fr;gap:16px}.invoice-reference-addresses section:last-child{grid-column:1/-1}.invoice-reference-note{max-width:100%}.invoice-reference-lines{font-size:8px}.invoice-reference-lines th{font-size:7px;padding:5px 2px}.invoice-reference-lines td{padding:8px 2px}.invoice-reference-lines td small{font-size:7px}.invoice-reference-summary{margin-top:55px}.invoice-reference-summary dl{width:85%}.invoice-sheet .invoice-reference-footer{grid-template-columns:1fr;padding:20px;gap:16px}}
@media(max-width:1100px){.invoice-workspace{grid-template-columns:1fr}.invoice-options{position:static}.invoice-footer-settings{grid-template-columns:1fr}.invoice-settings-actions{align-items:stretch;flex-direction:column}.invoice-sheet-wrap{padding:14px}.invoice-profile-settings summary span{font-size:11px}}@media(max-width:600px){.invoice-settings-grid,.invoice-draft-grid{grid-template-columns:1fr}.invoice-settings-grid>*,.invoice-draft-grid>*{grid-column:1}.invoice-profile-settings summary{flex-wrap:wrap}.invoice-sheet-wrap{padding:8px}.invoice-sheet{min-width:580px}}
@media print{body.printing-invoice .invoice-draft-editor{display:none!important}body.printing-invoice .invoice-sheet{width:210mm;min-width:0;min-height:297mm;padding:0!important;margin:0;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}body.printing-invoice .invoice-reference-header{display:flex!important}body.printing-invoice .invoice-reference-footer{display:grid!important}body.printing-invoice .invoice-reference-body{padding:8mm 7mm}body.printing-invoice .invoice-reference-header{padding:6mm 7mm}body.printing-invoice .invoice-reference-footer{padding:7mm}body.printing-invoice .invoice-reference-lines thead{display:table-header-group}body.printing-invoice .invoice-reference-lines tr{break-inside:avoid}body.printing-invoice .invoice-reference-summary{margin-top:25mm}body.printing-invoice .invoice-reference-footer{break-inside:avoid}}
