/* ==========================================================================
   Babel Responsive Tables - Frontend
   ========================================================================== */

.babel-table-wrap {
    max-width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    margin: 2em 0;
}

/* Desktop Table */
.babel-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: none;
}

.babel-table-header th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    border: none;
}

.babel-table-header th:first-child {
    border-radius: 6px 0 0 6px;
}

.babel-table-header th:last-child {
    border-radius: 0 6px 6px 0;
}

.babel-table tbody tr {
    border-bottom: 1px solid #EEEEEE;
    transition: background-color 0.2s ease;
}

.babel-table tbody td {
    padding: 16px 18px;
    vertical-align: top;
    color: #444444;
    border: none;
}

/* Mobile Cards - hidden on desktop */
.babel-table-cards {
    display: none;
}

/* ==========================================================================
   Responsive - Cards layout for mobile
   ========================================================================== */
@media (max-width: 768px) {

    .babel-table {
        display: none;
    }

    .babel-table-cards {
        display: block;
    }

    .babel-table-card {
        background: #FFFFFF;
        border: 1px solid #EEEEEE;
        border-radius: 8px;
        padding: 18px 20px;
        margin-bottom: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .babel-table-card-row {
        display: flex;
        flex-direction: column;
        padding: 6px 0;
    }

    .babel-table-card-row + .babel-table-card-row {
        border-top: 1px solid #F0F0F0;
    }

    .babel-table-card-label {
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 2px;
    }

    .babel-table-card-value {
        color: #444444;
        font-size: 15px;
    }
}
