.hip-hero{min-height:540px !important;background-color:#fff !important;background-image:linear-gradient(90deg,rgba(255,255,255,1) 0%,rgba(255,255,255,.99) 31%,rgba(255,255,255,.9) 50%,rgba(255,255,255,.54) 68%,rgba(255,255,255,.1) 100%),url('hip-roof-hero-v2.webp') !important;background-repeat:no-repeat !important;background-size:cover !important;background-position:center center !important}.hip-calc .field-hint{margin:12px 0 0;color:var(--muted);font-size:13px;font-weight:700;line-height:1.45}body[data-roof-mode="manual"] .not-manual{display:none!important}body[data-roof-mode="manual"] .manual-group{display:block!important}.hip-mini-results{grid-template-columns:repeat(3,1fr)}.hip-tabs button img{width:42px!important;height:42px!important;object-fit:contain!important;flex:0 0 42px!important;filter:drop-shadow(0 6px 10px rgba(18,145,58,.14))!important}.roof-features img[src*="metal-tile-feature-icons"]{width:72px;height:72px;object-fit:contain;flex:0 0 72px;filter:none}.hip-calc .estimate-card-v8{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}.hip-calc .estimate-card-v8 h2{display:block!important;width:100%!important;margin:0 0 14px!important}.hip-calc .estimate-card-v8 .table-wrap{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;overflow-x:hidden!important;border:1px solid #e2eee6;border-radius:16px}.hip-calc .estimate-card-v8 table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse}.hip-calc .estimate-card-v8 th,.hip-calc .estimate-card-v8 td{padding:10px 9px!important;font-size:13px!important;line-height:1.35!important}.hip-calc .estimate-card-v8 th:nth-child(1),.hip-calc .estimate-card-v8 td:nth-child(1){width:34%!important}.hip-calc .estimate-card-v8 th:nth-child(2),.hip-calc .estimate-card-v8 td:nth-child(2){width:22%!important}.hip-calc .estimate-card-v8 th:nth-child(3),.hip-calc .estimate-card-v8 td:nth-child(3){width:13%!important}.hip-calc .estimate-card-v8 th:nth-child(4),.hip-calc .estimate-card-v8 td:nth-child(4){width:31%!important}@media(max-width:1180px){.hip-hero{background-size:cover!important;background-position:74% center!important}.hip-mini-results{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.hip-hero{background-image:linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.96) 48%,rgba(255,255,255,.78) 100%),url('hip-roof-hero-v2.webp')!important;background-size:auto 100%!important;background-position:72% bottom!important;padding-bottom:210px!important}.hip-tabs button img{width:38px!important;height:38px!important;flex-basis:38px!important}.hip-mini-results{grid-template-columns:1fr}.roof-features img[src*="metal-tile-feature-icons"]{width:58px;height:58px;flex-basis:58px}.hip-calc .estimate-card-v8 .table-wrap{overflow-x:visible!important}}@media(max-width:430px){.hip-hero{background-size:auto 92%!important;background-position:74% bottom!important;padding-bottom:180px!important}.hip-tabs button img{width:34px!important;height:34px!important;flex-basis:34px!important}}

/* v210: adaptive detailed estimate tables */
.estimate-card .table-wrap,
.estimate-card .table-scroll-v173{
  width:100% !important;
  max-width:100% !important;
  overflow-x:auto !important;
  -webkit-overflow-scrolling:touch;
}
.estimate-card table{
  width:100% !important;
  table-layout:auto !important;
  border-collapse:collapse;
}
.estimate-card th,
.estimate-card td{
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  line-height:1.35;
}
.estimate-card th:nth-child(1),.estimate-card td:nth-child(1){width:auto !important;min-width:170px;}
.estimate-card th:nth-child(2),.estimate-card td:nth-child(2){width:auto !important;min-width:135px;}
.estimate-card th:nth-child(3),.estimate-card td:nth-child(3){width:auto !important;min-width:74px;}
.estimate-card th:nth-child(4),.estimate-card td:nth-child(4){width:auto !important;min-width:240px;}
.calc-export-actions-v178{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 14px;
}
.calc-export-actions-v178 span{
  font-weight:850;
  color:#43564b;
  margin-right:2px;
}
.calc-export-actions-v178 .btn{
  min-height:40px;
  padding:0 16px;
  white-space:nowrap;
}
@media (max-width: 980px){
  .estimate-card table{min-width:720px !important;}
  .estimate-card .table-wrap,
  .estimate-card .table-scroll-v173{padding-bottom:4px;}
}
@media (max-width: 640px){
  .estimate-card .table-wrap,
  .estimate-card .table-scroll-v173{
    overflow-x:visible !important;
    border:0 !important;
    border-radius:0 !important;
    margin-top:12px !important;
  }
  .estimate-card table,
  .estimate-card thead,
  .estimate-card tbody,
  .estimate-card tr,
  .estimate-card th,
  .estimate-card td{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  .estimate-card thead{display:none !important;}
  .estimate-card tbody{display:grid !important;gap:10px;}
  .estimate-card tr{
    border:1px solid #e2eee6 !important;
    border-radius:16px !important;
    background:#fff !important;
    padding:10px 12px !important;
    box-shadow:0 8px 20px rgba(16,31,23,.04);
  }
  .estimate-card td{
    border:0 !important;
    padding:6px 0 !important;
    display:grid !important;
    grid-template-columns:minmax(116px,38%) minmax(0,1fr) !important;
    gap:8px !important;
    align-items:start !important;
    font-size:14px !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
  }
  .estimate-card td::before{
    content:attr(data-label);
    font-weight:850;
    color:#52675b;
    min-width:0;
  }
  .calc-export-actions-v178{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .calc-export-actions-v178 span{
    grid-column:1/-1;
    margin:0;
  }
  .calc-export-actions-v178 .btn{
    width:100%;
  }
}
@media (max-width: 430px){
  .estimate-card td{
    grid-template-columns:1fr !important;
    gap:3px !important;
  }
  .calc-export-actions-v178{
    grid-template-columns:1fr;
  }
}

/* v210b: adaptive detailed estimate tables for all calculator estimate blocks */
:where(.estimate-card,.estimate-box,.slab-estimate) .table-wrap,
:where(.estimate-card,.estimate-box,.slab-estimate) .table-scroll-v173{
  width:100% !important;
  max-width:100% !important;
  overflow-x:auto !important;
  -webkit-overflow-scrolling:touch;
}
:where(.estimate-card,.estimate-box,.slab-estimate) table{
  width:100% !important;
  table-layout:auto !important;
  border-collapse:collapse;
}
:where(.estimate-card,.estimate-box,.slab-estimate) th,
:where(.estimate-card,.estimate-box,.slab-estimate) td{
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  line-height:1.35;
}
:where(.estimate-card,.estimate-box,.slab-estimate) th:nth-child(1),:where(.estimate-card,.estimate-box,.slab-estimate) td:nth-child(1){width:auto !important;min-width:170px;}
:where(.estimate-card,.estimate-box,.slab-estimate) th:nth-child(2),:where(.estimate-card,.estimate-box,.slab-estimate) td:nth-child(2){width:auto !important;min-width:135px;}
:where(.estimate-card,.estimate-box,.slab-estimate) th:nth-child(3),:where(.estimate-card,.estimate-box,.slab-estimate) td:nth-child(3){width:auto !important;min-width:74px;}
:where(.estimate-card,.estimate-box,.slab-estimate) th:nth-child(4),:where(.estimate-card,.estimate-box,.slab-estimate) td:nth-child(4){width:auto !important;min-width:140px;}
:where(.estimate-card,.estimate-box,.slab-estimate) th:nth-child(5),:where(.estimate-card,.estimate-box,.slab-estimate) td:nth-child(5){width:auto !important;min-width:110px;}
@media (max-width: 980px){
  :where(.estimate-card,.estimate-box,.slab-estimate) table{min-width:720px !important;}
  :where(.estimate-card,.estimate-box,.slab-estimate) .table-wrap,
  :where(.estimate-card,.estimate-box,.slab-estimate) .table-scroll-v173{padding-bottom:4px;}
}
@media (max-width: 640px){
  :where(.estimate-card,.estimate-box,.slab-estimate) .table-wrap,
  :where(.estimate-card,.estimate-box,.slab-estimate) .table-scroll-v173{
    overflow-x:visible !important;
    border:0 !important;
    border-radius:0 !important;
    margin-top:12px !important;
  }
  :where(.estimate-card,.estimate-box,.slab-estimate) table,
  :where(.estimate-card,.estimate-box,.slab-estimate) thead,
  :where(.estimate-card,.estimate-box,.slab-estimate) tbody,
  :where(.estimate-card,.estimate-box,.slab-estimate) tfoot,
  :where(.estimate-card,.estimate-box,.slab-estimate) tr,
  :where(.estimate-card,.estimate-box,.slab-estimate) th,
  :where(.estimate-card,.estimate-box,.slab-estimate) td{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  :where(.estimate-card,.estimate-box,.slab-estimate) thead{display:none !important;}
  :where(.estimate-card,.estimate-box,.slab-estimate) tbody{display:grid !important;gap:10px;}
  :where(.estimate-card,.estimate-box,.slab-estimate) tr{
    border:1px solid #e2eee6 !important;
    border-radius:16px !important;
    background:#fff !important;
    padding:10px 12px !important;
    box-shadow:0 8px 20px rgba(16,31,23,.04);
  }
  :where(.estimate-card,.estimate-box,.slab-estimate) td{
    border:0 !important;
    padding:6px 0 !important;
    display:grid !important;
    grid-template-columns:minmax(116px,38%) minmax(0,1fr) !important;
    gap:8px !important;
    align-items:start !important;
    font-size:14px !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
  }
  :where(.estimate-card,.estimate-box,.slab-estimate) td::before{
    content:attr(data-label);
    font-weight:850;
    color:#52675b;
    min-width:0;
  }
  :where(.estimate-card,.estimate-box,.slab-estimate) tfoot tr{
    background:#f4fcf6 !important;
    font-weight:900;
  }
}
@media (max-width: 430px){
  :where(.estimate-card,.estimate-box,.slab-estimate) td{
    grid-template-columns:1fr !important;
    gap:3px !important;
  }
}
