/* بخش خودرو */
.veh-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.veh-excel-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
  margin: 0.35rem 0 0.5rem;
}
.veh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ui-border, #e2e8f0);
  border-radius: 8px;
  background: var(--ui-surface-muted, #f8fafc);
}
.veh-filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 9.5rem;
  flex: 1 1 9.5rem;
  max-width: 14rem;
}
.veh-filter-item label {
  font-size: 0.75rem;
  color: var(--ui-text-muted, #64748b);
  margin: 0;
}
.veh-filter-item .form-control {
  width: 100%;
  min-width: 0;
  font-size: 0.85rem;
  padding: 0.3rem 0.45rem;
  height: 2rem;
}
#vehFilterClear {
  align-self: flex-end;
  white-space: nowrap;
}
.veh-toolbar .form-control {
  width: auto;
  min-width: 8rem;
}
.veh-selected-count {
  font-size: 0.85rem;
  color: var(--ui-text-muted, #64748b);
  margin-inline-start: 0.25rem;
}
.veh-select-all-banner {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.veh-select-all-banner[hidden] {
  display: none !important;
}
.veh-select-all-banner button.veh-select-all-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.veh-select-all-banner.is-confirmed {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}
.veh-selected-basket {
  margin-bottom: 0.85rem;
}
.veh-selected-basket-inner {
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  border-radius: 12px;
  padding: 0.65rem 0.75rem 0.75rem;
}
.veh-selected-basket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.5rem;
}
.veh-selected-basket-head strong {
  color: #1e3a8a;
  font-size: 0.92rem;
}
.veh-selected-basket-head .muted {
  font-size: 0.8rem;
  color: #64748b;
}
.veh-selected-table-wrap {
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.veh-selected-table {
  margin: 0;
  font-size: 0.85rem;
}
.veh-selected-table th,
.veh-selected-table td {
  padding: 0.4rem 0.55rem;
  white-space: nowrap;
}
.veh-selected-table .veh-sel-remove {
  color: #b91c1c;
  border-color: #fecaca;
}
.veh-selected-table .veh-sel-remove:hover {
  background: #fef2f2;
  border-color: #f87171;
}
/* شبیه جدول تب خودرو در اینکوئری: سطر فشرده، VIN پهن، بقیه باریک، zebra */
.veh-table.data-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}
.veh-table.data-table th,
.veh-table.data-table td {
  padding: 2px 3px !important;
  vertical-align: middle;
  line-height: 1.2;
  border-color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.veh-table tbody tr:nth-child(odd) td {
  background: #f8fafc;
}
.veh-table tbody tr:nth-child(even) td {
  background: #e8eef5;
}
.veh-table input.veh-cell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  padding: 2px 4px;
  height: 26px;
  line-height: 1.2;
  border-radius: 4px;
  box-sizing: border-box;
  margin: 0;
}
.veh-table th.veh-col-check,
.veh-table td.veh-col-check {
  width: 28px;
  min-width: 28px;
  max-width: 32px;
  text-align: center;
  padding: 2px !important;
}
.veh-table th.veh-col-idx,
.veh-table td.veh-col-idx {
  width: 28px;
  min-width: 28px;
  max-width: 36px;
  text-align: center;
  padding: 2px !important;
}
.veh-table th.veh-col-vin,
.veh-table td.veh-col-vin {
  min-width: 102px;
  width: 120px;
  max-width: 126px;
}
.veh-table th.veh-col-compact,
.veh-table td.veh-col-compact {
  min-width: 72px;
  width: 90px;
  max-width: 110px;
}
.veh-table th.veh-col-trade,
.veh-table td.veh-col-trade {
  min-width: 59px;
  width: 73px;
  max-width: 89px;
}
.veh-table th.veh-col-fleet,
.veh-table td.veh-col-fleet {
  min-width: 97px;
  width: 122px;
  max-width: 135px;
}
.veh-table th.veh-col-deliver,
.veh-table td.veh-col-deliver {
  min-width: 1.75rem;
  width: 2rem;
  max-width: 2.25rem;
  padding-inline: 0.15rem;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 0.78rem;
}
.veh-table td.veh-col-deliver .veh-deliver-check {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  cursor: pointer;
}
.veh-deliver-mark {
  color: #15803d;
  font-weight: 700;
}
.veh-table th.veh-col-model,
.veh-table td.veh-col-model {
  min-width: 173px;
  width: 216px;
  max-width: 240px;
}
.veh-table th.veh-col-motor,
.veh-table td.veh-col-motor {
  min-width: 43px;
  width: 54px;
  max-width: 66px;
}
.veh-table th.veh-col-half,
.veh-table td.veh-col-half {
  /* رنگ / ساخت / شاسی */
  min-width: 36px;
  width: 45px;
  max-width: 55px;
}
.veh-pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 280px;
  overflow: auto;
  margin: 0.75rem 0;
}
.veh-pick-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: start;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--ui-border, #e2e8f0);
  border-radius: 8px;
  background: var(--ui-surface, #fff);
  cursor: pointer;
}
.veh-pick-item:hover:not(:disabled) {
  border-color: var(--ui-accent, #2563eb);
}
.veh-pick-item.is-selected {
  border-color: var(--ui-accent, #2563eb);
  background: #eff6ff;
}
.veh-pick-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.veh-pick-item span {
  font-size: 0.8rem;
  color: var(--ui-text-muted, #64748b);
}
#vehPagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* رنگ ردیف تحویل مبدأ/مقصد — باید بر رنگ راه‌راه جدول غلبه کند */
.veh-table tbody tr.veh-row-deliver-origin > td,
.veh-table tbody tr.veh-row-deliver-origin:hover > td {
  background: #e8f8ef !important;
}
.veh-table tbody tr.veh-row-deliver-both > td,
.veh-table tbody tr.veh-row-deliver-both:hover > td {
  background: #95d5b2 !important;
}
.veh-table tbody tr.veh-row-deliver-origin input.veh-cell,
.veh-table tbody tr.veh-row-deliver-both input.veh-cell {
  background-color: transparent;
}
