@use "../../../styles/abstracts/variables" as *;
@use "../../../styles/abstracts/mixins" as *;

/* ================= PAGE ================= */
.page {
  @include dashPageComponent;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: $bg-soft;
  border: 1px solid $border;
  padding: 0;

  @media (max-width: 768px) {
   margin-top: 1.4rem;
  }
}

/* ================= CONTENT ================= */
.content {
  padding: 1.5rem 2rem;
  padding-top: 0;
  display: flex;
  flex-direction: column;

  @media (max-width: 768px) {
    padding: 1.2rem;
    padding-top: 0;
  }
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
  margin-top: 1rem;

  @media (max-width: 1200px) {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1rem;
  }

  @media (max-width: 700px) {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-top: .5rem;
  }
}

/* ================= PAGINATION ================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;

  margin-top: 2rem;

  button {
    padding: 6px 10px;
    border-radius: 6px;

    border: 1px solid $border;
    background: #fff;

    font-size: 0.85rem;

    cursor: pointer;

    transition: all 0.2s ease;

    &:hover {
      background: $primary-soft;
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
}

.activePage {
  background: $primary;
  color: #fff;
  border: none;
}