/* Print Styling matching PT Manggala Utama Indonesia 1:1 */

@page {
  size: A4 portrait;
  margin: 12mm 15mm 15mm 15mm;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* STRICT ISOLATION: Hide EVERYTHING on the page except #printContainer */
  body > *:not(#printContainer) {
    display: none !important;
  }

  /* Show print container only, full-width, clean margin */
  #printContainer {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

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

/* Document Template Styling */
.doc-sheet {
  font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
  color: #1a202c;
  background: #ffffff;
  position: relative;
  min-height: 270mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* MUI Top Bar */
.mui-top-bar {
  height: 6px;
  background-color: #0d5b99;
  width: 100%;
  margin-bottom: 12px;
}

/* MUI Header */
.mui-header-title {
  font-size: 20pt;
  font-weight: 800;
  color: #0d5b99;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.mui-header-tagline {
  font-size: 9.5pt;
  color: #4a5568;
  margin-top: 3px;
  font-weight: 500;
}

.mui-header-contact {
  font-size: 8.5pt;
  color: #718096;
  margin-top: 2px;
}

.mui-divider {
  border-top: 1px solid #cbd5e1;
  margin: 10px 0 16px 0;
}

/* Document Type Large Title */
.mui-doc-type-title {
  font-size: 26pt;
  font-weight: 900;
  color: #0d5b99;
  text-align: right;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* Standard Recipient Block (Legal PT format) */
.mui-recipient-title {
  font-size: 9pt;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e293b;
  margin-bottom: 4px;
}

.mui-company-name {
  font-size: 11pt;
  font-weight: 700;
  color: #0f172a;
}

.mui-recipient-meta {
  font-size: 9.5pt;
  color: #334155;
  line-height: 1.45;
}

/* MUI Tables */
.mui-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 9pt;
}

.mui-table th {
  background-color: #f5b041 !important;
  color: #000000 !important;
  font-weight: 700;
  padding: 7px 9px;
  border: 1px solid #d1d5db;
  text-align: left;
}

.mui-table td {
  padding: 7px 9px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
  color: #1f2937;
}

.mui-table tr:nth-child(even) td {
  background-color: #fafafa;
}

/* SPH Summary Highlight Row */
.mui-sph-summary-row td {
  background-color: #d4efdf !important;
  font-weight: 700;
  color: #0f5132 !important;
  border-color: #bbf7d0 !important;
}

/* Bank Account & Payment Box */
.mui-bank-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 8.5pt;
}

/* Signatures */
.mui-signature-block {
  margin-top: 24px;
  font-size: 9.5pt;
}

/* MUI Bottom Bar Footer */
.mui-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1.5px solid #0d5b99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.5pt;
  color: #475569;
}
