@use 'mixins/amixin' as *;
.page-list {
  @apply relative rounded-md m-3;
  background-color: var(--mat-sys-background);
  box-shadow: var(--mat-sys-level1);
  .reload {
    @apply z-10 absolute top-1 right-2 cursor-pointer;
    transform: scale(0.8);
  }
  .form {
    padding: 10px;
    ::ng-deep {
      .mdc-text-field--filled:not(.mdc-text-field--disabled) {
        background-color: transparent;
      }
      .mat-mdc-form-field-subscript-wrapper {
        display: none;
      }
      .tabs-type {
        .tab-field {
          @apply mt-0 mb-0;
          --mat-form-field-filled-active-indicator-color: rgba(0, 0, 0, 0.2);
        }
        .item {
          margin: 10px 0 0 0;
        }
      }
    }
  }
  app-title {
    margin: 0 10px;
  }
  .lists-wrapper {
    position: relative;
    &::after,
    &::before {
      content: '';
      position: absolute;
      z-index: 10;
      width: 100%;
      height: 20px;
      left: 0;
    }
    &:after {
      bottom: 0;
      background: linear-gradient(180deg, transparent 0%, var(--mat-sys-background) 80%);
    }
    &::before {
      top: 0;
      background: linear-gradient(0deg, transparent 0%, var(--mat-sys-background) 80%);
    }
  }
  .lists {
    position: relative;
    height: 450px;
    max-height: 45vh;
    overflow: auto;
    @include scrollbar(var(--mat-sys-primary));
    app-loading {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: 10;
    }
    .item {
      border-bottom: 1px solid var(--mat-sys-surface-variant);
      .mat-line {
        font-size: 15px;
      }
      a {
        &:hover {
          color: var(--mat-sys-primary);
        }
      }
      .meta {
        opacity: 0.5;
        .taxonomy {
          font-size: 10px;
        }
      }
      ::ng-deep {
        .mat-mdc-button-base {
          font-size: 12px;
          line-height: 24px;
          height: 24px;
          --mat-button-outlined-horizontal-padding: 18px;
        }
      }
      &.active {
        background-color: var(--mat-sys-secondary-fixed);
        &::after {
          content: '';
          position: absolute;
          width: 4px;
          height: 50%;
          top: 0;
          transform: translateY(50%);
          left: 0;
          border-radius: 0 3px 3px 0;
          background-color: var(--mat-sys-primary);
        }
      }
    }
  }
  .pager {
    ::ng-deep {
      .mat-mdc-paginator-range-label {
        margin: 0;
        white-space: nowrap;
        @apply line-clamp-1 opacity-70;
      }
      button {
        --mat-icon-button-state-layer-size: 40px;
        padding: 8px;
      }
    }
  }
}
