@use '../../colors' as colors;

#auditlogs-root {
  margin-top: 24px;

  [class*="mui-"][class*="-filters"] {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 40px;

    [class*="-filterReset"] {
      top: 7px;
      font-weight: 500;
      color: colors.$Gray600;
      cursor: pointer;

      &:before {
        content: '\F62A';
        font-family: bootstrap-icons;
        line-height: normal;
        position: absolute;
        font-size: 16px;
        left: -20px;
        top: 3px;
      }
    }

    .filter-item {
      display: flex;
      flex-direction: column;

      h5 {
        font-weight: 500;
        color: colors.$Gray600;
        font-size: 14px;
        font-style: normal;
        margin-bottom: 5px;
      }

      div.MuiAutocomplete-root {
        input, input::placeholder {
          font-size: 14px;
          color: colors.$TextPrimary;
          font-weight: 400;
        }
      }
    }

    input {
      background: transparent;
      border: none;
      padding: 14px 16px;
      margin: 0;
      box-shadow: none;

      &:focus {
        border: none !important;
      }
    }

    > div {
      max-width: 200px;
    }

    > *:first-child {
      max-width: 440px;
      flex: 0 0 400px;
      grid-auto-rows: 48px;

      > div {
        display: flex;
        flex-wrap: nowrap !important;
        min-height: 52px;

        > div, fieldset {
          max-width: 209px;

          input {
            max-width: 145px;
          }
        }

        fieldset {
          border-color: colors.$Gray700;
          min-width: 200px;
        }
      }

      h5 {
        margin-bottom: 10px;
      }
    }

    > *:not(:first-child) {
      input {
        padding-bottom: 15px;
      }

      fieldset {
        border-bottom: 1px solid colors.$Gray700;
        border-radius: 0;
      }

      .Mui-focused {
        fieldset {
          border: none !important;
        }
      }

      .MuiFormControl-root {
        height: 47px;
      }
    }
  }

  div.auditlogs-list {
    &-item {
      grid-template-columns: 1fr 1fr 1fr 1fr 1fr 120px;
      border-bottom: 1px solid colors.$BorderPrimary;
      &-header {
        margin-top: 16px;
        color: colors.$Gray600;
        font-weight: 500;
        border-bottom: 1px solid colors.$BorderPrimary;
        border-top: 1px solid colors.$BorderPrimary;
      }
      > div.clickable {
        div {
          font-weight: 500;
          svg {
            margin-left: 10px;
          }
        }
      }
    }
    .columnHeader:first-child {
      cursor: pointer;
    }
  }
  p {
    margin: 0;
  }
  > div > div > h3, h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.42px;
    color: colors.$TextPrimary;
  }
  .dashboard-placeholder {
    text-align: center;
    margin-top: 100px;
    font-size: 16px;
    font-weight: 500;
    p {
      line-height: 40px;
    }
  }
}

.MuiTablePagination-root {
  position: fixed;
  bottom: 0;
  z-index: 999;
  width: calc(100% - 114px);
  background: colors.$BackgroundDefault;
  border-top: 1px solid colors.$BorderPrimary;
  left: 116px;
  .MuiToolbar-root {
    padding-right: 100px;
  }
}

.MuiTablePagination-input .MuiTablePagination-select {
  padding: 0;
}

.dark {
  #auditlogs-root {
    [class*="mui-"][class*="-filters"] {
      .filter-item {
        h5 {
          color: rgba(255, 255, 255, 0.6);
        }
      }
    }
  }
}
