/*
    SWE Stylesheet v1.0
    
    !!! This file should not be modified !!!
*/

:root {
    /* ESA branding colours */
    --esa-deep-space-1: #335e6f;
    --esa-trusty-azure: #009bdb;

    /* SWE Portal colours */
    --portal-btn: #2283c5;
    --portal-menu-item: #4f99c6;

    /* Other colors */
    --btn-primary: #54B6E6;
}

html,
body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #393939;
    line-height: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
    font-weight: bold;
}

a {
    color: #22557e;
    text-decoration: none;
}

a:hover {
    color: #122c42;
    text-decoration: underline;
}

input:invalid {
    border: red solid 2px;
}

/* Navigation bar */

.navbar {
    background-color: var(--esa-deep-space-1);
    font-size: 14px;
    margin-bottom: 8px;
}

.navbar-dark .nav-item .nav-link {
    color: white;
}

.navbar-dark .nav-item .nav-link.disabled {
    color: #bbb;
}

.navbar a {
    color: inherit;
    text-decoration: inherit;
}

.navbar a:hover {
    color: inherit;
    text-decoration: inherit;
}

.navbar a.dropdown-item:focus,
.navbar a.dropdown-item:active,
.navbar a.dropdown-item:hover {
    color: white;
    background-color: var(--portal-menu-item);
}

.navbar .product-name {
    color: #eee;
}

/* .navbar .disabled {
    color: #d0d0d0 !important;
} */

/* Tables */

table {
    margin-bottom: 1rem;
}

table,
table.table {
    width: auto;
    line-height: 18px;
}

thead {
    background-color: #e8e8e8;
    color: #1565aa;
}

table> :not(:first-child) {
    border-top: 2px solid #212529;
}

tr {
    border: 0.8px solid #708293;
}

th,
td {
    padding: .5rem .5rem;
}

/* fix for border width in Chrome */
.table>:not(caption)>*>* {
    border-bottom-width: 0.8px;
}

/* Buttons */

button {
    padding: .375rem .75rem;
    border: 1px solid var(--btn-primary);
    line-height: 18px;
    vertical-align: middle;
    background-color: var(--btn-primary);
    color: white;
}

.btn {
    border-radius: 0;
}

.btn-primary {
    background-color: var(--btn-primary);
    color: white;
    border-color: var(--btn-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--esa-trusty-azure) !important;
    border-color: var(--esa-trusty-azure) !important;
}

.btn-product {
    background-color: var(--portal-btn);
    color: white;
    border-color: var(--portal-btn);
}

.btn-product:hover,
.btn-product:focus,
.btn-product:active {
    background-color: #045e9f !important;
    color: white !important;
    border-color: #3198dc !important;
}

button:focus-visible {
    outline: 3px solid #7ec8ec;
}

.btn-product:focus-visible {
    outline: 3px solid #0060df;
}

/* Demo products */

.navbar.demo {
    background: repeating-linear-gradient(135deg,
            var(--esa-deep-space-1) 0px 20px,
            #6e8998 20px 40px);
}

.navbar .demo-text {
    display: none;
    color: #eee;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 1px;
}

.demo .demo-text {
    display: inherit;
}