@import "@/shared/ui/variables.scss";

.statistics-table {
  position: relative;

  &__popup {
    width: 123px;
    position: absolute;
    top: 58%;
    left: 2%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid rgb(255, 255, 255);
    box-shadow: 0px 4px 6px -2px rgba(16, 24, 40, 0.03),
      0px 12px 16px -4px rgba(16, 24, 40, 0.08);
    button {
      padding: 10px 14px;
      display: flex;
      align-items: center;
      font-size: 14px;
      font-weight: 500;
      line-height: 24px;
      color: $gray-900;
    }

    button:hover {
      background-color: #f5f5f5;
    }

    &-current {
      background-color: #f5f5f5;
    }
  }

  &__wrapper {
    border: 1px solid rgb(213, 213, 213);
    border-radius: 12px;

    overflow: hidden;
    overflow-x: auto;

    &::-webkit-scrollbar {
      display: none;
    }

    table {
      width: 100%;
      thead {
        width: 100%;
        padding: 0 20px;
        height: 76px;
        display: flex;
        background-color: rgb(244, 244, 244);
        align-items: center;

        tr {
          width: 100%;
          height: 100%;

          display: grid;
          grid-template-columns: 100px 167px 186px 188px 263px 170px 151px;
          align-items: center;

          td {
            display: flex;
            align-items: center;
            height: 100%;
            background-color: rgb(244, 244, 244);
          }

          td,
          button {
            font-size: 14px;
            font-weight: 500;
            line-height: 18px;
            color: rgb(102, 112, 133);
          }

          button {
            display: flex;
            align-items: center;
          }
        }
      }

      tbody {
        padding: 0 20px;
        tr {
          display: grid;
          grid-template-columns: 100px 167px 186px 188px 263px 170px 151px;
          align-items: center;
          width: 100%;
          height: 80px;
          border-bottom: 1px solid rgb(241, 244, 249);

          td {
            font-size: 20px;
            font-weight: 500;
            line-height: 20px;
            color: rgb(102, 112, 133);
          }

          #statistics-table-stat-name {
            color: black;
          }
        }

        #statistics-table__no-data-warning {
          grid-template-columns: 1fr;
          justify-content: center;

          td {
            text-align: center;
          }
        }
      }
    }
  }
}
