/* Loading 遮罩 */
.ext-grid-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  color: #666;
}
.ext-grid-loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--ext-field-border, #ccc);
  border-top-color: var(--ext-primary, #157fcc);
  border-radius: 50%;
  animation: ext-spin 0.6s linear infinite;
}
@keyframes ext-spin {
  to { transform: rotate(360deg); }
}

/* 展开按钮 */
.row-expander {
  text-align: center;
  cursor: pointer;
  width: 28px;
  user-select: none;
}
.expand-icon {
  display: inline-block;
  font-size: 10px;
  transition: transform 0.2s;
  color: #666;
}
.expand-icon.expanded {
  transform: rotate(90deg);
}

/* 展开内容行 */
.ext-grid-expand-row > td {
  border-top: none !important;
}

/* 当前行高亮（实际样式在全局 extjs-classic.css 中，此处备用） */

/* 表头吸顶（配合滚动） */
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* flex 布局：外部设 height/style 时表格区域自动填充并内部滚动 */
.ext-grid-wrapper {
  display: flex;
  flex-direction: column;
}
.ext-grid-wrapper > .ext-grid {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
