/* ============================================================
   print.css — Estilos de impressão (relatório semanal)
   ============================================================ */

@media print {
  /* Remove elementos de navegação */
  .sidebar,
  .topbar,
  .fab,
  .btn,
  .modal-overlay,
  #toast-container,
  .filter-bar,
  .no-print {
    display: none !important;
  }

  /* Reset do layout */
  .main-content {
    margin-left: 0 !important;
  }

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

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  /* Cabeçalho do relatório */
  .print-header {
    display: block !important;
    margin-bottom: 24pt;
    padding-bottom: 12pt;
    border-bottom: 2pt solid #000;
  }

  .print-header h1 {
    font-size: 16pt;
    margin-bottom: 4pt;
  }

  .print-header .print-meta {
    font-size: 10pt;
    color: #555;
  }

  /* Cards viram blocos simples */
  .card, .counter-card, .projeto-card {
    border: 1pt solid #ccc;
    border-radius: 0;
    box-shadow: none;
    padding: 8pt;
    margin-bottom: 12pt;
    page-break-inside: avoid;
  }

  /* Tabelas */
  .table {
    font-size: 10pt;
    width: 100%;
  }

  .table th, .table td {
    padding: 4pt 6pt;
    border: 1pt solid #ccc;
  }

  .table thead { background: #f5f5f5 !important; }

  /* Evita quebra de página em itens importantes */
  .projeto-card, .tarefa-row {
    page-break-inside: avoid;
  }

  /* Links não mostram URL */
  a::after { content: none !important; }
  a { color: #000; text-decoration: none; }

  /* Badges viram texto simples */
  .badge {
    background: none !important;
    border: 1pt solid #ccc;
    color: #000 !important;
    border-radius: 0;
    padding: 1pt 4pt;
  }

  .badge::before { display: none; }

  /* Progresso */
  .progress-bar {
    border: 1pt solid #ccc;
    background: #fff;
  }

  .progress-fill { background: #000; }

  /* Margem de página */
  @page {
    size: A4;
    margin: 20mm 15mm 20mm 15mm;
  }

  /* Rodapé de impressão */
  .print-footer {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 8pt;
    color: #888;
    text-align: center;
    border-top: 1pt solid #ccc;
    padding-top: 4pt;
  }
}

/* Oculto na tela, visível na impressão */
.print-header,
.print-footer {
  display: none;
}
