@import '~styles/mixins';
@import '~styles/adminMixins';

.ModuleList {
  display: flex;
  flex-direction: column;

  .header {
    padding: 0 $default_spacing_h;

    .header-container {
      border-bottom: 2px solid #ededed;
      padding: $default_spacing_v 0;
      display: flex;
      align-items: center;

      &.no-border {
        border: none;
      }

      .actions {
        max-width: 200px;
        width: 100%;

        .button-actions {
          height: $module_button_height;
        }
      }

      .add-actions {
        margin-left: 20px;
      }

      .main-header-container {
        flex: 1;
        display: flex;
        align-items: center;

        .title {
          @include titleModule;
        }

        .search-container {
          border: solid 2px #ededed;
          border-radius: 4px;
          height: 47px;
          max-width: 350px;
          flex: 1;
          margin-left: 30px;
          align-items: center;
          display: flex;
          padding: 0 15px;

          .icon {
            margin-right: 15px;
            width: 12px;
            color: $color_primary;
          }

          input {
            width: 100%;
          }
        }
      }
    }
  }

  .sub-nav {
    padding: 0 50px;
    display: flex;
    z-index: 20;
    position: relative;

    &:after {
      content: '';
      position: absolute;
      width: 100%;
      border-bottom: 2px solid #ededed;
      bottom: -2px;
      left: 0;
    }

    .sub-nav-item {
      text-align: center;
      padding: 30px 0 20px;
      flex: 1;
      font-size: 18px;
      letter-spacing: 0.3px;
      color: black;
      max-width: 180px;

      &.active-sub-nav-item {
        font-weight: bold;
        position: relative;

        &::after {
          content: '';
          position: absolute;
          bottom: -2px;
          width: 100%;

          height: 2px;
          background-color: $color_primary;
          left: 0;
          z-index: 10;
        }
      }
    }
  }

  .list-container {
    flex: 1;
  }
}
