/* ============================================
   SIMDES 2026 — Print Stylesheet
   Format dokumen resmi pemerintah desa
   ============================================ */

@media print {
  /* Sembunyikan elemen UI */
  .sidebar,
  .topbar,
  .btn,
  .btn-group,
  .tabs,
  .stat-card,
  .stat-grid,
  .chart-container,
  .page-header-row .btn-group,
  .card-header .btn,
  .card-header .badge,
  .card-footer,
  .alert,
  .nav-item,
  .modal-backdrop,
  #sidebarOverlay,
  canvas {
    display: none !important;
  }

  /* Layout print */
  body {
    background: white !important;
    color: black !important;
    font-family: Arial, sans-serif !important;
    font-size: 11pt !important;
  }

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

  .page-content {
    padding: 0 !important;
  }

  /* Semua card jadi plain */
  .card {
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
  }

  .card-header {
    background: white !important;
    border: none !important;
    border-bottom: 1px solid #000 !important;
    padding: 6px 0 !important;
  }

  .card-body {
    padding: 8px 0 !important;
  }

  /* Tabel standar */
  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  th, td {
    border: 1px solid #000 !important;
    padding: 5px 8px !important;
    font-size: 10pt !important;
    color: #000 !important;
    background: white !important;
  }

  thead th {
    background: #e8e8e8 !important;
    font-weight: bold !important;
    text-align: center !important;
  }

  .tfoot-row td {
    background: #d4d4d4 !important;
    font-weight: bold !important;
  }

  /* Warna badge dan progress */
  .badge,
  .progress-bar-track,
  .progress-bar-fill,
  .stat-progress {
    display: none !important;
  }

  /* Page break */
  .card { page-break-inside: avoid; }

  @page {
    size: A4 portrait;
    margin: 2.5cm 2cm 2.5cm 3cm;
  }
}
