/*
 * 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;

}
/* Visualizador de PDF do Klavix (ver klavix-pdf.js) */
.klavix-pdf {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 2vh 2vw;
}
.klavix-pdf-janela {
    flex: 1;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.klavix-pdf-barra {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1f3a5f;
    color: #fff;
    font: 14px/1.3 Arial, sans-serif;
}
.klavix-pdf-titulo {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.klavix-pdf-botao {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.klavix-pdf-botao:hover { background: rgba(255, 255, 255, 0.15); }
.klavix-pdf-fechar { background: #f0a030; border-color: #f0a030; color: #1f3a5f; font-weight: bold; }
.klavix-pdf-fechar:hover { background: #f5b552; }
.klavix-pdf-quadro {
    flex: 1;
    width: 100%;
    border: 0;
}
/*
 * Tela de login com a identidade da Loureiro (19/10/2026).
 * Cores do logo: azul #1e3a5f, azul-ardósia #334d70, laranja #f5a03a.
 * Logo e fundo provisórios: o logo saiu do klavix.exe e o fundo foi gerado;
 * para trocar, substituir images/logo.png e images/fundo.jpg.
 */
div.login-ui {
    background-color: #1e3a5f;
    background-image:
        linear-gradient(rgba(16, 32, 54, 0.55), rgba(16, 32, 54, 0.80)),
        url("app/ext/klavix/images/fundo.jpg");
    background-size: cover;
    background-position: center;
}

.login-ui .login-dialog-middle {
    padding: 16px;
}

.login-ui .login-dialog,
.login-ui .login-dialog.notification {
    max-width: 380px;
    padding: 0;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    font-size: 1.1em;
}

.login-ui .login-dialog .logo {
    width: 100%;
    height: auto;
    aspect-ratio: 975 / 330;
    margin: 0;
    background-image: url("app/ext/klavix/images/logo.png");
    background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-position: center;
}

.login-ui .login-dialog .version {
    padding: 1em 1.5em 0.25em;
}

.login-ui .login-dialog .version .app-name {
    color: #334d70;
    font-size: 0.8em;
    letter-spacing: 0.15em;
}

.login-ui .login-dialog .version .version-number {
    display: none;
}

.login-ui .login-dialog .login-fields,
.login-ui .login-dialog p {
    margin: 0 1.5em;
}

.login-ui .login-dialog .login-fields input {
    padding: 0.65em 0.8em;
    border: 1px solid #a9bcd0;
    border-radius: 6px;
    margin-bottom: 0.75em;
}

.login-ui .login-dialog .login-fields input:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.18);
}

.login-ui .login-dialog .buttons {
    margin: 0.5em 1.5em 1.5em;
}

.login-ui .login-dialog .buttons input[type="submit"] {
    padding: 0.7em;
    border: none;
    border-radius: 6px;
    background: #f5a03a;
    color: #1e3a5f;
    font-weight: bold;
    font-size: 1em;
    text-shadow: none;
    box-shadow: none;
    cursor: pointer;
}

.login-ui .login-dialog .buttons input[type="submit"]:hover {
    background: #f7b25e;
}

.login-ui .login-dialog .buttons input[type="submit"][disabled] {
    background: #a9bcd0;
    color: #ffffff;
}

.login-ui.error p.login-error {
    background: #b3261e;
    color: #ffffff;
    border: none;
    font-weight: bold;
}
