/* Explain: Base styles, typography, and print-specific rules for the application. */
[x-cloak] {
    display: none !important;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
}

body {
    overflow-x: hidden;
    background: linear-gradient(160deg, #eef2ff 0%, #e0f2fe 55%, #f0fdfa 100%);
    background-attachment: fixed;
}

#print-all {
    display: none;
}

@media print {
    .no-print { display: none !important; }
    body { background: white !important; }
    #app-root { padding: 0 !important; max-width: 100% !important; margin: 0 !important; }
    .border, .shadow-sm { box-shadow: none !important; }

    body.printing-all > *:not(#print-all) { display: none !important; }
    body.printing-all #print-all { display: block !important; }
    .print-fiche { page-break-after: always; }
    .print-fiche:last-child { page-break-after: auto; }
    .print-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; color: #1e1b4b; }
    .print-sub { font-size: 12px; color: #64748b; margin: 0 0 16px; }
    .print-fiche-title { font-size: 16px; font-weight: 700; margin: 12px 0 8px; color: #4f46e5; border-bottom: 2px solid #c7d2fe; padding-bottom: 4px; }
    .print-sub-title { font-size: 13px; font-weight: 700; margin: 10px 0 4px; color: #334155; }
    .print-table { border-collapse: collapse; width: 100%; font-size: 12px; margin-bottom: 6px; }
    .print-table th { text-align: left; background: #eef2ff; border: 1px solid #c7d2fe; padding: 4px 8px; width: 40%; font-weight: 600; }
    .print-table td { border: 1px solid #c7d2fe; padding: 4px 8px; }
    .print-list { margin: 0 0 6px; padding-left: 18px; font-size: 12px; }
    .print-list li { margin-bottom: 2px; }
}
