/* 1. Main Container Styling */
.gs-table-wrapper.gsheet-embed-container {
    position: relative;
    width: 100%;
    margin: 10px 0;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Clips the table corners to the border-radius */
}

/* 2. Table Core Styles */
.gs-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Courier Prime", "Helvetica Neue", sans-serif;
    font-size: 14px; /* Default Desktop Font Size */
    color: #222;
    line-height: 1.0;
}

/* 3. Header Styling */
.gs-table-wrapper th {
    background-color: #eeeeeed1;
    color: #525252;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.0em;
}

/* 4. Cell Styling */
.gs-table-wrapper td, 
.gs-table-wrapper th {
    padding: 5px 5px;
    border-bottom: 1px solid #eee;
}

/* 5. Row Hover Effect */
.gs-table-wrapper tr:hover {
    background-color: #fcfcfc;
}

/* 6. Mobile Optimization */
@media (max-width: 768px) {
    .gs-table-wrapper.gsheet-embed-container {
        height: 450px !important; /* Fixed height for scrolling on mobile */
        overflow-x: auto;
        overflow-y: auto;
    }

    .gs-table-wrapper table {
        font-size: 14px; /* Larger font for finger-friendly reading */
        min-width: 600px; /* Forces horizontal scroll instead of squishing columns */
    }
    
    .gs-table-wrapper td, 
    .gs-table-wrapper th {
        padding: 5px 5px; /* Slightly tighter padding on mobile */
    }
}

/* 7. Scrollbar Styling (Optional - for a cleaner look) */
.gs-table-wrapper::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}
.gs-table-wrapper::-webkit-scrollbar-track {
    background: #ddd;
}
.gs-table-wrapper::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}
.gs-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}