#tab-estimate .bme-review-nav{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 18px}#tab-estimate .bme-review-nav .btn{min-height:48px;white-space:normal;width:100%}#tab-estimate .bme-review-nav [aria-pressed=true]{background:var(--text-main);color:var(--bg-surface);border-color:var(--text-main)}#tab-estimate .creator-panel[hidden]{display:none!important}#tab-estimate .bme-edit-next{display:flex;justify-content:flex-end;margin:20px 0}#tab-estimate .bme-edit-next .btn{width:auto;min-height:48px}#tab-estimate .creator-review-links{display:flex!important;gap:8px;margin:18px 0}#tab-estimate .creator-review-links .btn{width:auto;min-height:44px}#tab-estimate .bme-adjust-section{border-top:1px solid var(--border);padding:22px 0 8px;margin-top:18px}#tab-estimate .bme-adjust-section h4{font-size:16px;margin:0 0 14px}#tab-estimate .bme-adjust-section .check-inline{min-height:44px}#tab-estimate .bme-adjust-section .sum-sections{display:none}#tab-estimate .bme-display-details{margin-top:15px}#tab-estimate .bme-display-details summary{cursor:pointer;min-height:40px;font-size:13px}#tab-estimate #previewEstimateBtn{min-height:48px}#bme-quick-preview{white-space:nowrap}#tab-estimate .bme-heading{flex-wrap:wrap}
#bme-customer-preview{padding:0;width:min(920px,calc(100% - 24px));height:min(900px,92dvh);max-height:92dvh;border:1px solid var(--border);border-radius:18px;background:var(--bg-surface);color:var(--text-main);overflow:hidden}#bme-customer-preview[open]{display:flex;flex-direction:column}#bme-customer-preview::backdrop{background:#14212bc2}.bme-preview-header{padding:18px 22px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:15px;align-items:center}.bme-preview-header h2{margin:0;font:600 20px system-ui}.bme-preview-header p{margin:5px 0 0;font-size:12px;color:var(--text-muted)}.bme-preview-header button{width:44px;min-height:44px;flex-shrink:0}#bme-preview-body{overflow:auto;padding:24px;background:#e9edf0;flex:1;min-height:0;overscroll-behavior:contain}#bme-preview-document{background:#fff;color:#222831;max-width:760px;margin:auto;padding:38px;box-shadow:0 4px 24px #13253812;font:13px/1.6 system-ui,sans-serif;overflow-wrap:anywhere}#bme-preview-document h2{font-size:22px;letter-spacing:.2px;margin:0;color:#1e242b}#bme-preview-document h3{font-size:14px;color:#86642d;margin:20px 0 9px}#bme-preview-document p{margin:5px 0}#bme-preview-document .bme-document-brand{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:2px solid #b88e44;padding-bottom:20px}#bme-preview-document .bme-document-brand p{font-size:11px;color:#5f6b7a}.bme-document-brand img{max-width:110px;max-height:60px;object-fit:contain}.bme-document-meta{display:grid;grid-template-columns:1fr 1fr;gap:18px;background:#faf8f5;padding:18px;margin-top:16px}.bme-document-meta span{display:block;font-size:9px;letter-spacing:1px;color:#5f6b7a}.bme-document-meta strong{display:block;font-size:14px}.bme-prewrap{white-space:pre-wrap}.bme-preview-table{overflow:auto}#bme-preview-document table{width:100%;border-collapse:collapse;font-size:12px}#bme-preview-document th{background:#1e242b;color:white;text-align:left;padding:8px;font-weight:500}#bme-preview-document td{padding:8px;border:1px solid #e8e2d8;vertical-align:top}#bme-preview-document tr:nth-child(even){background:#faf8f5}#bme-preview-document th:not(:first-child),#bme-preview-document td:not(:first-child){text-align:right;white-space:nowrap}.bme-document-totals{margin-top:22px;padding:16px;background:#faf8f5;border:1px solid #b88e44}.bme-document-totals>div{display:flex;justify-content:space-between;gap:18px;padding:4px 0}.bme-document-totals strong{white-space:nowrap}.bme-document-grand{font-size:17px;font-weight:650}.bme-signatures{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:45px;align-items:end}.bme-signatures span{display:block;border-top:1px solid #1e242b;padding-top:7px;font-size:10px}.bme-signatures img{max-width:130px;max-height:46px}.bme-preview-actions{display:flex;gap:10px;justify-content:flex-end;padding:16px 22px;border-top:1px solid var(--border);flex-wrap:wrap}.bme-preview-actions .btn{width:auto;min-height:44px}
@media(max-width:600px){#bme-customer-preview{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.bme-preview-header{padding:14px 16px}#bme-preview-body{padding:12px}#bme-preview-document{padding:20px 16px;font-size:12px}.bme-document-meta{padding:12px;gap:12px}.bme-document-grand{font-size:15px}.bme-preview-actions{padding:12px;gap:8px}.bme-preview-actions .btn{flex:1 1 auto;font-size:12px;padding:10px}.bme-preview-actions .btn-gold{flex-basis:100%}.bme-document-brand img{max-width:70px}#tab-estimate .bme-review-nav{position:sticky;top:0;z-index:4;background:var(--bg-surface);padding:8px 0}#bme-quick-preview{margin-left:auto}}
