.table-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;

  @media (--breakpoint-small) {
    display: block;
  }

  &_filters-btn-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding-bottom: 30px;
    box-sizing: border-box;
  }

  &_top {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid #EBEEF5;

    @media (--breakpoint-small) {
      flex-direction: column;
      padding: 12px;
    }

    & .el-form-item {
      margin-bottom: 0;
    }

    & .el-button {
      width: auto;
      @media (--breakpoint-small) {
        width: 100%;
      }
    }

    &_filters {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      width: 100%;
      overflow-x: hidden;

      @media (--breakpoint-small) {
        flex-direction: column;
        margin-bottom: 4px;
      }

      & .generic-form_only-fields, & .generic-form_actions {
        width: auto;
        @media (--breakpoint-small) {
          width: 100%;
        }
      }

      & .more-filters {
        @media (--breakpoint-small) {
          margin-bottom: 4px;
        }
      }

      & .el-form-item {
        margin-right: 8px;
        @media (--breakpoint-small) {
          width: 100%;
          max-width: 100%;
          margin-right: 0;
          margin-bottom: 4px;
        }
      }

      & .el-tag {
        margin-left: 8px;
      }
    }
  }

  & .form_dialog {
    & .generic-form_only-fields {
      flex-direction: column;
    }
  }

  & .form_drawer {
    padding: 8px 8px 56px;

    & .generic-form {
      display: block;
      width: 100%;
      height: 100%;
      overflow-y: auto;
    }

    & .el-form-item {
      width: 100%;
      margin-bottom: 8px;
    }

    & .generic-form_submit {
      position: absolute;
      bottom: 8px;
      left: 8px;
      width: calc(100% - 16px);
      height: 40px;
    }
  }

  & .form_dialog {
    & .el-dialog__body {
      padding-top: 12px;
    }

    & .generic-form {
      &_item {
        margin-bottom: 8px;
      }

      &_submit {
        width: 100%;
      }
    }
  }

  &_table {
    width: 100%;
    overflow-y: auto;
    @media (--breakpoint-small) {
      padding-bottom: 40px;
    }

    & thead tr th {
      &:first-child .cell {
        padding: 0 10px 0 24px;
      }
      &:last-child .cell {
        padding: 0 24px 0 10px;
      }
    }

    & .el-table__body-wrapper {
      max-height: 100%;
      height: 100%;
    }

    .el-table__row {
      & > td.el-table__cell {
        &:first-child .cell-content {
          padding: 12px 10px 12px 24px;
        }
        &:last-child .cell-content {
          padding: 12px 24px 12px 10px;
        }
      }
    }
  }

  &_pagination, &_selection {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    min-height: 40px;
    background: #FAFAFA;

    & .el-select .el-input {
      width: 140px;
    }

    @media (--breakpoint-small) {
      position: fixed;
      bottom: 0;
      z-index: 5;

      .el-pagination__total, .el-pagination__sizes, .el-pagination__jump {
        display: none !important;
      }
    }
  }

  &_selection {
    justify-content: space-between;
    padding: 0 12px;
    gap: 24px;
  }
}


.filters_drawer .table-page_top_filters {
  flex-wrap: wrap;
  flex-direction: column;

  .generic-form_only-fields {
    flex-direction: column;

    .el-form-item {
      margin-bottom: 10px;
    }
  }
}