.report-page {
  padding: 0;
  max-width: 100%;
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  color: #1a1a1a;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: -0.5px;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  color: #666;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #5D1A2A;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-left: 15px;
  font-size: 16px;
}

.pl-form-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.pl-section {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

.section-title {
  margin: 0 0 20px 0;
  font-size: 22px;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #5D1A2A;
  padding-bottom: 10px;
}

.section-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  margin: 0 0 20px 0;
  border-bottom: 2px solid #5D1A2A;
  padding-bottom: 10px;
}

.section-header-row .section-title {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.section-header-percentage {
  font-size: 16px;
  font-weight: 700;
  color: #5D1A2A;
  text-align: left;
  padding-left: 212px;
}

.form-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.form-label {
  font-weight: 600;
  font-size: 16px;
  color: #374151;
  min-width: 200px;
  flex-shrink: 0;
}

.form-label.label-bold {
  font-weight: 900;
  color: #000;
  font-size: 18px;
}


.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  background-color: #f9fafb;
  color: #111827;
  font-weight: 500;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #5D1A2A;
}

.form-input.highlight {
  background-color: #fef3c7;
  border-color: #fbbf24;
  font-weight: 700;
  font-size: 15px;
}

.no-data-message {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .page-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .report-page {
    padding: 0;
  }

  .page-title {
    font-size: 22px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .form-row-split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .form-label {
    min-width: auto;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-header-percentage {
    display: none;
  }

  .pl-section {
    padding: 16px;
  }

  .section-title {
    font-size: 16px;
  }
}

/* Metrics Grid Styles */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.metric-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.metric-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.metric-card h3 {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.metric-value {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.count-value {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.currency-value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.total-value {
  color: #5D1A2A;
  font-size: 32px;
}

.loading-skeleton {
  width: 120px;
  height: 40px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .metric-card {
    padding: 20px;
  }

  .count-value {
    font-size: 28px;
  }

  .currency-value {
    font-size: 24px;
  }

  .total-value {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 20px;
  }

  .form-input {
    font-size: 13px;
    padding: 8px 10px;
  }

  .form-label {
    font-size: 13px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric-card {
    padding: 16px;
  }

  .metric-card h3 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .count-value {
    font-size: 24px;
  }

  .currency-value {
    font-size: 20px;
  }

  .total-value {
    font-size: 24px;
  }
}
