.w2-state-in-card {
  flex: 1;
  display: flex;
  min-height: 240px;
}

.w2-m-state {
  min-height: 220px;
}

.w2-m-chips {
  margin: 2px -16px 0;
  padding: 0 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.w2-m-chips::-webkit-scrollbar {
  display: none;
}

.w2-m-chips .chips {
  flex-wrap: nowrap;
  width: max-content;
}

.w2-m-card {
  cursor: pointer;
  margin-bottom: 12px;
}

.w2-m-card:last-child {
  margin-bottom: 0;
}

tbody tr[data-action="w2-open"] {
  cursor: pointer;
}

.w2-m-card:hover {
  border-color: var(--primary);
}

.w2-m-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 4px 4px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.w2-m-sentinel.error {
  color: var(--danger);
}

.w2-m-sentinel.done {
  color: var(--text-tertiary);
}

.w2-m-sentinel .btn {
  height: 30px;
  padding: 0 12px;
}

.w2-m-pagination {
  padding: 2px 0 4px;
}

.w2-m-pagination .pagination {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 4px;
}

.w2-m-pagination .pg-left,
.w2-m-pagination .pg-right {
  justify-content: center;
}

.w2-m-pagination .pg-right {
  overflow-x: auto;
  padding-bottom: 4px;
}

.content-scroll.assets-fixed-layout {
  overflow: hidden;
}

.content-scroll.assets-fixed-layout > [data-w2-root] {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.assets-fixed-layout .asset-overview-section {
  flex: 0 0 auto;
}

.assets-fixed-layout .asset-list-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.assets-fixed-layout .asset-list-section .table-card {
  flex: 1;
  min-height: 0;
}

.assets-fixed-layout .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

/* 区域级刷新包装：chips 参与工具栏 flex 布局，表格/分页区域占位 */
[data-w2-chips] {
  display: contents;
}

.assets-fixed-layout [data-w2-table] {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.assets-fixed-layout [data-w2-pagination] {
  flex: 0 0 auto;
}

.m-stat.active {
  border-color: var(--primary);
  background: var(--brand-weak);
}

.m-stat.active .num,
.m-stat.active .label {
  color: var(--primary);
}

.kpi-overview .kpi-col[data-action],
.kpi-overview .kpi-total[data-action],
.m-stat[data-action] {
  cursor: pointer;
}

@media (max-width: 768px) {
  [data-w2-root] {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .w2-m-card {
    margin-bottom: 0;
  }

  .w2-state-in-card {
    min-height: 200px;
  }
}
