/* PDF-specific styles */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #111;
  background-color: white;
}

#pdf-export-template {
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
  page-break-inside: auto;
}

/* Force page break before certain elements */
.page-break-before {
  page-break-before: always;
  break-before: page;
  height: 40px;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Headers and sections */
#pdf-export-template h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

#pdf-export-template h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

#pdf-export-template h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Cards and containers */
.pdf-card {
  background-color: white;
  border-radius: 8px;
  border: 2px solid #000;
  padding: 16px;
  box-shadow: 3px 3px 0 0 #000;
  margin-bottom: 16px;
}

/* Tables */
#pdf-export-template table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  table-layout: fixed;
}

#pdf-export-template table th,
#pdf-export-template table td {
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  text-align: left;
}

#pdf-export-template table th {
  background-color: #f8fafc;
  font-weight: 600;
  font-size: 14px;
}

#pdf-export-template table tr:nth-child(even) {
  background-color: #f9fafb;
}

#pdf-export-template table tr:hover {
  background-color: #f1f5f9;
}

/* Color circles for services */
.service-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

/* Progress bars */
.progress-bar-bg {
  background-color: #e5e7eb;
  height: 10px;
  border-radius: 5px;
  margin-top: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 5px;
}

/* Better alignment for text in tables */
#pdf-export-template .text-right {
  text-align: right !important;
}

#pdf-export-template .text-center {
  text-align: center !important;
}

/* Service distribution section */
#pdf-export-template .service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}

#pdf-export-template .service-name {
  display: flex;
  align-items: center;
}

/* Make sure page breaks don't happen in the middle of important sections */
#pdf-export-template .no-break {
  page-break-inside: avoid;
}

/* Special styles for action plan section */
#pdf-export-template .action-plan {
  page-break-before: always;
}

/* Ensure all colors print properly */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  
  #pdf-export-template {
    width: 100%;
    max-width: 100%;
  }
  
  .page-break-before {
    page-break-before: always !important;
    break-before: page !important;
  }
}