/* ============================================================
   reportes.css — Estilos del módulo Reportes Avanzados
   (antes no existía ningún CSS para .rpt-*, por eso se veía sin formato)
   ============================================================ */

/* ── Barra superior: exportar + filtro de periodo ── */
.rpt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.rpt-export {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Grid de 4 tarjetas KPI ── */
.rpt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 1100px) {
  .rpt-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .rpt-kpi-grid { grid-template-columns: 1fr; }
}

/* ── Fila de gráficos: línea + donut ── */
.rpt-charts-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.rpt-chart-card {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  min-width: 280px;
}
.rpt-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* ── Gráfico de línea ── */
.rpt-line-wrap { width: 100%; }
.rpt-line-xaxis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  padding: 0 4px;
}

/* ── Fila inferior: top clientes / estado proyectos / comparativa ── */
.rpt-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .rpt-bottom-row { grid-template-columns: 1fr; }
}

/* ── Print: ocultar elementos de navegación al exportar a PDF ── */
@media print {
  .sidebar, .topbar, .bottom-nav, .rpt-export { display: none !important; }
  .app-content { padding: 0 !important; max-width: 100% !important; }
}

/* ============================================================
   Configuración — estilos nuevos agregados
   ============================================================ */

/* Avatar de perfil clickeable con overlay de cámara */
.cfg-avatar { position: relative; }
.cfg-avatar-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
  border-radius: 50%;
}
.cfg-avatar-overlay svg { width: 20px; height: 20px; color: #fff; }
.cfg-avatar:hover .cfg-avatar-overlay { opacity: 1; }

/* Métodos de pago — tarjeta con detalles expandidos */
.pm-row {
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}
.pm-row:last-child { border-bottom: none; }
.pm-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pm-row-info { flex: 1; min-width: 0; }
.pm-details {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--surface2);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pm-detail-row { font-size: 12.5px; color: var(--text); }
.pm-detail-lbl { font-weight: 700; color: var(--text-2); }

/* Integraciones — tarjetas Visa/PayPal */
.intg-card {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.intg-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   Logos del negocio — grid de 4 variantes (Isotipo/Imagotipo x Light/Dark)
   ============================================================ */
.cfg-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 640px) {
  .cfg-logo-grid { grid-template-columns: 1fr; }
}
.cfg-logo-slot {
  display: flex;
  flex-direction: column;
}
.cfg-logo-slot-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}
.cfg-logo-slot-box {
  height: 110px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color .12s;
}
.cfg-logo-slot-box:hover {
  border-color: var(--accent);
}
.cfg-logo-slot-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cfg-logo-slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
}
.cfg-logo-slot-empty svg {
  width: 22px;
  height: 22px;
  opacity: .5;
}

/* ── Negocio / Marca rediseno compacto ── */
.nb-section { margin-bottom: 0; }
.nb-section-head { margin-bottom: 14px; }
.nb-section-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.nb-section-sub { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.nb-divider { height: 1px; background: var(--border); margin: 20px 0; }
.nb-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.nb-field-group { display: flex; flex-direction: column; gap: 5px; }
.nb-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.nb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
@media (max-width: 640px) { .nb-grid2 { grid-template-columns: 1fr; } .nb-row { flex-direction: column; } }

/* Logo slots compactos */
.nbls-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 700px) { .nbls-grid { grid-template-columns: repeat(2, 1fr); } }
.nbls { display: flex; flex-direction: column; gap: 6px; }
.nbls-preview {
  position: relative; height: 72px; border-radius: 10px;
  border: 1.5px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: border-color .12s;
}
.nbls-preview:hover { border-color: var(--accent); }
.nbls-empty { display: flex; color: var(--text-2); opacity: .4; }
.nbls-empty svg { width: 18px; height: 18px; }
.nbls-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.nbls-label { font-size: 10px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.nbls-btn {
  font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; font-family: var(--font);
  white-space: nowrap; transition: background .1s, color .1s;
  -webkit-tap-highlight-color: transparent;
}
.nbls-btn:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface2)); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
