@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: 22px;
  margin-top: 1rem;

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

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

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

  margin-top: 2.2rem;

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

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

    font-size: 0.85rem;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;

    &:hover {
      background: $primary-soft;
      transform: translateY(-1px);
    }

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

/* ACTIVE PAGE */

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

  box-shadow: 0 4px 12px rgba(94, 56, 23, 0.25);
}