@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);

/* ================= PAGE ================= */
.finance {
  @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: 2rem;

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

/* ================= STATS ================= */
.finance__content--stats {
  background: #fff;
  margin-top: 2rem;
  padding: 1.6rem;

  border: 1px solid $border-light;
  border-radius: 16px;

  box-shadow: 0 12px 30px rgba(122, 75, 32, 0.08);

  margin-bottom: 2rem;

  transition: all 0.25s ease;

  &:hover {
    box-shadow: 0 18px 40px rgba(122, 75, 32, 0.12);
  }

  &--cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
}

/* ================= QUICK ACTIONS ================= */
.finance__content__todos {
  border-radius: 16px;
  background: #fff;

  padding: 1.6rem;

  border: 1px solid $border-light;
  box-shadow: 0 12px 30px rgba(122, 75, 32, 0.08);

  margin-bottom: 2rem;

  &--text {
    h1 {
      font-weight: 600;
      font-size: 0.95rem;
      color: $text-dark;
    }

    p {
      font-size: 0.85rem;
      color: $text-muted;
      margin-bottom: 1rem;
    }
  }

  &__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;

    &--item1,
    &--item2,
    &--item3 {
      display: flex;
      gap: 12px;

      padding: 0.9rem;
      border-radius: 12px;

      cursor: pointer;

      border: 1px solid $border-light;
      background: #ffffff;

      transition: all 0.25s ease;

      box-shadow: 0 6px 18px rgba(122, 75, 32, 0.05);

      &:hover {
        transform: translateY(-2px);
        background: $primary-light;
        border-color: $primary-border;
        box-shadow: 0 14px 30px rgba(122, 75, 32, 0.12);
      }

      &--left {
        height: 2.4rem;
        width: 2.4rem;

        border-radius: 10px;

        display: flex;
        justify-content: center;
        align-items: center;

        background: $primary-light;
        color: $primary;

        transition: all 0.25s ease;

        span {
          display: flex;
        }
      }

      &:hover &--left {
        background: linear-gradient(135deg, $primary, $primary-2);
        color: #fff;
      }

      h1 {
        font-size: 0.88rem;
        font-weight: 600;
        color: $text-dark;
      }

      p {
        font-size: 0.75rem;
        color: $text-muted;
      }
    }
  }
}

/* ================= TABS ================= */
.finance__content__tab {
  display: flex;
  gap: 0.4rem;

  padding: 0.35rem;

  background: #ffffff;
  border: 1px solid $border-light;
  border-radius: 999px;

  margin-bottom: 2rem;

  width: fit-content;

  &--active {
    background: $primary-soft-strong;
    color: $primary;

    padding: 0.45rem 1rem;
    border-radius: 999px;

    font-size: 0.8rem;
    font-weight: 600;

    cursor: pointer;

    border: 1px solid $primary-border;
  }

  &--item {
    color: $text-muted;

    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;

    cursor: pointer;

    border-radius: 999px;

    transition: all 0.2s ease;

    &:hover {
      background: $primary-light;
      color: $primary;
    }
  }
}

/* ================= DETAILS ================= */
.finance__content__details {
  border-radius: 16px;
  background: #fff;

  padding: 1.6rem;

  border: 1px solid $border-light;
  box-shadow: 0 12px 30px rgba(122, 75, 32, 0.08);

  transition: all 0.25s ease;

  &:hover {
    box-shadow: 0 18px 40px rgba(122, 75, 32, 0.12);
  }
}

/* ================= ALERTS ================= */
.alert-success {
  background: rgba(47, 125, 79, 0.12);
  color: #2f7d4f;

  border: 1px solid rgba(47, 125, 79, 0.25);

  padding: 0.7rem 1rem;
  border-radius: 10px;

  margin-bottom: 1rem;

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

.alert-error {
  background: rgba(166, 61, 61, 0.1);
  color: #a63d3d;

  border: 1px solid rgba(166, 61, 61, 0.2);

  padding: 0.7rem 1rem;
  border-radius: 10px;

  margin-bottom: 1rem;

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

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .finance__content__todos__grid {
    grid-template-columns: 1fr;
  }

  .finance__content__tab {
    flex-wrap: wrap;
  }

  .finance__content__details {
    padding: 1.3rem;
  }
}