/* Rapports QoS de ZaZa Réseau (06/11/2026) : présentation à l’écran et à l’impression (A4).
   Partagé par toutes les pages de rapport. */
.rq-section { background:#fff; border:1px solid #e6ebf2; border-radius:12px; padding:14px 16px; margin-bottom:14px; }
.rq-section h2 { font-size:17px; font-weight:800; color:#0e2038; margin:0 0 10px; }
.rq-table { width:100%; border-collapse:collapse; font-size:13px; }
.rq-table th { text-align:left; font-weight:700; color:#475569; border-bottom:2px solid #e2e8f0; padding:5px 6px; white-space:nowrap; }
.rq-table td { border-bottom:1px solid #eef2f7; padding:5px 6px; }
.rq-table-scroll { overflow-x:auto; }
.rq-score td { background:#f8fafc; font-size:15px; }
.rq-gris { color:#94a3b8; font-weight:400; font-size:12px; }
.rq-note { color:#64748b; font-size:12px; margin-top:8px; line-height:1.45; }
.rq-alerte { background:#fff4e5; color:#b45309; border-radius:6px; padding:1px 6px; font-size:11px; margin-left:4px; white-space:nowrap; }
.rq-pastille { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; vertical-align:0; }
.rq-legende { display:flex; flex-wrap:wrap; gap:12px; font-size:12px; color:#475569; margin-bottom:8px; }
.rq-legende i { display:inline-block; width:12px; height:12px; border-radius:2px; margin-right:4px; vertical-align:-1px; }
.rq-barre-ligne { display:flex; align-items:center; gap:10px; margin:5px 0; }
.rq-barre-titre { width:170px; flex-shrink:0; font-size:13px; font-weight:600; color:#0e2038; }
.rq-barre { flex:1; display:flex; height:22px; border-radius:6px; overflow:hidden; background:#f1f5f9; }
.rq-barre > div { display:flex; align-items:center; justify-content:center; color:#fff; font-size:11px; font-weight:700; white-space:nowrap; overflow:hidden; }
.rq-heures th, .rq-heures td { text-align:center; padding:4px 2px; font-size:11px; min-width:26px; }
.rq-heures td.rq-heure-op { text-align:left; white-space:nowrap; font-weight:600; padding-right:8px; }
.rq-colonnes { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:16px; }
.rq-cliquable { cursor:pointer; }
.rq-cliquable:hover td { background:#f1f5ff; }
.rq-methode { font-size:13px; color:#334155; padding-left:18px; margin:0; line-height:1.5; }
.rq-carte-cadre { border:1px solid #e6ebf2; border-radius:12px; overflow:hidden; margin:-8px 0 14px; }
.rq-carte-imprimee { margin-bottom:10px; break-inside:avoid; page-break-inside:avoid; }
.rq-carte-imprimee img { width:100%; border:1px solid #cbd5e1; border-radius:6px; }
.print-only { display:none; }
.rq-entete h1 { font-size:20px; margin:4px 0 6px; color:#0e2038; }
.rq-entete { border-bottom:3px solid #0a4fc4; padding-bottom:8px; margin-bottom:12px; font-size:12px; color:#334155; }
.rq-entete-marque { font-weight:800; color:#0a4fc4; letter-spacing:.5px; }

@media print {
    @page { size: A4 portrait; margin: 12mm 10mm; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    html, body, .mud-layout, .mud-main-content { background:#fff !important; }
    .mud-appbar, .mud-drawer, .mud-overlay, .no-print, .zz-page-header, #blazor-error-ui { display:none !important; }
    .mud-main-content { padding:0 !important; margin:0 !important; }
    .mud-container { max-width:100% !important; padding:0 !important; margin:0 !important; }
    .print-only { display:block !important; }
    .rq-section { border:1px solid #cbd5e1; border-radius:6px; break-inside:avoid; page-break-inside:avoid; padding:8px 10px; margin-bottom:8px; }
    .rq-section.rq-carte-section { break-inside:auto; page-break-inside:auto; }
    .rq-table-scroll { overflow:visible; }
    .rq-heures th, .rq-heures td { min-width:0; font-size:9px; padding:3px 1px; }
    .rq-barre-titre { width:150px; }
    .rq-colonnes { grid-template-columns:1fr 1fr; }
}

/* Compléments des rapports des étapes 2 et 3 (06/11/2026). */
.rq-tuiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:10px; margin-bottom:6px; }
.rq-tuile { border:1px solid #e2e8f0; border-radius:10px; padding:8px 10px; background:#fff; }
.rq-tuile-label { font-size:11px; color:#64748b; }
.rq-tuile-valeur { font-size:20px; font-weight:800; color:#0e2038; line-height:1.2; }
.rq-tuile-sous { font-size:11px; color:#94a3b8; }
.rq-ok { background:#e8f7ee; color:#15803d; border-radius:6px; padding:1px 8px; font-weight:700; font-size:12px; white-space:nowrap; }
.rq-ko { background:#fdecea; color:#b91c1c; border-radius:6px; padding:1px 8px; font-weight:700; font-size:12px; white-space:nowrap; }
.rq-courbe { width:100%; height:auto; }
.rq-courbe text { font-size:13px; fill:#64748b; }
.rq-colonnes-2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(420px, 1fr)); gap:18px; }
.rq-liens a { margin-right:14px; font-weight:600; }
.rq-carte { width:100%; height:520px; }
.rq-heures th.rq-pointe { background:#e2e8f0; }
.rq-colonnes .rq-barre-titre { width:auto; margin:4px 0; }
@media print {
    .rq-tuiles { grid-template-columns:repeat(4, 1fr); }
    .rq-colonnes-2 { grid-template-columns:1fr 1fr; }
    .rq-tuile-valeur { font-size:16px; }
    .rq-liens { display:none; }
}

/* Graphiques comparatifs (06/11/2026) : SVG, textes en gris (jamais à la couleur d'une série),
   grille en trait fin plein, survol = détail. */
.rq-g { margin:6px 0 12px; break-inside:avoid; page-break-inside:avoid; }
.rq-g-titre { font-size:13px; font-weight:700; color:#0e2038; margin-bottom:4px; }
.rq-g-svg { width:100%; max-width:780px; height:auto; display:block; overflow:visible; }
.rq-g-radar { max-width:440px; margin:0 auto; }
.rq-g-axe { font-size:14px; fill:#64748b; }
.rq-g-ligne { fill:#334155; font-weight:600; }
.rq-g-val { font-size:14px; fill:#0f172a; font-weight:700; }
.rq-g-petit { font-size:13px; }
.rq-g-grille { stroke:#e5e7eb; stroke-width:1; }
.rq-g-base { stroke:#94a3b8; stroke-width:1; }
.rq-g-marque { transition:opacity .15s; }
.rq-g-marque:hover { opacity:.75; }
.rq-g-cliquable { cursor:pointer; }
.rq-g-cliquable:hover rect { fill:#f1f5ff; }
.rq-g-legende { display:flex; flex-wrap:wrap; gap:14px; font-size:12px; color:#334155; margin-bottom:4px; }
.rq-g-legende i { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:5px; vertical-align:-1px; }
.rq-g-legende em { color:#94a3b8; font-style:normal; }
.rq-g-cle-objectif { height:2px !important; width:16px !important; background:#0f172a; vertical-align:3px !important; border-radius:0 !important; }
.rq-g-grille-2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(360px, 1fr)); gap:18px; }
@media print {
    .rq-g-grille-2 { grid-template-columns:1fr 1fr; }
    .rq-g-marque:hover { opacity:1; }
}

/* Commentaire comparatif (06/11/2026). */
.rq-commentaire { border-left:4px solid #0a4fc4; }
.rq-commentaire ul { margin:0; padding-left:18px; font-size:14px; color:#1e293b; line-height:1.55; }
.rq-commentaire li { margin:3px 0; }
/* Demi-largeur : le SVG est réduit de moitié, ses textes sont donc agrandis d'autant. */
.rq-g-grille-2 .rq-g-axe { font-size:18px; }
.rq-g-grille-2 .rq-g-val { font-size:18px; }
.rq-g-grille-2 .rq-g-petit { font-size:16px; }
