/* Business News Styles */
#business-news-block {
    margin: 30px 0;
    padding: 20px;
    border-radius: 10px;
    background: #fdfdfd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#business-news-heading {
    text-align: center;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
}

#business-news-controls {
    text-align: center;
    margin-bottom: 15px;
}

#business-news-controls button {
    margin: 0 8px;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#refresh-business-news {
    background: #3498db;
    color: #fff;
}
#refresh-business-news:hover {
    background: #2980b9;
}

#close-business-news {
    background: #e74c3c;
    color: #fff;
}
#close-business-news:hover {
    background: #c0392b;
}

/* ✅ Scrollbar wrapper */
#business-news-wrapper {
    max-height: 400px;   /* scrollbar kicks in after ~10 rows */
    overflow-y: auto;    /* vertical scroll */
    overflow-x: auto;    /* horizontal scroll for small screens */
    display: block;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* ✅ Table styling */
#business-news-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;  /* ensures structured layout, avoids squishing */
}

#business-news-table th,
#business-news-table td {
    border: 1px solid #ddd;
    padding: 12px 10px;
    text-align: center;   /* center all cells */
    vertical-align: middle;
    white-space: nowrap;  /* keeps text in one line */
}

#business-news-table th {
    background: #34495e;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.6;
    text-transform: uppercase;
}

#business-news-table tr:nth-child(even) {
    background: #f9f9f9;
}
#business-news-table tr:hover {
    background: #f1f1f1;
}

/* ✅ Empty state */
.no-business-news {
    text-align: center;
    color: #555;
    font-style: italic;
    padding: 15px;
}

/* ✅ Mobile Friendly */
@media (max-width: 768px) {
    #business-news-table {
        font-size: 12px;
    }
    #business-news-wrapper {
        max-height: 300px;
    }
    #business-news-controls button {
        margin: 5px 4px;
        padding: 6px 12px;
        font-size: 12px;
    }
}
