/* Double-specific parameter card compactness.
   Layout is provided by existing-quotes-layout.css so Double behaves like the
   other owner quotation dashboards instead of forcing a fixed second column. */

#parametersSection[data-quote-backend="double"] .parameter-group-grid .multiplier-card{
  width:330px!important;
  max-width:min(100%,330px)!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card{
  width:fit-content!important;
  max-width:min(100%,700px)!important;
  min-width:0!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .existing-quotes-card{
  width:fit-content!important;
  max-width:min(100%,720px)!important;
  min-width:0!important;
  overflow:hidden!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .existing-quotes-table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .existing-quotes-table{
  width:max-content!important;
  max-width:none!important;
  min-width:0!important;
  table-layout:auto!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table{
  width:max-content!important;
  min-width:min(100%,540px)!important;
  max-width:none!important;
  table-layout:auto!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table th,
#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table td{
  width:auto!important;
  max-width:none!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table td:nth-child(2),
#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table td:nth-child(3){
  text-align:center!important;
  white-space:nowrap!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table td:nth-child(4){
  min-width:220px!important;
  max-width:360px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-height:1.35!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .peak-height-table,
#parametersSection[data-quote-backend="double"] .parameter-group-grid .multiplier-table{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .peak-height-table-wrap,
#parametersSection[data-quote-backend="double"] .parameter-group-grid .multiplier-table-wrap{
  width:100%!important;
  max-width:100%!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .peak-height-table tbody tr:nth-child(even)>th,
#parametersSection[data-quote-backend="double"] .parameter-group-grid .peak-height-table tbody tr:nth-child(even)>td,
#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table tbody tr:nth-child(even)>th,
#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table tbody tr:nth-child(even)>td{
  background:#f2f7fc!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .peak-height-table tbody tr:nth-child(odd)>th,
#parametersSection[data-quote-backend="double"] .parameter-group-grid .peak-height-table tbody tr:nth-child(odd)>td,
#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table tbody tr:nth-child(odd)>th,
#parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table tbody tr:nth-child(odd)>td{
  background:#ffffff!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .generator-action-button{
  padding:11px 10px!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .generator-action-status{
  font-size:14px!important;
  line-height:1.4!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .multiplier-table th,
#parametersSection[data-quote-backend="double"] .parameter-group-grid .multiplier-table td{
  padding:9px 10px!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .multiplier-table td{
  width:78px!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .multiplier-input{
  width:72px!important;
  min-width:72px!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .exchange-rate-status{
  font-size:14px!important;
  line-height:1.35!important;
}

#parametersSection[data-quote-backend="double"] .parameter-group-grid .generator-action-buttons{
  gap:9px!important;
}

#parametersSection[data-quote-backend="double"] .filename-card .filename-value{
  width:100%!important;
  padding:11px 12px!important;
  border:1px solid #d7e5f2!important;
  border-radius:12px!important;
  background:#f7fbff!important;
  color:#123b5d!important;
  font-size:15px!important;
  font-weight:400!important;
  line-height:1.45!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  margin-bottom:9px!important;
}

#parametersSection[data-quote-backend="double"] .filename-card .filename-formula{
  font-size:15px!important;
  font-weight:400!important;
  line-height:1.45!important;
  color:#526b82!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  margin-bottom:0!important;
}

@media (max-width:760px){
  #parametersSection[data-quote-backend="double"] .parameter-group-grid .parameter-left-stack,
  #parametersSection[data-quote-backend="double"] .parameter-group-grid .multiplier-card,
  #parametersSection[data-quote-backend="double"] .parameter-group-grid .existing-quotes-card,
  #parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  #parametersSection[data-quote-backend="double"] .parameter-group-grid .height-tax-card .calc-table{
    min-width:480px!important;
  }
}
