/* La bitácora de cada documento (vistas/js/bitacora.js). Colores explícitos: Estilos.css
   pone grises con !important en .text-muted y en algunos textos de ayuda. Sin naranja. */

.nzb-boton { display: none; position: fixed; right: 0; top: 42%; z-index: 1035; border: 1px solid #c9d3de; border-right: 0;
  border-radius: 6px 0 0 6px; background: #ffffff; color: #22313f; padding: 8px 10px; font-size: 13px; box-shadow: -2px 2px 6px rgba(0,0,0,.08); }
.nzb-boton:hover { background: #eef3f8; }
body.nzb-con-bitacora .nzb-boton { display: block; }
body.nzb-abierta .nzb-boton { display: none; }
.nzb-nuevas { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #1f6fb2; color: #fff !important; font-size: 11px; text-align: center; }

.nzb-panel { position: fixed; right: 0; top: 50px; bottom: 0; width: 400px; max-width: 100vw; z-index: 1034; display: none;
  flex-direction: column; background: #ffffff; border-left: 1px solid #d9e0e7; box-shadow: -4px 0 12px rgba(0,0,0,.06); }
body.nzb-abierta .nzb-panel { display: flex; }
body.nzb-empuja .content-wrapper { margin-right: 400px; transition: margin-right .15s; }

.nzb-cab { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #e4e9ee;
  font-weight: 700; color: #22313f; }
.nzb-cerrar { border: 0; background: transparent; font-size: 22px; line-height: 1; color: #5b6b7a; cursor: pointer; }

.nzb-form { padding: 10px 14px; border-bottom: 1px solid #e4e9ee; }
.nzb-form textarea { width: 100%; resize: vertical; border: 1px solid #c9d3de; border-radius: 4px; padding: 6px 8px; font-size: 13px; color: #22313f; background: #fff; }
.nzb-form-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.nzb-error { margin-top: 6px; color: #a3291f !important; font-size: 12px; }

.nzb-lista { flex: 1 1 auto; overflow-y: auto; padding: 4px 14px 16px; }
.nzb-vacio { padding: 18px 0; color: #5b6b7a !important; font-size: 13px; }
.nzb-suave { color: #6b7a89 !important; font-size: 12px; }

.nzb-dia { text-align: center; margin: 12px 0 6px; border-top: 1px solid #e4e9ee; height: 0; }
.nzb-dia span { position: relative; top: -10px; background: #fff; padding: 0 8px; color: #6b7a89 !important; font-size: 12px; }

.nzb-item { display: flex; gap: 10px; padding: 6px 0; }
.nzb-avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; color: #fff !important; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.nzb-cuerpo { min-width: 0; flex: 1 1 auto; font-size: 13px; color: #22313f; }
.nzb-quien b { color: #22313f; }
.nzb-cambio { margin-top: 2px; word-break: break-word; }
.nzb-cambio .nzb-antes { color: #5b6b7a !important; }
.nzb-cambio .nzb-despues { color: #1f6fb2 !important; font-weight: 600; }
.nzb-cambio em { color: #6b7a89 !important; }
.nzb-texto-nota { margin-top: 3px; padding: 6px 8px; border-radius: 4px; background: #f1f4f7; color: #22313f; white-space: pre-wrap; word-break: break-word; }
.nzb-texto-sistema, .nzb-texto-cambio { margin-top: 2px; color: #22313f; white-space: pre-wrap; word-break: break-word; }
.nzb-texto-aviso { margin-top: 3px; padding: 6px 8px; border-radius: 4px; background: #fbe4e1; color: #8a2318 !important; }
.nzb-motivo { margin-top: 3px; color: #5b6b7a !important; font-style: italic; }
.nzb-origen { display: inline-block; margin-bottom: 2px; padding: 0 6px; border-radius: 3px; background: #eef2f6 !important; color: #3d5368 !important; font-size: 11px; font-weight: 600; }

/* La conversación: modos de escribir, seguidores, hilos, correos y adjuntos. */
.nzb-cab-der { display: flex; align-items: center; gap: 6px; }
.nzb-chip { border: 1px solid #c9d3de; border-radius: 12px; background: #fff; color: #3d5368 !important; font-size: 12px; font-weight: 600; padding: 1px 8px; cursor: pointer; }
.nzb-chip-quieto { cursor: default; }
.nzb-chip-activo { background: #e3eef8; border-color: #1f6fb2; color: #1f6fb2 !important; }
.nzb-modos { display: flex; border-bottom: 1px solid #e4e9ee; }
.nzb-modos button { flex: 1 1 0; border: 0; border-bottom: 2px solid transparent; background: #fff; color: #5b6b7a; font-size: 12px; padding: 7px 4px; cursor: pointer; }
.nzb-modos button.activo { border-bottom-color: #1f6fb2; color: #1f6fb2; font-weight: 700; }
.nzb-form-externo { background: #f2f7fc; }
.nzb-externo label, .nzb-actividad label { display: block; font-weight: 400; font-size: 12px; color: #3d5368; margin-bottom: 4px; }
.nzb-externo input, .nzb-actividad input { width: 100%; border: 1px solid #c9d3de; border-radius: 4px; padding: 4px 6px; font-size: 13px; color: #22313f; background: #fff; }
.nzb-aviso-ext { margin: 2px 0 6px; font-size: 12px; color: #1d4f7a !important; }
.nzb-responde { margin-bottom: 6px; padding: 4px 8px; border-left: 3px solid #1f6fb2; background: #eef3f8; font-size: 12px; color: #22313f; }
.nzb-escribir { position: relative; }
.nzb-sugerencias { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; border: 1px solid #c9d3de; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,.1); max-height: 180px; overflow-y: auto; }
.nzb-sug { padding: 5px 8px; font-size: 13px; color: #22313f; cursor: pointer; }
.nzb-sug:hover { background: #eef3f8; }
.nzb-clip { cursor: pointer; color: #3d5368; font-size: 15px; margin: 0 6px 0 0; font-weight: 400; }
.nzb-adjuntos-lista { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.nzb-adj-chip { background: #eef2f6; border-radius: 3px; padding: 1px 6px; font-size: 12px; color: #22313f; }
.nzb-pendientes { padding: 8px 14px; border-bottom: 1px solid #e4e9ee; background: #fafbfc; }
.nzb-pend-tit { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5b6b7a; }
.nzb-pend { font-size: 13px; color: #22313f; margin-top: 3px; }
.nzb-pend-vencida { color: #a3291f !important; }
.nzb-pend-hoy { color: #1f6fb2 !important; }
.nzb-mencion { color: #1f6fb2 !important; }
.nzb-correo { font-size: 12px; color: #1d4f7a !important; margin-top: 2px; }
.nzb-texto-mensaje { margin-top: 3px; padding: 6px 8px; border-radius: 4px; background: #e6f0f9; border-left: 3px solid #1f6fb2; color: #22313f; white-space: pre-wrap; word-break: break-word; }
.nzb-envio { font-size: 12px; margin-top: 2px; color: #5b6b7a !important; }
.nzb-envio-ok { color: #2e7d4f !important; }
.nzb-envio-mal { color: #a3291f !important; }
.nzb-adjunto { font-size: 12px; margin-top: 2px; }
.nzb-acciones { margin-top: 2px; font-size: 12px; }
.nzb-acciones a { color: #1f6fb2; margin-right: 10px; }
.nzb-hilo { margin-left: 4px; padding-left: 8px; border-left: 2px solid #e4e9ee; }
.nzb-hilo .nzb-avatar { flex-basis: 24px; width: 24px; height: 24px; font-size: 10px; }
.nzb-corrigiendo textarea { width: 100%; border: 1px solid #c9d3de; border-radius: 4px; padding: 4px 6px; font-size: 13px; }

/* La pista del atajo junto al botón: Ctrl+Enter guarda o envía. */
.nzb-atajo { font-size: 11px; color: #6b7a89 !important; margin-right: 4px; white-space: nowrap; }

/* El editor del mensaje al tercero (negrita, listas, enlaces). */
.nzb-barra { display: flex; gap: 2px; border: 1px solid #c9d3de; border-bottom: 0; border-radius: 4px 4px 0 0; background: #f6f8fa; padding: 3px; }
.nzb-barra button { border: 0; background: transparent; color: #3d5368; width: 28px; height: 26px; border-radius: 3px; cursor: pointer; }
.nzb-barra button:hover { background: #e3eef8; color: #1f6fb2; }
.nzb-editor { min-height: 90px; max-height: 260px; overflow-y: auto; border: 1px solid #c9d3de; border-radius: 0 0 4px 4px; padding: 6px 8px;
  font-size: 13px; color: #22313f; background: #fff; outline: none; word-break: break-word; }
.nzb-editor:focus { border-color: #1f6fb2; }
.nzb-form:not(.nzb-form-externo) .nzb-editor { min-height: 54px; }
.nzb-corrigiendo .nzb-editor { min-height: 54px; border-radius: 4px; margin-bottom: 4px; background: #fff; }
.nzb-editor:empty:before { content: attr(data-placeholder); color: #8a97a4; }
.nzb-editor p, .nzb-html p { margin: 0 0 6px; }
.nzb-editor ul, .nzb-editor ol, .nzb-html ul, .nzb-html ol { margin: 0 0 6px; padding-left: 20px; }
.nzb-html { white-space: normal !important; }
.nzb-html a, .nzb-editor a { color: #1f6fb2; text-decoration: underline; }

/* El aviso del plan («ya se generaron compras»), dentro de la ficha. */
.ab-aviso-pasar { border-left: 3px solid #a3291f; background: #fdf1ef; padding: 8px 10px; border-radius: 4px; }
.ab-aviso-pasar p { color: #22313f; }

@media (max-width: 767px) {
  .nzb-panel { width: 100vw; }
  .nzb-boton { top: auto; bottom: 90px; }
}
