/* Loading spinner */
.epf-loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
#epf-transactions-error {
    display: none;
    padding: 15px;
    margin: 20px 0;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
}

#epf-transactions-error i {
    margin-right: 8px;
}

/* Table styling */
#epf-transactions-table {
    width: 100% !important;
    margin-top: 20px;
}

#epf-transactions-table th {
    background-color: #343a40;
    color: white;
    position: sticky;
    top: 0;
    padding: 12px 15px;
}

#epf-transactions-table td {
    padding: 10px 15px;
    vertical-align: middle;
}

/* Right-align numeric columns */
#epf-transactions-table .text-end {
    text-align: right !important;
}

/* Responsive table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* View Chart button */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.company-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.company-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Keep all your existing styles and add these if needed */
#epf-transactions-table td {
    vertical-align: middle;
}

.text-end {
    text-align: right !important;
}

/* Mobile responsive table styles */
@media (max-width: 767.98px) {
	/* EPF Transactions Table header font size */
    #epf-transactions-table th {
        font-size: 0.75rem; /* Adjust this value as needed */
        padding: 8px 5px !important; /* Optional: reduce padding to save space */
    }
	
	/* EPF Transactions Table */
	/* Column 2 (Date Notice) */
    #epf-transactions-table td:nth-child(2),
    #epf-transactions-table th:nth-child(2),
    /* Column 6 (Direct Percentage) */
    #epf-transactions-table td:nth-child(6),
    #epf-transactions-table th:nth-child(6),
    /* Column 7 (Prices Close) */
    #epf-transactions-table td:nth-child(7),
    #epf-transactions-table th:nth-child(7) {
        display: none;
    }
	
	
	/* Column 1 (Date Change) */
    #epf-transactions-table td:nth-child(1),
    #epf-transactions-table th:nth-child(1) {
        width: 20% !important;
        /*min-width: 80px;*/
    }
    
    /* Column 3 (Company Name) */
    #epf-transactions-table td:nth-child(3),
    #epf-transactions-table th:nth-child(3) {
        width: 30% !important;
        min-width: 100px;
        white-space: normal !important;
    }
    
    /* Column 4 (Volume) */
    #epf-transactions-table td:nth-child(4),
    #epf-transactions-table th:nth-child(4) {
        width: 15% !important;
        min-width: 60px;
    }
    
    /* Column 5 (Type) */
    #epf-transactions-table td:nth-child(5),
    #epf-transactions-table th:nth-child(5) {
        width: 15% !important;
        min-width: 50px;
    }
    
    /* Column 8 ($) - Adjust index if needed */
    #epf-transactions-table td:nth-child(8),
    #epf-transactions-table th:nth-child(8) {
        width: 20% !important;
        min-width: 20px;
    }
	
	/* Improve mobile readability */
    #epf-transactions-table td {
        padding: 8px 5px !important;
        font-size: 0.65rem;
    }
    
    
    
    .company-link {
        word-break: break-word;
    }
}