.quote-workspace{max-width:1600px;margin:0 auto}.quote-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;margin:5px 0 22px}.quote-hero h2{font-size:27px;color:#1d4632;margin:5px 0 8px}.quote-hero p{font-size:13px;color:#7d8f82}.quote-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.quote-metrics article{background:#fff;border:1px solid #e0e8e3;border-left:4px solid #75a0c4;border-radius:12px;padding:17px 20px;min-width:0}.quote-metrics article>span{font-size:12px;color:#829387}.quote-metrics article>strong{display:block;font-size:26px;color:#456e90;margin-top:7px;overflow-wrap:anywhere}.quote-metrics .violet{border-left-color:#a995c8}.quote-metrics .violet>strong{color:#8c72ad}.quote-metrics .good{border-left-color:#76b293}.quote-metrics .good>strong{color:#4c956c}.quote-metrics .gold{border-left-color:#d8b56e}.quote-metrics .gold>strong{font-size:22px;color:#917234}.quote-panel{background:#fff;border:1px solid #e0e9e3;border-radius:15px;padding:21px;margin-bottom:17px}.quote-filters{display:flex;align-items:end;gap:12px;margin-bottom:18px;padding-bottom:17px;border-bottom:1px solid #edf1ee}.quote-filters label{flex:1;color:#78897f;font-size:11px}.quote-filters input,.quote-filters select{margin-top:6px;height:39px}.quote-view-toggle{display:flex;gap:5px}.quote-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.quote-card{border:1px solid #e2eae4;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:8px}.quote-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.quote-card h3{margin:8px 0 0;color:#264a39;font-size:16px}.quote-card p{margin:0;color:#677a6e;font-size:13px}.quote-card small,.quote-sub{display:block;color:#829187;font-size:11px;margin-top:4px}.quote-value{font-size:19px;color:#247353;margin:8px 0}.quote-badge{display:inline-block;border-radius:20px;padding:5px 9px;background:#edf3f5;color:#54768b;font-size:10px;white-space:nowrap}.quote-badge.good{background:#eaf5ee;color:#47805d}.quote-badge.violet{background:#f1edf7;color:#80679e}.quote-badge.muted{background:#eff1ef;color:#778279}.quote-empty{padding:35px 18px;text-align:center;color:#73847a}.quote-empty h3{color:#375846}.quote-empty.compact{padding:18px}.quote-editor .quote-hero{align-items:flex-start}.quote-editor-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:16px}.quote-panel h3{margin:0 0 15px;color:#294b39;font-size:16px}.quote-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quote-form-grid label{display:flex;flex-direction:column;gap:5px;color:#66796e;font-size:11px}.quote-form-grid input,.quote-form-grid select,.quote-form-grid textarea{width:100%;min-width:0}.quote-form-grid .wide{grid-column:1/-1}.quote-prospect-fields{padding:11px;background:#f7faf8;border-radius:9px}.quote-source-note{margin:15px 0 0;padding:11px;background:#f8f5eb;border-radius:8px;color:#786637;font-size:11px;line-height:1.45}.quote-lines-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.quote-lines-head h3{margin-bottom:4px}.quote-lines-head p{margin:0;color:#7b8c81;font-size:12px}.quote-lines-head .actions{align-items:center}.quote-lines-head select{max-width:260px}.quote-table-wrap{overflow:auto}.quote-items-table{width:100%;border-collapse:collapse;min-width:1050px}.quote-items-table th{text-align:left;font-size:10px;color:#78877e;background:#f5f8f6;padding:9px 7px;white-space:nowrap}.quote-items-table td{padding:6px;border-bottom:1px solid #edf1ee}.quote-items-table input,.quote-items-table select{min-width:80px;padding:7px 6px;font-size:11px}.quote-items-table td:nth-child(2) input{min-width:180px}.quote-items-table td:nth-child(1) select{min-width:115px}.quote-items-table .quote-row-total{font-weight:700;color:#2d6249;white-space:nowrap}.quote-items-table td:last-child button{padding:5px 10px;color:#a13d3d}.quote-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.quote-summary>div{background:#f6f8f6;border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:6px}.quote-summary span{font-size:11px;color:#77877d}.quote-summary strong{font-size:16px;color:#3e5f4c}.quote-summary .quote-total{background:#eaf4ee}.quote-summary .quote-total strong{font-size:19px;color:#19734d}.quote-print-note{display:none}.quote-client-total{display:block;font-size:24px;color:#1d704d;margin:14px 0 4px}.quote-client-summary{padding:10px 0}
@media(max-width:1000px){.quote-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-editor-grid{grid-template-columns:1fr}.quote-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.quote-hero{align-items:flex-start;flex-direction:column}.quote-hero .actions{width:100%;flex-wrap:wrap}.quote-metrics{gap:9px}.quote-metrics article{padding:13px}.quote-metrics article>strong{font-size:22px}.quote-card-grid{grid-template-columns:1fr}.quote-panel{padding:15px}.quote-filters{flex-wrap:wrap}.quote-filters label{flex-basis:100%}.quote-form-grid{grid-template-columns:1fr}.quote-form-grid .wide{grid-column:auto}.quote-lines-head{align-items:flex-start;flex-direction:column}.quote-summary{grid-template-columns:1fr 1fr}.quote-summary>div{padding:10px}}
@media print{body{background:#fff!important}.sidebar,header,.workspace-footer,#toast,.quote-hero .actions,.quote-assumptions,.quote-lines-head .actions,.quote-items-table th:last-child,.quote-items-table td:last-child,.quote-editor .quote-header-fields input,.quote-editor .quote-header-fields select,.quote-editor .quote-header-fields textarea,.quote-lines-panel{display:none!important}main{padding:0!important}.quote-editor{max-width:none!important}.quote-editor .quote-hero{display:block;margin:0 0 20px}.quote-editor .quote-hero h2{font-size:25px}.quote-editor .quote-header-fields{border:0;padding:0}.quote-editor .quote-header-fields h3{display:none}.quote-print-note{display:block!important;border:0;padding:0}.quote-print-client-summary{border:1px solid #d9e3dc;border-radius:10px;padding:18px}.quote-print-client-summary p{white-space:pre-wrap}.quote-client-total{font-size:28px}.quote-print-client-summary small{display:block;color:#66796e}.quote-editor-grid{display:block}.quote-editor .quote-header-fields .quote-form-grid{display:block}.quote-editor .quote-header-fields .quote-form-grid label{display:block;margin:10px 0;color:#405a4b}.quote-editor .quote-header-fields .quote-form-grid label::after{content:attr(data-print-value)}.quote-editor .quote-source-note{display:none}}

.quote-cost-block{border:1px solid #e0e9e3;border-radius:12px;padding:15px;margin:14px 0;background:#fff}.quote-cost-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.quote-cost-heading h4{margin:0;color:#294b39;font-size:14px}.quote-cost-heading p{margin:4px 0 0;color:#78877e;font-size:11px}.quote-cost-heading>strong{color:#19734d;white-space:nowrap}.quote-rate-table{min-width:500px}.quote-rate-table input{width:180px}

.quote-stock-picker{margin:8px 0 12px;padding:12px;background:#f4f8f5;border-radius:9px}.quote-stock-picker label{display:flex;flex-direction:column;gap:6px;color:#52685b;font-size:11px}.quote-stock-picker select{max-width:100%;min-height:40px}.quote-cost-block{break-inside:avoid}

.quote-special-row{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;align-items:end;padding:12px;border:1px solid #e2e9e4;border-radius:10px;margin:10px 0;background:#fafcfb}.quote-special-row label{display:flex;flex-direction:column;gap:5px;color:#66796e;font-size:11px}.quote-special-row input,.quote-special-row select{min-width:0;width:100%}.quote-special-remove{color:#9e4646}.quote-special-row+button{margin-top:12px}@media(max-width:800px){.quote-special-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.quote-special-row{grid-template-columns:1fr}}

/* Leitura e contraste da área de Orçamento */
.quote-workspace{color:#243a2e;font-size:14px}.quote-hero h2{font-size:30px;line-height:1.2;color:#173f2b}.quote-hero p{font-size:15px;line-height:1.5;color:#53685b}.quote-panel{padding:24px}.quote-panel h3{font-size:19px;color:#213f2e}.quote-form-grid{gap:16px}.quote-form-grid label,.quote-special-row label{font-size:13px;font-weight:600;color:#354f40;line-height:1.4}.quote-form-grid input,.quote-form-grid select,.quote-form-grid textarea,.quote-special-row input,.quote-special-row select{font-size:15px;min-height:44px;color:#263b30;border-color:#b9c9bd}.quote-form-grid textarea{min-height:auto}.quote-form-grid input:focus,.quote-form-grid select:focus,.quote-form-grid textarea:focus,.quote-special-row input:focus,.quote-special-row select:focus{outline:3px solid #b9dfc9;border-color:#328254}.quote-items-table th{font-size:12px;color:#405b49;padding:12px 9px}.quote-items-table td{font-size:13px}.quote-items-table input,.quote-items-table select{font-size:13px;min-height:40px}.quote-source-note{font-size:13px;line-height:1.55;color:#554a2e}.quote-cost-block{padding:18px 20px;margin:16px 0;border-color:#cfdcd2}.quote-cost-heading h4{font-size:16px;color:#203f2e}.quote-cost-heading p{font-size:13px;color:#53685b}.quote-cost-heading>strong{font-size:16px}.quote-special-row{padding:18px;background:#f7faf8;border-color:#ccd9cf;gap:14px}.quote-special-remove{min-height:40px;font-size:13px}.quote-special-row label{font-size:13px}.quote-metrics article>span{font-size:13px;color:#53685b}.quote-filters label{font-size:13px;color:#354f40}.quote-badge{font-size:12px}.quote-empty{font-size:14px;color:#53685b}
@media(max-width:650px){.quote-panel{padding:18px}.quote-hero h2{font-size:26px}.quote-form-grid{gap:13px}.quote-special-row{padding:14px}}

/* Composição mais compacta e quadro financeiro lateral */
.quote-editor .quote-lines-panel{display:grid;grid-template-columns:minmax(0,1fr) 330px;grid-template-rows:auto 1fr;align-items:start;gap:14px;padding:18px}.quote-editor .quote-lines-head{grid-column:1;grid-row:1;margin:0 0 2px;align-items:flex-start}.quote-editor #quoteLinesWrap{grid-column:1;grid-row:2;min-width:0}.quote-editor #quoteSummary{grid-column:2;grid-row:1 / span 2;position:sticky;top:14px;display:flex;flex-direction:column;gap:0;margin:0;padding:16px;background:#f7faf8;border:1px solid #cad9ce;border-radius:12px;min-width:0}.quote-side-title{display:flex;flex-direction:column;gap:6px;padding:0 0 12px;border-bottom:1px solid #ccd9cf}.quote-side-title span,.quote-side-final span{font-size:11px;font-weight:800;letter-spacing:.06em;color:#53695b}.quote-side-title strong{font-size:25px;color:#17663f}.quote-side-line{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:7px 0;border-bottom:1px solid #e3ebe5;font-size:12px;color:#465b4d}.quote-side-line b{font-size:12px;color:#243d2e;text-align:right;white-space:nowrap}.quote-side-section{padding:12px 0 3px;font-size:11px;font-weight:800;color:#385b45;text-transform:uppercase;letter-spacing:.04em}.quote-side-subtotal{margin-top:5px;font-weight:700}.quote-discount{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0 4px;font-size:13px;font-weight:700;color:#364f40}.quote-discount input{width:92px;min-height:38px;text-align:right}.quote-side-discount{color:#98423c}.quote-side-final{display:flex;flex-direction:column;gap:7px;margin-top:12px;padding:14px;background:#e6f3eb;border-radius:9px}.quote-side-final strong{font-size:22px;color:#17663f}.quote-cost-block{margin:10px 0;padding:14px}.quote-cost-heading{margin-bottom:7px}.quote-empty.compact{padding:10px 8px;text-align:left;font-size:13px}.quote-stock-picker{margin:8px 0;padding:10px}.quote-lines-head .actions{gap:8px;flex-wrap:wrap}.quote-lines-head button,.quote-lines-head select{min-height:42px}.quote-items-table{min-width:840px}.quote-items-table th{white-space:normal}.quote-items-table td{padding:5px}.quote-items-table input{min-width:65px}.quote-items-table td:nth-child(2) input{min-width:120px}.quote-panel{margin-bottom:12px}.quote-summary:not(.quote-summary-side){grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1120px){.quote-editor .quote-lines-panel{grid-template-columns:minmax(0,1fr) 290px}}@media(max-width:850px){.quote-editor .quote-lines-panel{grid-template-columns:1fr;grid-template-rows:auto}.quote-editor .quote-lines-head,.quote-editor #quoteLinesWrap,.quote-editor #quoteSummary{grid-column:1;grid-row:auto}.quote-editor #quoteSummary{position:static}.quote-editor .quote-lines-head{flex-direction:column}.quote-editor #quoteSummary{order:3}}

.quote-cost-block{padding:12px!important;margin:8px 0!important}.quote-cost-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}.quote-cost-heading h4{margin:0;font-size:15px}.quote-cost-heading p{font-size:12px;margin:3px 0}.quote-cost-heading button{white-space:nowrap;padding:7px 10px;font-size:12px}.quote-items-table input{min-height:34px;padding:6px;font-size:13px}.special-labor{grid-column:1/-1}.special-labor-line{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:8px;align-items:end;margin:8px 0}.quote-special-row{padding:12px!important}.quote-panel{padding:16px}.quote-empty.compact{padding:8px!important}.quote-lines-head .actions{flex-wrap:wrap} @media(max-width:700px){.special-labor-line{grid-template-columns:1fr 1fr}.special-labor-line label:first-child{grid-column:1/-1}.quote-cost-heading{flex-wrap:wrap}.quote-cost-heading button{min-height:40px}}

/* Cliente, prospect e contrato ficam juntos para comparar sem rolar a tela. */
.quote-client-id{display:none!important}.quote-client-picker{position:relative;min-width:0;z-index:4}.quote-client-picker>label{display:flex;flex-direction:column;gap:5px;color:#354f40;font-size:13px;font-weight:600;line-height:1.4}.quote-client-selection{color:#17663f;font-size:11px;font-weight:600}.quote-client-results{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:20;display:grid;gap:4px;max-height:260px;overflow:auto;padding:6px;background:#fff;border:1px solid #bed2c4;border-radius:10px;box-shadow:0 8px 22px #183d2a1c}.quote-client-results[hidden]{display:none!important}.quote-client-results button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:9px 11px;border:0;border-radius:7px;background:#f5f9f6;color:#294b39;text-align:left;cursor:pointer}.quote-client-results button:hover,.quote-client-results button:focus{background:#e8f3eb;outline:2px solid #88c49e}.quote-client-results small{color:#708477}.quote-client-results p{margin:6px 8px;color:#65786b;font-size:12px}.quote-header-fields .quote-form-grid>.quote-client-picker{grid-column:1}.quote-header-fields .quote-form-grid>label:has([name="prospect_name"]){grid-column:1/-1}.quote-header-fields .quote-form-grid>label:has([name="prospect_email"]),.quote-header-fields .quote-form-grid>label:has([name="prospect_phone"]){grid-column:auto}
@media(max-width:650px){.quote-header-fields .quote-form-grid>.quote-client-picker,.quote-header-fields .quote-form-grid>label:has([name="contract_id"]),.quote-header-fields .quote-form-grid>label:has(#specialContract){grid-column:1}.quote-client-results{max-height:220px}}

/* A coluna de remoção permanece acessível mesmo com a tabela deslocada. */
.quote-items-table th:last-child,.quote-items-table td:last-child{position:sticky;right:0;z-index:2;min-width:48px;width:48px;text-align:center;background:#fff;box-shadow:-5px 0 8px #173f2b12}.quote-items-table th:last-child{z-index:3;background:#f5f8f6}.quote-items-table td:last-child button{position:relative;z-index:4;min-width:36px;min-height:36px;padding:4px 9px;border:1px solid #ead2d0;border-radius:7px;background:#fff7f6;color:#a13d3d;font-size:18px;line-height:1}
.quote-revision-log{margin-top:0;border-color:#cbdccf;background:#fbfdfb}.quote-revision-log[hidden]{display:none!important}.quote-revision-log h3{margin-bottom:12px}.quote-revision-list{display:grid;gap:8px}.quote-revision-list article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 13px;border:1px solid #e0e9e3;border-radius:9px;background:#fff}.quote-revision-list article>div{display:grid;gap:4px}.quote-revision-list small{color:#687c6e}.quote-revision-list p{margin:0;white-space:nowrap;color:#53685b}.quote-revision-list b{color:#17663f}
.quote-material-breakdown{background:#f6faf7;border:1px solid #dce9df;border-radius:10px;padding:12px;margin:4px 0 12px}.quote-material-breakdown>strong{display:block;color:#205a3e;margin-bottom:8px}.quote-material-breakdown .quote-table-wrap{margin:0}.quote-material-breakdown table{font-size:12px}.quote-material-breakdown tfoot th{text-align:right;color:#254b37}.quote-material-breakdown small{display:block;color:#64786b;margin-top:7px}
.quote-editor-grid .quote-summary-panel{align-self:start;position:sticky;top:12px}.quote-editor-grid .quote-summary-panel h3{margin:0 0 10px}.quote-editor-grid #quoteSummary{display:flex;flex-direction:column;gap:0;margin:0;padding:14px;background:#f7faf8;border:1px solid #cad9ce;border-radius:12px;min-width:0}.quote-editor .quote-lines-panel{display:block}.quote-editor .quote-summary-panel .quote-side-title{display:flex;flex-direction:column}.quote-editor .quote-summary-panel .quote-side-final{display:flex;flex-direction:column}@media(max-width:1000px){.quote-editor-grid .quote-summary-panel{position:static}}
.quote-material-breakdown .quote-items-table{min-width:900px}.quote-material-breakdown .quote-items-table input{width:86px;min-width:70px}.quote-material-breakdown .quote-items-table td:first-child{min-width:180px}.quote-kit-card .quote-lines-head input{max-width:180px}.quote-kit-card .quote-items-table input{width:100%;min-width:70px}.quote-kit-card .quote-items-table td:last-child{min-width:100px}.quote-kit-card .quote-items-table td:last-child button{color:#a13d3d}

/* Consolidated calculation: header, costs, then a full-width financial summary. */
.quote-editor-grid{display:block!important}.quote-editor>.quote-summary-panel{position:static!important;width:100%;box-sizing:border-box}.quote-editor #quoteSummary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}.quote-hero{gap:12px;margin-bottom:14px}.quote-hero h2{font-size:23px}.quote-hero p{font-size:13px}.quote-panel{padding:14px}.quote-form-grid{gap:10px}.quote-form-grid label,.quote-special-row label{font-size:12px}.quote-form-grid input,.quote-form-grid select,.quote-form-grid textarea,.quote-special-row input,.quote-special-row select{min-height:36px;font-size:13px}.kit-master-card .quote-items-table,.quote-special-row [data-material-breakdown] .quote-items-table{width:100%;min-width:0;table-layout:fixed}.kit-master-card .quote-items-table input,.kit-master-card .quote-items-table select,.quote-special-row [data-material-breakdown] .quote-items-table input{width:100%;min-width:0;box-sizing:border-box;padding:5px;font-size:12px}.kit-master-card .quote-items-table th,.kit-master-card .quote-items-table td,.quote-special-row [data-material-breakdown] th,.quote-special-row [data-material-breakdown] td{padding:6px 4px;overflow-wrap:anywhere}.kit-master-card .quote-items-table th:first-child{width:21%}.kit-master-card .quote-items-table th:nth-child(2){width:6%}.kit-master-card .quote-items-table th:nth-child(3){width:16%}.kit-master-card .quote-items-table th:nth-child(4){width:9%}.kit-master-card .quote-items-table th:nth-child(5){width:11%}.kit-master-card .quote-items-table th:nth-child(6){width:25%}.kit-master-card .quote-items-table th:last-child{width:5%}.quote-special-row [data-material-breakdown] th:first-child{width:25%}.quote-special-row [data-material-breakdown] th:nth-child(2){width:6%}.quote-special-row [data-material-breakdown] th:last-child{width:5%}.quote-special-row [data-material-breakdown] button,.kit-master-card td button{min-width:28px;min-height:32px;padding:4px}.quote-special-row .special-labor-line{grid-template-columns:minmax(150px,2fr) repeat(5,minmax(70px,1fr)) auto;gap:7px}.quote-special-row .wide{grid-column:1/-1}.quote-special-row .actions{margin:8px 0}.quote-special-row [data-stock-picker]{width:min(350px,100%)}
@media(max-width:800px){.kit-master-card .quote-items-table{min-width:720px}.quote-special-row [data-material-breakdown] .quote-items-table{min-width:650px}.quote-special-row .special-labor-line{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-special-row .special-labor-line label:first-child{grid-column:1/-1}.quote-editor #quoteSummary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.quote-item-row [data-quote-remove],.quote-item-row [data-quote-hide-labor]{display:inline-flex!important;align-items:center;justify-content:center;width:30px!important;min-width:30px!important;height:32px!important;min-height:32px!important;padding:5px!important;border-radius:6px!important;font-size:12px!important;margin:2px!important}.quote-item-row [data-quote-hide-labor]{background:#f8faf9!important;border-color:#dae4de!important;color:#61786a!important}.quote-item-row [data-quote-remove]{background:white!important;border:1px solid #ead6d3!important;color:#ac493e!important}.quote-item-row svg{pointer-events:none;flex:none}.quote-item-row>td:last-child{width:80px;min-width:80px;white-space:nowrap;padding:5px!important;overflow:visible!important}.quote-item-row>td{padding:6px!important;vertical-align:middle}.quote-item-row input{font-size:13px!important;padding:8px!important;min-width:60px!important}.quote-item-row>td:first-child{min-width:210px;width:30%}.quote-item-row>td:nth-child(2){width:65px}.quote-item-row>td:nth-child(3){width:80px}

.quote-maintenance-picker{display:flex;gap:12px;align-items:end;margin:14px 0;padding:12px;background:#f4f8f5;border-radius:9px}.quote-maintenance-picker label{display:grid;gap:5px;font-size:12px}.quote-maintenance-picker label:first-child{flex:1}.quote-maintenance-picker [data-preventive-quantity]{max-width:100px}.quote-maintenance-picker button{white-space:nowrap}@media(max-width:600px){.quote-maintenance-picker{flex-wrap:wrap}.quote-maintenance-picker label:first-child{flex-basis:100%}}

.quote-identity-disclosure{grid-column:1/-1;border:1px solid #dce6e0;border-radius:10px;background:#fff;overflow:hidden}.quote-identity-disclosure>summary{padding:14px 18px;cursor:pointer;font-size:13px;font-weight:600;color:#2d5643}.quote-identity-disclosure .quote-panel{border:0;box-shadow:none}.quote-header-fields[hidden]{display:none!important}#quoteInstallationCalculator{font-size:12px;background:#f5f9f6;border:1px solid #dce7df}.quote-identity-disclosure:not([open]){margin-bottom:5px}

.quote-rate-table input[data-role-enabled]{width:19px!important;height:19px!important;min-height:19px!important;padding:0!important;accent-color:#12724e}.quote-rate-table th:first-child,.quote-rate-table td:first-child{width:85px;text-align:center}.quote-rate-table th:last-child{width:190px}

.quote-kit-priced-row{border:1px solid #dce7e0;border-radius:10px;padding:16px;margin:12px 0;background:white}.quote-kit-priced-fields{display:grid;grid-template-columns:minmax(240px,2fr) 110px 90px 100px 100px 120px 44px;gap:12px;align-items:center}.quote-kit-priced-fields label{display:grid;gap:6px;min-width:0;font-size:12px;color:#5b7364}.quote-kit-priced-fields input,.quote-kit-priced-fields select{width:100%;min-width:0;font-size:13px}.quote-kit-priced-fields strong{color:#1d5d40;white-space:nowrap}.quote-kit-priced-row details{margin-top:14px;font-size:12px;color:#617868}.quote-kit-priced-row summary{cursor:pointer}.quote-kit-priced-row th,.quote-kit-priced-row td{padding:8px;font-size:12px}#kitCalculatorTotals{padding:18px 0;font-size:19px;font-weight:600;color:#20553e}#kitCalculatorApply{margin-top:8px}#kitCalculatorRows [data-kit-remove]{box-sizing:border-box;width:40px;min-width:40px;height:40px;min-height:40px;padding:8px;display:inline-flex;align-items:center;justify-content:center;justify-self:center;white-space:nowrap;overflow:hidden;color:#aa483c;border:1px solid #e8d7d2;background:#fff4f3;border-radius:8px;line-height:1;font-size:0}#kitCalculatorRows [data-kit-remove] svg{display:block;flex:none;width:18px;height:18px}#kitCalculatorRows [data-kit-remove]::before,#kitCalculatorRows [data-kit-remove]::after{content:none!important}@media(max-width:1050px){.quote-kit-priced-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.quote-kit-priced-fields label:first-child{grid-column:1/-1}}@media(max-width:550px){.quote-kit-priced-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quote-kit-priced-row{padding:12px}}

/* Each cost group closes with its own subtotal, after every item and hidden-role detail. */
.quote-cost-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.quote-cost-subtotal{display:flex;align-items:baseline;justify-content:flex-end;gap:14px;margin-top:12px;padding:12px 14px;border-top:1px solid #d7e4db;border-radius:0 0 8px 8px;background:#f3f8f5;color:#355d48}
.quote-cost-subtotal>span{font-size:13px;font-weight:600}
.quote-cost-subtotal>strong{font-size:16px;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right;color:#17663f}
@media(max-width:600px){.quote-cost-subtotal{gap:10px;padding:12px 10px}.quote-cost-subtotal>strong{font-size:15px}}

.quote-editor #quoteSummary.quote-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;position:static;padding:0;border:0;background:transparent}
#quoteSummary .quote-summary-group{min-width:0;padding:14px 16px;background:#f7faf8;border:1px solid #dce7df;border-radius:10px}
#quoteSummary .quote-summary-group h4{margin:0 0 8px;font-size:14px;color:#254d37}
#quoteSummary .quote-side-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0;padding:9px 0;background:transparent;border-radius:0;font-size:13px}
#quoteSummary .quote-side-line b{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
#quoteSummary .quote-summary-details{margin-top:10px;font-size:12px;color:#496453}
#quoteSummary .quote-summary-details summary{cursor:pointer;font-weight:600}
#quoteSummary .quote-summary-bottom{grid-column:1/-1;display:flex;flex-direction:row;background:transparent;border-radius:0;justify-content:space-between;align-items:flex-end;gap:24px;border-top:1px solid #dce7df;padding-top:14px}
#quoteSummary .quote-summary-discount{width:min(360px,100%)}
#quoteSummary .quote-discount{display:flex;align-items:center;justify-content:space-between;padding:0;margin:0;gap:16px}
#quoteSummary .quote-discount input{width:90px;min-height:38px;text-align:right}
#quoteSummary .quote-side-final{margin:0;padding:14px 18px;min-width:220px;text-align:right;border-radius:9px;background:#e6f3eb}
#quoteSummary .quote-side-final strong{font-variant-numeric:tabular-nums;font-size:25px}
@media(max-width:650px){.quote-editor #quoteSummary.quote-summary{grid-template-columns:1fr}#quoteSummary .quote-summary-bottom{flex-direction:column;align-items:stretch;gap:14px}#quoteSummary .quote-summary-discount{width:100%}#quoteSummary .quote-side-final{min-width:0}}

/* v3.152: labelled, touch-friendly memory actions, scoped to this toolbar. */
.quote-hero:has(.quote-toolbar){align-items:flex-start;flex-wrap:wrap}
.quote-workspace .quote-toolbar{display:flex;flex-wrap:wrap;gap:8px;width:100%}
.quote-workspace .quote-toolbar .quote-toolbar-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:0;min-height:44px;height:auto;padding:10px 12px;border:1px solid #ccd8d2;border-radius:9px;background:#fff;color:#455e52;font-size:13px;line-height:1.3;white-space:normal}
.quote-toolbar-action svg{flex:0 0 20px}.quote-toolbar-action span{display:inline!important;position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip-path:none!important}
.quote-workspace .quote-toolbar .quote-action-primary{background:#147650;color:#fff;border-color:#147650}
.quote-workspace .quote-toolbar .quote-action-open{background:#eef5fb;color:#245e88;border-color:#cbdfea}
.quote-workspace .quote-toolbar button:hover{filter:brightness(.95)}
.quote-workspace .quote-toolbar button:focus-visible{outline:3px solid #147650;outline-offset:3px}
@media(max-width:600px){.quote-workspace .quote-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.quote-workspace .quote-toolbar .quote-toolbar-action{width:100%;justify-content:flex-start}.quote-toolbar #quoteNew{grid-column:1/-1;grid-row:1}}
.quote-item-row>td:nth-child(4){width:84px;min-width:84px}.quote-item-row [data-key="days"]{width:76px;min-width:68px}.quote-days-na{display:block;text-align:center;color:#9aa9a0}.quote-special-row .special-labor-line{grid-template-columns:minmax(150px,2fr) repeat(6,minmax(70px,1fr)) auto;gap:7px}
@media(max-width:800px){.quote-special-row .special-labor-line{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v3.156.309: resumo consolidado enviado à proposta. */
.quote-proposal-output>p{color:#5f7468;line-height:1.55}.quote-proposal-output>label{display:grid;gap:7px;margin:12px 0}.quote-proposal-output textarea{width:100%;box-sizing:border-box;min-height:82px;border:1px solid #cbdad2;border-radius:8px;padding:11px;font:inherit}.quote-proposal-output-grid{display:grid;grid-template-columns:minmax(140px,220px) minmax(180px,1fr);gap:16px;align-items:end}.quote-proposal-output-grid label{display:grid;gap:7px}.quote-proposal-output-grid input{min-height:44px;box-sizing:border-box;width:100%;padding:10px;border:1px solid #cbdad2;border-radius:8px}.quote-proposal-final{padding:12px 16px;border-radius:10px;background:#eaf5ef}.quote-proposal-final span,.quote-proposal-final strong{display:block}.quote-proposal-final strong{margin-top:5px;font-size:22px;color:#176447}@media(max-width:600px){.quote-proposal-output-grid{grid-template-columns:1fr}}

.quote-kit-priced-fields{grid-template-columns:minmax(200px,2fr) 140px 130px 150px 90px 90px 140px 44px}.quote-kit-gas-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.quote-kit-gas-tools small{color:#617868}.quote-kit-gas-tools strong{color:#1d5d40}.quote-kit-gas-panel{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px;align-items:end;margin-top:12px;padding:12px;border-radius:9px;background:#f5f8f5}.quote-kit-gas-panel label{display:grid;gap:6px;font-size:12px;color:#5b7364}.quote-kit-gas-panel input{min-width:0;width:100%}.quote-kit-gas-panel>strong{align-self:center;color:#1d5d40}@media(max-width:1050px){.quote-kit-priced-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.quote-kit-gas-panel{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.quote-kit-priced-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-kit-gas-panel{grid-template-columns:1fr}}

.quote-legacy-gas-row{background:#fff8e9;color:#755d34}.quote-legacy-gas-row [data-m-name]{text-decoration:line-through}.quote-legacy-gas-row::after{content:none}

/* Compact icon-only delete control and prevent text injection/vertical wrapping. */
#kitCalculatorRows .quote-kit-priced-fields{grid-template-columns:minmax(200px,2fr) 140px 130px 150px 90px 90px 140px 44px}
#kitCalculatorRows .quote-kit-remove{box-sizing:border-box!important;display:grid!important;place-items:center!important;justify-self:center!important;align-self:center!important;flex:none!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0!important;white-space:nowrap!important;word-break:normal!important;overflow:hidden!important;writing-mode:horizontal-tb!important;font-size:0!important;line-height:1!important;color:#aa483c!important;border:1px solid #e8d7d2!important;background:#fff4f3!important;border-radius:8px!important}
#kitCalculatorRows .quote-kit-remove svg{display:block!important;flex:none!important;width:18px!important;height:18px!important}
#kitCalculatorRows .quote-kit-remove::before,#kitCalculatorRows .quote-kit-remove::after{content:none!important}

/* Compact memory editor actions: icons stay visible and descriptions are available on hover/focus. */
.quote-editor .quote-compact-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.quote-editor .quote-compact-actions .quote-toolbar-action{position:relative;display:inline-grid;place-items:center;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:9px}
.quote-editor .quote-compact-actions .quote-toolbar-action span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.quote-editor .quote-compact-actions .quote-toolbar-action:hover,.quote-editor .quote-compact-actions .quote-toolbar-action:focus-visible{transform:translateY(-1px);box-shadow:0 3px 10px #163d2b24}
.quote-labor-overtime-table{min-width:1180px}
.quote-labor-overtime-table input{min-width:76px}
.quote-labor-overtime-table .quote-hours-weighted{font-weight:750;color:#175f42;text-align:center;white-space:nowrap}
@media(max-width:600px){.quote-editor .quote-compact-actions{display:flex;justify-content:flex-end;gap:6px}.quote-editor .quote-compact-actions .quote-toolbar-action{width:40px;min-width:40px;height:40px;min-height:40px}}

/* The memory index toolbar uses the same compact icon treatment as the editor. */
.quote-workspace .quote-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.quote-workspace .quote-toolbar .quote-toolbar-action{display:inline-grid;place-items:center;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:0}
.quote-workspace .quote-toolbar .quote-toolbar-action span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.quote-workspace .quote-toolbar .quote-toolbar-action:hover,.quote-workspace .quote-toolbar .quote-toolbar-action:focus-visible{transform:translateY(-1px);box-shadow:0 3px 10px #163d2b24}
@media(max-width:600px){.quote-workspace .quote-toolbar{display:flex!important;justify-content:flex-start}.quote-workspace .quote-toolbar .quote-toolbar-action{width:40px;min-width:40px;height:40px;min-height:40px;padding:0;justify-content:center!important}}

/* Memória de cálculo: ações compactas com rótulos curtos e hierarquia por função. */
.quote-editor .quote-compact-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.quote-editor .quote-compact-actions .quote-toolbar-action{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;width:auto!important;min-width:0!important;height:42px!important;min-height:42px!important;padding:8px 11px!important;border-radius:9px}
.quote-editor .quote-compact-actions .quote-toolbar-action span{position:static!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;clip:auto!important;white-space:nowrap!important;font-size:12px;font-weight:650}
.quote-editor .quote-compact-actions .quote-action-print{background:#f4eafd!important;color:#6b35a2!important;border-color:#ddc4f2!important}
.quote-editor .quote-compact-actions .quote-action-approve{background:#e7f3ff!important;color:#215e91!important;border-color:#c5dced!important}
.quote-editor .quote-compact-actions .quote-action-primary{background:#176749!important;color:#fff!important;border-color:#176749!important}
.quote-editor .quote-compact-actions #quoteBack{background:#f1f4f5!important;color:#435963!important;border-color:#d4dfe2!important}
.quote-editor .quote-lines-head{align-items:center}
.quote-editor #quoteKitCalculator{white-space:nowrap;background:#e6f4eb;color:#155d3c;border-color:#b6dcc4}
.quote-workspace .quote-toolbar .quote-toolbar-action{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;width:auto!important;min-width:0!important;height:auto!important;min-height:44px;padding:10px 12px!important}
.quote-workspace .quote-toolbar .quote-toolbar-action span{position:static!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;clip:auto!important;white-space:normal!important}
.quote-workspace .quote-toolbar .quote-action-open{background:#eef5fb;color:#245e88;border-color:#cbdfea}
.quote-workspace .quote-toolbar .quote-action-primary{background:#147650;color:#fff;border-color:#147650}
@media(max-width:600px){.quote-editor .quote-compact-actions{justify-content:flex-start}.quote-editor .quote-compact-actions .quote-toolbar-action{width:auto!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:7px 9px!important}.quote-editor .quote-compact-actions .quote-toolbar-action span{font-size:11px}.quote-workspace .quote-toolbar{display:flex!important;flex-wrap:wrap}.quote-workspace .quote-toolbar .quote-toolbar-action{width:auto!important;justify-content:flex-start!important}}


/* HH cost composition: keep columns and row actions inside the available viewport. */
.quote-labor-overtime-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.quote-labor-overtime-table th,.quote-labor-overtime-table td{box-sizing:border-box;overflow-wrap:anywhere}
.quote-labor-overtime-table th:nth-child(1),.quote-labor-overtime-table td:nth-child(1){width:27%!important;min-width:0!important}
.quote-labor-overtime-table th:nth-child(2),.quote-labor-overtime-table td:nth-child(2){width:5%!important;min-width:0!important}
.quote-labor-overtime-table th:nth-child(3),.quote-labor-overtime-table td:nth-child(3),.quote-labor-overtime-table th:nth-child(4),.quote-labor-overtime-table td:nth-child(4),.quote-labor-overtime-table th:nth-child(5),.quote-labor-overtime-table td:nth-child(5){width:7%!important;min-width:0!important}
.quote-labor-overtime-table th:nth-child(6),.quote-labor-overtime-table td:nth-child(6){width:6%!important;min-width:0!important}
.quote-labor-overtime-table th:nth-child(7),.quote-labor-overtime-table td:nth-child(7){width:7%!important;min-width:0!important}
.quote-labor-overtime-table th:nth-child(8),.quote-labor-overtime-table td:nth-child(8),.quote-labor-overtime-table th:nth-child(9),.quote-labor-overtime-table td:nth-child(9){width:6%!important;min-width:0!important}
.quote-labor-overtime-table th:nth-child(10),.quote-labor-overtime-table td:nth-child(10){width:8%!important;min-width:0!important}
.quote-labor-overtime-table th:nth-child(11),.quote-labor-overtime-table td:nth-child(11){width:14%!important;min-width:78px!important;max-width:180px!important}
.quote-labor-overtime-table input,.quote-labor-overtime-table select{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;padding-left:8px!important;padding-right:8px!important}
.quote-labor-overtime-table .quote-row-total{white-space:normal!important;overflow-wrap:anywhere;font-size:12px}
.quote-labor-overtime-table td:last-child{position:sticky;right:0;z-index:2;background:#f1f7f3;white-space:nowrap;box-shadow:-5px 0 8px #183d2b12;text-align:center;padding-left:4px!important;padding-right:4px!important}
.quote-labor-overtime-table th:last-child{position:sticky;right:0;z-index:3;background:#f7faf8}
.quote-labor-overtime-table td:last-child [data-quote-hide-labor],.quote-labor-overtime-table td:last-child [data-quote-remove]{display:inline-grid!important;place-items:center!important;vertical-align:middle;box-sizing:border-box!important;width:34px!important;min-width:34px!important;height:36px!important;min-height:36px!important;margin:0 2px!important;padding:0!important}
@media(max-width:1050px){.quote-labor-overtime-table{min-width:980px!important}.quote-labor-overtime-table th:last-child,.quote-labor-overtime-table td:last-child{width:80px!important;min-width:80px!important;max-width:80px!important}}
.quote-proposal-output{border:2px solid #128153!important;background:#f0f9f4!important;padding:24px!important;margin:24px 0!important;border-radius:12px}.quote-proposal-output h3{color:#08633f;margin:0 0 16px!important;font-size:19px}.memory-output-scroll{overflow-x:auto;margin:20px 0}.memory-output-scroll table{width:100%;min-width:1080px;border-collapse:collapse}.memory-output-scroll th{text-align:left;padding:12px 8px;background:#dcefe3;color:#194d36}.memory-output-scroll td{padding:12px 8px;vertical-align:top}.memory-output-scroll td:first-child{min-width:230px}.memory-output-scroll td:nth-child(2){min-width:260px}.memory-output-scroll input,.memory-output-scroll textarea,.memory-output-scroll select{box-sizing:border-box;width:100%;min-width:75px}.memory-output-scroll td:last-child{min-width:130px;white-space:nowrap}.memory-output-controls{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.memory-output-controls label{display:grid;gap:8px}.memory-output-status{color:#08633f;font-weight:600;margin:16px 0}.quote-proposal-output .proposal-line-results{position:static;max-height:240px;overflow:auto}

/* 3.156.435 - Editor unico, barra inferior mobile e status visivel */
.quote-editor .quote-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.quote-editor-status{display:inline-flex;align-items:center;margin:9px 0 0;padding:6px 11px;border:1px solid #bcd7c7;border-radius:999px;background:#edf7f1;color:#175b3e;font-size:12px;font-weight:750}
.quote-mobile-footer .quote-compact-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.quote-share-approval{background:#146a48!important;color:white!important;border:1px solid #146a48!important;border-radius:9px;padding:10px 14px;font-weight:700}
.quote-link-dialog{width:min(calc(100vw - 24px),420px);max-width:420px;border:0;border-radius:12px;padding:16px;box-shadow:0 18px 80px #152d2355}
.quote-link-dialog::backdrop{background:#12241b99}
.quote-link-dialog input{width:100%;padding:12px;border:1px solid #a6bcb0;border-radius:8px;margin-top:8px}
.quote-link-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
@media(max-width:700px){
 .quote-editor{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important;max-width:100%;overflow-x:clip}
 .quote-editor .quote-hero{display:block;padding:12px 4px 14px}
 .quote-editor .quote-hero h2{font-size:clamp(22px,6vw,30px);margin:5px 0}
 .quote-editor .quote-hero p{font-size:13px;margin:5px 0}
 .quote-editor .quote-panel{padding:14px!important;max-width:100%;min-width:0}
 .quote-editor .quote-editor-grid,.quote-editor .quote-form-grid{grid-template-columns:minmax(0,1fr)!important}
 .quote-editor input,.quote-editor textarea,.quote-editor select{max-width:100%;box-sizing:border-box}
 .quote-editor .quote-mobile-footer{position:fixed;bottom:0;left:0;right:0;z-index:1200;background:#fff;border-top:1px solid #d7e2dc;box-shadow:0 -5px 22px #173b2822;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))}
 .quote-editor .quote-mobile-footer .quote-compact-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important;justify-content:stretch!important}
 .quote-editor .quote-mobile-footer .quote-toolbar-action,.quote-editor .quote-mobile-footer .quote-share-approval{width:100%!important;min-width:0!important;max-width:100%;min-height:49px!important;height:auto!important;padding:7px 3px!important;display:flex!important;flex-direction:column;gap:3px!important;align-items:center;justify-content:center;font-size:10px!important;line-height:1.15;white-space:normal;text-align:center}
 .quote-editor .quote-mobile-footer .quote-toolbar-action span{font-size:10px!important;line-height:1.15;white-space:normal}
 .quote-editor .quote-mobile-footer #quoteBack,.quote-editor .quote-mobile-footer #quoteRevisions,.quote-editor .quote-mobile-footer #quoteCreateProposal{display:none!important}
 .quote-editor .quote-mobile-footer #quoteShareApproval{grid-column:span 2}
 .quote-editor .quote-mobile-footer #quoteSave{grid-column:span 1}
 .quote-editor .quote-mobile-footer #quotePrint{grid-column:span 1}
}

/* 3.156.436: consistent action toolbar in the single MC listing */
.gj-mc-row-actions{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start;flex-wrap:nowrap!important;gap:6px;width:max-content;max-width:none;margin:0;padding:2px 0}
.gj-mc-row-actions .gj-mc-row-action{display:inline-flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:64px;min-height:54px;padding:7px 5px!important;margin:0!important;border:1px solid #dbe7df;border-radius:9px;background:#f7faf8;color:#225b43;font-size:11px!important;line-height:1.15;white-space:nowrap;box-shadow:none}
.gj-mc-row-actions .gj-mc-row-action span{display:block!important;font-size:11px!important;white-space:nowrap}
.gj-mc-row-actions .gj-mc-row-action svg{display:block!important;flex-shrink:0}
.gj-mc-row-actions .gj-mc-row-delete{color:#a33b3b;background:#fff8f8;border-color:#eed9d9}
.gj-mc-row-actions .gj-mc-row-action:disabled{opacity:.45;cursor:not-allowed}
.quote-proposal-group table td:last-child{min-width:0;vertical-align:middle}
@media(max-width:767px){.gj-mc-row-actions{gap:5px}.gj-mc-row-actions .gj-mc-row-action{min-width:59px;min-height:52px;padding:6px 4px!important}.quote-proposal-group .gj-mc-row-actions{width:max-content}}

/* 3.156.437 — shared five-action pattern in editor and listing */
.gj-mc-row-actions{display:grid!important;grid-template-columns:repeat(5,minmax(55px,1fr));width:100%!important;min-width:290px;gap:5px!important}
.gj-mc-row-actions .gj-mc-row-action{min-width:0!important;width:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;padding:8px 3px!important;white-space:normal!important;font-size:11px!important;line-height:1.2!important}
.gj-mc-row-approve{background:#e5f4eb!important;color:#176b43!important}
.gj-mc-row-delete,.quote-editor #quoteDelete{color:#a43c3c!important}
.quote-editor .quote-mobile-footer .quote-compact-actions{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important}
.quote-editor .quote-mobile-footer #quoteShareApproval{grid-column:auto!important}
.quote-editor .quote-mobile-footer #quoteSave{grid-column:auto!important}
.quote-editor .quote-mobile-footer #quotePrint{grid-column:auto!important}
.quote-editor .quote-mobile-footer .quote-toolbar-action{min-width:0!important;width:100%!important;font-size:10px!important;padding:7px 2px!important}
@media(max-width:700px){.quote-editor{padding-bottom:calc(116px + env(safe-area-inset-bottom,0px))!important}}

/* 3.156.440: icon-only toolbar, no text overflow, stable mobile footer */
.quote-editor .quote-compact-actions .quote-toolbar-action,.quote-editor .quote-mobile-footer .quote-compact-actions .quote-toolbar-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;overflow:hidden!important}
.quote-editor .quote-compact-actions .quote-toolbar-action span,.quote-editor .quote-mobile-footer .quote-compact-actions .quote-toolbar-action span,.gj-mc-row-actions .gj-mc-row-action span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.quote-editor .quote-mobile-footer .quote-compact-actions{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;justify-content:space-between!important;width:100%!important;overflow-x:auto!important;scrollbar-width:none}
.quote-editor .quote-mobile-footer .quote-compact-actions::-webkit-scrollbar{display:none}
.quote-editor .quote-mobile-footer{box-sizing:border-box!important;max-width:100vw!important;overflow:hidden!important}
.gj-mc-row-actions{display:flex!important;flex-wrap:nowrap!important;gap:5px!important;width:max-content!important;min-width:0!important}
.gj-mc-row-actions .gj-mc-row-action{position:relative!important;display:inline-flex!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;overflow:hidden!important}
.quote-kit-bottom{border-top:1px solid #dce7df;margin-top:18px;padding-top:16px}
.quote-kit-bottom h3{margin:0 0 12px}
.quote-client-picker~.client-picker-tools,.quote-header-fields .client-picker-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
@media(max-width:700px){.quote-editor{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}.quote-editor .quote-mobile-footer .quote-compact-actions .quote-toolbar-action{flex-basis:38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:40px!important}}

/* 3.156.441: definitive mobile action row, client controls and cost sections */
.quote-proposal-group .gj-mc-row-actions,.gj-mc-row-actions{justify-content:flex-end!important;align-items:center!important;max-width:100%!important;width:100%!important;min-width:0!important;overflow:visible!important;gap:5px!important}
.gj-mc-row-actions .gj-mc-row-action{flex:0 0 38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important}
.gj-mc-row-actions-label,.gj-mc-actions-label{display:none!important}
.quote-kit-bottom{border:1px solid #d2e1d7!important;border-radius:12px!important;padding:16px!important;margin:16px 0!important;background:#fff!important}
.quote-summary-panel{min-width:0!important}
.quote-summary-group{padding:10px 0!important}
.quote-summary-group h4{margin:0 0 8px!important}
.quote-client-picker .client-picker-profile,.quote-header-fields .client-picker-profile{display:inline-grid!important;place-items:center!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;vertical-align:middle!important;font-size:0!important}
.quote-header-fields .client-picker-refresh{display:inline-flex!important;vertical-align:middle!important;margin-right:8px!important}
@media(max-width:700px){
 .quote-editor .quote-mobile-footer{position:fixed!important;left:0!important;right:0!important;bottom:calc(env(safe-area-inset-bottom,0px) + 14px)!important;width:100%!important;max-width:100%!important;z-index:80!important;padding:8px 64px 8px 10px!important;box-sizing:border-box!important;background:#fff!important;border-top:1px solid #d9e5dd!important;box-shadow:0 -5px 18px #173c2920!important}
 .quote-editor .quote-mobile-footer .quote-compact-actions{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:3px!important;width:100%!important;min-width:0!important;overflow-x:auto!important}
 .quote-editor .quote-mobile-footer .quote-compact-actions .quote-toolbar-action{flex:0 0 35px!important;width:35px!important;min-width:35px!important;max-width:35px!important;height:38px!important;min-height:38px!important;padding:0!important}
 .quote-editor{padding-bottom:calc(130px + env(safe-area-inset-bottom,0px))!important}
 .quote-editor .quote-panel,.quote-editor .quote-lines-panel{max-width:100%!important;box-sizing:border-box!important}
 .quote-editor .quote-summary-panel{margin-bottom:20px!important}
 .quote-proposal-group .gj-mc-row-actions{padding-right:3px!important}
}

/* 3.156.442 — mesma barra no editor independente e na janela do CRM */
@media(max-width:700px){
 dialog.crm-memory-window .quote-editor .quote-mobile-footer{position:fixed!important;bottom:calc(env(safe-area-inset-bottom,0px) + 12px)!important;left:8px!important;right:8px!important;width:calc(100vw - 16px)!important;z-index:2140!important;padding:8px 56px 8px 8px!important;border:1px solid #d7e4dc!important;border-radius:12px!important}
 dialog.crm-memory-window .quote-editor{padding-bottom:135px!important}
 dialog.crm-memory-window #view{overscroll-behavior:contain}
 .quote-editor .quote-mobile-footer{padding-right:78px!important}
 .quote-editor .quote-mobile-footer .quote-compact-actions{overflow-x:auto!important;scrollbar-width:none!important}
 .quote-editor .quote-mobile-footer .quote-compact-actions .quote-toolbar-action{flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:40px!important}
 .gj-mc-row-actions{justify-content:flex-start!important;overflow-x:auto!important;max-width:100%!important}
 .quote-summary-panel{overflow-wrap:anywhere!important}
}

/* v3.156.443: prévia HTML responsiva em todos os contextos */
.gj-mc-draft-dialog{width:min(900px,96vw);max-width:96vw;max-height:92dvh;border:1px solid #d1e1d7;border-radius:14px;padding:0;color:#19372b;background:#fff}
.gj-mc-draft-dialog::backdrop{background:#102b20a6}
.gj-mc-draft-dialog>header{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;padding:12px 18px;background:#f5faf7;border-bottom:1px solid #d5e3da;z-index:2}
.gj-mc-draft-dialog>header button{min-width:40px;min-height:40px}
.gj-mc-draft-dialog>main{padding:18px;overflow:auto;max-height:calc(92dvh - 65px)}
.gj-mc-draft-notice{font-size:13px;color:#607368}
.gj-mc-draft-table{width:100%;border-collapse:collapse;font-size:13px}
.gj-mc-draft-table th,.gj-mc-draft-table td{padding:9px;border-bottom:1px solid #e3eae5;text-align:left}
.gj-mc-draft-total{margin-top:16px;font-size:13px}
@media(max-width:650px){.gj-mc-draft-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.gj-mc-draft-dialog>main{max-height:calc(100dvh - 65px);padding:12px}.gj-mc-draft-table{font-size:11px}}

/* 3.156.444: o CRM utiliza a mesma barra e os mesmos botoes do editor. */
.proposal-memory-window .quote-proposal-unified-actions{display:block!important;box-sizing:border-box!important;background:#fff!important;border-top:1px solid #d7e4dc!important;padding:8px 72px 8px 10px!important;z-index:2140!important}
.proposal-memory-window .quote-proposal-unified-actions .quote-compact-actions{display:flex!important;align-items:center!important;gap:5px!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none!important}
.proposal-memory-window .quote-proposal-unified-actions .quote-compact-actions .quote-toolbar-action{flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;padding:0!important}
@media(max-width:700px){.proposal-memory-window .quote-proposal-unified-actions{position:sticky!important;bottom:0!important;width:100%!important;max-width:100%!important;padding:7px 72px 7px 8px!important}.proposal-memory-window .quote-proposal-unified-actions .quote-compact-actions .quote-toolbar-action{flex-basis:36px!important;min-width:36px!important;width:36px!important}}

@media (max-width: 700px) {
 .quote-editor .quote-mobile-footer #quoteBack { display: inline-flex !important; }
 body:has(.quote-editor) #floatingChat { bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; }
 .quote-editor .quote-mobile-footer,
 dialog.crm-memory-window .quote-editor .quote-mobile-footer { padding-inline: 8px !important; }
}

/* Editor actions retain their accessible names and native tooltips. */
html body .quote-compact-actions button.quote-toolbar-action[aria-label] > span {
 display:none!important;
}
html body .quote-compact-actions button.quote-toolbar-action[aria-label] {
 display:inline-grid!important;place-items:center!important;grid-template-columns:1fr!important;
 gap:0!important;padding:0!important;white-space:nowrap!important;
}
