/**
 * 放在 body 末尾以 <link> 引入，确保晚于 Vite 注入的 element-plus-*.css，
 * 否则异步 EP 样式会覆盖 theme-overrides 里的工具栏规则。
 * 更新样式后请增大 index.html 中 query ?v=
 */

.toolbar-row {
  width: 100%;
  max-width: 100%;
}

.toolbar-row .el-space {
  flex-wrap: wrap !important;
  row-gap: 8px;
  column-gap: 12px;
  width: 100%;
  max-width: 100%;
}

.toolbar-row .el-space__item {
  max-width: 100%;
}

.toolbar-row .el-space__item > .el-input {
  width: min(200px, 100%) !important;
  max-width: 100%;
}

/* 下拉筛选：默认宽度（占位符如「负责人筛选」），并压过后载的 EP 规则 */
.toolbar-row .el-select {
  width: auto !important;
  max-width: 100% !important;
}

.toolbar-row .el-select .el-select__wrapper {
  width: auto !important;
  min-width: 12rem;
  max-width: 100% !important;
}

.toolbar-row .el-space__item > .el-date-editor.el-date-editor--daterange {
  width: min(144px, 100%) !important;
  max-width: 100%;
}

.filter-row.el-space {
  flex-wrap: wrap !important;
  row-gap: 8px;
  column-gap: 12px;
  width: 100%;
  max-width: 100%;
}

.filter-row .el-space__item {
  max-width: 100%;
}

.filter-row .el-input {
  width: min(200px, 100%) !important;
  max-width: 100%;
}

.filter-row .el-select {
  width: auto !important;
  max-width: 100% !important;
}

.filter-row .el-select .el-select__wrapper {
  width: auto !important;
  min-width: 12rem;
  max-width: 100% !important;
}

.filter-row .input-wide {
  width: min(260px, 100%) !important;
  max-width: 100%;
}

.filter-row .el-date-editor--daterange {
  width: min(144px, 100%) !important;
  max-width: 100%;
}
