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

$border-light: rgba(0, 0, 0, 0.06);
$text-muted: #6b6b6b;
$primary-light: rgba(122, 75, 32, 0.08);
$text: #1a1a1a;

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

  @media (max-width: 1000px) {
    margin-top: 5rem;
  }
}

/* ================= CONTENT ================= */
.content {
  padding: 1rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;

  @media (max-width: 1000px) {
    padding: 1.2rem;
  }
}

/* ================= STATS ================= */
.stats {
  padding: 0 2rem;
  padding: 1rem 2rem;

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

/* =========================
   FILTER FIELDS
========================= */
.filterFields {
  display: flex;
  align-items: center;
  gap: 10px;

  /* desktop */
  flex-direction: row;

  select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid $border;

    font-size: 0.85rem;
    color: $text;

    background: #fff;
    cursor: pointer;

    transition: all 0.2s ease;

    &:hover {
      border-color: rgba(122, 75, 32, 0.25);
    }

    &:focus {
      outline: none;
      border-color: $primary;
      box-shadow: 0 0 0 2px rgba(94, 56, 23, 0.08);
    }
  }

  /* ================= MOBILE ================= */
  @media (max-width: 768px) {
    flex-direction: column;
    align-items: stretch;
    width: 100%;

    select {
      width: 100%;
    }
  }
}


/* ================= GRID ================= */
.businessGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 2rem;

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

  @media (max-width: 700px) {
    grid-template-columns: 1fr;
  }
}


.filterWrapper {
  width: 100%;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  border-radius: 14px;
  transition: all 0.2s ease;


  @media (max-width: 768px){
    margin-bottom: 2rem;;
    margin-bottom: .7rem;
    border: none !important;
  }

  select {
    appearance: none;

    padding: 10px 14px;
    border-radius: 10px;

    border: 1px solid #e6dcd2;
    background: #faf8f6;

    font-size: 14px;
    color: #1a1a1a;

    min-width: 150px;

    transition: all 0.2s ease;

    &:hover {
      border-color: #d6c2aa;
      background: #fff;
    }

    &:focus {
      outline: none;
      border-color: #7a4b20;
      background: #fff;
      box-shadow: 0 0 0 3px rgba(122, 75, 32, 0.08);
    }
  }
}


/* ================= PAGINATION ================= */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ================= EMPTY ================= */
.fullWidthEmpty {
  margin-top: 20px;
}