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

}
.client-view-content > vps-session-bar {
    display: block;
    flex: 0 0 auto;
    -webkit-flex: 0 0 auto;
    width: 100%;
    z-index: 3;
}
.vps-session-toolbar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 6px 12px;
    border-bottom: 1px solid #334155;
    background: #172033;
    color: #f8fafc;
    font: 14px/1.25 Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.vps-session-user {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 5px;
    background: #28364e;
}
.vps-session-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.vps-basic-user #guac-menu,
.vps-basic-user .user-menu,
.vps-basic-user .settings-view { display: none !important; }
.vps-basic-user .home-view > vps-simple-home-bar { display: block; }
.vps-simple-home { margin-bottom: 12px; }
.vps-session-toolbar button {
    box-sizing: border-box;
    height: 33px;
    min-width: 78px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #546179;
    border-radius: 6px;
    background: #26344c;
    color: #fff;
    font: 600 14px/1 Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    text-shadow: none;
}
.vps-session-toolbar button:hover { background: #354561; }
.vps-session-toolbar button:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.vps-session-toolbar .vps-session-logout { background: #793244; border-color: #a65369; }
.vps-session-toolbar .vps-session-logout:hover { background: #913d52; }
.vps-session-toolbar button:disabled { opacity: .7; cursor: wait; }
.vps-session-error { font-size: 12px; color: #fecdd3; }
@media (max-width: 600px) {
    .vps-session-toolbar { min-height: 56px; padding: 5px 8px; gap: 6px; }
    .vps-session-toolbar button { height: 44px; padding: 0 10px; min-width: 72px; }
    .vps-session-actions { gap: 6px; }
    .vps-session-user { max-width: 80px; }
    .vps-session-error { position: absolute; top: 57px; left: 8px; z-index: 6; padding: 6px; background: #172033; }
}
