* {
    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: 1368px;
}

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;
}

.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-weight: bold;
    font-size: 18px;
    margin: 5px 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.margin {
    margin: 15px 0;
}

.formLine.buttonWrapper {
    justify-content: flex-end;
}

.formLine label {
    display: block;
    width: 160px;
    padding: 0 15px 0 0;
    text-align: right;
    font-size: 16px;
}

.formLine p {
    margin: 0;
}

.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 {
    padding: 15px;
}

nav a {
    display: flex;
    border: 1px solid;
    border-top: 0;
    padding: 4px 8px;
    line-height: 21px;
    font-size: 16px;
    text-decoration: none;
    flex-direction: row;
    justify-content: space-between;
}

nav a:first-child {
    border-top: 1px solid;
}

.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;
}

.fitScreen {
    overflow: auto;
    max-height: 80vh;
}

.scrollableBlock .scrollableFixed {
    border-right: 1px solid;
}

.scrollableBlock .scrollableContent {
    overflow: auto;
    height: 100%;
}

.fakeTable {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.noMargin,
.fakeTable.noMargin {
    margin: 0;
}

.fakeTable.noOverflow {
    overflow: hidden;
}

.fakeTable.reversed {
    flex-direction: row;
}

.fakeTable .line {
    display: flex;
    flex-direction: row;
    min-height: 30px;
}

.fakeTable .line.sep {
    height: 6px;
}

.fakeTable.reversed .line {
    flex-direction: column;
}

.fakeTable .line .cell:not(.hidden) {
    display: flex;
    width: 160px;
    position: relative;
}

.fakeTable.reversed .line .cell {
    height: 28px;
}


.thickLines .fakeTable .line .cell {
    height: 30px;
}

.fakeTable .line .cell .multiselectContent {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.fakeTable .line .cell.large .complexContent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 260px; 
}

.fakeTable .line .cell .complexContent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 290px; 
}

.fakeTable .previsionsCells .comboSelect .value {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.fakeTable .line .cell .complexContent p,
.fakeTable .line .previsionsCells span > div > p {
    display: block;
    padding: 0 2px 0 4px;
    white-space: nowrap;
    width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 28px;
    font-size: 14px;
}

.fakeTable .line .previsionsCells span > div > p.details,
.fakeTable .line .previsionsCells span > div > p.specializations,
.fakeTable .line .cell .complexContent p.details,
.fakeTable .line .cell .complexContent p.specializations {
    font-size: 11px;
    display: inline;
    text-align: right;
    width: 130px;
    height: auto;
    line-height: 1;
}

.fakeTable .line .previsionsCells span.value div.detailsColumn,
.fakeTable .line .cell .complexContent .detailsColumn {
    display: flex;
    flex-direction: column;
    margin: auto;
}

.matched {
    display: inline-block;
    width: 20px;
    height: 24px;
    background: url('../bundles/app/images/checkmark.png') no-repeat top left;
    flex: 0 0 20px;
}

.fakeTable .line .cell.centered {
    align-items: center;
    justify-content: center;
}

.fakeTable .line .cell.extraLarge {
    width: 300px;
}

.fakeTable .line .cell.large {
    width: 260px;
}

.fakeTable .line .cell.medium {
    width: 200px;
}

.fakeTable .line .cell.interm {
    width: 120px;
}

.fakeTable .line .cell.small {
    width: 100px;
}

.fakeTable .line .cell.smaller {
    width: 75px;
}

.fakeTable .line .cell.tiny {
    width: 50px;
}

.fakeTable .line .cell p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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: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: 100px;
    border: none;
    outline: none;
}

.fakeTable input[type=checkbox].hidden,
.resetPassword.hidden,
.resetPassword:hover.hidden,
.undoResetPassword.hidden,
.undoResetPassword:hover.hidden,
.fakeTable .line .cell .hidden,
.hidden {
    display: none;
}

.readonly {
    font-size: 13px;
    line-height: 24px;
}

a {
    outline: none;
    text-decoration: none;
}

.resetPassword,
.undoResetPassword,
.deleteCRUDLine {
    display: block;
    width: 28px;
    height: 28px;
    background: top left transparent;
}

.resetPassword:hover,
.undoResetPassword:hover,
.deleteCRUDLine:hover {
    background-position: 0 -28px;
}

.resetPassword.disabled,
.undoResetPassword.disabled,
.deleteCRUDLine.disabled,
.deleteCRUDLine.disabled:hover {
    opacity: 0.4;
    background-position: top left;
    cursor: default;
}

p.message {
    padding: 6px 10px;
    margin: 16px 0;
}

p.success,
p.error,
p.warning {
    padding: 6px 10px;
    margin: 16px 0;
    font-weight: bold;
}

.footerInfo, .flexCentered {
    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: 12px;
    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;
}

.multiSelect .option[data-sqi-available="full"] {
    text-decoration: line-through;
    /*font-size: 70%;*/
}

.multiSelect .option[data-sqi-available="forbid"] {
    text-decoration: line-through;
    font-style: italic;
    /*font-size: 70%;*/
}

.multiSelect .option[data-sqi-available="available"] {
    font-weight: bold;
}

.multiSelect .optionsList .option[data-sqi-warning] {
    display: none;
}

.switchBox {
    width: 36px;
    height: 20px;
    padding: 1px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.4s ease-out;
    align-self: flex-end;
}

label.switchBoxContainer {
    width: 51px;
}

.switchBox .switchBoxButton {
    width: 18px;
    height: 18px;
    border-radius: 8px;
    transition: margin 0.4s ease-out;
}

.switchBox.on .switchBoxButton {
    margin-left: 16px;
}

ul li span {
    display: block;
}

.indent4 {
    margin-left: 30px;
}

.indent2 {
    margin-left: 18px;
}

.sep {
    height: 1px;
    margin: 10px 0;
    width: 200px;
}

p.small,
ul.small {
    font-size: 14px;
}

.nonValidating {
    opacity: 0.6;
}

.choiceLegend,
.fakeTable .line .cell.choiceLegend {
    font-size: 14px;
    line-height: 16px;
    padding: 2px 5px;
    flex-direction: column;
    text-align: left;
    display: block;
}

.choiceLegend span {
    display: inline;
}

.choiceLegend .specializations {
    font-size: 11px;
    font-style: italic;
}

.choiceLegend .details {
    font-size: 11px;
    display: inline;
}

.choiceLegend + .choiceLegend {
    margin-left: 10px;
}

ul li.noStyle {
    list-style: none;
}

.multiCells,
.multiCells > div {
    width: 100%;
}

.multiCells .formLine {
    margin-top: 0;
}

p.specializationRecap {
    text-align: center;
    font-size: 20px;
    word-spacing: 10px;
}

/* Prevision navigation */
button.arrow {
    width: 20px;
    height: 30px;
    margin-left: 5px;
    margin-right: 5px;
}

.confirmationPopup {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

/* Confirmation popup */
.popupContent {
    padding: 20px;
}

.popupContent h4,
.popupContent p {
    margin-bottom: 20px;
}

.formLine.buttonWrapper button + button {
    margin-left: 20px;
}

#pagination {
    margin: 10px auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

#pagination li {
    list-style: none;
    display: block;
    padding: 0 5px;
    margin: 0 0 4px 0;
}

#pagination li a {
    display: block;
    box-sizing: border-box;
    padding: 4px 6px;
    height: 31px;
    text-align: center;
    border: 1px solid;
}