/* CLA Past Bookings Styles */

.cla-past-bookings-notice {
    padding: 20px;
    background-color: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin: 20px 0;
}

.cla-past-bookings-notice p {
    margin: 0;
    font-size: 16px;
    color: #1d2327;
}

.cla-past-bookings-notice a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.cla-past-bookings-notice a:hover {
    color: #135e96;
    text-decoration: underline;
}

.cla-past-bookings-wrapper {
    margin: 20px 0;
}

.cla-past-bookings-wrapper h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1d2327;
}

.cla-past-bookings-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cla-past-bookings-table thead {
    background-color: #f0f0f1;
}

.cla-past-bookings-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 2px solid #c3c4c7;
}

.cla-past-bookings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dcdcde;
    color: #50575e;
}

.cla-past-bookings-table tbody tr:hover {
    background-color: #f6f7f7;
}

.cla-past-bookings-table tbody tr:last-child td {
    border-bottom: none;
}

/* Download link styling */
.cla-past-bookings-table a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.cla-past-bookings-table a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .cla-past-bookings-table {
        font-size: 14px;
    }
    
    .cla-past-bookings-table th,
    .cla-past-bookings-table td {
        padding: 10px 8px;
    }
    
    .cla-past-bookings-wrapper h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 600px) {
    /* Stack table on mobile */
    .cla-past-bookings-table,
    .cla-past-bookings-table thead,
    .cla-past-bookings-table tbody,
    .cla-past-bookings-table th,
    .cla-past-bookings-table td,
    .cla-past-bookings-table tr {
        display: block;
    }
    
    .cla-past-bookings-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .cla-past-bookings-table tr {
        border: 1px solid #c3c4c7;
        margin-bottom: 10px;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .cla-past-bookings-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    
    .cla-past-bookings-table td:before {
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        content: attr(data-label);
    }
    
    .cla-past-bookings-table tbody tr:hover {
        background-color: #ffffff;
    }
}
