/* Quote editor overlap fix (go-live 96). Loaded last, after draw-sigma.css.
   1) Parts list toolbar: design-system.css forced a 40px height while the buttons wrapped
      to a second row, so the second row sat on top of the first part. Let it grow.
   2) Part editor header: tabs + Edit geometry / Split / Duplicate / Remove wrapped inside
      a fixed 42px grid row and ended up hidden behind the tab row and the review banner.
      Use a column layout so the header, any banner and the body each take their own height. */

#modal .quote-tree-modal-box .quote-tree-shell .quote-tree-head{
  height:auto!important;min-height:40px!important;
  flex-wrap:wrap!important;align-items:center!important;
  row-gap:4px!important;column-gap:6px!important;padding-top:5px!important;padding-bottom:5px!important;
  flex:0 0 auto!important;box-sizing:border-box;
}
#modal .quote-tree-modal-box .quote-tree-shell .quote-tree-nav{
  display:flex!important;flex-wrap:wrap!important;gap:4px!important;
  flex:1 1 100%!important;margin-left:0!important;justify-content:flex-start!important;
}
#modal .quote-tree-modal-box .quote-tree-shell .quote-tree-nav .btn{flex:0 0 auto;white-space:nowrap}

#modal .quote-tree-modal-box .quote-fixed-part-editor{
  display:flex!important;flex-direction:column!important;
  grid-template-rows:none!important;height:100%!important;min-height:0!important;overflow:hidden!important;
}
#modal .quote-tree-modal-box .quote-fixed-part-editor>.quote-fixed-editor-head{
  flex:0 0 auto!important;height:auto!important;min-height:42px!important;
  align-items:center!important;row-gap:4px!important;box-sizing:border-box;
  position:relative;z-index:2;
}
#modal .quote-tree-modal-box .quote-fixed-part-editor>.quote-duplicate-resolution,
#modal .quote-tree-modal-box .quote-fixed-part-editor>.quote-review-explanation{flex:0 0 auto!important}
#modal .quote-tree-modal-box .quote-fixed-part-editor>.quote-fixed-editor-body{
  flex:1 1 auto!important;min-height:0!important;
}
#modal .quote-tree-modal-box .quote-fixed-editor-head .quote-editor-actions{
  display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;
  align-items:center!important;gap:4px!important;max-width:none!important;min-width:0!important;
}
#modal .quote-tree-modal-box .quote-fixed-editor-head .quote-editor-actions .btn{
  flex:0 0 auto;white-space:nowrap;height:auto!important;min-height:24px;
}
@media (min-width:1101px){
  #modal .quote-tree-modal-box .quote-fixed-editor-head{
    grid-template-columns:minmax(200px,1fr) max-content minmax(0,auto)!important;
  }
  #modal .quote-tree-modal-box .quote-fixed-editor-head .quote-editor-actions{max-width:420px!important}
}
@media (max-width:1100px){
  #modal .quote-tree-modal-box .quote-fixed-editor-head{grid-template-columns:minmax(0,1fr)!important}
  #modal .quote-tree-modal-box .quote-fixed-editor-head .quote-editor-actions{justify-content:flex-start!important;max-width:none!important}
  #modal .quote-tree-modal-box .quote-editor-tabs{width:auto!important;overflow-x:auto}
}

/* go-live 99: bigger New RFQ / quote editor window. The window was fixed at 1500 x 920 (inline style in
   views1.js) and app.css capped it at 900px high, so the right-hand panel was cut off. Use nearly the
   whole screen instead. !important beats the inline size. */
#modal:has(.quote-tree-modal-box){padding:8px!important}
#modal .box.quote-tree-modal-box{
  width:min(2600px,99vw)!important;height:97vh!important;max-height:97vh!important;
}
