.invoice-editor{color:#102430;background:#f3f5f0;border:1px solid #7a9187;width:min(1120px,100vw - 32px);max-width:none;max-height:94dvh;padding:0}.invoice-editor::backdrop{background:#071b2bcc}.invoice-editor[open]{flex-direction:column;display:flex}.invoice-editor-header{color:#fff;background:#102430;border-bottom:4px solid #bdff25;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 26px;display:flex}.invoice-editor-header h2{margin:5px 0;font-size:26px}.invoice-editor-header small{color:#bdff25}.invoice-editor-header p{margin:6px 0 0;font-size:14px}.invoice-editor button{cursor:pointer;color:#102430;white-space:nowrap;background:#fff;border:1px solid #82968c;border-radius:6px;padding:9px 15px;font-size:14px;font-weight:700}.invoice-editor button:disabled{opacity:.5;cursor:default}.invoice-editor-header button{padding:1px 12px;font-size:24px}.invoice-editor-body{min-height:120px;padding:20px 24px;overflow-y:auto}.invoice-editor fieldset{border:0;min-width:0;margin:0;padding:0}.invoice-editor section{background:#fff;border:1px solid #cad3cc;margin-bottom:16px;padding:20px}.invoice-editor h3{margin:0 0 16px;font-size:18px}.invoice-editor p{font-size:14px;line-height:1.5}.invoice-editor label{flex-direction:column;gap:6px;min-width:0;font-size:14px;font-weight:600;display:flex}.invoice-editor input,.invoice-editor textarea{color:#102430;background:#fff;border:1px solid #9faea6;border-radius:5px;width:100%;min-width:0;padding:10px 12px;font:400 16px/1.4 Arial,sans-serif}.invoice-editor textarea{resize:vertical}.invoice-editor-fields{grid-template-columns:1fr 1fr;gap:14px 20px;display:grid}.invoice-editor-wide{grid-column:1/-1}.invoice-editor-section-heading{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.invoice-editor-section-heading h3{margin-bottom:4px}.invoice-editor-section-heading p{margin:0 0 16px}.invoice-editor-lines{gap:14px;display:grid}.invoice-editor-lines article{background:#f8faf5;border:1px solid #d0d8d2;padding:16px}.invoice-editor-line-title{align-items:center;gap:12px;margin-bottom:12px;display:flex}.invoice-editor-line-title label{flex:1}.invoice-editor-line-title>b{color:#507b00;font-size:20px}.invoice-editor-line-numbers{grid-template-columns:minmax(120px,1fr) 80px 1.1fr 1.4fr 1.1fr;align-items:end;gap:12px;margin-top:12px;display:grid}.invoice-editor-line-total small{margin-bottom:12px;display:block}.invoice-editor-line-total strong{overflow-wrap:anywhere;font-size:20px;display:block}.invoice-editor-fees{grid-template-columns:repeat(4,1fr);gap:16px;display:grid}.invoice-editor-totals{background:#eff8dd;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0;padding:16px;display:grid}.invoice-editor-totals span{font-size:14px}.invoice-editor-totals b{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin-top:6px;font-size:22px;display:block}.invoice-editor-error{color:#983600;overflow-wrap:anywhere;background:#fff1e6;border-left:4px solid #e77230;padding:12px 16px}.invoice-editor-notice{color:#315600;background:#edf8d7;padding:12px 16px}.invoice-editor-footer{background:#fff;border-top:1px solid #bac8bc;justify-content:flex-end;align-items:center;gap:10px;padding:16px 24px;display:flex}.invoice-editor-footer>div{max-width:360px;margin-right:auto}.invoice-editor-footer small{font-size:12px;display:block}.invoice-editor-footer .invoice-editor-send{background:#bdff25;border-color:#8dbb20}.invoice-editor-preview{background:#fff;border:1px solid #bbc7bf;width:100%;height:65dvh}.invoice-editor-history{gap:8px;margin:0;padding:0;list-style:none;display:grid}.invoice-editor-history li{overflow-wrap:anywhere;border-bottom:1px solid #dde3dc;flex-wrap:wrap;gap:8px 16px;padding:8px 0;font-size:14px;display:flex}.invoice-editor-history small{color:#a64600;width:100%}@media (width<=700px){.invoice-editor{width:100vw;height:100dvh;max-height:100dvh;margin:0}.invoice-editor-header{padding:16px}.invoice-editor-header h2{font-size:22px}.invoice-editor-body{padding:12px}.invoice-editor section{padding:14px}.invoice-editor-fields{grid-template-columns:1fr}.invoice-editor-line-numbers{grid-template-columns:minmax(120px,1fr) 1fr}.invoice-editor-line-total{grid-column:1/-1}.invoice-editor-fees,.invoice-editor-totals{grid-template-columns:1fr 1fr}.invoice-editor-footer{flex-wrap:wrap;padding:12px}.invoice-editor-footer>div{width:100%;max-width:none}.invoice-editor-footer button{flex:1;padding:10px 8px}.invoice-editor-section-heading{gap:8px}.invoice-editor-totals b{font-size:20px}}
