.quote-constructor .labor-rates{grid-column:1/-1;margin-top:12px;padding:14px;background:#f4f8fc;border:1px solid #a5bccc;border-radius:12px;min-width:0}
.quote-constructor .labor-rates h4{font-size:19px;font-weight:900;margin:0 0 4px;color:#133553}
.quote-constructor .labor-rates>p{font-size:14px;color:#46617a;margin:0 0 10px;line-height:1.5}
.quote-constructor .labor-rate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.quote-constructor .labor-rate-card{background:#fff;padding:10px;border:1px solid #b6c5d2;border-radius:8px;min-width:0}
.quote-constructor .labor-rate-card.labor-selected{border-color:#176bc5;background:#f9fdff;box-shadow:inset 0 0 0 1px #176bc5}
.quote-constructor .labor-head{display:flex;gap:9px;align-items:flex-start;cursor:pointer;font-size:15px!important;font-weight:800;color:#193c59}
.quote-constructor .labor-head input{width:18px;height:18px;margin-top:3px;flex:none}
.quote-constructor .labor-head span{flex:1;min-width:0}
.quote-constructor .labor-head strong{color:#1264b1;font-size:15px;white-space:nowrap}
.quote-constructor .labor-details{margin-top:10px;border-top:1px solid #d5e0e9;padding-top:10px}
.quote-constructor .labor-details[hidden],.quote-constructor .labor-area[hidden],.quote-constructor .labor-dimensions[hidden]{display:none!important}
.quote-constructor .labor-details label{display:flex;flex-direction:column;gap:5px;color:#24435f;font-size:14px;font-weight:750}
.quote-constructor .labor-details input,.quote-constructor .labor-details select{width:100%;min-width:0;min-height:38px;border-radius:6px;border:1px solid #8199b1;background:#fff;color:#173450;font-size:16px;padding:6px;box-sizing:border-box}
.quote-constructor .labor-inputs{display:flex;gap:9px;margin-bottom:8px;flex-wrap:wrap}
.quote-constructor .labor-inputs label{flex:1;min-width:150px}
.quote-constructor .labor-area{max-width:230px}
.quote-constructor .labor-dimensions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.quote-constructor .labor-output{margin-top:9px;font-size:16px;font-weight:900;color:#16613b}
.quote-constructor .estimate-subtotals{display:grid;gap:5px;font-size:15px;margin:8px 0 13px}
.quote-constructor .estimate-subtotals>div{display:flex;justify-content:space-between;gap:8px}
.quote-constructor .estimate-note{color:#785b32;font-size:13px;line-height:1.45}
@media(max-width:800px){.quote-constructor .labor-rate-grid{grid-template-columns:1fr}}
@media(max-width:480px){.quote-constructor .labor-head{flex-wrap:wrap}.quote-constructor .labor-head strong{margin-left:28px}.quote-constructor .labor-dimensions{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact and readable labor price cards on phones / narrow tablets.
   Price occupies its own row and never competes with the work name. */
@media (max-width:800px){
 .quote-constructor .labor-rate-card{
   box-sizing:border-box;
   width:100%;
   min-width:0;
   padding:13px 12px;
 }
 .quote-constructor .labor-head{
   display:grid;
   grid-template-columns:22px minmax(0,1fr);
   grid-template-areas:"check title" ". price";
   column-gap:11px;
   row-gap:7px;
   align-items:start;
   flex-wrap:nowrap;
   width:100%;
   min-width:0;
   font-size:16px!important;
   line-height:1.4;
 }
 .quote-constructor .labor-head input.labor-select{
   grid-area:check;
   width:22px;
   height:22px;
   margin:2px 0 0;
   flex:initial;
   align-self:start;
 }
 .quote-constructor .labor-head > span{
   grid-area:title;
   display:block;
   width:auto;
   min-width:0;
   margin:0;
   line-height:1.35;
   white-space:normal;
   overflow-wrap:break-word;
   word-break:normal;
   font-size:16px;
   font-weight:800;
 }
 .quote-constructor .labor-head > strong{
   grid-area:price;
   display:block;
   width:fit-content;
   max-width:100%;
   min-width:0;
   margin:0;
   padding:0;
   justify-self:start;
   font-size:18px;
   line-height:1.3;
   font-weight:850;
   white-space:normal;
   overflow-wrap:break-word;
   text-align:left;
 }
 .quote-constructor .labor-rate-grid{grid-template-columns:minmax(0,1fr)}
 .quote-constructor .labor-rates{max-width:100%;min-width:0}
}
@media(max-width:480px){
 .quote-constructor .labor-head > strong{margin-left:0}
 .quote-constructor .labor-dimensions{grid-template-columns:minmax(0,1fr)}
}
