:is(#projectBusinessCard,#estimatePlanCard){scroll-margin-top:150px}:is(#projectBusinessCard,#estimatePlanCard) [hidden]{display:none!important}:is(#projectBusinessCard,#estimatePlanCard) input,:is(#projectBusinessCard,#estimatePlanCard) select,:is(#projectBusinessCard,#estimatePlanCard) textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box;font-size:16px}:is(#projectBusinessCard,#estimatePlanCard) input[type=date]{display:block;min-height:46px}:is(#projectBusinessCard,#estimatePlanCard) input:disabled,:is(#projectBusinessCard,#estimatePlanCard) select:disabled,:is(#projectBusinessCard,#estimatePlanCard) textarea:disabled{opacity:1;color:#333;-webkit-text-fill-color:#333;background:#f4f5f4}:is(#projectBusinessCard,#estimatePlanCard) fieldset{padding:0;margin:0;border:0;min-width:0}:is(#projectBusinessCard,#estimatePlanCard) summary{padding:14px 0;cursor:pointer;font-weight:800}:is(#projectBusinessCard,#estimatePlanCard) details{border-top:1px solid #e0e3df;margin-top:12px}:is(#projectBusinessCard,#estimatePlanCard) h3{font-size:17px;margin:16px 0 12px}:is(#projectBusinessCard,#estimatePlanCard) h4{margin-bottom:6px}.pb-wide{width:100%;margin-top:10px}.pb-actions,.pb-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:10px}.pb-grid>div{min-width:0}.pb-grid>label{grid-column:1/-1}.pb-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:15px 0 0}.pb-tabs .btn{padding:10px 5px;font-size:13px;overflow-wrap:anywhere}.pb-state{display:inline-block;background:#eef7d6;color:#395400;padding:5px 10px;border-radius:6px;font-size:13px;font-weight:800;margin:8px 0}.pb-metrics{display:grid;grid-template-columns:1fr;gap:8px;background:#111;color:#fff;padding:14px;border-radius:12px;margin:10px 0}.pb-metrics>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}.pb-metrics small{color:#ddd}.pb-metrics b{font-size:20px;color:var(--lime,#b8ff00);overflow-wrap:anywhere}.pb-document-row{display:flex;gap:10px;align-items:center;justify-content:space-between;border:1px solid #ddd;border-radius:10px;padding:12px;margin:8px 0}.pb-document-row>div{min-width:0;overflow-wrap:anywhere}.pb-document-row p{font-size:12px;margin:4px 0;color:#666}.pb-document-row .btn{flex-shrink:0}.pb-badge{font-size:11px;padding:3px 6px;background:#eef0ed;border-radius:5px;margin-left:8px}.pb-editor{border:2px solid #bac6ad;border-radius:12px;padding:12px;margin:16px 0;scroll-margin-top:150px}.pb-editor-heading,.pb-line-heading{display:flex;gap:8px;justify-content:space-between;align-items:center}.pb-editor-heading h3{margin:0}.pb-line{padding:12px;border:1px solid #d8dcd6;border-radius:10px;background:#fafbf9;margin:10px 0}.pb-line-amount{text-align:right;font-weight:800;margin-top:10px}.pb-estimate-profit{font-size:13px;line-height:1.7}.pb-error{color:#aa2525!important;font-weight:bold}.pb-progress{margin-top:12px;padding:12px;background:#f0f5e9;border-radius:10px}.pb-align-bottom{align-self:end;margin-top:8px}#pbIssuerView{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}:is(#pbPreview,#epPreview,#alPreview,#eqPreview){width:min(960px,96vw);max-width:96vw;max-height:94vh;padding:14px;border:0;border-radius:12px}:is(#pbPreview,#epPreview,#alPreview,#eqPreview)::backdrop{background:#0009}.pb-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.pb-preview-toolbar>div{display:flex;gap:8px}:is(#pbPreview,#epPreview,#alPreview,#eqPreview) iframe{width:100%;height:70vh;border:1px solid #ddd;background:white}#pbMasterLink{scroll-margin-top:150px}button:disabled{cursor:default}
@media(min-width:650px){.pb-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.pb-metrics>div{display:block}.pb-metrics small,.pb-metrics b{display:block}.pb-metrics b{margin-top:6px}.pb-line{padding:16px}}

#estimatePlanCard .ep-plan{border-top:2px solid #bdcbaf;margin-top:18px;padding-top:10px}#estimatePlanCard .ep-group{border:1px solid #ced8c7;border-radius:12px;margin:16px 0;padding:10px}#estimatePlanCard .ep-group>summary{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}#estimatePlanCard .ep-group>summary:before{content:"▶"}#estimatePlanCard .ep-group[open]>summary:before{content:"▼"}#estimatePlanCard .ep-group>summary span{flex:1;min-width:120px;overflow-wrap:anywhere}#estimatePlanCard .ep-group>summary strong{font-size:14px}#estimatePlanCard .ep-rate{background:#f0f3ec;padding:10px;border-radius:8px;margin:12px 0}.ep-selling{background:#efffd1;padding:12px;border-radius:12px;line-height:1.6}.ep-selling strong{font-size:19px}.ep-pending{background:#fff3d7;color:#795018;padding:12px;border-radius:10px}#estimatePlanCard .pb-line{margin-top:16px}

#estimatePlanCard .al-table-wrap{max-width:100%;overflow-x:auto;margin:14px 0}
#estimatePlanCard .al-table,#estimatePlanCard .al-costs,#estimatePlanCard .al-day-table{width:100%;border-collapse:collapse;font-size:14px}
#estimatePlanCard .al-table th,#estimatePlanCard .al-table td,#estimatePlanCard .al-costs th,#estimatePlanCard .al-costs td,#estimatePlanCard .al-day-table th,#estimatePlanCard .al-day-table td{padding:12px 8px;border-bottom:1px solid #dce1d7;text-align:right;overflow-wrap:anywhere}
#estimatePlanCard .al-table th:first-child,#estimatePlanCard .al-costs th,#estimatePlanCard .al-day-table th:first-child{text-align:left}
#estimatePlanCard .al-table thead,#estimatePlanCard .al-day-table thead{background:#f0f3ec}
#estimatePlanCard .al-table td{font-variant-numeric:tabular-nums}
#estimatePlanCard .al-table small,#estimatePlanCard .al-costs small{display:block;margin-top:4px;font-size:12px;color:#657060;font-weight:normal}
#estimatePlanCard .al-table .btn{display:block;min-height:42px;width:100%;margin-top:6px;padding:8px;font-size:14px}
#estimatePlanCard .al-aggregate{padding:14px;background:#efffd1;border-radius:10px;line-height:1.8;font-weight:700}
#estimatePlanCard .al-detail{scroll-margin-top:160px;border:1px solid #c9d3c0;border-radius:12px;padding:12px;margin:16px 0}
#estimatePlanCard .al-alert{padding:14px;background:#fff3d7;color:#795018;border-radius:10px;line-height:1.8;overflow-wrap:anywhere}
#estimatePlanCard .al-alert p{margin:0 0 12px}#estimatePlanCard .al-alert p:last-child{margin-bottom:0}
#estimatePlanCard .al-negative{color:#c64032}#estimatePlanCard .pb-metrics .al-negative{color:#ff9c8f}
#estimatePlanCard .al-day-table{min-width:1080px;font-size:13px}
#estimatePlanCard .al-day-table th:first-child{min-width:95px}
@media(max-width:700px){
 #estimatePlanCard .al-table-wrap:has(>.al-table){overflow:visible}
 #estimatePlanCard .al-table,#estimatePlanCard .al-table tbody,#estimatePlanCard .al-table tr,#estimatePlanCard .al-table th,#estimatePlanCard .al-table td{display:block;width:auto}
 #estimatePlanCard .al-table thead{display:none}
 #estimatePlanCard .al-table tr{border:1px solid #d3dbcb;border-radius:12px;margin:12px 0;padding:12px}
 #estimatePlanCard .al-table th:first-child{padding:0 0 10px;font-size:17px}
 #estimatePlanCard .al-table td{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px;text-align:right;padding:10px 0}
 #estimatePlanCard .al-table td:before{content:attr(data-label);text-align:left;font-weight:normal;color:#596353}
 #estimatePlanCard .al-table td:last-child{border:0;padding-bottom:0}
 #estimatePlanCard .al-table td .btn{flex-basis:100%;min-height:44px}
 #estimatePlanCard .al-costs{font-size:13px}#estimatePlanCard .al-costs td{min-width:80px;padding-right:0}
}

#estimatePlanCard .eq-card{border:1px solid #c8d6b9;border-radius:12px;padding:14px;margin:14px 0 22px;background:#fbfdf8}
#estimatePlanCard .eq-scroll{max-width:100%;overflow-x:auto;margin:8px 0}
#estimatePlanCard .eq-table{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed}
#estimatePlanCard .eq-table th,#estimatePlanCard .eq-table td{text-align:right;border-bottom:1px solid #dce2d6;padding:10px 6px;overflow-wrap:anywhere}
#estimatePlanCard .eq-table th:first-child{width:58%;text-align:left}
#estimatePlanCard .eq-table thead{background:#edf3e5}
#estimatePlanCard .eq-table small{display:block;font-size:11px;font-weight:normal;color:#626d60;margin-top:5px}
#estimatePlanCard .eq-table:has(th:nth-child(5)){min-width:650px}
#estimatePlanCard .eq-warning{background:#fff3d7;color:#795018;padding:12px;border-radius:10px;line-height:1.7}
#estimatePlanCard .eq-warning p{margin:4px 0 10px}#estimatePlanCard .eq-warning p:last-child{margin-bottom:0}
#estimatePlanCard .eq-blank,#estimatePlanCard .eq-credit{color:#975610}
#estimatePlanCard .eq-source{overflow-wrap:anywhere;font-size:11px}
#estimatePlanCard .eq-reuse{background:#f0f6e8;padding:0 10px 10px;border-radius:8px}
@media(max-width:500px){#estimatePlanCard .eq-card{padding:10px}#estimatePlanCard .eq-table{font-size:13px}#estimatePlanCard .eq-table th,#estimatePlanCard .eq-table td{padding:9px 4px}}
/* Quote entry follows the company's quotation columns. */
.ep-simple .ep-group{padding:12px;margin:12px 0}
.ep-simple .ep-group>summary{gap:8px;align-items:start;font-size:16px}
.ep-simple .ep-group>summary strong{white-space:nowrap;font-size:15px}
.ep-simple .ep-group-name{margin:12px 0}
.ep-simple .ep-group-name>summary,.ep-simple .ep-row-options>summary{font-size:13px;color:#666}
.ep-quote-row{border-bottom:1px solid #d5ddd3;padding:12px 0}
.ep-quote-head{display:flex;align-items:end;gap:8px;margin-bottom:8px}
.ep-quote-head>.pb-field{flex:1;min-width:0}
.ep-quote-grid{display:grid;grid-template-columns:1fr .8fr 1.4fr 1.3fr;gap:8px;align-items:end}
.ep-simple .ep-quote-row label{font-size:13px;margin:0 0 4px}
.ep-simple .ep-quote-row input{padding:10px;width:100%;min-width:0;font-size:16px}
.ep-simple .ep-small{padding:9px 10px;font-size:12px;min-height:40px;flex-shrink:0}
.ep-quote-amount{text-align:right;padding:8px 0;min-width:0}
.ep-quote-amount small,.ep-quote-amount strong{display:block;overflow-wrap:anywhere}
.ep-quote-amount small{font-size:12px;color:#666}
.ep-quote-amount strong{font-size:18px}
.ep-simple .ep-row-options{padding-top:8px}
.ep-simple .ep-inline{display:flex;align-items:center;gap:8px;margin:12px 0}
.ep-simple .ep-inline input{width:auto;min-height:24px}
.ep-simple .ep-costs,.ep-simple .ep-excluded{margin:16px 0;padding:12px;border:1px solid #dae0d8;border-radius:12px}
.ep-simple .ep-costs>summary,.ep-simple .ep-excluded>summary{font-size:14px}
.ep-excluded-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #ddd}
.ep-excluded-row small{display:block;color:#666}
@media(max-width:600px){.ep-quote-grid{grid-template-columns:1fr 1fr}.ep-quote-head{align-items:end}.ep-simple .ep-group{padding:10px}.ep-simple .ep-group>summary{font-size:15px}.ep-simple .ep-group>summary strong{font-size:13px}}
.ep-simple [hidden]{display:none!important}
.ep-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;list-style:none;padding:0;margin:0 0 20px}
.ep-steps li{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 2px;border-radius:10px;background:#eee;color:#666;font-size:13px;font-weight:700;text-align:center}
.ep-steps li b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff;color:#555;font-size:14px}
.ep-steps li.active{background:var(--lime,#b8ff00);color:#111}
.ep-steps li.active b{background:#111;color:#fff}
.ep-simple h3{font-size:20px;line-height:1.5}
.ep-simple input[aria-invalid=true]{border:2px solid #b92323;background:#fff7f7}
.ep-simple [data-quote-choice]{margin:0 0 8px;max-width:100%;font-size:15px}
.ep-auto{border:2px solid var(--lime,#b8ff00);border-radius:14px;padding:14px;margin:14px 0;background:#fbfff2}.ep-auto>summary{font-size:18px;font-weight:800}.ep-auto details{border-top:1px solid #d6dfca;margin-top:12px;padding-top:10px}.ep-auto details>summary{font-weight:750}.ep-auto-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ep-auto-grid .pb-field{min-width:0}.ep-auto-grid input{width:100%;min-width:0}.ep-manual{margin:16px 0}.ep-manual>summary{font-size:17px;font-weight:800}
@media(max-width:600px){.ep-auto-grid{grid-template-columns:1fr 1fr}}
#epStep1,#epStep2,#estimateDocumentHost{scroll-margin-top:160px}
#epInputFooter{border-top:1px solid #ddd;margin-top:18px;padding-top:8px}
#epNextItems,#epCreateQuote,#pbIssueDoc{margin-top:16px}
.pb-simple-review .pb-editor-heading{align-items:flex-start;gap:8px}
.pb-simple-review .pb-editor-heading h3{font-size:20px;line-height:1.5}
.pb-simple-review .pb-editor-heading button{font-size:13px;padding:10px;flex-shrink:0}
.pb-review-job{padding:14px;background:#f3f6f1;border-radius:12px;margin:12px 0;overflow-wrap:anywhere}
.pb-review-job p{margin:6px 0 0;font-size:14px}
.pb-review-groups p{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #ddd;font-size:15px}
.pb-review-groups b{white-space:nowrap}
.pb-review-done{padding:12px;background:#e7f5d8;border-radius:10px;font-weight:700}
.pb-simple-review #pbTotals .pb-metrics{grid-template-columns:1fr}
.pb-simple-review #pbTotals .pb-metrics>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.pb-simple-review #pbTotals .pb-metrics b{font-size:22px}

/* Scale the complete print frame, including text, in a separate scroll area. */
#pbPreview .pb-preview-viewport{width:100%;height:70vh;border:1px solid #ddd;background:#eee;overflow:auto;overscroll-behavior:contain}
#pbPreview .pb-preview-stage{position:relative;width:100%;height:1px;margin:0 auto;overflow:hidden}
#pbPreview .pb-preview-stage iframe{position:absolute;inset:0 auto auto 0;display:block;width:810px;max-width:none;height:1px;margin:0;padding:0;border:0;transform-origin:top left}

:is(#pbIssueConfirmation,#pbDeleteConfirmation){width:calc(100% - 32px);max-width:420px;max-height:calc(100dvh - 32px);box-sizing:border-box;margin:auto;padding:20px;border:0;border-radius:16px;background:#fff;color:#111;overflow-y:auto}:is(#pbIssueConfirmation,#pbDeleteConfirmation)::backdrop{background:#0009}:is(#pbIssueConfirmation,#pbDeleteConfirmation) h3{font-size:20px;margin:0 0 18px}:is(#pbIssueConfirmation,#pbDeleteConfirmation) dl{margin:0}:is(#pbIssueConfirmation,#pbDeleteConfirmation) dt{font-size:13px;color:#666;margin-top:12px}:is(#pbIssueConfirmation,#pbDeleteConfirmation) dd{margin:4px 0 0;font-weight:700;overflow-wrap:anywhere}:is(#pbIssueConfirmation,#pbDeleteConfirmation) p{font-size:14px;line-height:1.6}:is(#pbIssueConfirmation,#pbDeleteConfirmation) .btn{font-size:16px;min-height:48px}:is(#pbIssueConfirmation,#pbDeleteConfirmation) .pb-metrics{margin-top:18px}
