/* INVOXA: Print layout */

/* ===== DRUCK-OPTIMIERUNG - RADIKAL VEREINFACHT ===== */
@media print {
    /* ALLES ausblenden - NUR die Rechnung sichtbar */
    header, footer, button, nav, form, .tab-button, .tab-content,
    .bg-white.p-6.rounded-3xl, .lg\\:grid-cols-2 > div:last-child,
    #userMenu, .fixed, .glass, .bg-indigo-600, .flex.items-center.gap-2,
    [onclick], .max-w-7xl > .flex-wrap, .h-20, .py-8, .px-4,
    label, input, select, textarea, .border-t, .border-b:not(.invoice-a4 *),
    .grid:not(.invoice-a4 .grid) {
        display: none !important;
    }
    
    /* Body nur für Rechnung */
    body {
        background: white !important;
        color: #1f2937 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
    }
    
    /* Hauptcontainer zurücksetzen */
    .max-w-7xl, .mx-auto, .px-4, .sm\:px-6, .py-8, .lg\:grid-cols-2 {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 210mm !important;
    }
    
    /* NUR die Rechnung anzeigen - EXAKT wie PDF */
    .invoice-a4, #invoicePreviewContent, .grid.lg\\:grid-cols-2 > div:first-child {
        display: block !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 210mm !important;
        min-height: 297mm !important;
        padding: 15mm !important;
        margin: 0 auto !important;
        background: white !important;
        color: #1f2937 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }
    
    /* Alle inneren Elemente der Rechnung anzeigen */
    .invoice-a4 *,
    #invoicePreviewContent *,
    .space-y-6, .flex, .grid, .border-t, .border-b,
    .font-bold, .text-sm, .text-gray-600, .font-mono {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Flex und Grid korrekt darstellen */
    .flex.justify-between {
        display: flex !important;
    }
    
    .grid.grid-cols-12,
    .grid.grid-cols-3 {
        display: grid !important;
    }
    
    /* Farben für Druck erzwingen */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    /* INVOXA Logo im Druck */
.invoxa-logo {
    font-size: 1.875rem !important;
    font-weight: 900 !important;
    color: #4f46e5 !important; /* Fallback für alte Browser */
    background: linear-gradient(to right, #4f46e5, #7c3aed) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block !important;
}
}

