body {
  font-family: 'Montserrat', Arial, sans-serif;
}

.logo-image {
  width: 140px;
  margin-right: 50px;
}

.pdf-header {
  width: 100%;
  padding: 20px;
  background-color: #f8f9fa;
}

.pdf-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.logo-cell {
  width: 20%;
  min-width: 150px;
  vertical-align: top;
}

.header-content {
  vertical-align: top;
}

.company-cell {
  width: 30%;
  text-align: right;
  vertical-align: top;
}

.header-title {
  margin-bottom: 10px;
  color: #1a202c;
  font-size: 24px;
  font-weight: bold;
  word-break: break-word;
  max-width: 100%;
  display: block;
}

.company-name {
  color: #1a202c;
  font-size: 18px;
  font-weight: bold;
  word-break: break-word;
  max-width: 100%;
  display: block;
  margin-right: 60px;
}

.header-text, .header-text-sm {
  word-break: break-word;
  max-width: 100%;
  display: block;
  line-height: 0.4rem;
}

.pdf-main-content {
  padding: 20px 0;
}

.pdf-section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.label-cell {
  width: 160px;
  padding: 8px 0;
}

.label-cell-wide {
  width: 180px;
  padding: 8px 0;
}

.value-cell {
  padding: 8px 0;
  color: #4a5568;
}

.section-title {
  margin: 0 0 20px 0;
  color: #2d3748;
  font-size: 18px;
  font-weight: bold;
}

.image-cell {
  width: 50%;
  padding: 10px;
}

.gallery-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.signature-image {
  max-width: 300px;
  height: auto;
}

.pdf-footer {
  padding: 20px 40px;
  background-color: #f8f9fa;
  text-align: center;
  font-size: 12px;
  color: #718096;
}

strong {
  color: #2d3748;
}

/* Severity Tags */
.severity-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid;
  transition: all 0.2s ease-in-out;
}

.severity-critical {
  background-color: #FDE8E8;
  color: #E53E3E;
  border-color: #FC8181;
}

.severity-high {
  background-color: #FFF5F5;
  color: #C53030;
  border-color: #FEB2B2;
}

.severity-medium {
  background-color: #FFFAF0;
  color: #DD6B20;
  border-color: #FBD38D;
}

.severity-low {
  background-color: #F0FFF4;
  color: #38A169;
  border-color: #9AE6B4;
}

.severity-negligible {
  background-color: #F7FAFC;
  color: #718096;
  border-color: #CBD5E0;
}

.severity-tag:hover {
  filter: brightness(0.95);
}

.severity-tag.small {
  padding: 2px 8px;
  font-size: 12px;
}

/* Actions Table */
.actions-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  page-break-inside: auto;
}

.actions-table thead {
  display: table-header-group;
}

.actions-table tbody {
  page-break-inside: avoid;
  page-break-after: auto;
}

.actions-table th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  background-color: #f5f5f5;
  font-weight: bold;
}

.action-group {
  background-color: #f9f9f9;
  margin-bottom: 16px;
  page-break-inside: avoid;
}

.action-row td {
  border-top: 1px solid #ddd;
  vertical-align: middle;
  padding: 8px;
}

.notes-row td,
.action-images-row td,
.action-signature-row td {
  border: none;
  padding: 8px;
}

.notes-section {
  margin: 10px 0;
}

.notes-section strong {
  color: #666;
}

.notes-section .note {
  margin-top: 5px;
}

.action-images-section,
.action-signature-section {
  margin: 15px 0;
}

.action-images-table {
  width: 100%;
}

.action-image-cell {
  width: 33.33%;
  padding: 5px;
}

.action-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

.action-signature-image {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 10px 0;
}

.subsection-title {
  font-size: 16px;
  color: #4a5568;
  margin: 10px 0;
  font-weight: 500;
}


.image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.image-wrapper {
  max-width: 150px;
  margin-bottom: 10px;
}

.image-wrapper img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media print {
  .image-wrapper {
    break-inside: avoid;
  }
}
