/* Products & Pricing page: rules that differ from or add to the shared styles.css.
   Load after styles.css. Generated from the former products.css fork (2026-10-15). */
*{box-sizing:border-box}
.home-topbar-right{margin-left:auto;display:flex;align-items:center;gap:12px;color:#17365d;font-size:13px}
@media(max-width:760px){
.home-topbar-right #homeDate{display:none}
}
.pricing-comparison-grid{display:grid;gap:12px;margin-top:12px}
.scenario-markup-control{justify-content:flex-start;min-width:0}
.markup-manual-wrap{min-width:0}
.markup-manual-wrap>span{text-align:left;color:#617189;font-size:11px;font-weight:800}
.pricing-summary-sidebar .charge-tax-controls {
  min-width: 0;
}
@media (min-width: 1051px){
.product-table tbody { padding: 10px !important; }
.product-table tr {
    display: grid !important;
    grid-template-columns: 42px repeat(30, minmax(0, 1fr)) !important;
    column-gap: 4px !important;
    row-gap: 8px !important;
    align-items: end !important;
    padding: 10px !important;
    margin: 0 0 10px !important;
  }
.product-table tr > td {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
  }
.product-table tr > td:nth-child(1) { grid-column: 1 !important; grid-row: 1 !important; }
.product-table tr > td:nth-child(2) { grid-column: 2 / span 5 !important; grid-row: 1 !important; }
.product-table tr > td:nth-child(3) { grid-column: 7 / span 5 !important; grid-row: 1 !important; }
.product-table tr > td:nth-child(4) { grid-column: 12 / span 5 !important; grid-row: 1 !important; }
.product-table tr > td:nth-child(5) { grid-column: 17 / span 4 !important; grid-row: 1 !important; }
.product-table tr > td:nth-child(6) { grid-column: 21 / span 2 !important; grid-row: 1 !important; }
.product-table tr > td:nth-child(7) { grid-column: 23 / span 2 !important; grid-row: 1 !important; }
.product-table tr > td:nth-child(8) { grid-column: 25 / span 2 !important; grid-row: 1 !important; }
.product-table tr > td:nth-child(9) { grid-column: 27 / span 5 !important; grid-row: 1 !important; }
.product-table tr > td:nth-child(10) { grid-column: 2 / span 10 !important; grid-row: 2 !important; }
.product-table tr > td:nth-child(11) { grid-column: 12 / span 2 !important; grid-row: 2 !important; }
.product-table tr > td:nth-child(12) { grid-column: 14 / span 2 !important; grid-row: 2 !important; }
.product-table tr > td:nth-child(13) { grid-column: 16 / span 4 !important; grid-row: 2 !important; }
.product-table tr > td:nth-child(14) { grid-column: 20 / span 3 !important; grid-row: 2 !important; }
.product-table tr > td:nth-child(15) { grid-column: 23 / span 4 !important; grid-row: 2 !important; }
.product-table tr > td:nth-child(17) { grid-column: 27 / span 5 !important; grid-row: 2 !important; }
.product-table tr > td:nth-child(16) {
    grid-column: 26 / span 6 !important;
    grid-row: 3 !important;
    justify-self: stretch !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 58px !important;
    padding: 7px 12px !important;
  }
.product-table tr > td:nth-child(16)::before { margin-bottom: 5px !important; }
.product-table tr > td:nth-child(6) select,
  .product-table tr > td:nth-child(7) input,
  .product-table tr > td:nth-child(8) input,
  .product-table tr > td:nth-child(11) input,
  .product-table tr > td:nth-child(12) select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
.product-table tr > td:nth-child(13) input,
  .product-table tr > td:nth-child(14) input,
  .product-table tr > td:nth-child(15) input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
.product-table tr > td:nth-child(n+2):nth-child(-n+15) input,
  .product-table tr > td:nth-child(n+2):nth-child(-n+15) select,
  .product-table tr > td:nth-child(10) textarea {
    box-sizing: border-box !important;
    height: 36px !important;
    min-height: 36px !important;
  }
.product-table tr > td:nth-child(10) textarea {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: 36px !important;
    resize: none !important;
    line-height: 22px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
.product-table .row-actions {
    min-height: 36px !important;
    height: 36px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 5px !important;
  }
.product-table .line-attachment,
  .product-table .duplicate-line,
  .product-table .delete-line {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    font-size: 17px !important;
  }
.product-table .row-number {
    align-self: end !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }
}
.product-description-input,
.product-table tr > td:nth-child(10) input,
.product-table tr > td:nth-child(10) textarea{
  box-sizing:border-box!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  padding-top:6px!important;
  padding-bottom:6px!important;
  line-height:22px!important;
  margin:0!important;
  resize:none!important
}
.quick-tools-card,
.pricing-comparison-grid,
.pricing-scenario,
.scenario-head,
.scenario-markup-control,
.markup-manual-wrap{
  min-width:0!important;
  box-sizing:border-box!important
}
.pricing-comparison-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important
}
.pricing-scenario{width:100%!important}
.scenario-markup-control{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important
}
.scenario-markup-control>select,
.markup-manual-wrap{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important
}
.scenario-markup-control>select{
  height:36px!important;
  min-height:36px!important;
  padding:5px 26px 5px 9px!important;
  box-sizing:border-box!important
}
.markup-manual-wrap{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 14px!important;
  align-items:center!important;
  gap:4px!important
}
.markup-manual-wrap .markup-entry{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:36px!important;
  min-height:36px!important;
  box-sizing:border-box!important;
  margin:0!important
}
.markup-manual-wrap>span{
  width:14px!important;
  min-width:14px!important
}
.pricing-summary-sidebar .charge-tax-row,
.pricing-summary-sidebar .charge-tax-controls{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important
}
.pricing-summary-sidebar .charge-tax-controls{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  width:100%!important
}
.pricing-summary-sidebar .charge-tax-controls #installationCharge,
.pricing-summary-sidebar .charge-tax-controls #installationTaxable{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:36px!important;
  min-height:36px!important;
  box-sizing:border-box!important;
  margin:0!important
}
@media (min-width:1051px) and (max-width:1400px){
.product-table tr{
    grid-template-columns:42px repeat(4,minmax(125px,1fr))!important;
    column-gap:14px!important;
    row-gap:10px!important;
    align-items:end!important
  }
.product-table tr>td:nth-child(1){grid-column:1!important;grid-row:1!important}
.product-table tr>td:nth-child(2){grid-column:2!important;grid-row:1!important}
.product-table tr>td:nth-child(3){grid-column:3!important;grid-row:1!important}
.product-table tr>td:nth-child(4){grid-column:4!important;grid-row:1!important}
.product-table tr>td:nth-child(5){grid-column:5!important;grid-row:1!important}
.product-table tr>td:nth-child(6){grid-column:2!important;grid-row:2!important}
.product-table tr>td:nth-child(7){grid-column:3!important;grid-row:2!important}
.product-table tr>td:nth-child(8){grid-column:4!important;grid-row:2!important}
.product-table tr>td:nth-child(9){grid-column:5!important;grid-row:2!important}
.product-table tr>td:nth-child(10){grid-column:2/span 2!important;grid-row:3!important}
.product-table tr>td:nth-child(11){grid-column:4!important;grid-row:3!important}
.product-table tr>td:nth-child(12){grid-column:5!important;grid-row:3!important}
.product-table tr>td:nth-child(13){grid-column:2!important;grid-row:4!important}
.product-table tr>td:nth-child(14){grid-column:3!important;grid-row:4!important}
.product-table tr>td:nth-child(15){grid-column:4!important;grid-row:4!important}
.product-table tr>td:nth-child(16){
    grid-column:5!important;
    grid-row:4!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    min-height:36px!important;
    padding:0!important;
    justify-self:stretch!important
  }
.product-table tr>td:nth-child(17){
    grid-column:2/-1!important;
    grid-row:5!important
  }
.product-table tr>td:nth-child(n+2):nth-child(-n+15) input,
  .product-table tr>td:nth-child(n+2):nth-child(-n+15) select,
  .product-table tr>td:nth-child(10) textarea{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important
  }
.product-table .row-actions{
    min-width:0!important;
    width:100%!important;
    justify-content:flex-start!important
  }
}
@media (max-width:760px){
.pricing-comparison-grid{grid-template-columns:1fr!important}
}
@media (max-width:430px){
.scenario-markup-control{grid-template-columns:1fr!important}
}
.remote-variant-modal[hidden]{display:none!important}
.remote-variant-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px
}
.remote-variant-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.5)
}
.remote-variant-dialog{
  position:relative;
  width:min(560px,100%);
  max-height:calc(100vh - 40px);
  display:flex;
  flex-direction:column;
  background:#fff;
  border-radius:14px;
  box-shadow:0 24px 70px rgba(15,23,42,.24);
  padding:18px 20px;
  box-sizing:border-box
}
.remote-variant-copy{
  display:flex;
  flex-direction:column;
  min-height:0;
  flex:1 1 auto
}
.remote-variant-copy h3{
  margin:0 0 4px;
  font-size:17px
}
.remote-variant-copy p{
  margin:0 0 10px;
  color:#64748b;
  font-size:13px
}
.remote-variant-options{
  display:flex;
  flex-direction:column;
  gap:4px;
  overflow-y:auto;
  min-height:0;
  flex:1 1 auto;
  padding:2px 4px 2px 0;
  overscroll-behavior:contain
}
.remote-variant-option{
  width:100%;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  border:1px solid #dbe3ea;
  background:#fff;
  border-radius:8px;
  padding:7px 12px;
  font:inherit;
  cursor:pointer
}
.remote-variant-option:hover,
.remote-variant-option:focus-visible{
  border-color:#94a3b8;
  background:#f8fafc;
  outline:none
}
.remote-variant-option strong{
  font-size:14px;
  font-weight:600;
  line-height:1.3
}
.remote-variant-option span{
  flex:0 0 auto;
  color:#64748b;
  font-size:12.5px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}
.remote-variant-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
  flex:0 0 auto
}
.change-fixed-variant{
  margin-top:6px;
  border:0;
  background:transparent;
  padding:0;
  font:inherit;
  font-size:12px;
  text-decoration:underline;
  cursor:pointer
}
.product-table input[readonly],
.product-table textarea[readonly],
.product-table select:disabled{
  background:#f8fafc;
  cursor:not-allowed
}
.remote-variant-option:disabled{
  cursor:not-allowed;
  opacity:.55;
  background:#f8fafc
}
.remote-variant-option:disabled span{
  white-space:normal;
  text-align:right
}
@media (max-width:480px){
  .remote-variant-modal{padding:10px}
  .remote-variant-dialog{max-height:calc(100vh - 20px);padding:14px}
  .remote-variant-option{flex-direction:column;align-items:flex-start;gap:2px}
  .remote-variant-option span{white-space:normal}
}
.installation-undercharge-warning{
  border:1px solid #f0b7b7;
  background:#fff4f4;
  border-radius:9px;
  padding:9px 11px;
  color:#8f1d1d;
  display:grid;
  gap:3px;
  font-size:11px;
  line-height:1.35
}
.installation-undercharge-warning[hidden]{display:none!important}
.installation-undercharge-warning strong{font-size:11px}
.installation-undercharge-warning span{color:#9b3434}
.installation-warning-modal[hidden]{display:none!important}
.installation-warning-modal{
  position:fixed;
  inset:0;
  z-index:1500;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px
}
.installation-warning-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.58)
}
.installation-warning-dialog{
  position:relative;
  width:min(520px,100%);
  background:#fff;
  border-radius:16px;
  box-shadow:0 24px 70px rgba(15,23,42,.28);
  padding:26px;
  box-sizing:border-box;
  border-top:6px solid #b42318
}
.installation-warning-icon{
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff0f0;
  color:#b42318;
  border:2px solid #f0b7b7;
  font-size:26px;
  font-weight:900;
  margin-bottom:14px
}
.installation-warning-copy h3{
  margin:0 0 9px;
  color:#7f1d1d;
  font-size:20px
}
.installation-warning-copy p{
  margin:0 0 10px;
  color:#334155;
  line-height:1.5
}
.installation-warning-copy .installation-warning-note{
  color:#7f1d1d;
  font-weight:700
}
.installation-warning-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:20px
}
