/**
 * 新增租赁合同 — 左右分栏布局
 */

.vm-page.lc-create-page .lc-form-completion-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  padding: 3px 10px;
  border-radius: var(--ln-radius-pill);
  white-space: nowrap;
}

.vm-page.lc-create-page .lc-form-completion-badge--pending {
  color: var(--ln-muted);
  background: var(--ln-surface-strong);
}

.vm-page.lc-create-page .lc-form-completion-badge--done {
  color: var(--ln-primary);
  background: var(--ln-primary-soft);
}

.vm-page.lc-create-page .lc-lease-order-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vm-page.lc-create-page .lc-lease-order-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.vm-page.lc-create-page .lc-lease-order-kpi-card {
  cursor: default;
  pointer-events: none;
}

.vm-page.lc-create-page .lc-lease-order-kpi-card:hover {
  border-color: var(--ln-hairline);
  box-shadow: none;
}

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

.vm-page.lc-create-page .lc-lease-order-editor__summary,
.vm-page.lc-create-page .lc-lease-order-editor__delivery {
  gap: 12px;
}

.vm-page.lc-create-page .lc-lease-order-editor__summary .lc-form-inline-sentence {
  flex-wrap: wrap;
}

.vm-page.lc-create-page .lc-lease-order-editor__summary .lc-form-inline-sentence__input.ant-input-number {
  width: 88px !important;
  min-width: 88px;
}

.vm-page.lc-create-page .lc-lease-order-editor__summary .lc-form-inline-sentence__readonly {
  width: 88px;
  min-width: 88px;
  flex-shrink: 0;
}

.vm-page.lc-create-page .lc-lease-order-editor__summary .lc-form-inline-sentence__readonly .lc-form-readonly--synced {
  justify-content: center;
  text-align: center;
}

.vm-page.lc-create-page .lc-lease-order-editor__price-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vm-page.lc-create-page .lc-lease-order-editor__table .lc-form-select {
  width: 100%;
  min-width: 160px;
}

.vm-page.lc-create-page .lc-lease-order-service-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 168px;
}

.vm-page.lc-create-page .lc-lease-order-service-field__display {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  min-height: 36px;
  max-height: none;
  padding: 6px 11px;
  white-space: normal;
  display: block;
  width: 100%;
}

.vm-page.lc-create-page .lc-lease-order-service-field__display:not(:has(.lc-lease-order-service-field__list)) {
  display: flex;
  align-items: center;
  height: 36px;
  max-height: 36px;
  padding: 0 11px;
}

.vm-page.lc-create-page .lc-lease-order-service-field__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vm-page.lc-create-page .lc-lease-order-service-field__list li {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ln-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-page.lc-create-page .lc-lease-order-service-field__pick-btn.ant-btn {
  flex-shrink: 0;
  align-self: center;
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.vm-page.lc-create-page .lc-lease-order-service-modal .ant-modal-body {
  padding-top: 12px;
}

.vm-page.lc-create-page .lc-lease-order-service-modal__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
}

.vm-page.lc-create-page .lc-lease-order-service-modal__table {
  width: 100%;
  border-collapse: collapse;
}

.vm-page.lc-create-page .lc-lease-order-service-modal__table th,
.vm-page.lc-create-page .lc-lease-order-service-modal__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ln-hairline);
  font-size: 0.875rem;
  vertical-align: middle;
  text-align: left;
}

.vm-page.lc-create-page .lc-lease-order-service-modal__table th {
  background: var(--ln-canvas-soft);
  color: var(--ln-muted);
  font-weight: 600;
}

.vm-page.lc-create-page .lc-lease-order-service-modal__table tbody tr:last-child td {
  border-bottom: none;
}

.vm-page.lc-create-page .lc-lease-order-service-modal__col-check {
  width: 72px;
  text-align: center;
}

.vm-page.lc-create-page .lc-lease-order-service-modal__col-fee {
  width: 96px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vm-page.lc-create-page .lc-lease-order-editor__table .lc-form-select--multiple .ant-select-selector {
  min-height: 36px !important;
  padding-top: 2px;
  padding-bottom: 2px;
}

.vm-page.lc-create-page .lc-lease-order-editor__table .lc-form-select .ant-select-selector {
  min-height: 36px !important;
}

/* Ant Design 5 Select / Cascader（无 .ant-select-selector 结构） */
.vm-page.lc-create-page .lc-form-cascader.ant-select,
.vm-page.lc-create-page .lc-form-select.ant-select {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
}

.vm-page.lc-create-page .lc-form-cascader.ant-select .ant-select-content,
.vm-page.lc-create-page .lc-form-select.ant-select .ant-select-content {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.vm-page.lc-create-page .lc-lease-order-editor__delivery .lc-form-cascader.ant-select,
.vm-page.lc-create-page .lc-lease-order-editor__delivery .lc-form-datepicker.ant-picker {
  height: 36px;
  min-height: 36px;
}

.vm-page.lc-create-page .lc-lease-order-editor__table .lc-form-select.ant-select,
.vm-page.lc-create-page .lc-lease-order-editor__table .lc-lease-order-table__amount-field .lc-form-readonly--synced,
.vm-page.lc-create-page .lc-lease-order-editor__table .lc-lease-order-table__amount-field .lc-form-number.ant-input-number {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
}

.vm-page.lc-create-page .lc-lease-order-editor__table .lc-lease-order-table__amount-field .lc-form-number.ant-input-number .ant-input-number-input-wrap {
  height: 34px;
}

.vm-page.lc-create-page .lc-lease-order-editor__table .lc-lease-order-table__amount-field .lc-form-number.ant-input-number .ant-input-number-input {
  height: 34px;
  min-height: 34px;
  line-height: 34px;
}

.vm-page.lc-create-page .lc-lease-order-table__amount {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  align-items: center;
}

.vm-page.lc-create-page .lc-lease-order-table__amount-field {
  flex: 1 1 auto;
  min-width: 0;
}

.vm-page.lc-create-page .lc-lease-order-table__amount-field .lc-form-readonly--synced,
.vm-page.lc-create-page .lc-lease-order-table__amount-field .lc-form-number {
  width: 100%;
}

.vm-page.lc-create-page .lc-lease-order-table__amount .lc-form-inline-sentence__text {
  flex-shrink: 0;
}

.vm-page.lc-create-page .lc-form-datepicker.ant-picker {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: var(--ln-radius-control);
  border-color: var(--ln-hairline-strong);
}

.vm-page.lc-create-page .lc-form-datepicker .ant-picker-input {
  height: 34px;
}

.vm-page.lc-create-page .lc-form-datepicker .ant-picker-input > input {
  font-size: 0.875rem;
  height: 34px;
  line-height: 34px;
}

.vm-page.lc-create-page .lc-lease-order-editor__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card);
}

.vm-page.lc-create-page .lc-lease-order-editor__table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.vm-page.lc-create-page .lc-lease-order-editor__table th,
.vm-page.lc-create-page .lc-lease-order-editor__table td {
  padding: 8px 10px;
  border: 1px solid var(--ln-hairline);
  vertical-align: middle;
  font-size: 0.8125rem;
}

.vm-page.lc-create-page .lc-lease-order-editor__table th {
  background: var(--ln-canvas-soft);
  color: var(--ln-ink);
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  line-height: 1.35;
}

.vm-page.lc-create-page .lc-lease-order-editor__th-group {
  border-bottom: 1px solid var(--ln-hairline);
}

.vm-page.lc-create-page .lc-lease-order-editor__th-brand {
  min-width: 108px;
}

.vm-page.lc-create-page .lc-lease-order-editor__th-subtotal {
  min-width: 108px;
}

.vm-page.lc-create-page .lc-lease-order-editor__th-period {
  min-width: 200px;
}

.vm-page.lc-create-page .lc-lease-order-editor__head-row--sub th {
  font-weight: 500;
  color: var(--ln-muted);
}

.vm-page.lc-create-page .lc-lease-order-editor__table tbody tr:last-child td {
  border-bottom: none;
}

.vm-page.lc-create-page .lc-lease-order-editor__actions-col {
  width: 88px;
  text-align: center;
}

.vm-page.lc-create-page .lc-lease-order-editor__actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.vm-page.lc-create-page .lc-lease-order-editor__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--ln-radius-control);
  background: transparent;
  color: var(--ln-muted);
  cursor: pointer;
}

.vm-page.lc-create-page .lc-lease-order-editor__copy-btn:hover {
  color: var(--ln-primary);
  background: var(--ln-primary-soft);
}

.vm-page.lc-create-page .lc-lease-order-editor__remove-btn:hover {
  color: #dc2626;
  background: color-mix(in srgb, #dc2626 8%, transparent);
}

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

.vm-page.lc-create-page .lc-lease-order-copy-popover {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 220px;
}

.vm-page.lc-create-page .lc-lease-order-copy-popover__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ln-ink);
  line-height: 1.4;
}

.vm-page.lc-create-page .lc-lease-order-copy-popover__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.vm-page.lc-create-page .lc-lease-order-copy-popover__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ln-ink);
}

.vm-page.lc-create-page .lc-lease-order-copy-popover__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.vm-page.lc-create-page .lc-lease-order-editor__toolbar {
  display: flex;
  justify-content: flex-start;
}

.vm-page.lc-create-page .lc-lease-order-editor__add-btn.ant-btn {
  min-height: var(--vm-btn-height, 36px);
}

.vm-page.lc-create-page .lc-poa-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vm-page.lc-create-page .lc-poa-editor__row {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.vm-page.lc-create-page .lc-poa-editor__row + .lc-poa-editor__row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ln-hairline);
}

.vm-page.lc-create-page .lc-poa-editor__row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.vm-page.lc-create-page .lc-poa-editor__row-index {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ln-ink-secondary, #475569);
}

.vm-page.lc-create-page .lc-poa-editor__fields--inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) 56px;
  gap: 12px;
  align-items: end;
}

.vm-page.lc-create-page .lc-poa-editor__fields--inline .lc-form-field {
  min-width: 0;
}

.vm-page.lc-create-page .lc-poa-editor__row-action {
  display: flex;
  align-items: flex-end;
  min-height: 36px;
  padding-bottom: 0;
}

.vm-page.lc-create-page .lc-poa-editor__row-action--ops {
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 56px;
}

.vm-page.lc-create-page .lc-poa-editor__ops-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ln-ink);
  line-height: 1.4;
  white-space: nowrap;
}

.vm-page.lc-create-page .lc-poa-editor__toolbar {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.vm-page.lc-create-page .lc-poa-editor__remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--ln-radius-control);
  background: transparent;
  color: var(--ln-muted);
  cursor: pointer;
}

.vm-page.lc-create-page .lc-poa-editor__remove-btn:hover {
  color: #dc2626;
  background: color-mix(in srgb, #dc2626 8%, transparent);
}

.vm-page.lc-create-page .lc-poa-editor__remove-btn:focus-visible {
  outline: 2px solid var(--ln-focus-ring, #32a06e);
  outline-offset: 2px;
}

.vm-page.lc-create-page .lc-poa-editor__add-btn.ant-btn {
  height: 36px;
  min-height: 36px;
  padding-inline: 12px;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .vm-page.lc-create-page .lc-poa-editor__fields--inline {
    grid-template-columns: 1fr;
  }

  .vm-page.lc-create-page .lc-poa-editor__row-action,
  .vm-page.lc-create-page .lc-poa-editor__row-action--ops {
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
  }
}

.vm-page.lc-create-page .lc-form-cascader.ant-cascader {
  width: 100%;
}

.vm-page.lc-create-page .lc-form-cascader .ant-select-selector {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: var(--ln-radius-control) !important;
  border-color: var(--ln-hairline-strong) !important;
}

.vm-page.lc-create-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 24px;
}

.vm-page.lc-create-page .lc-create-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.vm-page.lc-create-page .lc-create-editor-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.vm-page.lc-create-page .lc-create-editor-page .ct-editor-workspace {
  flex: 1;
  min-height: calc(100vh - 200px);
}

/* 左侧多卡片列：与右侧预览等高，内部纵向滚动 */
.vm-page.lc-create-page .ct-editor-workspace > .ant-row > .ant-col > .lc-create-editor-column {
  flex: 1;
  width: 100%;
  min-height: 0;
}

.vm-page.lc-create-page .lc-create-editor-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.vm-page.lc-create-page .lc-create-editor-column > .ct-editor-column-card {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
}

.vm-page.lc-create-page .lc-create-editor-column > .ct-editor-column-card .ct-editor-panel.lc-create-editor-panel,
.vm-page.lc-create-page .lc-create-editor-column > .ct-editor-column-card .lc-create-editor-scroll,
.vm-page.lc-create-page .lc-create-editor-column > .ct-editor-column-card .lc-create-editor-scroll--section {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}

.vm-page.lc-create-page .lc-create-editor-column .lc-lease-order-editor__table-wrap {
  max-width: 100%;
}

/* 预览区高度链与合同模板管理一致，保证灰底 + A4 左右留空 */
.vm-page.lc-create-page .ct-editor-column-card--preview .ct-preview-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.vm-page.lc-create-page .ct-preview-panel--word {
  background: #b8b8b8;
  padding: 0;
}

.vm-page.lc-create-page .ct-preview-doc.ct-word-paginated {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.vm-page.lc-create-page .lc-create-editor-panel,
.vm-page.lc-create-page.ct-page .ct-editor-workspace .ct-editor-column-card .ct-editor-panel.lc-create-editor-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}

.vm-page.lc-create-page .lc-create-editor-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 2px 12px;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.vm-page.lc-create-page .lc-form-card {
  margin-bottom: 10px;
  padding: 10px 14px 14px;
}

.vm-page.lc-create-page .lc-form-card > .vm-section-title {
  margin: 0 0 10px;
}

.vm-page.lc-create-page .lc-form-card:last-child {
  margin-bottom: 0;
}

.vm-page.lc-create-page .lc-form-card__desc {
  margin: -4px 0 14px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ln-muted);
}

.vm-page.lc-create-page .lc-form-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.vm-page.lc-create-page .lc-form-card.is-collapsed .lc-form-card__header {
  margin-bottom: 0;
}

.vm-page.lc-create-page .lc-form-card__header .vm-section-title {
  margin-bottom: 0;
}

.vm-page.lc-create-page .lc-form-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--ln-radius-control);
  background: transparent;
  color: var(--ln-muted);
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
}

.vm-page.lc-create-page .lc-form-card__toggle:hover {
  color: var(--ln-ink);
  background: var(--ln-canvas-soft);
}

.vm-page.lc-create-page .lc-form-card__toggle:focus-visible {
  outline: 2px solid var(--ln-focus-ring, #32a06e);
  outline-offset: 2px;
}

.vm-page.lc-create-page .lc-form-card__toggle-icon {
  transition: transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .vm-page.lc-create-page .lc-form-card__toggle-icon {
    transition: none;
  }
}

.vm-page.lc-create-page .lc-form-card__toggle-icon.is-expanded {
  transform: rotate(180deg);
}

.vm-page.lc-create-page .lc-form-section + .lc-form-section {
  margin-top: 20px;
}

.vm-page.lc-create-page .lc-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

@media (max-width: 576px) {
  .vm-page.lc-create-page .lc-form-grid--pair {
    grid-template-columns: 1fr;
  }
}

.vm-page.lc-create-page .lc-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.vm-page.lc-create-page .lc-form-field__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ln-ink);
  line-height: 1.4;
}

.vm-page.lc-create-page .lc-form-field__required {
  color: #dc2626;
  margin-right: 4px;
}

.vm-page.lc-create-page .lc-form-select,
.vm-page.lc-create-page .lc-form-field .vm-input,
.vm-page.lc-create-page .lc-form-field .ant-input {
  width: 100%;
}

.vm-page.lc-create-page .lc-form-select .ant-select-selector {
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.vm-page.lc-create-page .lc-form-field .ant-input:not(textarea) {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
}

.vm-page.lc-create-page .lc-form-field .lc-form-readonly,
.vm-page.lc-create-page .lc-form-field .lc-form-readonly--synced {
  width: 100%;
  max-height: 36px;
}

.vm-page.lc-create-page .lc-form-field__hint {
  display: block;
  margin-top: -2px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ln-muted);
}

.vm-page.lc-create-page .lc-form-readonly {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  height: 36px;
  max-height: 36px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--ln-ink);
  background: var(--ln-surface-card);
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vm-page.lc-create-page .lc-invoice-readonly-panel {
  gap: 12px;
  padding: 12px;
  border: 1px dashed color-mix(in srgb, var(--ln-muted) 40%, var(--ln-hairline));
  border-radius: var(--ln-radius-control);
  background: var(--ln-canvas-soft);
  cursor: default;
}

.vm-page.lc-create-page .lc-invoice-readonly-panel::before {
  content: '来自客户表 · 只读';
  display: block;
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ln-muted);
}

.vm-page.lc-create-page .lc-lessor-account-readonly-panel::before {
  content: '来自甲方档案 · 只读';
}

.vm-page.lc-create-page .lc-invoice-readonly-panel .lc-form-field {
  cursor: default;
}

.vm-page.lc-create-page .lc-invoice-readonly-panel .lc-form-field__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ln-muted);
}

.vm-page.lc-create-page .lc-invoice-readonly-panel .lc-form-readonly--synced,
.vm-page.lc-create-page .lc-lease-order-editor .lc-form-readonly--synced {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  height: 36px;
  max-height: 36px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ln-ink-secondary, #475569);
  background: color-mix(in srgb, var(--ln-surface-card) 82%, var(--ln-canvas-soft));
  border: 1px dashed var(--ln-hairline-strong);
  border-radius: var(--ln-radius-control);
  box-shadow: none;
  cursor: default;
  user-select: text;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vm-page.lc-create-page .lc-invoice-readonly-panel .lc-form-readonly--synced .lc-form-readonly__empty,
.vm-page.lc-create-page .lc-lease-order-editor .lc-form-readonly--synced .lc-form-readonly__empty {
  font-weight: 400;
  font-style: italic;
}

.vm-page.lc-create-page .lc-form-readonly__empty {
  color: var(--ln-muted);
}

.vm-page.lc-create-page .lc-form-subblock {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--ln-hairline-strong);
}

.vm-page.lc-create-page .lc-form-subblock--two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vm-page.lc-create-page .lc-form-subblock__section {
  min-width: 0;
}

.vm-page.lc-create-page .lc-form-subblock__section + .lc-form-subblock__section {
  margin-top: 16px;
}

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

.vm-page.lc-create-page .lc-attach-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vm-page.lc-create-page .lc-attach-thumb {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card);
  cursor: pointer;
}

.vm-page.lc-create-page .lc-attach-thumb__img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--ln-radius-control) - 2px);
  background: var(--ln-canvas-soft);
}

.vm-page.lc-create-page .lc-attach-thumb .ant-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  line-height: 0;
  overflow: hidden;
  border-radius: calc(var(--ln-radius-control) - 2px);
  background: var(--ln-canvas-soft);
}

.vm-page.lc-create-page .lc-attach-thumb .ant-image-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.vm-page.lc-create-page .lc-attach-thumb__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.vm-page.lc-create-page .lc-attach-thumb__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ln-ink);
}

@media (max-width: 768px) {
  .vm-page.lc-create-page .lc-form-subblock--two-col,
  .vm-page.lc-create-page .lc-form-grid--cols-2,
  .vm-page.lc-create-page .lc-attach-gallery {
    grid-template-columns: 1fr;
  }
}

.vm-page.lc-create-page .lc-form-subblock__title {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ln-ink-secondary, #475569);
}

.vm-page.lc-create-page .lc-form-subblock__section .vm-section-title {
  margin-bottom: 12px;
}

.vm-page.lc-create-page .lc-form-grid--readonly {
  gap: 10px;
}

.vm-page.lc-create-page .lc-attach-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vm-page.lc-create-page .lc-attach-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: var(--ln-surface-card);
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
}

.vm-page.lc-create-page .lc-attach-list__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ln-ink);
  flex-shrink: 0;
}

.vm-page.lc-create-page .lc-attach-list__file {
  font-size: 0.75rem;
  color: var(--ln-muted);
  text-align: right;
  word-break: break-all;
}

.vm-page.lc-create-page .lc-form-number,
.vm-page.lc-create-page .lc-form-date {
  width: 100%;
}

.vm-page.lc-create-page .lc-form-number--stepper-visible .ant-input-number-actions,
.vm-page.lc-create-page .lc-form-number--stepper-visible.ant-input-number .ant-input-number-actions,
.vm-page.lc-create-page .ant-space-compact .lc-form-number--stepper-visible .ant-input-number-actions {
  width: 22px !important;
  opacity: 1 !important;
}

.vm-page.lc-create-page #lc-card-fee-body .lc-form-grid--pair .lc-form-field > :last-child {
  width: 100%;
}

.vm-page.lc-create-page #lc-card-fee-body .ant-select,
.vm-page.lc-create-page #lc-card-fee-body .ant-space-compact,
.vm-page.lc-create-page #lc-card-fee-body .lc-form-inline-sentence {
  width: 100%;
}

.vm-page.lc-create-page .lc-form-inline-sentence {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
}

.vm-page.lc-create-page .lc-form-inline-sentence__text {
  font-size: 0.875rem;
  color: var(--ln-ink);
  white-space: nowrap;
  line-height: 1.5715;
}

.vm-page.lc-create-page .lc-form-inline-sentence__input.ant-input-number {
  width: 88px !important;
  min-width: 88px;
  flex-shrink: 0;
}

.vm-page.lc-create-page .lc-contract-code-input.ant-input-group-wrapper,
.vm-page.lc-create-page .lc-form-input {
  width: 100%;
}

.vm-page.lc-create-page .lc-contract-code-input.ant-input-group-wrapper .ant-input-group {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.vm-page.lc-create-page .lc-contract-code-input.ant-input-group-wrapper .ant-input-group-addon {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  min-width: max-content;
  padding: 0 11px;
  line-height: 1.5715;
  white-space: nowrap;
  overflow: visible;
}

.vm-page.lc-create-page .lc-contract-code-input.ant-input-group-wrapper .ant-input-affix-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding-block: 0;
}

.vm-page.lc-create-page .lc-contract-code-input.ant-input-group-wrapper .ant-input {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
}

.vm-page.lc-create-page .lc-poa-editor__fields--inline .lc-form-field .ant-input-affix-wrapper,
.vm-page.lc-create-page .lc-poa-editor__fields--inline .lc-form-field .ant-input:not(textarea) {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
}

.vm-page.lc-create-page .lc-poa-editor__fields--inline .lc-form-field .ant-input-affix-wrapper {
  display: inline-flex;
  align-items: center;
  padding-block: 0;
}

.vm-page.lc-create-page .lc-contact-party + .lc-contact-party {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--ln-hairline-strong);
}

.vm-page.lc-create-page .lc-lessor-contact-readonly-panel::before {
  content: '来自甲方档案 · 只读';
}

.vm-page.lc-create-page .lc-customer-contact-readonly-panel::before {
  content: '来自客户表 · 只读';
}

.vm-page.lc-create-page .lc-form-contact-pair .lc-form-readonly--synced {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  height: 36px;
  max-height: 36px;
}

.vm-page.lc-create-page .lc-form-contact-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 576px) {
  .vm-page.lc-create-page .lc-form-contact-pair {
    grid-template-columns: 1fr;
  }
}

.vm-page.lc-create-page .lc-mileage-types {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}

.vm-page.lc-create-page .lc-mileage-type {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card);
  cursor: pointer;
}

.vm-page.lc-create-page .lc-mileage-type.is-active {
  border-color: color-mix(in srgb, var(--ln-primary) 35%, var(--ln-hairline));
  background: var(--ln-primary-soft);
}

.vm-page.lc-create-page .lc-mileage-type__radio {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--ln-primary);
}

.vm-page.lc-create-page .lc-mileage-type__text {
  font-size: 0.875rem;
  color: var(--ln-ink);
  white-space: nowrap;
}

.vm-page.lc-create-page .lc-mileage-type__input {
  flex: 1 1 56px;
  width: auto;
  min-width: 56px;
  max-width: 88px;
}

@media (max-width: 576px) {
  .vm-page.lc-create-page .lc-mileage-types {
    flex-direction: column;
  }

  .vm-page.lc-create-page .lc-mileage-type {
    flex: 1 1 auto;
  }

  .vm-page.lc-create-page .lc-mileage-type__input {
    max-width: none;
    width: 120px;
  }
}

.ct-word-doc--v266 .lc-preview-attach__frame--image {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  min-height: auto;
  padding: 0;
  background: #fff;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.ct-word-doc--v266 .lc-preview-attach__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

/* 预览区客户资质附件占位 */
.ct-word-doc--v266 .lc-preview-credentials {
  margin-top: 8px;
}

.ct-word-doc--v266 .lc-preview-attach__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin: 0 auto 8px;
  max-width: 420px;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  border-radius: 4px;
}

.ct-word-doc--v266 .lc-preview-attach__file {
  font-size: 10.5px;
  color: #64748b;
  padding: 8px 12px;
  text-align: center;
}

.vm-page.lc-create-page .lc-form-hint {
  margin: 16px 0 0;
  padding: 10px 12px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ln-muted);
  background: var(--ln-surface-card);
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
}

.vm-page.lc-create-page .lc-create-editor-placeholder {
  max-width: 360px;
  padding: 32px 24px;
  text-align: center;
  border: 1px dashed var(--ln-hairline-strong);
  border-radius: var(--ln-radius-card);
  background: var(--ln-surface-card);
}

.vm-page.lc-create-page .lc-create-editor-placeholder__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ln-ink);
}

.vm-page.lc-create-page .lc-create-editor-placeholder__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ln-muted);
}

.vm-page.lc-create-page .lc-create-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ln-hairline);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .vm-page.lc-create-page .lc-create-editor-page .ct-editor-workspace {
    min-height: auto;
  }

  .vm-page.lc-create-page .lc-create-editor-panel {
    min-height: 240px;
  }
}
