/* La demo pública (cajafacil.tu-app.co): el aviso fijo y el recuadro «Prueba la demo». Solo se pinta con CAJAFACIL_DEMO=true.
   Lo usan la caja (se compila con ella) y el panel (assets de Filament). Todo con los tokens del sistema. */

.cf-demo-aviso {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 1.75rem;
  padding: .25rem 1rem;
  background: var(--cf-warn-soft);
  color: var(--cf-warn);
  border-bottom: 1px solid #ecd9a3;
  font-family: var(--cf-font);
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 600;
  text-align: center;
  text-wrap: balance;
}

.cf-demo-vivo { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cf-demo {
  box-sizing: border-box;
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--cf-warn-soft);
  border: 1px solid #ecd9a3;
  border-radius: var(--cf-r-card);
  color: var(--cf-ink);
  font-family: var(--cf-font);
  text-align: left;
}
.cf-demo-titulo { margin: 0 0 .25rem; font-size: 1.0625rem; line-height: 1.5rem; font-weight: 600; }
.cf-demo-texto { margin: 0 0 .75rem; font-size: .875rem; line-height: 1.25rem; color: var(--cf-muted); }
.cf-demo-lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.cf-demo-cuenta { padding: .75rem; background: var(--cf-surface); border: 1px solid var(--cf-line); border-radius: var(--cf-r-control); }
.cf-demo-rol { margin: 0 0 .25rem; font-size: .9375rem; line-height: 1.25rem; font-weight: 600; }
.cf-demo-rol span { font-weight: 400; color: var(--cf-muted); }
.cf-demo-datos { margin: 0 0 .625rem; font-size: .8125rem; line-height: 1.375rem; color: var(--cf-muted); }
.cf-demo-datos code { font-family: var(--cf-font-mono); font-size: .8125rem; color: var(--cf-ink); overflow-wrap: anywhere; }
.cf-demo-boton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 1rem;
  background: var(--cf-surface);
  color: var(--cf-accent-ink);
  border: 1px solid var(--cf-accent);
  border-radius: var(--cf-r-control);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.cf-demo-boton:hover { background: var(--cf-accent-soft); }
.cf-demo-boton:focus-visible { outline: none; box-shadow: var(--cf-focus); }
.cf-demo-enlace { display: inline-block; margin-top: .75rem; font-size: .875rem; font-weight: 600; color: var(--cf-accent-ink); white-space: nowrap; }

/* En el panel el aviso se queda arriba al bajar la página: la barra superior y el menú lateral (pegados al borde) bajan lo que él mide. */
.cf-demo-aviso--fijo { position: sticky; top: 0; z-index: 40; }
body:has(.cf-demo-aviso--fijo) .fi-topbar-ctn { top: 1.75rem; }
body:has(.cf-demo-aviso--fijo) .fi-sidebar.fi-main-sidebar { top: 1.75rem; height: calc(100dvh - 1.75rem); }
@media (min-width: 64rem) {
  body:has(.cf-demo-aviso--fijo) .fi-sidebar.fi-main-sidebar { top: 5.75rem; height: calc(100dvh - 5.75rem); }
}
