/* Estilos fixos da personalizacao; as cores escolhidas vem do brand.js */
.q-toolbar__title img.brand-logo {
  height: 28px;
  max-width: 160px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}

/* etiqueta colorida na tabela de agentes (cor definida pelo brand.js) */
.q-table td > .brand-chip {
  display: inline-block;
  max-width: 230px;
  padding: 2px 9px;
  border-radius: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* selo de atendimento (24h / Avulso) ao lado do hostname na tabela de agentes */
.q-table td > .brand-svc {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  vertical-align: middle;
}

/* aviso "vX.Y.Z available" do Tactical (QChip): escondido para tecnicos, visivel para administradores
   (o brand.js marca html[data-brand-admin]); o chip do certificado SSL nao tem .text-overline */
.q-toolbar__title .q-chip.text-overline {
  display: none !important;
}

html[data-brand-admin] .q-toolbar__title .q-chip.text-overline {
  display: inline-flex !important;
}

.q-header a.brand-devices-btn {
  margin: 0 8px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  color: inherit;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.q-header a.brand-devices-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.text-h4 .brand-login-logo {
  display: block;
  max-height: 96px;
  max-width: 80%;
  margin: 0 auto 8px;
  object-fit: contain;
}

.text-h4 .brand-welcome {
  margin-top: 8px;
  white-space: normal;
  opacity: 0.8;
}

/* instrucoes de primeiro acesso na tela de configuracao do 2FA */
#brand-totp-help {
  margin: 0 16px 8px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #e8f1fb;
  color: #1f2d3d;
  font-size: 14px;
  line-height: 1.5;
}

#brand-totp-help ol {
  margin: 8px 0;
  padding-left: 20px;
}

#brand-totp-help .warn {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #fff3cd;
  color: #5c4400;
}

/* posicao do formulario de login (a pagina de login usa .bg-image com flex-center) */
html[data-brand-login="left"] .bg-image {
  justify-content: flex-start !important;
  padding-left: 6vw;
}

html[data-brand-login="right"] .bg-image {
  justify-content: flex-end !important;
  padding-right: 6vw;
}

@media (max-width: 599px) {
  html[data-brand-login] .bg-image {
    justify-content: center !important;
    padding-left: 0;
    padding-right: 0;
  }
}

#brand-login-footer {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 9000;
  max-width: 90vw;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #eee;
  font: 13px/1.4 Roboto, Arial, sans-serif;
  text-align: center;
}

#brand-login-footer a {
  color: inherit;
}

#brand-notice {
  position: fixed;
  left: 8px;
  bottom: 2px;
  z-index: 9000;
  font: 10px/1.4 Roboto, Arial, sans-serif;
  color: #888;
  opacity: 0.7;
  pointer-events: none;
}

#brand-notice a {
  color: inherit;
  pointer-events: auto;
}

/* atalho "Remote Background" na barra do Take Control (mesmo tamanho dos botoes size=sm do Quasar) */
.brand-tc-btn {
  margin-left: 12px;
  padding: 2px 10px;
  min-height: 26px;
  border: 0;
  border-radius: 3px;
  background: #455a64;
  color: #fff;
  font: 500 12px/1.4 Roboto, Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.brand-tc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-tc-btn .q-icon {
  font-size: 16px;
}

.brand-tc-btn:hover {
  filter: brightness(1.15);
}
