* {
    font-family: Segoe UI, Arial, sans-serif;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;
    min-width: 1132px;
}

body.hasMenu {
    padding-right: 240px;
}

.main {
    display: flex;
    min-width: 800px;
    max-width: calc(100% - 20px);
    flex-direction: column;
    align-items: flex-start;
}

.mainContent {
    padding: 20px;
    min-width: 980px;
    max-width: 1000px;
    z-index: 2;
    overflow: auto;
}

.mainContent.wide {
    max-width: 1200px;
}

.mainContent.wider {
    max-width: 1400px;
}

.mainContent,
.mainTitle {
    width: 100%;
}

h1,
h2,
h3 {
    display: block;
    font-weight: normal;
}

h1 {
    font-size: 44px;
    margin: 30px 0 10px 0;
}

h2 {
    font-size: 22px;
    margin: 30px 0 10px 28px;
}

h3 {
    font-size: 22px;
    margin: 0 0 20px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid;
}

h4 {
    font-size: 16px;
    margin: 20px 0 12px 0;
}

.mainContent p {
    margin: 12px 0;
}

.mainTitle {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.formLine {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.formLine + .formLine {
    margin-top: 15px;
}
.formLine.buttonWrapper {
    justify-content: flex-end;
}

.formLine label {
    display: block;
    width: 160px;
    padding: 0 15px 0 0;
    text-align: right;
    font-size: 16px;
}

.formLine input[type=text],
.formLine input[type=number],
.formLine input[type=email],
.formLine input[type=password] {
    display: block;
    width: 260px;
    padding: 1px 6px;
    border: none;
    border-bottom: 1px solid;
}

.formLine ul {
    display: block;
    margin: 0 0 0 15px;
    padding: 4px 15px;
}

.formLine ul.errorList {
    margin: 0;
    width: 100%;
}

.formLine li {
    list-style: none;
    font-size: 13px;
}

button, a.button {
    display: block;
    border: 1px solid;
    width: 140px;
    text-align: center;
    padding: 4px 12px;
    cursor: pointer;
    outline: none;
    font-size: 13px;
}

.formLine input[type=text]:focus,
.formLine input[type=number]:focus,
.formLine input[type=password]:focus {
    outline: none;
}

.menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 240px;
    height: 100vh;
    z-index: 40;
    flex-direction: column;
    justify-content: space-between;
}

nav {
    margin: 15px 0;
}

nav a {
    display: block;
    padding-left: 38px;
    margin: 5px 0;
    font-size: 14px;
    text-decoration: none;
    flex-direction: row;
}

nav a.selected {
    padding-left: 34px;
    border-left: 4px solid;
}

nav a.navChapter {
    padding-left: 24px;
    font-size: 18px;
    font-weight: 500;
}

nav a.navChapter.selected {
    padding-left: 20px;
}

nav a.navChapter span {
    border-bottom: 1px solid;
    display: block;
}

.connexionContainer {
    padding: 15px;
    display: flex;
    flex-direction: row;
}

.connexionContainer a {
    display: block;
    height: 20px;
    width: 20px;
    background: no-repeat top left;
    opacity: 0.6;
    margin: 0;
}

.connexionContainer a:hover {
    opacity: 1;
}

.connexionContainer p {
    margin: 0 0 0 14px;
    display: block;
    font-size: 16px;
}

.scrollableBlock {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

.scrollableBlock .scrollableFixed {
    border-right: 1px solid;
}

.scrollableBlock .scrollableContent {
    overflow: auto;
}

.fakeTable {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.fakeTable.noMargin {
    margin: 0;
}

.fakeTable.noOverflow {
    overflow: hidden;
}

.fakeTable.reversed {
    flex-direction: row;
}

.fakeTable .line {
    display: flex;
    flex-direction: row;
}

.fakeTable .line.sep {
    height: 6px;
}

.fakeTable.reversed .line {
    flex-direction: column;
}

.fakeTable .line .cell {
    display: flex;
    width: 160px;
    position: relative;
}

.fakeTable.reversed .line .cell {
    height: 28px;
}

.fakeTable .line .cell.centered {
    align-items: center;
    justify-content: center;
}

.fakeTable .line .cell.large {
    width: 260px;
}

.fakeTable .line .cell.medium {
    width: 200px;
}

.fakeTable .line .cell.small {
    width: 100px;
}

.fakeTable .line .cell.tiny {
    width: 50px;
}

.fakeTable .line .cell + .cell.noBorder {
    border: none;
}

.fakeTable.reversed .line .cell.twoLines {
    height: 56px;
    align-items: center;
}

.fakeTable.reversed .line .cell.sep {
    height: 6px;
    padding: 0;
}

.fakeTable.reversed .line .cell p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fakeTable:not(.reversed) .line.title {
    border-bottom: 1px solid;
}

.fakeTable .line .cell.title,
.fakeTable .line.title .cell {
    font-weight: bold;
    font-size: 16px;
    padding: 6px;
}

.fakeTable .line.title.sep .cell {
    padding: 0;
}

.fakeTable.reversed .line:nth-child(n + 2) .cell,
.fakeTable:not(.reversed) .line .cell + .cell:not(.noBorder) {
    border-left: 1px solid;
}

.fakeTable input[type=checkbox] {
    display: block;
    width: 15px;
    height: 15px;
}

.fakeTable input[type=text],
.fakeTable input[type=number],
.fakeTable input[type=password],
.fakeTable p {
    border: 0;
    outline: none;
    background: none;
    height: 28px;
    padding: 3px 6px;
    margin: 0;
    width: 100%;
}

.fakeTable .line .cell select {
    width: 100%;
    border: none;
    outline: none;
}

.hidden {
    display: none;
}

a {
    outline: none;
    text-decoration: none;
}

.deleteCRUDLine {
    display: block;
    width: 28px;
    height: 28px;
    background: top left transparent;
}

.deleteCRUDLine:hover {
    background-position: 0 -28px;
}

.deleteCRUDLine.disabled,
.deleteCRUDLine.disabled:hover {
    opacity: 0.4;
    background-position: top left;
    cursor: default;
}

p.success,
p.error,
p.warning {
    padding: 6px 10px;
    margin: 16px 0;
    font-weight: bold;
}

.footerInfo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footerInfo p {
    font-size: 10px;
    opacity: 0.6;
}

.badge {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge + ul.error {
    display: none;
    position: absolute;
}

.badge:hover + ul.error {
    display: block;
    left: 100%;
    top: 0;
    width: auto;
    min-width: 300px;
    z-index: 60;
    margin: 0;
    padding: 2px 12px 2px 32px;
}

.badge + ul.error li {
    white-space: nowrap;
}

.badge + ul.error li + li {
    margin-top: 4px;
}

.twoCol {
    display: flex;
    flex-direction: row;
}

.twoCol .col {
    max-width: 50%;
    overflow: hidden;
}

.twoCol .col + .col {
    margin-left: 20px;
}

.mainContent img {
    margin-left: 10px;
}

img.bordered,
.quoteBlock {
    border: 2px solid;
}

.quoteBlock {
    padding: 4px 10px;
}

img.clickToZoom {
    cursor: zoom-in;
}

img.clickToZoom.fullSized {
    cursor: zoom-out;
}

.obstructLayer {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
}

.dialogWindow {
    /*position: fixed;*/
    display: block;
    min-width: 200px;
    max-width: 1200px;
    max-height: 830px;
    top: 0;
    left: 0;
    padding: 20px;
    z-index: 100;
    font-size: 14px;
    overflow: auto;
}

.backgroundImage {
    position: absolute;
    z-index: 1;
}

.switchBox {
    width: 36px;
    height: 20px;
    margin-top: 8px;
    padding: 1px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.4s ease-out;
}

.switchBox .switchBoxButton {
    width: 18px;
    height: 18px;
    border-radius: 8px;
    transition: margin 0.4s ease-out;
}

.switchBox.on .switchBoxButton {
    margin-left: 16px;
}
