/* --- COLLAPSIBLE CONTAINER (The Date Box) --- */
details.date-section {
    margin-bottom: 20px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* The Clickable Header Bar */
summary.date-header {
    padding: 16px 20px;
    background-color: #f8f9fa;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a3a5a;
    cursor: pointer;
    list-style: none; /* Removes default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    user-select: none;
}

/* Remove default arrow for Chrome/Safari */
summary.date-header::-webkit-details-marker {
    display: none;
}

/* Custom Toggle Icon (+ / -) */
summary.date-header::after {
    content: '\002B'; /* Unicode Plus sign */
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a3a5a;
    transition: transform 0.3s ease;
}

/* Styling when the section is open */
details[open] {
    border-color: #1a3a5a;
}

details[open] summary.date-header {
    background-color: #eef2f5;
    border-bottom: 2px solid #1a3a5a;
    color: #1a3a5a;
}

details[open] summary.date-header::after {
    content: '\2212'; /* Unicode Minus sign */
}

/* --- TABLE STYLING --- */
.divTable {
    display: table;
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
}

/* Header Row - Forced White Text */
.row.header {
    display: flex;
    background-color: #1a3a5a !important;
    border-bottom: none;
}

.row.header .cell {
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    align-items: center; /* Headers stay centered */
}

/* Standard Row */
.row {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.row:not(.header):hover {
    background-color: #f4f7f9;
}

/* Cell Content - Updated for Wrapping */
.cell {
    padding: 14px 15px;
    display: flex;
    align-items: flex-start; /* Aligns text to top for long wrapped titles */
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5; /* Better spacing for wrapped lines */
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

/* Column Proportions (Desktop) */
.cell:nth-child(1) { flex: 0 0 110px; } /* Time */
.cell:nth-child(2) { flex: 0 0 80px; }  /* Session */
.cell:nth-child(3) { flex: 0 0 190px; font-weight: 600; color: #2c3e50; } /* Name */
.cell:nth-child(4) { flex: 3; } /* Title - Grows to fit text */

/* --- MOBILE RESPONSIVENESS (Screens < 800px) --- */
@media screen and (max-width: 800px) {
    .divTable {
        display: block;
        padding: 5px;
    }

    .row.header {
        display: none !important;
    }

    .row {
        display: block;
        height: auto;
        margin-bottom: 20px;
        background: #fff;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .cell {
        display: flex; /* Back to flex, but controlled */
        align-items: flex-start;
        width: 100% !important;
        flex: none !important;
        padding: 8px 0;
        border: none;
        height: auto;
        line-height: 1.4;
    }

    /* Mobile Label Injection - Fixed Column */
    .cell::before {
        content: attr(data-label);
        display: block;
        flex: 0 0 85px;      /* Fixed width for the label column */
        max-width: 85px;
        font-weight: bold;
        font-size: 0.7rem;
        color: #7f8c8d;
        text-transform: uppercase;
        margin-right: 10px;
        padding-top: 2px;    /* Aligns label text with data text */
    }

    /* Emphasize Speaker Name on Mobile */
    .cell:nth-child(3) {
        color: #e67e22;
        font-size: 1.05rem;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
    }

    /* Ensure Title Wraps within its own space */
    .cell:nth-child(4) {
        color: #333;
        font-weight: 500;
    }
}