/* Lo propio de la consola de Aletheia (prefijo `fb-`): solo lo que no está en el ui-kit. Los colores, con los tokens
   de app.css; el lima de Aletheia solo identifica la aplicación (lo pone el kit en la barra) y marca los pines. */
.fb-main { padding: calc(var(--ov-sh-head, 156px) + 16px) 16px 32px; max-width: 1200px; }
.fb-card { background: var(--color-surface, #fff); border: 1px solid var(--color-border, #e4e8ec); border-radius: 10px; padding: 20px 24px; }
.fb-card + .fb-card { margin-top: 16px; }
.fb-card h1 { font-size: 20px; margin: 0 0 12px; }
.fb-card h2 { font-size: 15px; margin: 0 0 10px; }
.fb-card h3 { font-size: 13px; margin: 12px 0 6px; }
.fb-muted { color: var(--color-text-muted, #6b7280); }
.fb-warning { padding: 10px 12px; border-left: 4px solid var(--color-warning, #c98a00); background: var(--color-warning-soft, #fff7e0); border-radius: 6px; }
/* Solo cuando el login acaba de fallar (sin sesión no hay barra de la suite): centrado en la pantalla. */
.fb-no-session .fb-main { padding: 15vh 16px 32px; max-width: none; }
.fb-signin { max-width: 520px; margin: 0 auto; text-align: center; }
.fb-button { display: inline-block; margin-top: 12px; padding: 8px 18px; border-radius: 8px; border: 0; background: var(--color-primary, #1f6feb); color: #fff; text-decoration: none; cursor: pointer; font: inherit; }
.fb-button-quiet { margin-top: 0; padding: 3px 10px; background: transparent; color: var(--color-primary, #1f6feb); border: 1px solid var(--color-border, #d0d7de); }
.fb-button[disabled] { opacity: .6; cursor: default; }

.fb-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.fb-field { display: grid; gap: 4px; font-size: 13px; }
.fb-field input, .fb-field select { font: inherit; padding: 6px 8px; border: 1px solid var(--color-border, #d0d7de); border-radius: 6px; }
.fb-field input[type=checkbox] { justify-self: start; }
.fb-form { display: grid; gap: 10px; max-width: 560px; margin: 8px 0 0; }
.fb-form .fb-button { justify-self: start; }

.fb-table-wrap { overflow-x: auto; }
.fb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fb-table th, .fb-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--color-border, #e4e8ec); vertical-align: top; }
.fb-table th { font-weight: 600; color: var(--color-text-muted, #6b7280); }
.fb-table td { overflow-wrap: break-word; }
.fb-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--color-border, #e4e8ec); white-space: nowrap; }
.fb-badge-ok { background: #dcfce7; color: #166534; }
.fb-badge-info { background: #e0ecff; color: #1e3a8a; }
.fb-badge-warn { background: #fef3c7; color: #92400e; }
.fb-badge-crit { background: #fee2e2; color: #991b1b; }
.fb-tags { margin: 0 0 12px; }
.fb-detail { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13px; margin: 0; }
.fb-detail dt { color: var(--color-text-muted, #6b7280); }
.fb-detail dd { margin: 0; overflow-wrap: anywhere; }
.fb-quote { margin: 0; padding: 10px 14px; border-left: 4px solid #b1b228; background: var(--color-surface-2, #f6f8fa); border-radius: 6px; white-space: pre-wrap; }
.fb-pins-list { margin: 10px 0 0; padding-left: 20px; font-size: 13px; }
.fb-pre { white-space: pre-wrap; word-break: break-word; font-family: var(--ov-font-mono, monospace); font-size: 12px; padding: 10px; border-radius: 6px; background: var(--color-surface-2, #f6f8fa); max-height: 480px; overflow: auto; }

/* La captura con sus pines: el marco a la escala de la imagen y cada pin en % de la ventana (CSSOM). */
.fb-shot { position: relative; display: inline-block; max-width: 100%; border: 1px solid var(--color-border, #e4e8ec); border-radius: 6px; overflow: hidden; }
.fb-shot img { display: block; max-width: 100%; height: auto; }
.fb-pin { position: absolute; box-sizing: border-box; border: 3px solid #b1b228; border-radius: 6px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .18);
  min-width: 18px; padding: 0; color: #282828; font-size: 12px; font-weight: 700; line-height: 18px; text-align: left; text-indent: 5px;
  /* el número del pin, sobre una pastilla lima en la esquina */
  background: linear-gradient(#b1b228, #b1b228) top left / 18px 18px no-repeat; }
.fb-net-body:empty { display: none; }

/* F3: la conversación, los borradores y las acciones */
.fb-msg { border: 1px solid var(--color-border, #e4e8ec); border-radius: 8px; padding: 8px 12px; margin: 0 0 8px; }
.fb-msg-head { font-size: 12px; color: var(--color-text-muted, #6b7280); margin-bottom: 4px; }
.fb-msg-body { margin: 0; white-space: pre-wrap; }
.fb-msg-reporter { border-left: 4px solid #b1b228; }
.fb-msg-ai { border-left: 4px solid #7c8db5; }
.fb-msg-internal { background: var(--color-surface-2, #f6f8fa); }
.fb-msg-draft { border-style: dashed; border-color: var(--color-warning, #c98a00); }
.fb-textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--color-border, #d0d7de); border-radius: 6px; width: 100%; box-sizing: border-box; }
.fb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.fb-row .fb-button { margin-top: 0; }
.fb-filters .fb-button { align-self: end; margin-top: 0; }

.fb-video { display: block; max-width: 100%; max-height: 480px; margin: 8px 0; }

/* F6: cifras, novedades y el mapa de calor */
.fb-kpis { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 16px; }
.fb-kpi { flex: 1 1 170px; border: 1px solid var(--color-border, #e4e8ec); border-radius: 8px; padding: 10px 12px; }
.fb-kpi-value { font-size: 22px; font-weight: 600; }
.fb-kpi-label { font-size: 12px; color: var(--color-text-muted, #6b7280); }
.fb-news { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.fb-heat { display: inline-block; height: 10px; border-radius: 5px; background: #b1b228; min-width: 4px; }

@media (max-width: 900px) { .fb-main { padding-top: calc(var(--ov-sh-head, 116px) + 12px); } }
