/**
 * YcTabsWithFilter - 带筛选按钮的标签页组件样式
 */

.yc-tabs-with-filter-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
}

.yc-tabs-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  .yc-tabs-with-filter {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;

    .el-tabs__header {
      margin-bottom: 16px;
    }

    .el-tabs__content {
      flex: 1;
      overflow: hidden;
    }

    .el-tab-pane {
      height: 100%;
    }
  }

  .yc-filter-button-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    padding: 8px 0;

    .yc-filter-button {
      height: 28px;
      line-height: 28px;
      color: var(--el-color-primary);
      background-color: var(--el-bg-color);
      border: 1px solid var(--el-color-primary);
      border-radius: 4px;
      transition: all 0.3s;
    }

    .yc-filter-button--active {
      color: var(--el-color-primary);
      background-color: var(--el-bg-color);
    }

    .yc-filter-button:hover {
      color: var(--el-color-primary);
    }
  }
}

