.desktopdaheim-input {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 6px);
    right: 8px;
    z-index: 20;
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 7px;
    background: #172230;
}

.desktopdaheim-input .desktopdaheim-touch {
    display: none;
}

.desktopdaheim-input .desktopdaheim-phone-toggle {
    display: none;
}

.desktopdaheim-actions {
    display: flex;
    gap: 4px;
}

.desktopdaheim-input button {
    min-height: 44px;
    margin: 0;
    padding: 0 7px;
    border: 1px solid #83a3bb;
    border-radius: 4px;
    color: #fff;
    background: #253e52;
    font-size: 14px;
    white-space: nowrap;
    touch-action: manipulation;
}

.desktopdaheim-input button[aria-pressed="true"],
.desktopdaheim-input button[aria-expanded="true"] {
    background: #426f91;
}

.desktopdaheim-paste {
    position: absolute;
    top: 100%;
    right: 0;
    box-sizing: border-box;
    width: min(320px, calc(100vw - 16px));
    padding: 10px;
    border: 1px solid #83a3bb;
    border-radius: 7px;
    color: #fff;
    background: #172230;
}

.desktopdaheim-paste textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 5px 0 8px;
    padding: 6px;
    font-size: 16px;
}

@media (max-width: 960px), (any-pointer: coarse) {
    .desktopdaheim-input {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .desktopdaheim-input .desktopdaheim-touch {
        display: inline-block;
    }

    .desktopdaheim-paste {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (pointer: coarse) and (max-width: 540px),
       (pointer: coarse) and (max-width: 1024px) and (max-height: 500px) {
    .desktopdaheim-input {
        top: max(8px, env(safe-area-inset-top, 0px));
        right: max(8px, env(safe-area-inset-right, 0px));
        left: auto;
        transform: none;
    }

    .desktopdaheim-input .desktopdaheim-phone-toggle {
        display: block;
        padding: 0 11px;
    }

    .desktopdaheim-actions {
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        display: none;
        grid-template-columns: 1fr 1fr;
        padding: 5px;
        border-radius: 7px;
        background: #172230;
    }

    .desktopdaheim-expanded .desktopdaheim-actions {
        display: grid;
    }

    .desktopdaheim-actions desktopdaheim-paste > button {
        width: 100%;
    }

    .desktopdaheim-paste {
        top: calc(100% + 4px);
        right: 0;
        left: auto;
        width: min(320px, calc(100vw - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
        transform: none;
    }
}
/*
 * 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}