/* CCS CDR Web UI - Custom Styles */

/* Report table container with horizontal scroll */
.report-table-container {
    width: 100%;
    overflow-x: auto;
}

/* Ensure tables are responsive */
.report-table-container table {
    min-width: 100%;
}

/* Print styles */
@media print {
    nav, footer, button, .no-print, .alert {
        display: none !important;
    }

    body {
        background: white;
    }

    .report-table-container {
        overflow-x: visible;
    }

    table {
        page-break-inside: auto;
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    thead {
        display: table-header-group;
    }

    tfoot {
        display: table-footer-group;
    }
}

/* Smooth transitions */
a, button {
    transition: all 0.3s ease;
}

/* Loading spinner (if needed) */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert auto-dismiss animation */
.alert.fade-out {
    animation: fadeOut 0.5s ease-out;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Custom scrollbar */
.report-table-container::-webkit-scrollbar {
    height: 12px;
}

.report-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.report-table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.report-table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}
