@-moz-document url-prefix() {
    body {
        font-weight: lighter !important;
    }
}

@keyframes spinning {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
}

/* unique */

body {
    font-family: "Segoe UI", arial;
    font-size: 0;
    background-color: var(--primary_color);
}

header, nav, main, footer {
    font-size: 10.5pt;
}

header {
    background-color: var(--header_backgroundcolor_adminpanel, --primary_color);
    color: var(--header_color_adminpanel, #fff);
    padding: 20px;
}

header > div {
    position: absolute;
    top: 15px;
    right: 0;
    font-weight: bold;
    white-space: nowrap;
    background-color: var(--header_backgroundcolor_adminpanel, --primary_color);
    padding: 0 20px;
}

header > div > a {
    color: inherit;
    text-decoration: none;
    text-align: right;
    margin-top: 4px;
    display: inline-block;
}

header > div > a:hover {
    text-decoration: underline;
}

body > div {
    display: flex;
}

nav {
    width: 200px;
    background-color: var(--primary_color);
    border-right: solid 2px var(--primary_color);
}

nav > ul {
    background-color: #fff;
    padding: 10px;
    border-radius: 0 6px 6px 0;
    height: 100%;
    /* sticky nav */
    /*
    position: fixed;
    width: 198px;
    overflow-y: auto;
    */
}

nav > ul > li,
nav > ul > details > li {
    list-style-type: none;
}

nav > ul > li + li,
nav > ul > details > li + li {
    margin-top: 10px;
}

nav > ul > details > summary {
    font-weight: bold;
    padding: 5px 10px;
    margin-top: 5px;
    cursor: pointer;
}

nav > ul > li > a,
nav > ul > details > li > a {
    display: block;
    color: #434343;
    margin-left: 30px;
    padding: 5px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

nav > ul > li > a:hover,
nav > ul > li > a.selected,
nav > ul > details > li > a:hover,
nav > ul > details > li > a.selected {
    border: solid #434343 2px;
    border-radius: 8px;
    color: #434343;
}

main {
    width: calc(100% - 200px);
    color: #434343;
    background-color: var(--primary_color);
}

main > div {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px 0 0 6px;
    height: 100%;
    position: relative;
    overflow-x: auto;
}

main > div > div#module-output {
    margin-top: 20px;
}

footer {
    background-color: var(--primary_color);
}

body > iframe {
    height: 0;
}

/* ------- */

hr {
    clear: both;
}

h1 {
    font-size: 32pt;
}

a {
    text-decoration: none;
    color: #325386;
}

a:hover {
    text-decoration: underline;
}

button,
a.button,
label.button,
input[type="submit"] {
    background-color: #434343;
    color: #fff;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    font-family: "Segoe UI", Arial;
    font-size: 9.5pt;
    display: inline-block;
}

button:hover,
a.button:hover,
label.button:hover,
input[type="submit"]:hover {
    background-color: #325386;
    cursor: pointer;
}

input, select, textarea {
    line-height: 14pt;
    border: solid 1px #c1c1c1;
    padding: 0 4px;
}

table {
    width: 100%;
}

table tr > td,
table tr > th {
    padding: 5px;
}

body > div.popup {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

body > div.popup > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--light_grey2);
    font-size: 10.5pt;
    padding: 20px;
    border-radius: 6px;
    overflow-y: auto;
    max-width: 98%;
}

body > div.popup > div > button {
    float: right;
    position: relative;
    top: -10px;
    right: -10px;
}

.highlight {
    border: dashed 2px #b50000;
    background-color: #ffb71e;
    padding: 0 4px;
    border-radius: 4px;
    font-weight: bold;
    color: #b50000;
}

/* Table filter */

table tr > th > input,
table tr > th > select {
    float: right;
}

.entry.hidden {
    display: none;
}

/* Locale selection in popup */

body > div.popup > div > * > input,
body > div.popup > div > * > textarea,
body > div.popup > div > * > select,
body > div.popup > div > * > button {
    display: block;
    width: 100%;
    margin-top: 10px;
}

body > div.popup > div > * > textarea {
    min-width: 640px;
    min-height: 320px;
}

body > div.popup > div > form.insert-form > input,
body > div.popup > div > form.insert-form > select {
    margin-top: 2px;
}

body > div.popup > div > form.insert-form > input + label,
body > div.popup > div > form.insert-form > select + label {
    display: block;
    margin-top: 10px;
}

body > div.popup > div > form.insert-form > p {
    font-size: 8pt;
}

body > div.popup div.locale-selection {
    display: flex;
    flex-wrap: wrap;
    width: 500px;
}

body > div.popup div.locale-selection > label {
    width: 50%;
    text-align: center;
    font-weight: bold;
}

body > div.popup div.locale-selection > select {
    width: calc(50% - 25px);
    height: 250px;
}

body > div.popup div.locale-selection > div {
    width: 50px;
    text-align: center;
}

body > div.popup div.locale-selection > div > button {
    display: block;
    margin: 70px auto;
}

body > div.popup div.info ul {
    clear: both;
    margin: 6px 0 12px;
}

body > div.popup div.info li {
    list-style-type: none;
    padding: 0 4px;
    vertical-align: top;
    clear: right;
}

body > div.popup div.info li:nth-child(odd) {
    background-color: #fff;
}

body > div.popup div.info li > span {
    float: right;
    margin-left: 20px;
}

/* Login form in popup */

body > div.popup form.login-form {
    background-color: var(--light_grey2);
    border-radius: 6px;
    padding: 20px;
    font-size: 14pt;
}

body > div.popup form.login-form > input {
    display: block;
    width: 100%;
    font-size: 14pt;
    line-height: 18pt;
    padding: 4px;
}

body > div.popup form.login-form > input[type="text"],
body > div.popup form.login-form > input[type="password"] {
    margin-bottom: 20px;
}

body > div.popup form > h3 {
    margin-bottom: 20px;
}

/* MOBILE */

body.mobile {
    max-width: 640px;
}

body.mobile h1 {
    font-size: 24pt;
}

body.mobile h3 {
    margin: 5px;
}

body.mobile main {
    width: auto;
}

body.mobile main > div {
    border-radius: 0;
}

button.job-has-note{
    background-color: #f00;
}