@import 'modules/app/viewports';

.event-module {
  @include viewport-mobile {
    width: 100vw;
  }

  @include viewport-laptop {
    width: 100%;
  }

  &__row {
    display: flex;
  }

  &__loading {
    width: 100%;
    margin-bottom: 15px;
    padding-top: 24px;

    color: rgb(160 160 160);
    text-align: center;
  }

  &__container {
    width: 780px;
    margin-right: auto;
    margin-left: auto;
  }

  .header {
    position: sticky;
    z-index: 2;
    top: 0;

    display: flex;
    align-items: baseline;
    justify-content: space-between;

    width: 100%;
    padding-top: 24px;

    background: var(--color-gray-fff);

    &__row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;

      width: 100%;
      height: 37px;

      border-bottom: 2px solid rgb(9 30 66 / 8%);
    }

    &__actions {
      display: flex;
      align-items: center;
    }

    &__read-all {
      cursor: pointer;

      margin-left: 12px;
      padding: 3px;

      font: var(--default-text-font);
      font-size: 14px;
      color: var(--theme-hack-color, #41516e);

      &:hover {
        text-decoration: underline;
      }
    }

    &__status {
      font: var(--default-text-font);
      font-size: 13px;
      color: #091e4299;
      text-transform: uppercase;
    }
  }

  .list {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    margin-top: 18px;

    &__item {
      width: 100%;
    }

    &__end-notify {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;

      width: 100%;
      margin: 20px 0;

      .end-notify-icon {
        color: var(--accent-color-bg);
      }

      span {
        padding-top: 3px;
      }
    }
  }

  .sidebar {
    display: flex;
    flex: 0;
    flex-direction: column;

    box-sizing: border-box;
    width: 320px;
    min-width: 320px;
    padding: 0 0 15px 20px;

    &__content {
      position: sticky;
      top: 0;
    }
  }
}

:host ::ng-deep mat-form-field.filters__select {
  .mat-form-field-wrapper {
    padding-bottom: 0 !important;

    .mat-form-field-subscript-wrapper,
    .mat-form-field-underline {
      display: none;
    }
  }

  .mat-form-field-infix {
    width: auto;
    padding: 0 !important;
    border-top: 0 !important;
  }

  .mat-select-value {
    max-width: 100%;
  }

  .mat-select-value-text {
    font: var(--default-text-font);
    font-size: 14px;
    color: var(--theme-hack-color, #41516e);
  }
}
