/**
 * 保险采购 — 列表筛选区 / 表格区
 * 设计规范：Antd设计规范（v5）.md · oneos-tokens.css · oneos-app.css
 */
@import url('../../../resources/oneos-web-legacy/styles/oneos-app.css');
@import url('../../../resources/oneos-web-legacy/styles/ant-table-global-fix.css');

/* 列表页全屏滚动布局 */
.vm-page.ipc-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.vm-page.ipc-page .ipc-list-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.vm-page.ipc-page .lc-table-section {
  flex: 1;
  min-height: 0;
}

.vm-page.ipc-page .lc-table-card {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* KPI：本页 4 张卡片 */
.vm-page.ipc-page .lc-alert-stats-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vm-page.ipc-page .lc-alert-card {
  align-items: flex-start;
  padding: 14px 30px 14px var(--oneos-space-4);
}

.vm-page.ipc-page .lc-alert-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--oneos-radius-lg);
  box-shadow: none;
  background: var(--oneos-color-bg-hover);
  color: var(--oneos-color-text-secondary);
}

.vm-page.ipc-page .lc-alert-card-main {
  flex: 1;
  min-width: 0;
}

.vm-page.ipc-page .lc-alert-card-val {
  font-size: 26px;
  font-weight: var(--oneos-font-weight-extrabold);
  line-height: 1.1;
  color: var(--oneos-color-text);
  font-variant-numeric: tabular-nums;
}

.vm-page.ipc-page .lc-alert-card-title {
  margin-top: 2px;
  font-size: var(--oneos-font-size-sm);
  font-weight: var(--oneos-font-weight-semibold);
  color: var(--oneos-color-text-secondary);
}

.vm-page.ipc-page .lc-alert-card-tip-anchor {
  position: absolute;
  top: var(--oneos-space-2);
  right: var(--oneos-space-2);
  z-index: 2;
  line-height: 0;
}

.vm-page.ipc-page .lc-alert-card-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--oneos-color-border);
  border-radius: 50%;
  color: var(--oneos-color-text-placeholder);
  background: rgba(255, 255, 255, 0.92);
  cursor: help;
  line-height: 0;
}

.vm-page.ipc-page .lc-alert-card-tip:hover {
  color: var(--oneos-color-text-muted);
  border-color: var(--oneos-color-border-strong);
  background: var(--oneos-color-bg-card);
}

.vm-page.ipc-page .lc-alert-card--total {
  background: linear-gradient(135deg, var(--oneos-color-bg-muted) 0%, var(--oneos-color-bg-card) 100%);
}

.vm-page.ipc-page .lc-alert-card--total .lc-alert-card-icon {
  background: var(--oneos-color-border);
  color: var(--oneos-color-text-secondary);
}

.vm-page.ipc-page .lc-alert-card--normal {
  background: linear-gradient(135deg, var(--oneos-color-success-bg) 0%, var(--oneos-color-bg-card) 55%);
  border-color: var(--oneos-color-primary-border);
}

.vm-page.ipc-page .lc-alert-card--normal .lc-alert-card-icon {
  background: #d1fae5;
  color: var(--oneos-color-primary-hover);
}

.vm-page.ipc-page .lc-alert-card--normal .lc-alert-card-val {
  color: var(--oneos-color-success-text);
}

.vm-page.ipc-page .lc-alert-card--warning .lc-alert-card-icon {
  background: #ffedd5;
  color: #ea580c;
}

.vm-page.ipc-page .lc-alert-card--warning .lc-alert-card-val {
  color: #c2410c;
}

.vm-page.ipc-page .lc-alert-card--warning {
  background: linear-gradient(135deg, #fff7ed 0%, var(--oneos-color-bg-card) 55%);
  border-color: #fed7aa;
}

.vm-page.ipc-page .lc-alert-card--expired {
  background: linear-gradient(135deg, var(--oneos-color-error-bg) 0%, var(--oneos-color-bg-card) 55%);
  border-color: var(--oneos-color-error-border);
}

.vm-page.ipc-page .lc-alert-card--expired .lc-alert-card-icon {
  background: #fee2e2;
  color: var(--oneos-color-error);
}

.vm-page.ipc-page .lc-alert-card--expired .lc-alert-card-val {
  color: #b91c1c;
}

.vm-page.ipc-page .lc-alert-card--unuploaded .lc-alert-card-icon {
  background: var(--oneos-color-bg-hover);
  color: var(--oneos-color-text-muted);
}

.vm-page.ipc-page .lc-alert-card--unuploaded .lc-alert-card-val {
  color: var(--oneos-color-text-muted);
}

.vm-page.ipc-page .lc-alert-card--unuploaded {
  background: linear-gradient(135deg, var(--oneos-color-bg-muted) 0%, var(--oneos-color-bg-card) 55%);
}

/* 筛选：多车牌弹层 */
.vm-page.ipc-page .lc-multi-plate-pop {
  width: 320px;
  padding: 4px 2px;
}

.vm-page.ipc-page .lc-multi-plate-pop-hint {
  margin-bottom: var(--oneos-space-2);
  font-size: var(--oneos-font-size-xs);
  line-height: var(--oneos-line-height-normal);
  color: var(--oneos-color-text-muted);
}

.vm-page.ipc-page .lc-multi-plate-pop-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--oneos-space-2);
  margin-top: 10px;
}

.vm-page.ipc-page .lc-multi-plate-trigger {
  cursor: pointer;
}

.vm-page.ipc-page .lc-multi-plate-trigger .ant-input {
  cursor: pointer;
}

.vm-page.ipc-page .lc-filter-expand-btn {
  margin-right: auto;
  padding: 0 var(--oneos-space-2);
  font-weight: var(--oneos-font-weight-medium);
}

/* 列表工具栏 */
.vm-page.ipc-page .lc-table-toolbar-meta {
  font-size: var(--oneos-font-size-sm);
  font-weight: var(--oneos-font-weight-semibold);
  color: var(--oneos-color-text-secondary);
}

.vm-page.ipc-page .lc-policy-toolbar {
  margin-left: auto;
}

/* 表格 */
.vm-page.ipc-page .lc-list-table .ant-table-wrapper,
.vm-page.ipc-page .lc-list-table .ant-table {
  width: 100% !important;
}

.vm-page.ipc-page .lc-list-table .ant-table-content table {
  table-layout: fixed;
  width: 100% !important;
}

.vm-page.ipc-page .lc-table-card .ant-table-thead > tr > th.lc-th-wrap {
  padding: 10px var(--oneos-space-2) !important;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.vm-page.ipc-page .lc-table-th-multiline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.3;
  white-space: normal;
}

.vm-page.ipc-page .lc-table-th-line {
  display: block;
  font-size: var(--oneos-font-size-xs);
  font-weight: var(--oneos-font-weight-bold);
  color: var(--oneos-color-text-secondary);
}

.vm-page.ipc-page .lc-table-card .ant-table-tbody > tr:not(.ant-table-measure-row) > td {
  border-bottom: 1px solid var(--oneos-color-border-light) !important;
}

.vm-page.ipc-page .lc-table-card .ant-table-tbody > tr.lc-row-retired:not(.ant-table-measure-row) > td {
  background: var(--oneos-color-bg-muted) !important;
  color: var(--oneos-color-text-placeholder);
}

.vm-page.ipc-page .lc-cell-ellipsis {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 表格单元格 */
.vm-page.ipc-page .lc-list-expire-cell {
  display: flex;
  flex-direction: column;
  gap: var(--oneos-space-1);
  min-width: 0;
}

.vm-page.ipc-page .lc-list-expire-date {
  font-size: var(--oneos-font-size-xs);
  font-weight: var(--oneos-font-weight-semibold);
  line-height: var(--oneos-line-height-tight);
}

.vm-page.ipc-page .lc-list-expire-meta {
  line-height: 1.2;
}

.vm-page.ipc-page .lc-list-status-badge-wrap {
  display: inline-flex;
  max-width: 100%;
}

.vm-page.ipc-page .lc-list-status-badge-wrap .ant-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.vm-page.ipc-page .lc-list-status-badge-text {
  font-size: 11px;
  font-weight: var(--oneos-font-weight-semibold);
  white-space: nowrap;
}

.vm-page.ipc-page .lc-list-plate-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vm-page.ipc-page .lc-list-plate-sub {
  display: block;
  font-size: 11px;
  font-weight: var(--oneos-font-weight-medium);
  line-height: var(--oneos-line-height-tight);
}

.vm-page.ipc-page .lc-list-plate-empty {
  color: var(--oneos-color-text-placeholder) !important;
  font-style: italic;
  font-weight: var(--oneos-font-weight-medium) !important;
}

.vm-page.ipc-page .lc-list-plate-primary {
  font-size: var(--oneos-font-size-sm);
  font-weight: var(--oneos-font-weight-semibold);
}

.vm-page.ipc-page .lc-list-plate-primary.is-muted {
  color: var(--oneos-color-text-placeholder);
}

.vm-page.ipc-page .lc-list-plate-primary.is-empty {
  color: var(--oneos-color-text-placeholder);
}

.vm-page.ipc-page .lc-list-plate-primary.is-active {
  color: var(--oneos-color-text);
}

.vm-page.ipc-page .lc-list-plate-sub.is-muted {
  color: var(--oneos-color-text-placeholder);
}

.vm-page.ipc-page .lc-list-plate-sub.is-active {
  color: var(--oneos-color-text-muted);
}

.vm-page.ipc-page .lc-list-vin {
  font-family: var(--oneos-font-mono);
  font-size: 11px;
  color: var(--oneos-color-text-secondary);
}

.vm-page.ipc-page .lc-list-vin.is-muted {
  color: var(--oneos-color-text-placeholder);
}

.vm-page.ipc-page .lc-list-status-text {
  font-size: var(--oneos-font-size-sm);
  font-weight: var(--oneos-font-weight-semibold);
  color: var(--oneos-color-text-secondary);
}

.vm-page.ipc-page .lc-list-status-text.is-muted {
  color: var(--oneos-color-text-placeholder);
}

.vm-page.ipc-page .lc-list-expire-date.is-muted {
  color: var(--oneos-color-text-placeholder);
}

.vm-page.ipc-page .lc-list-expire-date.has-value {
  color: var(--oneos-color-text-secondary);
}

.vm-page.ipc-page .lc-list-expire-date.is-empty {
  color: var(--oneos-color-text-placeholder);
}

.vm-page.ipc-page .lc-list-table .lc-action-btn {
  min-height: auto;
  height: auto;
  padding: 0;
  font-size: var(--oneos-font-size-sm);
}

.vm-page.ipc-page .lc-list-policy-tag {
  margin-top: var(--oneos-space-1);
}

.vm-page.ipc-page .lc-list-empty {
  padding: 40px 0;
  color: var(--oneos-color-text-placeholder);
  text-align: center;
}

.vm-page.ipc-page .lc-list-empty-icon {
  margin-bottom: var(--oneos-space-3);
}

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

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