/**
 * 租赁合同管理 — Ant Design 控件与 vm 布局对齐
 */

/* 筛选区：Ant Select / DatePicker 与 vm-input 同高 */
.vm-page.lc-page .vm-filter-field .ant-select,
.vm-page.lc-page .vm-filter-field .ant-picker {
  width: 100%;
}

.vm-page.lc-page .vm-filter-field .ant-select .ant-select-selector,
.vm-page.lc-page .vm-filter-field .ant-picker {
  min-height: var(--vm-control-height) !important;
  border-radius: var(--ln-radius-control) !important;
  border-color: var(--ln-hairline-strong) !important;
  font-size: 0.875rem;
}

.vm-page.lc-page .vm-filter-field .ant-select .ant-select-selector {
  align-items: center;
}

.vm-page.lc-page .vm-filter-field .ant-select-multiple .ant-select-selector {
  min-height: var(--vm-control-height) !important;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* 列表工具栏：上下间距一致（以下方 16px 为准） */
.vm-page.lc-page .vm-filter-card {
  margin-bottom: 16px;
}

.vm-page.lc-page .vm-table-section .vm-table-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: var(--vm-btn-height);
  padding: 0 0 16px;
  margin-bottom: 0;
}

.vm-page.lc-page .lc-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vm-page.lc-page .lc-action-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--ln-muted, #64748b);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vm-page.lc-page .lc-action-more-btn:hover {
  background: #f1f5f9;
  color: var(--ln-body, #334155);
}

.vm-page.lc-page .lc-action-more-btn:focus-visible {
  outline: 2px solid var(--ln-primary, #32a06e);
  outline-offset: 2px;
}

/* 列表区：Ant Table 嵌入 vm-table-card */
.vm-page.lc-page .vm-table-card .vm-list-table.ant-table-wrapper,
.vm-page.lc-page .vm-table-card .vm-list-table .ant-table-wrapper {
  width: 100%;
}

.vm-page.lc-page .vm-kpi-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.vm-page.lc-page .vm-table-wrap.vm-list-table {
  overflow: auto;
  max-height: calc(100vh - 640px);
}

/* 列表宽表：横向滚动交给 Ant Table 内部，避免外层滚动抢滚动上下文 */
.vm-page.lc-page .vm-table-section {
  min-width: 0;
  max-width: 100%;
}

.vm-page.lc-page .vm-table-card > .vm-table-wrap {
  overflow: hidden;
  max-height: none;
  min-width: 0;
}

.vm-page.lc-page .lc-list-table--nested.ant-table-wrapper,
.vm-page.lc-page .lc-list-table--nested .ant-table-wrapper {
  min-width: 0;
  max-width: 100%;
}

/* 左侧冻结：项目信息列（含展开按钮） */
.vm-page.lc-page .lc-list-table--nested .ant-table-cell-fix-start,
.vm-page.lc-page .lc-list-table--nested .ant-table-cell-fix-left {
  background: var(--ln-surface-card);
}

.vm-page.lc-page .lc-list-table--nested .ant-table-thead > tr > th.ant-table-cell-fix-start,
.vm-page.lc-page .lc-list-table--nested .ant-table-thead > tr > th.ant-table-cell-fix-left {
  z-index: 3;
  background: var(--ln-canvas-soft) !important;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-tbody > tr:not(.ant-table-expanded-row) > td.ant-table-cell-fix-start,
.vm-page.lc-page .lc-list-table--nested .ant-table-tbody > tr:not(.ant-table-expanded-row) > td.ant-table-cell-fix-left {
  z-index: 2;
  background: var(--ln-surface-card) !important;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td.ant-table-cell-fix-start,
.vm-page.lc-page .lc-list-table--nested .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td.ant-table-cell-fix-left {
  background: var(--ln-canvas-soft) !important;
}

.vm-page.lc-page .lc-list-table--nested .lc-project-info-col.ant-table-cell-fix-start,
.vm-page.lc-page .lc-list-table--nested .lc-project-info-col.ant-table-cell-fix-left {
  z-index: 3;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-thead > tr > th.lc-project-info-col {
  z-index: 3;
}

.vm-page.lc-page .lc-list-table--nested .lc-project-info-col.ant-table-cell-fix-start-shadow-show::after,
.vm-page.lc-page .lc-list-table--nested .lc-project-info-col.ant-table-cell-fix-left-last::after,
.vm-page.lc-page .lc-list-table--nested .ant-table-cell-fix-left-last::after {
  box-shadow: inset 10px 0 8px -8px rgba(15, 23, 42, 0.12);
}

/* 右侧冻结：操作列 + 滚动条占位缝（避免横向滚动时右侧漏出其他列） */
.vm-page.lc-page .lc-list-table--nested .ant-table-cell-fix-end:not(.ant-table-cell-scrollbar),
.vm-page.lc-page .lc-list-table--nested .ant-table-cell-fix-right:not(.ant-table-cell-scrollbar) {
  background: var(--ln-surface-card) !important;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-thead > tr > th.ant-table-cell-fix-end:not(.ant-table-cell-scrollbar),
.vm-page.lc-page .lc-list-table--nested .ant-table-thead > tr > th.ant-table-cell-fix-right:not(.ant-table-cell-scrollbar) {
  z-index: 4;
  background: var(--ln-canvas-soft) !important;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-tbody > tr:not(.ant-table-expanded-row) > td.ant-table-cell-fix-end:not(.ant-table-cell-scrollbar),
.vm-page.lc-page .lc-list-table--nested .ant-table-tbody > tr:not(.ant-table-expanded-row) > td.ant-table-cell-fix-right:not(.ant-table-cell-scrollbar) {
  z-index: 3;
  background: var(--ln-surface-card) !important;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td.ant-table-cell-fix-end:not(.ant-table-cell-scrollbar),
.vm-page.lc-page .lc-list-table--nested .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td.ant-table-cell-fix-right:not(.ant-table-cell-scrollbar) {
  background: var(--ln-canvas-soft) !important;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-cell-fix-end-shadow-show:not(.ant-table-cell-scrollbar)::after,
.vm-page.lc-page .lc-list-table--nested .ant-table-cell-fix-right-last::after {
  box-shadow: inset -10px 0 8px -8px rgba(15, 23, 42, 0.12);
}

/* 盖住纵向滚动条占位缝，防止表头/表体滚动列从操作列右侧露出 */
.vm-page.lc-page .lc-list-table--nested .ant-table-thead > tr > th.ant-table-cell-fix-end:not(.ant-table-cell-scrollbar)::before,
.vm-page.lc-page .lc-list-table--nested .ant-table-tbody > tr > td.ant-table-cell-fix-end:not(.ant-table-cell-scrollbar)::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -17px;
  width: 17px;
  background: inherit;
  pointer-events: none;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-cell-scrollbar {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: none !important;
  visibility: hidden;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-thead > tr > th:not(.ant-table-cell-fix-start):not(.ant-table-cell-fix-end),
.vm-page.lc-page .lc-list-table--nested .ant-table-tbody > tr:not(.ant-table-expanded-row) > td:not(.ant-table-cell-fix-start):not(.ant-table-cell-fix-end) {
  overflow: hidden;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-container {
  overflow: hidden;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-expanded-row > td {
  overflow: hidden;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-expanded-row .lc-contract-vehicle-table-wrap {
  max-width: 100%;
}

@media (max-width: 1280px) {
  .vm-page.lc-page .vm-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 640px) {
  .vm-page.lc-page .vm-kpi-row {
    grid-template-columns: 1fr;
  }
}

.vm-page.lc-page .vm-list-table .ant-table-thead > tr > th {
  background: var(--ln-canvas-soft) !important;
  color: var(--ln-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  white-space: nowrap;
}

.vm-page.lc-page .vm-list-table .ant-table-tbody > tr:not(.ant-table-measure-row) > td {
  padding: 8px 12px !important;
  font-size: 0.8125rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--ln-hairline);
}

.vm-page.lc-page .vm-list-table .ant-table-tbody > tr:not(.ant-table-measure-row):hover > td {
  background: var(--ln-canvas-soft) !important;
}

.vm-page.lc-page .vm-list-table .ant-table-cell-fix-left,
.vm-page.lc-page .vm-list-table .ant-table-cell-fix-start,
.vm-page.lc-page .vm-list-table .ant-table-cell-fix-right,
.vm-page.lc-page .vm-list-table .ant-table-cell-fix-end {
  background: var(--ln-surface-card);
}

.vm-page.lc-page .vm-list-table .ant-table-tbody > tr:hover .ant-table-cell-fix-left,
.vm-page.lc-page .vm-list-table .ant-table-tbody > tr:hover .ant-table-cell-fix-start,
.vm-page.lc-page .vm-list-table .ant-table-tbody > tr:hover .ant-table-cell-fix-right,
.vm-page.lc-page .vm-list-table .ant-table-tbody > tr:hover .ant-table-cell-fix-end {
  background: var(--ln-canvas-soft) !important;
}

.vm-page.lc-page .vm-list-table .oneos-cell-link,
.vm-page.lc-page .vm-list-table .vm-link {
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ln-primary);
  cursor: pointer;
  background: none;
  border: none;
}

.vm-page.lc-page .vm-list-table .oneos-cell-link:hover,
.vm-page.lc-page .vm-list-table .vm-link:hover {
  color: var(--ln-primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vm-page.lc-page .vm-list-table .ant-btn-link {
  min-height: auto;
  height: auto;
  padding: 0 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ln-primary) !important;
}

.vm-page.lc-page .vm-list-table .ant-btn-link:hover {
  color: var(--ln-primary-hover) !important;
}

/* 审批流 Popover 标签 */
.vm-page.lc-page .lc-approval-tag {
  margin: 0;
  color: var(--ln-primary);
  background: var(--ln-primary-soft);
  border-color: color-mix(in srgb, var(--ln-primary) 35%, transparent);
}

.lc-approval-flow-popover .ant-popover-inner {
  padding: 12px 14px;
}

.lc-approval-flow {
  width: min(380px, calc(100vw - 48px));
  max-height: min(420px, calc(100vh - 120px));
  overflow-y: auto;
  padding-top: 2px;
}

.lc-approval-flow__empty {
  color: var(--ln-muted);
  font-size: 13px;
  padding: 4px 0;
}

.lc-approval-flow__item {
  display: flex;
  align-items: stretch;
}

.lc-approval-flow__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.lc-approval-flow__operator {
  font-size: 13px;
  color: var(--ln-muted);
  line-height: 1.4;
}

.lc-approval-flow__comment {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ln-surface-strong, #f8fafc);
  border: 1px solid var(--ln-hairline, #e2e8f0);
}

.lc-approval-flow__comment.is-rejected {
  background: color-mix(in srgb, var(--ln-error, #e5484d) 6%, #fff);
  border-color: color-mix(in srgb, var(--ln-error, #e5484d) 18%, var(--ln-hairline, #e2e8f0));
}

.lc-approval-flow__comment-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ln-muted);
  margin-bottom: 4px;
}

.lc-approval-flow__comment-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ln-body, #334155);
  word-break: break-word;
}

.lc-approval-flow__comment.is-rejected .lc-approval-flow__comment-text {
  color: var(--ln-error, #e5484d);
}

/* 面包屑与 vm 页头 */
.vm-page.lc-page .vm-page-header .ant-breadcrumb {
  font-size: 0.875rem;
}

.vm-page.lc-page .vm-page-header .ant-breadcrumb li:last-child {
  color: var(--ln-ink);
  font-weight: 500;
}

/* 项目信息：三行堆叠，与车辆管理所属项目一致 */
.vm-page.lc-page .vm-list-table .lc-project-info-col {
  white-space: normal !important;
  vertical-align: middle;
}

.vm-page.lc-page .lc-project-info-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vm-page.lc-page .lc-project-info-cell .lc-project-info-btn {
  flex: 1;
  min-width: 0;
}

.vm-page.lc-page .lc-project-info-cell__status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.vm-page.lc-page .lc-project-info-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: var(--ln-radius-xs);
}

.vm-page.lc-page .lc-project-info-btn:hover .vm-stack .primary,
.vm-page.lc-page .lc-project-info-btn:hover .vm-stack .code {
  color: var(--ln-primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vm-page.lc-page .lc-project-info-btn:focus-visible {
  outline: var(--vm-focus-border-color, var(--ln-primary)) solid 2px;
  outline-offset: 2px;
}

.vm-page.lc-page .lc-project-info-btn .vm-stack .primary {
  font-weight: 500;
  color: var(--ln-link);
}

.vm-page.lc-page .lc-project-info-btn .vm-stack .code {
  font-family: var(--vm-font-mono);
  font-size: 0.8125rem;
  color: var(--ln-link);
}

.vm-page.lc-page .lc-list-table .vm-stack .code {
  font-family: var(--vm-font-mono);
  font-size: 0.75rem;
  color: var(--ln-muted);
}

.vm-page.lc-page .lc-list-table .ant-table-cell {
  vertical-align: middle;
}

.vm-page.lc-page .lc-project-info-btn .vm-stack .sub {
  font-size: 0.8125rem;
  color: var(--ln-body);
}

/* 列表「租赁订单」列：租赁 / 已交 双计数 */
.vm-page.lc-page .lc-lease-order-counts {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-width: 108px;
}

.vm-page.lc-page .lc-lease-order-counts__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--ln-radius-control, 8px);
  color: inherit;
  font: inherit;
  transition: background-color 0.15s ease;
}

.vm-page.lc-page .lc-lease-order-counts__item:hover {
  background: color-mix(in srgb, var(--ln-primary, #32a06e) 8%, transparent);
}

.vm-page.lc-page .lc-lease-order-counts__item:focus-visible {
  outline: 2px solid var(--ln-primary, #32a06e);
  outline-offset: 1px;
}

.vm-page.lc-page .lc-lease-order-counts__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ln-primary, #32a06e);
  line-height: 1.2;
}

.vm-page.lc-page .lc-lease-order-counts__label {
  font-size: 11px;
  color: var(--ln-muted, #64748b);
  line-height: 1.2;
}

.vm-page.lc-page .lc-lease-order-counts__sep {
  width: 1px;
  align-self: stretch;
  margin: 6px 0;
  background: var(--ln-hairline, #e2e8f0);
  flex-shrink: 0;
}

/* 列表「费用信息」列：付款周期 / 氢费支付 左右均分展示 */
.vm-page.lc-page .vm-list-table .lc-fee-info-col {
  white-space: normal !important;
  min-width: 192px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.vm-page.lc-page .lc-fee-info-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.vm-page.lc-page .lc-fee-info-cell__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 6px 8px;
  box-sizing: border-box;
}

.vm-page.lc-page .lc-fee-info-cell__caption {
  font-size: 11px;
  font-weight: 400;
  color: var(--ln-muted, #64748b);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.vm-page.lc-page .lc-fee-info-cell__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: var(--ln-radius-pill, 999px);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.vm-page.lc-page .lc-fee-info-cell__side--period .lc-fee-info-cell__value {
  background: color-mix(in srgb, var(--ln-primary, #32a06e) 12%, transparent);
  color: var(--ln-primary, #32a06e);
}

.vm-page.lc-page .lc-fee-info-cell__side--hydrogen .lc-fee-info-cell__value {
  background: var(--ln-surface-strong, #f1f5f9);
  color: var(--ln-body, #334155);
}

.vm-page.lc-page .lc-fee-info-cell__side--hydrogen.is-prepay .lc-fee-info-cell__value {
  background: color-mix(in srgb, var(--ln-warning, #d97706) 12%, transparent);
  color: var(--ln-warning, #d97706);
}

.vm-page.lc-page .lc-fee-info-cell__sep {
  width: 1px;
  align-self: stretch;
  margin: 8px 0;
  background: var(--ln-hairline, #e2e8f0);
}

/* 列表「交车安排」列 */
.vm-page.lc-page .vm-list-table .lc-delivery-col {
  white-space: normal !important;
}

.vm-page.lc-page .lc-delivery-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 120px;
}

.vm-page.lc-page .lc-delivery-cell__region {
  font-size: 13px;
  color: var(--ln-body, #1e293b);
  line-height: 1.35;
}

.vm-page.lc-page .lc-delivery-cell__date-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 100%;
}

.vm-page.lc-page .lc-delivery-cell__date {
  font-size: 12px;
  color: var(--ln-muted, #64748b);
  line-height: 1.3;
  flex-shrink: 0;
}

.vm-page.lc-page .lc-delivery-cell__date--tbd {
  color: var(--ln-muted, #64748b);
}

.vm-page.lc-page .lc-delivery-cell__edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: var(--ln-radius-xs, 4px);
  background: transparent;
  color: var(--ln-primary, #32a06e);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vm-page.lc-page .lc-delivery-cell__edit-btn:hover {
  background: color-mix(in srgb, var(--ln-primary, #32a06e) 10%, transparent);
  color: var(--ln-primary-hover, #278a5c);
}

.vm-page.lc-page .lc-delivery-cell__edit-btn:focus-visible {
  outline: 2px solid var(--ln-primary, #32a06e);
  outline-offset: 1px;
}

/* 交车时间变更 Popover */
.lc-delivery-change-popover .ant-popover-inner {
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.lc-delivery-change-popover .ant-popover-title {
  display: none;
}

.lc-delivery-change__panel {
  width: min(360px, calc(100vw - 32px));
  max-height: min(480px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
}

.lc-delivery-change__header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--ln-hairline, #e2e8f0);
}

.lc-delivery-change__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ln-body, #1e293b);
  line-height: 1.3;
}

.lc-delivery-change__sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ln-muted, #64748b);
  line-height: 1.3;
}

.lc-delivery-change__form {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ln-hairline, #e2e8f0);
}

.lc-delivery-change__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lc-delivery-change__label {
  font-size: 12px;
  color: var(--ln-muted, #64748b);
}

.lc-delivery-change__tbd {
  display: flex;
  align-items: center;
  margin: 8px 0 0;
  cursor: pointer;
}

.lc-delivery-change__hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ln-muted, #64748b);
}

.lc-delivery-change__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.lc-delivery-change__history {
  padding: 12px 16px 14px;
  overflow: auto;
}

.lc-delivery-change__history-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ln-body, #1e293b);
  margin-bottom: 8px;
}

.lc-delivery-change__empty {
  margin: 0;
  font-size: 12px;
  color: var(--ln-muted, #64748b);
}

.lc-delivery-change__history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lc-delivery-change__history-item {
  padding: 10px 12px;
  border: 1px solid var(--ln-hairline, #e2e8f0);
  border-radius: 8px;
  background: color-mix(in srgb, var(--ln-surface, #f8fafc) 80%, #fff);
}

.lc-delivery-change__history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.lc-delivery-change__history-row + .lc-delivery-change__history-row {
  margin-top: 6px;
}

.lc-delivery-change__history-field-label {
  flex-shrink: 0;
  color: var(--ln-muted, #64748b);
}

.lc-delivery-change__history-field-value {
  color: var(--ln-body, #1e293b);
  text-align: right;
}

.lc-delivery-change__date-compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lc-delivery-change__date-before {
  color: var(--ln-muted, #64748b);
  text-decoration: line-through;
}

.lc-delivery-change__date-arrow {
  color: var(--ln-muted, #94a3b8);
  font-size: 11px;
}

.lc-delivery-change__date-after {
  color: var(--ln-primary, #32a06e);
  font-weight: 600;
}

.vm-page.lc-page .lc-approval-type-label {
  display: inline-block;
  font-size: 13px;
  color: var(--ln-body, #1e293b);
  line-height: 1.35;
}

.vm-page.lc-page .lc-approval-type-label--nonstandard {
  color: #b45309;
  font-weight: 500;
}

.vm-page.lc-page .lc-delegate-count-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--ln-link, var(--ln-primary, #32a06e));
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--ln-radius-xs, 4px);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.vm-page.lc-page .lc-delegate-count-btn:hover {
  color: var(--ln-primary-hover, #278a5c);
  background: color-mix(in srgb, var(--ln-primary, #32a06e) 8%, transparent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vm-page.lc-page .lc-delegate-count-btn:focus-visible {
  outline: 2px solid var(--ln-primary, #32a06e);
  outline-offset: 1px;
}

.vm-page.lc-page .lc-delegate-supplement-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: #b45309;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--ln-radius-xs, 4px);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.vm-page.lc-page .lc-delegate-supplement-btn:hover {
  color: #92400e;
  background: color-mix(in srgb, #f59e0b 12%, transparent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vm-page.lc-page .lc-delegate-supplement-btn:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.lc-delegate-popover .ant-popover-inner {
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.lc-delegate-popover .ant-popover-title {
  display: none;
}

.lc-delegate-popover__panel {
  width: min(340px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 120px));
  overflow: auto;
}

.lc-delegate-popover__header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--ln-hairline, #e2e8f0);
}

.lc-delegate-popover__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ln-body, #1e293b);
}

.lc-delegate-popover__sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ln-muted, #64748b);
}

.lc-delegate-popover__empty {
  margin: 0;
  padding: 16px;
  font-size: 12px;
  color: var(--ln-muted, #64748b);
}

.lc-delegate-popover__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 14px;
}

.lc-delegate-popover__card {
  padding: 10px 12px;
  border: 1px solid var(--ln-hairline, #e2e8f0);
  border-radius: 8px;
  background: color-mix(in srgb, var(--ln-surface, #f8fafc) 80%, #fff);
}

.lc-delegate-popover__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lc-delegate-popover__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ln-body, #1e293b);
}

.lc-delegate-popover__index {
  font-size: 11px;
  color: var(--ln-muted, #64748b);
}

.lc-delegate-popover__field {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.lc-delegate-popover__field + .lc-delegate-popover__field {
  margin-top: 6px;
}

.lc-delegate-popover__label {
  flex-shrink: 0;
  color: var(--ln-muted, #64748b);
}

.lc-delegate-popover__value {
  color: var(--ln-body, #1e293b);
  text-align: right;
  word-break: break-all;
}

.vm-page.lc-page .vm-list-table .lc-approval-status-col,
.vm-page.lc-page .vm-list-table .lc-contract-status-col {
  white-space: normal !important;
}

.vm-page.lc-page .lc-approval-status-cell {
  align-items: flex-start;
}

.vm-page.lc-page .lc-approval-status-cell__tag-wrap {
  display: inline-flex;
}

.vm-page.lc-page .lc-approval-status-cell__tag-wrap--interactive {
  cursor: help;
}

.vm-page.lc-page .lc-approval-status-cell__approver {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vm-page.lc-page .lc-signing-company-col {
  max-width: 220px;
}

.vm-page.lc-page .lc-signing-company-cell {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* 租赁/已交车 Popover 卡片 */
.lc-vehicle-popover .ant-popover-inner {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.lc-vehicle-popover .ant-popover-title {
  display: none;
}

.lc-vehicle-popover__panel {
  width: min(380px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--ln-surface-card, #fff);
}

.lc-vehicle-popover__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ln-hairline, #e2e8f0);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ln-primary, #32a06e) 6%, #fff), #fff);
}

.lc-vehicle-popover__header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--ln-primary, #32a06e);
  background: color-mix(in srgb, var(--ln-primary, #32a06e) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--ln-primary, #32a06e) 18%, transparent);
}

.lc-vehicle-popover__header-icon.is-delivered {
  color: #0f766e;
  background: color-mix(in srgb, #0f766e 10%, #fff);
  border-color: color-mix(in srgb, #0f766e 18%, transparent);
}

.lc-vehicle-popover__header-text {
  min-width: 0;
  flex: 1;
}

.lc-vehicle-popover__header-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ln-ink, #0f172a);
  line-height: 1.3;
}

.lc-vehicle-popover__header-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ln-muted, #64748b);
}

.lc-vehicle-popover__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);
}

.lc-vehicle-popover__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow-y: auto;
}

.lc-vehicle-popover__empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ln-muted, #64748b);
}

.lc-vehicle-popover-card {
  border: 1px solid var(--ln-hairline, #e2e8f0);
  border-radius: 10px;
  background: var(--ln-surface-card, #fff);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lc-vehicle-popover-card:hover {
  border-color: color-mix(in srgb, var(--ln-primary, #32a06e) 28%, var(--ln-hairline, #e2e8f0));
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.lc-vehicle-popover-card--delivered {
  border-left: 3px solid #0f766e;
}

.lc-vehicle-popover-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ln-surface-strong, #f8fafc);
  border-bottom: 1px solid var(--ln-hairline, #e2e8f0);
}

.lc-vehicle-popover-card__type {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ln-body, #334155);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-vehicle-popover-card__plate {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ln-primary, #32a06e);
  background: color-mix(in srgb, var(--ln-primary, #32a06e) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--ln-primary, #32a06e) 20%, transparent);
}

.lc-vehicle-popover-card__plate--pending {
  color: var(--ln-muted, #64748b);
  background: var(--ln-surface-strong, #f8fafc);
  border-color: var(--ln-hairline, #e2e8f0);
  font-weight: 500;
}

.lc-vehicle-popover-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lc-vehicle-popover-card__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lc-vehicle-popover-card__label {
  font-size: 11px;
  color: var(--ln-muted, #64748b);
  line-height: 1.3;
}

.lc-vehicle-popover-card__value {
  font-size: 13px;
  color: var(--ln-body, #334155);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lc-vehicle-popover-card__delivery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 4px;
  margin-top: 2px;
  border-top: 1px dashed var(--ln-hairline, #e2e8f0);
}

.lc-vehicle-popover-card__delivery-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ln-body, #334155);
}

.lc-vehicle-popover-card__delivery-item svg {
  flex-shrink: 0;
  color: #0f766e;
}

@media (prefers-reduced-motion: reduce) {
  .lc-vehicle-popover-card {
    transition: none;
  }
}

/* 列表嵌套：项目信息列内嵌展开按钮（单列合并，左冻结） */
.vm-page.lc-page .lc-list-table--nested .lc-project-info-merged-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.vm-page.lc-page .lc-list-table--nested .lc-project-info-merged-cell .ant-table-row-expand-icon {
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}

.vm-page.lc-page .lc-list-table--nested .lc-project-info-merged-cell .lc-project-info-cell {
  flex: 1;
  min-width: 0;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-tbody > tr:hover > td.lc-project-info-col.ant-table-cell-fix-start {
  background: var(--ln-canvas-soft) !important;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-expanded-row > td.lc-project-info-col.ant-table-cell-fix-start {
  background: var(--ln-canvas-soft, #f8fafc);
  z-index: 4;
}

.vm-page.lc-page .lc-list-table--nested .ant-table-expanded-row > td:not(.ant-table-cell-fix-start) {
  padding: 8px 8px 12px;
  background: var(--ln-canvas-soft, #f8fafc);
}

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

.vm-page.lc-page .lc-contract-vehicle-native-table {
  width: 100%;
  min-width: 0;
  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.lc-page .lc-contract-vehicle-native-table th,
.vm-page.lc-page .lc-contract-vehicle-native-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--ln-hairline, #e2e8f0);
  font-size: 12px;
  color: var(--ln-body, #334155);
  vertical-align: middle;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.vm-page.lc-page .lc-contract-vehicle-native-table thead th {
  background: var(--ln-surface-strong, #f1f5f9);
  font-weight: 600;
  font-size: 11px;
  color: var(--ln-muted, #64748b);
  vertical-align: middle;
  white-space: nowrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.vm-page.lc-page .lc-contract-vehicle-native-table tbody tr:last-child td {
  border-bottom: none;
}

.vm-page.lc-page .lc-contract-vehicle-native-table__info {
  width: 13%;
}

.vm-page.lc-page .lc-contract-vehicle-native-table__pickup {
  width: 8%;
}

.vm-page.lc-page .lc-contract-vehicle-native-table__handover {
  width: 9%;
}

.vm-page.lc-page .lc-contract-vehicle-native-table__return-settlement {
  width: 9%;
}

.vm-page.lc-page .lc-contract-vehicle-native-table__delivery-plan {
  width: 11%;
}

.vm-page.lc-page .lc-contract-vehicle-native-table__mileage-req {
  width: 16%;
}

.vm-page.lc-page .lc-contract-vehicle-native-table__mileage-completion {
  width: 20%;
}

.vm-page.lc-page .lc-contract-vehicle-native-table__action {
  width: 6%;
  text-align: left;
}

/* 子表单元格：垂直居中 + 主体左对齐 */
.vm-page.lc-page .lc-contract-vehicle-native-table tbody td > .lc-contract-vehicle-info,
.vm-page.lc-page .lc-contract-vehicle-native-table tbody td > .lc-contract-pickup-payment,
.vm-page.lc-page .lc-contract-vehicle-native-table tbody td > .lc-contract-return-settlement,
.vm-page.lc-page .lc-contract-vehicle-native-table tbody td > .lc-contract-handover-situation,
.vm-page.lc-page .lc-contract-vehicle-native-table tbody td > .lc-delivery-cell,
.vm-page.lc-page .lc-contract-vehicle-native-table tbody td > .lc-contract-mileage-req-row,
.vm-page.lc-page .lc-contract-vehicle-native-table tbody td > .lc-contract-mileage-completion,
.vm-page.lc-page .lc-contract-vehicle-native-table tbody td > .lc-contract-vehicle-action-empty,
.vm-page.lc-page .lc-contract-vehicle-native-table tbody td > .lc-contract-vehicle-action-btn {
  text-align: left;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-vehicle-info-cell {
  align-items: center;
  justify-content: flex-start;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-vehicle-info-cell__status {
  align-self: center;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-pickup-payment,
.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-return-settlement {
  min-height: 0;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-handover-situation--clickable,
.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-handover-situation--empty {
  text-align: left;
  align-items: flex-start;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-completion {
  align-items: flex-start;
  text-align: left;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-delivery-cell {
  min-width: 0;
  gap: 2px;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-delivery-cell__region {
  font-size: 11px;
  line-height: 1.3;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-delivery-cell__date {
  font-size: 10px;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-delivery-cell__edit-btn {
  width: 22px;
  height: 22px;
}

.vm-page.lc-page .lc-delivery-change__subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ln-muted, #64748b);
  line-height: 1.3;
}

/* 子表里程要求列：左右两栏（里程要求 | 当前里程） */
.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-req-row--dual {
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-req-row--dual .lc-contract-mileage-req-row__requirement,
.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-req-row--dual .lc-contract-mileage-req-row__current {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 6px;
  box-sizing: border-box;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-req-row--dual .lc-contract-mileage-req-row__current {
  border-left: 1px solid var(--ln-hairline, #e2e8f0);
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-req-row--dual .lc-contract-mileage-req-row__current--empty {
  font-size: 12px;
  color: var(--ln-muted, #64748b);
  line-height: 1.35;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-req-row__section-label {
  font-size: 10px;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-req-row__requirement--empty {
  font-size: 12px;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .vm-tag {
  font-size: 10px;
  line-height: 1.25;
  padding: 1px 5px;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-completion__remaining {
  font-size: 11px;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-completion__remaining-row .vm-status {
  font-size: 10px;
  line-height: 1.2;
  padding: 1px 6px;
  max-width: 100%;
  white-space: normal;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-completion__bar-row .lc-vehicle-mileage-progress__track {
  min-width: 72px;
  height: 8px;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-completion__bar-row .lc-vehicle-mileage-progress__label {
  font-size: 12px;
  min-width: 36px;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-handover-situation__line {
  font-size: 12px;
  line-height: 1.3;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-handover-situation__line--time {
  font-size: 11px;
  color: var(--ln-muted, #64748b);
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-vehicle-info__line--primary {
  font-size: 12px;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-vehicle-info__line--secondary {
  font-size: 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-vehicle-info__line--vin {
  font-size: 10px;
  color: var(--ln-muted, #64748b);
  word-break: break-all;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-vehicle-action-btn {
  font-size: 12px;
  padding: 0 2px;
  text-align: left;
}

.vm-page.lc-page .lc-contract-mileage-req-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.vm-page.lc-page .lc-contract-mileage-req-row--triple {
  gap: 0;
}

.vm-page.lc-page .lc-contract-mileage-req-row--dual {
  gap: 0;
}

.vm-page.lc-page .lc-contract-mileage-req-row--dual .lc-contract-mileage-req-row__current {
  border-left: 1px solid var(--ln-hairline, #e2e8f0);
}

.vm-page.lc-page .lc-contract-mileage-req-row__requirement,
.vm-page.lc-page .lc-contract-mileage-req-row__period,
.vm-page.lc-page .lc-contract-mileage-req-row__current {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px;
  box-sizing: border-box;
}

.vm-page.lc-page .lc-contract-mileage-req-row--triple .lc-contract-mileage-req-row__period {
  border-left: 1px solid var(--ln-hairline, #e2e8f0);
  border-right: 1px solid var(--ln-hairline, #e2e8f0);
}

.vm-page.lc-page .lc-contract-mileage-req-row__section-label {
  font-size: 11px;
  color: var(--ln-muted, #64748b);
  line-height: 1.2;
}

.vm-page.lc-page .lc-contract-mileage-req-row__requirement--empty,
.vm-page.lc-page .lc-contract-mileage-req-row__period--empty {
  font-size: 13px;
  color: var(--ln-muted, #64748b);
  line-height: 1.35;
  padding-top: 2px;
}

.vm-page.lc-page .lc-contract-mileage-req-row__period-mile {
  font-size: 13px;
  font-weight: 500;
  color: var(--ln-body, #334155);
  line-height: 1.3;
}

.vm-page.lc-page .lc-contract-mileage-req-row__period-date {
  font-size: 12px;
  color: var(--ln-muted, #64748b);
  line-height: 1.3;
}

.vm-page.lc-page .lc-contract-mileage-req-row__period-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.vm-page.lc-page .lc-contract-mileage-period-days-tag {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1.2;
  padding: 1px 6px;
}

.vm-page.lc-page .lc-contract-mileage-req-row__completed {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  line-height: 1.3;
  min-width: 0;
}

.vm-page.lc-page .lc-contract-mileage-req-row__completed-label {
  color: var(--ln-muted, #64748b);
  flex-shrink: 0;
}

.vm-page.lc-page .lc-contract-mileage-req-row__completed-value {
  font-weight: 500;
  color: var(--ln-body, #334155);
}

.vm-page.lc-page .lc-contract-mileage-req-row__km-line,
.vm-page.lc-page .lc-contract-mileage-req-row__current-line {
  min-width: 0;
}

.vm-page.lc-page .lc-contract-mileage-period-tag {
  flex-shrink: 0;
}

.vm-page.lc-page .lc-contract-return-settlement,
.vm-page.lc-page .lc-contract-pickup-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}

.vm-page.lc-page .lc-contract-return-settlement--empty {
  font-size: 13px;
  color: var(--ln-muted, #64748b);
  min-height: 0;
}

.vm-page.lc-page .lc-contract-return-settlement--stacked {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 0;
}

.vm-page.lc-page .lc-contract-return-settlement__approver {
  font-size: 11px;
  line-height: 1.3;
  color: var(--ln-muted, #64748b);
  max-width: 100%;
  word-break: break-word;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-return-settlement--stacked {
  align-items: flex-start;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-return-settlement__approver {
  font-size: 10px;
}

.vm-page.lc-page .lc-contract-pickup-payment--empty {
  font-size: 13px;
  color: var(--ln-muted, #64748b);
}

.vm-page.lc-page .lc-contract-status-tag-btn {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--ln-radius-pill, 999px);
  font: inherit;
  line-height: 0;
}

.vm-page.lc-page .lc-contract-status-tag-btn:hover {
  filter: brightness(0.96);
}

.vm-page.lc-page .lc-contract-status-tag-btn:focus-visible {
  outline: 2px solid var(--ln-primary, #32a06e);
  outline-offset: 2px;
}

.vm-page.lc-page .lc-overall-mileage-progress {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.vm-page.lc-page .lc-overall-mileage-progress__bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vm-page.lc-page .lc-overall-mileage-progress__bar-row .lc-vehicle-mileage-progress__track {
  flex: 1;
  min-width: 72px;
}

.vm-page.lc-page .lc-overall-mileage-progress__forecast {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.vm-page.lc-page .lc-overall-mileage-progress__forecast .vm-status {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
}

.vm-page.lc-page .lc-overall-mileage-progress--empty {
  font-size: 13px;
  color: var(--ln-muted, #64748b);
}

.vm-page.lc-page .lc-overall-mileage-progress .lc-vehicle-mileage-progress__track {
  flex: 1;
  min-width: 72px;
}

.vm-page.lc-page .lc-contract-type-label {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--ln-body, #334155);
  vertical-align: middle;
}

.vm-page.lc-page .lc-contract-mileage-completion {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.vm-page.lc-page .lc-contract-mileage-completion--empty {
  font-size: 13px;
  color: var(--ln-muted, #64748b);
}

.vm-page.lc-page .lc-contract-mileage-completion__remaining {
  font-size: 12px;
  font-weight: 500;
  color: var(--ln-body, #334155);
  line-height: 1.3;
}

.vm-page.lc-page .lc-contract-mileage-completion__remaining-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.vm-page.lc-page .lc-contract-mileage-completion__remaining-row .vm-status {
  flex-shrink: 0;
}

.vm-page.lc-page .lc-contract-mileage-completion__bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.vm-page.lc-page .lc-contract-mileage-completion__bar-row .lc-vehicle-mileage-progress__track {
  flex: 1;
  min-width: 72px;
  height: 8px;
}

.vm-page.lc-page .lc-contract-mileage-completion__bar-row .lc-vehicle-mileage-progress__label {
  flex-shrink: 0;
  font-size: 12px;
  min-width: 36px;
  text-align: right;
}

.vm-page.lc-page .lc-contract-mileage-completion__range-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.vm-page.lc-page .lc-contract-mileage-completion__range-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vm-page.lc-page .lc-contract-mileage-completion__range-side--start {
  align-items: flex-start;
  text-align: left;
}

.vm-page.lc-page .lc-contract-mileage-completion__range-side--end {
  flex: 0 0 auto;
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}

.vm-page.lc-page .lc-contract-mileage-completion__range-date {
  font-size: 10px;
  color: var(--ln-muted, #64748b);
  line-height: 1.25;
}

.vm-page.lc-page .lc-contract-mileage-completion__range-mile {
  font-size: 11px;
  font-weight: 500;
  color: var(--ln-body, #334155);
  line-height: 1.25;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-completion__range-date {
  font-size: 10px;
}

.vm-page.lc-page .lc-contract-vehicle-native-table .lc-contract-mileage-completion__range-mile {
  font-size: 10px;
}

.vm-page.lc-page .lc-contract-vehicle-action-btn {
  padding: 0;
  height: auto;
  font-size: 13px;
}

.vm-page.lc-page .lc-contract-vehicle-action-empty {
  color: var(--ln-muted, #64748b);
  font-size: 13px;
}

.vm-page.lc-page .lc-contract-handover-situation {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vm-page.lc-page .lc-contract-handover-situation--empty {
  font-size: 13px;
  color: var(--ln-muted, #64748b);
  line-height: 1.35;
}

.vm-page.lc-page .lc-contract-handover-situation--clickable {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border-radius: var(--ln-radius-xs, 4px);
  transition: background-color 0.15s ease;
}

.vm-page.lc-page .lc-contract-handover-situation--clickable:hover {
  background: color-mix(in srgb, var(--ln-primary, #32a06e) 8%, transparent);
}

.vm-page.lc-page .lc-contract-handover-situation--clickable:focus-visible {
  outline: 2px solid var(--ln-primary, #32a06e);
  outline-offset: 1px;
}

.vm-page.lc-page .lc-contract-handover-situation__line {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ln-primary, #32a06e);
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-page.lc-page .lc-contract-handover-situation__line--mile {
  font-weight: 500;
}

.vm-page.lc-page .lc-contract-handover-situation__line--person {
  font-weight: 500;
}

.vm-page.lc-page .lc-contract-handover-situation__line--time {
  font-weight: 400;
}

.vm-page.lc-page .lc-contract-vehicle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vm-page.lc-page .lc-contract-vehicle-info__line {
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-page.lc-page .lc-contract-vehicle-info__line--primary {
  color: var(--ln-primary, #32a06e);
  font-size: 13px;
  font-weight: 500;
}

.vm-page.lc-page .lc-contract-vehicle-info__line--secondary {
  color: var(--ln-body, #334155);
  font-size: 12px;
  font-weight: 400;
}

.vm-page.lc-page .lc-contract-vehicle-native-table__progress {
  width: 168px;
}

.vm-page.lc-page .lc-contract-vehicle-expand__empty {
  padding: 8px 0;
  font-size: 13px;
  color: var(--ln-muted);
}

.vm-page.lc-page .lc-vehicle-mileage-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vm-page.lc-page .lc-vehicle-mileage-progress__track {
  flex: 1;
  min-width: 72px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ln-hairline) 65%, #fff);
  overflow: hidden;
}

.vm-page.lc-page .lc-vehicle-mileage-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ln-primary, #32a06e), color-mix(in srgb, var(--ln-primary) 72%, #22c55e));
  transition: width 0.2s ease;
}

.vm-page.lc-page .lc-vehicle-mileage-progress__label {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ln-muted);
  min-width: 36px;
  text-align: right;
}

/* —— 在租车辆概览 —— */
.vm-page.lc-page .lc-fleet-summary {
  margin-bottom: 16px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-card, 12px);
  background: var(--ln-surface-card);
  box-shadow: var(--ln-shadow-soft);
  overflow: hidden;
}

.vm-page.lc-page .lc-fleet-summary__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--ln-divider-soft, #f4f4f5);
}

.vm-page.lc-page .lc-fleet-summary.is-collapsed .lc-fleet-summary__header {
  border-bottom: none;
  padding-bottom: 16px;
}

.vm-page.lc-page .lc-fleet-summary__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vm-page.lc-page .lc-fleet-summary__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ln-primary-soft);
  color: var(--ln-primary);
  flex-shrink: 0;
}

.vm-page.lc-page .lc-fleet-summary__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ln-ink);
  letter-spacing: -0.02em;
}

.vm-page.lc-page .lc-fleet-summary__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ln-primary-soft);
  color: var(--ln-primary-focus);
  font-size: 0.8125rem;
  font-weight: 600;
}

.vm-page.lc-page .lc-fleet-summary__subtitle {
  margin: 6px 0 0 44px;
  font-size: 0.8125rem;
  color: var(--ln-muted);
}

.vm-page.lc-page .lc-fleet-summary.is-collapsed .lc-fleet-summary__subtitle {
  margin-left: 0;
}

.vm-page.lc-page .lc-fleet-summary__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  justify-content: flex-end;
  min-width: 0;
}

.vm-page.lc-page .lc-fleet-summary__search {
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 160px;
}

.vm-page.lc-page .lc-fleet-summary__search .ant-input {
  min-height: 36px;
  border-radius: var(--ln-radius-control, 8px);
}

.vm-page.lc-page .lc-fleet-summary__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control, 8px);
  background: var(--ln-canvas);
  color: var(--ln-body);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.vm-page.lc-page .lc-fleet-summary__toggle:hover {
  border-color: var(--ln-hairline-strong);
  color: var(--ln-ink);
  background: var(--ln-surface-pearl);
}

.vm-page.lc-page .lc-fleet-summary__toggle:focus-visible {
  outline: 2px solid var(--ln-primary);
  outline-offset: 2px;
}

.vm-page.lc-page .lc-fleet-summary__body {
  padding: 12px 16px 16px;
}

.vm-page.lc-page .lc-fleet-summary__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.vm-page.lc-page .lc-fleet-summary__brand-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ln-hairline);
  border-radius: 999px;
  background: var(--ln-canvas);
  color: var(--ln-body);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.vm-page.lc-page .lc-fleet-summary__brand-chip:hover {
  border-color: var(--ln-primary);
  color: var(--ln-primary-focus);
}

.vm-page.lc-page .lc-fleet-summary__brand-chip.is-active {
  border-color: var(--ln-primary);
  background: var(--ln-primary-soft);
  color: var(--ln-primary-focus);
  font-weight: 600;
}

.vm-page.lc-page .lc-fleet-summary__brand-chip:focus-visible {
  outline: 2px solid var(--ln-primary);
  outline-offset: 2px;
}

.vm-page.lc-page .lc-fleet-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.vm-page.lc-page .lc-fleet-summary__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--ln-hairline);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--ln-canvas) 0%, var(--ln-surface-pearl) 100%);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.vm-page.lc-page .lc-fleet-summary__card:hover {
  border-color: color-mix(in srgb, var(--ln-primary) 35%, var(--ln-hairline));
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.vm-page.lc-page .lc-fleet-summary__card:focus-visible {
  outline: 2px solid var(--ln-primary);
  outline-offset: 2px;
}

.vm-page.lc-page .lc-fleet-summary__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.vm-page.lc-page .lc-fleet-summary__card-brand {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ln-primary-focus);
  letter-spacing: 0.02em;
}

.vm-page.lc-page .lc-fleet-summary__card-type {
  flex-shrink: 0;
  max-width: 52%;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ln-surface-strong);
  color: var(--ln-muted);
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-page.lc-page .lc-fleet-summary__card-model {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ln-ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.vm-page.lc-page .lc-fleet-summary__card-metrics {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.vm-page.lc-page .lc-fleet-summary__card-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ln-ink);
  line-height: 1;
  letter-spacing: -0.03em;
}

.vm-page.lc-page .lc-fleet-summary__card-unit {
  font-size: 0.8125rem;
  color: var(--ln-muted);
}

.vm-page.lc-page .lc-fleet-summary__card-share {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ln-muted);
}

.vm-page.lc-page .lc-fleet-summary__card-bar {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ln-hairline) 70%, #fff);
  overflow: hidden;
}

.vm-page.lc-page .lc-fleet-summary__card-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ln-primary), color-mix(in srgb, var(--ln-primary) 75%, #22c55e));
  transition: width 0.25s ease;
}

.vm-page.lc-page .lc-fleet-summary__card-hint {
  font-size: 0.6875rem;
  color: var(--ln-muted-soft);
}

.vm-page.lc-page .lc-fleet-summary__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  text-align: center;
  color: var(--ln-muted);
  font-size: 0.875rem;
}

.vm-page.lc-page .lc-fleet-summary__empty-reset {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control, 8px);
  background: var(--ln-canvas);
  color: var(--ln-primary);
  font-size: 0.8125rem;
  cursor: pointer;
}

.vm-page.lc-page .lc-fleet-summary__empty-reset:hover {
  border-color: var(--ln-primary);
  background: var(--ln-primary-soft);
}

/* 在租车辆明细弹窗 — Modal 挂载在 body，样式不可依赖 .vm-page 祖先 */
.lc-fleet-detail-modal .ant-modal-content {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.lc-fleet-detail-modal .ant-modal-header {
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, rgba(50, 160, 110, 0.06), #fff);
}

.lc-fleet-detail-modal .ant-modal-body {
  padding: 0;
}

.lc-fleet-detail-modal .ant-modal-footer {
  margin: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid #f4f4f5;
  background: #f6f7f7;
}

.lc-fleet-detail-modal__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding-right: 28px;
}

.lc-fleet-detail-modal__title-main {
  font-size: 1rem;
  font-weight: 600;
  color: #18181b;
  letter-spacing: -0.02em;
}

.lc-fleet-detail-modal__title-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(50, 160, 110, 0.1);
  color: #2b9260;
  font-size: 0.75rem;
  font-weight: 600;
}

.lc-fleet-detail-modal__title-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #71717a;
  font-size: 0.75rem;
}

.lc-fleet-detail-modal__body {
  max-height: min(62vh, 540px);
  overflow: auto;
}

.lc-fleet-detail-modal .lc-fleet-detail-modal__table-host.vm-page.lc-page {
  padding: 0;
  min-height: 0;
  background: transparent;
}

.lc-fleet-detail-modal .lc-fleet-detail-modal__table-host .lc-contract-vehicle-table-wrap {
  width: 100%;
  max-width: 100%;
}

.lc-fleet-detail-modal .lc-fleet-detail-modal__vehicle-table {
  min-width: 880px;
}

.lc-fleet-detail-modal__empty {
  padding: 40px 20px;
  text-align: center;
  color: #71717a;
  font-size: 0.875rem;
}

.lc-fleet-detail-modal__close {
  min-width: 88px;
}

@media (max-width: 768px) {
  .vm-page.lc-page .lc-fleet-summary__subtitle {
    margin-left: 0;
  }

  .vm-page.lc-page .lc-fleet-summary__toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .vm-page.lc-page .lc-fleet-summary__search {
    max-width: none;
    flex: 1 1 auto;
  }

  .vm-page.lc-page .lc-fleet-summary__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vm-page.lc-page .lc-fleet-summary__card,
  .vm-page.lc-page .lc-fleet-summary__card-bar-fill,
  .vm-page.lc-page .lc-fleet-summary__toggle,
  .vm-page.lc-page .lc-fleet-summary__brand-chip {
    transition: none;
  }

  .vm-page.lc-page .lc-fleet-summary__card:hover {
    transform: none;
  }
}
