/* ============================================================
   MEDADMIN — Print Styles
   ============================================================ */
@media print {
  /* Hide all nav/UI chrome */
  .sidebar,
  .topbar,
  .no-print,
  .btn,
  #toast-container,
  .upload-zone,
  .search-bar,
  .section-actions,
  .modal-overlay,
  .tabs { display: none !important; }

  /* Reset margins */
  .main-wrap { margin-left: 0 !important; }
  .page-content { padding: 0 !important; max-width: 100% !important; }
  body { background: white !important; font-size: 12px; }

  /* Cards flat */
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    margin-bottom: 12px !important;
    break-inside: avoid;
  }

  /* Tables */
  table { font-size: 11px; }
  thead th { background: #f0f4f8 !important; -webkit-print-color-adjust: exact; }

  /* Ranking page print header */
  .print-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 12px;
    border-bottom: 2px solid #1a73e8;
    margin-bottom: 16px;
  }
  .print-header .print-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a73e8;
  }

  /* Score values */
  .score-value, .rank-number { color: #000 !important; }
  .rank-number.gold   { color: #c8a900 !important; -webkit-print-color-adjust: exact; }
  .rank-number.silver { color: #777 !important; }
  .rank-number.bronze { color: #9c6836 !important; }

  /* Page breaks */
  .page-break-before { page-break-before: always; }
  .no-page-break { break-inside: avoid; }

  /* Footer with page numbers */
  @page {
    size: A4 landscape;
    margin: 1.5cm;
    @bottom-center {
      content: "Page " counter(page) " sur " counter(pages);
      font-size: 10px;
      color: #666;
    }
  }
}
