/* On-Demand: freundliche Startanzeige NUR fuer "entfernter Computer nicht erreichbar/verfuegbar" (Code 207/208).
   Normalfall ist der Halte-Proxy auf dem PVE-Host (nur "Verbinden..."); dieser Dialog ist der Rueckfall. */
.client-status-modal .notification.error:has(p.text[translate="CLIENT.ERROR_CLIENT_207"]),
.client-status-modal .notification.error:has(p.text[translate="CLIENT.ERROR_CLIENT_208"]) {
    background: rgba(18, 48, 88, .9);
    padding: 1.5em 1em;
}
.client-status-modal .notification.error:has(p.text[translate="CLIENT.ERROR_CLIENT_207"]) .body::before,
.client-status-modal .notification.error:has(p.text[translate="CLIENT.ERROR_CLIENT_208"]) .body::before {
    content: "";
    display: block;
    width: 2.6em;
    height: 2.6em;
    margin: .25em auto 1em;
    border: .3em solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: customer-ondemand-spin 1s linear infinite;
}
.client-status-modal p.text[translate="CLIENT.ERROR_CLIENT_207"],
.client-status-modal p.text[translate="CLIENT.ERROR_CLIENT_208"] {
    max-width: 38em;
    margin: 0 auto .5em;
    line-height: 1.45;
    opacity: .92;
}
.client-status-modal p.text[translate="CLIENT.ERROR_CLIENT_207"]::before,
.client-status-modal p.text[translate="CLIENT.ERROR_CLIENT_208"]::before {
    content: "Arbeitsplatz wird gestartet";
    display: block;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: .45em;
    opacity: 1;
}
.client-status-modal .notification.error:has(p.text[translate="CLIENT.ERROR_CLIENT_207"]) .countdown-text,
.client-status-modal .notification.error:has(p.text[translate="CLIENT.ERROR_CLIENT_208"]) .countdown-text {
    opacity: .8;
    font-size: .95em;
}
@media (prefers-reduced-motion: reduce) {
    .client-status-modal .notification.error .body::before { animation: none; }
}
@keyframes customer-ondemand-spin { to { transform: rotate(360deg); } }

/* Warten auf den Arbeitsplatz (Halte-Proxy auf dem PVE-Host haelt die Verbindung, bis die VM bereit ist).
   0-3 s normales "Verbinden..." mit Lade-Kreis; danach blaues Band "Arbeitsplatz wird gestartet".
   Laufende VMs sind vorher verbunden (Zustand CONNECTED beim ersten sync), sehen das Band also nicht. */
.client-status-modal .notification.connecting:has(p.text[translate="CLIENT.TEXT_CLIENT_STATUS_WAITING"]),
.client-status-modal .notification.connecting:has(p.text[translate="CLIENT.TEXT_CLIENT_STATUS_CONNECTING"]) {
    animation: customer-ondemand-band .5s ease 3s forwards;
}
.client-status-modal .notification.connecting:has(p.text[translate="CLIENT.TEXT_CLIENT_STATUS_WAITING"]) .body::before,
.client-status-modal .notification.connecting:has(p.text[translate="CLIENT.TEXT_CLIENT_STATUS_CONNECTING"]) .body::before {
    content: "";
    display: block;
    width: 2.6rem;
    height: 2.6rem;
    margin: .25rem auto 1rem;
    border: .3rem solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: customer-ondemand-spin 1s linear infinite;
}
.client-status-modal p.text[translate="CLIENT.TEXT_CLIENT_STATUS_WAITING"],
.client-status-modal p.text[translate="CLIENT.TEXT_CLIENT_STATUS_CONNECTING"] {
    animation: customer-ondemand-hide 0s linear 3s forwards;
}
.client-status-modal p.text[translate="CLIENT.TEXT_CLIENT_STATUS_WAITING"]::before,
.client-status-modal p.text[translate="CLIENT.TEXT_CLIENT_STATUS_CONNECTING"]::before,
.client-status-modal p.text[translate="CLIENT.TEXT_CLIENT_STATUS_WAITING"]::after,
.client-status-modal p.text[translate="CLIENT.TEXT_CLIENT_STATUS_CONNECTING"]::after {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    animation: customer-ondemand-show .5s ease 3s forwards;
}
.client-status-modal p.text[translate="CLIENT.TEXT_CLIENT_STATUS_WAITING"]::before,
.client-status-modal p.text[translate="CLIENT.TEXT_CLIENT_STATUS_CONNECTING"]::before {
    content: "Arbeitsplatz wird gestartet";
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}
.client-status-modal p.text[translate="CLIENT.TEXT_CLIENT_STATUS_WAITING"]::after,
.client-status-modal p.text[translate="CLIENT.TEXT_CLIENT_STATUS_CONNECTING"]::after {
    content: "Falls Ihr Arbeitsplatz ausgeschaltet war, wird er jetzt hochgefahren. Das kann bis zu 2\0000a0Minuten dauern \2013  bitte warten, die Verbindung wird automatisch hergestellt.";
    font-size: 1rem;
    line-height: 1.45;
    max-width: 38rem;
    margin: 0 auto;
}
@keyframes customer-ondemand-band { to { background: rgba(18, 48, 88, .9); padding: 1.5rem 1rem; } }
@keyframes customer-ondemand-hide { to { font-size: 0; } }
@keyframes customer-ondemand-show { to { max-height: 12rem; opacity: 1; margin-top: .45rem; } }
@media (prefers-reduced-motion: reduce) {
    .client-status-modal .notification.connecting .body::before { animation: none; }
}
/*
 * Orthoben-Branding. Quelle: https://orthoben.com (Logo orthobencut.png, Logo-Orange #EC6505, Logo-Grau #666666).
 * Das reine Logo-Orange erreicht auf Weiß nur 3,27:1 (WCAG AA verlangt 4,5:1 für Text). Deshalb:
 *   --cust-orange        Logo-Orange: nur für Flächen und Zierde (Balken, Rahmen, Fokusring), nie für Fließtext
 *   --cust-akzent        abgedunkeltes Orange (#B04600) für Buttons mit weißem Text und Links (5,64:1 auf Weiß)
 *   --cust-akzent-dunkel Hover (#8F3800, 7,68:1)
 * Schrift: Systemschrift-Kette (die Website nutzt Open Sans; hier bewusst keine Webschrift eingebunden).
 */
:root {
    --cust-orange: #ec6505; --cust-akzent: #b04600; --cust-akzent-dunkel: #8f3800;
    --cust-grau: #666666; --cust-text: #1e1e1e; --cust-tint: #fff4ec; --cust-tint-rand: #f4cfb3;
}
body, input, button, select, textarea {
    font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Anmeldeseite */
.login-ui { background: linear-gradient(180deg, var(--cust-tint) 0%, #fff 55%); }
.login-ui .login-dialog { max-width: 3.6in; background: #fff; border: 1px solid var(--cust-tint-rand); border-top: 5px solid var(--cust-orange); border-radius: 18px; box-shadow: 0 10px 30px rgba(236,101,5,.12); padding: 1.4em 1.4em 1.2em; }
.login-ui .login-dialog .logo {
    width: 5em; height: 5em; margin: .2em auto .5em;
    background-image: url('app/ext/customer-ondemand-texts/images/logo.png');
    background-size: contain; background-repeat: no-repeat; background-position: center;
}
.login-ui .login-dialog .version .app-name { text-transform: none; font-weight: 600; font-size: 1.5em; color: var(--cust-text); }
.login-ui .login-dialog .version .version-number { display: none; }
.login-ui .login-dialog .login-fields input { border-radius: 10px; border-color: #bdbdbd; }
.login-ui .login-dialog .login-fields input:focus { outline: 3px solid rgba(236,101,5,.4); border-color: var(--cust-akzent); }
.login-ui .login-dialog .buttons input[type=submit] {
    background: var(--cust-akzent); border: 0; border-radius: 999px; color: #fff; font-weight: 600; padding: .6em 1em; text-shadow: none; box-shadow: none;
}
.login-ui .login-dialog .buttons input[type=submit]:hover,
.login-ui .login-dialog .buttons input[type=submit]:focus { background: var(--cust-akzent-dunkel); }

/* Nach der Anmeldung: dezente Akzente (Kopfleiste, Links, Verbindungsliste) */
.header { border-bottom: 3px solid var(--cust-orange); }
a, a:visited { color: var(--cust-akzent); }
a:hover, a:focus { color: var(--cust-akzent-dunkel); }
.header h2 { color: var(--cust-text); }
.home .connection:hover, .home .group-list .connection:hover { background-color: var(--cust-tint); }
.home .connection a:focus, .home .connection a:hover { color: var(--cust-akzent-dunkel); }
.menu-dropdown .menu-contents li a:hover, .menu-dropdown .menu-contents li a:focus { background-color: var(--cust-tint); color: var(--cust-akzent-dunkel); }
button, a.button, .action-buttons a { border-radius: 8px; }
button:focus, a:focus, input:focus { outline-color: var(--cust-orange); }
.settings .attributes input[type=submit], button.button.success, .button.success, a.button.success,
.settings button.add-user, .settings button.add-connection { background-color: var(--cust-akzent); color: #fff; border-color: var(--cust-akzent-dunkel); text-shadow: none; }
.settings .attributes input[type=submit]:hover, .button.success:hover, a.button.success:hover { background-color: var(--cust-akzent-dunkel); }

/* Startseite: Hinweis-Kasten */
.cust-hinweis {
    margin: 1em 1em .5em; padding: .9em 1.1em; border-radius: 14px;
    background: var(--cust-tint); border: 1px solid var(--cust-tint-rand); border-left: 5px solid var(--cust-akzent); color: var(--cust-text);
    line-height: 1.45; font-size: .95em;
}
.cust-hinweis__titel { font-size: 1.2em; font-weight: 600; margin-bottom: .35em; }
.cust-hinweis__liste { margin: 0; padding-left: 1.2em; }
.cust-hinweis__liste li { margin: .25em 0; }
@media (max-width: 600px) { .cust-hinweis { margin: .6em; font-size: .9em; } }
/*
 * 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}