/* Maliyyə hesabatı — mockup dizayn (qalereyadan fərqli kart + PDF modal) */

#financial-reports {
  position: relative;
  background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 45%);
  padding-bottom: 100px;
}

#financial-reports > h2 {
  margin-bottom: 56px;
}

.fr-empty {
  text-align: center;
  color: #5a6b7d;
  font-size: 17px;
  padding: 48px 24px;
  max-width: 480px;
  margin: 0 auto;
}

#financial-reports .addbtn {
  text-decoration: none;
  background-color: #f0f2f6;
  margin-left: 5px;
  border-radius: 10px;
  display: inline-block;
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  margin-bottom: 5px;
  color: #4186d6;
  font-size: 22px;
  vertical-align: middle;
}

.fr-card__admin {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.fr-card__admin a {
  text-decoration: none;
  background-color: #f0f2f6;
  border-radius: 10px;
  display: inline-block;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
}

.fr-card__admin a i {
  color: #4186d6;
}

.fr-card__admin span i {
  background-color: #f0f2f6;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 10px;
  color: #f37662;
  cursor: pointer;
  display: inline-block;
}

#financial-reports .fr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.fr-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(14, 63, 97, 0.08);
  border: 1px solid rgba(14, 63, 97, 0.06);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.fr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(14, 63, 97, 0.14);
}

.fr-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eef3;
}

.fr-card__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.fr-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.fr-card:hover .fr-card__media img {
  transform: scale(1.04);
}

.fr-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 63, 97, 0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}

.fr-card:hover .fr-card__overlay {
  opacity: 1;
}

.fr-card__overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fr-card__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fr-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #0e3f61;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

@media (max-width: 1024px) {
  #financial-reports .fr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #financial-reports .fr-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
