/* Final desktop alignment for the vehicle-result ordering table. */
.vehicle-search-table {
  min-width: 1450px;
}

.vehicle-search-table th,
.vehicle-search-table td {
  padding-left: 10px;
  padding-right: 10px;
}

.vehicle-search-table th:nth-child(1) { width: 118px; }
.vehicle-search-table th:nth-child(2) { width: 190px; }
.vehicle-search-table th:nth-child(3) { width: 105px; }
.vehicle-search-table th:nth-child(4) { width: 120px; }
.vehicle-search-table th:nth-child(5) { width: 180px; text-align: left; }
.vehicle-search-table th:nth-child(6) { width: 135px; }
.vehicle-search-table th:nth-child(7) { width: 85px; text-align: center; }
.vehicle-search-table th:nth-child(8) { width: 160px; text-align: left; }
.vehicle-search-table th:nth-child(9) { width: 82px; text-align: left; }
.vehicle-search-table th:nth-child(10) { width: 205px; }

.vehicle-search-table td:nth-child(5) { text-align: left; }
.vehicle-search-table td:nth-child(7) { text-align: center; }
.vehicle-search-table td:nth-child(3) > b {
  font-size: 15px;
  letter-spacing: .1px;
  white-space: nowrap;
}

.vehicle-search-table td:nth-child(5) > span {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-material-select {
  height: 40px;
  font-size: 13px;
}

.material-support {
  font-size: 10px !important;
}

.vehicle-row-actions {
  grid-template-columns: minmax(96px, 1fr) 102px;
  gap: 6px;
}

.vehicle-row-actions button {
  min-height: 40px;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.vehicle-row-actions .detail {
  padding-right: 5px;
  padding-left: 5px;
  font-size: 11px;
}

/* RFQ item schedule: quotation-style layout with explicit duplicate control. */
.rfq-workbench {
  border: 1px solid #b9c7dc;
  border-top: 5px solid var(--navy);
  border-radius: 15px;
  padding: 27px 28px 24px;
  background: linear-gradient(180deg, #fff 0, #fff 82%, #f8fafe 100%);
  box-shadow: 0 14px 36px #14284b12;
}

.rfq-workbench.has-lines {
  border-color: #9fb3d3;
  border-top-color: var(--navy);
}

.workbench-heading h3 {
  color: var(--navy);
  font-size: 30px !important;
  font-weight: 950;
  letter-spacing: -.7px;
}

.workbench-heading > div > span {
  max-width: 760px;
  font-size: 12px;
  line-height: 1.55;
}

.workbench-heading-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.merge-filter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 300px;
  border: 2px solid #d0d9e7;
  border-radius: 13px;
  background: #fff;
  color: #7f8ba0;
  padding: 12px 13px 12px 16px;
  text-align: left;
  box-shadow: 0 5px 12px #14284b0b;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.merge-filter-button > span {
  display: grid;
  gap: 2px;
}

.merge-filter-button small {
  color: #7c899d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .4px;
}

.merge-filter-button strong {
  font-size: 15px;
  font-weight: 950;
}

.merge-filter-button b {
  display: block;
  font-size: 11px;
  font-weight: 800;
}

.merge-filter-button em {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf1f6;
  color: #9aa5b5;
  font-size: 18px;
  font-style: normal;
  font-weight: 950;
}

.merge-filter-button.active {
  border-color: #d91f3d;
  background: linear-gradient(135deg, #c91433 0%, #f53855 100%);
  color: #fff;
  box-shadow: 0 9px 20px #d91f3d35;
  cursor: pointer;
}

.merge-filter-button.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px #d91f3d45;
}

.merge-filter-button.active small,
.merge-filter-button.active b {
  color: #ffe5e9;
}

.merge-filter-button.active em {
  background: #fff;
  color: #cc1735;
}

.workbench-table {
  overflow-x: auto;
  border-color: #aebbd0;
  border-radius: 10px;
  background: #fff;
}

.workbench-row {
  grid-template-columns: 54px minmax(360px, 1fr) 165px 78px 112px 128px 145px 100px !important;
  min-width: 1260px;
  gap: 11px;
  padding: 15px 14px;
  font-size: 13px;
}

.workbench-row > * {
  min-width: 0;
}

.workbench-row > :not(:first-child) {
  align-self: stretch;
  padding-left: 11px;
  border-left: 1px solid #dfe5ee;
}

.workbench-row.labels {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  letter-spacing: .2px;
}

.workbench-row.labels > :not(:first-child) {
  padding-left: 0;
  border-left-color: #ffffff2b;
}

.workbench-row.labels > span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.workbench-row.labels > span:nth-child(4) {
  padding-left: 11px;
}

.line-sequence {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  color: #8490a3;
  font-size: 13px;
  font-weight: 850;
  justify-self: center;
}

.line-product b {
  color: var(--navy);
  font-size: 18px;
  letter-spacing: .2px;
}

.line-product {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-right: 11px;
  text-align: right;
}

.line-product .request-status {
  align-self: flex-end;
}

.line-product small {
  font-size: 11px;
  line-height: 1.4;
}

.compatible-vehicles {
  display: flex;
  align-items: center;
  color: #344158;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.compatible-vehicles > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workbench-row:not(.labels) > :nth-child(6),
.workbench-row:not(.labels) > :nth-child(7) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.workbench-row:not(.labels) > :nth-child(6) {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.workbench-row:not(.labels) > :nth-child(6) small {
  font-weight: 750;
}

.workbench-row > span:not(.line-sequence):not(.line-product):not(.compatible-vehicles):not(.material-chip):not(.line-actions),
.workbench-row > strong {
  font-size: 14px;
}

.workbench-row > strong {
  font-weight: 950;
}

.workbench-row small {
  font-size: 11px;
}

.line-actions {
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-right: 0 !important;
  padding-left: 11px !important;
  text-align: center;
}

.line-actions button {
  padding: 5px 2px;
  font-size: 12px;
  font-weight: 950;
}

.line-actions button + button {
  margin-left: 2px;
  padding-left: 9px;
  border-left: 1px solid #c8d1df;
}

.material-chip {
  width: 38px;
  height: 38px;
  font-size: 15px;
  font-weight: 950;
}

.material-cell {
  display: grid;
  place-items: center;
  padding-left: 11px !important;
}

.material-cell .material-chip {
  display: grid;
  place-items: center;
  margin: auto;
  text-align: center;
}

.material-cell select {
  width: calc(100% - 10px);
  margin: auto;
  text-align: center;
  text-align-last: center;
}

.line-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding-left: 11px !important;
  text-align: center;
  color: var(--navy);
  font-size: 19px;
  font-weight: 950;
  letter-spacing: .1px;
}

.line-quantity small {
  display: inline !important;
  color: #65738a;
  font-size: 11px;
  font-weight: 850;
}

.workbench-row.duplicate-line {
  background: linear-gradient(92deg, #ffdce2 0, #fff0f2 44%, #fff 100%);
  box-shadow: inset 5px 0 #ff2f4e;
}

.workbench-row.duplicate-line .line-product small {
  color: #ae1029;
  font-weight: 900;
}

.workbench-row.reference-only {
  background: linear-gradient(92deg, #fff0d9, #fffaf2 55%, #fff);
  box-shadow: inset 5px 0 #ef9a24;
}

.workbench-footer {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid #d9e0ea;
}

.quotation-footer {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(500px, 1.35fr) 155px;
  align-items: stretch;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #c8d3e3;
  border-radius: 12px;
  background: #f7f9fc;
}

.quotation-note {
  padding: 8px 4px;
}

.quotation-note > span,
.quotation-note > b {
  display: block;
}

.quotation-note > span {
  color: var(--blue2);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.1px;
}

.quotation-note > b {
  margin-top: 7px;
  color: var(--navy);
  font-size: 21px;
}

.quotation-note > p {
  max-width: 410px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

.quotation-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #bac7d9;
  border-radius: 10px;
  background: #fff;
}

.quotation-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid #e0e5ed;
}

.quotation-totals > div:nth-child(odd):not(.grand-total) {
  border-right: 1px solid #e0e5ed;
}

.quotation-totals span {
  color: #617087;
  font-size: 12px;
  font-weight: 800;
}

.quotation-totals b {
  color: var(--navy);
  font-size: 14px;
  text-align: right;
}

.quotation-totals .grand-total {
  grid-column: 1 / -1;
  min-height: 54px;
  border-bottom: 0;
  background: var(--navy);
  color: #fff;
}

.quotation-totals .grand-total span {
  color: #b9c9e8;
  font-size: 13px;
}

.quotation-totals .grand-total strong {
  color: #fff;
  font-size: 21px;
}

.quotation-start {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 15px;
  align-self: stretch;
  min-height: 100%;
  padding: 16px 13px;
  border-radius: 12px;
  font-size: 14px;
}

.quotation-start > .quotation-start-title {
  display: block;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

.quotation-start > .quotation-start-count {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  min-width: 126px;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1745b5;
  line-height: 1.1;
  white-space: nowrap;
  overflow: visible;
  box-shadow: none;
}

.quotation-start-count > span {
  display: grid;
  place-content: center;
  gap: 5px;
  min-height: 62px;
  padding: 9px 5px;
  border: 1px solid #8eaeff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 12px #061a5326;
}

.quotation-start-count > span b {
  display: block;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.quotation-start-count > span small {
  display: block;
  color: #5e75a4;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

/* Keep the persistent request indicator compact so it never masks RFQ content. */
.quote-count-float {
  right: 18px;
  bottom: 16px;
  min-width: 142px;
  padding: 9px 11px;
  gap: 2px 8px;
  border-radius: 11px;
}

.quote-count-float > span {
  font-size: 10px;
  letter-spacing: 0;
}

.quote-count-float > strong {
  font-size: 19px;
}

/* Viewport-based toast positioning: unaffected by wide tables or horizontal scroll. */
.toast {
  position: fixed !important;
  right: auto !important;
  bottom: 32px !important;
  left: 50vw !important;
  width: min(560px, calc(100vw - 40px));
  min-width: 0 !important;
  max-width: calc(100vw - 40px) !important;
  transform: translateX(-50%) !important;
  z-index: 200 !important;
  animation: toast-fixed-fade .2s ease-out !important;
}

@keyframes toast-fixed-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.template-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 12px;
}

.template-links .template-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #aabde4;
  border-radius: 9px;
  background: #fff;
  color: #174aa8;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.template-links .primary-template {
  border-color: #245eea;
  background: #245eea;
  color: #fff;
}

.bulk-guide {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 4px 12px;
  padding: 13px 15px;
  border: 1px solid #d7e0ef;
  border-radius: 10px;
  background: #f5f8fd;
  color: #344158;
  font-size: 11px;
}

.bulk-guide b {
  grid-row: 1 / 3;
  align-self: center;
  color: #0b2e72;
  font-size: 12px;
}

.bulk-guide small {
  color: #68758a;
  font-size: 10px;
}

.bulk-table > div {
  grid-template-columns: 35px minmax(170px, 1fr) 135px 150px 86px;
  font-size: 11px;
}

.oe-inline-results {
  display: grid;
  gap: 14px;
}

.oe-inline-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 15px 18px;
  border: 1px solid #bfd0ef;
  border-radius: 12px;
  background: linear-gradient(90deg, #edf4ff, #f8fbff);
}

.oe-inline-notice div {
  display: grid;
  gap: 4px;
}

.oe-inline-notice span {
  color: #225fd5;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.2px;
}

.oe-inline-notice b {
  color: #0b1b3b;
  font-size: 15px;
}

.oe-inline-notice p {
  max-width: 650px;
  margin: 0;
  color: #58677d;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.oe-candidate-strip {
  display: flex;
  gap: 8px;
  align-items: stretch;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #f7f9fc;
}

.oe-candidate-strip > div {
  display: grid;
  align-content: center;
  min-width: 150px;
  padding: 4px 10px;
}

.oe-candidate-strip > div span,
.oe-candidate-strip button small,
.oe-candidate-strip button span {
  color: #69768a;
  font-size: 9px;
}

.oe-candidate-strip > div b {
  margin-top: 3px;
  color: #0b1b3b;
  font-size: 13px;
}

.oe-candidate-strip button {
  display: grid;
  gap: 3px;
  min-width: 165px;
  padding: 10px 12px;
  border: 1px solid #c9d3e2;
  border-radius: 9px;
  background: #fff;
  color: #0b1b3b;
  text-align: left;
}

.oe-candidate-strip button b {
  font-size: 13px;
}

.oe-candidate-strip button.active {
  border-color: #2862e7;
  background: #eaf1ff;
  box-shadow: inset 3px 0 #2862e7;
}

.inline-product-detail {
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: 30px 32px !important;
  border: 1px solid #cbd5e4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 38px #102b5a12;
  overflow: hidden;
}

.inline-product-detail .modal-loading {
  min-height: 320px;
  display: grid;
  place-items: center;
}

.reference-table .detail-data-row {
  grid-template-columns: 70px 130px 170px minmax(240px, 1fr) minmax(180px, .8fr);
}

.reference-table .detail-data-row code {
  min-width: 0;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  color: #51627a;
  font-size: 11px;
}

@media (max-width: 900px) {
  .oe-inline-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .oe-inline-notice p {
    text-align: left;
  }

  .inline-product-detail {
    padding: 22px 18px !important;
  }

  .reference-table .detail-data-row {
    min-width: 820px;
  }
}

/* Shared downward-opening, scrollable dropdown for all product-search flows. */
.scroll-dropdown {
  position: relative;
  width: 100%;
  min-width: 0;
}

.scroll-dropdown-trigger {
  display: flex;
  width: 100%;
  height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #aebbd0;
  border-radius: 9px;
  background: #fff;
  color: #15233e;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.scroll-dropdown-trigger b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scroll-dropdown-trigger > span {
  flex: 0 0 auto;
  color: #53627a;
  transition: transform .18s ease;
}

.scroll-dropdown.open .scroll-dropdown-trigger {
  border-color: #2862e7;
  outline: 3px solid #2862e71c;
}

.scroll-dropdown.open .scroll-dropdown-trigger > span { transform: rotate(180deg); }
.scroll-dropdown.disabled .scroll-dropdown-trigger { background: #edf1f7; color: #9ba8ba; }

.scroll-dropdown-menu {
  position: fixed;
  z-index: 10000;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #b8c5d8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px #0b1f4630;
}

.scroll-dropdown-menu button {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #22324d;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.scroll-dropdown-menu button:hover,
.scroll-dropdown-menu button:focus { background: #edf3ff; color: #174cb9; outline: 0; }
.scroll-dropdown-menu button.selected { background: #2862e7; color: #fff; }

.inline-vehicle-select-grid .scroll-dropdown-trigger { height: 43px; }
.catalog-material-dropdown .scroll-dropdown-trigger,
.vehicle-material-select .scroll-dropdown-trigger { height: 40px; }

.vehicle-search-table thead th,
.domestic-application-table thead th,
.imported-application-table thead th { text-align: center !important; }

.search-quick-actions button {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 13px;
}

.search-quick-actions .bulk-lookup-action { width: 172px; }
.search-quick-actions .search-help-action { width: 142px; }

.vehicle-row-actions {
  grid-template-columns: minmax(92px, 1fr) minmax(104px, 1.08fr);
  gap: 7px;
}

.vehicle-row-actions button {
  min-height: 42px;
  padding-right: 7px;
  padding-left: 7px;
  font-size: 13px;
}

.vehicle-row-actions .detail { font-size: 12px; }

@media (min-width: 901px) {
  .vehicle-search-table th:nth-child(1) { width: 4%; }
  .vehicle-search-table th:nth-child(2) { width: 8%; }
  .vehicle-search-table th:nth-child(3) { width: 15%; }
  .vehicle-search-table th:nth-child(4) { width: 8%; }
  .vehicle-search-table th:nth-child(5) { width: 8%; }
  .vehicle-search-table th:nth-child(6) { width: 7%; }
  .vehicle-search-table th:nth-child(7) { width: 10%; }
  .vehicle-search-table th:nth-child(8) { width: 7%; }
  .vehicle-search-table th:nth-child(9) { width: 12%; }
  .vehicle-search-table th:nth-child(10) { width: 7%; }
  .vehicle-search-table th:nth-child(11) { width: 14%; }
}

.search-hero.vehicle-mode {
  grid-template-columns: minmax(250px, .55fr) minmax(0, 1.45fr);
  min-height: 464px;
}

.search-hero.vehicle-mode .hero-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.search-hero.vehicle-mode .search-box {
  width: min(100%, 880px);
  min-height: 385px;
  justify-self: end;
}

.search-hero.vehicle-mode .inline-vehicle-select-grid {
  grid-template-columns: 160px 170px minmax(290px, 340px) 150px;
  align-items: start;
}

.guided-check-field {
  min-width: 0;
}

.guided-check-field > div:first-child {
  display: flex;
  min-height: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.guided-check-field > div:first-child > span {
  color: #526077;
  font-size: 10px;
  font-weight: 900;
}

.guided-check-field > div:first-child > em {
  color: #2960d4;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.guided-check-list {
  display: grid;
  max-height: 154px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #b7c8e7;
  border-radius: 9px;
  background: #fff;
}

.guided-check-list label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  min-height: 40px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
}

.guided-check-list label:hover { background: #edf3ff; }
.guided-check-list label:has(input:checked) { background: #e7efff; color: #174cb9; }
.guided-check-list input { width: 16px; height: 16px; margin: 0; accent-color: #2862e7; }
.guided-check-list label > span { min-width: 0; }
.guided-check-list label b,
.guided-check-list label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guided-check-list label b { font-size: 11px; }
.guided-check-list label small { margin-top: 3px; color: #71809a; font-size: 9px; }
.guided-check-list > p { margin: 0; padding: 12px 8px; color: #8996aa; font-size: 10px; }

.guided-check-list.year-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guided-check-list.year-list label { min-height: 36px; }

@media (max-width: 1250px) {
  .search-hero.vehicle-mode { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .search-hero.vehicle-mode .inline-vehicle-select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .search-hero.vehicle-mode .inline-vehicle-select-grid { grid-template-columns: 1fr; }
}

.search-hero.vehicle-mode .inline-vehicle-heading b { font-size: 16px; }
.search-hero.vehicle-mode .inline-vehicle-heading span { font-size: 13px; }
.search-hero.vehicle-mode .inline-vehicle-select-grid label > span { font-size: 12px; }
.search-hero.vehicle-mode .scroll-dropdown-trigger {
  height: 48px;
  padding: 0 14px;
  font-size: 14px;
}
.search-hero.vehicle-mode .inline-vehicle-selection { font-size: 13px; }

.multi-check-menu { padding: 6px; }
.multi-check-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  min-height: 46px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  color: #22324d;
  cursor: pointer;
}
.multi-check-option:hover { background: #edf3ff; color: #174cb9; }
.multi-check-option:has(input:checked) { background: #e7efff; color: #174cb9; }
.multi-check-option input { width: 17px; height: 17px; margin: 0; accent-color: #2862e7; }
.multi-check-option span { min-width: 0; }
.multi-check-option b,
.multi-check-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-check-option b { font-size: 14px; }
.multi-check-option small { margin-top: 3px; color: #71809a; font-size: 11px; }
.multi-check-option.select-all-option {
  margin-bottom: 5px;
  border-bottom: 1px solid #dbe4f2;
  border-radius: 8px 8px 4px 4px;
  background: #f1f5fd;
}
.multi-check-option.select-all-option:has(input:checked) { background: #dfe9ff; }

/* Product-photo policy: IntoM main images first, JS images only on deliberate request. */
.detail-product-image .product-photo-pending {
  display: grid;
  place-content: center;
  gap: 10px;
  min-height: 270px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(145deg, #f5f8fd, #eaf0fa);
  color: #123c86;
}
.detail-product-image .product-photo-pending b { font-size: 20px; line-height: 1.45; }
.detail-product-image .product-photo-pending small { color: #6a7890; font-size: 12px; font-weight: 800; }
.js-reference-photo-button {
  width: calc(100% - 28px);
  margin: 12px 14px 0;
  padding: 10px 12px;
  border: 1px solid #8aa9e7;
  border-radius: 10px;
  background: #f5f8ff;
  color: #1451bb;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.js-reference-photo-button:hover { background: #e8f0ff; }
.product-visual-column .part-visual.product-photo-pending {
  display: grid;
  place-content: center;
  gap: 6px;
  min-height: 160px;
  padding: 18px;
  text-align: center;
  background: #f2f6fc;
  color: #173c7c;
}
.product-visual-column .part-visual.product-photo-pending b { font-size: 16px; line-height: 1.35; }
.product-visual-column .part-visual.product-photo-pending small { color: #718099; font-size: 11px; }

/* Filter-code group ordering flow: one code, one active order row. */
.catalog-bulk-bar.domestic-group-guide {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 13px 18px;
}

.domestic-group-guide > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 16px;
}

.domestic-group-guide > div b { color: #fff; font-size: 13px; }
.domestic-group-guide > div span { color: #b9caff; font-size: 11px; }
.domestic-group-guide > em { color: #fff; font-size: 12px; font-style: normal; font-weight: 900; }

.domestic-application-table { min-width: 1885px; }
.domestic-application-table col:first-child { width: 56px; }
.domestic-application-table col:nth-child(2) { width: 94px; }
.domestic-application-table col:nth-child(3) { width: 84px; }
.domestic-application-table col:nth-child(4) { width: 90px; }
.domestic-application-table col:nth-child(5) { width: 125px; }
.domestic-application-table col:nth-child(6) { width: 105px; }
.domestic-application-table col:nth-child(7) { width: 250px; }
.domestic-application-table col:nth-child(8) { width: 145px; }
.domestic-application-table col:nth-child(9) { width: 120px; }
.domestic-application-table col:nth-child(10) { width: 140px; }
.domestic-application-table col:nth-child(11) { width: 260px; }
.domestic-application-table col:nth-child(12) { width: 125px; }
.domestic-application-table col:nth-child(13) { width: 90px; }
.domestic-application-table col:nth-child(14) { width: 200px; }

.domestic-application-table .catalog-column-head th:nth-child(5),
.domestic-application-table .catalog-column-head th:nth-child(11) { border-left: 1px solid #455a7d; }
.domestic-application-table tbody td:nth-child(n + 2):nth-child(-n + 5) { background: #fafbfe; }
.domestic-application-table tbody td:nth-child(n + 6):nth-child(-n + 11) { background: #fff; }
.domestic-application-table tbody td:nth-child(n + 12):nth-child(-n + 14) { background: #fbfcff; }
.domestic-application-table tbody td:nth-child(6),
.domestic-application-table tbody td:nth-child(12) { border-left: 1px solid #d8e0ea; }
.domestic-application-table tbody td:nth-child(7) { border-left: 0; padding-left: 16px; }
.domestic-application-table tbody td:nth-child(6) > strong { text-align: center; }

.domestic-application-table tbody tr.group-selected td {
  background: #dce9ff;
}
.domestic-application-table tbody tr.group-selected { box-shadow: inset 5px 0 #2862e7; }
.domestic-application-table tbody tr.group-sibling-locked td { background: #e8f0ff; }
.domestic-application-table tbody tr.group-sibling-locked select,
.domestic-application-table tbody tr.group-sibling-locked input,
.domestic-application-table tbody tr.group-sibling-locked button {
  cursor: not-allowed;
  opacity: .48;
}
.catalog-row-lock {
  color: #31578d !important;
  background: #d8e6ff;
  border: 1px solid #aec7f3;
  border-radius: 8px;
  min-height: 38px;
  padding: 7px 9px;
  text-align: center;
  place-content: center;
  font-size: 10px !important;
  font-weight: 900;
}
.domestic-application-table td:last-child > div { grid-template-columns: 1.25fr .75fr; }
.domestic-application-table td:last-child button:first-child span { margin-right: 3px; font-size: 14px; }

.production-month-warning {
  display: inline-flex !important;
  width: max-content;
  margin-top: 5px !important;
  border-radius: 6px;
  background: #fff0d7;
  padding: 4px 6px;
  color: #a75a00 !important;
  font-size: 9px !important;
  font-weight: 900;
}

/* 전체 차종표: 검색보다 선택·비교·일괄 주문에 집중하는 표 */
.vehicle-catalog-section {
  display: grid;
  gap: 14px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 24px 26px;
  border: 1px solid #cbd7ea;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7faff, #fff);
}

.catalog-header > div:first-child > span {
  color: #2862e7;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.3px;
}

.catalog-header h2 {
  margin: 7px 0 5px;
  color: #0b1b3b;
  font-size: 23px;
}

.catalog-header p {
  margin: 0;
  color: #617089;
  font-size: 12px;
}

.catalog-market-switch {
  display: grid;
  grid-template-columns: repeat(2, 128px);
  align-self: stretch;
  gap: 7px;
  min-height: 82px;
  padding: 6px;
  border: 1px solid #cbd5e4;
  border-radius: 13px;
  background: #fff;
}

.catalog-market-switch button {
  height: 100%;
  min-height: 68px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #58677d;
  font-size: 15px;
  font-weight: 900;
}

.catalog-market-switch button.active {
  background: #2862e7;
  color: #fff;
}

.catalog-cascade {
  display: grid;
  grid-template-columns: 260px 310px 1fr;
  gap: 12px;
  align-items: end;
  padding: 16px 18px;
  border: 1px solid #d5deeb;
  border-radius: 13px;
  background: #fff;
}

.catalog-cascade label > span,
.catalog-cascade > div > span {
  display: block;
  margin-bottom: 7px;
  color: #617089;
  font-size: 10px;
  font-weight: 900;
}

.catalog-cascade select,
.catalog-bulk-bar select {
  width: 100%;
  height: 42px;
  border: 1px solid #aebbd0;
  border-radius: 8px;
  background: #fff;
  padding: 0 11px;
  color: #15233e;
  font-size: 12px;
  font-weight: 800;
}

.catalog-cascade > div {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eef4ff;
}

.catalog-cascade > div > span { margin-bottom: 3px; }
.catalog-cascade > div > b { font-size: 13px; }

.domestic-catalog-filters {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 210px 250px 105px auto;
  gap: 12px;
  align-items: end;
  padding: 15px 17px;
  border: 1px solid #cbd7e7;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 20px #112b5709;
}

.domestic-catalog-filters > div > span,
.domestic-catalog-filters label > span {
  display: block;
  margin-bottom: 6px;
  color: #627089;
  font-size: 10px;
  font-weight: 900;
}

.domestic-catalog-filters > div > b {
  color: #102240;
  font-size: 13px;
}

.domestic-catalog-filters select {
  width: 100%;
  height: 41px;
  border: 1px solid #aebbd0;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: #15233e;
  font-size: 12px;
  font-weight: 850;
}

.domestic-catalog-filters > button {
  height: 41px;
  border: 1px solid #9fb3d8;
  border-radius: 8px;
  background: #f4f7fd;
  color: #174cb9;
  font-size: 11px;
  font-weight: 900;
}

.domestic-catalog-filters > button:disabled {
  border-color: #d8dee8;
  color: #9ba6b6;
}

.domestic-catalog-filters > em {
  align-self: center;
  justify-self: end;
  color: #53627a;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.catalog-flow-shell {
  position: relative;
  border: 1px solid #c8d5e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px #102a560d;
}

.catalog-flow-title {
  padding: 21px 24px 18px;
  border-bottom: 1px solid #e1e7f0;
  background: linear-gradient(135deg, #f7faff, #fff 65%);
  border-radius: 18px 18px 0 0;
}

.catalog-flow-title > span {
  color: #2862e7;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.3px;
}

.catalog-flow-title h2 {
  margin: 7px 0 5px;
  color: #0b1b3b;
  font-size: 23px;
}

.catalog-flow-title p {
  margin: 0;
  color: #617089;
  font-size: 12px;
}

.hero-copy h2 { white-space: pre-line; }

.catalog-unified-hero {
  min-height: 258px;
  padding: 42px 40px 34px;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #0b1938 0%, #0b1b3b 56%, #102953 100%);
  color: #fff;
}

.catalog-unified-hero > span { color: #6fa0ff; font-size: 12px; letter-spacing: 1px; }
.catalog-unified-hero h2 { max-width: 720px; margin: 12px 0 10px; color: #fff; font-size: 34px; line-height: 1.28; }
.catalog-unified-hero p { color: #b8c8e6; font-size: 14px; }
.catalog-unified-hero .catalog-market-switch { width: 300px; min-height: 64px; margin-top: 28px; padding: 6px; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.catalog-unified-hero .catalog-market-switch button { min-height: 50px; color: #d8e3f7; font-size: 14px; }
.catalog-unified-hero .catalog-market-switch button.active { background: #2f66ef; color: #fff; box-shadow: 0 8px 20px rgba(20,76,210,.34); }

.catalog-step-row {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
}

.catalog-market-step { background: #fbfcff; }
.catalog-filter-step { align-items: start; padding-top: 20px; padding-bottom: 22px; }
.catalog-unified-hero + .catalog-filter-step { border-top: 1px solid #dce4f0; background: #fff; }

.catalog-step-copy {
  display: flex;
  align-items: center;
  gap: 13px;
}

.catalog-step-copy > span {
  display: grid;
  flex: 0 0 57px;
  height: 33px;
  place-items: center;
  border-radius: 17px;
  background: #e8f0ff;
  color: #1b58d6;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .7px;
}

.catalog-step-copy b,
.catalog-step-copy small { display: block; }
.catalog-step-copy b { color: #102240; font-size: 15px; }
.catalog-step-copy small { margin-top: 4px; color: #6a778b; font-size: 11px; }

.catalog-flow-shell .catalog-market-switch {
  width: 284px;
  min-height: 76px;
  justify-self: end;
}

.catalog-flow-shell .catalog-market-switch button { min-height: 62px; }

.catalog-flow-connector {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 24px 0 91px;
  border-top: 1px dashed #d9e2ef;
  border-bottom: 1px dashed #d9e2ef;
  background: #f5f8fd;
  color: #70809a;
}

.catalog-flow-connector span { color: #2862e7; font-size: 15px; font-weight: 950; }
.catalog-flow-connector b { font-size: 10px; }

.catalog-control-grid {
  display: grid;
  gap: 12px;
  align-items: end;
}

.catalog-control-grid.domestic {
  grid-template-columns: minmax(180px, 220px) minmax(210px, 270px) 105px minmax(160px, 1fr);
}

.catalog-control-grid.imported {
  grid-template-columns: minmax(220px, 270px) minmax(240px, 310px) minmax(360px, 1fr);
}

.catalog-control-grid label > span,
.catalog-control-field > span,
.catalog-year-filter > div:first-child > span {
  display: block;
  margin-bottom: 7px;
  color: #586780;
  font-size: 11px;
  font-weight: 900;
}

.domestic-model-dropdown { position: relative; }
.domestic-model-trigger {
  display: flex;
  width: 100%;
  height: 43px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #aebbd0;
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  color: #15233e;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}
.domestic-model-trigger:focus,
.domestic-model-dropdown.open .domestic-model-trigger {
  border-color: #2862e7;
  outline: 3px solid #2862e71c;
}
.domestic-model-trigger > span { color: #53627a; font-size: 13px; }
.domestic-model-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 120;
  max-height: min(280px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #b8c5d8;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 16px 34px #0b1f461f;
}
.domestic-model-menu button {
  display: block;
  width: 100%;
  min-height: 37px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 8px 10px;
  color: #22324d;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}
.domestic-model-menu button:hover,
.domestic-model-menu button:focus { background: #edf3ff; color: #174cb9; outline: 0; }
.domestic-model-menu button.selected { background: #2862e7; color: #fff; }

.catalog-control-grid select,
.catalog-control-grid input[type="text"],
.catalog-make-autocomplete > input {
  width: 100%;
  height: 43px;
  border: 1px solid #aebbd0;
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  color: #15233e;
  font-size: 12px;
  font-weight: 850;
}

.catalog-control-grid select:focus,
.catalog-make-autocomplete > input:focus {
  border-color: #2862e7;
  outline: 3px solid #2862e71c;
}

.catalog-filter-reset {
  height: 43px;
  border: 1px solid #9fb3d8;
  border-radius: 9px;
  background: #f4f7fd;
  color: #174cb9;
  font-size: 11px;
  font-weight: 900;
}

.catalog-filter-reset:disabled { border-color: #d8dee8; color: #9ba6b6; }

.catalog-control-grid > em {
  align-self: center;
  justify-self: end;
  color: #53627a;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.catalog-control-grid.imported > em {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 28px;
  padding: 7px 11px;
  border-radius: 8px;
  background: #eef4ff;
  color: #174cb9;
}

.catalog-make-autocomplete { position: relative; }

.catalog-make-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: grid;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #aebbd0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 35px #0b1b3b26;
}

.catalog-make-suggestions button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #24344e;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.catalog-make-suggestions button:hover,
.catalog-make-suggestions button.selected { background: #edf3ff; color: #174cb9; }
.catalog-make-suggestions > span { padding: 12px 10px; color: #7b8798; font-size: 11px; }

.catalog-year-filter {
  min-height: 86px;
  padding: 10px 12px;
  border: 1px solid #cbd5e4;
  border-radius: 10px;
  background: #f8faff;
}

.catalog-year-filter > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.catalog-year-filter > div:first-child > span { margin-bottom: 6px; }
.catalog-year-filter > div:first-child > button { border: 0; background: transparent; color: #2862e7; font-size: 10px; font-weight: 900; }
.catalog-year-filter > div:first-child > button:disabled { color: #a6b0bf; }

.catalog-year-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 68px;
  overflow-y: auto;
  padding-right: 4px;
}

.catalog-year-options > label { position: relative; }
.catalog-year-options input { position: absolute; opacity: 0; pointer-events: none; }
.catalog-year-options label > span {
  display: grid;
  min-width: 48px;
  height: 28px;
  place-items: center;
  border: 1px solid #cbd5e4;
  border-radius: 7px;
  background: #fff;
  color: #435169;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.catalog-year-options input:checked + span { border-color: #2862e7; background: #2862e7; color: #fff; }
.catalog-year-options > small { padding: 6px 2px; color: #7b8798; font-size: 10px; }

.catalog-result-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  border: 1px solid #cbd7ea;
  border-radius: 12px;
  background: #f4f7fd;
}

.catalog-result-guide > div { display: flex; align-items: center; gap: 10px; }
.catalog-result-guide span { padding: 5px 8px; border-radius: 7px; background: #dfeaff; color: #174cb9; font-size: 9px; font-weight: 950; }
.catalog-result-guide b { color: #102240; font-size: 13px; }
.catalog-result-guide small { color: #66748a; font-size: 10px; }
.catalog-result-guide em { color: #174cb9; font-size: 11px; font-style: normal; font-weight: 900; }

.catalog-bulk-bar {
  display: grid;
  grid-template-columns: 210px minmax(360px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #cbd5e4;
  border-radius: 12px;
  background: #0b1b3b;
  color: #fff;
}

.catalog-check-all {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 900;
}

.catalog-check-all input,
.catalog-table td:first-child input {
  width: 18px;
  height: 18px;
  accent-color: #2862e7;
}

.catalog-bulk-bar > div {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 170px;
  gap: 8px;
}

.catalog-bulk-bar button {
  border: 0;
  border-radius: 8px;
  background: #2862e7;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.catalog-bulk-bar > b {
  color: #a9c2ff;
  font-size: 12px;
}

.catalog-table-wrap {
  max-height: 650px;
  overflow: auto;
  border: 1px solid #cbd5e4;
  border-radius: 14px;
  background: #fff;
}

.catalog-table {
  width: 100%;
  min-width: 1540px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.catalog-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 46px;
  padding: 0 11px;
  border-bottom: 1px solid #253d6c;
  background: #0b1b3b;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

.catalog-table:not(.domestic-application-table) th:nth-child(1) { width: 56px; text-align: center; }
.catalog-table:not(.domestic-application-table) th:nth-child(2) { width: 105px; }
.catalog-table:not(.domestic-application-table) th:nth-child(3) { width: 360px; }
.catalog-table:not(.domestic-application-table) th:nth-child(4) { width: 160px; }
.catalog-table:not(.domestic-application-table) th:nth-child(5) { width: 115px; }
.catalog-table:not(.domestic-application-table) th:nth-child(6) { width: 225px; }
.catalog-table:not(.domestic-application-table) th:nth-child(7) { width: 145px; }
.catalog-table:not(.domestic-application-table) th:nth-child(8) { width: 125px; }
.catalog-table:not(.domestic-application-table) th:nth-child(9) { width: 85px; }
.catalog-table:not(.domestic-application-table) th:nth-child(10) { width: 150px; }

.catalog-table.imported { min-width: 1980px; }
.catalog-table.imported th:nth-child(1) { width: 58px; text-align: center; }
.catalog-table.imported th:nth-child(2) { width: 150px; }
.catalog-table.imported th:nth-child(3) { width: 310px; }
.catalog-table.imported th:nth-child(4) { width: 125px; }
.catalog-table.imported th:nth-child(5) { width: 190px; }
.catalog-table.imported th:nth-child(6) { width: 215px; }
.catalog-table.imported th:nth-child(7) { width: 315px; }
.catalog-table.imported th:nth-child(8) { width: 155px; }
.catalog-table.imported th:nth-child(9) { width: 130px; }
.catalog-table.imported th:nth-child(10) { width: 90px; }
.catalog-table.imported th:nth-child(11) { width: 170px; }
.catalog-table.imported td:nth-child(4) > b.catalog-year-value {
  display: block;
  white-space: nowrap;
  color: #14294b;
  font-size: 13px;
  font-weight: 900;
}
.catalog-table.imported .catalog-reference-code {
  display: block;
  margin-top: 0;
  overflow: visible;
  color: #174cb9;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}
.catalog-table.imported .catalog-oe-line {
  display: block;
  margin-top: 0;
  overflow: hidden;
  color: #27334a;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domestic-application-table { min-width: 1885px; }
.domestic-application-table col:nth-child(1) { width: 56px; }
.domestic-application-table col:nth-child(2) { width: 94px; }
.domestic-application-table col:nth-child(3) { width: 84px; }
.domestic-application-table col:nth-child(4) { width: 90px; }
.domestic-application-table col:nth-child(5) { width: 125px; }
.domestic-application-table col:nth-child(6) { width: 105px; }
.domestic-application-table col:nth-child(7) { width: 250px; }
.domestic-application-table col:nth-child(8) { width: 145px; }
.domestic-application-table col:nth-child(9) { width: 120px; }
.domestic-application-table col:nth-child(10) { width: 140px; }
.domestic-application-table col:nth-child(11) { width: 260px; }
.domestic-application-table col:nth-child(12) { width: 125px; }
.domestic-application-table col:nth-child(13) { width: 90px; }
.domestic-application-table col:nth-child(14) { width: 200px; }
.domestic-application-table .catalog-group-head th {
  top: 0;
  height: 35px;
  border-bottom: 1px solid #536784;
  text-align: center;
  letter-spacing: .2px;
  color: #f4f7fc;
}
.domestic-application-table .catalog-group-head th:first-child { background: #0b1b3b; }
.domestic-application-table .catalog-group-head th:nth-child(2) { background: #15335e; }
.domestic-application-table .catalog-group-head th:nth-child(3) { border-left: 1px solid #5f7598; background: #183a62; }
.domestic-application-table .catalog-group-head th:nth-child(4) { border-left: 1px solid #5f7598; background: #1a3b68; }
.domestic-application-table .catalog-column-head th { top: 35px; height: 43px; background: #0b1b3b; }
.domestic-application-table .catalog-column-head th:nth-child(5),
.domestic-application-table .catalog-column-head th:nth-child(11) { border-left: 1px solid #455a7d; }
.domestic-application-table tbody td:nth-child(n+2):nth-child(-n+5) { background: #fafbfe; }
.domestic-application-table tbody td:nth-child(n+6):nth-child(-n+11) { background: #fff; }
.domestic-application-table tbody td:nth-child(n+12):nth-child(-n+14) { background: #fbfcff; }
.domestic-application-table tbody td:nth-child(6) {
  border-left: 1px solid #d8e0ea;
}
.domestic-application-table tbody td:nth-child(7) { padding-left: 16px; border-left: 0; }
.domestic-application-table tbody td:nth-child(12) { border-left: 1px solid #d8e0ea; }
.domestic-application-table tbody tr:hover td { background: #edf4ff; }
.domestic-application-table tbody tr.selected td { background: #dce9ff; }
.domestic-application-table tbody tr.group-sibling-locked td { background: #e8f0ff; }
.domestic-application-table td:nth-child(8) > b { white-space: nowrap; font-size: 13px; }
.domestic-application-table td:nth-child(11) > span { overflow-wrap: anywhere; }

.catalog-table td {
  height: 76px;
  padding: 11px;
  border-bottom: 1px solid #e0e6ef;
  color: #27334a;
  font-size: 11px;
  line-height: 1.45;
  vertical-align: middle;
}

.catalog-table tbody tr:nth-child(even) { background: #f8fafc; }
.catalog-table tbody tr:hover { background: #f0f5ff; }
.catalog-table tbody tr.selected { background: #eaf1ff; box-shadow: inset 4px 0 #2862e7; }
.catalog-table td:first-child { text-align: center; }
.catalog-table td > strong { display: block; color: #174cb9; font-size: 18px; }
.catalog-table td > b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; }
.catalog-table td > span { display: block; margin-top: 3px; color: #69768a; font-size: 10px; }
.catalog-table td select,
.catalog-table td input[type="number"] {
  width: 100%;
  height: 38px;
  border: 1px solid #aebbd0;
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
  color: #15233e;
  font-size: 12px;
  font-weight: 850;
}

.catalog-quantity-control {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.catalog-table .catalog-quantity-control input[type="number"] {
  width: 64px;
  max-width: 64px;
  min-width: 0;
  flex: 0 0 64px;
  padding-left: 4px;
  padding-right: 5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.catalog-quantity-control > span {
  flex: 0 0 auto;
  margin: 0;
  color: #53627a;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
}
.vehicle-quantity-input { text-align: right; }

.catalog-table td:last-child > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.catalog-table td:last-child button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #2862e7;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.catalog-table td:last-child button.secondary {
  border: 1px solid #8da9df;
  background: #f5f8ff;
  color: #174cb9;
}

.catalog-table td:last-child button:disabled {
  background: #e7ebf1;
  color: #9aa5b5;
}

.oe-direct-results { margin-top: -2px; }
.inline-product-detail > .oe-candidate-strip { margin: 18px 0 0; }
.detail-material-picker > span {
  grid-column: 1 / -1;
  color: #526078;
  font-size: 11px;
  font-weight: 900;
}

.quote-count-float > span { white-space: nowrap; }

/* 2026-08-09: 한 화면형 차량 적용표와 품목군 잠금 상태 */
.detail-code-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #cbd7ea;
  border-radius: 13px;
  background: #f8faff;
}
.detail-code-summary > div {
  min-width: 0;
  padding: 15px 17px;
  border-right: 1px solid #dce4f0;
}
.detail-code-summary > div:last-child { border-right: 0; }
.detail-code-summary span,
.detail-code-summary b { display: block; }
.detail-code-summary span { margin-bottom: 7px; color: #607089; font-size: 10px; font-weight: 900; }
.detail-code-summary b { color: #102240; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.detail-code-summary > div:nth-child(-n + 3) b {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.35;
}
.reference-table.reference-table-buyer .detail-data-row {
  grid-template-columns: 64px 92px 140px minmax(260px, 1.05fr) minmax(260px, 1fr);
}
.application-name-cell {
  display: grid;
  gap: 4px;
}
.application-name-cell > small {
  color: #1553bd;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
}

.detail-overview.detail-overview-domestic {
  grid-template-columns: minmax(360px, .82fr) minmax(580px, 1.5fr);
  align-items: stretch;
}
.detail-overview-domestic .detail-product-image,
.detail-overview-domestic .domestic-specification-panel { min-height: 360px; }
.detail-overview-domestic .domestic-specification-panel {
  display: grid;
  grid-template-rows: auto 1fr;
}
.detail-overview-domestic .domestic-specification-panel .specification-table {
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 16px;
}
.detail-overview-domestic .domestic-specification-panel .specification-table > div {
  min-height: 58px;
  align-items: center;
}
.detail-overview-domestic .domestic-specification-panel .specification-table > .detail-material-reference-cell {
  display: block;
  grid-column: 1 / -1;
  min-height: 116px;
  margin: 8px 10px 12px;
  padding: 14px;
  border: 1px solid #cad8ef;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7faff 0%, #eef4ff 100%);
}
.detail-material-reference-cell > span {
  display: flex;
  align-items: center;
  margin-bottom: 11px;
  color: #163b78;
  font-size: 14px;
  font-weight: 950;
}
.detail-material-reference-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.detail-material-reference-buttons button {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 62px;
  border: 1px solid #c4d0e2;
  border-radius: 9px;
  background: #fff;
  color: #10294f;
  cursor: pointer;
}
.detail-material-reference-buttons button b,
.detail-material-reference-buttons button small { display: block; }
.detail-material-reference-buttons button b { font-size: 18px; line-height: 1; }
.detail-material-reference-buttons button small {
  margin-top: 5px;
  overflow: hidden;
  color: #66768f;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-material-reference-buttons button.selected {
  border-color: #2c64f5;
  background: #2c64f5;
  color: #fff;
  box-shadow: 0 5px 12px #2c64f52b;
}
.detail-material-reference-buttons button.selected small { color: #e6edff; }
.detail-material-reference-buttons button:disabled { cursor: not-allowed; opacity: .42; }
.detail-inline-rfq-controls {
  display: grid;
  grid-template-columns: minmax(155px, .42fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #cfdaec;
}
.detail-inline-rfq-controls label > span {
  display: block;
  margin-bottom: 6px;
  color: #54647e;
  font-size: 12px;
  font-weight: 850;
}
.detail-inline-rfq-controls label > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.detail-inline-rfq-controls input {
  width: 100%;
  height: 46px;
  border: 1px solid #aebfda;
  border-radius: 9px;
  padding: 0 13px;
  color: #0b1c3d;
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}
.detail-inline-rfq-controls label b { color: #63738d; font-size: 12px; }
.detail-inline-rfq-controls > button {
  height: 46px;
  border: 0;
  border-radius: 9px;
  background: #2c64f5;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}
.detail-inline-rfq-controls > button:disabled {
  background: #dce3ee;
  color: #94a1b5;
  cursor: not-allowed;
}

@media (max-width: 1180px) {
  .detail-overview.detail-overview-domestic { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .detail-overview-domestic .domestic-specification-panel .specification-table { grid-template-columns: 1fr; }
  .detail-material-reference-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-inline-rfq-controls { grid-template-columns: 1fr; }
}

.catalog-control-grid.domestic {
  grid-template-columns: minmax(150px, .7fr) minmax(180px, .9fr) minmax(320px, 1.4fr) 105px;
}
.catalog-control-grid.domestic > em { grid-column: 1 / -1; justify-self: start; }

.catalog-table tbody tr.group-selected td,
.vehicle-search-table tbody tr.group-selected td { background: #dce9ff !important; }
.catalog-table tbody tr.group-selected,
.vehicle-search-table tbody tr.group-selected { box-shadow: inset 5px 0 #2862e7; }
.catalog-table tbody tr.group-sibling-locked td,
.vehicle-search-table tbody tr.group-sibling-locked td { background: #e8f0ff !important; }
.catalog-table tbody tr.group-sibling-locked select,
.catalog-table tbody tr.group-sibling-locked input,
.catalog-table tbody tr.group-sibling-locked button,
.vehicle-search-table tbody tr.group-sibling-locked select,
.vehicle-search-table tbody tr.group-sibling-locked input,
.vehicle-search-table tbody tr.group-sibling-locked button { cursor: not-allowed; opacity: .48; }

@media (min-width: 901px) {
  .catalog-table-wrap,
  .vehicle-search-table-wrap { overflow-x: hidden; overflow-y: auto; }

  .catalog-table,
  .catalog-table.imported,
  .domestic-application-table,
  .vehicle-search-table { width: 100%; min-width: 0; table-layout: fixed; }

  .domestic-application-table col:nth-child(1) { width: 4%; }
  .domestic-application-table col:nth-child(2) { width: 7%; }
  .domestic-application-table col:nth-child(3) { width: 6%; }
  .domestic-application-table col:nth-child(4) { width: 11%; }
  .domestic-application-table col:nth-child(5) { width: 15%; }
  .domestic-application-table col:nth-child(6) { width: 9%; }
  .domestic-application-table col:nth-child(7) { width: 13%; }
  .domestic-application-table col:nth-child(8) { width: 7%; }
  .domestic-application-table col:nth-child(9) { width: 10%; }
  .domestic-application-table col:nth-child(10) { width: 7%; }
  .domestic-application-table col:nth-child(11) { width: 11%; }
  .domestic-application-table th,
  .domestic-application-table td { padding-left: 8px; padding-right: 8px; }
  .domestic-application-table tbody td:nth-child(n+2):nth-child(-n+4) { background: #fafbfe; }
  .domestic-application-table tbody td:nth-child(n+5):nth-child(-n+7) { background: #fff; }
  .domestic-application-table tbody td:nth-child(n+8):nth-child(-n+11) { background: #fbfcff; }
  .domestic-application-table tbody td:nth-child(5),
  .domestic-application-table tbody td:nth-child(8) { border-left: 1px solid #d8e0ea; }
  .domestic-application-table tbody td:nth-child(5) { padding-left: 12px; }
  .domestic-application-table td:nth-child(5) > b { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; }
  .domestic-application-table td:nth-child(2),
  .domestic-application-table td:nth-child(3) { text-align: center; }
  .domestic-application-table td:nth-child(2) > b { font-size: 13px; }
  .domestic-application-table td:nth-child(3) > span {
    margin-top: 0;
    color: #33445f;
    font-size: 12px;
    font-weight: 800;
  }
  .domestic-application-table td:nth-child(6) > b,
  .imported-application-table td:nth-child(6) > b { font-size: 14px; }
  .imported-application-table td:nth-child(2),
  .imported-application-table td:nth-child(3) { text-align: center; }
  .imported-application-table td:nth-child(2) > b { font-size: 13px; }
  .imported-application-table td:nth-child(3) > span {
    margin-top: 0;
    color: #33445f;
    font-size: 12px;
    font-weight: 800;
  }
  .domestic-application-table td:nth-child(7) { white-space: nowrap; }
  .domestic-application-table td:nth-child(7) > b {
    display: inline-flex;
    width: max-content;
    padding: 4px 7px;
    border-radius: 7px;
    background: #edf3ff;
    color: #174cb9;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
  }
  .domestic-application-table td:nth-child(7) > span {
    display: inline-block;
    margin: 0 0 0 7px;
    overflow: visible;
    color: #53627a;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
    white-space: nowrap;
  }
  .domestic-application-table td:last-child > div {
    grid-template-columns: max-content max-content;
    gap: 7px;
    justify-content: center;
  }
  .domestic-application-table td:last-child button {
    min-width: 0;
    padding: 0 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .imported-application-table col:nth-child(1) { width: 4%; }
  .imported-application-table col:nth-child(2) { width: 7%; }
  .imported-application-table col:nth-child(3) { width: 6%; }
  .imported-application-table col:nth-child(4) { width: 11%; }
  .imported-application-table col:nth-child(5) { width: 15%; }
  .imported-application-table col:nth-child(6) { width: 9%; }
  .imported-application-table col:nth-child(7) { width: 11.5%; }
  .imported-application-table col:nth-child(8) { width: 9%; }
  .imported-application-table col:nth-child(9) { width: 9%; }
  .imported-application-table col:nth-child(10) { width: 7.5%; }
  .imported-application-table col:nth-child(11) { width: 11%; }
  .catalog-table.imported th,
  .catalog-table.imported td { padding-left: 9px; padding-right: 9px; }
  .catalog-table.imported td:nth-child(8) > strong { overflow: visible; font-size: 14px; white-space: nowrap; }
  .imported-application-table td:nth-child(6) > b.catalog-year-value.month-specific {
    display: block;
    overflow: visible;
    font-size: 12px;
    letter-spacing: -.25px;
    text-overflow: clip;
    white-space: nowrap;
  }
  .imported-application-table tbody td:nth-child(n+2):nth-child(-n+4) { background: #fafbfe; }
  .imported-application-table tbody td:nth-child(n+5):nth-child(-n+7) { background: #fff; }
  .imported-application-table tbody td:nth-child(n+8):nth-child(-n+11) { background: #fbfcff; }
  .imported-application-table tbody td:nth-child(5),
  .imported-application-table tbody td:nth-child(8) { border-left: 1px solid #d8e0ea; }
  .imported-application-table tbody td:nth-child(5) { padding-left: 12px; }
  .imported-application-table td:nth-child(5) > b { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; }
  .imported-application-table td:nth-child(7) > b {
    display: inline-flex;
    width: max-content;
    padding: 4px 7px;
    border-radius: 7px;
    background: #edf3ff;
    color: #174cb9;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.15px;
    white-space: nowrap;
  }
  .imported-application-table td:nth-child(7) > span {
    display: inline-block;
    margin: 0 0 0 7px;
    overflow: visible;
    color: #53627a;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
    white-space: nowrap;
  }
  .imported-application-table td:last-child > div {
    grid-template-columns: max-content max-content;
    gap: 7px;
    justify-content: center;
  }
  .imported-application-table td:last-child button {
    min-width: 0;
    padding: 0 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .domestic-application-table td:nth-child(4),
  .imported-application-table td:nth-child(4) {
    overflow: hidden;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
  }
  .domestic-application-table td:nth-child(4) > b,
  .domestic-application-table td:nth-child(4) > span,
  .imported-application-table td:nth-child(4) > b,
  .imported-application-table td:nth-child(4) > span {
    display: inline-block;
    max-width: 48%;
    margin-top: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
  }
  .domestic-application-table td:nth-child(4) > span,
  .imported-application-table td:nth-child(4) > span { margin-left: 6px; }
  .domestic-application-table td:nth-child(4) > b,
  .imported-application-table td:nth-child(4) > b {
    font-size: 13px;
    font-weight: 900;
  }
  .domestic-application-table td:nth-child(4) > span,
  .imported-application-table td:nth-child(4) > span {
    color: #42516a;
    font-size: 12px;
    font-weight: 800;
  }
  .domestic-application-table td:nth-child(4) > span::before,
  .imported-application-table td:nth-child(4) > span::before { content: "- "; }

  .domestic-application-table td:nth-child(5) > b,
  .imported-application-table td:nth-child(5) > b {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
  }
  .domestic-application-table td:nth-child(5) > span,
  .imported-application-table td:nth-child(5) > span {
    margin-top: 5px;
    color: #526078;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
  }

  .domestic-application-table tbody td:nth-child(6),
  .imported-application-table tbody td:nth-child(6) { border-left: 0; }
  .domestic-application-table td:nth-child(7),
  .imported-application-table td:nth-child(7) {
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
  }

  .vehicle-search-table th:nth-child(1) { width: 4%; text-align: center; }
  .vehicle-search-table th:nth-child(2) { width: 8%; }
  .vehicle-search-table th:nth-child(3) { width: 15%; }
  .vehicle-search-table th:nth-child(4) { width: 8%; }
  .vehicle-search-table th:nth-child(5) { width: 8%; }
  .vehicle-search-table th:nth-child(6) { width: 7%; }
  .vehicle-search-table th:nth-child(7) { width: 9%; }
  .vehicle-search-table th:nth-child(8) { width: 7%; text-align: center; }
  .vehicle-search-table th:nth-child(9) { width: 10%; }
  .vehicle-search-table th:nth-child(10) { width: 6%; }
  .vehicle-search-table th:nth-child(11) { width: 18%; }
  .vehicle-search-table th,
  .vehicle-search-table td { padding-left: 8px; padding-right: 8px; }
  .vehicle-search-table td:first-child { text-align: center; }
}

.imported-application-table .catalog-group-head th {
  top: 0;
  height: 35px;
  border-bottom: 1px solid #536784;
  color: #f4f7fc;
  text-align: center;
  letter-spacing: .2px;
}
.imported-application-table .catalog-group-head th:first-child { background: #0b1b3b; }
.imported-application-table .catalog-group-head th:nth-child(2) { background: #15335e; }
.imported-application-table .catalog-group-head th:nth-child(3) { border-left: 1px solid #5f7598; background: #183a62; }
.imported-application-table .catalog-group-head th:nth-child(4) { border-left: 1px solid #5f7598; background: #1a3b68; }
.imported-application-table .catalog-column-head th { top: 35px; height: 43px; background: #0b1b3b; }
.domestic-application-table .catalog-column-head th,
.imported-application-table .catalog-column-head th { border-left: 0; }
.domestic-application-table .catalog-column-head th:nth-child(4),
.domestic-application-table .catalog-column-head th:nth-child(7),
.imported-application-table .catalog-column-head th:nth-child(4),
.imported-application-table .catalog-column-head th:nth-child(7) { border-left: 1px solid #455a7d; }
.imported-application-table tbody tr:hover td { background: #edf4ff; }

/* 국산·수입차 공통 핵심 열 정렬 */
.domestic-application-table .catalog-group-head th,
.domestic-application-table .catalog-column-head th,
.imported-application-table .catalog-group-head th,
.imported-application-table .catalog-column-head th {
  text-align: center;
}

.domestic-application-table tbody td:nth-child(6),
.domestic-application-table tbody td:nth-child(8),
.imported-application-table tbody td:nth-child(6),
.imported-application-table tbody td:nth-child(8) {
  text-align: center;
}

/* 상세창에서 모델연식과 실제 생산기간을 같은 값처럼 보이지 않게 분리 */
.application-table .application-year-cell {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}
.application-table .application-year-cell > b {
  color: #14294b;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  white-space: nowrap;
}
.application-table .application-year-cell > small {
  color: #66758c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

/* 전체 차종표를 차량 중심 검색과 동일한 좌우 히어로 구조로 통합 */
.vehicle-catalog-section .catalog-flow-shell {
  display: grid;
  grid-template-columns: minmax(250px, .55fr) minmax(0, 1.45fr);
  gap: 44px;
  align-items: stretch;
  min-height: 464px;
  padding: 40px;
  border: 0;
  border-radius: 20px;
  background: var(--navy);
  box-shadow: 0 18px 42px rgba(11,27,59,.16);
}

.vehicle-catalog-section .catalog-unified-hero {
  display: flex;
  min-height: 385px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.vehicle-catalog-section .catalog-unified-hero h2 {
  max-width: 470px;
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.28;
}

.vehicle-catalog-section .catalog-unified-hero > span {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.vehicle-catalog-section .catalog-unified-hero p {
  max-width: 480px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.vehicle-catalog-section .catalog-unified-hero .catalog-market-switch {
  position: relative;
  display: grid;
  width: 340px;
  height: 82px;
  min-height: 82px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin-top: auto;
  padding: 7px;
  justify-self: auto;
  overflow: hidden;
  border: 1px solid rgba(184,204,240,.44);
  border-radius: 17px;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.18);
}

.vehicle-catalog-section .catalog-unified-hero .catalog-market-switch::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: calc(50% - 7px);
  border-radius: 12px;
  background: linear-gradient(135deg, #3b74ff, #2862e7);
  box-shadow: 0 8px 22px rgba(29,84,218,.42), inset 0 1px rgba(255,255,255,.24);
  transform: translateX(0);
  transition: transform .48s cubic-bezier(.2,1.35,.32,1), box-shadow .32s ease;
}

.vehicle-catalog-section .catalog-unified-hero .catalog-market-switch:has(button:nth-child(2).active)::before {
  transform: translateX(100%);
}

.vehicle-catalog-section .catalog-unified-hero .catalog-market-switch button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: #cbd8ef;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
  transition: color .3s ease, transform .24s ease;
}

.vehicle-catalog-section .catalog-unified-hero .catalog-market-switch button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.14), 0 0 12px rgba(255,255,255,.7);
  opacity: 0;
  transform: translateY(-50%) scale(.2);
  transition: opacity .25s ease .08s, transform .42s cubic-bezier(.2,1.5,.32,1) .04s;
}

.vehicle-catalog-section .catalog-unified-hero .catalog-market-switch button.active {
  background: transparent;
  box-shadow: none;
  color: #fff;
  transform: translateY(-1px);
}

.vehicle-catalog-section .catalog-unified-hero .catalog-market-switch button.active::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.search-hero.vehicle-mode .hero-copy .vehicle-hero-market-switch {
  position: relative;
  display: grid;
  width: min(340px, 100%);
  height: 82px;
  min-height: 82px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin: auto 0 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(184,204,240,.44);
  border-radius: 17px;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.18);
}

.search-hero.vehicle-mode .hero-copy .vehicle-hero-market-switch::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: calc(50% - 7px);
  border-radius: 12px;
  background: linear-gradient(135deg, #3b74ff, #2862e7);
  box-shadow: 0 8px 22px rgba(29,84,218,.42), inset 0 1px rgba(255,255,255,.24);
  transition: transform .48s cubic-bezier(.2,1.35,.32,1), box-shadow .32s ease;
}

.search-hero.vehicle-mode .hero-copy .vehicle-hero-market-switch:has(button:nth-child(2).active)::before { transform: translateX(100%); }

.search-hero.vehicle-mode .hero-copy .vehicle-hero-market-switch button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: #cbd8ef;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
  transition: color .3s ease, transform .24s ease;
}

.search-hero.vehicle-mode .hero-copy .vehicle-hero-market-switch button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.14), 0 0 12px rgba(255,255,255,.7);
  opacity: 0;
  transform: translateY(-50%) scale(.2);
  transition: opacity .25s ease .08s, transform .42s cubic-bezier(.2,1.5,.32,1) .04s;
}

.search-hero.vehicle-mode .hero-copy .vehicle-hero-market-switch button.active {
  background: transparent;
  box-shadow: none;
  color: #fff;
  transform: translateY(-1px);
}

.search-hero.vehicle-mode .hero-copy .vehicle-hero-market-switch button.active::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.inline-vehicle-finder {
  width: min(100%, 880px);
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #b8cdf8;
  border-radius: 12px;
  background: #f2f6ff;
}

.vehicle-direct-search > label {
  display: block;
  margin-bottom: 11px;
  font-size: 13px;
  font-weight: 900;
}

.vehicle-direct-search > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.inline-vehicle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.inline-vehicle-heading b {
  color: #0d47bc;
  font-size: 13px;
}

.inline-vehicle-heading span {
  color: #64748b;
  font-size: 11px;
}

.inline-vehicle-select-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.inline-vehicle-select-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.inline-vehicle-select-grid label > span {
  color: #526077;
  font-size: 10px;
  font-weight: 900;
}

.inline-vehicle-select-grid select {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 10px;
  border: 1px solid #b7c8e7;
  border-radius: 8px;
  background: #fff;
  color: #10234a;
  font-size: 12px;
  font-weight: 800;
}

.inline-vehicle-select-grid select:disabled {
  background: #e9eef7;
  color: #9aa7bc;
}

.search-hero.vehicle-mode .guided-make-autocomplete > input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #b7c8e7;
  border-radius: 9px;
  background: #fff;
  color: #10234a;
  font-size: 14px;
  font-weight: 800;
}

.search-hero.vehicle-mode .guided-make-autocomplete > input:focus {
  border-color: #2862e7;
  outline: 3px solid #2862e71c;
}

.inline-vehicle-selection {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  color: #184cb5;
  font-size: 11px;
}

.inline-vehicle-selection span {
  color: #66758e;
}

.search-quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.search-quick-actions button {
  flex: 0 0 auto;
  min-width: 0;
  padding: 9px 14px;
  font-size: 11px;
}

.search-quick-actions .bulk-lookup-action {
  width: 150px;
}

.search-quick-actions .search-help-action {
  width: 118px;
}

.search-quick-actions .search-help-action span {
  display: inline-block;
  margin-right: 4px;
}

@media (max-width: 980px) {
  .inline-vehicle-select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .inline-vehicle-heading { align-items: flex-start; flex-direction: column; }
  .inline-vehicle-select-grid { grid-template-columns: 1fr; }
  .search-quick-actions { flex-wrap: wrap; }
}

.vehicle-catalog-section .catalog-filter-step {
  display: grid;
  width: min(100%, 880px);
  min-height: 385px;
  grid-template-columns: 1fr;
  gap: 22px;
  align-content: center;
  margin: 0;
  padding: 26px;
  justify-self: end;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(2,12,35,.2);
}

.vehicle-catalog-section .catalog-filter-step .catalog-step-copy {
  padding: 0 0 18px;
  border-bottom: 1px solid #dce4f0;
}

.vehicle-catalog-section .catalog-filter-step .catalog-step-copy > span {
  flex-basis: 62px;
}

@media (max-width: 1250px) {
  .vehicle-catalog-section .catalog-flow-shell { grid-template-columns: 1fr; gap: 24px; padding: 30px; }
  .vehicle-catalog-section .catalog-unified-hero { min-height: auto; }
  .vehicle-catalog-section .catalog-unified-hero h2,
  .vehicle-catalog-section .catalog-unified-hero p { max-width: none; }
  .vehicle-catalog-section .catalog-unified-hero .catalog-market-switch { width: 340px; }
}

@media (max-width: 900px) {
  .vehicle-catalog-section .catalog-unified-hero .catalog-market-switch { width: 100%; max-width: 340px; }
  .catalog-unified-hero { min-height: auto; padding: 28px 24px; }
  .catalog-unified-hero h2 { font-size: 27px; }
  .catalog-unified-hero .catalog-market-switch { width: 100%; }
  .catalog-header { align-items: stretch; flex-direction: column; }
  .catalog-market-switch { grid-template-columns: 1fr 1fr; }
  .catalog-cascade { grid-template-columns: 1fr; }
  .domestic-catalog-filters { grid-template-columns: 1fr; }
  .domestic-catalog-filters > em { justify-self: start; }
  .catalog-step-row { grid-template-columns: 1fr; gap: 14px; }
  .catalog-flow-shell .catalog-market-switch { width: 100%; justify-self: stretch; }
  .catalog-flow-connector { padding-left: 24px; }
  .catalog-control-grid.domestic,
  .catalog-control-grid.imported { grid-template-columns: 1fr; }
  .catalog-control-grid.imported > em { grid-column: auto; }
  .catalog-control-grid > em { justify-self: start; }
  .catalog-result-guide,
  .catalog-result-guide > div { align-items: flex-start; flex-direction: column; }
  .catalog-bulk-bar { grid-template-columns: 1fr; }
  .catalog-bulk-bar > div { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .workbench-heading-actions {
    width: 100%;
  }
  .merge-filter-button {
    flex: 1;
  }
  .quotation-footer {
    grid-template-columns: 1fr;
  }
  .quotation-start {
    min-height: 48px;
  }
}
