/*
 * Tema administrativo `telest-admin`.
 *
 * IMPORTANTE: este console pertence ao gerenciamento do próprio Keycloak.
 * Ele não é o Auth Portal, não é a Telest Workspace e não deve ser usado como
 * interface de negócio de clientes. O aviso fixo no rodapé reforça esse limite
 * para operadores que acessam o console administrativo.
 */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('../fonts/red-hat-display-700.woff2') format('woff2');
}

:root,
.pf-v5-theme-dark {
  --pf-v5-global--FontFamily--text: 'Poppins', 'Red Hat Text', system-ui, sans-serif;
  --pf-v5-global--FontFamily--heading: 'Red Hat Display', 'Poppins', system-ui, sans-serif;
  --pf-v5-global--primary-color--100: #3869eb;
  --pf-v5-global--primary-color--200: #2056a8;
  --pf-v5-global--primary-color--300: #1a4a8f;
  --pf-v5-global--primary-color--400: #143c73;
  --pf-v5-global--link--Color: #3869eb;
  --pf-v5-global--link--Color--hover: #2056a8;
  --pf-v5-global--active-color--100: #3869eb;
  --pf-v5-c-brand--Height: 2.25rem;
}

.pf-v5-c-masthead {
  border-bottom: 3px solid #3869eb;
}

.pf-v5-c-masthead__brand img.keycloak__pageheader_brand {
  width: auto;
  height: 2.25rem;
  object-fit: contain;
}

/* Aviso permanente: o operador está no gerenciamento do Keycloak. */
body::after {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10000;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: #2056a8;
  box-shadow: 0 0.35rem 1.1rem rgb(0 0 0 / 22%);
  color: #ffffff;
  content: 'Gerenciamento do Keycloak';
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}

@media (max-width: 640px) {
  body::after {
    right: 0.6rem;
    bottom: 0.6rem;
    max-width: calc(100vw - 1.2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
