.project-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #edf1f7;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}

.project-filter-bar__field {
  display: flex;
  flex-shrink: 0;
  min-width: 0;
}

.project-filter-bar__field--keyword {
  flex: 1 1 420px;
  min-width: 260px;
}

.project-filter-bar__field--project {
  flex: 1 1 320px;
  min-width: 240px;
}

.project-filter-bar__field--status,
.project-filter-bar__field--date,
.project-filter-bar__field--medium {
  width: 180px;
}

.project-filter-bar__field--narrow {
  width: 160px;
}

.project-filter-bar__field--wide {
  width: 220px;
}

.project-filter-bar__group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.project-filter-bar__label {
  flex-shrink: 0;
  color: #4b5563;
  font-size: 14px;
}

.project-filter-bar__select {
  flex: 1;
  min-width: 0;
}

.project-filter-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.project-filter-bar ::v-deep .el-input__inner,
.project-filter-bar ::v-deep .el-input-number__decrease,
.project-filter-bar ::v-deep .el-input-number__increase {
  height: 38px;
  line-height: 38px;
  border-color: #d7deea;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-filter-bar ::v-deep .el-input__inner:focus,
.project-filter-bar ::v-deep .el-select .el-input.is-focus .el-input__inner,
.project-filter-bar ::v-deep .el-date-editor .el-input__inner:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
}

.project-filter-bar ::v-deep .el-select,
.project-filter-bar ::v-deep .el-input,
.project-filter-bar ::v-deep .el-date-editor,
.project-filter-bar ::v-deep .el-date-editor.el-input {
  width: 100%;
}

.project-filter-bar__button {
  min-width: 78px;
  height: 38px;
  border-radius: 8px;
}

/* Keep project module date inputs aligned without affecting unrelated pages. */
.project-filter-bar ::v-deep .project-date-picker.el-date-editor,
.project-form ::v-deep .project-date-picker.el-date-editor,
.task-dispatch-page ::v-deep .project-date-picker.el-date-editor,
.project-filter-bar ::v-deep .project-date-picker.el-range-editor.el-input__inner,
.project-form ::v-deep .project-date-picker.el-range-editor.el-input__inner,
.task-dispatch-page ::v-deep .project-date-picker.el-range-editor.el-input__inner {
  width: 100%;
}

.project-filter-bar ::v-deep .project-date-picker.el-date-editor .el-input__inner,
.project-form ::v-deep .project-date-picker.el-date-editor .el-input__inner,
.task-dispatch-page ::v-deep .project-date-picker.el-date-editor .el-input__inner,
.project-filter-bar ::v-deep .project-date-picker.el-range-editor.el-input__inner,
.project-form ::v-deep .project-date-picker.el-range-editor.el-input__inner,
.task-dispatch-page ::v-deep .project-date-picker.el-range-editor.el-input__inner {
  height: 38px;
  line-height: 38px;
  border-color: #d7deea;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-filter-bar ::v-deep .project-date-picker .el-input__prefix,
.project-filter-bar ::v-deep .project-date-picker .el-input__suffix,
.project-form ::v-deep .project-date-picker .el-input__prefix,
.project-form ::v-deep .project-date-picker .el-input__suffix,
.task-dispatch-page ::v-deep .project-date-picker .el-input__prefix,
.task-dispatch-page ::v-deep .project-date-picker .el-input__suffix {
  display: flex;
  align-items: center;
  height: 100%;
}

.project-filter-bar ::v-deep .project-date-picker .el-input__icon,
.project-filter-bar ::v-deep .project-date-picker .el-range__icon,
.project-filter-bar ::v-deep .project-date-picker .el-range__close-icon,
.project-filter-bar ::v-deep .project-date-picker .el-range-separator,
.project-form ::v-deep .project-date-picker .el-input__icon,
.project-form ::v-deep .project-date-picker .el-range__icon,
.project-form ::v-deep .project-date-picker .el-range__close-icon,
.project-form ::v-deep .project-date-picker .el-range-separator,
.task-dispatch-page ::v-deep .project-date-picker .el-input__icon,
.task-dispatch-page ::v-deep .project-date-picker .el-range__icon,
.task-dispatch-page ::v-deep .project-date-picker .el-range__close-icon,
.task-dispatch-page ::v-deep .project-date-picker .el-range-separator {
  line-height: 38px;
}

.project-filter-bar ::v-deep .project-date-picker .el-input__inner:hover,
.project-form ::v-deep .project-date-picker .el-input__inner:hover,
.task-dispatch-page ::v-deep .project-date-picker .el-input__inner:hover,
.project-filter-bar ::v-deep .project-date-picker.el-range-editor.el-input__inner:hover,
.project-form ::v-deep .project-date-picker.el-range-editor.el-input__inner:hover,
.task-dispatch-page ::v-deep .project-date-picker.el-range-editor.el-input__inner:hover {
  border-color: #c8d2e3;
}

.project-filter-bar ::v-deep .project-date-picker .el-input__inner:focus,
.project-filter-bar ::v-deep .project-date-picker.is-active .el-input__inner,
.project-form ::v-deep .project-date-picker .el-input__inner:focus,
.project-form ::v-deep .project-date-picker.is-active .el-input__inner,
.task-dispatch-page ::v-deep .project-date-picker .el-input__inner:focus,
.task-dispatch-page ::v-deep .project-date-picker.is-active .el-input__inner,
.project-filter-bar ::v-deep .project-date-picker.el-range-editor.el-input__inner.is-active,
.project-filter-bar ::v-deep .project-date-picker.el-range-editor.el-input__inner.is-active:hover,
.project-form ::v-deep .project-date-picker.el-range-editor.el-input__inner.is-active,
.project-form ::v-deep .project-date-picker.el-range-editor.el-input__inner.is-active:hover,
.task-dispatch-page ::v-deep .project-date-picker.el-range-editor.el-input__inner.is-active,
.task-dispatch-page ::v-deep .project-date-picker.el-range-editor.el-input__inner.is-active:hover {
  border-color: #409eff;
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
}

.project-filter-bar ::v-deep .project-date-picker.el-range-editor.el-input__inner,
.project-form ::v-deep .project-date-picker.el-range-editor.el-input__inner,
.task-dispatch-page ::v-deep .project-date-picker.el-range-editor.el-input__inner {
  display: inline-flex;
  align-items: center;
}

.project-filter-bar ::v-deep .project-date-picker .el-range-input,
.project-form ::v-deep .project-date-picker .el-range-input,
.task-dispatch-page ::v-deep .project-date-picker .el-range-input {
  background: transparent;
}

@media screen and (max-width: 768px) {
  .project-filter-bar {
    align-items: stretch;
  }

  .project-filter-bar__field,
  .project-filter-bar__field--keyword,
  .project-filter-bar__field--project,
  .project-filter-bar__field--status,
  .project-filter-bar__field--date,
  .project-filter-bar__field--medium,
  .project-filter-bar__field--narrow,
  .project-filter-bar__field--wide {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }

  .project-filter-bar__group {
    width: 100%;
  }

  .project-filter-bar__actions {
    width: 100%;
  }

  .project-filter-bar__button {
    flex: 1;
  }
}
