/* ================================================
   UI Polish - COE & Prospectus Document Styles
   ================================================ */

/* ================================================
   COE DOCUMENT - Official CatSU Layout
   ================================================ */
.coe-document {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}

.coe {
  padding: 24px 32px;
  font-family: Georgia, 'Times New Roman', serif;
  position: relative;
}

.coe-front {
  border-bottom: 1px solid #e5e5e5;
}

.coe-seal {
  display: inline-block;
}

.coe-seal-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-right: 8px;
  border-radius: 4px;
}

/* COE Header */

.coe-university-name {
  font: 700 14px Georgia, 'Times New Roman', serif;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.coe-campus-name {
  font: italic 10px Georgia, 'Times New Roman', serif;
  color: #666;
  margin-top: 2px;
}

.coe-copy-label {
  font: italic 10px Georgia, 'Times New Roman', serif;
  color: #666;
}

/* COE Header Row */
.coe-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2px;
}

.coe-header-left {
  flex: 0 0 auto;
}

.coe-header-center {
  flex: 1;
  text-align: center;
  padding-top: 8px;
}

.coe-header-right {
  flex: 0 0 auto;
  text-align: right;
}

/* COE Title */
.coe-title {
  font: 700 14px Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  margin: 4px 0 6px;
  letter-spacing: 3px;
}

/* COE Info Grid */
.coe-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px 16px;
  font-size: 8.5pt;
  font-family: Georgia, 'Times New Roman', serif;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.coe-info-row {
  display: flex;
  gap: 4px;
  line-height: 1.5;
}

.coe-info-label {
  color: #444;
  min-width: 64px;
  font-weight: 400;
}

.coe-info-colon {
  color: #444;
}

.coe-info-value {
  color: #111;
  font-weight: 500;
}

/* COE Table */
.coe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 7.5pt;
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 4px;
  table-layout: fixed;
}

.coe-table th,
.coe-table td {
  border: 1px solid #999;
  padding: 2px 4px;
  text-align: left;
  line-height: 1.3;
  overflow: hidden;
  word-wrap: break-word;
}

.coe-table th {
  background: #f0f0f0;
  color: #222;
  font-size: 7pt;
  font-weight: 700;
  text-transform: uppercase;
}

.coe-table .col-code {
  width: 10%;
}

.coe-table .col-desc {
  width: 26%;
}

.coe-table .col-units,
.coe-table .col-tf,
.coe-table .col-lab {
  width: 7%;
  text-align: center;
}

.coe-table .col-sched {
  width: 30%;
}

.coe-table .col-section {
  width: 20%;
}

.coe-table td.col-units,
.coe-table td.col-tf,
.coe-table td.col-lab,
.coe-table th.col-units,
.coe-table th.col-tf,
.coe-table th.col-lab {
  text-align: center;
}

.coe-table tfoot th {
  background: #fff;
  font-weight: 700;
  font-size: 7.5pt;
}

.total-label {
  text-align: right !important;
  padding-right: 10px !important;
}

/* COE Fees */
.coe-fees-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
  margin: 2px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 7.5pt;
}

.coe-fees-title {
  font: 700 8.5pt Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  margin: 0 0 3px;
  color: #222;
  letter-spacing: 0.5px;
}

.coe-fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 7.5pt;
}

.coe-fees-table td {
  padding: 1px 0;
  border-bottom: 1px dotted #ccc;
}

.coe-assessment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.coe-fees-table td.amt {
  text-align: right;
  font-family: 'DM Sans', monospace;
  padding-left: 8px;
}

.coe-fees-table .total-due td {
  border-bottom: 1px solid #333;
  border-top: 1px solid #333;
  padding: 4px 0;
  font-weight: 600;
}

.coe-fees-table .scholarship-row td {
  border-bottom: none;
  color: var(--success);
  font-weight: 600;
}

.coe-fees-table .scholarship-row td.amt {
  color: var(--success);
}

/* COE Certifications */
.coe-certifications {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: auto;
  padding-top: 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 7.5pt;
  line-height: 1.3;
}

.coe-cert-left p,
.coe-cert-right p {
  margin: 0 0 40px;
}

.coe-certifications u {
  text-decoration: underline;
}

.coe-witness-row {
  text-align: center;
  margin: 8px 0 4px;
  padding-top: 6px;
  border-top: 1px dashed #ccc;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 8pt;
}

.coe-sig-area {
  margin-top: 10px;
  text-align: center;
}

.coe-sig-line {
  width: 65%;
  margin: 0 auto 2px;
  border-bottom: 1px solid #333;
  position: relative;
  z-index: 0;
}

.coe-sig-area span {
  display: block;
  font-size: 7.5pt;
  color: #555;
  margin-top: 2px;
}

.coe-sig-area strong {
  display: block;
  font-size: 8.5pt;
  color: #222;
  margin-bottom: 3px;
  position: relative;
  z-index: 0;
}

.coe-sig-area .sig-image {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 2px;
  object-fit: contain;
  mix-blend-mode: multiply;
  position: relative;
  z-index: 1;
}

.undertaking-witness .sig-image-undertaking {
  display: block;
  width: 130px;
  height: auto;
  margin: -2px auto -10px auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  position: relative;
  z-index: 1;
}

.undertaking-witness {
  position: relative;
  font-size: 10pt;
  text-align: center;
}

.undertaking-witness strong {
  position: relative;
  z-index: 0;
}

/* COE Footer */
.coe-footer-date {
  text-align: right;
  font: italic 7pt Georgia, 'Times New Roman', serif;
  color: #666;
  margin-top: 10px;
  padding-top: 4px;
}

/* ================================================
   STUDENT UNDERTAKING
   ================================================ */
.undertaking-content {
  font-family: Georgia, 'Times New Roman', serif;
}

.undertaking-title {
  font: 700 13pt Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  text-align: center;
  text-decoration: underline;
  margin: 0 0 20px;
  letter-spacing: 2px;
  color: #222;
}

.undertaking-body {
  font-size: 10pt;
  line-height: 1.6;
  color: #222;
}

.undertaking-body p {
  margin: 0 0 12px;
  text-indent: 28px;
}

.undertaking-signatures {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding: 0 24px;
}

.undertaking-student-sig {
  text-align: center;
  font-size: 10pt;
}

.undertaking-sig-line {
  width: 240px;
  border-bottom: 1px solid #333;
  margin: 0 auto 2px auto;
  position: relative;
  z-index: 0;
}

.undertaking-sig-label {
  display: block;
  font-size: 8pt;
  color: #666;
}

.undertaking-important {
  margin-top: 24px;
  border: 2px solid #333;
  padding: 12px 16px;
  max-width: 280px;
  margin-left: auto;
}

.undertaking-important-title {
  font: 700 9pt Georgia, 'Times New Roman', serif;
  text-decoration: underline;
  margin-bottom: 8px;
  color: #222;
}

.undertaking-important-body {
  font-size: 8.5pt;
  line-height: 1.5;
}

.undertaking-important-body p {
  margin: 0 0 5px;
}

.undertaking-important-body ul {
  margin: 0;
  padding-left: 18px;
}

.undertaking-important-body li {
  margin-bottom: 3px;
}

/* ================================================
   PROSPECTUS DOCUMENT
   ================================================ */
.prospectus-document {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

.prospectus-header {
  margin-bottom: 18px;
}

.prospectus-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.prospectus-logo-area {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.prospectus-seal {
  flex: 0 0 auto;
}

.prospectus-seal-circle {
  width: 64px;
  height: 64px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
}

.prospectus-seal-text {
  font-size: 4px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  padding: 0 5px;
}

.prospectus-seal-year {
  font-size: 9px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 2px;
}

.prospectus-header-text {
  padding-top: 4px;
}

.prospectus-republic {
  font-size: 10px;
  color: #666;
}

.prospectus-university {
  font: 700 15px Georgia, 'Times New Roman', serif;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.prospectus-campus {
  font: italic 10px Georgia, 'Times New Roman', serif;
  color: #777;
}

.prospectus-id-box {
  width: 68px;
  height: 76px;
  border: 1px solid #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #777;
  text-align: center;
  line-height: 1.3;
}

.prospectus-college {
  font-size: 11px;
  margin: 10px 0;
  text-align: center;
}

.prospectus-prospectus-in {
  font: 700 12px Georgia, 'Times New Roman', serif;
  text-align: center;
  margin: 10px 0 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prospectus-program {
  font-size: 11px;
  text-align: center;
  margin: 5px 0;
}

.prospectus-major {
  font-size: 10px;
  text-align: center;
  color: #666;
  margin: 3px 0;
}

.prospectus-cmo {
  font-size: 10px;
  text-align: center;
  margin: 8px 0 3px;
}

.prospectus-effective {
  font-size: 10px;
  text-align: center;
  color: #666;
}

/* Prospectus Student Info */
.prospectus-student-info {
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  font-size: 11px;
}

.prospectus-info-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin-bottom: 4px;
}

.prospectus-info-label {
  font-weight: 400;
  min-width: 124px;
}

.prospectus-info-field {
  flex: 1;
  border-bottom: 1px solid #999;
  min-width: 100px;
  padding: 0 4px;
}

.prospectus-info-right {
  margin-left: auto;
  min-width: 280px;
  justify-content: flex-end;
}

.prospectus-info-right .prospectus-info-label {
  min-width: 114px;
}

.prospectus-info-right .prospectus-info-field {
  min-width: 80px;
  max-width: 120px;
}

.prospectus-info-sublabel {
  font-size: 8px;
  color: #999;
  min-width: auto;
}

/* Prospectus Year Sections */
.prospectus-year-section {
  margin: 16px 0;
}

.prospectus-year-title {
  font: 700 12px Georgia, 'Times New Roman', serif;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 3px;
  letter-spacing: 1px;
}

.prospectus-sem-title {
  font: italic 11px Georgia, 'Times New Roman', serif;
  text-align: center;
  margin: 0 0 8px;
  color: #444;
}

.prospectus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.prospectus-table th,
.prospectus-table td {
  border: 1px solid #999;
  padding: 4px 5px;
}

.prospectus-table th {
  background: #f0f0f0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.prospectus-table .col-yrsem {
  width: 50px;
}

.prospectus-table .col-rating {
  width: 44px;
}

.prospectus-table .col-code {
  width: 76px;
}

.prospectus-table .col-title {
  min-width: 170px;
}

.prospectus-table .col-lec,
.prospectus-table .col-lab,
.prospectus-table .col-total {
  width: 38px;
  text-align: center;
}

.prospectus-table .col-prereq {
  min-width: 84px;
}

.prospectus-table td.col-yrsem,
.prospectus-table td.col-rating,
.prospectus-table td.col-code,
.prospectus-table td.col-lec,
.prospectus-table td.col-lab,
.prospectus-table td.col-total,
.prospectus-table td.col-prereq {
  text-align: center;
}

.prospectus-table tfoot td {
  font-weight: 700;
  background: #fff;
}

.prospectus-total-label {
  text-align: right !important;
  padding-right: 8px !important;
}

/* Prospectus GWA line */
.prospectus-gwa-line {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  padding: 0 5px;
}

.prospectus-gwa-line span {
  flex: 1;
}

.prospectus-gwa-line span:first-child {
  flex: 0 0 auto;
  min-width: 100px;
}

.prospectus-gwa-line span:last-child {
  text-align: right;
}

/* Prospectus Summary */
.prospectus-summary {
  margin: 24px 0 12px;
  text-align: center;
}

.prospectus-summary-title {
  font: 700 11px Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.prospectus-summary-table {
  width: 50%;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 10px;
}

.prospectus-summary-table th,
.prospectus-summary-table td {
  border: 1px solid #999;
  padding: 4px 10px;
}

.prospectus-summary-table th {
  background: #f0f0f0;
  font-size: 9px;
}

.prospectus-summary-table td:last-child {
  text-align: center;
}

.prospectus-summary-total td {
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  font-weight: 700;
}

/* Prospectus Footer */
.prospectus-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 9px;
  color: #666;
  border-top: 1px solid #ccc;
  padding-top: 8px;
}

/* ================================================
   COE Posted Badge & Digital Signature
   ================================================ */
.coe-posted-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--success);
  color: #fff;
  font: 700 9px Georgia, 'Times New Roman', serif;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(20, 121, 93, 0.3);
}

.coe-digital-sig {
  display: inline-block;
  margin-top: 6px;
  font: italic 9px Georgia, 'Times New Roman', serif;
  color: var(--success);
  border: 1px solid var(--success);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
}

.coe-actions {
  position: relative;
}

/* ================================================
   Print Styles for Documents
   ================================================ */
@media print {
  @page {
    size: 8.5in 7in landscape;
    margin: 0;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .topbar,
  .coe-actions > .panel,
  .coe-actions > div:not(.coe-document),
  #print-coe,
  #download-coe-docx,
  #back-to-dash,
  .coe-actions > .coe-document + * {
    display: none !important;
  }

  .coe-document {
    max-width: 8.5in;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .coe {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .coe-front {
    border: none;
    page-break-after: always;
    break-after: page;
  }

  .coe-undertaking {
    border: none;
    padding-top: 0;
  }

  .coe-posted-badge,
  .coe-digital-sig {
    display: none !important;
  }
}

/* ================================================
   Responsive for Documents
   ================================================ */
@media (max-width: 768px) {
  .coe-document {
    max-width: 100%;
    border-radius: 0;
  }

  .coe {
    padding: 16px;
  }

  .coe-table {
    table-layout: auto;
  }

  .coe-fees-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .coe-assessment-grid {
    grid-template-columns: 1fr;
  }

  .coe-certifications {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .coe-info-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .coe-header-row {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

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

  .prospectus-header-top {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .prospectus-id-box {
    align-self: center;
  }

  .prospectus-info-row {
    flex-wrap: wrap;
  }

  .prospectus-info-right {
    margin-left: 0;
    min-width: auto;
  }

  .prospectus-footer {
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  .undertaking-signatures {
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
  }

  .undertaking-important {
    margin-left: 0;
    margin-top: 36px;
  }
}

/* ================================================
   TEF DOCUMENT - Official CatSU Paper Form Layout
   ================================================ */
.tef-document {
  max-width: 580px;
  margin: 0 auto;
  padding: 32px 36px;
  border: 1px solid #bbb;
  background: #fefdf8;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #1a1a1a;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.tef-header {
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

.tef-republic {
  font-size: 11px;
  margin-bottom: 1px;
  letter-spacing: 0.3px;
}

.tef-university {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.tef-campus {
  font-size: 11.5px;
  margin-bottom: 6px;
}

.tef-college {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 10px;
}

.tef-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.tef-subtitle {
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 0;
}

.tef-form-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tef-sem-line {
  justify-content: center;
  font-size: 13px;
  margin-bottom: 14px;
}

.tef-underline-text {
  border-bottom: 1px solid #333;
  padding: 0 12px;
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  display: inline-block;
}

.tef-year-input,
.tef-year-text {
  width: 52px;
  min-width: 52px;
}

.tef-id-label {
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  margin-right: 8px;
}

.tef-id-row {
  margin-bottom: 14px;
  align-items: center;
}

.tef-id-boxes {
  display: flex;
  gap: 0;
}

.tef-id-box {
  width: 26px;
  height: 30px;
  border: 1px solid #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.tef-id-separator {
  width: 14px;
  height: 30px;
  background: #222;
  flex-shrink: 0;
}

.tef-id-input {
  width: 26px;
  height: 30px;
  border: 1px solid #999;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  padding: 0;
  background: transparent;
  outline: none;
}

.tef-id-input:focus {
  background: #e8f4fd;
  border-color: var(--navy);
}

.tef-name-table {
  border: 1px solid #444;
  margin-bottom: 14px;
}

.tef-name-header {
  display: flex;
  border-bottom: 1px solid #444;
}

.tef-name-th {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 3px 0;
  border-right: 1px solid #444;
}

.tef-name-th:last-child {
  border-right: none;
}

.tef-name-th-surname {
  flex: 1;
}

.tef-name-th-given {
  flex: 1.5;
}

.tef-name-th-mi {
  width: 60px;
}

.tef-name-body {
  display: flex;
}

.tef-name-td {
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 600;
  min-height: 24px;
  border-right: 1px solid #444;
  display: flex;
  align-items: center;
}

.tef-name-td:last-child {
  border-right: none;
}

.tef-name-td-surname {
  flex: 1;
}

.tef-name-td-given {
  flex: 1.5;
}

.tef-name-td-mi {
  width: 60px;
  justify-content: center;
}

.tef-name-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #999;
  padding: 2px 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  outline: none;
}

.tef-name-input:focus {
  border-bottom-color: var(--navy);
  border-bottom-width: 2px;
}

.tef-name-input::placeholder {
  color: #bbb;
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
}

.tef-info-label {
  font-size: 13px;
  white-space: nowrap;
  font-weight: 500;
}

.tef-info-value {
  flex: 1;
  text-align: left;
  padding-left: 4px;
  padding-right: 4px;
}

.tef-underline-input {
  border: none;
  border-bottom: 1px solid #333;
  padding: 0 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  outline: none;
  text-align: center;
  width: 40px;
  transition: border-color 0.2s;
}

.tef-underline-input:focus {
  border-bottom-color: var(--navy);
  border-bottom-width: 2px;
}

.tef-underline-input::placeholder {
  color: #bbb;
  font-weight: 400;
}

.tef-certification {
  font-size: 12.5px;
  margin: 16px 0 20px;
  line-height: 1.5;
}

.tef-certification u {
  text-decoration: underline;
}

.tef-sig-block {
  margin-top: 20px;
  margin-bottom: 24px;
}

.tef-sig-student-line {
  width: 160px;
  border-bottom: 1px solid #333;
  margin-bottom: 3px;
}

.tef-sig-student-label {
  font-size: 11px;
  color: #333;
}

.tef-approval-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}

.tef-approval-block {
  margin-bottom: 4px;
}

.tef-approval-header {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 3px;
}

.tef-approval-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tef-approval-sig-area {
  flex: 1;
}

.tef-approval-sig-line {
  width: 100%;
  border-bottom: 1px solid #333;
  margin-bottom: 2px;
}

.tef-approval-role {
  font-size: 11px;
  color: #333;
  margin-left: 140px;
}

.tef-digital-sig {
  font-size: 10px;
  color: #087eae;
  font-style: italic;
  margin-top: 2px;
}

.tef-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #666;
  border-top: 1px solid #ccc;
  padding-top: 6px;
  margin-top: 12px;
}

@media print {
  .tef-document {
    border: none;
    padding: 0;
    max-width: 100%;
    box-shadow: none;
    background: #fff;
  }
}

/* ================================================
   PROSPECTUS + TEF COMBINED VIEW (Adviser)
   ================================================ */
.prospectus-with-tef {
  max-width: 720px;
  margin: 0 auto;
}

.pwtef-section {
  margin-bottom: 20px;
}

.pwtef-heading {
  font-size: 14px;
  color: var(--navy);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--navy);
}

.pwtef-divider {
  border: none;
  border-top: 3px double #ccc;
  margin: 24px 0;
}
