.smart-pricing-dialog{width:min(940px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);box-sizing:border-box;margin:auto;padding:0;border:1px solid #d7e0e7;border-radius:6px;background:#fff;color:#17363a;box-shadow:0 18px 65px #10252630;font:13px/1.45 'DM Sans',Arial,sans-serif;overflow:auto}
.smart-pricing-dialog::backdrop{background:#10252666}.smart-pricing-dialog>header{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid #e0e7ec;background:#fff}.smart-pricing-dialog h2{margin:0!important;font-size:18px!important;line-height:1.3!important}.smart-pricing-dialog h3{margin:0 0 10px!important;font-size:14px!important}.smart-pricing-dialog small,.smart-pricing-help{color:#6f808d}.smart-pricing-dialog>p,.smart-pricing-dialog>.smart-pricing-toolbar,.smart-pricing-dialog>[data-editor],.smart-pricing-dialog>[data-selection],.smart-pricing-dialog>[data-list],.smart-pricing-dialog>.smart-pricing-pagination{margin:10px 16px}.smart-pricing-dialog>p{font-size:12px;min-height:18px}.smart-pricing-dialog label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:500}.smart-pricing-dialog input:not([type=checkbox]),.smart-pricing-dialog select,.smart-pricing-dialog textarea{width:100%;box-sizing:border-box;min-width:0;min-height:34px;padding:7px 9px;border:1px solid #d5e0e8;border-radius:4px;background:#fff;color:#17363a;font:13px/1.4 'DM Sans',Arial,sans-serif}.smart-pricing-dialog textarea{resize:vertical}.smart-pricing-dialog button{min-height:32px;padding:6px 10px;border:1px solid #cbded5;border-radius:4px;background:white;color:#008054;font:500 12px/1.4 'DM Sans',Arial,sans-serif;cursor:pointer}.smart-pricing-dialog button:hover{background:#edf8f2}.smart-pricing-dialog button:disabled{opacity:.55;cursor:default}.smart-pricing-dialog button[type=submit]{background:#009e65;color:#fff;border-color:#009e65}.smart-pricing-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) 160px auto auto auto;align-items:end;gap:8px}.smart-pricing-list{border-top:1px solid #e1e7ed}.smart-pricing-list>article{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #e1e7ed}.smart-pricing-list>article>div:first-child{display:flex;flex-direction:column;min-width:0;gap:2px}.smart-pricing-list b{font-size:13px}.smart-pricing-list span{font-size:12px;overflow-wrap:anywhere}.smart-pricing-list small{font-size:11px}.smart-pricing-item-cost{display:flex;flex-direction:column;gap:2px}.smart-pricing-row-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.smart-pricing-pagination{display:flex;gap:8px;align-items:center;justify-content:flex-start;padding-top:3px}.smart-pricing-pagination>span{font-size:12px;color:#6f808d}.smart-pricing-pagination>label{margin-left:auto;flex-direction:row;align-items:center;gap:6px}.smart-pricing-editor,.smart-pricing-selection{border:1px solid #dbe5e9;border-radius:4px;background:#f8fafb;padding:12px}.smart-pricing-editor>footer{display:flex;gap:7px;margin-top:10px}.smart-pricing-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.smart-pricing-wide{grid-column:1/-1}.smart-pricing-help{font-size:11px;margin:8px 0}.smart-pricing-dialog details{border-top:1px solid #dce5eb;margin-top:10px;padding-top:9px}.smart-pricing-dialog summary{cursor:pointer;font-weight:600;font-size:12px}.smart-pricing-dialog summary>span{font-size:11px;font-weight:400;color:#7d8a96;margin-left:5px}.smart-pricing-dialog details[open]>summary{margin-bottom:10px}.smart-pricing-selected-title{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:9px}.smart-pricing-selected-title h3{margin-bottom:2px!important}.smart-pricing-pick-fields{display:grid;grid-template-columns:100px 40px minmax(0,1fr) auto;align-items:end;gap:10px}.smart-pricing-unit{padding-bottom:8px;font-size:12px}.smart-pricing-total{display:flex;flex-direction:column;gap:2px;align-self:center;font-size:12px}.smart-pricing-total strong{font-size:18px}.smart-pricing-total small{font-size:11px}.smart-pricing-check{flex-direction:row!important;align-items:center}.smart-pricing-check>input{margin:0}.smart-pricing-material-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 160px auto;gap:7px;align-items:end;margin-bottom:7px}.smart-pricing-empty{font-size:12px;padding:10px 0}.smart-pricing-dialog :focus-visible{outline:2px solid #45b890;outline-offset:2px}.smart-pricing-dialog [hidden]{display:none!important}
@media(max-width:700px){.smart-pricing-dialog{max-height:calc(100dvh - 16px);width:calc(100vw - 16px)}.smart-pricing-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.smart-pricing-toolbar>label:first-child{grid-column:1/-1}.smart-pricing-list>article{grid-template-columns:minmax(0,1fr) auto;gap:6px}.smart-pricing-item-cost{grid-column:1;font-size:11px}.smart-pricing-row-actions{grid-column:2;grid-row:1/3;max-width:160px}.smart-pricing-dialog input:not([type=checkbox]),.smart-pricing-dialog select,.smart-pricing-dialog textarea{font-size:16px;min-height:42px}.smart-pricing-dialog button{min-height:40px}.smart-pricing-pick-fields{grid-template-columns:90px 40px minmax(0,1fr)}.smart-pricing-pick-fields>[data-preview]{grid-column:1/-1;grid-row:2}.smart-pricing-pick-fields>[type=submit]{grid-column:3;grid-row:1}.smart-pricing-material-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.smart-pricing-material-row>label:first-child{grid-column:1/-1}.smart-pricing-fields{gap:8px}.smart-pricing-dialog>p,.smart-pricing-dialog>.smart-pricing-toolbar,.smart-pricing-dialog>[data-editor],.smart-pricing-dialog>[data-selection],.smart-pricing-dialog>[data-list],.smart-pricing-dialog>.smart-pricing-pagination{margin-left:12px;margin-right:12px}}
@media(max-width:380px){.smart-pricing-fields{grid-template-columns:minmax(0,1fr)}.smart-pricing-wide{grid-column:auto}.smart-pricing-row-actions{max-width:130px}.smart-pricing-pagination{flex-wrap:wrap}.smart-pricing-pagination>label{margin-left:0}.smart-pricing-selected-title{flex-direction:column}.smart-pricing-dialog>header{padding:11px 12px}}

.commerce-smart-group{min-width:0;margin:10px 0;padding:12px;border:1px solid #dce5eb;border-radius:4px;background:#fff}.commerce-smart-group>header{display:flex;align-items:start;justify-content:space-between;gap:12px}.commerce-smart-group>header>div{display:flex;flex-direction:column;gap:3px;min-width:0}.commerce-smart-group>header strong{font-size:14px;overflow-wrap:anywhere}.commerce-smart-group>header small{font-size:11px;color:#6d7f8d}.commerce-smart-group>header>b{font-size:14px;white-space:nowrap}.commerce-smart-group>details{margin-top:9px;border-top:1px solid #e4eaee;padding-top:8px}.commerce-smart-group>details>summary{cursor:pointer;font-size:11px;color:#617986}.commerce-smart-group .commerce-material-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.commerce-quote-contingency{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;align-items:end;margin-top:12px}.commerce-quote-contingency>label{min-width:0}.scope-located-proposal{filter:drop-shadow(0 0 4px #086ad8);stroke-linejoin:round}@media(max-width:600px){.commerce-smart-group{padding:10px}.commerce-smart-group>header{gap:8px}.commerce-smart-group>header>b{font-size:13px}.commerce-quote-contingency{grid-template-columns:1fr}.commerce-smart-group .commerce-material-actions>button{min-height:44px}}
.smart-pricing-price-warnings{padding:7px 9px;margin-top:5px;border-left:3px solid #c38923;background:#fff6df;color:#795716;font-size:11px;text-align:left}.smart-pricing-price-warnings b,.smart-pricing-price-warnings small{display:block;white-space:normal;overflow-wrap:anywhere}
