.seller-editor{padding:16px;border:1px solid var(--v2-line,#d8e3ee);border-radius:12px;margin-block:16px;background:var(--v2-surface,#fff);color:var(--v2-text,#17334d);max-width:680px}.seller-editor h4{margin:0 0 10px}.seller-editor small{display:block;color:var(--v2-muted,#5c7085);line-height:1.6;margin-block:8px}.seller-editor label{display:block;margin:14px 0 6px;font-size:13px}.seller-editor select{max-width:100%;width:100%;min-height:44px}.seller-editor button{margin:8px 8px 4px 0;min-height:44px}.seller-editor .document-error{color:var(--ui-warm-text,#785013);font-size:13px;line-height:1.6}.seller-editor .document-error:empty{display:none}#invoicePreviewDialog{width:min(1040px,calc(100vw - 24px));max-width:1040px;height:90dvh;max-height:90dvh;padding:18px;overflow:hidden}#invoicePreviewDialog[open]{display:flex;flex-direction:column;gap:10px}#invoicePreviewDialog .invoice-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#invoicePreviewDialog strong{margin-right:auto}#invoicePreviewDialog button{min-height:44px;padding:10px 14px}#invoicePreviewDialog p{margin:0;font-size:12px;line-height:1.5}#invoicePreviewDialog iframe{width:100%;min-height:0;flex:1;background:white;border:1px solid var(--v2-line,#d8e3ee);border-radius:8px}@media(max-width:600px){#invoicePreviewDialog{padding:12px}.seller-editor{padding:12px}}

.invoice-record{margin-top:12px;padding:12px;border:1px solid var(--v2-line,#d8e3ee);border-radius:10px}.invoice-record p{margin:0 0 8px}.invoice-status{display:inline-block;padding:3px 9px;border-radius:20px;background:var(--v2-soft,#e8f1fa);font-size:12px}.invoice-cancelled{border-style:dashed}.invoice-cancelled .invoice-status{color:var(--v2-muted,#5c7085)}#invoiceCancelDialog{width:min(520px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:22px;color:var(--v2-text,#17334d);background:var(--v2-surface,#fff)}#invoiceCancelDialog p{font-size:14px;line-height:1.6}#invoiceCancelDialog label{display:block;margin:16px 0 8px}#invoiceCancelDialog textarea{box-sizing:border-box;width:100%;min-height:100px}#invoiceCancelDialog button{min-height:44px;margin:6px}#invoiceCancelError{color:var(--ui-warm-text,#785013)}

.business-pricing{margin:12px 0;padding:12px;border:1px solid var(--v2-line,#d8e3ee);border-radius:10px}.business-pricing summary{cursor:pointer;font-weight:600}.business-pricing label{display:block;margin:12px 0 6px}.business-pricing select,.business-pricing input,.business-pricing textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:44px}.markup-presets{display:flex;gap:8px;flex-wrap:wrap}.markup-presets button{min-width:56px;min-height:44px}.business-pricing p{line-height:1.6;overflow-wrap:anywhere}

/* Guided document preparation uses the existing protected business actions. */
.document-preparation{display:grid;gap:14px;margin-bottom:24px}.document-preparation>section,.document-correction{padding:16px;border:1px solid var(--line,#b8cbdc);border-radius:12px;background:var(--surface,#fff)}.document-step-title{margin:0 0 12px}.document-preparation h4{margin:0 0 10px}.document-preparation p{margin:8px 0;line-height:1.5}.document-preparation .business-pricing{margin:0;border:0;padding:0}.document-preparation button,.document-correction button{margin:8px 8px 0 0}.document-archive-history{margin:20px 0}.document-archive-history>summary{cursor:pointer;padding:12px}.document-preparation-warning{padding:12px;border-left:3px solid #bd790b;background:#fff6df;color:#60420a}.document-preparation-error{padding:14px;border:1px solid #cb973a;border-radius:10px;color:inherit;white-space:normal}.document-correction{margin:16px 0;background:transparent}html[data-theme=dark] .document-preparation>section{background:#142a3b;border-color:#355367}html[data-theme=dark] .document-preparation-warning{background:#3a3020;color:#ffe0a1}@media(max-width:600px){.document-preparation>section{padding:12px}.customer-heading{flex-wrap:wrap;gap:8px}}

.document-markup{margin:12px 0}.document-markup>summary{cursor:pointer;padding:10px 0}.document-markup input,.document-markup textarea{box-sizing:border-box;max-width:100%}.document-preparation select{width:100%;max-width:100%;box-sizing:border-box}
