/* ============================================================
   TABLES — BIOLUGA
   /assets/css/components/tables.css
   ============================================================ */

/* ============================================================
   COMPARISON MATRIX (Zone A Cross-Sell)
   ============================================================ */
.comparison-matrix {
    padding: var(--section-padding);
    background: #FFF8F0;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-family: var(--font-body);
    font-size: 14px;
    min-width: 700px;
}

.comparison-table thead th {
    background: #7B9E87;
    color: #FFFFFF;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
}

.comparison-table thead th.col-highlight {
    background: #5F8A6B;
    border-bottom: 3px solid #4A7A5A;
}

.comparison-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,51,102,0.04);
    color: var(--brand-slate);
    vertical-align: middle;
}

.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: rgba(123,158,135,0.03); }

.comparison-table .highlight {
    background: rgba(123,158,135,0.08);
    font-weight: 600;
    color: var(--brand-navy);
    vertical-align: middle;
}

.comparison-table .col-highlight {
    background: rgba(123,158,135,0.12);
    border-bottom: 3px solid #7B9E87;
}

/* Comparison table buttons */
.comparison-table .btn-small {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 50px;
    background: transparent;
    color: #7B9E87;
    border: 1.5px solid #7B9E87;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    gap: 4px;
    white-space: nowrap;
}
.comparison-table .btn-small:hover {
    background: #7B9E87;
    color: #FFFFFF;
}

/* ============================================================
   MACRONUTRIENT TABLE (Zone B Clinical)
   ============================================================ */
.clinical-macronutrients {
    padding: var(--section-padding);
    background: var(--bg-warm-white);
}

.clinical-macronutrients-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
}

.clinical-macronutrients-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-family: var(--font-body);
    font-size: 14px;
    min-width: 600px;
}

.clinical-macronutrients-table thead th {
    background: #1B4F72;
    color: #FFFFFF;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
}

.clinical-macronutrients-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,51,102,0.04);
    color: var(--brand-slate);
    vertical-align: middle;
}

.clinical-macronutrients-table tbody tr:last-child td { border-bottom: none; }
.clinical-macronutrients-table tbody tr:hover { background: rgba(27,79,114,0.03); }
.clinical-macronutrients-table tbody td:first-child {
    font-weight: 600;
    color: var(--brand-navy);
}

/* ============================================================
   RESPONSIVE — Tables
   ============================================================ */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 12px;
        min-width: 600px;
    }
    .comparison-table thead th,
    .comparison-table tbody td { padding: 8px 12px; }
    .comparison-table .btn-small {
        font-size: 11px;
        padding: 4px 10px;
        min-height: 28px;
    }
    .clinical-macronutrients-table {
        font-size: 12px;
        min-width: 500px;
    }
    .clinical-macronutrients-table thead th,
    .clinical-macronutrients-table tbody td { padding: 8px 12px; }
}

@media (max-width: 480px) {
    .comparison-table {
        font-size: 11px;
        min-width: 500px;
    }
    .comparison-table thead th,
    .comparison-table tbody td { padding: 6px 8px; }
    .comparison-table .btn-small {
        font-size: 10px;
        padding: 3px 8px;
        min-height: 24px;
    }
}