/* ========= Layout do LOGIN (sem achatar) ========= */
body.login-ui{
  min-height:100vh!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative
}

/* Card confortável e compacto */
.login-ui .login-dialog{
  max-width:400px!important;width:90%!important;padding:24px 24px 28px!important;margin:0 auto!important;border-radius:8px!important;box-shadow:0 0 12px rgba(0,0,0,.1)!important;position:relative;z-index:1;background-color:rgba(255,255,255,.92)!important
}

/* ↓ descola do topo em telas “normais” */
@media (min-height:600px){
  .login-ui .login-dialog{margin:8vh auto 4vh!important}
}

/* Área do logo */
.login-ui .logo,
.login-ui .app-logo,
.login-ui .login-dialog .logo{
  width:100%!important;margin:12px auto 18px!important;text-align:center!important;display:flex!important;justify-content:center!important;align-items:center!important;min-height:90px!important;background:none!important;float:none!important
}

/* Imagem do logo */
.login-ui .logo img,
.login-ui .app-logo img{
  display:block!important;visibility:visible!important;opacity:1!important;width:auto!important;height:auto!important;max-width:420px!important;max-height:120px!important;margin:0 auto!important;object-fit:contain!important
}

/* Título dentro do card */
.login-ui .login-dialog h1,
.login-ui .login-dialog .title{
  text-align:center!important;margin-bottom:18px!important;font-size:1.2rem!important
}

/* Inputs e botão */
.login-ui input[type="text"],
.login-ui input[type="password"]{font-size:.95rem!important}
.login-ui button{font-size:1rem!important;padding:10px 0!important}

/* Esconde h1 padrão, mantém .level-title se existir */
.login-ui .login-dialog h1{display:none!important}
.login-ui .login-dialog h1.level-title{display:block!important}
.login-ui h1:not(.level-title),
.login-ui .login-title,
.login-ui .title{display:none!important}

/* ======= Topo pós-login (logo visível) ======= */
.header .brand,.header .title .app-logo{background:none!important}
.header .brand img,.header .title .app-logo img{
  display:block!important;width:40px!important;height:40px!important;object-fit:contain!important;margin:0!important;opacity:1!important
}

/* === WALLPAPER SÓ NA TELA DE LOGIN (CSS-only) === */
html, body { height: 100%; }

/* Mostra o wallpaper apenas quando o body tem .login-ui */
/* Fora do login, nunca mostre wallpaper herdado */
body:not(.login-ui) {
  background: none !important;
}

/* Nunca use camada #lv-wallpaper (se existir de versões antigas, esconda) */
#lv-wallpaper { display: none !important; }

/* Wrappers do login transparentes para o wallpaper aparecer ao fundo */
body.login-ui #login-ui,
body.login-ui .container,
body.login-ui .content,
body.login-ui .main,
body.login-ui .page,
body.login-ui .view,
body.login-ui .wrapper {
  background: transparent !important;
}

/* Card acima do fundo e legível */
body.login-ui .login-dialog {
  position: relative;
  z-index: 1;
  background-color: rgba(255,255,255,0.92) !important;
  box-shadow: 0 0 12px rgba(0,0,0,.1) !important;
}

/* Descola do topo em telas razoáveis */
@media (min-height: 600px) {
  body.login-ui .login-dialog {
    margin: 8vh auto 4vh !important;
  }
}

/* Mata qualquer camada grande com fundo branco por cima do body na tela de login */
body.login-ui [style*="position: fixed"],
body.login-ui [style*="position: absolute"] {
  background-color: transparent !important;
}

/* Wrappers do login transparentes (não cobrem o fundo do body) */
#login-ui,
.login-ui,
.login-ui > div,
.login-ui .container,
.login-ui .content,
.login-ui .main,
.login-ui .page,
.login-ui .view,
.login-ui .wrapper {
  background: transparent !important;
}

/* Overlay suave: usa uma var do JS quando na tela de login */
body.login-ui::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--lv-overlay, transparent);
  z-index: 0;
  pointer-events: none;
}
#guac-floating-back {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483647;
  padding: 8px 16px;
  border-radius: 10px;
  background-color: #007bff;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  user-select: none;
  transition: background-color 0.2s ease;
}
#guac-floating-back:hover {
  background-color: #0056b3;
}
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/* Label/tag denoting the user that shared a connection */
.jdbc-share-tag {

    background: #0095ff;
    padding: 0.25em;

    -moz-border-radius:    0.25em;
    -webkit-border-radius: 0.25em;
    -khtml-border-radius:  0.25em;
    border-radius:         0.25em;

    color: white;
    font-size: 0.75em;
    font-weight: bold;

}
.totp-enroll p,.totp-details{font-size:.8em}.totp-qr-code{text-align:center}.totp-qr-code img{margin:1em;border:1px solid rgba(0,0,0,0.25);box-shadow:1px 1px 2px rgba(0,0,0,0.25);cursor:pointer}h3.totp-details-header{font-size:.8em}h3.totp-details-header::before{content:'▸ '}.totp-details-visible h3.totp-details-header::before{content:'▾ '}.totp-details,.totp-hide-details{display:none}.totp-details-visible .totp-details{display:table}.totp-details-visible .totp-hide-details{display:inline}.totp-details-visible .totp-show-details{display:none}.totp-hide-details,.totp-show-details{color:blue;text-decoration:underline;cursor:pointer;margin:0 .25em;font-weight:normal}.totp-details{margin:0 auto}.totp-details th{padding-right:.25em;text-align:left}.totp-details td{font-family:monospace}.totp-detail{display:inline-block;margin:0 .25em}