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

.login-ui .sso-providers {

    padding: 0.25em 0.5em;
    position: absolute;
    bottom: 0;
    left: 0;

}

.sso-providers ul {
    list-style: none;
}

.sso-providers ul, .sso-providers li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sso-providers li::before {
    content: ' / ';
}

.sso-providers li:first-child::before {
    display: 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;

}
.restrictionList{border:0}button.restrictionListButton{font-size:.75em}img.restrictionListHeader{width:.75em;height:.75em}img.restrictionListItem{width:1em;height:1em}/* Оформление в стиле w-stom.ru: синий #0041AA, шрифт Golos Text, логотип ВЕСТ. */
@font-face {
    font-family: 'Golos Text';
    font-weight: 400;
    font-display: swap;
    src: url('app/ext/west-branding/fonts/golos-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Golos Text';
    font-weight: 500;
    font-display: swap;
    src: url('app/ext/west-branding/fonts/golos-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Golos Text';
    font-weight: 600;
    font-display: swap;
    src: url('app/ext/west-branding/fonts/golos-600.woff2') format('woff2');
}

body,
input,
button,
select,
textarea,
.menu-dropdown {
    font-family: 'Golos Text', Arial, sans-serif;
}

body {
    color: #222228;
    background: #F3F6FB;
}

/* Шапка страницы: логотип только в первой (west.js помечает её классом west-first) */
.header {
    background: #fff;
    border-bottom: 1px solid #E3E8F0;
    box-shadow: none;
}

.header.west-first::before {
    content: '';
    flex: none;
    width: 136px;
    height: 40px;
    margin: 0 1.5em 0 0.75em;
    background: url('app/ext/west-branding/images/logo.svg') left center / contain no-repeat;
}

.header h2 {
    color: #222228;
    font-weight: 600;
}

/* Кнопки админа в шапке (west.js) */
.west-admin-links {
    display: flex;
    gap: 0.5em;
    margin: 0 0.75em;
    flex: none;
}

.west-admin-links a {
    padding: 0.35em 0.8em;
    border: 1px solid #0041AA;
    border-radius: 8px;
    color: #0041AA;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.west-admin-links a:hover {
    background: #0041AA;
    color: #fff;
}

/* «Пароль Windows» не сохранён или не подошёл */
.west-admin-links a.west-attention {
    background: #0041AA;
    color: #fff;
}

/* Окно «Пароль Windows» (west.js) */
.west-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.west-modal-box {
    width: min(440px, calc(100vw - 2em));
    max-height: calc(100vh - 2em);
    overflow: auto;
    padding: 1.25em 1.5em;
    border-radius: 12px;
    background: #fff;
    color: #222;
    font-family: 'Golos Text', sans-serif;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.west-modal-box h2 {
    margin: 0 0 0.5em;
    font-size: 1.3em;
}

.west-modal-box p {
    margin: 0 0 0.75em;
    line-height: 1.4;
    font-size: 0.95em;
}

.west-modal-state {
    color: #555;
}

.west-modal-warn {
    color: #b00020;
    font-weight: 600;
}

.west-modal-error {
    color: #b00020;
    min-height: 1.2em;
}

.west-modal-box label {
    display: block;
    margin-bottom: 0.75em;
    font-weight: 600;
}

.west-modal .west-modal-box input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.3em;
    padding: 0.5em 0.6em;
    border: 1px solid #bbb;
    border-radius: 8px;
    font: inherit;
    font-weight: normal;
}

.west-modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.west-modal-buttons button {
    margin: 0;
    padding: 0.5em 1em;
    border: 1px solid #0041AA;
    border-radius: 8px;
    background: #fff;
    color: #0041AA;
    font: inherit;
    cursor: pointer;
}

.west-modal-buttons button[type=submit] {
    background: #0041AA;
    color: #fff;
}

/* Телефон: логотип меньше, заголовок не раздувает шапку */
@media (max-width: 600px) {
    .header.west-first::before {
        width: 84px;
        height: 28px;
        margin: 0 0.5em;
    }

    .header h2 {
        font-size: 1em;
    }

    .header.west-first {
        flex-wrap: wrap;
    }

    .west-admin-links {
        order: 10;
        width: 100%;
        margin: 0.4em 0.5em;
    }

    .west-admin-links a {
        padding: 0.3em 0.6em;
        font-size: 0.85em;
    }
}

/* Кнопки */
button,
a.button,
input[type="submit"] {
    background-color: #0041AA;
    border: 1px solid #0041AA;
    color: #fff;
    border-radius: 8px;
    box-shadow: none;
}

button:hover,
a.button:hover,
input[type="submit"]:hover,
button:active,
a.button:active,
input[type="submit"]:active {
    background-color: #00338A;
    border-color: #00338A;
}

button.danger,
a.button.danger {
    background-color: #C62828;
    border-color: #C62828;
}

button.danger:hover,
a.button.danger:hover {
    background-color: #A51F1F;
    border-color: #A51F1F;
}

/* Ссылки и списки */
a,
a:visited {
    color: #0041AA;
}

.list-item .caption:hover,
.list-item.selected .caption {
    background: #E8EEF8;
}

.page-tabs .page-list li a[href].current,
.page-tabs .page-list li a[href]:hover {
    background: #0041AA;
    color: #fff;
}

/* Водяной знак в сессии (west.js): поверх экрана, не мешает мыши и клавиатуре */
.west-watermark {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 0.3;
    background-repeat: repeat;
}

/* Страница входа (видна только при ошибке SSO) */
.login-ui {
    background: #F3F6FB;
}

.login-ui .login-dialog .logo {
    background-image: url('app/ext/west-branding/images/logo.svg');
    background-size: contain;
    width: 170px;
    height: 50px;
}
