@charset "UTF-8";
@import "./checkbox.css";
@import "./tag.css";
@import "./common/var.css";

@component-namespace el {
  @b table-column {
    @m selection .cell {
      padding-left: 14px;
      padding-right: 14px;
    }
  }

  @b table-filter {
    border: solid 1px #d3dce6;
    border-radius: 2px;
    background-color: #fff;
    box-shadow: var(--dropdown-menu-box-shadow);
    box-sizing: border-box;
    margin: 2px 0;

    /** used for dropdown mode */
    @e list {
      padding: 5px 0;
      margin: 0;
      list-style: none;
      min-width: 100px;
    }

    @e list-item {
      line-height: 36px;
      padding: 0 10px;
      cursor: pointer;
      font-size: var(--font-size-base);

      &:hover {
        background-color: var(--dropdown-menuItem-hover-fill);
        color: var(--dropdown-menuItem-hover-color);
      }

      @when active {
        background-color: #20a0ff;
        color: #fff;
      }
    }

    @e content {
      min-width: 100px;
    }

    @e bottom {
      border-top: 1px solid #d3dce6;
      padding: 8px;

      button {
        background: transparent;
        border: none;
        color: #8492a6;
        cursor: pointer;
        font-size: var(--font-size-base);
        padding: 0 3px;

        &:hover {
          color: #20a0ff;
        }

        &:focus {
          outline: none;
        }

        &.is-disabled {
          color: #c0ccda;
          cursor: not-allowed;
        }
      }
    }

    @e checkbox-group {
      padding: 10px;

      .el-checkbox {
        display: block;
        margin-bottom: 8px;
        margin-left: 5px;
      }

      .el-checkbox:last-child {
        margin-bottom: 0;
      }
    }
  }
}