/* Quote confirmation and institution checkout. Load after shared and audience styles. */
.quote-center, .quote-main, .quote-editor, .quote-checkout-summary { min-width: 0; }
.quote-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin: 22px 0;
}
.quote-heading .section-title { font-size: 27px; }
.quote-heading p { font-size: 13px; line-height: 1.8; color: #647997; margin-top: 8px; }
.quote-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px;
  margin: 18px 0 24px;
  border: 1px solid #dde5f2;
  border-radius: 12px;
  background: #f8faff;
  list-style: none;
}
.quote-progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  color: #788aa5;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  word-break: keep-all;
}
.quote-progress-step > span:first-child {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border: 1px solid #dfe5ef;
  border-radius: 50%;
  background: #fff;
  color: #8a99af;
  font-size: 11px;
}
.quote-progress-step.active { color: #3154be; font-weight: 750; }
.quote-progress-step.active > span:first-child { border-color: #3657cd; background: #3657cd; color: #fff; }
.quote-progress-step.done { color: #4f6f9d; }
.quote-progress-step.done > span:first-child { color: #3657cd; border-color: #d3def9; background: #eaf0ff; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: 22px; }
.quote-main { display: grid; gap: 18px; }
.quote-aside { top: 132px; font-size: 13px; line-height: 1.8; }
.quote-aside h2, .quote-aside h3 { font-size: 16px; color: #304765; line-height: 1.6; }
.quote-aside > p { color: #657b9b; margin-top: 11px; font-size: 12px; }
.quote-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #dce5f8;
  border-radius: 6px;
  background: #edf3ff;
  color: #3b5db2;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
.quote-status.expired, .quote-status.revised { border-color: #eddfbf; background: #fff8e9; color: #947231; }
.quote-status.paid { border-color: #d1e7dd; background: #edf8f2; color: #397b60; }
.quote-document {
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 25px #20365a05;
  padding: 0;
}
.quote-document-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 17px;
  padding: 26px;
  border-bottom: 1px solid #e4eaf3;
  background: linear-gradient(110deg, #f7f9ff, #fff);
}
.quote-document-header h2 { color: #253e63; font-size: 23px; line-height: 1.5; letter-spacing: -.7px; }
.quote-document-header p { color: #6d819f; font-size: 12px; line-height: 1.8; margin-top: 7px; }
.quote-reference { display: block; max-width: 100%; margin-top: 8px; color: #72839d; font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.quote-revision { color: #536fa4; font-size: 11px; font-weight: 650; padding: 4px 7px; background: #edf2fd; border: 1px solid #dbe5f8; border-radius: 5px; white-space: nowrap; }
.quote-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding: 22px 26px; }
.quote-meta-grid > div { min-width: 0; }
.quote-meta-grid dt, .quote-meta-grid small, .quote-meta-grid > div > span { display: block; color: #7a8ba4; font-size: 11px; margin-bottom: 5px; line-height: 1.6; }
.quote-meta-grid dd, .quote-meta-grid strong { display: block; margin: 0; color: #334e75; font-size: 13px; font-weight: 650; line-height: 1.8; overflow-wrap: anywhere; }
.quote-items-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border-block: 1px solid #e5eaf3; }
.quote-items { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; line-height: 1.8; }
.quote-items th { background: #f6f8fc; color: #6b7e9c; font-size: 11px; font-weight: 650; }
.quote-items th, .quote-items td { padding: 13px 18px; border-bottom: 1px solid #e8edf4; vertical-align: middle; }
.quote-items th:first-child, .quote-items td:first-child { padding-left: 26px; }
.quote-items th:last-child, .quote-items td:last-child { padding-right: 26px; }
.quote-items tr:last-child td { border-bottom: 0; }
.quote-items td { color: #4f6688; }
.quote-items td strong { color: #304a70; font-size: 13px; }
.quote-items :is(th, td):not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-items td:first-child { min-width: 160px; }
.quote-items td small { display: block; color: #7d8da5; font-size: 11px; }
.quote-totals { display: grid; gap: 13px; padding: 21px 26px; font-size: 13px; color: #687e9c; }
.quote-totals > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 9px 20px; }
.quote-totals strong { color: #3e587e; font-weight: 650; font-variant-numeric: tabular-nums; }
.quote-totals .quote-total, .quote-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-top: 18px; margin-top: 3px; border-top: 1px solid #e1e7f1; color: #304b77; font-weight: 700; }
.quote-total strong { color: #3657cd; font-size: 27px; letter-spacing: -.8px; overflow-wrap: anywhere; line-height: 1.5; }
.quote-total > span > small { display: block; color: #7a8ba4; font-size: 11px; font-weight: 450; margin-top: 4px; }
.quote-terms { display: grid; gap: 11px; padding: 20px 26px 24px; border-top: 1px solid #e9edf5; color: #6b809e; font-size: 12px; line-height: 1.85; }
.quote-terms h3 { font-size: 14px; color: #435f89; }
.quote-terms p + p { margin-top: 8px; }
.quote-terms dl { display: grid; gap: 11px; margin: 0; }
.quote-terms dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.quote-terms dt { color: #7a8ca6; }
.quote-terms dd { margin: 0; color: #4f698e; overflow-wrap: anywhere; }
.quote-expiry { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border: 1px solid #e4e9f2; border-radius: 8px; background: #f7f9fc; font-size: 12px; color: #667d9f; line-height: 1.8; }
.quote-expiry .icon { width: 16px; height: 16px; margin-top: 3px; }
.quote-expiry.expired { background: #fff8eb; border-color: #ecdbb6; color: #927032; }
.quote-accept { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; color: #536d92; font-size: 13px; line-height: 1.9; }
.quote-accept input { width: 17px; height: 17px; margin: 4px 0 0; flex: none; }
.quote-accept strong { color: #3657ad; }
.quote-payment-cta { margin-top: 18px; min-height: 46px; }
.quote-action-group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.quote-action-group .btn { min-height: 43px; font-size: 12px; }
.quote-linked-order { padding: 14px 16px; border: 1px solid #d6e6dc; border-radius: 9px; background: #f2faf5; color: #477963; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.quote-linked-order strong { color: #2e6e53; }
.quote-customer-note, .quote-seller-note, .quote-accounting-note { padding: 14px 16px; border-radius: 9px; font-size: 12px; line-height: 1.9; color: #637b9e; background: #f2f6ff; border: 1px solid #dfe7f7; word-break: keep-all; overflow-wrap: anywhere; }
.quote-customer-note strong, .quote-seller-note strong, .quote-accounting-note strong { color: #3f5e95; }
.quote-seller-note { border-color: #e5e0d5; background: #faf8f2; color: #82734e; }
.quote-seller-note strong { color: #766138; }
.quote-demo-role { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 16px; border: 1px dashed #bccbea; border-radius: 9px; background: #f7f9ff; color: #536f9f; font-size: 12px; line-height: 1.8; }
.quote-demo-role .btn { font-size: 11px; min-height: 36px; }
.quote-editor { padding: 23px; border: 1px solid #dfe5ef; border-radius: 12px; background: #fff; }
.quote-editor h2 { font-size: 18px; color: #304a70; line-height: 1.6; }
.quote-editor h3 { font-size: 14px; color: #48658d; line-height: 1.6; margin-bottom: 13px; }
.quote-editor > p { font-size: 13px; color: #6b809d; line-height: 1.8; margin-top: 7px; }
.quote-editor-grid { display: grid; gap: 12px; margin: 20px 0; }
.quote-edit-row { display: grid; grid-template-columns: minmax(170px, 1fr) 90px 135px; align-items: center; gap: 14px; padding: 14px 15px; border: 1px solid #e1e7f1; border-radius: 9px; background: #fbfcff; min-width: 0; }
.quote-edit-row > * { min-width: 0; }
.quote-edit-row label { color: #596f90; font-size: 12px; line-height: 1.7; }
.quote-edit-row label:first-child { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; color: #3b577f; }
.quote-edit-row .compare-toggle { justify-content: flex-start; white-space: normal; }
.quote-edit-row .compare-toggle strong { min-width: 0; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.quote-edit-row input[type=checkbox] { width: 17px; height: 17px; margin: 0; flex: none; }
.quote-edit-row .input { font-size: 13px; min-height: 43px; margin-top: 5px; padding: 9px 10px; }
.quote-edit-row input:disabled { background: #f0f3f7; color: #97a3b5; border-color: #e4e9f0; }
.quote-fee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 18px 0; }
.quote-fee-grid label { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: #596f90; font-size: 12px; line-height: 1.7; }
.quote-fee-grid .input { min-height: 44px; font-size: 13px; }
.quote-records { display: grid; gap: 14px; margin-top: 18px; }
.quote-card { padding: 20px; border: 1px solid #dce4f0; border-radius: 11px; background: #fff; min-width: 0; }
.quote-card-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 13px; }
.quote-card-heading h2, .quote-card-heading h3, .quote-card-heading strong { color: #344f77; font-size: 15px; line-height: 1.7; }
.quote-card p { margin-top: 8px; color: #6e829e; font-size: 12px; line-height: 1.8; }
.quote-card .quote-action-group { margin-top: 15px; }
.institution-request.quote-card { flex-wrap: wrap; }
.institution-request.quote-card > div:first-child { flex: 1 1 210px; }
.institution-request.quote-card > .quote-action-group { flex: 1 1 370px; justify-content: flex-end; margin-top: 0; }
.institution-request.quote-card > div:first-child > .quote-amount { display: block; margin: 10px 0 0; color: #3657cd; font-size: 23px; }
.quote-amount { color: #3657cd; font-size: 23px; font-weight: 800; letter-spacing: -.7px; line-height: 1.5; overflow-wrap: anywhere; }
.quote-aside > .quote-amount { color: #3657cd; font-size: 28px; font-weight: 800; line-height: 1.5; margin-top: 16px; }
.quote-history { padding-left: 20px; margin: 14px 0 0; color: #7688a3; font-size: 12px; line-height: 1.9; }
.quote-history li + li { margin-top: 7px; }
.quote-checkout-summary { background: #fff; }
.quote-summary-items { display: grid; gap: 11px; margin: 17px 0; padding-bottom: 17px; border-bottom: 1px solid #e4eaf3; }
.quote-summary-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: start; color: #6d829f; font-size: 12px; line-height: 1.8; }
.quote-summary-item strong { display: block; color: #405a80; font-size: 12px; line-height: 1.8; }
.quote-summary-item small { display: block; color: #788ca7; font-size: 11px; }
.quote-summary-item > span:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-summary-item > span:first-child { text-align: left; white-space: normal; }
.quote-summary-item > strong { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-checkout-summary .quote-totals { padding: 4px 0 12px; font-size: 12px; gap: 10px; }
.quote-checkout-summary .quote-totals .quote-total > strong { font-size: 25px; }
.quote-checkout-summary .total-line { gap: 12px; flex-wrap: wrap; }
.quote-checkout-summary .total-line strong { font-size: 25px; overflow-wrap: anywhere; }
.quote-checkout-summary .quote-reference { font-size: 10px; }
.quote-checkout-summary .quote-accounting-note { margin-top: 14px; padding: 11px 12px; font-size: 11px; }
@media (max-width: 1200px) {
  .quote-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .quote-aside { position: static; }
  .quote-editor { padding: 21px; }
  .quote-edit-row { grid-template-columns: minmax(150px, 1fr) 90px 135px; }
}
@media (max-width: 760px) {
  .quote-heading .section-title { font-size: 24px; }
  .quote-progress { padding: 13px 12px; gap: 6px; }
  .quote-progress-step { flex-direction: column; gap: 5px; font-size: 11px; }
  .quote-progress-step > span:first-child { width: 24px; height: 24px; }
  .quote-meta-grid { padding: 20px 21px; gap: 15px 18px; }
  .quote-document-header { padding: 23px 21px; }
  .quote-totals { padding: 20px 21px; }
  .quote-terms { padding: 19px 21px; }
  .quote-edit-row { grid-template-columns: minmax(140px, 1fr) 80px 125px; gap: 10px; padding: 13px; }
  .quote-items th:first-child, .quote-items td:first-child { padding-left: 21px; }
  .quote-items th:last-child, .quote-items td:last-child { padding-right: 21px; }
}
@media (max-width: 560px) {
  .quote-heading { margin: 19px 0; gap: 13px; }
  .quote-heading .section-title { font-size: 23px; }
  .quote-heading p { font-size: 12px; }
  .quote-progress { padding: 13px 9px; gap: 5px; margin: 17px 0 20px; border-radius: 10px; }
  .quote-progress-step { font-size: 10px; line-height: 1.6; }
  .quote-progress-step > span:first-child { width: 23px; height: 23px; font-size: 10px; }
  .quote-document { border-radius: 11px; }
  .quote-document-header { padding: 21px 18px; gap: 13px; }
  .quote-document-header h2 { font-size: 21px; }
  .quote-document-header p { font-size: 12px; }
  .quote-reference { font-size: 10px; }
  .quote-meta-grid { padding: 18px; gap: 14px; }
  .quote-meta-grid dd, .quote-meta-grid strong { font-size: 12px; }
  .quote-items { min-width: 495px; font-size: 12px; }
  .quote-items th, .quote-items td { padding: 12px 14px; }
  .quote-items th:first-child, .quote-items td:first-child { padding-left: 18px; }
  .quote-items th:last-child, .quote-items td:last-child { padding-right: 18px; }
  .quote-items td:first-child { min-width: 165px; }
  .quote-items td strong { font-size: 12px; }
  .quote-totals { padding: 19px 18px; font-size: 12px; }
  .quote-total strong { font-size: 25px; }
  .quote-terms { padding: 18px; font-size: 12px; }
  .quote-terms dl > div { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
  .quote-terms h3 { font-size: 13px; }
  .quote-expiry { padding: 12px; font-size: 11px; gap: 7px; }
  .quote-accept { font-size: 12px; gap: 9px; }
  .quote-accept input { width: 16px; height: 16px; }
  .quote-action-group { gap: 8px; }
  .quote-action-group .btn { font-size: 12px; min-height: 43px; }
  .quote-aside { padding: 20px 18px; }
  .quote-customer-note, .quote-seller-note, .quote-accounting-note { padding: 13px; font-size: 11px; }
  .quote-demo-role { padding: 12px 13px; font-size: 11px; gap: 10px; }
  .quote-demo-role .btn { min-height: 39px; font-size: 11px; }
  .quote-editor { padding: 19px 16px; border-radius: 11px; }
  .quote-editor h2 { font-size: 17px; }
  .quote-editor > p { font-size: 12px; }
  .quote-editor-grid { gap: 11px; margin-top: 18px; }
  .quote-edit-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 11px; padding: 13px; }
  .quote-edit-row label:first-child { grid-column: 1 / -1; font-size: 13px; }
  .quote-edit-row label { font-size: 12px; }
  .quote-edit-row .input { font-size: 16px; min-height: 46px; padding: 10px; }
  .quote-fee-grid { gap: 13px; }
  .quote-fee-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-fee-grid .input { font-size: 16px; min-height: 46px; }
  .quote-fee-grid label { font-size: 12px; }
  .quote-card { padding: 17px 15px; }
  .quote-card-heading { gap: 12px; }
  .quote-card-heading h2, .quote-card-heading h3, .quote-card-heading strong { font-size: 14px; }
  .quote-card p { font-size: 12px; }
  .institution-request.quote-card > div:first-child { width: 100%; flex-basis: auto; }
  .institution-request.quote-card > .quote-action-group { flex-basis: auto; width: 100%; justify-content: flex-start; }
  .institution-request.quote-card > div:first-child > .quote-amount { font-size: 22px; }
  .quote-aside > .quote-amount { font-size: 27px; }
  .quote-amount { font-size: 22px; }
  .quote-summary-item { font-size: 12px; }
  .quote-checkout-summary .total-line strong { font-size: 24px; }
  .quote-status { font-size: 11px; }
  .quote-history { font-size: 11px; }
}
@media (max-width: 365px) {
  .quote-meta-grid, .quote-fee-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-progress-step { font-size: 9px; }
  .quote-action-group > .btn { width: 100%; }
  .quote-document-header h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-center *, .quote-editor *, .quote-records * { transition: none !important; }
}
