/* =====================================================================
   LPPM ISTN — Print Styles
   Target: dokumen ringkasan, matriks, dan laporan yang ramah cetak
   ===================================================================== */

@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }

  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --surface-3: #f4f6f9;
    --text: #000000;
    --text-soft: #1a1a1a;
    --muted: #444444;
    --border: #b9c2ce;
  }

  html,
  body {
    background: #ffffff !important;
    font-size: 10.5pt;
    color: #000000;
  }

  .sidebar,
  .topbar,
  .demo-ribbon,
  .app-footer,
  .page-actions,
  .filter-bar,
  .pagination,
  .btn,
  .icon-btn,
  .dropdown,
  .modal-backdrop,
  .toast-stack,
  .no-print,
  .wizard-steps,
  .tab:not(.is-active),
  .u-no-print {
    display: none !important;
  }

  .app-main {
    margin-left: 0 !important;
  }

  .page-wrap {
    max-width: none;
    padding: 0;
  }

  .print-only {
    display: block !important;
  }

  .card,
  .chart-card,
  .detail-head,
  .kpi,
  .preview-doc {
    box-shadow: none !important;
    border: 1px solid #9aa6b5 !important;
    break-inside: avoid;
  }

  .card,
  .chart-card {
    page-break-inside: avoid;
  }

  .table {
    min-width: 0 !important;
    font-size: 8.5pt;
  }

  .table thead th {
    background: #eef1f5 !important;
    color: #000000 !important;
    position: static;
  }

  .table tbody td {
    border-bottom: 1px solid #ccd4de;
  }

  .table-wrap {
    overflow: visible !important;
  }

  .badge {
    border: 1px solid #7c8797 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6mm;
  }

  .kpi::after {
    display: none;
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    display: block;
  }

  .grid > *,
  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > *,
  .grid-5 > * {
    margin-bottom: 5mm;
  }

  .chart-svg {
    max-height: 70mm;
  }

  a {
    color: #000000 !important;
    text-decoration: none !important;
  }

  .tab-panel[hidden] {
    display: block !important;
  }

  .print-break {
    page-break-before: always;
  }

  .print-head {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #000000;
    padding-bottom: 3mm;
    margin-bottom: 4mm;
  }

  .print-head .ph-org {
    font-size: 8pt;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
  }

  .print-head .ph-title {
    font-size: 14pt;
    font-weight: 800;
    margin-top: 1mm;
  }

  .print-head .ph-meta {
    font-size: 8pt;
    text-align: right;
    line-height: 1.5;
  }

  .print-foot {
    display: block !important;
    margin-top: 6mm;
    padding-top: 2mm;
    border-top: 1px solid #9aa6b5;
    font-size: 7.5pt;
    color: #333333;
    text-align: center;
  }
}
