/* Popup Modal Styles for Financial Reports */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.popup-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: white;
  border-radius: 8px;
  max-width: 90%;
  max-height: 80%;
  width: 800px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.popup-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c5282;
  color: white;
  border-radius: 8px 8px 0 0;
}

.popup-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.popup-close {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.popup-body {
  padding: 20px;
}

.report-year-section {
  margin-bottom: 30px;
}

.report-year-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2c5282;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.report-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.report-item:last-child {
  border-bottom: none;
}

.report-info {
  flex: 1;
}

.report-title {
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 4px;
}

.report-date {
  font-size: 0.9rem;
  color: #718096;
}

.report-download {
  background-color: #2c5282;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.report-download:hover {
  background-color: #2a4a7c;
  color: white;
  text-decoration: none;
}

.no-reports {
  text-align: center;
  color: #718096;
  font-style: italic;
  padding: 40px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    max-height: 90%;
  }

  .popup-header {
    padding: 15px;
  }

  .popup-header h2 {
    font-size: 1.3rem;
  }

  .popup-body {
    padding: 15px;
  }

  .report-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .report-download {
    align-self: flex-end;
  }
}
