/*
Theme Name: TwentyTwentyFour Child Theme
Theme URI: https://theearningsspot.com/
Description: Child Theme of TwentyTwentyFour
Author: Corey Jones
Author URI:
Template: twentytwentyfour
Version: 0.1
*/



/* Wordpress */

.wp-block-spacer{
    height: 25px !important;
}


/* Gravity Forms */

.gform_title {
    display: none;
    
}

#gform_submit_button_4, #gform_submit_button_6{
    background-color: #000000 ;
    
}


/* Container for the entire earnings calendar */
.earnings-calendar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    
}

/* Calendar navigation buttons (dates) */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-top-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-nav-left {
    /* Keep natural width */
}

.calendar-nav-right {
    margin-left: auto; /* Pushes the element to the right */
}

/* Search Suggestions Styling */
#search-suggestions {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    width: 200px; /* Adjust as needed */
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

#search-suggestions ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#search-suggestions li {
    padding: 8px 12px;
    cursor: pointer;
}

#search-suggestions li:hover {
    background-color: #f0f0f0;
}

.calendar-day {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: center;
    flex-grow: 1;
    margin-right: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.calendar-day:last-child {
    margin-right: 0;
}

.calendar-day:hover, .calendar-day.selected-date {
    background-color: #cccccc; /* Light grey for selected or hovered date */
    color: #333; /* Darker text color */
}

/* Earnings table styling */
.earnings-table-wrapper {
    width: 100%;
    margin-top: 20px;
}

.earnings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 14px;
}

.earnings-table th, .earnings-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.earnings-table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

.earnings-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Specific styling for company and symbol columns */
.earnings-table td:first-child {
    font-weight: bold;
    color: #555; /* Darker grey for symbols */
}

.earnings-table td:nth-child(2) {
    text-align: left;
}

/* Earnings call time formatting */
.earnings-table td {
    text-align: left;
}

/* Week navigation buttons */
.week-nav-button {
    background-color: #cccccc; /* Light grey background */
    border: 1px solid #bbb;
    padding: 10px 15px;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.week-nav-button:hover {
    background-color: #aaaaaa; /* Darker grey on hover */
}


/* Responsive Design */
@media (max-width: 768px) {
    .calendar-nav {
        flex-wrap: wrap;
    }

    .calendar-day {
        margin-bottom: 10px;
        flex-grow: 1;
        width: 100%;
    }

    .earnings-table th, .earnings-table td {
        padding: 8px;
    }
}
