/* Embossing Quotation Dashboard — Section-based layout
 *
 * Row 1: Design (full width)
 * Row 2: price | 100px | 现存报价单 ; then 报价、倍率 below price column
 * Row 3: aux — 文件名 + 计算
 */

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard{
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__design{
  width:100%!important;
  min-width:0!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__design>.design-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__design .design-card-body{
  width:100%!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__body{
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
  width:100%!important;
  min-width:0!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:18px!important;
  width:fit-content!important;
  max-width:100%!important;
  min-width:0!important;
}

/* 价格 + 现存报价单：间距 100px */
#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__price-row{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  gap:100px!important;
  width:fit-content!important;
  max-width:100%!important;
  min-width:0!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__price-row>.peak-height-card,
#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main>.generator-action-card,
#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main>.multiplier-card{
  width:fit-content!important;
  max-width:min(100%,360px)!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__price-row>.existing-quotes-card{
  flex:0 1 auto!important;
  width:fit-content!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  overflow:visible!important;
}

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

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

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__price-row .existing-quotes-table th,
#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__price-row .existing-quotes-table td{
  white-space:nowrap!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__aux{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  gap:18px!important;
  width:100%!important;
  min-width:0!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__aux>.card{
  flex:0 1 auto!important;
  width:fit-content!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main .multiplier-table-wrap{
  display:table!important;
  width:fit-content!important;
  max-width:100%!important;
  min-width:max(100%,220px)!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  overflow:visible!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main .multiplier-table-wrap .multiplier-table{
  display:table!important;
  width:100%!important;
  margin:0!important;
  table-layout:auto!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main .multiplier-table-wrap .exchange-rate-status{
  display:table-caption!important;
  caption-side:bottom!important;
  width:100%!important;
  min-width:220px!important;
  max-width:100%!important;
  margin:0!important;
  padding:10px 12px 12px!important;
  box-sizing:border-box!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  text-align:left!important;
  line-height:1.5!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main .multiplier-table th,
#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main .multiplier-table td{
  width:auto!important;
  white-space:nowrap!important;
}

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

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main .peak-height-table,
#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main .peak-height-table-wrap{
  width:fit-content!important;
  max-width:100%!important;
}

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

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__aux .height-tax-card .calc-table{
  width:max-content!important;
  max-width:none!important;
  min-width:0!important;
  table-layout:auto!important;
}

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

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

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

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__aux .height-tax-card .calc-table tbody tr:nth-child(odd)>td:nth-child(3){
  background:#ffffff!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__aux .height-tax-card .calc-table tbody tr:nth-child(even)>td:nth-child(3){
  background:#f2f7fc!important;
}

#parametersSection[data-quote-backend="emboss"] .parameter-dashboard__aux .filename-card{
  max-width:min(100%,420px)!important;
}

@media (max-width:760px){
  #parametersSection[data-quote-backend="emboss"] .parameter-dashboard{
    gap:16px!important;
  }

  #parametersSection[data-quote-backend="emboss"] .parameter-dashboard__price-row,
  #parametersSection[data-quote-backend="emboss"] .parameter-dashboard__aux{
    flex-direction:column!important;
    gap:16px!important;
    width:100%!important;
  }

  #parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main{
    width:100%!important;
  }

  #parametersSection[data-quote-backend="emboss"] .parameter-dashboard__price-row>.peak-height-card,
  #parametersSection[data-quote-backend="emboss"] .parameter-dashboard__price-row>.existing-quotes-card,
  #parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main>.generator-action-card,
  #parametersSection[data-quote-backend="emboss"] .parameter-dashboard__main>.multiplier-card,
  #parametersSection[data-quote-backend="emboss"] .parameter-dashboard__aux>.card{
    width:100%!important;
    max-width:100%!important;
  }

  #parametersSection[data-quote-backend="emboss"] .parameter-dashboard__aux .height-tax-card .calc-table,
  #parametersSection[data-quote-backend="emboss"] .parameter-dashboard__price-row .existing-quotes-table{
    min-width:min(100%,480px)!important;
  }
}
