.hidden { display: none !important; }

body { font-family: 'Inter', sans-serif; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-animate { animation: modalFadeIn 0.2s ease-out forwards; }

@keyframes messagePop {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.msg-animate { animation: messagePop 0.3s ease-out forwards; }

.kanban-col { min-height: 200px; max-height: calc(100vh - 280px); overflow-y: auto; }
.kanban-ticket { cursor: grab; }
.kanban-ticket:active { cursor: grabbing; }
.drag-over { background-color: #f8fafc; border: 2px dashed #94a3b8; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Styles de base pour documents PDF/Impression */
.print-doc { font-family: 'Times New Roman', serif; color: #000; line-height: 1.5; font-size: 13px; background: white; }
.print-doc h1 { font-family: 'Arial', sans-serif; font-size: 16px; text-transform: uppercase; font-weight: bold; border-bottom: 2px solid #000; margin-bottom: 15px; padding-bottom: 5px; text-align: center; }
.print-doc h2 { font-family: 'Arial', sans-serif; font-size: 14px; font-weight: bold; margin-top: 20px; margin-bottom: 10px; border-bottom: 1px solid #ccc; padding-bottom: 3px; }
.print-doc table { width: 100%; border-collapse: collapse; margin-bottom: 15px; page-break-inside: avoid; }
.print-doc th, .print-doc td { border: 1px solid #ccc; padding: 8px; text-align: left; }
.print-doc th { background-color: #f8f9fa; font-weight: bold; }
.print-doc .checkbox-group { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.print-doc .checkbox-box { width: 14px; height: 14px; border: 1px solid #000; flex-shrink: 0; margin-top: 2px; }

/* Règles strictes d'impression pour PDF multi-pages */
@media print {
    html, body { height: auto !important; min-height: 100% !important; overflow: visible !important; background-color: white !important; }
    body > *:not(#archive-preview-modal):not(#tal-notice-modal):not(#releve31-preview-modal) { display: none !important; }
    #archive-preview-modal, #tal-notice-modal, #releve31-preview-modal { position: absolute !important; left: 0 !important; top: 0 !important; display: block !important; width: 100% !important; height: auto !important; overflow: visible !important; background: white !important; }
    .no-print { display: none !important; }
    .print-area { position: relative !important; height: auto !important; max-height: none !important; overflow: visible !important; display: block !important; padding: 0 !important; }
    .print-doc { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: none !important; }
}