/**
 * tee.css - Estilos del Estado de Cuenta TES.
 * @version 1.0.0
 * @author Equipo ERP
 * @date 2026-06-22
 */

.tee-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tee-filter-actions .btn {
    min-width: 120px;
}

.tee-client-panel {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
}

.tee-panel-label {
    color: #5b7080;
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tee-summary-table th {
    white-space: nowrap;
}

.tee-money {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tee-money-note {
    color: #5b7080;
    display: block;
    font-size: 0.72rem;
    margin-top: 2px;
}

.tee-aging-row td {
    font-weight: 600;
}

.tee-aging-success td {
    background: #eef8f3;
    color: #146c43;
}

.tee-aging-warning td {
    background: #fff4df;
    color: #9a6700;
}

.tee-aging-danger td {
    background: #fdeaea;
    color: #b42318;
}

.tee-summary-total td {
    background: #f3f7fa;
    border-top: 2px solid #c9d7e3;
    color: #13394f;
    font-weight: 700;
}

.tee-total-chunk {
    display: block;
}

.tee-state-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 10px;
}

.tee-state-p {
    background: #eef8f3;
    color: #146c43;
}

.tee-state-v {
    background: #fff4df;
    color: #b35b00;
}

.tee-state-c {
    background: #edf2f7;
    color: #546371;
}

.tee-detail-meta {
    background: #f5f8fb;
    border-radius: 14px;
    min-height: 92px;
    padding: 16px 18px;
}

.tee-mini-kpi {
    background: linear-gradient(145deg, #ffffff 0%, #f4f8fa 100%);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(21, 54, 74, 0.06);
    min-height: 92px;
    padding: 16px 18px;
}

.tee-mini-kpi span {
    color: #5b7080;
    display: block;
    font-size: 0.85rem;
}

.tee-mini-kpi strong {
    color: #13394f;
    display: block;
    font-size: 1.35rem;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .tee-client-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .tee-toolbar {
        margin-top: 10px;
        width: 100%;
    }

    .tee-toolbar .btn,
    .tee-filter-actions .btn {
        width: 100%;
    }
}
