/* PDF Stylesheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.pdf-body {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 9pt;
  line-height: 1.3;
  color: #000;
  background: white;
}

.pdf-content {
  width: 100%;
  max-width: 100%;
  padding: 15px;
}

/* Page Container */
.page {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Main Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 10px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-box {
  border: 2px solid #000;
  padding: 20px 30px;
  font-weight: bold;
  font-size: 14pt;
}

.company-short {
  font-weight: bold;
  font-size: 16pt;
}

.header-right {
  text-align: right;
}

.company-name {
  font-weight: bold;
  font-size: 14pt;
  margin-bottom: 3px;
}

.company-subtitle {
  font-size: 11pt;
  font-weight: bold;
}

/* Document Title */
.document-title {
  text-align: center;
  font-weight: bold;
  font-size: 9pt;
  padding: 6px;
  border: 1px solid #000;
  border-bottom: none;
  margin-bottom: 0;
  background-color: #f0f0f0;
}

/* Document Body */
.document-body {
  border: 2px solid #000;
  padding: 0;
}

/* Tables */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8pt;
}

.info-table td {
  border: 1px solid #000;
  padding: 4px 6px;
  vertical-align: middle;
}

.label-cell {
  font-weight: bold;
  background-color: #f0f0f0;
  font-size: 7pt;
  text-align: left;
}

.data-cell {
  background-color: white;
  min-height: 20px;
  text-align: left;
}

.date-cell {
  font-weight: bold;
  background-color: #f0f0f0;
  font-size: 7pt;
  text-align: center;
  width: 50px;
}

.date-value {
  background-color: white;
  text-align: center;
  font-weight: normal;
}

.provider-cell {
  font-weight: bold;
}

.section-header {
  font-weight: bold;
  background-color: #d0d0d0;
  font-size: 8pt;
  text-align: center;
  padding: 6px;
}

.table-header {
  text-align: center;
  vertical-align: middle;
}

.centered {
  text-align: center;
}

.right-align {
  text-align: right;
}

/* Total */
.total-label {
  font-size: 10pt;
  font-weight: bold;
  text-align: right;
  padding-right: 10px;
}

.total-amount {
  font-weight: bold;
  font-size: 10pt;
}

/* Footer Table */
.footer-table {
  margin-top: 0;
}

.footer-header {
  background-color: #d0d0d0;
}

.footer-section {
  padding: 10px;
  vertical-align: top;
}

.footer-field {
  margin-bottom: 8px;
}

.footer-label {
  font-weight: bold;
  font-size: 7pt;
  display: block;
  margin-bottom: 3px;
}

.footer-value {
  min-height: 25px;
  border-bottom: 1px solid #000;
  padding: 3px;
}

.signature-space {
  min-height: 40px;
}

/* Report Header */
.report-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #2c3e50;
}

.report-header h1 {
  font-size: 24pt;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.report-header .folio {
  font-size: 14pt;
  font-weight: bold;
  color: #e74c3c;
  margin: 0;
}

/* Info Sections */
.info-section {
  margin-bottom: 25px;
  page-break-inside: avoid;
}

.info-section h2 {
  font-size: 14pt;
  font-weight: bold;
  color: #2c3e50;
  background-color: #ecf0f1;
  padding: 8px 12px;
  margin-bottom: 15px;
  border-left: 4px solid #3498db;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  padding: 0 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-item .label {
  font-size: 9pt;
  font-weight: bold;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item .value {
  font-size: 11pt;
  color: #2c3e50;
  padding: 6px 10px;
  background-color: #f8f9fa;
  border-radius: 3px;
  border: 1px solid #dee2e6;
}

/* Page Break Control */
.info-section {
  page-break-inside: avoid;
}

h2 {
  page-break-after: avoid;
}

/* Print Specific */
@media print {
  body.pdf-body {
    margin: 0;
    padding: 0;
  }

  .page {
    page-break-after: always;
  }

  .page:last-child {
    page-break-after: auto;
  }
}

/* Hospital Name Style */
.hospital-name {
  font-size: 12px;
  font-weight: bold;
  color: #2c3e50;
}

/* Footer Styles */
.date-info,
.elaborated-info {
  font-size: 9px;
  color: #555;
  margin-bottom: 2px;
}
