/* RFQ workspace: compact, readable quotation review. */
#dialog.rfq-dialog{
  box-sizing:border-box;width:min(860px,calc(100vw - 32px));max-width:860px;
  max-height:min(92dvh,940px);padding:0;overflow:hidden;
  border:1px solid #cfe0ef;border-radius:24px;background:#f8fbff;
  box-shadow:0 30px 90px rgba(21,56,91,.25)
}
#dialog.rfq-dialog #entity-form{
  display:flex;flex-direction:column;min-width:0;max-height:min(92dvh,940px);
  padding:0;overflow:hidden
}
#dialog.rfq-dialog .modal-head{
  flex:none;align-items:center;margin:0;padding:18px 28px;
  border-bottom:1px solid #e2edf6;background:#fff
}
#dialog.rfq-dialog .modal-head h2{margin:4px 0 0;font-size:20px;line-height:1.4;letter-spacing:-.02em;color:#143d64}
#dialog.rfq-dialog .modal-head .eyebrow{font-size:11px;color:#3574b2}
#dialog.rfq-dialog #form-fields{
  display:block;flex:1 1 auto;min-height:0;max-height:none;overflow:auto;
  padding:23px 28px 30px;scrollbar-gutter:stable;background:#f8fbff
}
#dialog.rfq-dialog .form-error{flex:none;margin:0 28px}
#dialog.rfq-dialog .modal-actions{
  flex:none;align-items:center;gap:12px;margin:0;padding:15px 28px;
  border-top:1px solid #e0ebf4;background:#fff
}
#dialog.rfq-dialog .rfq-shell{display:grid;gap:20px;min-width:0;padding:0}
#dialog.rfq-dialog .rfq-hero{
  display:grid;grid-template-columns:minmax(0,1fr) 158px;align-items:center;gap:24px;
  min-width:0;padding:22px 25px;border:1px solid #d5e7f7;border-radius:20px;
  background:linear-gradient(115deg,#f0f7ff 0%,#fff 58%);box-shadow:0 10px 30px rgba(30,96,157,.06)
}
#dialog.rfq-dialog .rfq-hero-copy{min-width:0}
#dialog.rfq-dialog .rfq-hero .eyebrow{display:block;font-size:11px;font-weight:800;color:#3977b2;letter-spacing:.05em}
#dialog.rfq-dialog .rfq-hero h3{margin:7px 0 6px;font-size:25px;line-height:1.35;color:#103e69;overflow-wrap:anywhere}
#dialog.rfq-dialog .rfq-hero p{margin:0;font-size:12px;line-height:1.85;color:#637f98}
#dialog.rfq-dialog .rfq-progress,
#dialog.rfq-dialog .rfq-progress.complete{
  display:grid;gap:7px;align-content:center;min-width:0;min-height:108px;padding:14px 16px;
  border:1px solid #a9d0f4;border-radius:17px;
  background:linear-gradient(145deg,#1268bf,#328ce0);color:#fff;text-align:start;
  box-shadow:0 10px 22px rgba(28,109,190,.17)
}
#dialog.rfq-dialog .rfq-progress>span{font-size:11px;font-weight:700;opacity:.92}
#dialog.rfq-dialog .rfq-progress b{display:block;direction:ltr;text-align:start;font-size:27px;line-height:1.15;font-weight:850;letter-spacing:0}
#dialog.rfq-dialog .rfq-progress b small{font-size:17px;font-weight:600;opacity:.78}
#dialog.rfq-dialog .rfq-progress-track{height:6px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.28)}
#dialog.rfq-dialog .rfq-progress-track i{display:block;height:100%;border-radius:inherit;background:#fff}
#dialog.rfq-dialog .rfq-checklist{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:9px;
  margin:0;padding:0;list-style:none
}
#dialog.rfq-dialog .rfq-checklist li{
  display:flex;align-items:center;gap:9px;min-width:0;min-height:52px;padding:9px 12px;
  border:1px solid #e0e9f1;border-radius:13px;background:#fff;color:#8297aa
}
#dialog.rfq-dialog .rfq-checklist li b{font-size:11px;font-weight:750;line-height:1.45}
#dialog.rfq-dialog .rfq-checklist .rfq-step-number{
  display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;
  border-radius:9px;background:#edf3f8;color:#7894aa;font-size:12px;font-weight:800
}
#dialog.rfq-dialog .rfq-checklist li.current{border-color:#92c1ee;background:#eef6ff;color:#195a96;box-shadow:0 4px 14px rgba(24,104,185,.08)}
#dialog.rfq-dialog .rfq-checklist li.current .rfq-step-number{background:#1d78cf;color:#fff}
#dialog.rfq-dialog .rfq-checklist li.done{border-color:#cbdff2;background:#f4f9fe;color:#286692}
#dialog.rfq-dialog .rfq-checklist li.done .rfq-step-number{background:#dcecfb;color:#176db4}
#dialog.rfq-dialog .rfq-flow-actions{
  display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0;
  padding:16px 18px;border:1px solid #d8e8f5;border-radius:16px;
  background:#fff;box-shadow:0 5px 20px rgba(35,89,135,.04)
}
#dialog.rfq-dialog .rfq-flow-copy{display:grid;gap:4px;min-width:160px;margin:0;margin-inline-end:auto}
#dialog.rfq-dialog .rfq-flow-copy small{font-size:10px;color:#7993a7}
#dialog.rfq-dialog .rfq-flow-copy strong{font-size:14px;color:#194d78}
#dialog.rfq-dialog .rfq-flow-hint{font-size:11px;color:#668198;line-height:1.6}
#dialog.rfq-dialog .rfq-flow-actions .btn{margin:0;min-height:38px}
#dialog.rfq-dialog .rfq-flow-actions .notice{flex-basis:100%;margin:2px 0 0}
#dialog.rfq-dialog .rfq-section-head{
  display:flex;align-items:end;justify-content:space-between;gap:12px;padding:0 2px
}
#dialog.rfq-dialog .rfq-section-head .eyebrow{font-size:10px;font-weight:800;color:#3877b1}
#dialog.rfq-dialog .rfq-section-head h4{margin:5px 0 0;font-size:17px;line-height:1.4;color:#153e63}
#dialog.rfq-dialog .rfq-section-head h4 small{display:inline-block;margin-inline-start:5px;padding:3px 8px;border-radius:99px;background:#eaf2fa;color:#477aa5;font-size:10px;white-space:nowrap}
#dialog.rfq-dialog .rfq-section-head>span{max-width:280px;font-size:10px;line-height:1.6;color:#8299a9}
#dialog.rfq-dialog .rfq-quote-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
#dialog.rfq-dialog .rfq-quote-list.single{grid-template-columns:minmax(0,1fr)}
#dialog.rfq-dialog .rfq-quote-card{
  display:grid;gap:13px;min-width:0;padding:18px;border:1px solid #d8e6f1;
  border-radius:17px;background:#fff;box-shadow:0 5px 18px rgba(24,81,129,.045)
}
#dialog.rfq-dialog .rfq-quote-card.selected{border-color:#74b0df;background:#f7fbff;box-shadow:0 8px 23px rgba(29,116,191,.11)}
#dialog.rfq-dialog .rfq-quote-top{display:flex;align-items:center;gap:11px;min-width:0}
#dialog.rfq-dialog .rfq-rank{flex:none;width:32px;height:32px;border-radius:10px;background:#e9f3ff;color:#166ec3;font-size:14px}
#dialog.rfq-dialog .rfq-quote-title{min-width:0;flex:1}
#dialog.rfq-dialog .rfq-quote-title strong{display:block;font-size:14px;line-height:1.45;color:#163d60;overflow-wrap:anywhere}
#dialog.rfq-dialog .rfq-quote-title small{display:block;margin-top:3px;font-size:10px;color:#8199ac;overflow-wrap:anywhere}
#dialog.rfq-dialog .rfq-selected-badge{margin-inline-start:auto;margin-right:0;padding:5px 8px;border-radius:8px;background:#e4f0fc;color:#206ba6;font-size:10px}
#dialog.rfq-dialog .rfq-quote-detail{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 0;border-color:#eaf0f5}
#dialog.rfq-dialog .rfq-quote-detail small{font-size:10px;color:#7891a5}
#dialog.rfq-dialog .rfq-quote-detail strong{margin-top:5px;font-size:19px;color:#135189;white-space:nowrap}
#dialog.rfq-dialog .rfq-quote-detail em{font-size:10px;color:#69869c}
#dialog.rfq-dialog .rfq-file-status{display:inline-flex;align-items:center;padding:7px 10px;border-radius:9px;font-size:10px;white-space:nowrap}
#dialog.rfq-dialog .rfq-file-status.valid{background:#e7f2fc;color:#176caf}
#dialog.rfq-dialog .rfq-file-status.missing{background:#fff2df;color:#a76a1d}
#dialog.rfq-dialog .rfq-card-actions{display:flex;flex-wrap:wrap;gap:8px}
#dialog.rfq-dialog .rfq-card-actions .btn{min-height:37px;margin:0;padding:8px 12px;font-size:10px}
#dialog.rfq-dialog .rfq-edit-btn{border-color:#bbd7ed;background:#eef6fc;color:#1e679f}
#dialog.rfq-dialog .rfq-attachment-btn{max-width:100%;overflow:hidden;text-overflow:ellipsis}
#dialog.rfq-dialog .rfq-add-card{padding:20px;border:1px solid #c9e1f3;border-radius:17px;background:#f1f8ff}
#dialog.rfq-dialog .rfq-add-head{margin-bottom:16px}
#dialog.rfq-dialog .rfq-add-head strong{font-size:16px;color:#184f7d}
#dialog.rfq-dialog .rfq-add-head small{font-size:11px;line-height:1.6;color:#718fa4}
#dialog.rfq-dialog .rfq-add-grid{gap:13px}
#dialog.rfq-dialog .rfq-add-grid label{font-size:11px;color:#355d7b}
#dialog.rfq-dialog .rfq-add-grid :is(input,textarea){width:100%;min-width:0;box-sizing:border-box}
#dialog.rfq-dialog .rfq-file-field{border-color:#cbdff0}
#dialog.rfq-dialog .rfq-file-field small{display:block;margin-top:3px}
@media(max-width:700px){
  #dialog.rfq-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:17px}
  #dialog.rfq-dialog #entity-form{max-height:calc(100dvh - 12px)}
  #dialog.rfq-dialog .modal-head{padding:14px 16px}
  #dialog.rfq-dialog .modal-head h2{font-size:17px}
  #dialog.rfq-dialog #form-fields{padding:16px 15px 22px;scrollbar-gutter:auto}
  #dialog.rfq-dialog .form-error{margin-inline:15px}
  #dialog.rfq-dialog .modal-actions{padding:12px 15px}
  #dialog.rfq-dialog .rfq-shell{gap:15px}
  #dialog.rfq-dialog .rfq-hero{grid-template-columns:minmax(0,1fr);gap:13px;padding:18px}
  #dialog.rfq-dialog .rfq-hero h3{font-size:21px}
  #dialog.rfq-dialog .rfq-progress,
  #dialog.rfq-dialog .rfq-progress.complete{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:0;padding:10px 12px}
  #dialog.rfq-dialog .rfq-progress b{font-size:20px}
  #dialog.rfq-dialog .rfq-progress b small{font-size:13px}
  #dialog.rfq-dialog .rfq-progress-track{flex-basis:100%}
  #dialog.rfq-dialog .rfq-checklist{gap:6px}
  #dialog.rfq-dialog .rfq-checklist li{justify-content:center;min-height:60px;padding:8px 5px;text-align:center;flex-direction:column;gap:5px}
  #dialog.rfq-dialog .rfq-checklist li b{font-size:9px}
  #dialog.rfq-dialog .rfq-checklist .rfq-step-number{width:24px;height:24px;font-size:10px}
  #dialog.rfq-dialog .rfq-flow-actions{align-items:stretch;padding:14px}
  #dialog.rfq-dialog .rfq-flow-copy{min-width:0;flex-basis:100%;margin:0}
  #dialog.rfq-dialog .rfq-flow-actions .btn{width:100%}
  #dialog.rfq-dialog .rfq-section-head{align-items:flex-start;flex-direction:column}
  #dialog.rfq-dialog .rfq-quote-list{grid-template-columns:minmax(0,1fr)}
  #dialog.rfq-dialog .rfq-quote-card{padding:15px}
  #dialog.rfq-dialog .rfq-add-card{padding:16px}
  #dialog.rfq-dialog .rfq-add-grid{grid-template-columns:minmax(0,1fr)}
  #dialog.rfq-dialog .rfq-add-grid label.full{grid-column:auto}
}
