
#chart-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: transparent;
    width: 100%;
    height: auto; /* 🎯 Από 260px σε auto */
    margin-bottom: 15px;
}
#plotly-chart-container {
    background: transparent;
    width: 100%;
}
#timeline-chart-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: transparent;
    width: 100%;
    height: auto; /* 🎯 Από 260px σε auto */
    margin-bottom: 15px;
}
#plotly-timeline-container {
    background: transparent;
    width: 100%;
}

@media print {
    /* 1. ΚΡΥΒΟΥΜΕ ΤΑ ΠΑΝΤΑ ΣΤΗ ΣΕΛΙΔΑ */
    body * {
        visibility: hidden !important;
    }

    /* 2. ΕΜΦΑΝΙΖΟΥΜΕ ΜΟΝΟ ΤΟ CONTAINER ΤΩΝ ΣΤΑΤΙΣΤΙΚΩΝ ΚΑΙ ΤΑ ΠΑΙΔΙΑ ΤΟΥ */
    .org-statistics,
    .org-statistics * {
        visibility: visible !important;
    }

    /* 3. Επαναφέρουμε το container στην κορυφή της σελίδας για να μην αφήσει κενό */
    .org-statistics {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* 4. Κρύβουμε το dropdown και το κουμπί εκτύπωσης (no-print) μέσα από τα στατιστικά */
    .no-print,
    button,
    select,
    label,
    #project-selector {
        display: none !important;
        visibility: hidden !important;
    }
    i,

    /* 5. Αναγκάζουμε τα γραφήματα να απλώσουν σωστά και να μην κόβονται */
    #chart-wrapper,
    #timeline-chart-wrapper,
    #stacked-chart-wrapper,
    #user-stacked-chart-wrapper,
    [id^="plotly-"] {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .col-12 {
        page-break-inside: avoid !important;
        margin-bottom: 40px !important;
        display: block !important;
    }
}
