html {
  font-size: 14px;
}

.admin-template-editor { max-width: 1180px; margin: 0 auto; padding: 16px; }
.admin-template-editor-header, .admin-template-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-template-editor-header h1 { margin: 4px 0 0; font-size: 1.5rem; }
.admin-template-source-lookup { display: grid; grid-template-columns: minmax(220px, 420px) auto; align-items: end; justify-content: start; gap: 8px; margin-bottom: 14px; padding: 10px; border-left: 3px solid #f4bf2a; background: #f8fbff; }
.admin-template-source-lookup label { grid-column: 1 / -1; margin: 0; color: #27425f; font-size: .78rem; font-weight: 700; }
.admin-template-source-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; padding: 8px 10px; border: 1px solid #b7cae6; border-left: 3px solid #f4bf2a; background: #f8fbff; color: #173d72; }
.admin-template-source-summary span { display: grid; gap: 1px; }
.admin-template-source-summary small { color: #60738c; font-size: .7rem; font-weight: 700; }
.admin-template-source-summary strong { font-size: .86rem; }
.admin-template-fields { display: grid; grid-template-columns: minmax(180px, 2fr) 90px minmax(180px, 2fr) 140px 140px; gap: 10px; margin-bottom: 14px; }
.admin-template-fields label { color: #27425f; font-size: .78rem; font-weight: 700; }
.admin-template-fields :is(input, select) { margin-top: 4px; }
.admin-template-workspace { display: grid; grid-template-columns: minmax(280px, 760px) minmax(180px, 1fr); align-items: start; gap: 16px; }
.admin-template-sheet { position: relative; width: 100%; overflow: hidden; border: 1px solid #9cabbc; background: #f1f4f7; touch-action: none; }
.admin-template-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; padding: 20px; color: #526173; text-align: center; }
.admin-template-region { position: absolute; min-width: 1px; min-height: 1px; border: 2px solid #1263c6; background: rgb(18 99 198 / 16%); color: #092f60; cursor: move; outline: 0; }
.admin-template-region.is-active { border-color: #bd6100; background: rgb(255 174 51 / 24%); box-shadow: 0 0 0 2px #fff; }
.admin-template-region span { position: absolute; top: 2px; left: 3px; font-size: .68rem; font-weight: 800; }
.admin-template-region i { position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border: 2px solid #fff; background: #1263c6; cursor: nwse-resize; }
.admin-template-region-list { display: grid; gap: 8px; }
.admin-template-coordinates { min-height: 32px; padding: 6px 8px; border: 1px solid #c6d4e4; background: #f8fafc; font-variant-numeric: tabular-nums; }
.admin-template-actions { justify-content: flex-start; margin-top: 14px; }
.admin-template-activate { margin-top: 8px; }
.admin-template-preview-status { min-height: 20px; color: #526173; font-size: .78rem; }
.admin-template-previews { display: grid; gap: 8px; }
.admin-template-previews figure { margin: 0; }
.admin-template-previews img { display: block; width: 100%; max-height: 180px; border: 1px solid #9cabbc; object-fit: contain; }
.admin-template-previews figcaption { margin-top: 2px; color: #526173; font-size: .72rem; }

@media (max-width: 767.98px) {
  .admin-template-fields, .admin-template-workspace { grid-template-columns: 1fr; }
  .admin-template-source-lookup { grid-template-columns: minmax(0, 1fr) auto; }
}

.admin-translation-list {
  max-width: 1180px;
  margin: 0 auto;
}

.admin-translation-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid #f4c400;
}

.admin-translation-header h1 {
  margin: 0;
  color: #123b6d;
  font-size: 1.45rem;
  font-weight: 800;
}

.admin-translation-kicker {
  display: block;
  color: #50647a;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-translation-create {
  white-space: nowrap;
}

.admin-translation-disabled-action {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
}

.admin-translation-unavailable {
  color: #66788b;
  font-size: .68rem;
  white-space: nowrap;
}

.admin-translation-table-wrap,
.admin-translation-empty {
  border: 1px solid #c8d5e3;
  border-radius: 6px;
  background: #fff;
}

.admin-translation-table {
  min-width: 900px;
  margin-bottom: 0;
}

.admin-translation-table thead th {
  padding: 9px 10px;
  border-bottom-color: #9db4cd;
  background: #eaf3ff;
  color: #173f70;
  font-size: .75rem;
  white-space: nowrap;
}

.admin-translation-table tbody td {
  padding: 10px;
}

.admin-translation-lane {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border: 1px solid #d29b00;
  border-radius: 4px;
  background: #fff2bd;
  color: #604300;
  font-weight: 800;
}

.admin-translation-updated {
  display: block;
  color: #66788b;
  font-size: .72rem;
  white-space: nowrap;
}

.admin-translation-empty {
  padding: 28px 18px;
  color: #50647a;
  text-align: center;
}

@media (max-width: 767.98px) {
  .admin-translation-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-translation-create {
    align-self: flex-start;
  }

  .admin-translation-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

table.tablesorter thead th:not([data-sort-disabled]) {
  cursor: pointer;
  white-space: nowrap;
}

table.tablesorter thead th:not([data-sort-disabled])::after {
  color: #6c757d;
  content: " ^v";
  font-size: 0.75em;
  margin-left: 0.35rem;
}

table.tablesorter thead th:not([data-sort-disabled])[data-sort-direction="asc"]::after {
  content: " ^";
}

table.tablesorter thead th:not([data-sort-disabled])[data-sort-direction="desc"]::after {
  content: " v";
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
}

body > .container-fluid {
  width: 100%;
  flex: 1 0 auto;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.search-shell {
  max-width: 1600px;
  margin: 0 auto;
}

.tool-panel {
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.select-all-maker {
  padding: 8px 10px 8px 32px;
  border: 1px solid #dde3ea;
  border-radius: 6px;
  margin-bottom: 10px;
}

.maker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.maker-tile {
  min-height: 58px;
  border: 1px solid #d6dde7;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.maker-tile.is-selected,
.is-dirty {
  background: #fff0f4;
  border-color: #d6336c;
}

.maker-code {
  font-size: 0.75rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.maker-count {
  font-size: 0.75rem;
  color: #586174;
}

.car-list {
  min-height: 520px;
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid #d7dde5;
  border-radius: 6px;
}

.car-option {
  display: block;
  padding: 7px 10px;
  border-bottom: 1px solid #edf1f5;
  cursor: pointer;
}

.car-option:hover {
  background: #eef6ff;
}

.selected-summary {
  background: #e8f4fd;
  border: 1px solid #b8d8f0;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 10px;
  min-height: 40px;
}

.empty-state {
  color: #667085;
  margin: 0;
  padding: 12px;
}

.condition-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
}

.range-row,
.inline-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.range-row > .form-select {
  flex: 1 1 120px;
}

.saved-table {
  background: #fff;
}

.saved-table textarea {
  min-width: 180px;
}

.sql-preview {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.85rem;
}

.metric,
.auction-day {
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.metric span {
  display: block;
  color: #667085;
  font-size: 0.8rem;
}

.metric strong {
  display: block;
  font-size: 1.2rem;
}

.photo-frame {
  border: 1px solid #d7dde5;
  border-radius: 6px;
  background: #fff;
}

.result-thumb-link {
  display: inline-flex;
  width: 96px;
  height: 72px;
  align-items: center;
  justify-content: center;
}

.result-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  background: #f3f6fa;
}

.result-thumb-placeholder {
  display: inline-flex;
  width: 96px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  background: #f3f6fa;
  color: #667085;
  font-size: 0.78rem;
}

.result-thumb-link-sm,
.result-thumb-sm {
  width: 72px;
  height: 54px;
}

.text-purple {
  color: #4b0082;
}

.classic-text-table {
  min-width: 1380px;
}

.classic-text-table th {
  text-align: center;
  vertical-align: middle;
  font-size: 0.78rem;
}

.classic-text-table td {
  font-size: 0.82rem;
}

.result-pager {
  padding: 10px 14px;
}

.pager-size-select {
  width: 86px;
}

.result-pagination .page-link {
  min-width: 34px;
}

.result-bidded > td {
  background: #fff8e8;
}

.favorite-head {
  width: 34px;
}

.favorite-chip {
  width: 28px;
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.favorite-chip.is-active {
  background: #ffe8f0;
  border-color: #d6336c;
  color: #a4133c;
}

.favorite-chip.is-busy {
  opacity: 0.55;
}

.favorite-head-a {
  background: #b84466 !important;
}

.favorite-head-b {
  background: #000080 !important;
}

.favorite-head-c {
  background: #8b4513 !important;
}

.favorite-head-d {
  background: #2f4f4f !important;
}

.favorite-head a {
  color: #fff;
  text-decoration: underline;
}

.classic-favorites-table {
  min-width: 1320px;
}

.classic-favorites-table th {
  text-align: center;
  vertical-align: middle;
  font-size: 0.78rem;
}

.classic-favorites-table td {
  font-size: 0.82rem;
}

.photo-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.photo-result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.photo-result-card.is-bidded {
  border-color: #f1c36d;
  background: #fffaf0;
}

.photo-status-badge {
  position: absolute;
  top: 40px;
  left: 10px;
  z-index: 1;
  border-radius: 4px;
  background: #0d6efd;
  color: #fff;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 700;
}

.photo-status-badge.is-hot {
  background: #d6336c;
}

.photo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 24px;
  font-size: 0.78rem;
  color: #334155;
}

.photo-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  background: #f3f6fa;
  color: #667085;
  text-decoration: none;
}

.photo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card-title {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: #1f2937;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.35;
}

.photo-card-title strong {
  flex-basis: 100%;
  color: #0f172a;
}

.photo-card-specs {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid #e6ebf1;
  border-left: 1px solid #e6ebf1;
  font-size: 0.76rem;
}

.photo-card-specs dt,
.photo-card-specs dd {
  min-height: 28px;
  margin: 0;
  padding: 4px 6px;
  border-right: 1px solid #e6ebf1;
  border-bottom: 1px solid #e6ebf1;
}

.photo-card-specs dt {
  background: #f7f9fc;
  color: #475569;
  font-weight: 700;
}

.photo-card-specs dd {
  text-align: right;
}

.photo-card-bid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #b42318;
  font-size: 0.78rem;
}

.photo-card-favorites {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.message-row {
  border: 1px solid #d7dde5;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
  background: #fff;
}

.vehicle-message-form {
  padding-top: 12px;
  border-top: 1px solid #bfd0e5;
}

.vehicle-message-form .form-control {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.vehicle-message-thread {
  max-width: 900px;
  margin-inline: auto;
}

.vehicle-message-thread .message-row,
.bid-message-thread-panel .message-row {
  max-width: 88%;
  margin-bottom: 8px;
}

.message-row.is-customer {
  margin-left: auto;
  border-left: 3px solid #1262c7;
  background: #eef5ff;
}

.message-row.is-sales {
  margin-right: auto;
  border-left: 3px solid #f4bd28;
  background: #fffdf3;
}

.staff-message-preview {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .vehicle-message-thread .message-row,
  .bid-message-thread-panel .message-row {
    max-width: 100%;
  }
}

.bid-shell .tool-panel {
  height: auto;
}

.bid-info-table th {
  width: 18%;
  background: #eef4fb;
  color: #334155;
  white-space: nowrap;
}

.bid-info-table td {
  width: 32%;
}

.bid-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.bid-photo-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  background: #f3f6fa;
}

.bid-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bid-total-table th {
  background: #eef4fb;
  color: #334155;
  white-space: nowrap;
}

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

.bid-reference-rate {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid #9dbce3;
  border-radius: 4px;
  background: #eef5fd;
  color: #0b4f9f;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.bid-reference-comparison {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

.bid-reference-comparison th:first-child {
  width: 40%;
}

.bid-reference-comparison th[scope="row"] {
  background: #f7f9fc;
  color: #1e3555;
  font-weight: 800;
}

.bid-reference-comparison td {
  font-variant-numeric: tabular-nums;
}

.bid-reference-total-row th,
.bid-reference-total-row td {
  border-top-width: 2px;
  background: #eef5fd;
  font-weight: 900;
}

.bid-reference-total-row td {
  color: #b42318 !important;
}

.bid-reference-landed-row th,
.bid-reference-landed-row td {
  background: #f7fbf8;
  color: #166534;
  font-weight: 850;
}

.bid-market-summary {
  border: 1px solid #d7dde5;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.bid-market-history {
  border: 1px solid #d7dde5;
  border-radius: 6px;
  margin-top: 10px;
  padding: 10px;
}

.bid-market-history-result {
  max-height: 360px;
  overflow: auto;
}

.manufacture-year-inline {
  max-width: 420px;
}

.bid-option-group {
  border: 1px solid #d7dde5;
  border-radius: 6px;
  padding: 10px;
}

.market-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
}

.market-price-usd {
  display: none;
}

.market-price-max {
  color: #ff0000;
  font-weight: 700;
}

.market-price-low {
  color: #006600;
  font-weight: 700;
}

.market-price-avg {
  color: #0000ff;
  font-weight: 700;
}

.market-currency-select {
  width: 82px;
}

.market-page-size {
  width: 150px;
}

.market-price-table {
  min-width: 1260px;
  font-size: 0.78rem;
}

.market-regular-content {
  min-height: 240px;
  max-height: 72vh;
  overflow: auto;
}

.market-total {
  color: #000;
  font-weight: 700;
}

.recommend-notes a {
  text-decoration: underline;
}

.recommend-table {
  min-width: 1320px;
}

.recommend-table th {
  text-align: center;
  vertical-align: middle;
  font-size: 0.78rem;
}

.recommend-table td {
  font-size: 0.82rem;
  vertical-align: middle;
}

.recommend-photo {
  width: 86px;
}

.recommend-selected > td {
  background: #bce2e8 !important;
}

.recommend-purchase > td {
  background: #ffff00 !important;
}

.bid-history-selected > td {
  background: #bce2e8 !important;
}

.recently-bid-modal-content {
  min-height: 240px;
  max-height: 72vh;
  overflow: auto;
}

.auth-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(440px, 100%);
}

.compact-list {
  columns: 2;
  margin-bottom: 0;
}

.request-jda-shell {
  max-width: 680px;
}

.request-agreement-panel {
  border-color: #a94442;
}

.request-agreement-panel h2 {
  margin: -14px -14px 14px;
  padding: 10px 14px;
  background: #a94442;
  color: #fff;
  border-radius: 6px 6px 0 0;
}

.classic-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.classic-icon-translation {
  border: 2px solid #6f42c1;
  background: #f2ecff;
  color: #4b0082;
}

.classic-icon-oneprice {
  border: 2px solid #0d6efd;
  background: #e8f1ff;
  color: #084298;
}

.classic-chance {
  display: inline-block;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.classic-chance-warning {
  background: #f25022;
}

.classic-chance-good {
  background: #52b043;
}

.list-auction-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 20px;
}

.list-left-time {
  color: #111827;
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .maker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .condition-grid {
    grid-template-columns: 1fr;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .bid-info-table th,
  .bid-info-table td {
    width: auto;
  }

  .car-list {
    min-height: 260px;
    max-height: 360px;
  }
}

/* Classic-Plus search layout: keeps the Classic workflow while improving scan speed. */
.search-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dce3ec;
}

.search-page-subtitle {
  color: #64748b;
  font-size: 0.82rem;
}

.search-workspace {
  align-items: stretch;
}

.search-panel {
  border-color: #cfd8e5;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.search-panel .panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #172033;
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-panel .panel-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #2563eb;
}

.search-panel-compact {
  padding-bottom: 16px;
}

.search-panel .form-control,
.search-panel .form-select {
  min-height: 38px;
  border-color: #cfd8e5;
  color: #1f2937;
}

.search-panel .form-label {
  margin-bottom: 0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.search-panel .form-check-label {
  color: #334155;
}

.search-panel .form-check-input {
  border-color: #b7c2d0;
}

.select-all-maker {
  display: flex;
  align-items: center;
  min-height: 40px;
  background: #f8fafc;
}

.maker-tile {
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.maker-tile:hover {
  border-color: #8bb7ee;
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.maker-tile.is-selected,
.search-shell .maker-tile.is-selected,
.search-shell .is-dirty {
  background: #fff5f7;
  border-color: #c83263;
  box-shadow: inset 0 0 0 1px rgba(200, 50, 99, 0.14);
}

.search-shell .maker-count {
  font-variant-numeric: tabular-nums;
}

.search-car-panel {
  display: flex;
  flex-direction: column;
}

.search-car-panel .car-list {
  flex: 1 1 auto;
}

.search-car-panel .selected-summary {
  position: sticky;
  bottom: 0;
  font-size: 0.86rem;
  box-shadow: 0 -1px 0 rgba(184, 216, 240, 0.7);
}

.condition-group-title {
  margin: 4px 0 10px;
  padding: 5px 8px;
  border-left: 4px solid #94a3b8;
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.condition-grid-span {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.search-condition-panel .condition-grid {
  grid-template-columns: minmax(96px, 0.38fr) minmax(0, 1fr);
  gap: 9px 12px;
}

.search-condition-panel .inline-options {
  align-items: center;
  min-height: 34px;
}

.search-condition-panel select[multiple] {
  min-height: 104px;
}

.search-action-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.search-action-bar .btn-primary {
  font-weight: 700;
}

.saved-conditions-panel {
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.saved-conditions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.saved-conditions-panel #savedConditionList {
  padding: 0;
}

.saved-conditions-panel .table-responsive {
  margin: 0;
}

.saved-table {
  margin-bottom: 0;
}

.saved-table thead th {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.76rem;
  white-space: nowrap;
}

.saved-table td {
  font-size: 0.8rem;
  vertical-align: middle;
}

.saved-table textarea {
  min-width: 220px;
  resize: vertical;
}

.saved-table td.text-nowrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 992px) {
  .search-page-header {
    align-items: flex-start;
  }

  .search-condition-panel .condition-grid {
    grid-template-columns: 1fr;
  }

  .condition-grid-span {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .search-page-header,
  .saved-conditions-header,
  .search-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-page-header .btn,
  .search-action-bar .btn,
  .saved-conditions-header .btn {
    width: 100%;
  }

  .saved-table td.text-nowrap {
    min-width: 210px;
  }
}
.search-condition-panel .display-field-label {
  grid-column: 1;
}

.search-condition-panel .display-field-label + .inline-options {
  grid-column: 2;
}

@media (max-width: 992px) {
  .search-condition-panel .display-field-label,
  .search-condition-panel .display-field-label + .inline-options {
    grid-column: auto;
  }
}
/* Classic-Plus v2: closer to the selected Product Design option. */
.search-shell {
  max-width: 1660px;
}

.search-page-header {
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 2px 12px;
  border-bottom: 0;
}

.search-page-header h1 {
  color: #0f2f63;
  font-weight: 800;
}

.search-page-subtitle {
  color: #375274;
  font-size: 0.82rem;
}

.search-page-header .btn {
  border-color: #9db0cc;
  color: #12376a;
  font-weight: 700;
  background: #fff;
}

.search-workspace {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 12px;
}

.search-panel {
  padding: 0;
  border-color: #c7d2e2;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: none;
}

.search-panel .panel-title {
  min-height: 42px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #d7e0ec;
  background: linear-gradient(#fbfdff, #eef3f9);
  color: #102f5f;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.search-panel .panel-title::before {
  display: none;
}

.search-panel > .form-select,
.search-panel > .select-all-maker,
.search-panel > .maker-grid,
.search-panel > .car-list,
.search-panel > .selected-summary,
.search-condition-panel > .condition-group-title,
.search-condition-panel > .condition-grid,
.search-condition-panel > .search-action-bar {
  margin-left: 14px;
  margin-right: 14px;
}

.search-panel-compact > .form-select {
  margin-top: 14px;
  margin-bottom: 14px;
}

.search-panel .form-control,
.search-panel .form-select {
  min-height: 34px;
  border-color: #bfcadc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.04);
}

.select-all-maker {
  min-height: 38px;
  margin-top: 14px;
  margin-bottom: 10px;
  padding: 8px 10px 8px 30px;
  border-color: #d3dbe8;
  border-radius: 4px;
  background: #fbfcfe;
}

.maker-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.maker-tile {
  min-height: 52px;
  border-color: #d5ddea;
  border-radius: 4px;
  background: linear-gradient(#fff, #fafbfd);
  color: #102f5f;
}

.maker-tile:hover {
  border-color: #8ea8cc;
  background: #f7fbff;
}

.maker-code {
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.15;
}

.maker-count {
  color: #28456f;
  font-size: 0.72rem;
  font-weight: 700;
}

.search-shell .maker-tile.is-selected,
.search-shell .is-dirty {
  background: #fff8fb;
  border-color: #b91c50;
  color: #102f5f;
  box-shadow: inset 0 0 0 1px rgba(185, 28, 80, 0.16);
}

.search-car-panel .car-list {
  min-height: 520px;
  max-height: 520px;
  margin-top: 14px;
  border-color: #c7d2e2;
  border-radius: 4px;
}

.car-option {
  padding: 7px 12px;
  border-bottom-color: #e6ebf2;
  color: #1f2f46;
}

.car-option:hover {
  background: #f3f8ff;
}

.search-car-panel .selected-summary {
  position: static;
  min-height: 42px;
  margin-top: 10px;
  margin-bottom: 14px;
  border-color: #c7dced;
  border-radius: 4px;
  background: #eef8ff;
  color: #1e3a5f;
  box-shadow: none;
}

.search-condition-panel .condition-group-title {
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-left: 4px solid #7588a3;
  background: #f6f8fb;
  color: #153869;
  font-size: 0.76rem;
  font-weight: 800;
}

.search-condition-panel .condition-grid {
  grid-template-columns: minmax(104px, 0.35fr) minmax(0, 1fr);
  gap: 9px 12px;
  margin-bottom: 0;
}

.search-panel .form-label {
  color: #233b5d;
  font-size: 0.78rem;
  font-weight: 800;
}

.range-row {
  gap: 8px;
}

.range-row > .form-select {
  min-width: 132px;
}

.inline-options {
  gap: 12px;
}

.search-condition-panel select[multiple] {
  min-height: 88px;
}

.search-action-bar {
  margin-top: 14px;
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px solid #dbe3ef;
}

.search-action-bar .btn {
  min-height: 40px;
  border-radius: 4px;
  font-weight: 800;
}

.search-action-bar .btn-primary {
  background: #075fd4;
  border-color: #075fd4;
}

.saved-conditions-panel {
  border-color: #c7d2e2;
  border-radius: 5px;
  box-shadow: none;
}

.saved-conditions-header {
  min-height: 46px;
  padding: 10px 14px;
  border-bottom-color: #d7e0ec;
  background: linear-gradient(#fbfdff, #eef3f9);
  color: #102f5f;
}

.saved-conditions-header h2 {
  color: #102f5f;
  font-weight: 800;
}

.saved-conditions-header .btn-success {
  background: #006f47;
  border-color: #006f47;
  font-weight: 800;
}

.saved-table thead th {
  border-bottom: 1px solid #cbd5e1;
  background: #edf2f8;
  color: #1e3555;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.saved-table td {
  border-color: #e0e6ef;
  color: #1f2f46;
  font-size: 0.78rem;
}

.saved-table textarea {
  min-width: 240px;
  border-radius: 4px;
}

.saved-table .btn {
  min-width: 64px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 800;
}

@media (min-width: 1200px) {
  .search-workspace > .col-xl-3 {
    width: 33.333333%;
  }

  .search-workspace > .col-xl-4 {
    width: 25%;
  }

  .search-workspace > .col-xl-5 {
    width: 41.666667%;
  }
}

@media (max-width: 768px) {
  .search-panel > .form-select,
  .search-panel > .select-all-maker,
  .search-panel > .maker-grid,
  .search-panel > .car-list,
  .search-panel > .selected-summary,
  .search-condition-panel > .condition-group-title,
  .search-condition-panel > .condition-grid,
  .search-condition-panel > .search-action-bar {
    margin-left: 10px;
    margin-right: 10px;
  }
}
.search-condition-panel .condition-validation {
  grid-column: 2;
  min-height: 0;
  margin-top: -6px;
  font-size: 0.76rem;
}

.search-condition-panel .field-validation-valid.condition-validation {
  display: none;
}

@media (max-width: 992px) {
  .search-condition-panel .condition-validation {
    grid-column: auto;
    margin-top: 0;
  }
}
.search-condition-panel label[for="location"] {
  align-self: start;
  padding-top: 8px;
}
/* JDA Classic-Plus shared UI primitives for member241 migration screens. */
.jda-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 2px 12px;
}

.jda-page-header h1 {
  color: #0f2f63;
  font-weight: 800;
}

.jda-page-subtitle {
  color: #375274;
  font-size: 0.82rem;
}

.jda-page-header .btn {
  border-color: #9db0cc;
  color: #12376a;
  font-weight: 700;
  background: #fff;
}

.jda-panel {
  padding: 0;
  border: 1px solid #c7d2e2;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.jda-panel-title {
  min-height: 42px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #d7e0ec;
  background: linear-gradient(#fbfdff, #eef3f9);
  color: #102f5f;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.jda-panel-title::before {
  display: none;
}

.jda-subsection-title {
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-left: 4px solid #7588a3;
  background: #f6f8fb;
  color: #153869;
  font-size: 0.76rem;
  font-weight: 800;
}

.jda-action-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px solid #dbe3ef;
}

.jda-action-bar .btn {
  min-height: 40px;
  border-radius: 4px;
  font-weight: 800;
}

.jda-action-bar .btn-primary {
  background: #075fd4;
  border-color: #075fd4;
}

.jda-data-panel {
  border: 1px solid #c7d2e2;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.jda-data-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border-bottom: 1px solid #d7e0ec;
  background: linear-gradient(#fbfdff, #eef3f9);
  color: #102f5f;
}

.jda-data-panel-header h2,
.jda-data-panel-header h3 {
  color: #102f5f;
  font-weight: 800;
}

.jda-data-table {
  margin-bottom: 0;
}

.jda-data-table thead th {
  border-bottom: 1px solid #cbd5e1;
  background: #edf2f8;
  color: #1e3555;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.jda-data-table td {
  border-color: #e0e6ef;
  color: #1f2f46;
  font-size: 0.78rem;
  vertical-align: middle;
}

.jda-data-table .btn {
  min-width: 64px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 800;
}

@media (max-width: 768px) {
  .jda-page-header,
  .jda-data-panel-header,
  .jda-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .jda-page-header .btn,
  .jda-data-panel-header .btn,
  .jda-action-bar .btn {
    width: 100%;
  }
}
/* JDA Classic-Plus list result screen. */
.list-page-header {
  border-bottom: 1px solid #d7e0ec;
}

.list-page-subtitle {
  font-weight: 700;
}

.list-auction-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.list-auction-status .btn {
  min-width: 118px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 800;
}

.list-left-time {
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 800;
}

.list-result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #102f5f;
}

.list-result-summary h2 {
  color: #102f5f;
  font-weight: 800;
}

.result-pager {
  padding: 0;
}

.result-pager-header h2 {
  font-size: 0.86rem;
}

.list-range-text {
  color: #375274;
  font-size: 0.82rem;
  font-weight: 800;
}

.result-pager-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}

.result-pager-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.result-pager-controls .form-label {
  color: #183961;
  font-size: 0.78rem;
  font-weight: 800;
}

.result-pager-controls .form-select {
  min-height: 32px;
  border-color: #b9c8dc;
  border-radius: 4px;
  color: #1f2f46;
  font-size: 0.82rem;
}

.result-sort-select {
  min-width: 224px;
}

.result-view-select,
.pager-size-select {
  width: 92px;
}

.result-pagination .pagination {
  gap: 3px;
}

.result-pagination .page-link {
  min-width: 32px;
  min-height: 30px;
  border-color: #b9c8dc;
  border-radius: 4px;
  color: #12376a;
  font-weight: 800;
  text-align: center;
}

.result-pagination .active .page-link {
  background: #075fd4;
  border-color: #075fd4;
  color: #fff;
}

.list-text-panel {
  margin-bottom: 14px;
}

.classic-text-table.jda-data-table thead th {
  padding: 7px 6px;
}

.classic-text-table.jda-data-table td {
  padding: 6px;
}

.jda-photo-results-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.jda-photo-results-grid .photo-result-card {
  border-color: #c7d2e2;
  border-radius: 5px;
  box-shadow: none;
}

.jda-photo-results-grid .photo-card-top {
  margin: -8px -8px 0;
  padding: 7px 8px;
  border-bottom: 1px solid #d7e0ec;
  background: linear-gradient(#fbfdff, #eef3f9);
  color: #102f5f;
  font-weight: 800;
}

.jda-photo-results-grid .photo-card-image {
  border-color: #c7d2e2;
  border-radius: 4px;
}

.jda-photo-results-grid .photo-card-title {
  color: #102f5f;
  font-size: 0.82rem;
  line-height: 1.45;
}

.jda-photo-results-grid .photo-card-specs {
  border-top: 1px solid #dfe7f1;
  border-bottom: 1px solid #dfe7f1;
  padding: 6px 0;
}

.jda-photo-results-grid .photo-card-specs dt,
.jda-photo-results-grid .photo-card-specs dd {
  font-size: 0.76rem;
}

.jda-photo-results-grid .btn {
  min-height: 34px;
  border-radius: 4px;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .list-result-summary,
  .result-pager-body {
    align-items: stretch;
    flex-direction: column;
  }

  .result-pager-controls {
    display: grid;
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
    width: 100%;
  }

  .result-pager-controls .form-select,
  .result-sort-select,
  .result-view-select,
  .pager-size-select {
    width: 100%;
    min-width: 0;
  }

  .result-pagination .pagination {
    flex-wrap: wrap;
  }
}
/* JDA Classic-Plus bid detail screen. */
.bid-page-header {
  align-items: flex-start;
  border-bottom: 1px solid #d7e0ec;
}

.bid-page-header h1 {
  line-height: 1.25;
}

.bid-page-subtitle {
  font-weight: 700;
}

.bid-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bid-header-actions .btn {
  min-height: 32px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.bid-panel {
  border-color: #c7d2e2;
  border-radius: 5px;
  box-shadow: none;
}

.bid-panel > .panel-title,
.bid-panel-header {
  margin: -14px -14px 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #d7e0ec;
  background: linear-gradient(#fbfdff, #eef3f9);
  color: #102f5f;
}

.bid-panel > .panel-title {
  min-height: 42px;
  font-size: 0.92rem;
  font-weight: 800;
}

.bid-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
}

.bid-panel-header .panel-title {
  color: #102f5f;
  font-size: 0.92rem;
  font-weight: 800;
}

.bid-panel-header .badge {
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.bid-info-table.jda-data-table th,
.bid-total-table.jda-data-table th {
  background: #edf2f8;
  color: #1e3555;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: left;
}

.bid-info-table.jda-data-table td,
.bid-total-table.jda-data-table td {
  font-size: 0.8rem;
}

.bid-photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.bid-photo-link {
  border-color: #c7d2e2;
  border-radius: 4px;
}

.manufacture-year-inline {
  padding: 10px;
  border: 1px solid #dfe7f1;
  border-radius: 4px;
  background: #f8fafc;
}

.manufacture-year-inline .form-label,
.bid-budget-form .form-label {
  color: #183961;
  font-size: 0.78rem;
  font-weight: 800;
}

.bid-market-summary,
.bid-market-history,
.bid-option-group {
  border-color: #c7d2e2;
  border-radius: 4px;
  background: #fbfcfe;
}

.bid-option-group .form-check + .form-check {
  padding-top: 10px;
  border-top: 1px solid #dfe7f1;
}

.bid-budget-form .form-select,
.bid-budget-form .form-control,
.manufacture-year-inline .form-control {
  border-color: #b9c8dc;
  border-radius: 4px;
}

.bid-budget-form .btn-primary {
  min-height: 38px;
  border-radius: 4px;
  background: #075fd4;
  border-color: #075fd4;
  font-weight: 800;
}

.bid-cancel-form .btn {
  min-height: 36px;
  border-radius: 4px;
  font-weight: 800;
}

.message-row {
  border-color: #c7d2e2;
  border-radius: 4px;
  box-shadow: none;
}

@media (max-width: 768px) {
  .bid-page-header,
  .bid-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .bid-header-actions,
  .bid-header-actions .btn-group,
  .bid-header-actions .btn {
    width: 100%;
  }

  .bid-header-actions .btn-group .btn {
    width: 50%;
  }
}
/* JDA Classic-Plus bid history screen. */
.bid-history-page-header {
  align-items: flex-start;
  border-bottom: 1px solid #d7e0ec;
}

.bid-history-page-subtitle {
  font-weight: 700;
}

.bid-history-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.bid-history-filter .form-label {
  color: #183961;
  font-size: 0.78rem;
  font-weight: 800;
}

.bid-history-filter .form-select {
  min-width: 160px;
  min-height: 32px;
  border-color: #b9c8dc;
  border-radius: 4px;
  font-size: 0.82rem;
}

.bid-history-filter .btn {
  min-height: 32px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.bid-history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #102f5f;
}

.bid-history-summary h2 {
  color: #102f5f;
  font-weight: 800;
}

.bid-history-panel {
  margin-bottom: 14px;
}

.bid-history-table {
  min-width: 1500px;
}

.bid-history-table.jda-data-table thead th {
  padding: 7px 6px;
  vertical-align: middle;
}

.bid-history-table.jda-data-table td {
  padding: 6px;
  font-size: 0.78rem;
}

.bid-history-table .btn {
  min-width: 58px;
}

.bid-history-table .result-thumb-sm {
  border-radius: 4px;
}

.bid-history-modal {
  border: 1px solid #c7d2e2;
  border-radius: 5px;
}

.bid-history-modal .modal-header {
  border-bottom-color: #d7e0ec;
  background: linear-gradient(#fbfdff, #eef3f9);
  color: #102f5f;
}

.bid-history-modal .modal-title {
  font-weight: 800;
}

@media (max-width: 768px) {
  .bid-history-page-header,
  .bid-history-summary,
  .bid-history-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .bid-history-filter .form-select,
  .bid-history-filter .btn {
    width: 100%;
  }
}
/* JDA Classic-Plus favorites and recently bid screens. */
.favorites-page-header,
.recently-bid-page-header {
  align-items: flex-start;
  border-bottom: 1px solid #d7e0ec;
}

.favorites-page-subtitle,
.recently-bid-page-subtitle {
  font-weight: 700;
}

.favorites-filter,
.recently-bid-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.favorites-filter .form-select,
.recently-bid-filter .form-control {
  min-height: 32px;
  border-color: #b9c8dc;
  border-radius: 4px;
  font-size: 0.82rem;
}

.favorites-filter .form-select {
  min-width: 180px;
}

.recently-bid-filter .form-control {
  width: 140px;
}

.recently-bid-filter .btn {
  min-height: 32px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.favorites-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #102f5f;
}

.favorites-summary h2 {
  color: #102f5f;
  font-weight: 800;
}

.favorites-panel,
.recently-bid-panel {
  margin-bottom: 14px;
}

.favorites-table.jda-data-table {
  min-width: 1320px;
}

.favorites-table.jda-data-table thead th,
.recently-bid-table.jda-data-table thead th {
  padding: 7px 6px;
  vertical-align: middle;
}

.favorites-table.jda-data-table td,
.recently-bid-table.jda-data-table td {
  padding: 6px;
  font-size: 0.78rem;
}

.favorites-table .result-thumb-sm {
  border-radius: 4px;
}

.favorites-table .favorite-chip {
  border-radius: 4px;
}

.recently-bid-table.jda-data-table {
  min-width: 760px;
}

.recently-bid-caption {
  caption-side: top;
  padding: 10px 14px;
  border: 1px solid #d7e0ec;
  border-bottom: 0;
  background: linear-gradient(#fbfdff, #eef3f9);
  color: #102f5f;
  font-size: 0.86rem;
}

.recently-bid-panel .table-responsive {
  margin: 0;
}

@media (max-width: 768px) {
  .favorites-page-header,
  .recently-bid-page-header,
  .favorites-summary,
  .favorites-filter,
  .recently-bid-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .favorites-filter .form-select,
  .recently-bid-filter .form-control,
  .recently-bid-filter .btn {
    width: 100%;
  }
}
/* JDA Classic-Plus recommend and market price screens. */
.recommend-page-header,
.market-price-page-header,
.market-regular-page-header {
  align-items: flex-start;
  border-bottom: 1px solid #d7e0ec;
}

.recommend-page-subtitle,
.market-price-page-subtitle,
.market-regular-page-subtitle {
  font-weight: 700;
}

.recommend-page-header .btn,
.market-regular-page-header .btn {
  min-height: 32px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.recommend-notes-panel {
  padding: 10px 14px;
}

.recommend-notes {
  color: #1f2f46;
  font-size: 0.82rem;
}

.recommend-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #102f5f;
}

.recommend-summary h2 {
  color: #102f5f;
  font-weight: 800;
}

.recommend-table.jda-data-table {
  min-width: 1320px;
}

.recommend-table.jda-data-table thead th,
.market-price-table.jda-data-table thead th,
.market-regular-table.jda-data-table thead th {
  padding: 7px 6px;
  vertical-align: middle;
}

.recommend-table.jda-data-table td,
.market-price-table.jda-data-table td,
.market-regular-table.jda-data-table td {
  padding: 6px;
  font-size: 0.78rem;
}

.market-search-panel {
  padding: 0;
}

.market-price-form {
  padding: 14px;
}

.market-price-form .market-grid {
  grid-template-columns: minmax(112px, 0.4fr) minmax(0, 1fr) minmax(112px, 0.4fr) minmax(0, 1fr);
  gap: 9px 12px;
}

.market-price-form .form-label,
.market-price-form .form-check-label,
.market-result-header .form-label {
  color: #183961;
  font-size: 0.78rem;
  font-weight: 800;
}

.market-price-form .form-select,
.market-price-form .form-control,
.market-result-header .form-select {
  min-height: 34px;
  border-color: #b9c8dc;
  border-radius: 4px;
  font-size: 0.82rem;
}

.market-action-bar {
  margin-bottom: 0;
}

.market-result-panel {
  margin-bottom: 14px;
}

.market-result-header {
  margin-bottom: 0 !important;
}

.market-result-header > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.market-price-table.jda-data-table {
  min-width: 1180px;
}

.market-pager .btn {
  min-width: 34px;
  border-radius: 4px;
  font-weight: 800;
}

.market-page-display {
  color: #102f5f;
  font-size: 0.82rem;
  font-weight: 800;
}

.market-regular-modal {
  border: 1px solid #c7d2e2;
  border-radius: 5px;
}

.market-regular-modal .modal-header {
  border-bottom-color: #d7e0ec;
  background: linear-gradient(#fbfdff, #eef3f9);
  color: #102f5f;
}

.market-regular-modal .modal-title {
  font-weight: 800;
}

.market-regular-panel {
  margin-bottom: 14px;
}

.market-regular-caption {
  caption-side: top;
  padding: 10px 14px;
  border: 1px solid #d7e0ec;
  border-bottom: 0;
  background: linear-gradient(#fbfdff, #eef3f9);
  color: #102f5f;
  font-size: 0.86rem;
}

@media (max-width: 992px) {
  .market-price-form .market-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .recommend-page-header,
  .market-price-page-header,
  .market-regular-page-header,
  .recommend-summary,
  .market-result-header {
    align-items: stretch;
    flex-direction: column;
  }

  .recommend-page-header .btn,
  .market-regular-page-header .btn,
  .market-result-header .form-select {
    width: 100%;
  }
}
/* JDA Classic-Plus home, big photo, and request screens. */
.home-page-header,
.big-photo-page-header,
.request-jda-page-header {
  align-items: flex-start;
  border-bottom: 1px solid #d7e0ec;
}

.home-page-subtitle,
.big-photo-page-subtitle,
.request-jda-page-subtitle {
  font-weight: 700;
}

.home-shell .alert[role="status"] {
  border-color: #f0b7b7;
  border-radius: 4px;
  background: #fff5f5;
  color: #9f1239;
}

.home-shell .metric {
  border-color: #c7d2e2;
  border-radius: 4px;
  box-shadow: none;
}

.home-panel > .row,
.home-panel > .auction-day,
.home-panel > div:not(.jda-panel-title) {
  margin: 14px;
}

.home-panel > .row {
  padding: 0;
}

.home-auction-day {
  border-color: #c7d2e2;
  border-radius: 4px;
  background: #fbfcfe;
  box-shadow: none;
}

.home-auction-day .btn {
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 800;
}

.big-photo-page-header .btn {
  min-height: 32px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.big-photo-panel {
  padding: 14px;
}

.big-photo-panel .photo-frame {
  width: 100%;
  border-color: #c7d2e2;
  border-radius: 4px;
  background: #f3f6fa;
  box-shadow: none;
}

.big-photo-translation-panel dl,
.big-photo-translation-panel .manufacture-year-inline,
.request-instructions-panel > :not(.jda-panel-title),
.request-agreement-panel > :not(.jda-panel-title),
.request-complete-panel > :not(.jda-panel-title) {
  margin-left: 14px;
  margin-right: 14px;
}

.big-photo-translation-panel dl,
.request-instructions-panel ol,
.request-complete-panel ul {
  margin-top: 14px;
}

.request-agreement-panel {
  padding-bottom: 14px;
}

.request-agreement-panel .form-check {
  padding: 10px 14px 10px 38px;
  border: 1px solid #f0b7b7;
  border-radius: 4px;
  background: #fff8fb;
}

.request-agreement-panel .btn-primary {
  min-height: 38px;
  border-radius: 4px;
  background: #075fd4;
  border-color: #075fd4;
  font-weight: 800;
}

.request-error-modal {
  border: 1px solid #c7d2e2;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .home-page-header,
  .big-photo-page-header,
  .request-jda-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .big-photo-page-header .btn {
    width: 100%;
  }
}
/* JDA Classic-Plus v3 selected design tightening. */
:root {
  --jda-v3-ink: #102f5f;
  --jda-v3-text: #172033;
  --jda-v3-muted: #53657d;
  --jda-v3-line: #b8c6d8;
  --jda-v3-line-strong: #9fb0c6;
  --jda-v3-band: #edf2f8;
  --jda-v3-band-soft: #f7f9fc;
  --jda-v3-blue: #075fd4;
}

body {
  background: #eef2f7;
  color: var(--jda-v3-text);
  font-size: 0.875rem;
}

body > .container-fluid {
  max-width: 1680px;
  padding-left: 14px;
  padding-right: 14px;
}

.navbar {
  border-bottom-color: var(--jda-v3-line) !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(16, 47, 95, 0.08);
}

.navbar-brand {
  color: var(--jda-v3-ink) !important;
  font-weight: 800;
}

.navbar .nav-link {
  color: #243b5a !important;
  font-size: 0.84rem;
  font-weight: 700;
}

.navbar .form-select,
.navbar .btn {
  min-height: 30px;
  border-radius: 4px;
  font-size: 0.78rem;
}

.search-shell {
  max-width: 1680px;
  padding-top: 10px;
}

.jda-page-header {
  margin-bottom: 10px;
  padding: 8px 2px 10px;
  border-bottom: 1px solid var(--jda-v3-line);
}

.jda-page-header h1,
.bid-page-header h1 {
  color: var(--jda-v3-ink);
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.jda-page-subtitle,
.bid-page-subtitle,
.home-page-subtitle,
.big-photo-page-subtitle,
.request-jda-page-subtitle {
  color: var(--jda-v3-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.jda-page-header .btn,
.bid-header-actions .btn,
.list-header-actions .btn {
  min-height: 32px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.jda-panel,
.jda-data-panel,
.tool-panel.bid-panel {
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.jda-panel-title,
.jda-data-panel-header,
.bid-panel > .panel-title,
.bid-panel-header,
.saved-conditions-panel .jda-panel-title {
  min-height: 38px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--jda-v3-line);
  background: linear-gradient(#fbfdff, var(--jda-v3-band));
  color: var(--jda-v3-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.jda-subsection-title,
.condition-section-title {
  min-height: 32px;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-left: 4px solid #7f93b2;
  background: var(--jda-v3-band-soft);
  color: var(--jda-v3-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.search-workspace {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
}

.search-panel > form,
.search-panel > .maker-list,
.search-panel > .car-list,
.search-panel > .model-list,
.search-panel > .saved-conditions-panel,
.search-panel > :not(.jda-panel-title):not(.jda-subsection-title) {
  margin: 12px;
}

.search-panel .form-label,
.condition-grid > label,
.condition-row > label,
.saved-conditions-panel label,
.result-pager-controls .form-label,
.bid-budget-form .form-label {
  color: var(--jda-v3-ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.search-panel .form-control,
.search-panel .form-select,
.condition-grid .form-control,
.condition-grid .form-select,
.result-pager-controls .form-select,
.bid-budget-form .form-control,
.bid-budget-form .form-select,
.bid-cancel-form .form-control {
  min-height: 34px;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  color: var(--jda-v3-text);
  font-size: 0.84rem;
}

.search-panel .form-control:focus,
.search-panel .form-select:focus,
.condition-grid .form-control:focus,
.condition-grid .form-select:focus,
.result-pager-controls .form-select:focus,
.bid-budget-form .form-control:focus,
.bid-budget-form .form-select:focus {
  border-color: var(--jda-v3-blue);
  box-shadow: 0 0 0 0.14rem rgba(7, 95, 212, 0.16);
}

.maker-grid {
  gap: 6px;
}

.maker-tile {
  min-height: 46px;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  color: var(--jda-v3-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.maker-tile:hover,
.search-shell .maker-tile.is-selected {
  border-color: var(--jda-v3-blue);
  background: #eef5ff;
}

.maker-count {
  color: #5d7089;
  font-size: 0.72rem;
}

.search-car-panel .car-list,
.search-model-panel .model-list,
.saved-conditions-list {
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
}

.search-car-panel .car-list {
  min-height: 500px;
  max-height: 500px;
}

.condition-grid {
  gap: 8px 10px;
}

.jda-action-bar,
.search-action-bar {
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #d7e0ec;
}

.jda-action-bar .btn,
.search-action-bar .btn,
.result-pager .btn,
.bid-budget-form .btn,
.bid-cancel-form .btn {
  min-height: 38px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 800;
}

.btn-primary,
.jda-action-bar .btn-primary,
.search-action-bar .btn-primary,
.bid-budget-form .btn-primary {
  border-color: var(--jda-v3-blue);
  background: var(--jda-v3-blue);
}

.result-pager {
  margin-bottom: 12px !important;
}

.result-pager-header h2 {
  color: var(--jda-v3-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.result-pager-body {
  padding: 8px 12px;
}

.result-pager-controls {
  gap: 8px 12px;
}

.list-summary,
.bid-summary,
.bid-info-summary {
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  color: var(--jda-v3-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.jda-data-table,
.bid-info-table.jda-data-table,
.bid-history-table.jda-data-table,
.favorites-table.jda-data-table,
.recently-bid-table.jda-data-table,
.market-price-table.jda-data-table {
  border-color: var(--jda-v3-line);
  font-size: 0.8rem;
}

.jda-data-table thead th,
.bid-info-table.jda-data-table th {
  border-bottom-color: var(--jda-v3-line-strong);
  background: #e8eef6;
  color: var(--jda-v3-ink);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.jda-data-table tbody td,
.bid-info-table.jda-data-table td {
  border-color: #d8e1ec;
  vertical-align: middle;
}

.jda-data-table tbody tr:hover {
  background: #f6f9fd;
}

.favorite-chip,
.favorite-toggle {
  min-width: 28px;
  min-height: 28px;
  border-radius: 4px;
  font-weight: 800;
}

.jda-photo-results-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.jda-photo-results-grid .photo-result-card {
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.jda-photo-results-grid .photo-card-top {
  padding: 8px;
  border-bottom-color: #d7e0ec;
  background: #f8fafd;
}

.jda-photo-results-grid .photo-card-title {
  color: var(--jda-v3-ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.jda-photo-results-grid .photo-card-specs {
  padding: 8px;
  font-size: 0.76rem;
}

.jda-photo-results-grid .photo-card-image {
  border-color: #d7e0ec;
  background: #f2f5f9;
}

.jda-photo-results-grid .btn {
  min-height: 30px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 800;
}

.bid-shell .row {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
}

.bid-main-photo {
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #f4f7fb;
}

.bid-info-table.jda-data-table th {
  width: 34%;
  background: #f0f4f9;
}

.bid-budget-form,
.bid-cancel-form {
  padding: 12px;
}

.bid-budget-form .input-group-text {
  border-color: var(--jda-v3-line);
  background: #eef3f9;
  color: var(--jda-v3-ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.bid-alert,
.bid-shell .alert {
  border-radius: 4px;
  font-size: 0.82rem;
}

@media (max-width: 992px) {
  body > .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .search-car-panel .car-list {
    min-height: 260px;
    max-height: 360px;
  }

  .jda-photo-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}

@media (max-width: 768px) {
  .jda-page-header {
    gap: 8px;
    padding-top: 6px;
  }

  .jda-page-header h1,
  .bid-page-header h1 {
    font-size: 1.08rem;
  }

  .search-panel > form,
  .search-panel > .maker-list,
  .search-panel > .car-list,
  .search-panel > .model-list,
  .search-panel > .saved-conditions-panel,
  .search-panel > :not(.jda-panel-title):not(.jda-subsection-title) {
    margin: 10px;
  }

  .jda-photo-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .result-pager-controls {
    align-items: stretch;
  }
}

/* JDA Classic-Plus v3 member workflow alignment. */
.bid-history-shell,
.favorites-shell,
.recently-bid-shell,
.recommend-shell,
.market-price-shell,
.market-regular-shell,
.home-shell,
.big-photo-shell,
.request-jda-shell {
  max-width: 1680px;
}

.bid-history-page-header,
.favorites-page-header,
.recently-bid-page-header,
.recommend-page-header,
.market-price-page-header,
.market-regular-page-header,
.home-page-header,
.big-photo-page-header,
.request-jda-page-header {
  margin-bottom: 10px;
  padding: 8px 2px 10px;
  border-bottom: 1px solid var(--jda-v3-line);
}

.bid-history-page-header h1,
.favorites-page-header h1,
.recently-bid-page-header h1,
.recommend-page-header h1,
.market-price-page-header h1,
.market-regular-page-header h1,
.home-page-header h1,
.big-photo-page-header h1,
.request-jda-page-header h1 {
  color: var(--jda-v3-ink);
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.bid-history-page-subtitle,
.favorites-page-subtitle,
.recently-bid-page-subtitle,
.recommend-page-subtitle,
.market-price-page-subtitle,
.market-regular-page-subtitle {
  color: var(--jda-v3-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.bid-history-filter,
.favorites-filter,
.recently-bid-filter,
.market-price-form,
.market-result-header,
.recommend-notes-panel,
.home-panel,
.big-photo-panel,
.big-photo-translation-panel,
.request-instructions-panel,
.request-agreement-panel,
.request-complete-panel,
.favorites-panel,
.recently-bid-panel,
.recommend-summary,
.market-regular-panel,
.bid-history-summary,
.bid-history-panel {
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.bid-history-filter,
.favorites-filter,
.recently-bid-filter,
.market-price-form,
.market-result-header {
  padding: 10px 12px;
}

.bid-history-filter .form-label,
.favorites-filter .form-label,
.recently-bid-filter .form-label,
.market-price-form .form-label,
.market-price-form .form-check-label,
.market-result-header label,
.request-agreement-panel .form-check-label {
  color: var(--jda-v3-ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.bid-history-filter .form-select,
.favorites-filter .form-select,
.recently-bid-filter .form-control,
.market-price-form .form-select,
.market-price-form .form-control,
.market-result-header .form-select,
.request-agreement-panel .form-control,
.request-agreement-panel .form-select {
  min-height: 34px;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  color: var(--jda-v3-text);
  font-size: 0.84rem;
}

.bid-history-filter .form-select:focus,
.favorites-filter .form-select:focus,
.recently-bid-filter .form-control:focus,
.market-price-form .form-select:focus,
.market-price-form .form-control:focus,
.market-result-header .form-select:focus,
.request-agreement-panel .form-control:focus,
.request-agreement-panel .form-select:focus {
  border-color: var(--jda-v3-blue);
  box-shadow: 0 0 0 0.14rem rgba(7, 95, 212, 0.16);
}

.bid-history-filter .btn,
.favorites-filter .btn,
.recently-bid-filter .btn,
.market-action-bar .btn,
.market-pager .btn,
.home-auction-day .btn,
.big-photo-page-header .btn,
.request-agreement-panel .btn,
.recommend-page-header .btn,
.market-regular-page-header .btn {
  min-height: 34px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
}

.bid-history-summary,
.favorites-summary,
.recommend-summary {
  gap: 10px 16px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.bid-history-summary h2,
.favorites-summary h2,
.recommend-summary h2 {
  color: var(--jda-v3-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.bid-history-summary .text-muted,
.favorites-summary .text-muted,
.recommend-summary .text-muted,
.market-result-header .text-muted {
  color: var(--jda-v3-muted) !important;
  font-size: 0.78rem;
  font-weight: 700;
}

.bid-history-table.jda-data-table,
.favorites-table.jda-data-table,
.recently-bid-table.jda-data-table,
.recommend-table.jda-data-table,
.market-price-table.jda-data-table,
.market-regular-table.jda-data-table {
  border-color: var(--jda-v3-line);
  font-size: 0.8rem;
}

.bid-history-table.jda-data-table thead th,
.favorites-table.jda-data-table thead th,
.recently-bid-table.jda-data-table thead th,
.recommend-table.jda-data-table thead th,
.market-price-table.jda-data-table thead th,
.market-regular-table.jda-data-table thead th {
  border-bottom-color: var(--jda-v3-line-strong);
  background: #e8eef6;
  color: var(--jda-v3-ink);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.bid-history-table.jda-data-table td,
.favorites-table.jda-data-table td,
.recently-bid-table.jda-data-table td,
.recommend-table.jda-data-table td,
.market-price-table.jda-data-table td,
.market-regular-table.jda-data-table td {
  border-color: #d8e1ec;
  vertical-align: middle;
}

.bid-history-table .result-thumb-sm,
.favorites-table .result-thumb-sm,
.recommend-photo,
.big-photo-panel .photo-frame {
  border: 1px solid #d7e0ec;
  border-radius: 4px;
  background: #f2f5f9;
}

.recommend-notes-panel .jda-panel-title,
.home-panel .jda-panel-title,
.big-photo-translation-panel .jda-panel-title,
.request-instructions-panel .jda-panel-title,
.request-agreement-panel .jda-panel-title,
.request-complete-panel .jda-panel-title {
  min-height: 38px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--jda-v3-line);
  background: linear-gradient(#fbfdff, var(--jda-v3-band));
  color: var(--jda-v3-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.recommend-notes,
.request-instructions-panel ol,
.request-complete-panel ul,
.big-photo-translation-panel dl {
  color: var(--jda-v3-text);
  font-size: 0.84rem;
  line-height: 1.55;
}

.market-price-form .market-grid {
  gap: 8px 10px;
}

.market-action-bar {
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #d7e0ec;
}

.market-result-header {
  margin-bottom: 10px !important;
}

.market-page-display,
.recently-bid-caption,
.market-regular-caption {
  color: var(--jda-v3-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.market-regular-caption {
  border-color: var(--jda-v3-line);
  background: linear-gradient(#fbfdff, var(--jda-v3-band));
}

.market-regular-modal,
.bid-history-modal,
.request-error-modal {
  border-color: var(--jda-v3-line);
  border-radius: 5px;
}

.market-regular-modal .modal-header,
.bid-history-modal .modal-header,
.request-error-modal .modal-header {
  border-bottom-color: var(--jda-v3-line);
  background: linear-gradient(#fbfdff, var(--jda-v3-band));
  color: var(--jda-v3-ink);
}

.home-shell .metric {
  padding: 10px 12px;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
}

.home-auction-day {
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fbfcfe;
}

.home-auction-day:hover {
  border-color: var(--jda-v3-line-strong);
  background: #f7fafe;
}

.big-photo-panel {
  padding: 12px;
}

.big-photo-translation-panel dt {
  color: var(--jda-v3-ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.big-photo-translation-panel dd {
  color: var(--jda-v3-text);
  font-size: 0.84rem;
}

.request-agreement-panel .form-check {
  border-color: #e5b2bd;
  border-radius: 4px;
  background: #fff8fb;
}

.home-shell .alert,
.bid-history-shell .alert,
.favorites-shell .alert,
.recently-bid-shell .alert,
.recommend-shell .alert,
.market-price-shell .alert,
.request-jda-shell .alert {
  border-radius: 4px;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .bid-history-page-header h1,
  .favorites-page-header h1,
  .recently-bid-page-header h1,
  .recommend-page-header h1,
  .market-price-page-header h1,
  .market-regular-page-header h1,
  .home-page-header h1,
  .big-photo-page-header h1,
  .request-jda-page-header h1 {
    font-size: 1.08rem;
  }

  .bid-history-filter,
  .favorites-filter,
  .recently-bid-filter,
  .market-price-form,
  .market-result-header {
    padding: 10px;
  }
}

/* JDA Classic-Plus v3 search screen focused refinement. */
.search-page-header {
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 10px 2px 12px;
}

.search-page-header h1 {
  color: #0d3368;
  font-size: 1.34rem;
  font-weight: 850;
}

.search-page-subtitle {
  color: #4a5f79;
  font-size: 0.8rem;
}

.search-header-link,
.search-action-bar .btn,
.saved-conditions-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.search-header-link {
  border-color: #a8b8cf;
  background: #fff;
  color: #12376a;
}

.search-workspace {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 12px;
  align-items: stretch;
}

.search-workspace > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.search-workspace .search-panel {
  width: 100%;
}

.search-panel {
  border: 1px solid #b8c6d8;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.search-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  background: linear-gradient(#ffffff, #eaf0f7);
}

.search-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #7890b0;
  border-radius: 50%;
  background: #102f5f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  flex: 0 0 auto;
}

.search-ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #9fb0c6;
  border-radius: 4px;
  background: #f7f9fc;
  color: #102f5f;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

.search-panel-compact > .form-select {
  margin: 12px;
  width: calc(100% - 24px);
}

.select-all-maker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 12px 12px 8px;
  padding: 8px 10px;
  border: 1px solid #d2dbea;
  border-radius: 4px;
  background: #f8fafc;
  color: #102f5f;
  font-size: 0.8rem;
  font-weight: 800;
}

.select-all-maker .form-check-input {
  margin-left: 0;
  margin-top: 0;
}

.maker-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 12px 12px;
}

.maker-tile {
  min-height: 50px;
  padding: 7px 6px;
  border-color: #ccd6e5;
  background: linear-gradient(#fff, #f8fafc);
}

.maker-code {
  font-size: 0.73rem;
  line-height: 1.12;
}

.maker-count {
  margin-top: 3px;
  color: #56708d;
  font-size: 0.71rem;
  font-weight: 800;
}

.search-shell .maker-tile.is-selected,
.search-shell .is-dirty {
  border-color: #0b63ce;
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(7, 95, 212, 0.18);
}

.search-car-panel .car-list {
  min-height: 548px;
  max-height: 548px;
  margin: 12px;
  border: 1px solid #c7d2e2;
  background: #fff;
}

.car-option {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.search-car-panel .selected-summary {
  margin: 0 12px 12px;
  padding: 8px 10px;
  border-color: #bdd4ea;
  background: #f0f7ff;
  color: #163b65;
  font-size: 0.78rem;
  font-weight: 800;
}

.search-condition-panel .condition-group-title {
  display: flex;
  align-items: center;
  min-height: 31px;
  margin: 12px 12px 8px;
  padding: 7px 10px;
  border-left: 4px solid #6f84a3;
  background: #f3f6fa;
  color: #102f5f;
  font-size: 0.76rem;
}

.search-condition-panel .condition-grid {
  grid-template-columns: minmax(96px, 0.28fr) minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0 12px;
  align-items: center;
}

.search-condition-panel .form-label {
  margin-bottom: 0;
  color: #173960;
  font-size: 0.76rem;
  line-height: 1.2;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.range-row > .form-select {
  min-width: 0;
}

.search-condition-panel .form-control,
.search-condition-panel .form-select {
  min-height: 35px;
  border-color: #b8c6d8;
  background-color: #fff;
  font-size: 0.84rem;
}

.search-condition-panel .inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 34px;
  align-items: center;
  padding: 5px 0;
}

.search-condition-panel .form-check-inline {
  margin-right: 0;
}

.search-condition-panel .form-check-label {
  color: #172033;
  font-size: 0.84rem;
}

.search-condition-panel select[multiple] {
  min-height: 102px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.search-condition-panel .condition-validation {
  grid-column: 2;
  margin-top: -4px;
}

.search-action-bar {
  margin: 12px;
  padding-top: 12px;
}

.search-action-bar .btn {
  min-height: 40px;
  letter-spacing: 0;
}

.search-primary-action {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.saved-conditions-panel {
  margin-top: 12px !important;
}

.saved-conditions-header {
  min-height: 42px;
}

@media (min-width: 1200px) {
  .search-workspace > .col-xl-3 {
    width: 31%;
  }

  .search-workspace > .col-xl-4 {
    width: 27%;
  }

  .search-workspace > .col-xl-5 {
    width: 42%;
  }
}

@media (max-width: 992px) {
  .search-car-panel .car-list {
    min-height: 300px;
    max-height: 380px;
  }

  .search-condition-panel .condition-grid {
    grid-template-columns: minmax(90px, 0.28fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .search-page-header,
  .saved-conditions-header {
    align-items: stretch;
  }

  .maker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-condition-panel .condition-grid {
    grid-template-columns: 1fr;
  }

  .condition-grid-span,
  .search-condition-panel .condition-validation,
  .search-condition-panel .display-field-label,
  .search-condition-panel .display-field-label + .inline-options {
    grid-column: auto;
  }
}

/* Replace temporary letter markers with compact visual glyphs on the search screen. */
.search-ui-icon::before,
.search-ui-icon::after {
  content: "";
  display: block;
  box-sizing: border-box;
}

.search-ui-icon-calendar {
  position: relative;
  background:
    linear-gradient(#102f5f, #102f5f) 4px 6px / 10px 1px no-repeat,
    linear-gradient(#102f5f, #102f5f) 4px 10px / 10px 1px no-repeat,
    #f7f9fc;
}

.search-ui-icon-calendar::before {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 10px;
  height: 11px;
  border: 1px solid #102f5f;
  border-radius: 2px;
}

.search-ui-icon-maker {
  position: relative;
  background:
    linear-gradient(135deg, transparent 48%, #102f5f 49% 55%, transparent 56%) 4px 5px / 10px 8px no-repeat,
    linear-gradient(#102f5f, #102f5f) 4px 11px / 10px 1px no-repeat,
    #f7f9fc;
}

.search-ui-icon-maker::before {
  position: absolute;
  bottom: 3px;
  left: 4px;
  width: 10px;
  height: 3px;
  border: 1px solid #102f5f;
  border-top: 0;
}

.search-ui-icon-car {
  position: relative;
  background: #f7f9fc;
}

.search-ui-icon-car::before {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 10px;
  height: 5px;
  border: 1px solid #102f5f;
  border-radius: 2px 2px 1px 1px;
}

.search-ui-icon-car::after {
  position: absolute;
  left: 5px;
  bottom: 4px;
  width: 8px;
  height: 2px;
  border-left: 2px solid #102f5f;
  border-right: 2px solid #102f5f;
}

.search-ui-icon-filter {
  position: relative;
  background: #f7f9fc;
}

.search-ui-icon-filter::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-top: 8px solid #102f5f;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.search-ui-icon-bookmark,
.search-ui-icon-reset,
.search-ui-icon-submit,
.search-ui-icon-save {
  position: relative;
}

.search-ui-icon-bookmark::before {
  width: 8px;
  height: 12px;
  border: 1px solid #102f5f;
  border-bottom: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

.search-ui-icon-reset::before {
  width: 10px;
  height: 10px;
  border: 2px solid #102f5f;
  border-right-color: transparent;
  border-radius: 50%;
}

.search-ui-icon-submit::before {
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

.search-ui-icon-submit {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.search-ui-icon-save::before {
  width: 10px;
  height: 10px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.saved-conditions-header .search-ui-icon-save {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}


/* JDA Classic-Plus v3 search lower workflow refinement. */
.search-condition-panel .condition-grid > label[for="oneprice"],
.search-condition-panel .condition-grid > label[for="lefthandle"],
.search-condition-panel .display-field-label,
.search-condition-panel .condition-grid > label[for="psn"] {
  align-self: center;
}

.search-condition-panel .condition-grid > .form-check:not(.form-check-inline) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  margin-bottom: 0;
  padding: 6px 10px;
  border: 1px solid #d7e0ec;
  border-radius: 4px;
  background: #fbfcfe;
}

.search-condition-panel .condition-grid > .form-check:not(.form-check-inline) .form-check-input {
  margin-left: 0;
  margin-top: 0;
}

.search-condition-panel .condition-grid > .form-check:not(.form-check-inline) .form-check-label {
  color: #172033;
  font-size: 0.82rem;
  font-weight: 700;
}

.search-condition-panel .inline-options .form-check-input,
.search-condition-panel .condition-grid > .form-check .form-check-input,
.select-all-maker .form-check-input,
.car-option .form-check-input {
  border-color: #9fb0c6;
  box-shadow: none;
}

.search-condition-panel .inline-options .form-check-input:checked,
.search-condition-panel .condition-grid > .form-check .form-check-input:checked,
.select-all-maker .form-check-input:checked,
.car-option .form-check-input:checked {
  border-color: #075fd4;
  background-color: #075fd4;
}

.search-action-bar {
  position: sticky;
  bottom: 8px;
  z-index: 3;
  border: 1px solid #c7d2e2;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -1px 6px rgba(16, 47, 95, 0.08);
}

.search-action-bar .btn-outline-secondary {
  border-color: #8ea0b8;
  background: #fff;
  color: #53657d;
}

.search-action-bar .btn-outline-secondary:hover {
  background: #f4f7fb;
  color: #102f5f;
}

.search-primary-action {
  min-width: 180px;
}

.saved-conditions-panel {
  border-color: #b8c6d8;
  border-radius: 4px;
  overflow: hidden;
}

.saved-conditions-header {
  border-bottom: 1px solid #b8c6d8;
  background: linear-gradient(#ffffff, #eaf0f7);
}

.saved-conditions-header h2 {
  color: #102f5f;
  font-size: 0.95rem;
  font-weight: 850;
}

.saved-conditions-panel #savedConditionList {
  padding: 0;
  background: #fff;
}

.saved-conditions-panel .alert {
  margin: 12px;
  border-radius: 4px;
  font-size: 0.84rem;
}

.saved-conditions-panel .table-responsive {
  max-height: 460px;
  border-top: 0;
}

.saved-table {
  margin-bottom: 0;
  min-width: 1220px;
}

.saved-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #aebcd0;
  background: #e8eef6;
  color: #102f5f;
  font-size: 0.72rem;
  font-weight: 850;
  text-align: left;
  white-space: nowrap;
}

.saved-table tbody td {
  border-color: #dce4ef;
  color: #172033;
  font-size: 0.78rem;
  vertical-align: middle;
}

.saved-table tbody tr:hover {
  background: #f6f9fd;
}

.saved-table textarea.memo-input {
  min-width: 220px;
  min-height: 42px;
  border-color: #b8c6d8;
  border-radius: 4px;
  font-size: 0.78rem;
  resize: vertical;
}

.saved-table td.text-nowrap {
  min-width: 236px;
}

.saved-table td.text-nowrap .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 68px;
  min-height: 30px;
  margin: 1px 0;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 850;
}

.saved-table .condition-search .search-ui-icon-submit,
.saved-table .memo-save .search-ui-icon-note-save,
.saved-table .condition-delete .search-ui-icon-delete {
  width: 15px;
  height: 15px;
}

.search-ui-icon-note-save,
.search-ui-icon-delete {
  position: relative;
}

.search-ui-icon-note-save::before {
  width: 9px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 1px;
  background:
    linear-gradient(currentColor, currentColor) 2px 3px / 5px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 6px / 5px 1px no-repeat;
}

.search-ui-icon-delete::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 9px;
  height: 10px;
  border: 1px solid currentColor;
  border-top: 0;
  border-radius: 0 0 1px 1px;
}

.search-ui-icon-delete::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 1px;
  background: currentColor;
}

.condition-delete .search-ui-icon-delete {
  border-color: #dc3545;
  color: #dc3545;
  background: #fff;
}

.memo-save .search-ui-icon-note-save {
  border-color: #0d6efd;
  color: #0d6efd;
  background: #fff;
}

@media (max-width: 768px) {
  .search-action-bar {
    position: static;
  }

  .search-primary-action {
    min-width: 0;
  }

  .saved-table td.text-nowrap {
    min-width: 210px;
  }
}

/* JDA Classic-Plus v3 search selection state polish. */
.search-panel:focus-within {
  border-color: #8fa6c4;
  box-shadow: 0 0 0 2px rgba(7, 95, 212, 0.06);
}

.maker-tile {
  position: relative;
}

.search-shell .maker-tile.is-selected::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #075fd4;
  box-shadow: 0 0 0 2px #fff;
}

.search-shell .maker-tile.is-selected .maker-code {
  color: #063b7a;
}

.search-shell .maker-tile.is-selected .maker-count {
  color: #075fd4;
}

.car-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e3eaf4;
  cursor: pointer;
}

.car-option input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}

.car-option:has(input:checked) {
  border-left: 3px solid #075fd4;
  background: #eef5ff;
  color: #0c3970;
  font-weight: 800;
}

.search-car-panel .selected-summary:empty,
.search-car-panel .selected-summary span:empty {
  color: #77869a;
}

.search-car-panel .selected-summary {
  display: block;
  max-height: 76px;
  overflow: auto;
  line-height: 1.35;
}

.search-condition-panel .is-dirty,
.search-condition-panel .form-control.is-dirty,
.search-condition-panel .form-select.is-dirty {
  border-color: #075fd4;
  background-color: #f7fbff;
  box-shadow: inset 3px 0 0 rgba(7, 95, 212, 0.5);
}

.search-condition-panel .form-check.is-dirty,
.search-condition-panel label.is-dirty {
  border-color: #9cc0ec !important;
  background: #eef5ff !important;
}

.search-condition-panel select[multiple].is-dirty {
  border-color: #075fd4;
  background-color: #f7fbff;
}

.search-condition-panel .condition-grid-span::after {
  content: "";
  display: block;
  flex: 1 1 auto;
  height: 1px;
  margin-left: 10px;
  background: #d7e0ec;
}

.search-condition-panel .condition-grid-span {
  gap: 8px;
}

.search-action-bar .btn:focus-visible,
.saved-table .btn:focus-visible,
.maker-tile:focus-visible,
.car-option:focus-within {
  outline: 2px solid rgba(7, 95, 212, 0.55);
  outline-offset: 2px;
}

.saved-table tr[data-condition-id] {
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.saved-table tr[data-condition-id]:hover {
  box-shadow: inset 3px 0 0 #075fd4;
}

.saved-table .condition-search {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}

/* JDA Classic-Plus v3 search chips and choice-state refinement. */
#selectedCarNames {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  vertical-align: middle;
}

.selected-car-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #9cc0ec;
  border-radius: 999px;
  background: #fff;
  color: #0c3970;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.2;
  word-break: break-word;
}

.search-car-panel .selected-summary:has(#selectedCarNames:empty) {
  color: #77869a;
}

.search-condition-panel .inline-options label.is-dirty,
.search-condition-panel .condition-grid > label.form-check.is-dirty {
  color: #0c3970;
  font-weight: 850;
}

.search-condition-panel .inline-options label.is-dirty {
  padding: 3px 7px 3px 5px;
  border: 1px solid #9cc0ec;
  border-radius: 999px;
  background: #eef5ff;
}

.search-condition-panel .inline-options label.is-dirty .form-check-label::after,
.search-condition-panel .condition-grid > label.form-check.is-dirty .form-check-label::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 10px;
  margin-left: 7px;
  border-right: 2px solid #075fd4;
  border-bottom: 2px solid #075fd4;
  transform: rotate(45deg) translateY(-1px);
}

.search-condition-panel .inline-options label.form-check-inline {
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.car-option.is-dirty {
  border-left: 3px solid #075fd4;
  background: #eef5ff;
  color: #0c3970;
  font-weight: 850;
}

.car-option.is-dirty::after {
  content: none;
}

@media (max-width: 768px) {
  .selected-car-chip {
    max-width: 100%;
  }

  .search-car-panel .selected-summary {
    max-height: 112px;
  }
}

/* JDA Classic-Plus v3 search choice chips final spacing pass. */
.search-condition-panel .inline-options label.form-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  margin: 0;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  line-height: 1.1;
}

.search-condition-panel .inline-options label.form-check-inline .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.search-condition-panel .inline-options label.form-check-inline .form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.1;
}

.search-condition-panel .inline-options label.is-dirty {
  padding: 3px 7px;
  border-color: #9cc0ec;
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(7, 95, 212, 0.05);
}

.search-condition-panel .inline-options label.is-dirty .form-check-label::after,
.search-condition-panel .condition-grid > label.form-check.is-dirty .form-check-label::after {
  width: 5px;
  height: 9px;
  margin-left: 2px;
  transform: rotate(45deg) translateY(-1px);
}

.search-condition-panel .condition-grid > label.form-check.is-dirty .form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#selectedCarNames {
  margin-left: 4px;
}

.selected-car-chip {
  min-height: 21px;
  padding: 2px 8px;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(7, 95, 212, 0.04);
}

.car-option.is-dirty::after {
  content: none;
  width: 5px;
  height: 9px;
}

.search-car-panel .selected-summary {
  padding: 7px 9px;
}

/* JDA Classic-Plus v3 list result screen refinement. */
.list-page-header {
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 10px 2px 12px;
  border-bottom: 1px solid var(--jda-v3-line);
}

.list-page-header h1 {
  color: #0d3368;
  font-size: 1.34rem;
  font-weight: 850;
}

.list-page-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-color: #a8b8cf;
  border-radius: 4px;
  background: #fff;
  color: #12376a;
  font-size: 0.78rem;
  font-weight: 850;
}

.list-auction-status {
  min-height: 42px;
  margin-bottom: 10px !important;
  padding: 8px 12px;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
}

.list-auction-status .btn {
  min-height: 28px;
  min-width: 122px;
  border-radius: 999px;
  letter-spacing: 0;
}

.list-left-time {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid #f0c8a8;
  border-radius: 999px;
  background: #fff8ed;
  color: #9a3412;
  font-size: 0.78rem;
}

.list-result-summary {
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
}

.list-result-summary h2 {
  font-size: 0.95rem;
  font-weight: 850;
}

.list-result-summary .badge {
  border: 1px solid #aebcd0;
  background: #eef3f9 !important;
  color: #102f5f !important;
  font-weight: 850;
}

.result-pager {
  position: sticky;
  top: 8px;
  z-index: 6;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(16, 47, 95, 0.08);
}

.result-pager-header {
  min-height: 38px;
  background: linear-gradient(#ffffff, #eaf0f7);
}

.result-pager-header h2 {
  color: #102f5f;
  font-size: 0.88rem;
  font-weight: 850;
}

.list-range-text {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #c7d2e2;
  border-radius: 999px;
  background: #fff;
  color: #28456f;
  font-size: 0.76rem;
}

.result-pager-body {
  padding: 8px 12px;
  background: #fff;
}

.result-pager-controls {
  gap: 7px 9px;
}

.result-pager-controls .form-label {
  color: #173960;
  font-size: 0.75rem;
}

.result-pager-controls .form-select {
  min-height: 32px;
  border-color: #b8c6d8;
  border-radius: 4px;
  background-color: #fff;
  font-size: 0.8rem;
}

.result-sort-select {
  min-width: 250px;
}

.result-view-select,
.pager-size-select {
  width: 98px;
}

.result-pagination .pagination {
  gap: 4px;
}

.result-pagination .page-link {
  min-width: 31px;
  min-height: 31px;
  padding: 4px 8px;
  border-color: #b8c6d8;
  border-radius: 4px !important;
  background: #fff;
  color: #12376a;
  font-size: 0.78rem;
  font-weight: 850;
}

.result-pagination .page-link:hover {
  border-color: #075fd4;
  background: #eef5ff;
}

.result-pagination .active .page-link {
  border-color: #075fd4;
  background: #075fd4;
  color: #fff;
}

.result-pagination .disabled .page-link {
  color: #8a99ab;
  background: #f4f7fb;
}

.list-text-panel {
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  overflow: hidden;
}

.list-text-panel .table-responsive {
  max-height: calc(100vh - 220px);
}

.classic-text-table.jda-data-table {
  margin-bottom: 0;
  min-width: 1380px;
}

.classic-text-table.jda-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 7px 6px;
  border-bottom-color: #aebcd0;
  background: #e8eef6;
  color: #102f5f;
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.classic-text-table.jda-data-table tbody td {
  padding: 6px;
  border-color: #dce4ef;
  font-size: 0.78rem;
}

.classic-text-table.jda-data-table tbody tr:hover {
  background: #f6f9fd;
  box-shadow: inset 3px 0 0 #075fd4;
}

.classic-text-table .result-bidded,
.classic-text-table tr.result-bidded td {
  background: #fff8ed;
}

.result-thumb-link-sm,
.result-thumb-sm {
  border-radius: 4px;
}

.result-thumb-sm {
  border: 1px solid #c7d2e2;
  background: #f4f7fb;
}

.favorite-chip {
  position: relative;
  min-width: 29px;
  min-height: 29px;
  border-color: #aebcd0;
  border-radius: 4px;
  background: #fff;
  color: #173960;
  font-size: 0.76rem;
  font-weight: 850;
}

.favorite-chip:hover {
  border-color: #075fd4;
  background: #eef5ff;
}

.favorite-chip.is-active {
  border-color: #0f8f61;
  background: #eaf8f1;
  color: #006f47;
  box-shadow: inset 0 0 0 1px rgba(0, 111, 71, 0.12);
}

.favorite-chip.is-active::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0f8f61;
}

.jda-photo-results-grid {
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 12px;
}

.jda-photo-results-grid .photo-result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.jda-photo-results-grid .photo-result-card:hover {
  border-color: #8fa6c4;
  box-shadow: 0 2px 8px rgba(16, 47, 95, 0.1);
}

.jda-photo-results-grid .photo-result-card.is-bidded {
  border-color: #f0c8a8;
  background: #fffaf3;
}

.jda-photo-results-grid .photo-card-top {
  min-height: 32px;
  margin: -8px -8px 0;
  padding: 7px 8px;
  border-bottom: 1px solid #d7e0ec;
  background: linear-gradient(#ffffff, #eaf0f7);
  color: #102f5f;
  font-size: 0.76rem;
  font-weight: 850;
}

.photo-status-badge {
  position: absolute;
  top: 38px;
  left: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  background: #102f5f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 850;
}

.photo-status-badge.is-hot {
  background: #b91c50;
}

.tender-vehicle-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 2px 6px;
  color: #493700;
  background: #ffd75e;
  border: 1px solid #d6aa24;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.photo-tender-badge {
  position: absolute;
  top: 38px;
  left: 8px;
  z-index: 2;
}

.list-tender-badge {
  display: flex;
  margin: 3px auto 0;
}

.bid-page-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
}

@media (max-width: 767.98px) {
  .bid-tender-badge {
    flex-basis: auto;
  }
}

.jda-photo-results-grid .photo-card-image {
  aspect-ratio: 4 / 3;
  border-color: #c7d2e2;
  border-radius: 4px;
  background: #f4f7fb;
  overflow: hidden;
}

.jda-photo-results-grid .photo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jda-photo-results-grid .photo-card-title {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  color: #102f5f;
  font-size: 0.8rem;
  line-height: 1.35;
  text-decoration: none;
}

.jda-photo-results-grid .photo-card-title strong {
  flex: 1 0 100%;
  color: #0d3368;
  font-size: 0.84rem;
}

.jda-photo-results-grid .photo-card-title span:not(:first-child) {
  display: inline-flex;
  min-height: 20px;
  padding: 1px 6px;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  background: #f8fbff;
  color: #28456f;
  font-size: 0.72rem;
  font-weight: 800;
}

.jda-photo-results-grid .photo-card-specs {
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
  gap: 4px 8px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid #dfe7f1;
  border-bottom: 1px solid #dfe7f1;
}

.jda-photo-results-grid .photo-card-specs dt,
.jda-photo-results-grid .photo-card-specs dd {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.25;
}

.jda-photo-results-grid .photo-card-specs dt {
  color: #53657d;
  font-weight: 850;
}

.jda-photo-results-grid .photo-card-specs dd {
  color: #172033;
  font-weight: 700;
  min-width: 0;
}

.photo-card-favorites {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 2px 0;
}

.photo-card-bid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #f0c8a8;
  border-radius: 4px;
  background: #fff8ed;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 850;
}

.jda-photo-results-grid .btn {
  margin-top: auto;
  min-height: 35px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 850;
}

@media (max-width: 992px) {
  .result-pager {
    position: static;
  }

  .jda-photo-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}

@media (max-width: 768px) {
  .list-page-header,
  .list-result-summary,
  .result-pager-body {
    align-items: stretch;
    flex-direction: column;
  }

  .list-page-header .btn,
  .result-pager-controls .form-select,
  .result-sort-select,
  .result-view-select,
  .pager-size-select {
    width: 100%;
    min-width: 0;
  }

  .result-pager-controls {
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  }

  .jda-photo-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* JDA Classic-Plus v3 compact development SQL panel on list screen. */
.list-sql-preview-panel {
  border: 1px solid #c7d2e2;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.list-sql-preview-panel .panel-title {
  min-height: 34px;
  margin: 0;
  padding: 7px 12px;
  border-bottom: 1px solid #d7e0ec;
  background: #f3f6fa;
  color: #53657d;
  font-size: 0.78rem;
  font-weight: 850;
}

.list-sql-preview-panel .sql-preview {
  max-height: 126px;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  background: #fbfcfe;
  color: #334155;
  font-size: 0.72rem;
  line-height: 1.35;
}

/* Tighten the list SQL preview further so result controls stay near the first viewport. */
.list-sql-preview-panel .sql-preview {
  max-height: 72px;
}

.list-sql-preview-panel .panel-title {
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* JDA Classic-Plus v3 photo result card detail pass. */
.jda-photo-results-grid .photo-result-card {
  min-height: 0;
}

.jda-photo-results-grid .photo-card-top .badge {
  border: 1px solid #aebcd0;
  background: #617084 !important;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 850;
}

.jda-photo-results-grid .photo-card-top .text-truncate {
  max-width: 72%;
  color: #28456f;
}

.jda-photo-results-grid .photo-card-image {
  position: relative;
  min-height: 150px;
}

.jda-photo-results-grid .photo-card-image span {
  color: #7a8798;
  font-size: 0.86rem;
  font-weight: 800;
}

.jda-photo-results-grid .photo-card-image::after {
  content: "PHOTO";
  position: absolute;
  right: 6px;
  bottom: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(16, 47, 95, 0.72);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0;
}

.jda-photo-results-grid .photo-card-title strong {
  min-height: 34px;
  line-height: 1.25;
}

.jda-photo-results-grid .photo-card-title .photo-card-chip {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  background: #f8fbff;
  color: #28456f;
  font-size: 0.72rem;
  font-weight: 850;
}

.photo-card-chip-mileage {
  border-color: #bdd4ea !important;
  background: #eef7ff !important;
  color: #0c3970 !important;
}

.photo-card-chip-grade {
  border-color: #e8c6d2 !important;
  background: #fff6fa !important;
  color: #8b1747 !important;
}

.jda-photo-results-grid .photo-card-specs a {
  color: #075fd4;
  font-weight: 850;
  text-decoration: none;
}

.jda-photo-results-grid .photo-card-specs a:hover {
  text-decoration: underline;
}

.jda-photo-results-grid .photo-card-specs .badge {
  border: 1px solid #9cc0ec;
  background: #eef5ff !important;
  color: #0c3970 !important;
  font-size: 0.7rem;
}

.photo-card-price {
  color: #006f47 !important;
  font-weight: 850 !important;
}

.photo-card-favorites::before {
  content: "Favorites";
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
  color: #53657d;
  font-size: 0.7rem;
  font-weight: 850;
}

.photo-card-favorites .favorite-chip {
  min-width: 28px;
  min-height: 28px;
}

.photo-card-bid-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.list-ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}

.list-ui-icon-bid::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

@media (min-width: 1400px) {
  .jda-photo-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  }
}

@media (max-width: 768px) {
  .jda-photo-results-grid .photo-card-title strong {
    min-height: 0;
  }

  .photo-card-favorites {
    flex-wrap: wrap;
  }
}

/* JDA Classic-Plus v3 text result table detail pass. */
.classic-text-table.jda-data-table thead tr:first-child th {
  background: linear-gradient(#f9fbfe, #e7eef7);
}

.classic-text-table.jda-data-table thead tr:nth-child(2) th {
  background: #f3f6fa;
}

.classic-text-table.jda-data-table tbody tr {
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.classic-text-table.jda-data-table tbody td {
  color: #172033;
}

.classic-text-table .text-car-name {
  color: #0d3368;
  font-weight: 850;
  line-height: 1.35;
}

.classic-text-table .text-grade-cell,
.classic-text-table .text-condition-cell {
  text-align: center;
  color: #8b1747;
  font-weight: 850;
}

.classic-text-table .text-condition-cell {
  color: #0c3970;
}

.classic-text-table .text-start-price {
  color: #006f47 !important;
  font-weight: 850;
}

.classic-text-table .text-my-bid {
  color: #9a3412 !important;
  font-weight: 850;
}

.classic-text-table .text-purple {
  color: #075fd4 !important;
  font-weight: 850;
  text-decoration: none;
}

.classic-text-table .text-purple:hover {
  text-decoration: underline;
}

.classic-text-table .text-success {
  color: #006f47 !important;
  font-weight: 850;
}

.classic-text-table .text-bid-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 66px;
  min-height: 29px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 850;
}

.classic-text-table .text-bid-link .list-ui-icon {
  width: 15px;
  height: 15px;
}

.classic-text-table .favorite-head {
  min-width: 34px;
  color: #102f5f;
  font-weight: 850;
}

.classic-text-table td:has(.favorite-chip) {
  min-width: 36px;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.classic-text-table .favorite-chip {
  min-width: 27px;
  min-height: 27px;
}

.classic-text-table .result-thumb-link-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.classic-text-table .result-thumb-sm {
  width: 58px;
  height: 44px;
  object-fit: cover;
}

.classic-text-table .result-thumb-placeholder.result-thumb-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 44px;
  padding: 2px;
  border: 1px solid #c7d2e2;
  border-radius: 4px;
  background: #f4f7fb;
  color: #7a8798;
  font-size: 0.66rem;
  font-weight: 850;
  text-align: center;
}

.classic-text-table tr.result-bidded td {
  border-top-color: #f0c8a8;
  border-bottom-color: #f0c8a8;
}

.classic-text-table tr.result-bidded td:first-child {
  box-shadow: inset 3px 0 0 #d97706;
}

@media (max-width: 768px) {
  .classic-text-table.jda-data-table {
    min-width: 1280px;
  }
}

/* Bid detail v3 alignment. Keeps Classic ASP-compatible form/action/name/data hooks intact. */
.bid-shell {
  max-width: 1680px;
  padding-top: 10px;
}

.bid-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px 2px 10px;
  border-bottom: 1px solid var(--jda-v3-line);
}

.bid-page-header h1 {
  max-width: 980px;
  margin-bottom: 4px;
  color: var(--jda-v3-ink);
  font-size: 1.22rem;
  font-weight: 850;
  line-height: 1.22;
}

.bid-page-subtitle {
  color: var(--jda-v3-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.bid-mobile-auction-status {
  display: none;
}

.bid-header-actions {
  align-items: center;
  gap: 6px;
}

.bid-header-actions .btn-group {
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.bid-more-actions {
  flex: 0 0 auto;
}

.bid-more-actions .dropdown-menu {
  min-width: 220px;
  padding: 4px;
  border-color: #9db4d0;
  border-radius: 4px;
}

.bid-more-actions .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 3px;
  color: #07356f;
  font-size: 0.8rem;
  font-weight: 850;
}

.bid-header-actions .btn,
.bid-action-button,
.bid-nav-button,
.bid-submit-button,
.bid-cancel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.bid-nav-button {
  min-width: 74px;
}

.bid-ui-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: currentColor;
}

.bid-ui-icon::before,
.bid-ui-icon::after {
  position: absolute;
  display: block;
  content: "";
}

.bid-ui-icon-prev::before,
.bid-ui-icon-next::before,
.bid-ui-icon-back::before {
  top: 3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.bid-ui-icon-prev::before,
.bid-ui-icon-back::before {
  left: 4px;
  transform: rotate(-45deg);
}

.bid-ui-icon-next::before {
  right: 4px;
  transform: rotate(135deg);
}

.bid-ui-icon-history::before {
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.bid-ui-icon-history::after {
  left: 6px;
  top: 4px;
  width: 4px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.bid-ui-icon-market::before {
  left: 1px;
  right: 1px;
  bottom: 2px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.bid-ui-icon-market::after {
  left: 4px;
  top: 2px;
  width: 8px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: skew(-18deg);
}

.bid-ui-icon-photo::before {
  inset: 2px 1px 3px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.bid-ui-icon-photo::after {
  left: 4px;
  bottom: 4px;
  width: 7px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.bid-ui-icon-note::before {
  inset: 1px 2px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.bid-ui-icon-note::after {
  left: 5px;
  right: 4px;
  top: 5px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.bid-ui-icon-bid::before {
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.bid-ui-icon-bid::after {
  left: 6px;
  top: 3px;
  width: 2px;
  height: 8px;
  background: currentColor;
  box-shadow: -3px 3px 0 -1px currentColor, 3px -3px 0 -1px currentColor;
}

.bid-ui-icon-cancel::before,
.bid-ui-icon-cancel::after {
  left: 6px;
  top: 2px;
  width: 2px;
  height: 10px;
  border-radius: 2px;
  background: currentColor;
}

.bid-ui-icon-cancel::before {
  transform: rotate(45deg);
}

.bid-ui-icon-cancel::after {
  transform: rotate(-45deg);
}

.tool-panel.bid-panel {
  overflow: hidden;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.bid-panel > .panel-title,
.bid-panel-header {
  min-height: 40px;
  margin: -14px -14px 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--jda-v3-line);
  background: linear-gradient(#fbfdff, var(--jda-v3-band));
  color: var(--jda-v3-ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.bid-panel > .panel-title::before,
.bid-panel-header .panel-title::before {
  display: inline-block;
  width: 4px;
  height: 16px;
  margin-right: 8px;
  border-radius: 2px;
  background: #7f93b2;
  content: "";
  vertical-align: -3px;
}

.bid-panel-header .badge {
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 850;
}

.bid-info-table.jda-data-table,
.bid-total-table.jda-data-table {
  overflow: hidden;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  font-size: 0.8rem;
}

.bid-info-table.jda-data-table th,
.bid-total-table.jda-data-table th {
  width: auto;
  border-color: #d8e1ec;
  background: #edf2f8;
  color: var(--jda-v3-ink);
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.bid-info-table.jda-data-table td,
.bid-total-table.jda-data-table td {
  border-color: #d8e1ec;
  color: var(--jda-v3-text);
  font-size: 0.8rem;
  vertical-align: middle;
}

.bid-info-table.jda-data-table tr:hover td,
.bid-total-table.jda-data-table tr:hover td {
  background: #f6f9fd;
}

.bid-total-table.jda-data-table [data-bid-total],
.bid-total-table.jda-data-table [data-bid-cif],
.bid-total-table.jda-data-table [data-bid-landed] {
  color: #b42318;
  font-size: 0.92rem;
  font-weight: 900;
}

.bid-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}

.bid-photo-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: #f4f7fb;
}

.bid-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 120ms ease, filter 120ms ease;
}

.bid-photo-link:hover img {
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.02);
}

.manufacture-year-inline,
.bid-market-summary,
.bid-market-history,
.bid-option-group {
  padding: 10px;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: #fbfcfe;
}

.bid-market-summary {
  border-left: 4px solid #0f766e;
}

.bid-market-history {
  background: #f8fafc;
}

.bid-option-group .form-check {
  min-height: 48px;
  padding: 10px 10px 10px 34px;
  border: 1px solid #dfe7f1;
  border-radius: 4px;
  background: #fff;
}

.bid-option-group .form-check + .form-check {
  margin-top: 8px !important;
  padding-top: 10px;
}

.bid-option-group .form-check:has(.form-check-input:checked) {
  border-color: #8ab4f8;
  background: #f2f7ff;
  box-shadow: inset 3px 0 0 var(--jda-v3-blue);
}

.bid-budget-panel {
  position: sticky;
  top: 10px;
}

.bid-budget-form,
.bid-cancel-form {
  padding: 12px;
}

.bid-budget-form .form-label {
  color: var(--jda-v3-ink);
  font-size: 0.76rem;
  font-weight: 850;
}

.bid-budget-form .form-select,
.bid-budget-form .form-control,
.manufacture-year-inline .form-control {
  min-height: 36px;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  color: var(--jda-v3-text);
  font-size: 0.84rem;
}

.bid-budget-form #budget {
  min-height: 42px;
  background-color: #fff7f7;
  color: #b42318 !important;
  font-size: 1.02rem;
  font-weight: 900 !important;
}

.bid-budget-form textarea {
  resize: vertical;
}

.bid-budget-form .form-control:focus,
.bid-budget-form .form-select:focus,
.manufacture-year-inline .form-control:focus {
  border-color: var(--jda-v3-blue);
  box-shadow: 0 0 0 0.14rem rgba(7, 95, 212, 0.16);
}

.bid-submit-button,
.bid-budget-form .btn-primary {
  min-height: 40px;
  border-color: var(--jda-v3-blue);
  background: var(--jda-v3-blue);
  font-size: 0.86rem;
  font-weight: 900;
}

.bid-cancel-button {
  min-height: 38px;
  font-weight: 850;
}

.bid-budget-form .bid-examples-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 26px;
  padding: 2px 7px;
  border: 1px solid #b8c9df;
  border-radius: 3px;
  background: #ffffff;
  color: #49617f;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.bid-budget-form .bid-examples-toggle:hover,
.bid-budget-form .bid-examples-toggle:focus-visible,
.bid-budget-form .bid-examples-toggle[aria-expanded="true"] {
  border-color: #79a8e8;
  background: #edf5ff;
  color: #075fd4;
}

.message-row {
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.04);
}

.bid-shell .alert {
  border-radius: 4px;
  font-size: 0.82rem;
}

@media (max-width: 1200px) {
  .bid-budget-panel {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .bid-reference-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .bid-reference-comparison th,
  .bid-reference-comparison td {
    padding: 7px 6px;
  }
}

.result-pager-control {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.list-bottom-pager .result-pagination {
  display: flex;
  justify-content: flex-end;
}

.result-pager-control .form-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.result-pager-control-sort {
  flex: 1 1 280px;
}

.result-pager-control-sort .result-sort-select {
  flex: 1 1 auto;
  width: auto;
  min-width: 190px;
}

.result-pager-control-view,
.result-pager-control-size {
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .result-pager-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .result-pager-control-sort {
    grid-column: 1 / -1;
    width: 100%;
  }

  .result-pager-control .form-select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .bid-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .bid-header-actions {
    justify-content: flex-start;
  }

  .bid-header-actions .btn-group,
  .bid-header-actions .btn,
  .bid-action-button {
    width: 100%;
  }

  .bid-header-actions .btn-group .btn {
    width: 50%;
  }

  .bid-more-actions {
    width: 100%;
  }

  .bid-more-actions .dropdown-menu {
    width: 100%;
  }

  .bid-shell .bid-classic-breadcrumb {
    display: none;
  }

  .bid-page-header h1 {
    font-size: 1.06rem;
  }

  .bid-info-table.jda-data-table,
  .bid-total-table.jda-data-table {
    min-width: 680px;
  }

  .bid-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Market and recently-bid v3 detail pass. */
.market-price-page-header,
.recently-bid-page-header,
.favorites-page-header {
  align-items: center;
  gap: 12px;
}

.market-search-panel {
  overflow: hidden;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.market-price-form {
  padding: 12px;
}

.market-price-form .market-grid {
  display: grid;
  grid-template-columns: minmax(104px, 0.22fr) minmax(0, 1fr) minmax(104px, 0.22fr) minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
}

.market-price-form .form-label,
.market-price-form .form-check {
  margin-bottom: 0;
}

.market-price-form .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d7e0ec;
  border-radius: 4px;
  background: #fbfcfe;
}

.market-price-form .form-check-input {
  margin-left: 0;
  margin-top: 0;
  border-color: #9fb0c6;
}

.market-price-form .form-check-input:checked {
  border-color: var(--jda-v3-blue);
  background-color: var(--jda-v3-blue);
}

.market-price-form .range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.market-action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #d7e0ec;
}

.market-action-bar .btn,
.recently-bid-filter .btn,
.market-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 4px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.market-action-bar .btn {
  min-width: 150px;
  min-height: 38px;
}

.market-ui-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: currentColor;
}

.market-ui-icon::before,
.market-ui-icon::after {
  position: absolute;
  display: block;
  content: "";
}

.market-ui-icon-search::before {
  left: 2px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.market-ui-icon-search::after {
  right: 1px;
  bottom: 2px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.market-ui-icon-reset::before {
  left: 2px;
  top: 2px;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

.market-ui-icon-reset::after {
  left: 1px;
  top: 1px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(-18deg);
}

.market-ui-icon-history::before {
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.market-ui-icon-history::after {
  left: 7px;
  top: 4px;
  width: 4px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.market-search-button .market-ui-icon,
.recently-bid-search-button .market-ui-icon {
  color: #fff;
}

.market-result-panel {
  overflow: hidden;
}

.market-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0 0 10px !important;
  padding: 10px 12px;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: linear-gradient(#fbfdff, var(--jda-v3-band));
}

.market-result-header > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--jda-v3-ink);
  font-size: 0.8rem;
  font-weight: 850;
}

.market-result-header .market-total,
.market-price-max,
.market-price-low,
.market-price-avg {
  font-weight: 900;
}

.market-result-header > .d-flex {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.market-price-table.jda-data-table {
  min-width: 1220px;
  margin-bottom: 0;
}

.market-price-table.jda-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e8eef6;
  text-align: center;
}

.market-price-table.jda-data-table tbody tr:hover,
.recently-bid-table.jda-data-table tbody tr:hover,
.market-regular-table.jda-data-table tbody tr:hover {
  background: #f6f9fd;
}

.market-price-table .market-price-row td:nth-child(4),
.market-price-table .market-price-row td:nth-child(5),
.recently-bid-table td:nth-child(3),
.recently-bid-table td:nth-child(4) {
  color: #0d3368;
  font-weight: 850;
}

.market-price-table .market-price-row td:nth-child(12),
.market-regular-table td:last-child,
.recently-bid-table td:nth-child(6) {
  color: #006f47;
  font-weight: 850;
}

.market-view-button {
  min-width: 72px;
  min-height: 29px;
  font-size: 0.75rem;
}

.market-pager {
  padding: 10px 12px 12px;
  border-top: 1px solid #d7e0ec;
  background: #fbfcfe;
}

.market-pager .btn {
  min-width: 38px;
  min-height: 30px;
}

.market-page-display {
  min-width: 72px;
  padding: 4px 10px;
  border: 1px solid #d7e0ec;
  border-radius: 4px;
  background: #fff;
  text-align: center;
}

.recently-bid-filter {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(88px, 110px) auto;
  gap: 8px;
  align-items: center;
}

.recently-bid-panel {
  overflow: hidden;
}

.recently-bid-panel > .text-muted {
  padding: 12px;
}

.recently-bid-table.jda-data-table,
.market-regular-table.jda-data-table {
  min-width: 860px;
  margin-bottom: 0;
}

.recently-bid-caption,
.market-regular-caption {
  padding: 8px 12px;
  border-bottom: 1px solid var(--jda-v3-line);
  background: linear-gradient(#fbfdff, var(--jda-v3-band));
  caption-side: top;
  color: var(--jda-v3-ink);
  text-align: left;
}

.recently-bid-table + p,
.market-regular-table + p {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid #d7e0ec;
  background: #fbfcfe;
  font-size: 0.78rem;
  font-weight: 850;
}

@media (max-width: 992px) {
  .market-price-form .market-grid {
    grid-template-columns: minmax(96px, 0.28fr) minmax(0, 1fr);
  }

  .market-result-header {
    align-items: stretch;
    flex-direction: column;
  }

  .market-result-header > .d-flex {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .market-price-page-header,
  .recently-bid-page-header,
  .favorites-page-header,
  .market-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .market-price-form .market-grid,
  .recently-bid-filter {
    grid-template-columns: 1fr;
  }

  .market-action-bar .btn,
  .recently-bid-filter .btn,
  .market-result-header .form-select {
    width: 100%;
  }
}

/* Favorites, bid history, and recommend v3 detail pass. */
.favorites-summary,
.bid-history-summary,
.recommend-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
}

.favorites-back-button,
.bid-history-back-button,
.recommend-back-button,
.bid-history-search-button,
.favorites-bid-button,
.bid-history-status-button,
.recommend-bid-button,
.bid-history-recent-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 4px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.favorites-back-button,
.bid-history-back-button,
.recommend-back-button {
  min-height: 32px;
}

.bid-history-search-button {
  min-width: 88px;
}

.favorites-bid-button,
.bid-history-status-button,
.recommend-bid-button {
  min-width: 68px;
  min-height: 30px;
  font-size: 0.76rem;
}

.favorites-bid-button .list-ui-icon,
.bid-history-status-button .list-ui-icon,
.recommend-bid-button .list-ui-icon {
  width: 15px;
  height: 15px;
}

.favorites-bid-button.btn-outline-primary .list-ui-icon,
.bid-history-status-button.btn-outline-primary .list-ui-icon,
.recommend-bid-button.btn-outline-primary .list-ui-icon {
  border-color: #9cc0ec;
  background: #eef5ff;
}

.favorites-bid-button.btn-outline-primary .list-ui-icon-bid::before,
.bid-history-status-button.btn-outline-primary .list-ui-icon-bid::before,
.recommend-bid-button.btn-outline-primary .list-ui-icon-bid::before {
  border-color: #075fd4;
}

.bid-history-recent-link {
  min-width: 48px;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #bdd4ea;
  background: #f4f9ff;
  color: #075fd4;
  font-size: 0.76rem;
  text-decoration: none;
}

.bid-history-recent-link:hover {
  border-color: #8ab4f8;
  background: #eef5ff;
  text-decoration: none;
}

.find-similar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: #075fd4;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.find-similar-link:hover {
  color: #064ea9;
  text-decoration: underline;
}

.find-similar-link .market-ui-icon {
  width: 12px;
  height: 12px;
}

.favorites-panel,
.bid-history-panel,
.recommend-panel {
  overflow: hidden;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.favorites-table.jda-data-table,
.bid-history-table.jda-data-table,
.recommend-table.jda-data-table {
  min-width: 1320px;
  margin-bottom: 0;
}

.favorites-table.jda-data-table thead th,
.bid-history-table.jda-data-table thead th,
.recommend-table.jda-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e8eef6;
  text-align: center;
}

.favorites-table.jda-data-table tbody tr,
.bid-history-table.jda-data-table tbody tr,
.recommend-table.jda-data-table tbody tr {
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.favorites-table.jda-data-table tbody tr:hover,
.bid-history-table.jda-data-table tbody tr:hover,
.recommend-table.jda-data-table tbody tr:hover {
  background: #f6f9fd;
}

.favorites-table td:nth-child(3),
.favorites-table td:nth-child(4),
.bid-history-table td:nth-child(4),
.bid-history-table td:nth-child(5),
.recommend-table td:nth-child(3),
.recommend-table td:nth-child(4) {
  color: #0d3368;
  font-weight: 850;
}

.favorites-table td:nth-child(11),
.bid-history-table td:nth-child(12),
.recommend-table td:nth-child(11) {
  color: #006f47 !important;
  font-weight: 850;
}

.favorites-table td:nth-child(12),
.bid-history-table td:nth-child(13),
.recommend-table td:nth-child(12) {
  color: #9a3412;
  font-weight: 850;
}

.favorites-table .result-thumb-sm,
.bid-history-table .result-thumb-sm,
.recommend-table .result-thumb-sm,
.favorites-table .result-thumb-placeholder,
.bid-history-table .text-muted,
.recommend-table .result-thumb-placeholder {
  border-radius: 4px;
}

.favorites-table .result-thumb-sm,
.bid-history-table .result-thumb-sm,
.recommend-table .result-thumb-sm {
  width: 62px;
  height: 46px;
  object-fit: cover;
}

.favorites-table .text-purple,
.bid-history-table a:not(.btn):not(.bid-history-recent-link),
.recommend-table .text-purple {
  color: #075fd4 !important;
  font-weight: 850;
  text-decoration: none;
}

.favorites-table .text-purple:hover,
.bid-history-table a:not(.btn):not(.bid-history-recent-link):hover,
.recommend-table .text-purple:hover {
  text-decoration: underline;
}

.favorites-table .favorite-head,
.recommend-table .favorite-head {
  min-width: 34px;
  color: var(--jda-v3-ink);
  font-weight: 850;
}

.favorites-table .favorite-chip,
.recommend-table .favorite-chip {
  min-width: 28px;
  min-height: 28px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 850;
}

.favorites-table .favorite-chip.is-active,
.recommend-table .favorite-chip.is-active {
  border-color: #0f766e;
  background: #e9f7f1;
  color: #006f47;
}

.recommend-notes-panel {
  overflow: hidden;
}

.recommend-notes-panel .recommend-notes {
  padding: 10px 14px 10px 28px;
}

.recommend-notes-panel .recommend-notes li + li {
  margin-top: 4px;
}

.recommend-selected td,
.bid-history-selected td {
  background: #eef5ff !important;
  box-shadow: inset 0 1px 0 #bdd4ea, inset 0 -1px 0 #bdd4ea;
}

.recommend-selected td:first-child,
.bid-history-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--jda-v3-blue), inset 0 1px 0 #bdd4ea, inset 0 -1px 0 #bdd4ea;
}

.recommend-purchase td,
.favorites-table tr.table-warning td,
.bid-history-table tr.table-warning td {
  background: #fff8ed !important;
}

@media (max-width: 768px) {
  .favorites-summary,
  .bid-history-summary,
  .recommend-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .favorites-back-button,
  .bid-history-back-button,
  .recommend-back-button {
    width: 100%;
  }
}

/* Home, big photo, and request-to-use v3 detail pass. */
.home-page-header,
.big-photo-page-header,
.request-jda-page-header {
  align-items: center;
  gap: 12px;
}

.home-shell .alert[role="status"] {
  min-height: 38px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-color: #f0c8a8;
  border-radius: 4px;
  background: #fff8ed;
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 850;
}

.home-shell .metric {
  display: flex;
  min-height: 64px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.04);
}

.home-shell .metric span {
  color: var(--jda-v3-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.home-shell .metric strong {
  color: var(--jda-v3-ink);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.25;
}

.home-panel {
  overflow: hidden;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.home-panel > .row {
  padding: 12px;
}

.home-auction-day {
  height: 100%;
  padding: 10px;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: #fbfcfe;
}

.home-auction-day strong {
  color: var(--jda-v3-ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.home-auction-button {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: left;
}

.home-auction-button strong {
  min-width: 46px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(16, 47, 95, 0.08);
  color: currentColor;
  font-size: 0.76rem;
  text-align: center;
}

.home-recommend-button {
  grid-template-columns: minmax(76px, 1fr) auto;
}

.home-auction-button-closed {
  color: #617084;
}

.big-photo-back-button,
.big-photo-check-link,
.big-photo-check-button,
.request-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 4px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.big-photo-panel {
  overflow: hidden;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.big-photo-panel > .row {
  padding: 12px;
}

.big-photo-panel .photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: #f4f7fb;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.big-photo-translation-panel {
  overflow: hidden;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.big-photo-translation-panel dl {
  margin: 0;
  padding: 12px;
}

.big-photo-translation-panel dt {
  color: var(--jda-v3-ink);
  font-size: 0.76rem;
  font-weight: 850;
}

.big-photo-translation-panel dd {
  color: var(--jda-v3-text);
  font-size: 0.84rem;
}

.big-photo-translation-panel .manufacture-year-inline {
  margin: 0 12px 12px;
}

.request-instructions-panel,
.request-agreement-panel,
.request-complete-panel {
  overflow: hidden;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.request-instructions-panel > :not(.jda-panel-title),
.request-agreement-panel > :not(.jda-panel-title),
.request-complete-panel > :not(.jda-panel-title) {
  margin-left: 12px;
  margin-right: 12px;
}

.request-instructions-panel > :last-child,
.request-agreement-panel > :last-child,
.request-complete-panel > :last-child {
  margin-bottom: 12px;
}

.request-agreement-panel .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5b2bd;
  border-radius: 4px;
  background: #fff8fb;
}

.request-agreement-panel .form-check-input {
  margin-left: 0;
  margin-top: 2px;
}

.request-submit-button {
  min-height: 42px;
  margin: 0 12px 12px;
  width: calc(100% - 24px) !important;
  font-size: 0.88rem;
  font-weight: 900;
}

.request-submit-button .market-ui-icon {
  color: #fff;
}

@media (max-width: 768px) {
  .home-auction-button {
    grid-template-columns: minmax(76px, 1fr) auto;
  }

  .home-auction-button span:last-child {
    grid-column: 1 / -1;
  }

  .big-photo-page-header .btn,
  .big-photo-check-link,
  .big-photo-check-button {
    width: 100%;
  }
}

/* Utility, auth, analysis, and catalog v3 detail pass. */
.utility-shell,
.auth-shell {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px;
}

.auth-shell {
  max-width: 560px;
}

.auth-panel-v3,
.utility-panel,
.utility-shell .tool-panel,
.analysis-shell .tool-panel,
.catalog-shell .tool-panel,
.manufacture-shell .tool-panel,
.error-shell .tool-panel {
  overflow: hidden;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.auth-panel-v3 h1,
.utility-shell h1 {
  color: var(--jda-v3-ink);
  font-size: 1.22rem;
  font-weight: 850;
  line-height: 1.22;
}

.auth-panel-v3 > h1,
.utility-shell .tool-panel > h1 {
  display: flex;
  align-items: center;
  min-height: 38px;
  margin: -14px -14px 14px !important;
  padding: 9px 12px;
  border-bottom: 1px solid #b8c8dc;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  color: #07356f !important;
  font-size: 1rem;
  font-weight: 950 !important;
  line-height: 1.2;
  box-shadow: inset 3px 0 0 #ffd15c;
}

.auth-panel-v3 .form-label {
  color: var(--jda-v3-ink);
  font-size: 0.76rem;
  font-weight: 850;
}

.auth-panel-v3 .form-control {
  min-height: 36px;
  border-color: var(--jda-v3-line);
  border-radius: 4px;
  color: var(--jda-v3-text);
  font-size: 0.84rem;
}

.auth-panel-v3 .form-control:focus {
  border-color: var(--jda-v3-blue);
  box-shadow: 0 0 0 0.14rem rgba(7, 95, 212, 0.16);
}

.auth-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 900;
}

.auth-panel-v3 .alert,
.utility-shell .alert {
  border-radius: 4px;
  font-size: 0.84rem;
}

.utility-shell .jda-page-header {
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px 2px 10px;
  border-bottom: 1px solid var(--jda-v3-line);
}

.utility-shell .jda-page-header .btn,
.utility-shell .tool-panel .btn {
  min-height: 32px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 850;
}

.analysis-shell table,
.catalog-shell table {
  margin-bottom: 0;
  border-color: var(--jda-v3-line);
  font-size: 0.8rem;
}

.analysis-shell table thead th,
.catalog-shell table thead th {
  border-bottom-color: var(--jda-v3-line-strong);
  background: #e8eef6;
  color: var(--jda-v3-ink);
  font-size: 0.75rem;
  font-weight: 850;
  white-space: nowrap;
}

.analysis-shell table td,
.catalog-shell table td {
  border-color: #d8e1ec;
  vertical-align: middle;
}

.analysis-shell .metric {
  min-height: 68px;
  padding: 9px 10px;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: #fbfcfe;
}

.analysis-shell .metric span {
  display: block;
  color: var(--jda-v3-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.analysis-shell .metric strong {
  color: var(--jda-v3-ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.compact-list {
  margin-bottom: 0;
  padding-left: 1rem;
  color: var(--jda-v3-text);
  font-size: 0.84rem;
}

.compact-list li + li {
  margin-top: 4px;
}

.manufacture-shell dl,
.error-shell p {
  color: var(--jda-v3-text);
  font-size: 0.84rem;
}

@media (max-width: 768px) {
  .utility-shell .jda-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .utility-shell .jda-page-header .btn {
    width: 100%;
  }
}

/* Shared layout v3 final pass. */
header .navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  margin-bottom: 10px !important;
}

.navbar > .container-fluid {
  max-width: 1680px;
  gap: 8px 12px;
}

.navbar-brand {
  min-width: max-content;
  padding-right: 6px;
  letter-spacing: 0;
}

.navbar-nav {
  gap: 2px;
}

.navbar .nav-link {
  min-height: 32px;
  padding: 7px 8px !important;
  border-radius: 4px;
  line-height: 1.15;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  background: #eef5ff;
  color: var(--jda-v3-blue) !important;
}

.layout-language-form,
.layout-auth-form {
  align-items: center;
  gap: 6px;
}

.layout-language-form .form-select {
  min-width: 132px;
  border-color: var(--jda-v3-line);
  color: var(--jda-v3-ink);
  font-weight: 800;
}

.layout-login-button,
.layout-logout-button {
  min-width: 64px;
  font-weight: 850 !important;
}

body > .container-fluid {
  padding-bottom: 18px;
}

.jda-main-content {
  padding-bottom: 24px !important;
}

.footer {
  position: static !important;
  flex-shrink: 0;
  margin-top: auto;
  padding: 8px 0 10px;
  border-top-color: var(--jda-v3-line) !important;
  background: #f8fafc;
  color: var(--jda-v3-muted) !important;
  font-size: 0.76rem;
  line-height: 1.35;
}

.footer a {
  color: #075fd4;
  font-weight: 800;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .container {
  max-width: 1680px;
}

@media (max-width: 1399.98px) {
  header .navbar {
    position: static;
  }

  .navbar-collapse {
    padding-top: 8px;
  }

  .navbar-nav {
    gap: 3px;
  }

  .layout-language-form,
  .layout-auth-form {
    width: 100%;
    margin-top: 6px;
  }

  .layout-language-form .form-select,
  .layout-login-button,
  .layout-logout-button {
    width: 100%;
  }

  .layout-auth-form {
    flex-wrap: wrap;
  }

  .layout-auth-form .me-2 {
    margin-right: 0 !important;
  }
}

/* JDA Classic-Plus v3 search screen stronger product-design pass. */
.search-shell {
  --search-card-border: #aebdd0;
  --search-card-shadow: 0 10px 24px rgba(30, 55, 90, 0.08);
  --search-card-soft: #f6f9fd;
}

.search-page-header {
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  padding: 8px 2px 12px;
  border-bottom: 1px solid var(--jda-v3-line);
}

.search-page-header h1 {
  color: #0a3268;
  font-size: 1.42rem;
  font-weight: 900;
}

.search-page-subtitle {
  color: #5f7289;
  font-size: 0.82rem;
  font-weight: 800;
}

.search-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border-color: #a8b8cf;
  border-radius: 4px;
  background: #fff;
  color: #12376a;
  font-weight: 850;
}

.search-workspace {
  --bs-gutter-x: 0.85rem;
  --bs-gutter-y: 0.85rem;
}

.search-workspace .search-panel {
  border-color: var(--search-card-border);
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--search-card-shadow);
}

.search-step-title {
  min-height: 42px;
  padding: 8px 11px;
  border-bottom: 1px solid #d6dfeb;
  background: linear-gradient(#fdfefe, #e8eef6);
  color: #0b2e5f;
  font-size: 0.86rem;
  font-weight: 900;
}

.search-step-title .search-ui-icon {
  border-color: #8fa6c4;
  background-color: #fff;
}

.search-panel-hint {
  margin: 10px 12px 0;
  color: #687a90;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
}

.search-panel-compact > .form-select {
  margin-top: 8px;
}

.select-all-maker {
  min-height: 38px;
  margin-top: 8px;
  border-color: #c5d2e4;
  background: #f4f8fd;
}

.maker-grid {
  gap: 8px;
}

.maker-tile {
  min-height: 54px;
  border-color: #c5d2e4;
  background: linear-gradient(#ffffff, #f7fafe);
  text-align: left;
}

.maker-tile:hover {
  border-color: #7fa7dc;
  background: #f0f6ff;
  transform: translateY(-1px);
}

.maker-code {
  color: #173960;
  font-weight: 900;
}

.maker-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 18px;
  min-width: 48px;
  padding: 1px 6px;
  border: 1px solid #d6dfeb;
  border-radius: 999px;
  background: #fff;
  color: #536a84;
}

.search-shell .maker-tile.is-selected {
  border-color: #075fd4;
  background: linear-gradient(#f8fbff, #eaf3ff);
  box-shadow: inset 3px 0 0 #075fd4, 0 4px 10px rgba(7, 95, 212, 0.1);
}

.search-car-panel .car-list {
  margin-top: 8px;
  border-color: #c5d2e4;
  border-radius: 4px;
  background: linear-gradient(#fff, #fbfdff);
}

.car-option {
  min-height: 32px;
  padding: 7px 10px;
}

.search-car-panel .selected-summary {
  border-color: #b7d3f4;
  border-radius: 4px;
  background: #edf6ff;
}

.search-condition-panel .condition-group-title {
  margin-top: 10px;
  border-left-color: #0d4d9a;
  border-radius: 3px;
  background: #eef3f9;
  color: #0d3368;
  font-weight: 900;
}

.search-condition-panel .condition-grid {
  gap: 9px 10px;
}

.condition-inline-row {
  display: grid;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.condition-trans-model-row {
  grid-template-columns: minmax(78px, 0.32fr) minmax(0, 1fr);
}

.condition-display-row {
  grid-template-columns: minmax(72px, 88px) minmax(0, 1fr);
}

.condition-display-row .inline-options {
  flex-wrap: nowrap;
  min-width: 0;
}

.condition-help {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: -5px;
  color: #5f7289;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
}

.condition-help-details {
  position: relative;
  flex: 0 0 auto;
}

.condition-help-details summary {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #7fa5d5;
  border-radius: 50%;
  background: #fff;
  color: #075fd4;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
  list-style: none;
}

.condition-help-details summary::-webkit-details-marker {
  display: none;
}

.condition-help-details summary:focus-visible {
  outline: 2px solid #075fd4;
  outline-offset: 2px;
}

.condition-help-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 8px 10px;
  border: 1px solid #9eb6d5;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(23, 57, 96, 0.16);
  color: #314b6b;
  font-weight: 650;
}

.bid-condition-value {
  display: flex;
  align-items: center;
  gap: 6px;
}

.condition-help-modal-trigger {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  padding: 0;
  place-items: center;
  border: 1px solid #7fa5d5;
  border-radius: 50%;
  background: #fff;
  color: #075fd4;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.condition-help-modal-trigger:hover,
.condition-help-modal-trigger:focus-visible {
  border-color: #075fd4;
  background: #eef5ff;
}

.condition-help-modal-trigger:focus-visible {
  outline: 2px solid #075fd4;
  outline-offset: 2px;
}

.auction-condition-help-modal .modal-content {
  border-color: #9eb6d5;
  border-radius: 5px;
}

.auction-condition-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-left: 3px solid #f4bf24;
  background: #f4f8fd;
  color: #173960;
}

.auction-condition-current strong {
  color: #075fd4;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .condition-help {
    grid-column: auto;
    margin-top: -3px;
  }
}

.search-condition-panel .form-label {
  color: #173960;
  font-weight: 900;
}

.search-condition-panel .form-control,
.search-condition-panel .form-select {
  border-color: #b7c6d9;
  border-radius: 4px;
  background-color: #fff;
}

.search-condition-panel .form-control:hover,
.search-condition-panel .form-select:hover {
  border-color: #8fa6c4;
}

.search-condition-panel .inline-options label.form-check-inline,
.search-condition-panel .condition-grid > .form-check:not(.form-check-inline) {
  border-color: #d6dfeb;
  background: #fbfdff;
}

.search-condition-panel .condition-grid > .form-check:not(.form-check-inline) {
  min-height: 34px;
  border-radius: 4px;
}

.search-action-bar {
  position: sticky;
  bottom: 8px;
  z-index: 5;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #d1dceb;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 18px rgba(36, 55, 85, 0.08);
}

.search-action-bar .btn {
  min-height: 42px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 900;
}

.search-primary-action {
  background: #075fd4;
}

.saved-conditions-panel {
  border-color: var(--search-card-border);
  border-radius: 5px;
  box-shadow: var(--search-card-shadow);
}

.saved-conditions-header {
  border-bottom: 1px solid #d6dfeb;
  background: linear-gradient(#fdfefe, #e8eef6);
}

.saved-conditions-header h2 {
  color: #0b2e5f;
  font-weight: 900;
}

.saved-table thead th {
  background: #edf2f8;
  color: #173960;
  font-size: 0.73rem;
  font-weight: 900;
}

.saved-table td {
  font-size: 0.78rem;
}

@media (max-width: 991.98px) {
  .search-action-bar {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .search-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .search-header-link {
    width: 100%;
  }

}

.search-shell .maker-tile:disabled,
.search-shell .maker-tile.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
  background: #f1f4f8;
  color: #7b8796;
  box-shadow: none;
  transform: none;
}

.search-shell .maker-tile:disabled:hover,
.search-shell .maker-tile.is-disabled:hover {
  border-color: #c5d2e4;
  background: #f1f4f8;
  transform: none;
}

.search-shell .maker-tile:disabled .maker-count,
.search-shell .maker-tile.is-disabled .maker-count {
  border-color: #d7dde6;
  background: #eef2f6;
  color: #8a96a6;
}

/* Search maker label/count readability pass. */
.search-shell .maker-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
  padding: 8px 6px;
  text-align: center;
}

.search-shell .maker-code {
  display: block;
  width: 100%;
  color: #0b2e5f;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.08;
}

.search-shell .maker-count {
  min-width: 58px;
  min-height: 21px;
  padding: 2px 8px;
  border-color: #9db4d0;
  background: #eef5ff;
  color: #0b4f9f;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
}

.search-shell .maker-tile.is-selected .maker-count {
  border-color: #075fd4;
  background: #075fd4;
  color: #fff;
}

.search-shell .maker-tile:disabled .maker-code,
.search-shell .maker-tile.is-disabled .maker-code {
  color: #7b8796;
}

.search-shell .maker-tile:disabled .maker-count,
.search-shell .maker-tile.is-disabled .maker-count {
  border-color: #d7dde6;
  background: #eef2f6;
  color: #8a96a6;
}

/* Search whole-form label/count readability pass. */
.search-shell .search-panel-hint {
  color: #53677f;
  font-size: 0.74rem;
  font-weight: 900;
}

.search-shell .search-panel-compact > .form-select {
  border-color: #9db4d0;
  background: #fbfdff;
  color: #0b2e5f;
  font-weight: 900;
}

.search-shell .select-all-maker {
  justify-content: center;
  border-color: #9db4d0;
  background: #eef5ff;
  color: #0b2e5f;
  font-size: 0.82rem;
  font-weight: 950;
}

.search-shell .car-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 7px 9px;
}

.search-shell .car-option input[type="checkbox"] {
  accent-color: #075fd4;
  justify-self: center;
  width: 13px;
  height: 13px;
  margin: 0;
}

.search-shell .car-option-name {
  color: #0b2e5f;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.16;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-shell .car-option-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid #9db4d0;
  border-radius: 999px;
  background: #eef5ff;
  color: #0b4f9f;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1;
}

.search-shell .car-option:has(input:checked) .car-option-count,
.search-shell .car-option.is-dirty .car-option-count {
  border-color: #075fd4;
  background: #075fd4;
  color: #fff;
}

.search-shell .condition-group-title {
  color: #0b2e5f;
  font-size: 0.78rem;
  font-weight: 950;
}

.search-shell .search-condition-panel .form-label,
.search-shell .search-condition-panel .display-field-label,
.search-shell .search-condition-panel .condition-grid > span.form-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: #0b2e5f;
  font-size: 0.78rem;
  font-weight: 950;
}

.search-shell .range-row .form-select,
.search-shell .search-condition-panel .form-control,
.search-shell .search-condition-panel .form-select {
  color: #0f2f58;
  font-weight: 850;
}

.search-shell .search-condition-panel .inline-options label.form-check-inline,
.search-shell .search-condition-panel .condition-grid > .form-check:not(.form-check-inline) {
  justify-content: center;
  min-height: 32px;
  border-color: #c4d2e4;
  background: #f8fbff;
  color: #0b2e5f;
  font-weight: 900;
}

.search-shell .search-condition-panel .inline-options label.is-dirty,
.search-shell .search-condition-panel .condition-grid > label.form-check.is-dirty {
  border-color: #075fd4 !important;
  background: #eef5ff !important;
  color: #0b4f9f;
}

.search-shell .saved-table thead th {
  color: #0b2e5f;
  font-weight: 950;
}

.search-shell .saved-table td:nth-child(4),
.search-shell .saved-table td:nth-child(5),
.search-shell .saved-table td:nth-child(6),
.search-shell .saved-table td:nth-child(11) {
  color: #0b4f9f;
  font-weight: 900;
  white-space: nowrap;
}

/* Cross-screen label/count readability pass. */
.bid-shell .jda-data-table thead th,
.favorites-shell .jda-data-table thead th,
.bid-history-shell .jda-data-table thead th,
.recently-bid-shell .jda-data-table thead th,
.market-price-shell .jda-data-table thead th,
.market-regular-shell .jda-data-table thead th,
.list-shell .jda-data-table thead th {
  color: #0b2e5f;
  font-weight: 950;
}

.bid-shell .jda-data-table td,
.favorites-shell .jda-data-table td,
.bid-history-shell .jda-data-table td,
.recently-bid-shell .jda-data-table td,
.market-price-shell .jda-data-table td,
.market-regular-shell .jda-data-table td,
.list-shell .jda-data-table td {
  color: #132f52;
}

.bid-shell .jda-data-table td:is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(10), :nth-child(11), :nth-child(12)),
.favorites-shell .jda-data-table td:is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(10), :nth-child(11), :nth-child(12)),
.bid-history-shell .jda-data-table td:is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(10), :nth-child(11), :nth-child(12)),
.recently-bid-shell .jda-data-table td:is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6)),
.market-price-shell .jda-data-table td:is(:nth-child(4), :nth-child(5), :nth-child(12)),
.market-regular-shell .jda-data-table td:last-child,
.list-shell .jda-data-table td:is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(10), :nth-child(11), :nth-child(12)) {
  color: #0b4f9f;
  font-weight: 900;
}

.bid-budget-form .form-label,
.favorites-filter .form-label,
.bid-history-filter .form-label,
.recently-bid-filter .form-label,
.market-price-form .form-label,
.market-price-form .form-check-label,
.market-result-header label,
.big-photo-translation-panel dt {
  color: #0b2e5f;
  font-size: 0.78rem;
  font-weight: 950;
}

.bid-total-table.jda-data-table [data-bid-total],
.bid-total-table.jda-data-table [data-bid-cif],
.bid-total-table.jda-data-table [data-bid-landed],
.market-result-header .market-total,
.market-price-max,
.market-price-low,
.market-price-avg,
.home-shell .metric strong {
  color: #0b4f9f;
  font-weight: 950;
}

.photo-status-badge,
.list-result-summary .badge,
.bid-panel-header .badge,
.favorite-chip {
  font-weight: 950;
}

.photo-card-price,
.photo-card-bid,
.photo-card-chip,
.list-range-text {
  color: #0b4f9f;
  font-weight: 900;
}

/* List and bid numeric clarity pass. */
.jda-photo-results-grid .photo-card-title strong {
  color: #0b2e5f;
  font-size: 0.92rem;
  font-weight: 950;
}

.jda-photo-results-grid .photo-card-chip,
.jda-photo-results-grid .photo-card-specs .badge {
  border-color: #9db4d0 !important;
  background: #eef5ff !important;
  color: #0b4f9f !important;
  font-weight: 950;
}

.jda-photo-results-grid .photo-card-specs dt {
  color: #0b2e5f;
  font-weight: 950;
}

.jda-photo-results-grid .photo-card-specs dd,
.jda-photo-results-grid .photo-card-price,
.jda-photo-results-grid .photo-card-bid strong {
  color: #0b4f9f !important;
  font-weight: 950 !important;
}

.classic-text-table .text-grade-cell,
.classic-text-table .text-condition-cell {
  display: table-cell;
  color: #0b4f9f;
  font-size: 0.82rem;
  font-weight: 950;
}

.classic-text-table td:nth-child(6),
.classic-text-table td:nth-child(8),
.classic-text-table td:nth-child(9),
.classic-text-table td:nth-child(12),
.classic-text-table .text-start-price,
.classic-text-table .text-my-bid {
  color: #0b4f9f !important;
  font-weight: 950;
}

.classic-text-table .text-my-bid {
  color: #b42318 !important;
}

.bid-info-table.jda-data-table th,
.bid-total-table.jda-data-table th {
  color: #0b2e5f;
  font-weight: 950;
}

.bid-info-table.jda-data-table td:nth-child(2),
.bid-info-table.jda-data-table td:nth-child(4),
.bid-total-table.jda-data-table td.text-end,
.bid-total-table.jda-data-table [data-bid-final],
.bid-total-table.jda-data-table [data-bid-option],
.bid-total-table.jda-data-table [data-bid-trans],
.bid-total-table.jda-data-table [data-bid-freight] {
  color: #0b4f9f;
  font-weight: 900;
}

.bid-total-table.jda-data-table [data-bid-total],
.bid-total-table.jda-data-table [data-bid-cif],
.bid-total-table.jda-data-table [data-bid-landed],
.bid-budget-form #budget,
.bid-budget-form [data-bid-usd] {
  color: #b42318 !important;
  font-weight: 950 !important;
}

.bid-market-summary span,
.bid-market-history-result td:nth-child(2),
.bid-market-history-result td:nth-child(4) {
  font-weight: 950;
}

.bid-option-group .form-check-label strong {
  color: #0b2e5f;
  font-weight: 950;
}

.bid-option-group .form-check:has(.form-check-input:checked) .form-check-label {
  color: #0b4f9f;
  font-weight: 900;
}

@media (max-width: 768px) {
  .jda-photo-results-grid .photo-card-title strong {
    font-size: 0.88rem;
  }

  .classic-text-table td:nth-child(6),
  .classic-text-table td:nth-child(8),
  .classic-text-table td:nth-child(9),
  .classic-text-table td:nth-child(12) {
    white-space: nowrap;
  }
}

/* List bid final specificity pass. */
.list-shell .jda-photo-results-grid .photo-card-title .photo-card-chip,
.list-shell .jda-photo-results-grid .photo-card-chip,
.jda-photo-results-grid .photo-card-title .photo-card-chip {
  border-color: #9db4d0 !important;
  background: #eef5ff !important;
  color: #0b4f9f !important;
  font-weight: 950 !important;
}

.list-shell .photo-card-chip-mileage {
  border-color: #075fd4 !important;
  background: #eaf3ff !important;
  color: #073b7a !important;
}

.bid-shell .bid-budget-form .form-label,
.bid-shell .bid-budget-form label.form-label,
.bid-shell .bid-budget-form .fw-bold {
  color: #0b2e5f !important;
  font-weight: 950 !important;
}

.bid-shell .bid-budget-form label[for="budget"],
.bid-shell .bid-budget-form #budget,
.bid-shell .bid-budget-form [data-bid-usd] {
  color: #b42318 !important;
  font-weight: 950 !important;
}

.bid-shell .bid-option-group .small,
.bid-shell .bid-market-summary .small,
.bid-shell .bid-market-history .small {
  color: #4f627a !important;
  font-weight: 850;
}

/* Secondary screens numeric clarity pass. */
.favorites-page-subtitle .text-primary,
.bid-history-page-subtitle .text-primary,
.market-result-header .market-total,
.market-price-max,
.market-price-low,
.market-price-avg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 21px;
  padding: 2px 8px;
  border: 1px solid #9db4d0;
  border-radius: 999px;
  background: #eef5ff;
  color: #0b4f9f !important;
  font-weight: 950;
  line-height: 1;
}

.market-price-low {
  border-color: #9fd0bb;
  background: #edf9f3;
  color: #006f47 !important;
}

.market-price-max {
  border-color: #f0b8b8;
  background: #fff1f1;
  color: #b42318 !important;
}

.favorites-filter,
.bid-history-filter,
.recently-bid-filter,
.market-price-form,
.market-result-header {
  border-color: #aebdd0;
}

.favorites-filter .form-select,
.bid-history-filter .form-select,
.recently-bid-filter .form-control,
.market-price-form .form-select,
.market-price-form .form-control,
.market-result-header .form-select {
  color: #0f2f58;
  font-weight: 900;
}

.favorites-table.jda-data-table thead th,
.bid-history-table.jda-data-table thead th,
.recently-bid-table.jda-data-table thead th,
.market-price-table.jda-data-table thead th,
.market-regular-table.jda-data-table thead th {
  color: #0b2e5f;
  font-weight: 950;
}

.favorites-table td:nth-child(3),
.favorites-table td:nth-child(4),
.favorites-table td:nth-child(11),
.favorites-table td:nth-child(12),
.bid-history-table td:nth-child(4),
.bid-history-table td:nth-child(5),
.bid-history-table td:nth-child(12),
.bid-history-table td:nth-child(13),
.recently-bid-table td:nth-child(3),
.recently-bid-table td:nth-child(4),
.recently-bid-table td:nth-child(6),
.market-price-table .market-price-row td:nth-child(2),
.market-price-table .market-price-row td:nth-child(7),
.market-price-table .market-price-row td:nth-child(8),
.market-price-table .market-price-row td:nth-child(12),
.market-regular-table td:last-child {
  color: #0b4f9f !important;
  font-weight: 950;
}

.market-price-table .market-price-row td:nth-child(12),
.market-regular-table td:last-child,
.recently-bid-table td:nth-child(6) {
  color: #006f47 !important;
}

.favorites-bid-button,
.bid-history-status-button,
.bid-history-recent-link,
.market-view-button {
  font-weight: 950;
}

.home-shell .metric span,
.home-panel .jda-panel-title,
.big-photo-translation-panel .jda-panel-title,
.big-photo-translation-panel dt {
  color: #0b2e5f;
  font-weight: 950;
}

.home-shell .metric strong,
.home-auction-day strong,
.home-auction-button strong {
  color: #0b4f9f;
  font-weight: 950;
}

.home-auction-button strong {
  min-width: 58px;
  border: 1px solid #9db4d0;
  background: #eef5ff;
}

.home-auction-button.btn-success strong,
.home-auction-button.btn-primary strong {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.home-auction-button-closed strong {
  border-color: #d7dde6;
  background: #eef2f6;
  color: #7b8796;
}

.big-photo-translation-panel dd,
.big-photo-translation-panel .manufacture-year-inline .form-control {
  color: #0f2f58;
  font-weight: 900;
}

.big-photo-check-link,
.big-photo-check-button,
.big-photo-back-button {
  font-weight: 950;
}

@media (max-width: 768px) {
  .favorites-page-subtitle .text-primary,
  .bid-history-page-subtitle .text-primary,
  .market-result-header .market-total,
  .market-price-max,
  .market-price-low,
  .market-price-avg {
    min-width: 32px;
  }

  .home-auction-button strong {
    min-width: 48px;
  }
}

/* Utility auth request clarity pass. */
.auth-panel-v3 h1,
.utility-shell h1,
.request-jda-page-header h1 {
  color: #0b2e5f;
  font-weight: 950;
}

.auth-panel-v3 .form-label,
.request-agreement-panel .form-check-label,
.request-instructions-panel .jda-panel-title,
.request-agreement-panel .jda-panel-title,
.request-complete-panel .jda-panel-title,
.manufacture-shell dt,
.utility-shell .panel-title {
  color: #0b2e5f;
  font-weight: 950;
}

.auth-panel-v3 .form-control,
.request-agreement-panel .form-check,
.manufacture-shell dd,
.error-shell p {
  color: #0f2f58;
  font-weight: 900;
}

.auth-submit-button,
.request-submit-button,
.utility-shell .btn,
.request-error-modal .btn {
  font-weight: 950 !important;
}

.analysis-shell table thead th,
.catalog-shell table thead th,
.utility-shell table thead th {
  color: #0b2e5f;
  font-weight: 950;
}

.analysis-shell table td:first-child,
.catalog-shell table td:first-child,
.utility-shell table td:first-child {
  color: #0b2e5f;
  font-weight: 950;
}

.analysis-shell .metric span {
  color: #0b2e5f;
  font-weight: 950;
}

.analysis-shell .metric strong {
  color: #0b4f9f;
  font-weight: 950;
}

.request-instructions-panel .text-nowrap,
.request-complete-panel strong,
.manufacture-shell dd,
.utility-shell code {
  color: #0b4f9f;
  font-weight: 950;
}

.auth-panel-v3 .alert,
.utility-shell .alert,
.request-jda-shell .alert {
  border-radius: 4px;
  font-weight: 850;
}

.request-agreement-panel .form-check:has(.form-check-input:checked) {
  border-color: #075fd4;
  background: #eef5ff;
  box-shadow: inset 3px 0 0 #075fd4;
}

.request-agreement-panel .form-check:has(.form-check-input:checked) .form-check-label {
  color: #0b4f9f;
}

@media (max-width: 768px) {
  .auth-panel-v3 h1,
  .utility-shell h1,
  .request-jda-page-header h1 {
    font-size: 1.08rem;
  }
}

/* Utility table first-column specificity pass. */
.analysis-shell .tool-panel table tbody td:first-child,
.catalog-shell .tool-panel table tbody td:first-child,
.utility-shell .tool-panel table tbody td:first-child {
  color: #0b2e5f !important;
  font-weight: 950 !important;
}

.analysis-shell .tool-panel table tbody td,
.catalog-shell .tool-panel table tbody td,
.utility-shell .tool-panel table tbody td {
  color: #132f52;
}

/* Header footer v3 clarity pass. */
header .navbar {
  border-bottom: 1px solid #064fae !important;
  background: linear-gradient(180deg, #0b3b78 0%, #075fd4 100%) !important;
  box-shadow: 0 3px 10px rgba(12, 35, 70, 0.22) !important;
}

.navbar > .container-fluid {
  min-height: 50px;
  gap: 10px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: #07356f !important;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset 4px 0 0 #ffd15c, 0 1px 4px rgba(0, 0, 0, 0.12);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #075fd4;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
}

.navbar .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7fbff !important;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.navbar .nav-icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.95;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  background: #ffffff;
  color: #075fd4 !important;
  text-decoration: none;
}

.navbar .nav-link.is-active,
.navbar .nav-link.is-active:hover,
.navbar .nav-link.is-active:focus-visible {
  border-color: #ffd15c;
  background: #ffffff;
  color: #07356f !important;
  box-shadow: inset 0 -4px 0 #ffd15c, 0 1px 4px rgba(0, 0, 0, 0.18);
}

.navbar .dropdown-menu {
  min-width: 180px;
  padding: 4px;
  border: 1px solid #9db4d0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(12, 35, 70, 0.2);
}

.navbar .dropdown-item {
  padding: 7px 10px;
  border-radius: 3px;
  color: #17335e;
  font-size: 0.8rem;
  font-weight: 850;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus-visible {
  background: #eef5ff;
  color: #075fd4;
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  background: #ffd15c;
  color: #17335e;
}

.layout-language-form .form-select {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background-color: #ffffff;
  color: #07356f;
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.layout-login-button,
.layout-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 950 !important;
}

.layout-login-button {
  border-color: #ffd15c;
  background: #ffd15c;
  color: #17335e;
}

.layout-login-button:hover,
.layout-login-button:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #07356f;
}

.layout-logout-button {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.layout-logout-button:hover,
.layout-logout-button:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #075fd4;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  background: #fff;
}

.footer {
  border-top: 1px solid #9db4d0 !important;
  background: #eef3f9;
  color: #435a76 !important;
}

.footer .container {
  padding-top: 2px;
  padding-bottom: 2px;
}

.footer .d-flex {
  gap: 8px 14px !important;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #07356f;
  font-weight: 950;
}

.footer .nav-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.footer a:hover,
.footer a:focus-visible {
  border-color: #9db4d0;
  background: #eef5ff;
  text-decoration: none;
}

.footer .text-center {
  color: #53677f;
  font-weight: 850;
}

@media (max-width: 1399.98px) {
  .navbar > .container-fluid {
    align-items: stretch;
  }

  .navbar-brand {
    max-width: calc(100% - 56px);
  }

  .navbar-collapse {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 4px;
    background: #07356f;
    box-shadow: 0 6px 14px rgba(12, 35, 70, 0.24);
  }

  .navbar .nav-link {
    justify-content: flex-start;
    width: 100%;
  }

  .layout-language-form,
  .layout-auth-form {
    gap: 8px;
  }
}

@media (max-width: 575.98px) {
  .footer .d-flex {
    flex-direction: column;
    align-items: center;
  }
}

/* V3 stronger shared business UI pass. */
.jda-page-header {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #b8c8dc;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  box-shadow: inset 4px 0 0 #075fd4, 0 1px 3px rgba(12, 35, 70, 0.08);
}

.jda-page-header h1,
.bid-page-header h1,
.home-page-header h1,
.big-photo-page-header h1,
.request-jda-page-header h1 {
  color: #07356f;
  font-weight: 950;
}

.jda-page-subtitle,
.bid-page-subtitle,
.home-page-subtitle,
.big-photo-page-subtitle,
.request-jda-page-subtitle {
  color: #53677f;
  font-weight: 900;
}

.jda-panel-title,
.jda-data-panel-header,
.bid-panel > .panel-title,
.bid-panel-header,
.saved-conditions-panel .jda-panel-title {
  border-bottom-color: #9db4d0;
  background: linear-gradient(180deg, #0b3b78 0%, #075fd4 100%);
  color: #ffffff;
  font-weight: 950;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.jda-panel-title .search-ui-icon,
.jda-panel-title .list-ui-icon,
.jda-panel-title .bid-ui-icon,
.jda-data-panel-header .search-ui-icon,
.jda-data-panel-header .list-ui-icon,
.jda-data-panel-header .bid-ui-icon {
  color: #ffd15c;
}

.search-step-badge {
  border-color: #ffd15c;
  background: #ffd15c;
  color: #17335e;
  font-weight: 950;
}

.jda-subsection-title,
.condition-section-title {
  border-left-color: #ffd15c;
  border-top: 1px solid #b8c8dc;
  border-right: 1px solid #b8c8dc;
  border-bottom: 1px solid #b8c8dc;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  color: #07356f;
  font-weight: 950;
}

.search-panel .form-label,
.condition-grid > label,
.condition-row > label,
.saved-conditions-panel label,
.result-pager-controls .form-label,
.bid-budget-form .form-label,
.bid-history-filter .form-label,
.favorites-filter .form-label,
.recently-bid-filter .form-label {
  color: #07356f;
  font-weight: 950;
}

.search-panel .form-control,
.search-panel .form-select,
.condition-grid .form-control,
.condition-grid .form-select,
.result-pager-controls .form-select,
.bid-budget-form .form-control,
.bid-budget-form .form-select,
.bid-cancel-form .form-control,
.bid-history-filter .form-select,
.favorites-filter .form-select,
.recently-bid-filter .form-control {
  border-color: #9db4d0;
  color: #132f52;
  font-weight: 750;
}

.jda-action-bar .btn,
.search-action-bar .btn,
.result-pager .btn,
.bid-budget-form .btn,
.bid-cancel-form .btn,
.bid-history-filter .btn,
.favorites-filter .btn,
.recently-bid-filter .btn,
.market-action-bar .btn,
.market-pager .btn,
.home-auction-day .btn,
.big-photo-page-header .btn,
.request-agreement-panel .btn,
.recommend-page-header .btn,
.market-regular-page-header .btn,
.jda-page-header .btn,
.bid-header-actions .btn,
.list-header-actions .btn,
.jda-photo-results-grid .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 4px;
  font-weight: 950 !important;
}

.btn-primary,
.jda-action-bar .btn-primary,
.search-action-bar .btn-primary,
.bid-budget-form .btn-primary,
.recommend-bid-button.btn-primary,
.favorites-bid-button.btn-primary {
  border-color: #075fd4;
  background: #075fd4;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(7, 53, 111, 0.34);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.jda-action-bar .btn-primary:hover,
.search-action-bar .btn-primary:hover,
.bid-budget-form .btn-primary:hover {
  border-color: #064fae;
  background: #064fae;
  color: #fff;
}

.btn-outline-secondary,
.btn-outline-primary {
  font-weight: 950;
}

.jda-data-table thead th,
.bid-info-table.jda-data-table th,
.bid-total-table.jda-data-table th,
.classic-text-table.jda-data-table thead th,
.bid-history-table.jda-data-table thead th,
.favorites-table.jda-data-table thead th,
.recently-bid-table.jda-data-table thead th,
.recommend-table.jda-data-table thead th,
.market-price-table.jda-data-table thead th,
.market-regular-table.jda-data-table thead th {
  border-color: #9db4d0;
  background: #0b3b78;
  color: #ffffff;
  font-weight: 950;
}

.jda-data-table tbody td,
.bid-info-table.jda-data-table td,
.favorites-table.jda-data-table td,
.recently-bid-table.jda-data-table td,
.recommend-table.jda-data-table td,
.market-price-table.jda-data-table td,
.market-regular-table.jda-data-table td {
  color: #132f52;
  font-weight: 750;
}

.list-result-summary,
.list-summary,
.bid-summary,
.bid-info-summary,
.result-pager {
  border-color: #9db4d0;
  background: #ffffff;
  box-shadow: inset 4px 0 0 #ffd15c, 0 1px 3px rgba(12, 35, 70, 0.08);
}

.list-result-summary h2,
.result-pager-header h2 {
  color: #07356f;
  font-weight: 950;
}

.maker-tile {
  border-color: #9db4d0;
  color: #07356f;
  font-weight: 950;
}

.maker-tile:hover,
.search-shell .maker-tile.is-selected {
  border-color: #075fd4;
  background: #eef5ff;
  box-shadow: inset 0 -3px 0 #075fd4;
}

.maker-tile.is-disabled,
.maker-tile:disabled {
  border-color: #d7e0ec;
  background: #f4f7fb;
  color: #8798ad;
  box-shadow: none;
}

.maker-count,
.car-option-count {
  color: #075fd4;
  font-weight: 950;
}

.photo-result-card,
.jda-photo-results-grid .photo-result-card {
  border-color: #9db4d0;
  box-shadow: inset 0 3px 0 #075fd4, 0 1px 3px rgba(12, 35, 70, 0.08);
}

.jda-photo-results-grid .photo-card-top {
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
}

.photo-card-title,
.jda-photo-results-grid .photo-card-title {
  color: #07356f;
  font-weight: 950;
}

.favorite-chip,
.favorite-toggle {
  border-color: #9db4d0;
  color: #07356f;
}

.favorite-chip.is-active,
.favorite-toggle.is-active {
  border-color: #ffd15c;
  background: #075fd4;
  color: #ffffff;
  box-shadow: inset 0 -2px 0 rgba(7, 53, 111, 0.3);
}

@media (max-width: 768px) {
  .jda-page-header {
    padding: 9px 10px;
  }

  .jda-action-bar .btn,
  .search-action-bar .btn {
    min-height: 40px;
  }
}

/* V3 final specificity layer for legacy search/list/bid selectors. */
.search-panel .panel-title,
.search-panel .jda-panel-title,
.search-shell .jda-panel-title,
.list-shell .jda-data-panel-header,
.bid-shell .bid-panel > .panel-title,
.bid-shell .bid-panel-header {
  border-bottom-color: #9db4d0 !important;
  background: linear-gradient(180deg, #0b3b78 0%, #075fd4 100%) !important;
  color: #ffffff !important;
  font-weight: 950 !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.search-panel .panel-title .search-ui-icon,
.search-panel .jda-panel-title .search-ui-icon {
  color: #ffd15c !important;
}

.search-condition-panel .condition-group-title,
.search-shell .condition-group-title,
.search-shell .jda-subsection-title {
  border-left-color: #ffd15c !important;
  border-top: 1px solid #b8c8dc;
  border-right: 1px solid #b8c8dc;
  border-bottom: 1px solid #b8c8dc;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
  color: #07356f !important;
  font-weight: 950 !important;
}

.search-shell .maker-tile:hover,
.search-shell .maker-tile.is-selected,
.search-shell .is-dirty {
  border-color: #075fd4 !important;
  background: #eef5ff !important;
  color: #07356f !important;
  box-shadow: inset 0 -3px 0 #075fd4 !important;
}

.search-shell .maker-tile.is-disabled,
.search-shell .maker-tile:disabled {
  border-color: #d7e0ec !important;
  background: #f4f7fb !important;
  color: #8798ad !important;
  box-shadow: none !important;
}

.search-shell .car-option.is-dirty,
.search-shell .car-option:has(input:checked) {
  border-left: 3px solid #075fd4 !important;
  border-top-color: #d7e0ec !important;
  border-right-color: #d7e0ec !important;
  border-bottom-color: #c9d9ed !important;
  border-left-color: #075fd4 !important;
  background: #eef5ff !important;
  color: #07356f !important;
  box-shadow: none !important;
}

.search-shell .car-option.is-dirty:hover,
.search-shell .car-option:has(input:checked):hover {
  background: #e4efff !important;
  box-shadow: none !important;
}

.classic-text-table.jda-data-table thead th,
.favorites-table.jda-data-table thead th,
.bid-history-table.jda-data-table thead th,
.recently-bid-table.jda-data-table thead th,
.recommend-table.jda-data-table thead th,
.market-price-table.jda-data-table thead th,
.market-regular-table.jda-data-table thead th {
  background: #0b3b78 !important;
  color: #ffffff !important;
  font-weight: 950 !important;
}

/* V3 list pager and bid action polish. */
.result-pagination .pagination {
  align-items: center;
}

.result-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-color: #9db4d0 !important;
  color: #07356f !important;
  font-weight: 950 !important;
}

.result-pagination .pager-edge {
  min-width: 70px;
  padding-inline: 9px;
}

.pager-ui-icon {
  position: relative;
  display: inline-flex;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: currentColor;
}

.pager-ui-icon::before,
.pager-ui-icon::after {
  position: absolute;
  content: "";
}

.pager-ui-icon-prev::before,
.pager-ui-icon-next::before,
.pager-ui-icon-first::before,
.pager-ui-icon-last::before {
  top: 3px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.pager-ui-icon-prev::before,
.pager-ui-icon-first::before {
  left: 4px;
  transform: rotate(-45deg);
}

.pager-ui-icon-next::before,
.pager-ui-icon-last::before {
  right: 4px;
  transform: rotate(135deg);
}

.pager-ui-icon-first::after,
.pager-ui-icon-last::after {
  top: 2px;
  width: 2px;
  height: 9px;
  border-radius: 2px;
  background: currentColor;
}

.pager-ui-icon-first::after {
  left: 1px;
}

.pager-ui-icon-last::after {
  right: 1px;
}

.result-pagination .active .page-link {
  border-color: #075fd4 !important;
  background: #075fd4 !important;
  color: #ffffff !important;
  box-shadow: inset 0 -2px 0 rgba(7, 53, 111, 0.34);
}

.result-pagination .disabled .page-link {
  border-color: #d7e0ec !important;
  background: #f4f7fb !important;
  color: #8798ad !important;
}

.bid-shell .bid-page-header {
  border-color: #b8c8dc;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  box-shadow: inset 4px 0 0 #075fd4, 0 1px 3px rgba(12, 35, 70, 0.08);
}

.bid-shell .bid-header-actions .btn,
.bid-shell .bid-action-button,
.bid-shell .bid-nav-button {
  border-color: #9db4d0;
  font-weight: 950 !important;
}

.bid-shell .bid-action-market,
.bid-shell .bid-action-photo,
.bid-shell .bid-market-view-button {
  border-color: #075fd4;
  background: #eef5ff;
  color: #07356f;
}

.bid-shell .bid-action-market:hover,
.bid-shell .bid-action-photo:hover,
.bid-shell .bid-market-view-button:hover {
  border-color: #075fd4;
  background: #075fd4;
  color: #fff;
}

.bid-shell .bid-panel > .panel-title::before,
.bid-shell .bid-panel-header .panel-title::before {
  background: #ffd15c !important;
}

/* Utility and migration-support panels also use the lighter content header. */
.utility-panel > .panel-title,
.utility-shell .tool-panel > .panel-title,
.analysis-shell .tool-panel > .panel-title,
.catalog-shell .tool-panel > .panel-title,
.list-sql-preview-panel > .panel-title {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin: -14px -14px 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #b8c8dc !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%) !important;
  color: #07356f !important;
  font-size: 0.86rem;
  font-weight: 950 !important;
  box-shadow: inset 3px 0 0 #ffd15c !important;
}

.utility-panel > .panel-title::before,
.utility-shell .tool-panel > .panel-title::before,
.analysis-shell .tool-panel > .panel-title::before,
.catalog-shell .tool-panel > .panel-title::before,
.list-sql-preview-panel > .panel-title::before {
  content: none !important;
}

.bid-shell .bid-submit-button {
  border-color: #075fd4 !important;
  background: #075fd4 !important;
  color: #ffffff !important;
  box-shadow: inset 0 -2px 0 rgba(7, 53, 111, 0.34);
}

.bid-shell .bid-cancel-button {
  font-weight: 950 !important;
}

@media (max-width: 768px) {
  .result-pagination .pagination {
    gap: 5px;
  }

  .result-pagination .pager-edge {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
}

/* V3 secondary list/filter screens polish. */
.favorites-page-header,
.bid-history-page-header,
.market-price-page-header {
  border-color: #b8c8dc;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  box-shadow: inset 4px 0 0 #075fd4, 0 1px 3px rgba(12, 35, 70, 0.08);
}

.favorites-filter,
.bid-history-filter,
.market-price-form,
.recently-bid-filter {
  border: 1px solid #b8c8dc;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: inset 3px 0 0 #ffd15c;
}

.favorites-filter {
  padding: 6px;
}

.favorites-filter .form-select,
.bid-history-filter .form-select,
.market-price-form .form-select,
.market-price-form .form-control,
.recently-bid-filter .form-control {
  border-color: #9db4d0 !important;
  color: #07356f !important;
  font-weight: 950 !important;
}

.favorites-summary,
.bid-history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid #b8c8dc;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  box-shadow: inset 4px 0 0 #ffd15c;
}

.favorites-summary h2,
.bid-history-summary h2 {
  color: #07356f;
  font-weight: 950;
}

.favorites-summary .btn,
.bid-history-summary .btn,
.favorites-bid-button,
.bid-history-status-button,
.bid-history-recent-link,
.market-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 4px;
  font-weight: 950 !important;
}

.favorites-panel,
.bid-history-panel,
.market-result-panel,
.market-search-panel {
  border-color: #9db4d0;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}

.favorites-table.jda-data-table,
.bid-history-table.jda-data-table,
.market-price-table.jda-data-table {
  margin-bottom: 0;
}

.favorites-table.jda-data-table thead th,
.bid-history-table.jda-data-table thead th,
.market-price-table.jda-data-table thead th {
  border-color: #9db4d0 !important;
  background: #0b3b78 !important;
  color: #ffffff !important;
  font-weight: 950 !important;
}

.favorites-table.jda-data-table tbody tr:hover,
.bid-history-table.jda-data-table tbody tr:hover,
.market-price-table.jda-data-table tbody tr:hover {
  background: #f6f9fd;
  box-shadow: inset 3px 0 0 #075fd4;
}

.favorites-table.jda-data-table td,
.bid-history-table.jda-data-table td,
.market-price-table.jda-data-table td {
  color: #132f52;
  font-weight: 800;
}

.favorites-table .text-success,
.bid-history-table .text-success,
.market-price-row td:nth-child(12) {
  color: #0b4f9f !important;
  font-weight: 950 !important;
}

.favorites-table .text-danger,
.bid-history-table .text-danger,
.favorites-table td:nth-child(12),
.bid-history-table td:nth-child(13) {
  color: #b42318 !important;
  font-weight: 950 !important;
}

.favorite-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  color: #ffffff !important;
  font-weight: 950;
  text-decoration: none;
}

.bid-history-recent-link {
  min-width: 46px;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #9db4d0;
  background: #eef5ff;
  color: #07356f;
  text-decoration: none;
}

.bid-history-recent-link:hover {
  border-color: #075fd4;
  background: #075fd4;
  color: #ffffff;
}

.market-result-header {
  border-bottom-color: #9db4d0;
  background: linear-gradient(180deg, #0b3b78 0%, #075fd4 100%) !important;
  color: #ffffff;
}

.market-result-header .form-label,
.market-result-header .text-nowrap {
  color: #ffffff;
  font-weight: 950;
}

.market-result-header .market-total,
.market-result-header .market-price-max,
.market-result-header .market-price-low,
.market-result-header .market-price-avg {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
}

.market-pager {
  padding: 10px;
  border-top: 1px solid #d7e0ec;
  background: #f8fbff;
}

.market-pager-button {
  min-width: 78px;
  border-color: #9db4d0 !important;
  color: #07356f !important;
  font-weight: 950 !important;
}

.market-page-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid #9db4d0;
  border-radius: 4px;
  background: #ffffff;
  color: #07356f;
  font-weight: 950;
}

@media (max-width: 768px) {
  .favorites-summary,
  .bid-history-summary,
  .market-result-header {
    align-items: stretch;
    flex-direction: column;
  }

  .market-pager {
    flex-wrap: wrap;
  }

  .market-pager-button {
    flex: 1 1 calc(50% - 6px);
  }

  .market-page-display {
    order: -1;
    width: 100%;
  }
}

/* Saved search conditions readability fix. */
.search-shell .current-search-conditions {
  margin: 12px 0 16px;
  border: 1px solid #9db4d0;
  border-left: 4px solid #075fd4;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(7, 53, 111, 0.08);
}

.search-shell .current-search-conditions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #d7e0ec;
  background: #eef5ff;
}

.search-shell .current-search-conditions-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.search-shell .saved-searches-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.search-shell .saved-condition-capacity {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #d6a900;
  border-radius: 4px;
  background: #fff3a6;
  color: #624b00;
  font-weight: 950;
}

.search-shell .saved-condition-capacity.is-limit {
  border-color: #c68a00;
  background: #ffd84d;
  color: #4a3500;
}

.search-shell .saved-condition-limit-message {
  flex-basis: 100%;
  color: #8a5a00;
  font-size: 0.75rem;
  font-weight: 850;
  text-align: right;
}

.search-shell .current-search-conditions-header h2 {
  color: #07356f;
  font-weight: 950;
}

.search-shell .current-search-conditions-note,
.search-shell .current-search-conditions-empty {
  color: #53657d;
  font-size: 0.78rem;
  font-weight: 700;
}

.search-shell .current-search-condition-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
}

.search-shell .current-search-condition {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #b8cce3;
  border-radius: 4px;
  background: #f8fbff;
  color: #173b67;
  font-size: 0.78rem;
  line-height: 1.25;
}

.search-shell .current-search-condition strong {
  margin-right: 4px;
  color: #07356f;
}

.search-shell [data-lhd-dependent].is-lhd-disabled {
  opacity: 0.5;
}

.search-shell .search-car-panel.is-lhd-disabled {
  background: #f2f5f8;
}

.search-shell .lhd-condition-note {
  padding: 7px 9px;
  border-left: 3px solid #d6a900;
  background: #fff9d9;
  color: #624b00;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.search-shell .current-search-conditions-empty {
  padding: 10px 12px;
}

.save-search-modal .modal-content {
  border: 1px solid #9db4d0;
  border-radius: 4px;
}

.save-search-modal .modal-header {
  border-bottom-color: #07356f;
  background: #07356f;
  color: #ffffff;
}

.save-search-modal .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.save-search-modal .save-search-section-title {
  color: #07356f;
  font-size: 0.82rem;
  font-weight: 950;
}

.save-search-modal .save-search-condition-preview {
  padding: 8px 0;
}

.save-search-modal .saved-search-delete-confirmation {
  border-color: #e3b341;
  background: #fff8dc;
  color: #5b4300;
}

@media (max-width: 575.98px) {
  .search-shell .current-search-conditions-header {
    align-items: stretch;
    flex-direction: column;
  }

  .search-shell .current-search-conditions-header .btn {
    width: 100%;
  }

  .search-shell .current-search-conditions-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .search-shell .current-search-conditions-actions .btn {
    justify-content: center;
    min-width: 0;
  }

  .search-shell .current-search-conditions-actions #saveConditionBtn {
    grid-column: 1 / -1;
  }

  .search-shell .saved-condition-limit-message {
    grid-column: 1 / -1;
    text-align: left;
  }
}

.search-shell .saved-conditions-panel {
  border-color: #9db4d0 !important;
  background: #ffffff;
}

.search-shell .saved-conditions-header,
.search-shell .saved-conditions-panel .jda-data-panel-header {
  border-bottom-color: #07356f !important;
  background: linear-gradient(180deg, #0b3b78 0%, #075fd4 100%) !important;
  color: #ffffff !important;
}

.search-shell .saved-conditions-header h2,
.search-shell .saved-conditions-panel .jda-data-panel-header h2 {
  color: #ffffff !important;
  font-weight: 950 !important;
}

.search-shell .saved-conditions-header .btn-success {
  border-color: #ffffff !important;
  background: #0a8f56 !important;
  color: #ffffff !important;
  font-weight: 950 !important;
}

.search-shell .saved-table {
  border-color: #9db4d0;
  background: #ffffff;
}

.search-shell .saved-table thead th,
.search-shell .saved-table.jda-data-table thead th {
  border-color: #9db4d0 !important;
  background: #07356f !important;
  color: #ffffff !important;
  font-size: 0.76rem;
  font-weight: 950 !important;
  text-shadow: none;
}

.search-shell .saved-table tbody td,
.search-shell .saved-table.jda-data-table tbody td {
  border-color: #d7e0ec;
  background: #ffffff;
  color: #06285a !important;
  font-weight: 850 !important;
}

.search-shell .saved-table tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.search-shell .saved-table tbody tr:hover td {
  background: #eef5ff;
  box-shadow: none !important;
}

.search-shell .saved-table tbody tr:hover {
  outline: 1px solid #bdd4ea;
  outline-offset: -1px;
}

.search-shell .saved-table td:nth-child(2),
.search-shell .saved-table td:nth-child(3),
.search-shell .saved-table td:nth-child(9),
.search-shell .saved-table td:nth-child(10),
.search-shell .saved-table td:nth-child(11) {
  color: #003c8f !important;
  font-weight: 950 !important;
}

.search-shell .saved-table .saved-condition-memo {
  min-width: 150px;
  max-width: 260px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.search-shell .saved-table .condition-search {
  border-color: #075fd4 !important;
  background: #075fd4 !important;
  color: #ffffff !important;
}

.search-shell .saved-table .condition-manage {
  border-color: #075fd4 !important;
  background: #ffffff !important;
  color: #075fd4 !important;
}

.search-shell .saved-conditions-capacity {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  background: #ffcf33;
  color: #06285a;
  font-size: 0.75rem;
  font-weight: 950;
  line-height: 1;
  padding: 5px 8px;
}

.search-shell .saved-table .saved-condition-number {
  width: 42px;
  min-width: 42px;
  text-align: center;
  white-space: nowrap;
}

.search-shell #saveConditionBtn .search-ui-icon-note-save {
  border-color: rgba(255, 255, 255, 0.6);
  background: #ffffff;
}

.search-shell #saveConditionBtn .search-ui-icon-note-save::before {
  border-color: #087a4c;
}

.search-shell .saved-table .condition-delete {
  border-color: #ff3b4f !important;
  background: #ffffff !important;
  color: #d7192f !important;
}

/* List pager header readability fix. */
.search-shell .result-pager .result-pager-header,
.list-shell .result-pager .result-pager-header,
.result-pager .result-pager-header {
  border-bottom-color: #07356f !important;
  background: linear-gradient(180deg, #0b3b78 0%, #075fd4 100%) !important;
  color: #ffffff !important;
}

.search-shell .result-pager .result-pager-header h2,
.list-shell .result-pager .result-pager-header h2,
.result-pager .result-pager-header h2 {
  color: #ffffff !important;
  font-weight: 950 !important;
  text-shadow: none;
}

.search-shell .result-pager .list-range-text,
.list-shell .result-pager .list-range-text,
.result-pager .list-range-text {
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-weight: 950 !important;
}

/* Global dark header contrast guard. */
.search-shell .jda-panel-title,
.search-shell .jda-data-panel-header,
.jda-data-panel .jda-data-panel-header,
.jda-panel > .jda-panel-title,
.home-panel .jda-panel-title,
.big-photo-translation-panel .jda-panel-title,
.request-instructions-panel .jda-panel-title,
.request-agreement-panel .jda-panel-title,
.request-complete-panel .jda-panel-title,
.bid-shell .bid-panel > .panel-title,
.bid-shell .bid-panel-header,
.market-result-header {
  background: linear-gradient(180deg, #0b3b78 0%, #075fd4 100%) !important;
  color: #ffffff !important;
}

.search-shell .jda-panel-title,
.search-shell .jda-panel-title *,
.search-shell .jda-data-panel-header,
.search-shell .jda-data-panel-header *,
.jda-data-panel .jda-data-panel-header,
.jda-data-panel .jda-data-panel-header *,
.jda-panel > .jda-panel-title,
.jda-panel > .jda-panel-title *,
.home-panel .jda-panel-title,
.home-panel .jda-panel-title *,
.big-photo-translation-panel .jda-panel-title,
.big-photo-translation-panel .jda-panel-title *,
.request-instructions-panel .jda-panel-title,
.request-instructions-panel .jda-panel-title *,
.request-agreement-panel .jda-panel-title,
.request-agreement-panel .jda-panel-title *,
.request-complete-panel .jda-panel-title,
.request-complete-panel .jda-panel-title *,
.bid-shell .bid-panel > .panel-title,
.bid-shell .bid-panel > .panel-title *,
.bid-shell .bid-panel-header,
.bid-shell .bid-panel-header *,
.market-result-header,
.market-result-header * {
  color: #ffffff !important;
  font-weight: 950 !important;
}

.search-shell .jda-panel-title .search-ui-icon,
.search-shell .jda-data-panel-header .search-ui-icon,
.jda-panel > .jda-panel-title .search-ui-icon,
.bid-shell .bid-panel-header .bid-ui-icon,
.bid-shell .bid-panel > .panel-title .bid-ui-icon,
.market-result-header .market-ui-icon {
  color: #ffd15c !important;
}

.jda-data-panel-header .badge,
.bid-panel-header .badge,
.market-result-header .badge {
  border-color: rgba(255, 255, 255, 0.55) !important;
}

/* Dark table header descendant contrast guard. */
.jda-data-table thead th,
.jda-data-table thead th *,
.classic-text-table.jda-data-table thead th,
.classic-text-table.jda-data-table thead th *,
.favorites-table.jda-data-table thead th,
.favorites-table.jda-data-table thead th *,
.bid-history-table.jda-data-table thead th,
.bid-history-table.jda-data-table thead th *,
.recently-bid-table.jda-data-table thead th,
.recently-bid-table.jda-data-table thead th *,
.recommend-table.jda-data-table thead th,
.recommend-table.jda-data-table thead th *,
.market-price-table.jda-data-table thead th,
.market-price-table.jda-data-table thead th *,
.market-regular-table.jda-data-table thead th,
.market-regular-table.jda-data-table thead th * {
  color: #ffffff !important;
  font-weight: 950 !important;
  text-shadow: none !important;
}

.jda-data-table thead th a,
.classic-text-table.jda-data-table thead th a,
.favorites-table.jda-data-table thead th a,
.bid-history-table.jda-data-table thead th a,
.recommend-table.jda-data-table thead th a {
  color: #ffffff !important;
  text-decoration: none;
}

/* Search input panels stay lighter than global navigation/data headers. */
.search-shell .search-panel > .search-step-title,
.search-shell .search-panel > .jda-panel-title.search-step-title,
.search-shell .search-panel > .panel-title.search-step-title {
  border-bottom: 1px solid #b8c8dc !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%) !important;
  color: #07356f !important;
  box-shadow: inset 3px 0 0 #ffd15c !important;
}

.search-shell .search-panel > .search-step-title *,
.search-shell .search-panel > .jda-panel-title.search-step-title *,
.search-shell .search-panel > .panel-title.search-step-title * {
  color: #07356f !important;
  font-weight: 950 !important;
}

.search-shell .search-panel > .search-step-title .search-step-badge {
  border-color: #075fd4 !important;
  background: #075fd4 !important;
  color: #ffffff !important;
}

.search-shell .search-panel > .search-step-title .search-ui-icon {
  color: #075fd4 !important;
}

/* Content/detail panels use the same lighter header tone as search inputs. */
.bid-shell .bid-panel > .panel-title,
.bid-shell .bid-panel-header,
.home-panel .jda-panel-title,
.big-photo-translation-panel .jda-panel-title,
.request-instructions-panel .jda-panel-title,
.request-agreement-panel .jda-panel-title,
.request-complete-panel .jda-panel-title,
.recommend-notes-panel .jda-panel-title {
  border-bottom: 1px solid #b8c8dc !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%) !important;
  color: #07356f !important;
  box-shadow: inset 3px 0 0 #ffd15c !important;
}

.bid-shell .bid-panel > .panel-title,
.bid-shell .bid-panel-header .panel-title,
.home-panel .jda-panel-title,
.home-panel .jda-panel-title *,
.big-photo-translation-panel .jda-panel-title,
.big-photo-translation-panel .jda-panel-title *,
.request-instructions-panel .jda-panel-title,
.request-instructions-panel .jda-panel-title *,
.request-agreement-panel .jda-panel-title,
.request-agreement-panel .jda-panel-title *,
.request-complete-panel .jda-panel-title,
.request-complete-panel .jda-panel-title *,
.recommend-notes-panel .jda-panel-title,
.recommend-notes-panel .jda-panel-title * {
  color: #07356f !important;
  font-weight: 950 !important;
}

.bid-shell .bid-panel-header .badge {
  box-shadow: none !important;
  color: #ffffff !important;
}

.bid-shell .bid-panel-header .panel-title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bid-shell .bid-panel > .panel-title::before,
.bid-shell .bid-panel-header .panel-title::before {
  background: #ffd15c !important;
}

/* Final guard: keep native market dropdown menus readable on white. */
.market-result-header .form-select,
.market-result-header select,
.market-result-header select option,
.market-result-header .form-select *,
.market-result-header select * {
  background-color: #ffffff !important;
  color: #07356f !important;
}

.market-result-header select option:checked {
  background-color: #e4efff !important;
  color: #07356f !important;
}

/* Native dropdown menus should remain readable regardless of parent header color. */
select option {
  background-color: #ffffff;
  color: #07356f;
}

/* Bid detail Classic alignment pass. */
.bid-shell {
  padding-bottom: 82px;
}

.bid-classic-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.bid-classic-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d7e0ec;
  border-radius: 4px;
  background: #f7fafc;
  color: #566a84;
  font-size: 0.78rem;
  font-weight: 850;
}

.bid-classic-breadcrumb a {
  color: #b42318;
  font-weight: 950;
}

.bid-favorite-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 34px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #4b5e76;
  white-space: nowrap;
}

.bid-favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  border: 1px solid #aebdd0;
  border-radius: 999px;
  background: #ffffff;
  color: #0b2e5f;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1;
}

.bid-favorite-toggle.is-active {
  border-color: #075fd4;
  background: #075fd4;
  color: #ffffff;
}

.bid-hero-panel {
  padding: 12px;
}

.bid-classic-title {
  margin: 0 0 10px;
  color: #1f2f46;
  font-size: 1.28rem;
  font-weight: 950;
  letter-spacing: 0;
}

.bid-classic-photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  white-space: nowrap;
}

.bid-classic-photo-link {
  display: block;
  flex: 0 0 300px;
  overflow: hidden;
  width: 300px;
  height: 230px;
  border: 1px solid #cbd8e8;
  border-radius: 4px;
  background: #f3f7fb;
  scroll-snap-align: start;
  padding: 0;
  cursor: zoom-in;
}

.bid-classic-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bid-classic-main .bid-panel {
  margin-bottom: 10px;
}

.bid-deal-rate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #1f2f46;
  font-size: 0.86rem;
  font-weight: 900;
}

.bid-deal-rate strong {
  color: #b42318;
  font-weight: 950;
}

.bid-market-more-button {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 950;
}

.bid-referenced-fob-panel .panel-title,
.bid-budget-panel .panel-title,
.bid-staff-tools-panel .panel-title {
  border-bottom-color: #b96a11 !important;
  background: linear-gradient(180deg, #e99625 0%, #d97b0d 100%) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.bid-referenced-fob-total {
  padding: 14px;
  color: #d7192f;
  font-size: 1.18rem;
  font-weight: 950;
}

.bid-classic-actions-panel,
.bid-staff-tools-panel {
  padding: 0;
  overflow: hidden;
}

.bid-staff-tools-panel > .panel-title {
  margin: 0;
}

.staff-recommend-tool {
    display: grid;
    grid-template-columns: auto minmax(220px, 360px) auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #bfd0e5;
    background: #f5f9ff;
}

.staff-recommend-tool label {
    margin: 0;
    color: #123d75;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .staff-recommend-tool {
        grid-template-columns: 1fr;
    }

    .staff-recommend-tool .btn {
        width: 100%;
    }
}

.bid-classic-action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
}

.bid-classic-action-buttons .btn {
  min-height: 32px;
  font-size: 0.78rem;
  font-weight: 950;
}

.bid-inline-result {
  margin: 0 14px 14px;
  padding: 10px;
  border: 1px solid #d7e0ec;
  border-radius: 4px;
  background: #ffffff;
}

.bid-sticky-submit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 16px;
  border-top: 3px solid #8c2630;
  background: rgba(29, 32, 36, 0.94);
  box-shadow: 0 -4px 18px rgba(15, 35, 63, 0.22);
}

.bid-sticky-total {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff;
  color: #0b2e5f;
  font-size: 0.86rem;
  font-weight: 950;
}

.bid-sticky-total span:first-child {
  padding: 8px 14px;
  background: #eaf3ff;
}

.bid-sticky-total strong {
  min-width: 150px;
  padding: 8px 14px;
  color: #d7192f;
  text-align: right;
}

.bid-sticky-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 280px;
  min-height: 38px;
  font-size: 0.86rem;
  font-weight: 950;
}

@media (max-width: 768px) {
  .bid-sticky-submit-bar {
    display: flex;
  }

  .bid-workspace-panel .bid-submit-button {
    display: none;
  }
}

.bid-photo-lightbox .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
}

.bid-photo-lightbox .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #0b2e5f;
  color: #ffffff;
}

.bid-photo-lightbox .modal-title {
  color: #ffffff;
  font-weight: 950;
}

.bid-lightbox-manufacture-form {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px);
  align-items: center;
  gap: 8px 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #172235;
}

.bid-lightbox-manufacture-form .form-label {
  margin: 0;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 950;
  white-space: nowrap;
}

.bid-lightbox-manufacture-form .form-control {
  border-color: #9db4d0;
  background: #ffffff;
  color: #07356f;
  font-weight: 900;
}

.bid-lightbox-manufacture-form .btn {
  font-weight: 950;
}

.bid-photo-lightbox .btn-close {
  filter: invert(1) grayscale(100%);
}

.bid-photo-lightbox .modal-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 720px);
  padding: 12px;
}

.bid-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  border-radius: 4px;
  object-fit: contain;
  background: #000000;
}

[data-protected-photo] {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.bid-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border-color: rgba(255, 255, 255, 0.55) !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #07356f !important;
  font-weight: 950 !important;
}

.bid-lightbox-prev {
  left: 18px;
}

.bid-lightbox-next {
  right: 18px;
}

@media (max-width: 992px) {
  .bid-classic-toolbar {
    grid-template-columns: 1fr;
  }

  .bid-favorite-strip {
    justify-content: flex-start;
  }

  .bid-classic-photo-link {
    flex-basis: 260px;
    width: 260px;
    height: 200px;
  }
}

@media (max-width: 640px) {
  .bid-sticky-submit-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .bid-sticky-submit-button,
  .bid-sticky-total {
    width: 100%;
  }

  .bid-lightbox-manufacture-form {
    grid-template-columns: 1fr;
  }
}

/* Bid detail .NET workspace layout: keep migrated colors, constrain width, and group bid decisions. */
.bid-shell {
  max-width: 1200px;
}

.bid-detail-layout {
  display: grid;
  grid-template-columns: minmax(400px, 440px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.bid-reference-column,
.bid-decision-column {
  min-width: 0;
}

.bid-ninja-banner {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

.bid-ninja-banner img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.bid-trace-code {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.bid-workspace-panel {
  overflow: hidden;
}

.bid-workspace-panel .panel-title,
.bid-market-history-panel .panel-title,
.bid-referenced-fob-panel .panel-title,
.bid-budget-panel .panel-title {
  border-bottom-color: #0b5fb8 !important;
  background: linear-gradient(180deg, #0f6fd7 0%, #075bb8 100%) !important;
  color: #ffffff !important;
}

.bid-workspace-panel > .panel-title {
  padding-block: 11px !important;
  font-size: 0.98rem !important;
  letter-spacing: 0;
}

.bid-workspace-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.bid-reference-price-block,
.bid-market-budget-block {
  min-width: 0;
  padding: 10px;
  border: 1px solid #c9d7e8;
  border-radius: 5px;
  background: #f8fbff;
}

.bid-entry-block .bid-reference-price-block {
  border-color: #9fb9da;
  background: #f6faff;
}

.bid-workspace-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  color: #07356f;
  font-size: 0.84rem;
  font-weight: 950;
}

.bid-workspace-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #0f6fd7;
}

.bid-market-budget-block {
  display: grid;
  align-content: start;
  gap: 10px;
}

.bid-entry-block {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #b9cbe3;
  border-radius: 5px;
  background: #ffffff;
}

.bid-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: 12px;
  align-items: start;
}

.bid-budget-currency-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.bid-currency-reference {
  min-width: 0;
}

.bid-currency-table.jda-data-table {
  min-width: 0;
  font-size: 0.78rem;
}

.bid-currency-table.jda-data-table th {
  padding: 6px 7px;
  white-space: nowrap;
}

.bid-currency-table.jda-data-table td {
  padding: 6px 7px;
  white-space: nowrap;
}

.bid-currency-table.jda-data-table td:first-child {
  color: #07356f;
  font-weight: 950;
}

.market-regular-criteria {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #b9d0ef;
  border-left: 4px solid #0b63ce;
  border-radius: 5px;
  background: #f3f8ff;
  color: #07356f;
  font-size: 0.8rem;
}

.market-regular-criteria-title {
  margin-right: 2px;
  font-weight: 950;
}

.market-regular-criteria-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid #9fc2ed;
  border-radius: 999px;
  background: #ffffff;
  color: #003e8a;
  white-space: nowrap;
}

.market-regular-criteria-chip strong {
  color: #062f67;
  font-weight: 950;
}

.bid-market-summary {
  margin: 0;
}

.bid-market-summary-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #0b2e5f;
  font-size: 0.82rem;
  font-weight: 900;
}

.bid-market-summary-values > span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #b8c9df;
  border-radius: 999px;
  background: #ffffff;
}

.bid-budget-control .form-select {
  max-width: 230px;
  min-height: 42px;
  font-size: 1.02rem;
}

.bid-budget-input-group {
  max-width: 230px;
}

.bid-budget-input-group .form-control {
  min-width: 0;
  min-height: 42px;
  text-align: right;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.bid-budget-input-group .input-group-text {
  min-width: 42px;
  justify-content: center;
  border-color: #9db4d0;
  background: #eef5fd;
  color: #07356f;
  font-weight: 950;
}

.bid-budget-context {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 5px;
  color: #49617f;
  font-size: 0.74rem;
}

.bid-budget-context strong {
  color: #07356f;
  font-variant-numeric: tabular-nums;
}

.bid-budget-adjuster {
  display: grid;
  grid-template-columns: auto minmax(86px, 110px) auto;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.bid-budget-adjuster > label {
  margin: 0;
  color: #49617f;
  font-size: 0.74rem;
  font-weight: 850;
}

.bid-budget-form .bid-budget-adjuster .form-select,
.bid-budget-form .bid-budget-adjuster .btn {
  min-height: 34px;
  font-size: 0.78rem;
  font-weight: 900;
}

.bid-budget-adjuster .btn {
  width: 38px;
  padding-inline: 0;
}

.bid-budget-adjustment-notice {
  margin-top: 7px;
  padding: 6px 8px;
  border-left: 3px solid #d9a514;
  border-radius: 3px;
  background: #fff8d8;
  color: #6f5100;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.bid-budget-input-group .form-control.is-adjusted {
  border-color: #d9a514;
  background: #fffdf0;
  box-shadow: 0 0 0 0.14rem rgba(217, 165, 20, 0.16);
}

.bid-workspace-panel .bid-submit-button {
  align-self: flex-end;
  justify-self: end;
  min-width: 240px;
  min-height: 40px;
}

.bid-market-history-panel {
  padding: 0;
  overflow: hidden;
}

.bid-market-history-panel .bid-market-history {
  margin: 0;
  padding: 12px 14px 14px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.bid-market-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bid-market-history-result {
  overflow-x: auto;
}

.bid-market-history-disclosure {
  min-width: 0;
  margin: 10px 0 0;
  padding: 9px 0 0;
  border: 0;
  border-top: 1px solid #c9d7e8;
  border-radius: 0;
  background: transparent;
  max-height: 360px;
  overflow-x: hidden;
  overflow-y: auto;
}

.bid-market-history-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #b9d0ef;
  border-radius: 4px;
  background: #eef5fd;
  color: #07356f;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: left;
}

.bid-market-history-toggle:hover,
.bid-market-history-toggle:focus-visible {
  border-color: #76a7df;
  background: #e5f0fc;
  color: #003e8a;
}

.bid-market-history-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.bid-market-history-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.bid-market-history-toggle[aria-expanded="true"] .bid-market-history-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.bid-market-history-disclosure .bid-market-history-result {
  max-width: 100%;
  margin-top: 8px;
  max-height: none;
  overflow: visible;
  overscroll-behavior-inline: contain;
}

.bid-market-history-disclosure .market-regular-criteria {
  margin-bottom: 6px;
  font-size: 0.76rem;
}

.bid-market-history-disclosure .market-regular-table.jda-data-table {
  min-width: 620px;
  font-size: 0.76rem;
}

.bid-market-history-disclosure .market-regular-table.jda-data-table thead th,
.bid-market-history-disclosure .market-regular-table.jda-data-table td {
  padding: 5px 6px;
}

@media (max-width: 1180px) {
  .bid-detail-layout {
    grid-template-columns: minmax(350px, 0.9fr) minmax(0, 1.1fr);
  }

  .bid-workspace-summary {
    grid-template-columns: 1fr;
  }

  .bid-entry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .bid-detail-layout {
    grid-template-columns: 1fr;
  }

  .bid-reference-column,
  .bid-decision-column {
    display: contents;
  }

  .bid-ninja-banner {
    order: 2;
  }

  .bid-vehicle-spec-panel {
    order: 1;
  }

  .bid-workspace-panel {
    order: 3;
    margin-bottom: 1rem;
  }

  .bid-auction-info-panel {
    order: 4;
  }

  .bid-external-history-panel {
    order: 5;
  }

  .bid-mobile-auction-status {
    display: inline-flex;
    margin-left: 5px;
    vertical-align: middle;
  }

  .bid-vehicle-status {
    display: none;
  }

  .bid-compact-info-wrap {
    overflow-x: visible;
  }

  .bid-info-table.jda-data-table.bid-compact-info-table {
    width: 100%;
    min-width: 0;
  }

  .bid-compact-info-table tbody {
    display: block;
    width: 100%;
  }

  .bid-compact-info-table tbody tr {
    display: grid;
    grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
    width: 100%;
  }

  .bid-compact-info-table.jda-data-table th,
  .bid-compact-info-table.jda-data-table td {
    width: auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .bid-budget-control .form-select,
  .bid-workspace-panel .bid-submit-button {
    max-width: none;
    width: 100%;
  }

  .bid-budget-input-group {
    max-width: none;
  }
  .bid-market-history-toggle {
    white-space: normal;
  }

  .bid-market-history-disclosure .bid-market-history-result {
    width: 100%;
    max-width: calc(100vw - 48px);
  }
}


/* JDA terms and personal settings */
.jda-terms-shell {
  max-width: 1040px;
  padding-bottom: 32px;
}

.jda-terms-header {
  margin-bottom: 14px;
}

.jda-terms-message {
  border-radius: 6px;
}

.jda-terms-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 4px solid #2f7d4f;
}

.jda-terms-status strong {
  color: var(--jda-v3-ink);
}

.jda-terms-status-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  text-align: right;
}

.jda-terms-status-value .badge {
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  color: var(--jda-v3-ink);
  font-variant-numeric: tabular-nums;
}

.jda-terms-notice {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 6px;
  border-left: 4px solid #b56b00;
  background: #fff9e9;
}

.jda-terms-notice h2 {
  margin: 0 0 5px;
  color: #704200;
  font-size: 0.92rem;
}

.jda-terms-rules {
  margin-bottom: 0;
  padding: 16px 18px 16px 40px;
  border-radius: 6px;
}

.jda-terms-rules li {
  padding: 0 0 8px 5px;
  line-height: 1.45;
}

.jda-terms-rules li:last-child {
  padding-bottom: 0;
}

.jda-terms-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 14px 0;
  padding: 11px 2px;
  border-top: 1px solid var(--jda-v3-line);
  border-bottom: 1px solid var(--jda-v3-line);
}

.jda-terms-links a {
  font-weight: 600;
}

.jda-settings-panel {
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
}

.jda-settings-title {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--jda-v3-line);
  background: var(--jda-v3-band);
  color: var(--jda-v3-ink);
}

.jda-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--jda-v3-line);
}

.jda-settings-row legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  float: none;
  width: auto;
  margin: 0;
  font-size: 1rem;
}

.jda-settings-label {
  color: var(--jda-v3-text);
  font-weight: 700;
}

.jda-settings-help {
  color: var(--jda-v3-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.jda-settings-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 180px;
}

.jda-settings-segment .btn {
  min-height: 38px;
  border-radius: 0;
}

.jda-settings-segment .btn:first-of-type {
  border-radius: 5px 0 0 5px;
}

.jda-settings-segment .btn:last-of-type {
  border-radius: 0 5px 5px 0;
}

.jda-settings-submit {
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px;
}

.jda-settings-submit .btn {
  min-width: 140px;
}

.jda-terms-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 44px;
}

.jda-terms-primary-action {
  min-width: 240px;
}

.jda-terms-primary-action.is-attention {
  animation: jda-terms-action-attention 1.1s ease-in-out 3;
  outline: 3px solid #ffc928;
  outline-offset: 3px;
}

@keyframes jda-terms-action-attention {
  50% {
    box-shadow: 0 0 0 7px rgba(255, 201, 40, 0.32);
  }
}

.jda-terms-gate-toast-container {
  z-index: 1090;
}

.jda-terms-gate-toast {
  border-color: #d6a400;
  font-size: 0.82rem;
}

.jda-terms-gate-toast .toast-header {
  background: #fff3bf;
  color: #684b00;
}

@media (prefers-reduced-motion: reduce) {
  .jda-terms-primary-action.is-attention {
    animation: none;
  }
}

.jda-terms-accepted-actions {
  display: flex;
  justify-content: flex-end;
}

.jda-terms-accepted-actions[hidden] {
  display: none;
}

.jda-terms-accepted-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 320px;
  padding: 10px 12px 10px 14px;
  border: 1px solid #1f66b1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f3f78;
  text-decoration: none;
}

.jda-terms-accepted-link:hover {
  border-color: #075fd4;
  background: #eef5ff;
  color: #07356f;
}

.jda-terms-accepted-link:focus-visible {
  outline: 3px solid rgba(31, 102, 177, 0.35);
  outline-offset: 2px;
}

.jda-terms-accepted-link small,
.jda-terms-accepted-link strong {
  display: block;
}

.jda-terms-accepted-link small {
  margin-bottom: 2px;
  color: #16724b;
  font-size: 0.72rem;
  font-weight: 850;
}

.jda-terms-accepted-link strong {
  font-size: 0.9rem;
  font-weight: 900;
}

.jda-terms-accepted-check {
  margin-right: 5px;
}

.jda-terms-accepted-link .search-ui-icon-submit {
  flex: 0 0 22px;
  border-color: #075fd4;
  background: #075fd4;
}

.jda-terms-access-note {
  color: var(--jda-v3-muted);
  font-size: 0.9rem;
}

.jda-terms-modal .modal-content {
  border-color: var(--jda-v3-line);
  border-radius: 6px;
}

.jda-terms-modal .modal-header {
  border-bottom-color: var(--jda-v3-line);
  background: var(--jda-v3-band);
}

.jda-terms-modal-error {
  min-height: 24px;
  margin-top: 12px;
  color: #a61b1b;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .jda-terms-shell {
    padding-bottom: 44px;
  }

  .jda-terms-status,
  .jda-settings-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .jda-terms-status {
    flex-direction: column;
    gap: 4px;
  }

  .jda-terms-status-value {
    justify-content: flex-start;
    text-align: left;
  }

  .jda-settings-segment {
    width: 100%;
  }

  .jda-settings-submit,
  .jda-terms-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jda-terms-accepted-actions {
    flex-direction: column;
  }

  .jda-settings-submit .btn,
  .jda-terms-actions form,
  .jda-terms-primary-action,
  .jda-terms-accepted-link {
    width: 100%;
    min-width: 0;
  }

  .jda-terms-access-note {
    text-align: center;
  }
}

/* Localized JDA usage guide */
.jda-guide-shell {
  max-width: 1040px;
  min-width: 0;
  padding-bottom: 36px;
}

.jda-guide-header {
  margin-bottom: 8px;
}

.jda-guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--jda-v3-line);
}

.jda-guide-tab {
  min-height: 38px;
  padding: 9px 14px 8px;
  border-bottom: 3px solid transparent;
  color: #294b76;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.jda-guide-tab:hover {
  color: #0f2f63;
  background: #f2f6fb;
}

.jda-guide-tab.is-active {
  border-bottom-color: #1f66b1;
  color: #0f2f63;
}

.jda-guide-tab:focus-visible {
  outline: 3px solid rgba(31, 102, 177, 0.35);
  outline-offset: 2px;
}

.jda-guide-panel {
  min-width: 0;
  margin-bottom: 12px;
  border-radius: 6px;
}

.jda-guide-panel-title {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--jda-v3-line);
  background: var(--jda-v3-band);
  color: var(--jda-v3-ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.jda-guide-panel-body {
  padding: 14px 16px;
}

.jda-guide-panel-body h3,
.jda-guide-option h3 {
  margin: 0 0 7px;
  color: #173d6f;
  font-size: 0.88rem;
  font-weight: 800;
}

.jda-guide-panel-body p {
  line-height: 1.52;
}

.jda-guide-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid #cbd7e6;
  border-radius: 6px;
  overflow: hidden;
}

.jda-guide-timeline-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 11px 13px;
}

.jda-guide-timeline-item + .jda-guide-timeline-item {
  border-left: 1px solid #cbd7e6;
  background: #f7fafc;
}

.jda-guide-timeline-item strong {
  color: #173d6f;
  font-size: 0.82rem;
}

.jda-guide-timeline-item span {
  color: var(--jda-v3-muted);
  font-size: 0.82rem;
}

.jda-guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.jda-guide-steps li {
  display: grid;
  grid-template-columns: 28px 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
  padding: 13px 14px;
  border-bottom: 1px solid #e0e7f0;
}

.jda-guide-steps li:nth-child(odd) {
  border-right: 1px solid #e0e7f0;
}

.jda-guide-steps li:last-child {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.jda-guide-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #173d6f;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.jda-guide-steps .search-ui-icon {
  margin-top: 4px;
}

.jda-guide-steps .search-ui-icon-submit {
  background-color: #173d6f;
}

.jda-guide-steps strong {
  color: var(--jda-v3-ink);
  font-size: 0.88rem;
}

.jda-guide-steps p {
  margin: 3px 0 0;
  color: var(--jda-v3-muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.jda-guide-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 10px 0 16px;
  padding: 13px;
  border: 1px solid #b8c8dc;
  border-radius: 6px;
  background: #f7fafc;
  color: #173d6f;
  font-weight: 800;
  text-align: center;
}

.jda-guide-formula b {
  color: #6b7788;
}

.jda-guide-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jda-guide-option {
  min-width: 0;
  padding: 15px 16px;
}

.jda-guide-option + .jda-guide-option {
  border-left: 1px solid var(--jda-v3-line);
  background: #f7fafc;
}

.jda-guide-option p {
  min-height: 44px;
  color: var(--jda-v3-muted);
  font-size: 0.84rem;
}

.jda-guide-rate-list {
  margin: 0;
}

.jda-guide-rate-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid #dde5ef;
}

.jda-guide-rate-list dt {
  color: var(--jda-v3-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.jda-guide-rate-list dd {
  margin: 0;
  color: #173d6f;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.jda-guide-note {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--jda-v3-line);
  color: #6b4b00;
  background: #fff9e9;
  font-size: 0.8rem;
  line-height: 1.42;
}

.jda-guide-document-link {
  padding: 11px 16px 13px;
  border-top: 1px solid var(--jda-v3-line);
}

.jda-guide-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.jda-guide-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.jda-guide-table th,
.jda-guide-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #dbe3ed;
  text-align: right;
  white-space: nowrap;
}

.jda-guide-table thead th {
  position: sticky;
  top: 0;
  background: #e9f0f8;
  color: #173d6f;
  font-weight: 800;
}

.jda-guide-table th:first-child {
  text-align: left;
}

.jda-guide-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.jda-guide-table tbody tr.jda-guide-highlight {
  background: #fff1b8;
  box-shadow: inset 4px 0 #a75d00;
}

.jda-guide-empty {
  margin: 0;
  padding: 20px 16px;
  color: var(--jda-v3-muted);
  text-align: center;
}

.jda-guide-next {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.jda-guide-next-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 260px;
  padding: 10px 12px 10px 14px;
  border: 1px solid #1f66b1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f3f78;
  text-decoration: none;
}

.jda-guide-next-link:hover {
  border-color: #075fd4;
  background: #eef5ff;
  color: #07356f;
}

.jda-guide-next-link:focus-visible {
  outline: 3px solid rgba(31, 102, 177, 0.35);
  outline-offset: 2px;
}

.jda-guide-next-link small,
.jda-guide-next-link strong {
  display: block;
}

.jda-guide-next-link small {
  margin-bottom: 2px;
  color: #5a6d85;
  font-size: 0.7rem;
  font-weight: 750;
}

.jda-guide-next-link strong {
  font-size: 0.9rem;
  font-weight: 900;
}

.jda-guide-next-link .search-ui-icon-submit {
  flex: 0 0 22px;
  border-color: #075fd4;
  background: #075fd4;
}

@media (max-width: 767.98px) {
  .jda-guide-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jda-guide-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 7px;
    text-align: center;
  }

  .jda-guide-timeline,
  .jda-guide-steps,
  .jda-guide-option-grid {
    grid-template-columns: 1fr;
  }

  .jda-guide-timeline-item + .jda-guide-timeline-item,
  .jda-guide-option + .jda-guide-option {
    border-top: 1px solid #cbd7e6;
    border-left: 0;
  }

  .jda-guide-steps li,
  .jda-guide-steps li:nth-child(odd),
  .jda-guide-steps li:nth-last-child(-n + 2) {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid #e0e7f0;
  }

  .jda-guide-steps li:last-child {
    border-bottom: 0;
  }

  .jda-guide-option p {
    min-height: 0;
  }

  .jda-guide-next-link {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 767.98px) {
  .home-auction-day .home-auction-button-mobile-hidden {
    display: none;
  }
}

.home-auction-button [data-home-deadline] {
  display: block;
  grid-column: 1 / -1;
  color: #b42318;
  font-weight: 700;
}
/* JDA Home compact operational dashboard. */
.home-current-time {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-left: auto;
  text-align: right;
}

.home-current-time-label {
  color: #53677f;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-current-date {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 750;
}

.home-current-time-value {
  color: #07356f;
  font-size: 1rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.auction-type-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 14px;
  border: 1px solid var(--jda-v3-line);
  border-radius: 6px;
  background: #f8fbff;
  overflow: hidden;
}

.auction-type-guide > div {
  min-width: 0;
  padding: 10px 12px;
}

.auction-type-guide > div + div {
  border-left: 1px solid var(--jda-v3-line);
}

.auction-type-guide dt {
  margin-bottom: 3px;
  color: #07356f;
  font-size: 0.78rem;
  font-weight: 950;
}

.auction-type-guide dd,
.auction-type-help {
  margin: 0;
  color: #53677f;
  font-size: 0.75rem;
  line-height: 1.4;
}

.auction-type-help {
  display: block;
  margin-top: 4px;
}

.auction-type-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.auction-type-field .form-check {
  margin-bottom: 0;
}

.auction-type-field .auction-type-help {
  margin-top: 0;
}

.search-condition-panel .condition-grid-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 0;
  padding: 6px 10px;
  border: 1px solid #c4d2e4;
  border-radius: 4px;
  background: #f8fbff;
}

.search-condition-panel .condition-grid-checkbox .form-check-input {
  margin-top: 0;
  margin-left: 0;
  border-color: #9fb0c6;
  box-shadow: none;
}

.search-condition-panel .condition-grid-checkbox .form-check-input:checked {
  border-color: #075fd4;
  background-color: #075fd4;
}

.search-condition-panel .condition-grid-checkbox .form-check-label {
  color: #172033;
  font-size: 0.82rem;
  font-weight: 700;
}

.search-condition-panel .condition-grid-checkbox.is-dirty {
  border-color: #075fd4;
  background: #eef5ff;
  color: #0b4f9f;
}

.home-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) minmax(190px, 1.35fr) minmax(100px, 0.7fr) minmax(100px, 0.7fr) minmax(300px, 1.8fr);
  overflow: hidden;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 95, 0.05);
}

.home-summary > .metric,
.home-fee-rate .metric {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--jda-v3-line);
  border-radius: 0;
  box-shadow: none;
}

.home-summary-count strong {
  font-size: 1.08rem;
}

.home-summary-count-link {
  width: fit-content;
  color: #075fd4;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.15;
  text-decoration: none;
}

.home-summary-count-link:hover {
  color: #084b9b;
  text-decoration: underline;
}

.home-summary-count-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid #075fd4;
  outline-offset: 3px;
}

.home-fee-rate {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-top: 7px;
}

.home-fee-rate-title {
  color: var(--jda-v3-muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.home-fee-rate-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-fee-rate .metric:last-child {
  border-right: 0;
}

@media (max-width: 1199.98px) {
  .home-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-fee-rate {
    grid-column: 1 / -1;
    border-top: 1px solid var(--jda-v3-line);
  }
}

@media (max-width: 768px) {
  .auction-type-guide {
    grid-template-columns: 1fr;
  }

  .auction-type-guide > div + div {
    border-top: 1px solid var(--jda-v3-line);
    border-left: 0;
  }

  .home-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-current-time {
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
  }

  .home-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-summary > .metric:nth-child(even) {
    border-right: 0;
  }

  .home-summary > .metric {
    border-bottom: 1px solid var(--jda-v3-line);
  }

  .home-fee-rate {
    grid-column: 1 / -1;
  }
}

/* Keep Home auction status and countdown on stable grid rows. */
.home-auction-day .home-auction-button {
  display: grid;
}

.home-auction-button [data-home-deadline] {
  width: 100%;
  text-align: center;
}

.home-settings-message {
  margin: 14px 0 0;
}

.home-auction-places-panel {
  margin-top: 14px;
}

.home-saved-search-panel {
  margin-bottom: 14px;
  overflow: hidden;
}

.home-saved-search-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.home-saved-search-panel > summary::-webkit-details-marker {
  display: none;
}

.home-saved-search-panel > summary::after {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-right: 2px solid #45617f;
  border-bottom: 2px solid #45617f;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.home-saved-search-panel[open] > summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.home-saved-search-panel > summary:hover {
  background: #eaf2fc;
}

.home-saved-search-panel > summary:focus-visible {
  outline: 3px solid rgba(7, 95, 212, 0.3);
  outline-offset: -3px;
}

.home-saved-search-content {
  padding: 12px;
}

.home-saved-search-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--jda-v3-line);
}

.home-saved-search-controls label,
.home-saved-search-controls fieldset {
  margin: 0;
}

.home-saved-search-controls label > span,
.home-saved-search-controls legend,
.home-saved-search-status > span:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--jda-v3-muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.home-saved-search-date-heading {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.home-saved-search-date-heading > span:first-child {
  color: var(--jda-v3-muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.home-saved-search-date-heading .auction-status {
  margin-bottom: 0;
}

.home-saved-search-controls legend {
  float: none;
  width: auto;
}

.home-saved-search-list {
  display: grid;
}

.home-saved-search-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e5eaf0;
}

.home-saved-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.home-saved-search-chips > span {
  padding: 3px 6px;
  border: 1px solid #c8d5e4;
  border-radius: 3px;
  background: #f7faff;
  color: #314861;
  font-size: 0.7rem;
}

.home-saved-search-details p,
.home-saved-search-empty {
  margin: 5px 0 0;
  color: var(--jda-v3-muted);
  font-size: 0.72rem;
}

.home-saved-search-footer {
  padding-top: 9px;
  text-align: right;
}

.home-saved-search-footer a {
  font-size: 0.75rem;
  font-weight: 850;
}

@media (max-width: 767.98px) {
  .home-saved-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .home-saved-search-controls label {
    grid-column: 1 / -1;
  }

  .home-saved-search-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-saved-search-item form,
  .home-saved-search-item .btn {
    width: 100%;
  }
}

.home-auction-place-grid {
  padding: 12px;
}

.home-auction-place-day {
  height: 100%;
  min-width: 0;
  border: 1px solid var(--jda-v3-line);
  border-radius: 4px;
  background: #fbfcfe;
  overflow: hidden;
}

.home-auction-place-day summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
}

.home-auction-place-day summary::-webkit-details-marker {
  display: none;
}

.home-auction-place-day summary::after {
  grid-column: 2;
  grid-row: 1;
  width: 7px;
  height: 7px;
  border-right: 2px solid #45617f;
  border-bottom: 2px solid #45617f;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.home-auction-place-day[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.home-auction-place-day summary:hover {
  background: #f2f6fb;
}

.home-auction-place-day summary:focus-visible {
  outline: 3px solid rgba(7, 95, 212, 0.3);
  outline-offset: -3px;
}

.home-auction-place-date {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.home-auction-place-date strong {
  color: var(--jda-v3-ink);
  font-size: 0.85rem;
  font-weight: 900;
}

.home-auction-place-date span,
.home-auction-place-total {
  color: var(--jda-v3-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.home-auction-place-total {
  grid-column: 1 / -1;
  grid-row: 2;
}

.home-auction-place-content {
  padding: 0 11px 10px;
  border-top: 1px solid var(--jda-v3-line);
  background: #fff;
}

.home-auction-place-content section + section {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e0e7f0;
}

.home-auction-place-content h3 {
  margin: 9px 0 4px;
  color: #173d6f;
  font-size: 0.75rem;
  font-weight: 900;
}

.home-auction-place-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auction-status {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.2;
}

.home-auction-button .auction-status {
  justify-self: end;
}

.search-auction-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--jda-v3-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.current-search-condition .auction-status {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
}

.auction-status-open {
  border-color: #76aa86;
  color: #17652f;
  background: #edf8f0;
}

.auction-status-progress {
  border-color: #c99b2e;
  color: #634900;
  background: #fff5cf;
}

.auction-status-closed {
  border-color: #aeb8c4;
  color: #536273;
  background: #f0f3f6;
}

.home-auction-place-content dl {
  margin: 0;
}

.home-auction-place-content dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 4px 0;
  border-top: 1px solid #edf1f6;
}

.home-auction-place-content dt,
.home-auction-place-content dd {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.home-auction-place-content dt {
  min-width: 0;
  color: #344963;
  overflow-wrap: anywhere;
}

.home-auction-place-content a {
  color: inherit;
  text-decoration: none;
}

.home-auction-place-content a:hover {
  color: #075fd4;
  text-decoration: underline;
}

.home-auction-place-content a:focus-visible {
  border-radius: 2px;
  outline: 2px solid rgba(7, 95, 212, 0.35);
  outline-offset: 2px;
}

.home-auction-place-content dd {
  color: #07356f;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.home-auction-place-empty {
  margin: 10px 0 0;
  color: var(--jda-v3-muted);
  font-size: 0.76rem;
}

.home-settings-panel {
  margin-top: 14px;
  overflow: hidden;
  padding: 0;
}

.home-settings-panel > .jda-panel-title.home-settings-title {
  margin: 0;
  border-left: 4px solid #ffd34d;
  border-bottom: 1px solid var(--jda-v3-line) !important;
  background: #f5f8fc !important;
  color: var(--jda-v3-ink) !important;
}

.home-settings-columns,
.home-settings-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(180px, 0.95fr) minmax(220px, 0.8fr);
  align-items: center;
  column-gap: 24px;
}

.home-settings-columns {
  padding: 8px 14px;
  border-bottom: 1px solid var(--jda-v3-line);
  color: var(--jda-v3-muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.home-settings-row {
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--jda-v3-line);
}

.home-settings-row legend {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: 1rem;
}

.home-settings-current {
  color: #0b5fc2;
  font-size: 0.82rem;
  font-weight: 850;
}

.home-settings-row .jda-settings-segment {
  justify-self: start;
  width: 160px;
}

.home-settings-row .jda-settings-segment .btn {
  min-height: 32px;
  padding: 5px 10px;
  border-color: #8fb5e2;
  border-radius: 0;
  background: #fff;
  color: #075fd4;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
}

.home-settings-row .jda-settings-segment .btn:first-of-type {
  border-radius: 4px 0 0 4px;
}

.home-settings-row .jda-settings-segment .btn:last-of-type {
  border-radius: 0 4px 4px 0;
}

.home-settings-row .jda-settings-segment .btn:hover {
  border-color: #075fd4;
  background: #eef5ff;
  color: #064fae;
}

.home-settings-row .jda-settings-segment .btn-check:checked + .btn {
  border-color: #075fd4;
  background: #075fd4;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(7, 53, 111, 0.34);
}

.home-settings-row .jda-settings-segment .btn-check:focus-visible + .btn {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(7, 95, 212, 0.24);
}

.home-settings-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  color: var(--jda-v3-muted);
  font-size: 0.78rem;
}

.home-settings-submit .btn {
  min-width: 150px;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .home-settings-columns {
    display: none;
  }

  .home-settings-row {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .home-settings-row .jda-settings-segment {
    width: 100%;
  }

  .home-settings-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .home-settings-submit .btn {
    width: 100%;
  }
}

@media (min-width: 1400px) {
  .home-auction-button {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-auction-button > span:last-of-type {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .home-auction-button [data-home-deadline] {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
}
.list-result-summary[data-list-search-conditions] {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #d9dee3;
  border-bottom: 1px solid #d9dee3;
  scroll-margin-top: 8px;
}

.list-result-summary[data-list-search-conditions] > h2 {
  flex: 0 0 auto;
  margin: 0;
  color: #495057;
  font-size: 0.8125rem;
  font-weight: 700;
}

.list-result-summary[data-list-search-conditions]:has(.list-zero-result-notice) {
  flex-wrap: wrap;
  border-color: #e5b72f;
  background: #fffdf5;
}

.list-zero-result-notice {
  display: flex;
  flex: 1 0 100%;
  gap: 4px 10px;
  align-items: baseline;
  padding: 7px 9px;
  color: #3c4650;
  background: #fff3bf;
  border-left: 4px solid #e5b72f;
  border-radius: 3px;
}

.list-zero-result-notice strong {
  flex: 0 0 auto;
  color: #27384d;
}

.list-zero-result-notice span {
  font-size: 0.875rem;
}

.list-search-condition-items {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.list-search-condition-item {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  background: #f8fbff;
  border: 1px solid #b8cce3;
  border-radius: 4px;
}

.list-search-condition-item dt {
  color: #495057;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.list-search-condition-item dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.8125rem;
  font-weight: 600;
}

.list-search-condition-details summary {
  cursor: pointer;
}

.list-search-condition-details span {
  display: block;
  max-width: 32rem;
  padding-top: 0.25rem;
  font-weight: 500;
}

.list-edit-search {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  align-items: center;
  min-height: 28px;
  margin-left: auto;
  padding: 3px 9px;
  white-space: nowrap;
}

.list-edit-search.is-zero-result {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2), 0 2px 6px rgba(13, 74, 160, 0.25);
  animation: list-edit-search-glow 900ms ease-in-out 2;
}

@keyframes list-edit-search-glow {
  50% {
    box-shadow: 0 0 0 7px rgba(13, 110, 253, 0.24), 0 3px 10px rgba(13, 74, 160, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .list-edit-search.is-zero-result {
    animation: none;
  }
}

.list-edit-search .search-ui-icon-edit {
  position: relative;
  width: 14px;
  height: 14px;
  border: 0;
  background: transparent;
}

.list-edit-search .search-ui-icon-edit::before {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 11px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(-45deg);
}

.list-edit-search .search-ui-icon-edit::after {
  position: absolute;
  top: 10px;
  left: 1px;
  width: 3px;
  height: 3px;
  border: 1px solid currentColor;
  transform: rotate(-45deg);
}

@media (max-width: 767.98px) {
  .list-result-summary[data-list-search-conditions] {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .list-result-summary[data-list-search-conditions] > h2 {
    width: 100%;
  }

  .list-search-condition-items {
    flex-basis: calc(100% - 7.5rem);
  }

  .list-zero-result-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-result-summary[data-list-search-conditions]:has(.list-zero-result-notice) .list-search-condition-items,
  .list-result-summary[data-list-search-conditions]:has(.list-zero-result-notice) .list-edit-search {
    flex-basis: 100%;
    width: 100%;
  }

  .list-result-summary[data-list-search-conditions]:has(.list-zero-result-notice) .list-edit-search {
    justify-content: center;
    margin-left: 0;
  }
}

/* Search criteria summary mirrors the compact result-list summary. */
.search-shell .search-current-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #9db4d0;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 4px 0 0 #ffd15c, 0 1px 3px rgba(12, 35, 70, 0.08);
}

.search-shell .search-current-summary > h2 {
  flex: 0 0 auto;
  margin: 0;
  color: #495057;
  font-size: 0.8125rem;
  font-weight: 700;
}

.search-current-summary .current-search-condition-list {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.search-shell .search-current-summary .current-search-conditions-empty {
  flex: 1 1 auto;
  padding: 0;
}

.search-shell .search-current-summary-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 6px;
}

.search-current-summary-actions .btn {
  min-height: 28px;
  padding: 3px 8px;
  white-space: nowrap;
}

.maker-unavailable-toggle {
  display: none;
}

.auction-location-toggle,
.auction-location-checklist {
  display: none;
}

.display-settings-group > summary {
  list-style: none;
  pointer-events: none;
}

.display-settings-group > summary::-webkit-details-marker {
  display: none;
}

.display-settings-fields {
  display: grid;
  grid-template-columns: minmax(96px, 0.28fr) minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding-top: 8px;
}

@media (max-width: 767.98px) {
  .search-shell .search-current-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .search-shell .search-current-summary > h2 {
    width: 100%;
  }

  .search-current-summary .current-search-condition-list,
  .search-shell .search-current-summary .current-search-conditions-empty {
    flex-basis: 100%;
  }

  .search-shell .search-current-summary-actions {
    width: 100%;
  }

  .maker-grid .maker-tile.is-disabled {
    display: none;
  }

  .maker-grid.show-unavailable .maker-tile.is-disabled {
    display: flex;
  }

  .maker-unavailable-toggle {
    display: inline-flex;
    justify-content: center;
    width: calc(100% - 20px);
    min-height: 36px;
    margin: 8px 10px 10px;
  }

  .auction-location-picker > #location {
    display: none;
  }

  .auction-location-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    text-align: left;
  }

  .auction-location-toggle::after {
    content: "+";
    margin-left: 8px;
    font-weight: 900;
  }

  .auction-location-toggle[aria-expanded="true"]::after {
    content: "-";
  }

  .auction-location-checklist:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: 180px;
    margin-top: 6px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid #b7c6d9;
    border-radius: 4px;
    background: #f8fbff;
  }

  .auction-location-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 4px 6px;
    color: #0b2e5f;
    font-size: 0.78rem;
    font-weight: 850;
  }

  .search-car-panel:not(.has-maker-selection) .search-panel-hint,
  .search-car-panel:not(.has-maker-selection) .selected-summary {
    display: none;
  }

  .search-car-panel:not(.has-maker-selection) .car-list {
    min-height: 0;
    max-height: none;
    padding: 12px;
  }

  .search-car-panel:not(.has-maker-selection) .car-list .empty-state {
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .display-settings-group > summary {
    position: relative;
    pointer-events: auto;
    cursor: pointer;
  }

  .display-settings-group > summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1rem;
  }

  .display-settings-group[open] > summary::after {
    content: "-";
  }

  .display-settings-fields {
    grid-template-columns: 1fr;
  }
}

/* Compact bid history header. */
.bid-history-page-header {
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 6px 10px;
}

.bid-history-filter {
  flex-wrap: nowrap;
  gap: 6px;
  padding: 5px 6px;
}

.bid-history-filter .form-select {
  width: 180px;
  min-width: 0;
}

.bid-history-filter .bid-history-search-button {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  padding: 0;
}

@media (max-width: 768px) {
  .bid-history-page-header {
    gap: 6px;
    padding: 7px 10px 8px;
  }

  .bid-history-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    width: 100%;
    padding: 5px 6px;
  }

  .bid-history-filter .form-select {
    width: 100%;
  }

  .bid-history-filter .bid-history-search-button {
    width: 34px;
  }
}

.bid-history-pagination,
.favorites-pagination {
  justify-content: flex-end;
  margin: 8px 0;
}

.bid-history-summary-actions,
.bid-history-page-size-form,
.favorites-summary-actions,
.favorites-page-size-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bid-history-page-size-form .form-label,
.favorites-page-size-form .form-label {
  color: #07356f;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.bid-history-page-size-form .form-select,
.favorites-page-size-form .form-select {
  width: 76px;
  min-height: 32px;
  border-color: #9db4d0;
  border-radius: 4px;
  color: #07356f;
  font-size: 0.8rem;
  font-weight: 850;
}

@media (max-width: 768px) {
  .bid-history-pagination .pagination,
  .favorites-pagination .pagination {
    width: 100%;
  }

  .bid-history-summary-actions,
  .favorites-summary-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .bid-history-page-size-form,
  .favorites-page-size-form {
    flex: 1 1 130px;
  }

  .bid-history-page-size-form .form-select,
  .favorites-page-size-form .form-select {
    flex: 1 1 auto;
    width: auto;
  }

  .bid-history-summary-actions .bid-history-back-button,
  .favorites-summary-actions .favorites-back-button {
    flex: 1 1 210px;
  }
}

/* Compact favorites header. */
.favorites-page-header {
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 6px 10px;
}

.favorites-filter {
  flex-wrap: nowrap;
  padding: 5px 6px;
}

.favorites-filter .form-select {
  width: 180px;
  min-width: 0;
}

@media (max-width: 768px) {
  .favorites-page-header {
    gap: 6px;
    padding: 7px 10px 8px;
  }

  .favorites-filter {
    width: 100%;
    padding: 5px 6px;
  }

  .favorites-filter .form-select {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .jda-photo-results-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.message-unread-badge {
  display: inline-flex;
  min-width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  padding: 0 0.35rem;
  border-radius: 0.7rem;
  background: #ffc928;
  color: #17335f;
  font-size: 0.72rem;
  font-weight: 700;
}

.bid-history-unread-badge {
  border: 1px solid #9a6d00;
  box-shadow: 0 0 0 0 rgba(255, 201, 40, 0.75);
  font-weight: 900;
  animation: bid-history-unread-pulse 2.4s ease-out infinite;
}

@keyframes bid-history-unread-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 201, 40, 0.75);
  }

  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(255, 201, 40, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bid-history-unread-badge {
    animation: none;
  }
}

.bid-message-thread-panel {
  border-left: 4px solid #0b63ce;
}

.bid-message-thread-panel.has-unread {
  border-left-color: #f4bd28;
  background: #fffef8;
}

.bid-message-thread-panel .message-unread-badge {
  width: max-content;
  align-self: flex-start;
}

.bid-message-thread-content {
  max-width: 960px;
  margin-inline: auto;
}

.bid-message-thread-panel .bid-panel-header {
  min-height: 2.15rem;
  padding-block: 0.35rem;
}

.bid-message-latest-date {
  margin-left: auto;
  color: #50627c;
  font-size: 0.75rem;
  font-weight: 600;
}

.bid-shell .bid-message-thread-panel .bid-panel-header .bid-message-latest-date {
  color: #ffd15c !important;
  font-weight: 800 !important;
}

.bid-message-latest {
  margin-bottom: 0;
  padding: 0.55rem 0.7rem;
}

.bid-message-latest strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.75rem;
}

.bid-message-disclosure {
  border-top: 1px solid #d4dfed;
}

.bid-message-disclosure > summary {
  width: max-content;
  padding: 0.45rem 0.15rem;
  color: #075fc7;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.bid-message-disclosure > summary:hover,
.bid-message-disclosure > summary:focus-visible {
  color: #003d86;
}

.bid-message-history-list,
.bid-message-reply form {
  padding: 0 0 0.65rem;
}

.bid-message-history-list .message-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .bid-message-latest-date {
    width: 100%;
    margin-left: 0;
  }

  .bid-message-thread-content {
    padding-inline: 0.6rem;
  }
}

.bid-history-message-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.3rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid #0b63ce;
  border-radius: 3px;
  color: #075fc7;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.bid-history-message-badge.is-unread {
  border-color: #d99f00;
  background: #fff6d6;
  color: #563b00;
}

.bid-history-message-count {
  display: inline-flex;
  min-width: 1.15rem;
  height: 1.15rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  border-radius: 0.6rem;
  background: #ffc928;
  color: #17335f;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.customer-message-table tr.is-unread > td {
  background: #fffbea;
}

.customer-message-preview {
  max-width: 34rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-sender-label {
  color: #50627c;
  font-size: 0.75rem;
  font-weight: 700;
}

.message-inbox-vehicle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.message-inbox-vehicle img {
  width: 72px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid #b9cbe3;
  border-radius: 4px;
  object-fit: cover;
}

.message-vehicle-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #aac2e3;
  border-left: 4px solid #0b63ce;
  border-radius: 4px;
  background: #fff;
}

.message-vehicle-photo {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d2ddeb;
  background: #f3f6fa;
  color: #66758b;
  font-size: 0.78rem;
}

.message-vehicle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-vehicle-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.message-vehicle-heading h2 {
  margin: 0;
  color: #103c76;
  font-size: 1rem;
  font-weight: 800;
}

.message-vehicle-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.55rem 0;
}

.message-vehicle-facts > div {
  display: flex;
  gap: 0.3rem;
}

.message-vehicle-facts dt {
  color: #53647a;
  font-size: 0.76rem;
}

.message-vehicle-facts dd {
  margin: 0;
  color: #173763;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .message-vehicle-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .message-vehicle-photo {
    height: 140px;
  }

  .message-vehicle-heading {
    align-items: center;
  }

  .message-vehicle-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .message-vehicle-detail-link {
    width: 100%;
  }

  .customer-message-table thead {
    display: none;
  }

  .customer-message-table,
  .customer-message-table tbody,
  .customer-message-table tr,
  .customer-message-table td {
    display: block;
    width: 100%;
  }

  .customer-message-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid #aac2e3;
  }

  .customer-message-table td {
    border-width: 0 0 1px;
  }

  .customer-message-table td:last-child {
    border-bottom: 0;
    text-align: right;
  }

  .customer-message-preview {
    max-width: calc(100vw - 3rem);
  }

  .message-thread-header {
    align-items: flex-start;
  }
}
/* Admin vehicle activity */
.admin-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-activity-header h1 {
  margin: 0;
}

.admin-activity-header-tools,
.admin-activity-auto-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-activity-auto-refresh {
  min-height: 32px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #9eb7d5;
  background: #fff;
  color: #173b69;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-activity-auto-refresh strong {
  min-width: 28px;
  color: #68788b;
}

.admin-activity-auto-refresh.is-enabled strong {
  color: #087b43;
}

.admin-activity-auto-refresh.is-error strong {
  color: #b42318;
}

.admin-activity-refresh-meta {
  color: #52657d;
  font-size: .76rem;
  white-space: nowrap;
}

.admin-activity-refresh-meta strong {
  color: #173b69;
  font-variant-numeric: tabular-nums;
}

.admin-activity-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  align-items: end;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #a8bfdb;
  border-left: 4px solid #ffc928;
  background: #fff;
}

.admin-activity-filters label {
  display: block;
  margin-bottom: 3px;
  color: #173b69;
  font-size: .76rem;
  font-weight: 700;
}

.admin-activity-filters .form-control,
.admin-activity-filters .form-select {
  font-size: .78rem;
}

.admin-activity-toast-container {
  z-index: 1090;
}

.admin-activity-expired-toast {
  width: min(320px, calc(100vw - 24px));
  border-color: #e3b51c;
  font-size: .75rem;
}

.admin-activity-expired-toast .toast-header {
  background: #fff3cd;
  color: #664d03;
  font-size: .78rem;
}

.admin-activity-expired-toast .toast-body {
  font-size: .75rem;
  line-height: 1.35;
}

.admin-activity-expired-toast.is-started {
  border-color: #75b798;
}

.admin-activity-expired-toast.is-started .toast-header {
  background: #d1e7dd;
  color: #0a3622;
}

.admin-activity-expired-toast.is-stopped {
  border-color: #adb5bd;
}

.admin-activity-expired-toast.is-stopped .toast-header {
  background: #e9ecef;
  color: #343a40;
}

.admin-activity-help {
  grid-column: 1 / -1;
  margin: 0;
  color: #52657d;
  font-size: .78rem;
}

.admin-activity-table {
  min-width: 1320px;
}

.admin-activity-warning-guide {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-bottom: 8px;
  padding: 7px 9px;
  border: 1px solid #d2dfed;
  background: #fff;
  color: #52657d;
  font-size: .72rem;
}

.admin-customer-cell {
  min-width: 230px;
}

.admin-customer-backoffice-link {
  color: #075fbd;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.admin-customer-backoffice-link:hover,
.admin-customer-backoffice-link:focus-visible {
  color: #003f83;
}

.admin-staff-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid #1263c6;
  border-radius: 4px;
  background: #eaf3ff;
  color: #0b4f9e;
  font-size: .64rem;
  font-weight: 800;
  line-height: 1.2;
  vertical-align: middle;
}

.admin-sales-cell {
  min-width: 100px;
}

.admin-signal-cell {
  min-width: 175px;
}

.admin-signal-cell small {
  display: block;
  margin-top: 3px;
  color: #52657d;
  font-size: .66rem;
  font-variant-numeric: tabular-nums;
}

.admin-signal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid #aab6c4;
  border-radius: 4px;
  background: #eef2f6;
  color: #526173;
  font-size: .66rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-signal-badge.signal-recent {
  border-color: #82b79c;
  background: #e8f7ef;
  color: #17603d;
}

.admin-signal-badge.signal-follow-up,
.admin-signal-badge.signal-new-watching {
  border-color: #d49a00;
  background: #fff1b8;
  color: #704700;
}

.admin-signal-badge.signal-high-intent {
  border-color: #c85a44;
  background: #fff0ec;
  color: #9f251d;
}

.admin-date-column {
  min-width: 112px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-purchase-date > span,
.admin-purchase-date > small,
.admin-purchase-date > .admin-customer-warning,
.admin-purchase-date > .admin-customer-no-history {
  display: flex;
  width: fit-content;
  margin-bottom: 3px;
}

.admin-purchase-date > small {
  color: #52657d;
}

.admin-mobile-activity-dates {
  display: none;
}

.admin-customer-meta {
  display: grid;
  gap: 2px;
  margin: 6px 0 0;
  padding-top: 5px;
  border-top: 1px solid #d9e3ef;
  font-size: .7rem;
}

.admin-customer-meta > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 5px;
}

.admin-customer-meta dt,
.admin-customer-meta dd {
  margin: 0;
}

.admin-customer-meta dt {
  color: #52657d;
  font-weight: 700;
}

.admin-customer-meta dd {
  color: #173b69;
  font-variant-numeric: tabular-nums;
}

.admin-customer-meta small {
  color: #52657d;
}

.admin-customer-warning,
.admin-customer-no-history,
.admin-access-level,
.admin-lane-access {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 5px;
  border: 1px solid;
  border-radius: 4px;
  font-size: .66rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-customer-warning {
  border-color: #d49a00;
  background: #fff1b8;
  color: #704700;
}

.admin-customer-no-history {
  border-color: #aab6c4;
  background: #eef2f6;
  color: #526173;
}

.admin-jda-access {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid #d9e3ef;
}

.admin-access-level,
.admin-lane-access {
  width: fit-content;
  white-space: nowrap;
}

.admin-auction-cell {
  min-width: 135px;
}

.admin-auction-cell > span,
.admin-auction-detail-link {
  display: block;
}

.admin-auction-detail-link {
  width: fit-content;
  margin-top: 6px;
}

.admin-access-level {
  border-color: #8eb2df;
  background: #eaf3ff;
  color: #0b4f9e;
}

.admin-access-level.status-9 {
  border-color: #d5a3a0;
  background: #fff0ef;
  color: #9f251d;
}

.admin-lane-access {
  border-color: #9dbcae;
  background: #edf8f2;
  color: #17603d;
}

.admin-activity-vehicle {
  display: grid;
  grid-template-columns: 72px minmax(150px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.admin-activity-vehicle-copy {
  min-width: 0;
}

.admin-vehicle-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid #d9e3ef;
}

.admin-vehicle-fact-separator {
  color: #718198;
  font-weight: 700;
}

.admin-vehicle-fact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #52657d;
  font-size: .67rem;
  white-space: nowrap;
}

.admin-vehicle-fact strong {
  color: #173b69;
  font-size: .7rem;
}

.admin-condition-point {
  display: inline-flex;
  min-width: 24px;
  justify-content: center;
  padding: 1px 5px;
  border: 1px solid #8eb2df;
  border-radius: 4px;
  background: #eaf3ff;
  color: #0b4f9e !important;
}

.admin-activity-photo-link,
.admin-activity-photo-link img,
.admin-activity-photo-placeholder {
  width: 72px;
  height: 54px;
}

.admin-activity-photo-link {
  display: block;
}

.admin-activity-photo-link img {
  display: block;
  border: 1px solid #aac0da;
  border-radius: 4px;
  object-fit: cover;
}

.admin-activity-photo-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid #c6d4e4;
  border-radius: 4px;
  background: #eef3f8;
  color: #65758a;
  font-size: .68rem;
  font-weight: 700;
}

.admin-activity-date {
  white-space: nowrap;
}

.admin-activity-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #1263c6;
  border-radius: 4px;
  background: #eaf3ff;
  color: #0b4f9e;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-activity-badge.is-bid {
  border-color: #d29b00;
  background: #fff2bd;
  color: #744b00;
}

.admin-activity-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 767.98px) {
  .admin-activity-header,
  .admin-activity-header-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-activity-vehicle {
    grid-template-columns: 64px minmax(140px, 1fr);
  }

  .admin-activity-photo-link,
  .admin-activity-photo-link img,
  .admin-activity-photo-placeholder {
    width: 64px;
    height: 48px;
  }

  .admin-activity-filters {
    grid-template-columns: 1fr;
  }

  .admin-activity-submit {
    width: 100%;
  }

  .admin-activity-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-activity-table {
    min-width: 1050px;
  }

  .admin-date-column {
    display: none;
  }

  .admin-mobile-activity-dates {
    display: table-cell;
    min-width: 225px;
  }

  .admin-mobile-activity-dates .admin-customer-meta {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}
/* Auction sheet translation Admin request queue. */
.admin-translation-requests .admin-translation-notice { margin: 0 0 10px; padding: 7px 10px; border: 1px solid #b7cae6; border-left: 3px solid #f4bf2a; background: #f8fbff; color: #173d72; font-size: .86rem; }
.admin-translation-requests .admin-translation-notice.success { border-left-color: #198754; }
.admin-translation-requests .admin-translation-notice.error { border-left-color: #c33d2f; }
.admin-translation-requests .admin-translation-status { display: inline-block; padding: 2px 6px; border: 1px solid #b7cae6; border-radius: 4px; background: #eef5ff; color: #174a86; font-size: .78rem; font-weight: 700; }
.admin-translation-requests .admin-translation-generate { display: inline; }
.admin-translation-filters, .admin-translation-pager { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 0 0 8px; font-size: .8rem; }
.admin-translation-filters select { width: 78px; }
.admin-translation-pager { margin: 8px 0 0; }
.admin-template-sheet-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.admin-template-placeholder { position: relative; z-index: 0; }
.admin-template-region { z-index: 1; }
.admin-translation-review { max-width: 1240px; margin: 0 auto; color: #173d72; }
.admin-translation-review-summary { margin-bottom: 9px; padding: 7px 10px; border-left: 3px solid #f4bf2a; background: #f8fbff; font-size: .86rem; }
.admin-translation-review-summary span { margin-left: 18px; }
.admin-translation-region { margin-bottom: 10px; border: 1px solid #b7cae6; background: #fff; }
.admin-translation-region > header { display: flex; justify-content: space-between; align-items: center; padding: 6px 9px; background: #eef5ff; border-bottom: 1px solid #b7cae6; }
.admin-translation-region h2 { margin: 0; font-size: .95rem; }
.admin-translation-region > header span { color: #60738c; font-size: .75rem; }
.admin-translation-region-grid { display: grid; grid-template-columns: minmax(180px, .8fr) 1fr 1.2fr; gap: 10px; padding: 9px; }
.admin-translation-region-grid label { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 700; }
.admin-translation-region-grid pre, .admin-translation-region-grid textarea { width: 100%; min-height: 132px; margin: 0; padding: 7px; border: 1px solid #b7cae6; background: #fff; color: #173d72; font: .82rem/1.4 Arial, sans-serif; white-space: pre-wrap; }
.admin-translation-images img { display: block; width: 100%; max-height: 180px; object-fit: contain; border: 1px solid #b7cae6; }
.admin-translation-image-toggle { display: flex; margin-bottom: 5px; }
.admin-translation-image-toggle button { padding: 3px 8px; border: 1px solid #9db8dc; background: #fff; color: #174a86; font-size: .75rem; }
.admin-translation-image-toggle button.active { background: #1265ca; color: #fff; }
.admin-translation-region-actions, .admin-translation-review-actions { display: flex; gap: 6px; margin-top: 6px; }
.admin-translation-publish { margin-top: 8px; text-align: right; }
.admin-translation-request-filters { display: grid; grid-template-columns: auto minmax(170px, 1fr) auto minmax(130px, 180px) auto minmax(145px, 190px) auto 82px auto auto; align-items: center; gap: 6px; }
.admin-translation-request-filters label { margin: 0; white-space: nowrap; font-size: .75rem; font-weight: 700; }
.admin-translation-table td strong { color: #173d72; }
.admin-auction-status { display: block; width: fit-content; margin-top: 3px; padding: 1px 5px; border: 1px solid #9eb3cd; background: #eef3f8; color: #53677f; font-size: .65rem; font-weight: 700; }
.admin-auction-status.open { border-color: #168657; background: #e7f6ee; color: #087044; }
.admin-auction-status.progress { border-color: #d79b00; background: #fff5d6; color: #805d00; }
@media (max-width: 767px) { .admin-translation-region-grid { grid-template-columns: 1fr; } .admin-translation-review-summary span { display: block; margin: 3px 0 0; } }
@media (max-width: 991px) { .admin-translation-request-filters { grid-template-columns: auto minmax(0, 1fr); } .admin-translation-request-filters .btn { width: 100%; } }

/* Customer auction sheet and translation workspace. */
.big-photo-vehicle-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 10px;
  padding: 7px 10px;
  border-left: 3px solid #f4bf2a;
  background: #f8fbff;
  color: #173d72;
  font-size: .8rem;
}

.big-photo-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  align-items: start;
  gap: 12px;
}

.big-photo-workspace .big-photo-panel,
.big-photo-workspace .big-photo-translation-panel {
  margin: 0;
}

.big-photo-workspace .big-photo-panel {
  padding: 12px;
}

.big-photo-workspace .photo-frame {
  aspect-ratio: auto;
  max-height: calc(100vh - 180px);
}

.big-photo-sheet-stage { position: relative; display: inline-block; max-width: 100%; }
.big-photo-sheet-stage .photo-frame { display: block; }
.big-photo-region-marker {
  position: absolute;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 2px solid #1265ca;
  border-radius: 2px;
  background: rgba(18, 101, 202, .08);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.big-photo-region-marker.inspector { border-color: #16857b; background: rgba(22, 133, 123, .08); }
.big-photo-region-marker.notice { border-color: #d99d00; background: rgba(244, 191, 42, .1); }
.big-photo-region-marker span,
.big-photo-region-number { display: inline-grid; place-items: center; width: 20px; height: 20px; background: #1265ca; color: #fff; font-size: .7rem; font-weight: 700; }
.big-photo-region-marker span { position: absolute; top: -2px; left: -2px; }
.big-photo-region-marker.inspector span,
.big-photo-translation-section.inspector .big-photo-region-number { background: #16857b; }
.big-photo-region-marker.notice span,
.big-photo-translation-section.notice .big-photo-region-number { background: #b98200; }
.big-photo-region-marker.is-active { background: rgba(18, 101, 202, .22); box-shadow: 0 0 0 3px rgba(18, 101, 202, .2); }
.big-photo-region-marker.inspector.is-active { background: rgba(22, 133, 123, .22); box-shadow: 0 0 0 3px rgba(22, 133, 123, .2); }
.big-photo-region-marker.notice.is-active { background: rgba(244, 191, 42, .26); box-shadow: 0 0 0 3px rgba(217, 157, 0, .2); }
.big-photo-sheet-stage.regions-hidden .big-photo-region-marker { display: none; }
.big-photo-region-toggle { display: flex; align-items: center; gap: 5px; margin: 8px 12px 0; color: #385475; font-size: .75rem; font-weight: 700; }
.big-photo-region-toggle input { margin: 0; }
.big-photo-translation-section { scroll-margin-top: 12px; }
.big-photo-translation-section.is-active { box-shadow: 0 0 0 2px rgba(18, 101, 202, .18); }
.big-photo-translation-section h3 { display: flex; align-items: center; gap: 6px; }
.big-photo-region-number { flex: 0 0 20px; }

.big-photo-translation-panel {
  position: sticky;
  top: 8px;
}

.big-photo-translation-sections {
  display: grid;
  gap: 8px;
  padding: 10px 12px 4px;
}

.big-photo-translation-section {
  border: 1px solid #c6d5e8;
  border-left: 3px solid #1265ca;
  background: #f8fbff;
}

.big-photo-translation-section.inspector { border-left-color: #16857b; }
.big-photo-translation-section.notice { border-left-color: #f4bf2a; }
.big-photo-translation-section.legacy { margin: 10px 12px 4px; }
.big-photo-translation-section h3 { margin: 0; padding: 5px 8px; border-bottom: 1px solid #d7e2f0; color: #123d75; font-size: .78rem; }
.big-photo-translation-section p { margin: 0; padding: 7px 8px; color: #273b55; font-size: .84rem; line-height: 1.45; }
.big-photo-additional-photos { padding: 12px; }

@media (max-width: 767px) {
  .big-photo-workspace { grid-template-columns: 1fr; }
  .big-photo-translation-panel { position: static; }
  .big-photo-workspace .photo-frame { max-height: none; }
  .big-photo-vehicle-summary { gap: 5px 12px; }
}

.bid-translation-available {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 12px;
  padding: 7px 10px;
  border: 1px solid #b8cce6;
  border-left: 3px solid #f4bf2a;
  border-radius: 4px;
  background: #f8fbff;
  color: #164a87;
  font-size: .8rem;
  text-decoration: none;
}

.bid-translation-available:hover { background: #eef5ff; color: #075fd4; }
.bid-admin-translation-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 12px; padding: 8px 10px; border: 1px solid #b9cce4; border-left: 3px solid #1265ca; background: #f8fbff; color: #173b69; }
.bid-admin-translation-action > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bid-admin-translation-action strong { font-size: .8rem; }
.bid-admin-translation-action span { color: #586b83; font-size: .75rem; }
.bid-admin-translation-action form { flex: 0 0 auto; }
@media (max-width: 575.98px) {
  .bid-admin-translation-action { align-items: stretch; flex-direction: column; gap: 6px; }
  .bid-admin-translation-action form .btn { width: 100%; }
}
.bid-translation-panel { scroll-margin-top: 10px; }
.bid-translation-panel .bid-panel-header { gap: 8px; }
.bid-translation-panel .bid-panel-header .btn { margin-left: auto; white-space: nowrap; }
.bid-translation-panel .bid-translation-sheet-link {
  border-color: #075fd4;
  background: #fff;
  color: #075fd4;
}
.bid-shell .bid-translation-panel .bid-translation-sheet-link,
.bid-shell .bid-translation-panel .bid-translation-sheet-link * {
  color: #075fd4 !important;
}
.bid-translation-panel .bid-translation-sheet-link:hover,
.bid-translation-panel .bid-translation-sheet-link:focus-visible {
  border-color: #075fd4;
  background: #075fd4;
  color: #fff;
}
.bid-shell .bid-translation-panel .bid-translation-sheet-link:hover,
.bid-shell .bid-translation-panel .bid-translation-sheet-link:hover *,
.bid-shell .bid-translation-panel .bid-translation-sheet-link:focus-visible,
.bid-shell .bid-translation-panel .bid-translation-sheet-link:focus-visible * {
  color: #fff !important;
}
.bid-translation-panel .bid-translation-sheet-link .bid-ui-icon { color: currentColor; }
.bid-translation-content { display: grid; gap: 7px; padding: 10px; }
.bid-translation-section { border: 1px solid #c7d6e9; border-left: 3px solid #1265ca; background: #f8fbff; }
.bid-translation-section.inspector { border-left-color: #16857b; }
.bid-translation-section.notice { border-left-color: #f4bf2a; }
.bid-translation-section h3 { margin: 0; padding: 5px 8px; border-bottom: 1px solid #d8e3f0; color: #123d75; font-size: .76rem; }
.bid-translation-section p { margin: 0; padding: 7px 8px; color: #273b55; font-size: .82rem; line-height: 1.45; white-space: pre-line; }

.translation-disclaimer {
  display: grid;
  gap: 2px;
  margin: 8px 12px 10px;
  padding: 7px 9px;
  border: 1px solid #e4c96f;
  border-left: 3px solid #d8a900;
  border-radius: 4px;
  background: #fff8d9;
  color: #594814;
  font-size: .75rem;
  line-height: 1.4;
}
.translation-disclaimer strong { color: #4b3b08; font-size: .76rem; }
.bid-translation-content .translation-disclaimer { margin: 1px 0 0; }

@media (max-width: 991.98px) {
  .bid-translation-panel { order: 2; }
  .bid-ninja-banner { order: 3; }
  .bid-workspace-panel { order: 4; }
  .bid-auction-info-panel { order: 5; }
  .bid-external-history-panel { order: 6; }
}

@media (max-width: 575.98px) {
  .bid-translation-panel .bid-panel-header { align-items: flex-start; flex-direction: column; }
  .bid-translation-panel .bid-panel-header .btn { width: 100%; margin-left: 0; }
}
