.order-calc{display:grid;gap:22px;margin-top:24px}.order-calc[hidden],.reserve-pane[hidden],#budgetFixed[hidden]{display:none}.order-calc table small,.reserve-pane table small{display:block;font-size:11px;color:var(--muted);margin-top:6px;line-height:1.6}.order-calc details,.reserve-pane details{margin-top:20px;line-height:1.8;font-size:13px}.order-calc summary,.reserve-pane summary,.marketplace-link-settings summary{cursor:pointer;font-weight:600}.order-profit{display:grid;gap:8px;text-align:right}.order-profit>strong{font-size:34px;color:#28775c;letter-spacing:-1px}.order-profit>small{color:var(--muted)}.order-profit>span{font-size:12px}#orderCalcProgress{width:100%;accent-color:#28775c;height:8px}.order-calc .profit-breakdown{margin:24px 0}.order-calc table,.reserve-pane table{width:100%}#orderCalcMatches{display:flex;flex-wrap:wrap;gap:10px}.reserve-pane{display:grid;gap:22px;margin-top:24px}.reserve-dialog{max-width:720px;width:calc(100% - 36px);padding:28px}.reserve-dialog .b2b-form-grid{margin-top:24px}.reserve-dialog form label{display:grid;gap:9px;font-size:12px;color:var(--muted)}.reserve-dialog input[type=checkbox]{width:17px;height:17px;accent-color:#28775c}.reserve-pane .workspace-kpis{margin:0}.reserve-pane .crm-toolbar{justify-content:start}.marketplace-actions{display:grid;gap:7px;min-width:160px}.marketplace-actions a{display:block;white-space:normal;text-align:center;text-decoration:none;font-size:12px;padding:10px}.marketplace-actions>button{font-size:10px;padding:8px}.marketplace-link-settings{margin-top:24px!important}.marketplace-link-settings form{display:grid;gap:18px;margin-top:20px}.marketplace-link-settings details{border-top:1px solid var(--line);padding-top:15px;margin-top:10px}.marketplace-link-settings label{display:grid;gap:9px;font-size:12px;margin:16px 0;color:var(--muted)}.marketplace-link-settings input{width:100%}.crm-shipping-check{font-size:10px;background:transparent;border:0;padding:6px 0;color:#28775c;cursor:pointer;text-decoration:underline}.b2b-hints-dialog{max-width:650px;width:calc(100% - 32px);padding:26px}.b2b-hints-dialog li{padding:10px 0;line-height:1.7;font-size:13px}.b2b-hints-dialog p{font-size:12px;color:var(--muted);line-height:1.7}[data-customer-results]{display:grid;gap:8px;margin-top:8px}[data-customer-results] button{text-align:left;font-size:12px;white-space:normal}.order-calc .panel-head{align-items:start}.reserve-pane .panel-head h2{margin:0}#calculator>.crm-tabs,#costs>.crm-tabs{margin-bottom:24px;display:inline-flex}@media(max-width:700px){.order-calc .panel-head{flex-direction:column}.order-profit{text-align:left}.order-calc .profit-breakdown{grid-template-columns:1fr 1fr}.reserve-dialog{padding:20px}.order-calc .search-toolbar{flex-wrap:wrap}.marketplace-actions{min-width:130px}}

.marketplace-actions{display:flex;flex-direction:row!important;align-items:center;gap:8px}.mp-review-check{width:34px;height:34px;border:1px solid #dce2e0;border-radius:50%;background:#f2f4f3;color:#b3bdb8;font-size:19px;flex-shrink:0}.mp-review-check.is-done{background:#e3f4eb;color:#20815b;border-color:#8fc9ab;cursor:pointer}.mp-review-check:disabled{opacity:1}#ebayReviewText{width:100%;font-size:15px;line-height:1.6}
.marketplace-actions .crm-write{white-space:nowrap!important;display:inline-flex;align-items:center;justify-content:center;min-width:76px;flex:0 0 auto;line-height:1.3}#mpCopyDialog{padding:24px;max-width:660px}#mpCopyDialog textarea{width:100%;margin:16px 0}
.b2b-setup-status{border:1px solid var(--line);border-radius:14px;padding:20px;margin:18px 0;background:var(--panel)}.b2b-setup-row{display:grid;grid-template-columns:minmax(160px,1fr) 2fr;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.b2b-setup-row span{color:var(--muted);line-height:1.6}.b2b-setup-status p{font-size:12px;color:var(--muted);line-height:1.7}@media(max-width:700px){.b2b-setup-row{grid-template-columns:1fr;gap:6px}}
.b2b-invoice-steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.b2b-invoice-steps span{padding:8px 12px;border-radius:9px;background:#f3f4f3;color:#78817d;font-size:12px}.b2b-invoice-steps .done{background:#e5f2ed;color:#227354}.b2b-order-link-dialog{max-width:660px}.b2b-existing-number{display:grid;gap:8px;margin:24px 0 12px}.b2b-direct-order{margin-top:24px;padding-top:18px;border-top:1px solid #e2e5e2}.b2b-direct-order summary{cursor:pointer;font-weight:600}.b2b-order-link-dialog a.primary{display:inline-flex;padding:14px 20px;border-radius:9px;text-decoration:none;color:#fff;background:#28785f}

.receipt-mail-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid var(--line,#e2e7e2);background:var(--panel,#fff)}.receipt-mail-footer>div{display:flex;gap:8px;flex-wrap:wrap}.receipt-mail-footer>span{font-size:.86rem;color:#485b50}.receipt-sent-symbol{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;color:#7c8980;background:#f0f2f0;cursor:default}.receipt-sent-symbol.sent{color:#176649;background:#dff3e8}.receipt-sent-symbol svg{width:18px;fill:none;stroke:currentColor;stroke-width:1.6}.receipt-mail-overlay{z-index:3000}

#receiptPreviewModal .receipt-preview-dialog{grid-template-rows:auto auto minmax(0,1fr) auto}

#b2bInvoiceForm{padding:16px 18px;background:var(--panel,#fff);border:1px solid #e2e6e3;border-radius:14px}.b2b-invoice-fields .b2b-form-grid{align-items:start;gap:12px 14px}.b2b-invoice-fields .b2b-address-field{grid-column:span 1}.b2b-invoice-fields input,.b2b-invoice-fields select{min-height:42px}.b2b-shopify-button,.b2b-cancel,.b2b-refresh{display:inline-flex;align-items:center;gap:8px}.b2b-shopify-button svg{width:21px;height:21px;flex:none}.b2b-cancel{color:#9b2727;background:#fff3f2;border-color:#eac1bf}.b2b-cancel:hover{background:#ffe5e2}.b2b-cancel span,.b2b-refresh span{font-size:1.3em}.b2b-refresh{background:#edf5f0;border-color:#c9ded0;color:#245d45}#b2bInvoiceState:empty{display:none}

.receipt-base-refresh{display:inline-grid;place-items:center;width:46px;height:46px;min-width:46px;padding:11px;border:0;border-radius:10px;background:#111;color:#fff;cursor:pointer}
.receipt-base-refresh svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.receipt-base-refresh.loading svg{animation:receipt-refresh-spin 1s linear infinite}
.receipt-base-refresh:disabled{cursor:wait;opacity:.65}
@keyframes receipt-refresh-spin{to{transform:rotate(360deg)}}

/* Invoice mail composer */
.receipt-mail-overlay .b2b-dialog{width:min(1040px,100%);display:flex;flex-direction:column;overflow:hidden;border-radius:22px}
.receipt-mail-overlay .b2b-dialog-head{padding:23px 28px;background:var(--panel,#fff);flex:none}
.receipt-mail-eyebrow{margin:0 0 6px;font-size:10px;font-weight:700;letter-spacing:.16em;color:var(--muted)}
.receipt-mail-overlay .b2b-dialog-head h2{font-size:23px;margin:0}
#receiptMailForm{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.receipt-mail-overlay .b2b-dialog-body{padding:24px 28px;overflow:auto;display:grid;gap:20px}
.receipt-mail-overlay .b2b-mail-meta{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px;padding:0;margin:0}
.receipt-mail-overlay .b2b-mail-meta label{display:grid;gap:8px;min-width:0;font-size:12px;font-weight:600;color:var(--muted)}
#receiptMailCcLabel,.receipt-mail-subject{grid-column:1/-1}
.receipt-mail-overlay .b2b-mail-meta input,.receipt-mail-overlay .b2b-mail-meta select{width:100%;min-width:0;box-sizing:border-box;height:47px;padding:11px 13px;font-family:inherit;font-weight:500;font-size:14px;line-height:1.4;color:var(--ink);border:1px solid var(--line);border-radius:10px;background:var(--panel,#fff)}
.receipt-mail-overlay input:focus,.receipt-mail-overlay select:focus{outline:2px solid #28775c28;outline-offset:2px;border-color:#28775c}
.receipt-mail-overlay input[readonly]{background:var(--bg,#f7f8f6)}
.receipt-mail-message{display:grid;gap:9px;min-width:0}
.receipt-mail-label{font-size:12px;font-weight:600;color:var(--muted)}
#receiptMailHtml{display:block;box-sizing:border-box;width:100%;height:340px;min-height:220px;border:1px solid var(--line);border-radius:12px;background:white}
#receiptMailTestLabel{margin:0;padding:12px 14px;display:flex;align-items:center;gap:10px;border:1px solid #d8e7df;border-radius:10px;background:#f3f8f5;font-size:13px}
.receipt-mail-file{display:flex;align-items:center;gap:14px;padding:15px 17px;border:1px solid var(--line);border-radius:12px;background:var(--bg,#f7f8f6)}
.receipt-mail-file>svg{width:26px;height:30px;fill:none;stroke:#28775c;stroke-width:1.6;flex:none}
.receipt-mail-file>div{display:grid;gap:4px;min-width:0}.receipt-mail-file strong{font-size:14px;overflow-wrap:anywhere}
.receipt-mail-filetype{margin-left:auto;font-size:10px;font-weight:700;letter-spacing:.07em;border-radius:5px;padding:5px 8px;color:#28775c;background:#e5f2eb}
#receiptMailState{margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}#receiptMailState:empty{display:none}
.receipt-mail-overlay .b2b-dialog-foot{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:18px 28px;border-top:1px solid var(--line);flex:none;position:static;box-shadow:0 -6px 20px #08233b05}
.receipt-mail-send-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
#receiptMailCancel,#receiptMailSubmit{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;border-radius:10px}
#receiptMailCancel svg,#receiptMailSubmit svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
#receiptMailDiagnose{width:48px;height:48px;min-width:48px;border-radius:10px}
#receiptMailSubmit{padding:13px 22px;white-space:nowrap;font-size:14px}
@media(max-width:640px){.receipt-mail-overlay .b2b-dialog-head,.receipt-mail-overlay .b2b-dialog-body,.receipt-mail-overlay .b2b-dialog-foot{padding:17px}.receipt-mail-overlay .b2b-mail-meta{grid-template-columns:1fr;gap:15px}.receipt-mail-overlay .b2b-dialog-head h2{font-size:20px}#receiptMailHtml{height:300px}.receipt-mail-overlay .b2b-dialog-foot{flex-wrap:wrap}.receipt-mail-send-actions{flex:1}#receiptMailSubmit{flex:1;padding-inline:14px}#receiptMailCancel{padding-inline:10px}#receiptMailCancel span{display:none}}

.receipt-mail-overlay [hidden]{display:none!important}

.receipt-sent-symbol.sent{position:relative;background:#159447!important;color:#fff!important;border-color:#159447!important}
.receipt-mail-check{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:16px;height:16px;border:2px solid white;border-radius:50%;background:#159447;color:white}
.receipt-sent-symbol .receipt-mail-check svg{width:11px;height:11px;stroke-width:2.4;fill:none}
.receipt-mail-success{padding:15px 17px;border:1px solid #a9dcbc;background:#e9f8ee;color:#176a39;border-radius:11px;font-weight:600}
.receipt-mail-error{padding:14px 16px;border:1px solid #e7c899;background:#fff8ea;color:#885821;border-radius:11px}
.receipt-hidden-toggle{display:inline-flex!important;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.receipt-hidden-toggle input{width:16px;height:16px;margin:0;accent-color:#28775c}

/* Keep the status check independent from the larger envelope styles. */
#receipts .receipt-sent-symbol.sent{overflow:visible;isolation:isolate}
#receipts .receipt-sent-symbol .receipt-mail-check{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:#fff;color:#137c3c;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px #083d252b;z-index:2;pointer-events:none}
#receipts .receipt-sent-symbol .receipt-mail-check svg{display:block;width:12px;height:12px;min-width:12px;flex:none;fill:none;stroke:#137c3c;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
#receipts .receipt-sent-symbol:focus-visible{outline:2px solid #159447;outline-offset:4px}
