.date-filter-value-input {
  display: inline-block;
  width: 200px;
  flex-shrink: 0;

  .date-filter-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;

    .date-filter-trigger {
      width: 100%;
      cursor: pointer;
      padding-right: 24px;

      input {
        cursor: pointer;
      }
    }

    .date-filter-arrow {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      color: #999;
      font-size: 12px;
      user-select: none;
      pointer-events: none;
    }
  }
}

// 下拉菜单包装器
.date-filter-popup-wrapper {
  background-color: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

// 下拉菜单的卡片样式
.date-filter-popup {
  padding: 4px 0;
  min-width: 175px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;

  // 自定义滚动条样式
  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
  }

  &::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 3px;

    &:hover {
      background: #bfbfbf;
    }
  }
}

.date-filter-option {
  min-height: 36px;
  justify-content: center;
  align-items: center;
  display: flex;
  padding: 2px 12px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
  font-size: 12px;
  color: #262626;
  line-height: 1.5;
  // border-radius: 4px;

  &:hover {
    color: var(--menu-color-hover, #284cc0);
    background-color: var(--menu-background-hover, #eef1f7);
    width: 100%;
  }

  &.date-filter-option-selected {
    color: var(--menu-color-hover, #284cc0);
    background-color: var(--menu-background-hover, #eef1f7);
  }

  &.date-filter-option-hovered {
    background-color: #f5f5f5;
  }

  .date-filter-option-label {
    display: flex;
    gap: 4px;
    align-items: center;
    width: 100%;
  }

  // 固定日期选项的日期选择器（内联显示）
  &.date-filter-fixed-date-option {
    cursor: default;

    .date-filter-date-picker-inline {
      width: 100%;
      margin-top: 8px;
    }
  }
}

// 日期选择器侧边栏 - 显示在右侧
.date-filter-date-picker-sidebar {
  border-left: 1px solid #e8e8e8;
  padding: 12px;
  min-width: 180px;
  background-color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;

  // 未来/过去天数的布局 - 同一行显示
  &.date-filter-option-days {
    .date-filter-option-label {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .date-filter-number-picker-wrapper {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }
  }
}
