/**
 * 提车应收款 — 对齐租赁合同管理（vm-page + lc-page + ledger-page）
 */
@import url('../../ledger-shared/styles/ledger-page.css');
@import url('../../lease-contract-management/styles/lease-contract.css');

.vm-page.vpr-page.lc-page--list-dense {
  --lc-list-chrome-offset: 420px;
}

.vm-page.vpr-page .vm-list-table .ant-table-tbody > tr:not(.ant-table-measure-row) > td.vm-stacked-cell-td {
  white-space: normal !important;
  overflow: visible !important;
  vertical-align: middle !important;
}

.vm-page.vpr-page .vpr-action-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.vm-page.vpr-page .vpr-action-links .ant-btn-link {
  padding-inline: 0;
  height: auto;
  line-height: 1.4;
}

.vm-page.vpr-page .vpr-project-info-cell--clickable {
  cursor: pointer;
}

.vm-page.vpr-page .vpr-project-info-cell--clickable:hover .primary {
  color: var(--vm-link, #1677ff);
}

.vm-page.vpr-page .vpr-project-info-cell--clickable:focus-visible {
  outline: 2px solid var(--vm-focus, #1677ff);
  outline-offset: 2px;
  border-radius: 4px;
}

.vm-page.vpr-page .vpr-delivery-btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--ln-link, #32a06e);
  cursor: pointer;
  font-weight: 500;
}

.vm-page.vpr-page .vpr-delivery-btn:hover {
  text-decoration: underline;
}

.vm-page.vpr-page .vpr-delivery-btn:focus-visible {
  outline: 2px solid var(--ln-link, #32a06e);
  outline-offset: 2px;
  border-radius: 4px;
}

.vm-page.vpr-page .vpr-pickup-native-table--vehicles {
  min-width: 980px;
}

.vm-page.vpr-page .vpr-pickup-subtable__batch-cell {
  vertical-align: middle;
  background: var(--ln-surface-card, #fff);
}

.vm-page.vpr-page .vpr-pickup-subtable__actions {
  white-space: normal;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2px 4px;
}

.vm-page.vpr-page .vpr-pickup-subtable__actions .vm-op-action {
  flex: 0 1 auto;
}

.vm-page.vpr-page .vpr-op-action--danger {
  color: var(--ln-danger, #dc2626);
}

.vm-page.vpr-page .vpr-op-action--danger:hover {
  color: var(--ln-danger, #dc2626);
  background: color-mix(in srgb, var(--ln-danger, #dc2626) 8%, transparent);
}

.vm-page.vpr-page .vpr-pickup-subtable__actions .vm-operation-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.vm-page.vpr-page .vpr-pickup-native-table td.vpr-money--total {
  font-weight: 600;
}

.vm-page.vpr-page .vpr-pickup-native-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--ln-surface-card, #fff);
  border: 1px solid var(--ln-hairline, #e2e8f0);
  border-radius: var(--ln-radius-control, 8px);
  overflow: hidden;
}

.vm-page.vpr-page .vpr-pickup-native-table th,
.vm-page.vpr-page .vpr-pickup-native-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--ln-hairline, #e2e8f0);
  font-size: 12px;
  color: var(--ln-body, #334155);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.vm-page.vpr-page .vpr-pickup-native-table th {
  background: var(--ln-canvas-soft, #f6f7f7);
  color: var(--ln-muted, #71717a);
  font-weight: 500;
  text-align: left;
}

.vm-page.vpr-page .vpr-pickup-native-table td.vpr-money {
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.vm-page.vpr-page .vpr-pickup-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vm-page.vpr-page .vpr-pickup-expand__empty {
  padding: 16px;
  text-align: center;
  color: var(--ln-muted, #71717a);
  font-size: 13px;
}

.vm-page.vpr-page .vpr-pickup-subtable__vehicle-count {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ln-primary, #32a06e);
  background: color-mix(in srgb, var(--ln-primary, #32a06e) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--ln-primary, #32a06e) 16%, transparent);
  white-space: nowrap;
}

.vm-page.vpr-page .vpr-pickup-subtable__vehicle-count-cell {
  text-align: left;
}

.vm-page.vpr-page .vpr-pickup-subtable__model-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vm-page.vpr-page .vpr-pickup-subtable__model-group-name {
  font-weight: 500;
  color: var(--ln-fg, #18181b);
  line-height: 1.4;
}

.vm-page.vpr-page .vpr-pickup-subtable__model-group-plates {
  font-size: 12px;
  color: var(--ln-muted, #71717a);
  line-height: 1.4;
  word-break: break-all;
}

.vm-page.vpr-page .vpr-pickup-subtable__model-group-plates.is-empty {
  color: var(--ln-muted, #71717a);
}

.vm-page.vpr-page .vpr-row-expand-spacer {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.vm-page.vpr-page .vpr-pickup-expand {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.vm-page.vpr-page .vpr-main-list-table .ant-table-expanded-row > td {
  padding: 8px 12px 12px !important;
  background: var(--ln-canvas-soft, #f8fafc);
}

.vm-page.vpr-page .vpr-main-list-table .ant-table-expanded-row > td.ant-table-cell {
  border-bottom: 1px solid var(--ln-hairline, #e2e8f0);
}

/* 主表一屏展示：scroll.x 与容器同宽，表头/表体共用 colgroup */
.vm-page.vpr-page .vm-table-wrap {
  width: 100%;
  overflow: hidden;
}

.vm-page.vpr-page .vpr-main-list-table .ant-table-container {
  overflow: hidden !important;
}

.vm-page.vpr-page .vpr-main-list-table .ant-table-content {
  overflow: hidden !important;
}

.vm-page.vpr-page .vpr-main-list-table .ant-table-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.vm-page.vpr-page .vpr-main-list-table .ant-table-sticky-scroll,
.vm-page.vpr-page .vpr-main-list-table .ant-table-sticky-scroll-bar {
  display: none !important;
}

.vm-page.vpr-page .vpr-main-list-table .ant-table-thead > tr > th,
.vm-page.vpr-page .vpr-main-list-table .ant-table-tbody > tr:not(.ant-table-measure-row) > td {
  overflow: hidden;
}

.vm-page.vpr-page .vpr-col-project .lc-project-info-merged-cell,
.vm-page.vpr-page .vpr-col-project .lc-project-info-cell,
.vm-page.vpr-page .vpr-col-project .vm-stack .primary,
.vm-page.vpr-page .vpr-col-project .vm-stack .code,
.vm-page.vpr-page .vpr-col-project .vm-stack .sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vm-page.vpr-page .vpr-col-owner .vm-stack .primary,
.vm-page.vpr-page .vpr-col-owner .vm-stack .sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vm-page.vpr-page .vpr-main-list-table .ant-table-thead > tr > th {
  white-space: nowrap !important;
}

.vm-page.vpr-page .vpr-col-pickup {
  text-align: left !important;
}

.vm-page.vpr-page .vpr-main-list-table .ant-table-thead > tr > th.vpr-col-pickup {
  text-align: center !important;
}

.vm-page.vpr-page .vpr-col-pickup .lc-lease-order-counts {
  justify-content: flex-start;
  min-width: 0;
}

.vm-page.vpr-page .vpr-col-action {
  white-space: nowrap;
}

/* 金额列 */
.vm-page.vpr-page .vpr-money-col-th,
.vm-page.vpr-page .vpr-money-col-td {
  text-align: left !important;
  font-variant-numeric: tabular-nums;
  padding-inline: 6px !important;
  vertical-align: middle !important;
}

.vm-page.vpr-page .vpr-money-cell {
  display: inline-block;
  width: 100%;
  text-align: left;
  font-size: 12px;
  color: var(--ln-body, #334155);
}

.vm-page.vpr-page .vpr-money-cell--total {
  font-weight: 600;
}

@media (max-width: 1100px) {
  .vm-page.vpr-page.lc-page--list-dense {
    --lc-list-chrome-offset: 480px;
  }
}

/* 办理页顶栏：返回 + 操作 */
.vm-page.vpr-collect-page .vpr-collect-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}


.vm-page.vpr-collect-page .vpr-collect-topbar__link {
  padding: 0;
  flex-shrink: 0;
}

/* —— 办理页 —— */
.vm-page.vpr-collect-page {
  padding: 16px 24px 96px;
  min-height: 100vh;
  background: var(--ln-canvas-parchment, #f5f6f6);
  box-sizing: border-box;
}

.vm-page.vpr-collect-page .vpr-collect-topbar__left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.vm-page.vpr-collect-page .vpr-collect-topbar__intro {
  min-width: 0;
  padding-top: 2px;
}

.vm-page.vpr-collect-page .vpr-collect-topbar__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ln-ink);
  line-height: 1.35;
}

.vm-page.vpr-collect-page .vpr-collect-topbar__meta {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--ln-muted);
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vm-page.vpr-collect-page .vpr-collect-draft-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.vm-page.vpr-collect-page .vpr-collect-card {
  margin-bottom: 16px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-card);
  box-shadow: var(--ln-shadow-soft);
}

.vm-page.vpr-collect-page .vpr-collect-card .ant-card-head {
  min-height: 48px;
  border-bottom: 1px solid var(--ln-hairline);
}

.vm-page.vpr-collect-page .vpr-collect-card .ant-card-head-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ln-ink);
}

.vm-page.vpr-collect-page .vpr-collect-card-toggle.ant-btn {
  padding: 0;
  height: auto;
  font-size: 0.8125rem;
}

.vm-page.vpr-collect-page .vpr-collect-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}

@media (max-width: 960px) {
  .vm-page.vpr-collect-page .vpr-collect-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vm-page.vpr-collect-page .vpr-collect-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vm-page.vpr-collect-page .vpr-collect-field__label {
  margin-bottom: 6px;
  font-size: 0.8125rem;
  color: var(--ln-muted);
}

.vm-page.vpr-collect-page .vpr-collect-field__value {
  color: var(--ln-ink);
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 22px;
}

.vm-page.vpr-collect-page .vpr-collect-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .vm-page.vpr-collect-page .vpr-collect-kpi-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vm-page.vpr-collect-page .vpr-collect-kpi-card {
  background: var(--ln-surface-card);
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-card);
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vm-page.vpr-collect-page .vpr-collect-kpi-card--clickable {
  cursor: pointer;
}

.vm-page.vpr-collect-page .vpr-collect-kpi-card--clickable:hover {
  border-color: var(--ln-primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ln-primary) 24%, transparent);
}

.vm-page.vpr-collect-page .vpr-collect-kpi-card__label {
  font-size: 0.8125rem;
  color: var(--ln-muted);
  margin-bottom: 8px;
}

.vm-page.vpr-collect-page .vpr-collect-kpi-card__value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ln-primary-focus);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.vm-page.vpr-collect-page .vpr-collect-kpi-card__hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--ln-muted-soft);
}

.vm-page.vpr-collect-page .vpr-collect-batch-panel {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--ln-primary) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--ln-primary) 18%, var(--ln-hairline));
  border-radius: var(--ln-radius-control);
  font-size: 0.8125rem;
  color: var(--ln-body);
  line-height: 1.6;
}

.vm-page.vpr-collect-page .vpr-collect-batch-panel__title {
  font-weight: 600;
  color: var(--ln-ink);
  margin-bottom: 6px;
}

.vm-page.vpr-collect-page .vpr-collect-batch-panel__amount {
  color: var(--ln-primary-focus);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.vm-page.vpr-collect-page .vpr-collect-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card);
}

.vm-page.vpr-collect-page .vpr-collect-table-toolbar--warn {
  border-color: #fcd34d;
  background: #fffbeb;
}

.vm-page.vpr-collect-page .vpr-collect-table-toolbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.vm-page.vpr-collect-page .vpr-collect-table-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vm-page.vpr-collect-page .vpr-collect-table-toolbar__actions .ant-btn {
  min-height: 32px;
}

.vm-page.vpr-collect-page .vpr-collect-table-toolbar__count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ln-ink);
  font-variant-numeric: tabular-nums;
}

.vm-page.vpr-collect-page .vpr-collect-table-toolbar__hint {
  font-size: 0.75rem;
  color: var(--ln-muted);
}

.vm-page.vpr-collect-page .vpr-collect-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: end;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .vm-page.vpr-collect-page .vpr-collect-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vm-page.vpr-collect-page .vpr-collect-form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vm-page.vpr-collect-page .vpr-collect-form-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .vm-page.vpr-collect-page .vpr-collect-form-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vm-page.vpr-collect-page .vpr-collect-form-item {
  margin-bottom: 0;
}

.vm-page.vpr-collect-page .vpr-collect-form-item--full {
  grid-column: 1 / -1;
}

.vm-page.vpr-collect-page .vpr-collect-table-wrap {
  overflow: auto;
  max-height: min(520px, calc(100vh - 420px));
  margin-bottom: 16px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card);
}

.vm-page.vpr-collect-page .vpr-collect-table {
  width: 100%;
  min-width: 1600px;
  border-collapse: collapse;
  font-size: 0.8125rem;
  table-layout: fixed;
}

.vm-page.vpr-collect-page .vpr-collect-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ln-hairline);
  background: var(--ln-surface-pearl);
  color: var(--ln-muted);
  font-weight: 600;
  white-space: nowrap;
  text-align: left;
  box-shadow: 0 1px 0 var(--ln-hairline);
}

.vm-page.vpr-collect-page .vpr-collect-table thead th.vpr-collect-th--num {
  text-align: right;
}

.vm-page.vpr-collect-page .vpr-collect-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--ln-hairline);
  vertical-align: middle;
  color: var(--ln-body);
}

.vm-page.vpr-collect-page .vpr-collect-row--selected {
  background: color-mix(in srgb, var(--ln-primary) 5%, #fff);
}

.vm-page.vpr-collect-page .vpr-collect-row--idle {
  background: var(--ln-surface-card);
}

.vm-page.vpr-collect-page .vpr-collect-row--done {
  background: var(--ln-surface-pearl);
  color: var(--ln-muted);
}

.vm-page.vpr-collect-page .vpr-collect-row--done td {
  color: var(--ln-muted);
}

.vm-page.vpr-collect-page .vpr-collect-row:not(.vpr-collect-row--done) {
  cursor: pointer;
}

.vm-page.vpr-collect-page .vpr-collect-row:hover:not(.vpr-collect-row--done) {
  background: color-mix(in srgb, var(--ln-primary) 3%, #fff);
}

.vm-page.vpr-collect-page .vpr-collect-row--done {
  cursor: default;
}

.vm-page.vpr-collect-page .vpr-collect-table tbody td.vpr-collect-td--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vm-page.vpr-collect-page .vpr-collect-row-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 0 6px;
  height: 20px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ln-muted);
  background: var(--ln-surface-pearl);
  border: 1px solid var(--ln-hairline);
  vertical-align: middle;
}

.vm-page.vpr-collect-page .vpr-collect-kpi-card--clickable:focus-visible {
  outline: 2px solid var(--ln-primary);
  outline-offset: 2px;
}

.vm-page.vpr-collect-page .vpr-collect-footer__summary--warn {
  color: #b45309;
}

.vm-page.vpr-collect-page .vpr-collect-footer .vm-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vm-page.vpr-collect-page .vpr-collect-section-title {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ln-ink);
}

.vm-page.vpr-collect-page .vpr-collect-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--ln-surface-card) 92%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--ln-hairline);
  box-shadow: 0 -4px 16px rgba(24, 24, 27, 0.06);
}

.vm-page.vpr-collect-page .vpr-collect-footer__summary {
  font-size: 0.875rem;
  color: var(--ln-body);
}

.vm-page.vpr-collect-page .vpr-collect-footer__summary strong {
  margin-left: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ln-primary-focus);
  font-variant-numeric: tabular-nums;
}

.vm-page.vpr-collect-page .vpr-collect-footer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .vm-page.vpr-collect-page .vpr-collect-kpi-card--clickable {
    transition: none;
  }
}
