/* One-page express quoting: keep the full factory formula while making the
   frequently used controls and cost evidence visible in one workspace. */

.quote-guide-layout {
  width: min(1420px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
  justify-content: center;
  gap: 18px;
}

.quote-guide-card,
.quote-live-dock { min-width: 0; }

.quote-history-details { max-width: 1420px !important; }

.quote-live-dock {
  position: sticky;
  top: 18px;
  align-self: start;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border-color: #cbd9e9;
  box-shadow: 0 18px 44px rgba(35, 55, 80, .1);
}

.quote-live-dock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e2e8f0;
}

.quote-live-dock-head span,
.quote-live-dock-head strong { display: block; }
.quote-live-dock-head span { color: #1769c7; font-size: 12px; font-weight: 800; }
.quote-live-dock-head strong { margin-top: 4px; color: #182230; font-size: 18px; }
.quote-live-dock-head em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #52657a;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.quote-live-dock-head em.is-ready { background: #eaf8f1; color: #08724c; }
.quote-live-dock-head em.is-warning { background: #fff4df; color: #9b5a00; }

.quote-live-current {
  margin-top: 13px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #f5f8fc;
  color: #52657a;
  font-size: 12px;
  line-height: 1.55;
}
.quote-live-current strong { color: #182230; }

.quote-live-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}
.quote-live-metrics > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  background: #fff;
}
.quote-live-metrics span,
.quote-live-metrics strong { display: block; }
.quote-live-metrics span { color: #6b7789; font-size: 10px; font-weight: 750; }
.quote-live-metrics strong { margin-top: 5px; color: #182230; font-size: 15px; white-space: nowrap; }
.quote-live-metrics .quote-live-total,
.quote-live-metrics .quote-live-formal { grid-column: 1 / -1; }
.quote-live-metrics .quote-live-total { border-color: #17202d; background: #17202d; }
.quote-live-metrics .quote-live-total span { color: rgba(255,255,255,.66); }
.quote-live-metrics .quote-live-total strong { color: #fff; font-size: 22px; }
.quote-live-metrics .quote-live-formal { border-color: #b9d6fa; background: #f2f7ff; }
.quote-live-metrics .quote-live-formal strong { color: #075fb8; font-size: 18px; }

.quote-live-price-list {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  padding: 10px;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  color: #66758a;
  font-size: 11px;
  line-height: 1.45;
}
.quote-live-price-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.quote-live-price-item span { min-width: 0; color: #42536a; }
.quote-live-price-item strong { flex: 0 0 auto; color: #182230; text-align: right; white-space: nowrap; }
.quote-live-price-item em { display: block; margin-top: 2px; color: #8995a5; font-size: 9px; font-style: normal; }
.quote-live-price-item.is-missing strong { color: #b54708; }

.quote-live-adjustments {
  margin-top: 11px;
  border: 1px solid #f0d19c;
  border-radius: 10px;
  background: #fffaf0;
}
.quote-live-adjustments.is-hidden { display: none; }
.quote-live-adjustments > summary { padding: 10px 11px; color: #8a5207; cursor: pointer; font-size: 12px; font-weight: 800; }
.quote-live-adjustments[open] > summary { border-bottom: 1px solid #f0d19c; }
.quote-live-adjustment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 10px 0; }
.quote-live-adjustment-grid label,
.quote-live-adjustment-reason { display: block; min-width: 0; }
.quote-live-adjustment-grid span,
.quote-live-adjustment-reason span { display: block; margin-bottom: 5px; color: #6d5532; font-size: 10px; font-weight: 800; }
.quote-live-adjustment-grid input,
.quote-live-adjustment-reason input { width: 100%; min-width: 0; background: #fff; }
.quote-live-adjustment-reason { padding: 8px 10px 0; }
.quote-live-adjustments p { margin: 8px 10px 10px; color: #806843; font-size: 10px; line-height: 1.5; }
.quote-live-adjustments.has-adjustment { border-color: #df8f28; box-shadow: 0 0 0 2px rgba(223,143,40,.12); }

.quote-live-templates {
  display: grid;
  gap: 8px;
  margin-top: 11px;
  padding: 11px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #fbfcfe;
}
.quote-live-templates > div:first-child strong,
.quote-live-templates > div:first-child span { display: block; }
.quote-live-templates > div:first-child strong { color: #182230; font-size: 13px; }
.quote-live-templates > div:first-child span { margin-top: 3px; color: #78869a; font-size: 10px; line-height: 1.4; }
.quote-live-templates input,
.quote-live-templates select { width: 100%; min-width: 0; background: #fff; }
.quote-live-template-save,
.quote-live-template-actions { display: grid; gap: 7px; }
.quote-live-template-actions { grid-template-columns: 1fr auto; }
.quote-live-template-save .btn,
.quote-live-template-actions .btn { min-width: 0; }
.quote-template-delete { color: #b42318 !important; }

.quote-live-actions { display: grid; gap: 8px; margin-top: 12px; }
.quote-live-actions .btn { width: 100%; min-width: 0; }
.quote-live-footnote { margin: 10px 1px 0; color: #7a8798; font-size: 10px; line-height: 1.5; }

.quote-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.quote-inline-price-button {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 4px 7px;
  border: 1px solid #bfd6f2;
  border-radius: 7px;
  background: #f2f7ff;
  color: #075fb8;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.quote-option-price-inline {
  display: block;
  margin-left: 6px;
  color: #7c899a;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}
.quote-option-values input:checked + span .quote-option-price-inline { color: rgba(255,255,255,.72); }
.quote-product-price-workbench [data-price-group] { scroll-margin-top: 22px; }

@media (max-width: 1180px) {
  .quote-guide-layout { grid-template-columns: minmax(0, 1fr) !important; max-width: 980px; }
  .quote-live-dock { position: static; order: 0; max-height: none; overflow: visible; }
  .quote-live-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quote-live-metrics .quote-live-total,
  .quote-live-metrics .quote-live-formal { grid-column: span 1; }
  .quote-live-metrics .quote-live-total strong,
  .quote-live-metrics .quote-live-formal strong { font-size: 16px; }
}

@media (max-width: 700px) {
  .quote-live-dock { padding: 14px; }
  .quote-live-dock-head { display: block; }
  .quote-live-dock-head em { display: inline-block; margin-top: 8px; }
  .quote-live-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-live-metrics .quote-live-total,
  .quote-live-metrics .quote-live-formal { grid-column: 1 / -1; }
  .quote-live-adjustment-grid { grid-template-columns: 1fr; }
  .quote-option-group { grid-template-columns: 1fr !important; }
  .quote-option-label { padding-top: 0; }
  .quote-option-price-inline { margin: 3px 0 0; }
}
