/* ===== Módulo Finanzas — Conciliación Amazon (reusa estilos cv-* del Consolidado) ===== */

#section-finanzas .fz-sub {
    margin: 0 0 16px; color: #94a3b8; font-size: .85rem; max-width: 720px;
}

/* Selector de canal */
#section-finanzas .fz-canal-switch {
    display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
#section-finanzas .fz-canal-lbl { font-size: .75rem; color: #64748b; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
#section-finanzas .fz-canal-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface-2, #1e293b); color: #94a3b8;
    border: 1px solid rgba(51,65,85,.5); border-radius: 999px;
    padding: .4rem .9rem; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s ease;
}
#section-finanzas .fz-canal-btn:hover { color: #e2e8f0; border-color: rgba(99,102,241,.4); }
#section-finanzas .fz-canal-btn.active { background: rgba(99,102,241,.15); color: #e2e8f0; border-color: rgba(99,102,241,.6); }
#section-finanzas .fz-canal-dot { width: 9px; height: 9px; border-radius: 50%; }
#section-finanzas .fz-banner--prox { background: rgba(245,158,11,.10); color: #fbbf24; border: 1px solid rgba(245,158,11,.30); }

/* Banner de estado */
#section-finanzas .fz-banner {
    display: flex; align-items: center; gap: .6rem; border-radius: 10px;
    padding: .7rem 1rem; font-size: .9rem; margin: 4px 0 6px;
}
#section-finanzas .fz-banner-icon { font-size: 1.2rem; line-height: 1; }
#section-finanzas .fz-banner--loading { background: rgba(30,41,59,.65); color: #94a3b8; }
#section-finanzas .fz-banner--alerta { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.35); }
#section-finanzas .fz-banner--ok { background: rgba(34,197,94,.10); color: #86efac; border: 1px solid rgba(34,197,94,.30); }
#section-finanzas .fz-req-list { margin: 6px 0 0 18px; padding: 0; color: #f8d58a; font-size: .78rem; line-height: 1.45; }
#section-finanzas .fz-meta { font-size: .72rem; color: #64748b; margin-bottom: 12px; }
#section-finanzas .fz-source-note {
    margin-top: 6px;
    color: #94a3b8;
    font-size: .72rem;
    line-height: 1.35;
}
#section-finanzas .fz-source-note strong { color: #c7d2fe; }
#section-finanzas .fz-source-warn { color: #fbbf24; font-weight: 700; }

/* Zebra + hover para la tabla (el consolidado usa #cv-tbody; aquí #fz-tbody) */
#fz-tbody tr.cv-row-main:nth-child(even) .cv-td { background: rgba(30,41,59,.25); }
#fz-tbody tr.cv-row-main:hover .cv-td { background: rgba(99,102,241,.07); }

/* Tinte de filas con discrepancia */
#fz-tbody tr.fz-row-mal .cv-td { background: rgba(239,68,68,.07); }
#fz-tbody tr.fz-row-mal:hover .cv-td { background: rgba(239,68,68,.12); }
#fz-tbody tr.fz-row-bien .cv-td { background: rgba(34,197,94,.07); }
#fz-tbody tr.fz-row-bien:hover .cv-td { background: rgba(34,197,94,.12); }

/* Colores de texto */
#section-finanzas .fz-pos { color: #4ade80 !important; }
#section-finanzas .fz-neg { color: #f87171 !important; }
#section-finanzas .fz-warn { color: #fbbf24 !important; }
#section-finanzas .fz-muted { color: #64748b; }

#fz-tbody tr.fz-row-warn .cv-td, #rt-tbody tr.fz-row-warn .cv-td { background: rgba(245,158,11,.07); }
#rt-tbody tr.cv-row-main:nth-child(even) .cv-td { background: rgba(30,41,59,.25); }
#rt-tbody tr.cv-row-main:hover .cv-td { background: rgba(99,102,241,.07); }
#rt-tbody tr.fz-row-mal .cv-td { background: rgba(239,68,68,.07); }

/* Badges de canal (sobre cv-badge) */
#section-finanzas .fz-badge-fba { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.2); }
#section-finanzas .fz-badge-fbm { background: rgba(168,85,247,.15); color: #d8b4fe; border: 1px solid rgba(168,85,247,.2); }
#section-finanzas .fz-badge-quema { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid rgba(239,68,68,.25); width:auto; padding:2px 8px; }
#section-finanzas .fz-badge-warn { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.25); width:auto; padding:2px 8px; }
#section-finanzas .fz-badge-ok { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.25); width:auto; padding:2px 8px; }

#pb-tbody tr.cv-row-main:nth-child(even) .cv-td { background: rgba(30,41,59,.25); }
#pb-tbody tr.cv-row-main:hover .cv-td { background: rgba(99,102,241,.07); }
#pb-tbody tr.fz-row-mal .cv-td { background: rgba(239,68,68,.07); }

/* Celda "¿Por qué?" */
#section-finanzas .fz-dotmini { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }
#section-finanzas .fz-dot-mal { background: #ef4444; }
#section-finanzas .fz-dot-bien { background: #22c55e; }
#section-finanzas .fz-det { font-size: .72rem; color: #64748b; margin-top: 2px; padding-left: 13px; }

/* ===== Filas desplegables (detalle) ===== */
#section-finanzas .fz-chev { color: #64748b; font-size: .7rem; transition: color .15s ease; display: inline-block; }
#fz-tbody tr.cv-row-main:hover .fz-chev { color: #a5b4fc; }

#section-finanzas .fz-detail-row .fz-detail-cell { padding: 0; background: rgba(15, 23, 42, .55); border-bottom: 1px solid rgba(51,65,85,.3); }
#section-finanzas .fz-detail-wrap {
    display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start;
    padding: 14px 18px; border-left: 3px solid rgba(99,102,241,.4); margin: 2px 0;
}

#section-finanzas .fz-dt { border-collapse: collapse; font-size: .8rem; min-width: 340px; }
#section-finanzas .fz-dt thead th {
    text-align: right; font-size: .65rem; text-transform: uppercase; letter-spacing: .04em;
    color: #64748b; font-weight: 600; padding: 2px 14px 6px; border-bottom: 1px solid rgba(51,65,85,.4);
}
#section-finanzas .fz-dt thead th:first-child { text-align: left; }
#section-finanzas .fz-dt-lbl { text-align: left; color: #cbd5e1; padding: 4px 14px 4px 0; }
#section-finanzas .fz-dt-num { text-align: right; font-family: 'JetBrains Mono', monospace; color: #e2e8f0; padding: 4px 14px; white-space: nowrap; }
#section-finanzas .fz-dt-motor { color: #94a3b8; }
#section-finanzas .fz-dt-mg { font-size: .9rem; }
#section-finanzas .fz-dt tbody tr:last-child td { border-top: 1px solid rgba(51,65,85,.4); padding-top: 7px; }

#section-finanzas .fz-detail-side { display: flex; flex-direction: column; gap: 6px; max-width: 360px; padding-top: 4px; }
#section-finanzas .fz-detail-why { font-size: .85rem; color: #e2e8f0; line-height: 1.45; }
#section-finanzas .fz-detail-impact { font-size: 1.05rem; font-weight: 800; }
#section-finanzas .fz-detail-impact-sub { font-size: .75rem; color: #94a3b8; }

/* Bloque "neto depositado" en liquidaciones */
#section-finanzas .lq-cash {
    background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.25);
    border-radius: 10px; padding: 10px 14px;
}
#section-finanzas .lq-cash-lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #6ee7b7; font-weight: 600; }
#section-finanzas .lq-cash-val { font-size: 1.5rem; font-weight: 800; color: #34d399; line-height: 1.2; }
#section-finanzas .lq-cash-note { font-size: .7rem; color: #94a3b8; margin-top: 3px; }
