/* =========================================================================
   ESTILOS DE LOS MÓDULOS NUEVOS (contabilidad, logística, tickets, TI, SUNAT)
   Tema claro — complementa a core.css.
   ========================================================================= */

/* Panel de alertas del tablero */
.alert-panel { margin-top: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.alert-panel h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: 1.2px; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
.alert-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.alert-item:last-child { border-bottom: none; }
.alert-item .when { color: var(--text-dim); font-size: 11.5px; white-space: nowrap; font-family: 'IBM Plex Mono', monospace; padding-top: 1px; }
.alert-empty { color: var(--text-dim); font-size: 12.5px; padding: 6px 0; }

/* Badges de estado de los módulos nuevos */
.xbadge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: .2px; border: 1px solid transparent; }
.xbadge.ok    { background: #E5F5EC; color: #15803D; border-color: #C4E8D2; }
.xbadge.warn  { background: #FEF3E2; color: #B45309; border-color: #F7DFBC; }
.xbadge.bad   { background: #FDECEA; color: #B91C1C; border-color: #F5C6BE; }
.xbadge.info  { background: #E7F0FE; color: #1D4ED8; border-color: #C9DCFB; }
.xbadge.mute  { background: #EFF2F7; color: #5B6575; border-color: #DEE3EC; }
.xbadge.purple{ background: #F1E9FE; color: #6D28D9; border-color: #E0D0FA; }

/* Tarjetas resumen dentro de un módulo (resumen IGV, saldos de caja...) */
.xcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 14px 0; }
.xcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.xcard .lbl { font-size: 10.5px; color: var(--text-dim); letter-spacing: .8px; text-transform: uppercase; font-weight: 600; font-family: 'Inter', sans-serif; }
.xcard .val { font-size: 22px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; margin-top: 4px; color: var(--text); }
.xcard .sub { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.xcard.accent { border-color: #C9DCFB; background: #F5F9FF; }

/* Filas debe/haber del editor de asientos */
.asiento-row { display: grid; grid-template-columns: minmax(180px,2fr) 1fr 1fr 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
.asiento-row select, .asiento-row input { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 8px 9px; border-radius: 6px; font-size: 12.5px; }
.asiento-totales { display: flex; gap: 22px; justify-content: flex-end; font-family: 'IBM Plex Mono', monospace; font-size: 13px; padding: 8px 4px; }
.asiento-totales .desbalance { color: #DC2626; font-weight: 600; }
.asiento-totales .cuadrado { color: #16A34A; font-weight: 600; }

/* Latencia del monitor */
.lat-ok { color: #16A34A; font-weight: 600; } .lat-slow { color: #B45309; font-weight: 600; } .lat-bad { color: #DC2626; font-weight: 600; }

/* Mini historial de uptime (barras) */
.uptime-bars { display: flex; gap: 2px; align-items: flex-end; height: 22px; }
.uptime-bars span { width: 5px; border-radius: 2px; background: #DDE3EE; height: 100%; display: inline-block; }
.uptime-bars span.up { background: #34C275; }
.uptime-bars span.down { background: #E24A3B; }

/* Comentarios de tickets */
.tk-comment { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; font-size: 13px; }
.tk-comment .who { font-size: 11.5px; color: var(--text-dim); margin-bottom: 3px; font-family: 'IBM Plex Mono', monospace; }

/* Aviso/nota informativa */
.xnote { background: #F0F6FF; border: 1px solid #CFE0FA; color: var(--text-mute); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; line-height: 1.5; margin: 12px 0; }
.xnote b { color: var(--text); }
.xnote.amber { background: #FFF7EA; border-color: #F3DFBE; }

/* Tabs con muchos elementos: permitir scroll horizontal */
.tabs { overflow-x: auto; scrollbar-width: thin; }
