/* ═══════════════════════════════════════════════════════════
   WIYU Cobranza — styles.css
   Thin override sheet; brand-light.css se carga primero en HTML
   ═══════════════════════════════════════════════════════════ */

/* ── Vertical accent tokens ─────────────────────────────── */
:root {
  --accent:       #EA580C;
  --accent-dark:  #C2410C;
  --accent-soft:  #FFF7ED;
  --accent-glow:  rgba(234,88,12,.12);
  --accent-text:  #EA580C;
  --border-brand: rgba(234,88,12,.28);
  --bg-sidebar:   #FAFAF9;
}

/* ── View layout helpers ─────────────────────────────────── */
.view { display: none; min-height: 100vh; }
.view.active { display: flex; }
#viewDashboard { flex-direction: row; }
#viewDetail    { flex-direction: column; background: var(--bg-soft); }

/* ── Login: fondo claro con acento naranja-cobranza ─────── */
#viewLogin {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%,  rgba(234,88,12,.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0%  100%,  rgba(234,88,12,.05) 0%, transparent 55%),
    linear-gradient(160deg, #FFFFFF 0%, #FFF9F6 60%, #FFF3EC 100%);
}

/* ── Login logo container ────────────────────────────────── */
.login-bg   { display: none; }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.login-logo-img { height: 52px; width: auto; }

/* ── Sidebar logo imagen + badge ────────────────────────── */
.sidebar-logo-img { height: 24px; width: auto; display: block; }
.sidebar-vertical-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border-brand);
}

/* ── aivoc-logo-badge genérico ──────────────────────────── */
.aivoc-logo-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 12px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border-brand);
}
.logo-badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 12px;
  background: var(--bg-soft); color: var(--text-3); border: 1px solid var(--border);
}

/* ── Legal badges ────────────────────────────────────────── */
.legal-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 16px 0 20px; }
.legal-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border); }

/* ── Chart + Alerts row ──────────────────────────────────── */
.chart-alerts-row { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-bottom: 24px; }
@media(max-width:1100px) { .chart-alerts-row { grid-template-columns: 1fr; } }

/* ── Detail grid ─────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 32px 56px; max-width: 1320px; margin: 0 auto; }
@media(max-width:900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-right { display: flex; flex-direction: column; gap: 18px; }
canvas#trendChart { width: 100% !important; }

/* ── Tipo/gestión badge ──────────────────────────────────── */
.tipo-badge, .gestion-tag {
  font-size: 10px; font-weight: 600; padding: 2px 9px; border-radius: 12px; white-space: nowrap;
  background: var(--accent-glow); color: var(--accent-text); border: 1px solid var(--border-brand);
}

/* ── Modal processing ────────────────────────────────────── */
.processing-logo { text-align: center; }
.processing-logo-img { height: 36px; width: auto; display: block; margin: 0 auto 16px; }
.processing-waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 32px; margin-bottom: 16px; }
.processing-waveform span { display: block; width: 4px; border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-dark)); animation: waveAnim 1.1s ease-in-out infinite; }
.processing-waveform span:nth-child(1) { height:10px;animation-delay:0s }
.processing-waveform span:nth-child(2) { height:22px;animation-delay:.1s }
.processing-waveform span:nth-child(3) { height:16px;animation-delay:.2s }
.processing-waveform span:nth-child(4) { height:28px;animation-delay:.3s }
.processing-waveform span:nth-child(5) { height:12px;animation-delay:.4s }
.processing-waveform span:nth-child(6) { height:28px;animation-delay:.5s }
.processing-waveform span:nth-child(7) { height:16px;animation-delay:.6s }
.processing-waveform span:nth-child(8) { height:22px;animation-delay:.7s }
.processing-waveform span:nth-child(9) { height:10px;animation-delay:.8s }
.processing-waveform span:nth-child(10) { height:18px;animation-delay:.9s }
@keyframes waveAnim { 0%,100%{transform:scaleY(1);opacity:.7} 50%{transform:scaleY(1.6);opacity:1} }
/* el progress-container ya viene de brand-light */
.processing-progress { height: 4px; background: var(--border-mid); border-radius: 4px; overflow: hidden; }
.processing-progress .progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); border-radius: 4px; transition: width .5s ease; }
