.stock-alert-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.stock-alert-layout__filter {
  flex: 0 0 auto;
  height: auto;
  min-height: auto;
  justify-content: center;
  padding: 16px;
}

.stock-alert-layout__filter .ant-select {
  width: 100%;
}

.stock-alert-layout__grid {
  gap: 12px;
  padding: 12px;
}

.stock-alert-layout__toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.stock-alert-layout__toolbar .ant-btn {
  min-width: 40px;
}

.stock-alert-layout__surface {
  flex: 1;
  min-height: 0;
}

.stock-alert-layout__surface.ag-theme-quartz {
  --ag-font-size: 13px;
  --ag-border-color: #d9d9d9;
  --ag-header-background-color: #fafafa;
  --ag-row-border-color: #f0f0f0;
  width: 100%;
  height: 100%;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  overflow: hidden;
}

.stock-alert-layout__search-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stock-alert-layout__search-modal .ant-table-wrapper {
  min-height: 0;
}

.stock-alert-layout__change-rate--up {
  color: #cf1322;
  font-weight: 600;
}

.stock-alert-layout__change-rate--down {
  color: #0958d9;
  font-weight: 600;
}

.stock-alert-layout__change-rate--flat {
  color: #595959;
}

.stock-alert-layout__alert-type-editor {
  display: flex;
  align-items: center;
  min-height: 100%;
  width: 100%;
  cursor: pointer;
}

.stock-alert-layout__alert-type-select {
  width: 100%;
}

.stock-alert-layout__alert-type-select .ant-select-selector {
  min-height: 32px;
  border-radius: 8px;
}

.stock-alert-layout__alert-type-editor.is-open .stock-alert-layout__alert-type-select .ant-select-selector {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgb(5 145 255 / 0.12);
}
