
.estimate-measurement-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:10px 24px;background:#f1f7ff;border-top:1px solid #d8e5f5}
.estimate-measurement-actions strong{color:#335f82;font-size:12px;margin-right:4px}
.estimate-measurement-actions button{min-height:40px;padding:9px 14px;border:1px solid #8bb5e8;border-radius:9px;background:#fff;color:#0052cc;font-size:12px;font-weight:800;cursor:pointer}
.estimate-measurement-actions button[hidden]{display:none}
@media(max-width:760px){.estimate-measurement-actions{padding:9px 12px;gap:7px}.estimate-measurement-actions strong{width:100%}.estimate-measurement-actions button{flex:1;padding:9px}}

#estimateReviewMessage.estimate-measurement-info{color:#335f82}

#estimateReviewMessage.estimate-email-ready{color:#186349}

.estimate-approval-body select{width:100%;padding:12px;border:1px solid #9eb9df;border-radius:8px;font:inherit;background:#fff;color:#172338}
.estimate-email-privacy{margin-top:16px!important;color:#536579;font-size:12px!important}
#estimateEmailError{color:#b42318}
#estimateReviewMessage a{color:#0052cc;font-weight:800;text-decoration:underline}
/* One review, one approval. The customer document stays directly editable. */
.estimate-review-toolbar{position:sticky;top:0;z-index:25;background:#fff;border-bottom:1px solid #d8e0eb}
#estimateWorkspace{height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);scroll-padding-top:calc(var(--estimate-toolbar-height,160px) + 12px)}
.estimate-review-toolbar .estimate-workspace-head,.estimate-review-toolbar .estimate-delivery-actions{position:static;border:0;background:#fff}
.estimate-review-toolbar .estimate-workspace-head{padding-bottom:6px}
.estimate-review-toolbar .estimate-delivery-actions{padding-top:8px}
.estimate-more-options{position:relative;font-size:12px;font-weight:750}
.estimate-more-options summary{padding:10px 12px;cursor:pointer;border-radius:8px;color:#0052cc}
.estimate-more-options>div{position:absolute;right:0;top:100%;z-index:30;display:grid;gap:8px;min-width:260px;padding:12px;max-height:35dvh;overflow:auto;background:#fff;border:1px solid #c6d6ec;border-radius:10px;box-shadow:0 10px 28px #17233826}
.estimate-more-options .insurance-email-option{white-space:normal;line-height:1.5}
.estimate-inline-tools{max-width:960px;margin:18px auto 0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px}
.estimate-inline-tools #undoEstimateLineDelete:disabled{display:none}
.estimate-delivery-actions button[hidden]{display:none}
.estimate-inline-tools p{margin:0;color:#536579;font-size:12px;line-height:1.5}
.estimate-inline-tools>div{display:flex;gap:8px;flex-shrink:0}
.estimate-inline-tools button{padding:9px 12px;border:1px solid #b4c9e6;border-radius:8px;background:#fff;color:#0052cc;font-size:12px;font-weight:800}
.estimate-review-message{margin:0;padding:9px 24px 14px;color:#b42318;font-size:13px;font-weight:650}
.estimate-review-message[hidden]{display:none}
#estimateWorkspace #reviewGate,#estimateWorkspace #floatingCloseEstimate{display:none}
.estimate-approval-record{padding:12px 0;white-space:pre-wrap;color:#536579;font-size:13px}
.estimate-approval-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:16px;color:#172338;background:#fff;overflow:hidden;box-shadow:0 24px 80px #08122066}
.estimate-approval-dialog[open]{display:flex;flex-direction:column}
.estimate-approval-dialog::backdrop{background:#08122099}
.estimate-approval-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 24px;background:#f1f6fd;border-bottom:1px solid #c9d8ef;flex-shrink:0}
.estimate-approval-dialog h2{margin:4px 0 0;font-size:23px}
.estimate-approval-dialog>header button{width:38px;height:38px;border:1px solid #bfd0e8;border-radius:50%;font-size:24px;flex-shrink:0;background:#fff;color:#0052cc}
.estimate-approval-dialog form{display:flex;flex-direction:column;min-height:0;margin:0}
.estimate-approval-body{overflow:auto;min-height:0;padding:18px 24px;overscroll-behavior:contain}
.estimate-approval-body p{margin:0 0 14px;line-height:1.55;font-size:14px}
.estimate-approval-body ul{margin:0 0 18px;padding:14px 14px 14px 32px;background:#fff7e8;border:1px solid #f2d499;border-radius:10px;line-height:1.5}
.estimate-approval-body ul:empty{display:none}
.estimate-approval-body li+li{margin-top:8px}
.estimate-approval-body label{display:grid;gap:6px;margin-top:14px;font-size:13px;font-weight:700}
.estimate-approval-body label[hidden]{display:none}
.estimate-approval-body input,.estimate-approval-body textarea{width:100%;padding:11px;border:1px solid #9eb9df;border-radius:8px;font:inherit;font-weight:400;box-sizing:border-box}
.estimate-approval-actions{display:flex;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid #d8e0eb;background:#fff;flex-shrink:0}
.estimate-approval-actions button{min-height:44px;padding:12px 18px;border:1px solid #8bb5e8;border-radius:9px;background:#fff;color:#0052cc;font-weight:800}
.estimate-approval-actions .primary{width:auto;margin:0;border:0;background:#ef6400;color:#fff}
#estimateApprovalError{margin-top:12px;color:#b42318}
.estimate-more-options summary:focus-visible,.estimate-approval-dialog button:focus-visible{outline:3px solid #ffaf6c;outline-offset:2px}
@media(max-width:760px){
 #estimateWorkspace{width:100vw;height:100dvh;max-height:100dvh}
 .estimate-review-toolbar .estimate-workspace-head{padding:12px;gap:8px}
 .estimate-workspace-head h2{font-size:21px}
 .estimate-workspace-head .estimate-workspace-exit{padding:0;gap:5px;background:transparent}
 .estimate-workspace-exit #closeEstimateToDashboard{padding:8px;font-size:11px;white-space:nowrap}
 .estimate-review-toolbar .estimate-delivery-actions{padding:8px 12px;gap:7px}
 .estimate-delivery-actions button{padding:9px 11px}
 .estimate-delivery-actions #estimateApprovalStatus{width:auto;margin-left:0;padding:5px 8px}
 .estimate-inline-tools{margin:12px;flex-wrap:wrap;padding:0}
 .estimate-inline-tools>div{width:100%}
 .estimate-more-options{position:static}
 .estimate-more-options>div{left:12px;right:12px;top:100%;min-width:0}
 .estimate-review-message{padding:6px 12px 12px}
 .estimate-approval-dialog>header,.estimate-approval-body{padding:16px}
 .estimate-approval-actions{padding:12px;gap:8px}
 .estimate-approval-actions button{padding:11px 14px}
}
@media(max-width:600px){
 #estimateWorkspace .white-label-estimate{margin:12px;padding:16px;min-width:0}
 #estimateWorkspace .customer-company-brand{flex-wrap:wrap}
 #estimateWorkspace .customer-company-brand h1{overflow-wrap:anywhere}
 #estimateWorkspace .customer-estimate-lines,#estimateWorkspace .customer-trade{display:block;width:100%}
 #estimateWorkspace .customer-estimate-lines thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #estimateWorkspace .customer-trade-title,#estimateWorkspace .customer-trade-title th{display:block;width:auto}
 #estimateWorkspace [data-white-line]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:relative;gap:12px;padding:12px 0;border-bottom:1px solid #dbe3ee}
 #estimateWorkspace [data-white-line]>td{display:block;width:auto;min-width:0;padding:0;border:0;text-align:left}
 #estimateWorkspace [data-white-line]>td:first-child{grid-column:1/-1;padding-right:42px;min-height:32px}
 #estimateWorkspace [data-white-line]>td[data-label="Description"]{grid-column:1/-1}
 #estimateWorkspace [data-white-line]>td[data-label]:not(.estimate-line-action)::before{content:attr(data-label);display:block;margin-bottom:5px;color:#536579;font-size:11px;font-weight:700}
 #estimateWorkspace [data-white-line]>td.estimate-line-action{position:absolute;top:12px;right:0}
 #estimateWorkspace [data-white-line] input,#estimateWorkspace [data-white-line] select,#estimateWorkspace .estimate-line-description{width:100%;min-width:0;box-sizing:border-box;font-size:13px}
}
@media print{.estimate-review-toolbar,.estimate-inline-tools,.estimate-approval-dialog{display:none!important}}
