// 需要全局变量时：@use '../../assets/scss/variables' as *;

// 策略列表：页面级 scss 与模块同目录
.strategy-list-page {
  padding: 16px 0;
  min-width: 0; // 避免 flex 子项内 DataGrid 撑破主内容区（.ntq-content-inner）
}

.strategy-list-breadcrumbs {
  margin-bottom: 0; // AppBreadcrumbs already has default margin-bottom
}

.strategy-list-alert {
  margin-bottom: 12px;
}

.strategy-list-grid {
  padding: 0;
  isolation: isolate;
  // Opaque glass surface — no backdrop-filter (nested blur ghosts rows when header hovers).
  background-color: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  .MuiChip-root {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.strategy-list-grid-toolbar {
  padding: 18px 12px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.strategy-list-search {
  flex: 0 0 auto;
  width: 360px;
  max-width: 100%;

  // Align with refresh button height
  .MuiOutlinedInput-root {
    height: 40px;
    align-items: center;
  }

  .MuiInputBase-root,
  .MuiInputBase-input,
  .MuiInputBase-input::placeholder {
    font-size: var(--ntq-form-control-font-size, 14px);
  }

  .MuiInputBase-input {
    padding-top: 0;
    padding-bottom: 0;
  }

  .MuiInputBase-input::placeholder {
    opacity: 0.7;
  }

  .MuiOutlinedInput-root {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.strategy-list-grid-body {
  width: 100%;
  min-height: 400px;
  padding: 0 12px 12px 12px;
}
