/*
 *
 * main red -> #ff455d
 * Dark red -> #ff1a38
 *
**/


@font-face {
    font-family: Ubuntu;
    src: url('/public/fonts/Ubuntu-Regular.ttf');
}
@font-face {
    font-family: Ubuntu;
    src: url('/public/fonts/Ubuntu-Italic.ttf');
    font-style: italic;
}
@font-face {
    font-family: Ubuntu;
    src: url('/public/fonts/Ubuntu-Medium.ttf');
    font-weight: bold;
}
@font-face {
    font-family: Ubuntu;
    src: url('/public/fonts/Ubuntu-MediumItalic.ttf');
    font-weight: bold;
    font-style: italic;
}

body {
    background-color: #ffe5e9;
    display: flex;
    max-height: 100vh;
    font-family: Ubuntu;
    margin: 0;
}

menu, ul {
    margin: 0;
    padding: 0;
}

body > menu {
    min-width: 250px;
    padding: 0 1em;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

body > menu li {
    margin: 0.5em 0;
    padding: 0.25em 0;
    border: 1px solid #ff455d;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 5px;
}
body > menu li.selected {
    background: #ff455d;
}
body > menu li.selected a {
    color: white;
}
body > menu li.spacer {
    border: none;
    flex: 1;
}
body > menu li a {
    color: #ff455d;
    font-weight: bold;
    display: block;
    padding: 4px 15px;
    text-decoration: none;
}
body > menu li span.mdi {
    vertical-align: middle;
}
body > menu span.mdi:before {
    padding: 0 1em 0 0;
    font-size: 1.5em;
    vertical-align: middle;
}
body > .page {
    flex: 1;
    overflow: auto;
    padding: 1em;
    border-left: 1px solid red;
}

li {
    list-style-type: none;
}

a {
    color: #ff455d;
}
fieldset,details {
    border-color: #ff455d;
}
#source-container > fieldset {
    max-height: calc(100vh - 3.5em);
    overflow: auto;
}

fieldset > legend,
details > summary{
    font-weight: bold;
    color: #ff455d;
}

fieldset ul.actions {
    display: inline-block;
}
fieldset ul.actions>li {
    display: inline;
}
fieldset ul.actions>li.withInput>input {
    border: 1px solid #ff455d;
    border-radius: 4px;
    padding: 0.3em 28px 0.3em 0.3em;
    margin: 0.25em;
}
fieldset ul.actions>li.withInput {
    position: relative;
}
fieldset ul.actions>li.withInput>a {
    position: absolute;
    right: 4px;
    top: -.24em;
}

fieldset ul.actions a, ul.perFileAction a {
    color: #ff455d;
    font-weight: bold;
    font-size: 1.65em;
}

.page > fieldset, .page > details {
    margin: 0 0 1.5em 0;
}

.ag-cell-value .entry-name:before {
    color: #ff455d;
    vertical-align: -0.125em;
    margin: 0 0.25em 0 0;
    font-size: 1.5em;
}

.ag-header-cell-text {
    text-decoration: underline;
}

.ag-overlay .error:before {
    color: #ff455d;
    font-size: 1.66em;
    vertical-align: -0.17em;
    margin-right: 5px;
}

.checkbox {
    display: inline-block;
    border: 1px solid #ff455d;
    border-radius: 4px;
    color: #ff455d;
    padding: 10px;
}

.checkbox.selected {
    background: #ff455d;
    color: white;
}

.loginContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.loginContainer > form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 300px;
}

.loginContainer input {
    border: 1px solid #ff455d;
    border-radius: 4px;
    padding: 0.3em;
    margin: 0.25em;
}

.loginContainer img {
    max-width: 75%;
    margin: 0 auto 2em auto;
}

#task-container .entry-name.mdi-archive-check:before {
    color: #16AD1B;
}

.sparkline {
    display: block;
    border-radius: 4px;
    padding: 0.2em;
}

body.sessionTasksOverlayVisible > .page {
    margin-bottom: 10em;
}
body #sessionTasksToken {
    display: inline-block;
    height: 3em;
    width: 3em;
    background-color: #ff1a38;
    border-radius: 2em;
    position: fixed;
    bottom: 1em;
    color: white;
}
body #sessionTasksToken:before {
    padding: 25%;
    font-size: 1.5em;
}
body #taskCloseButton {
    display: none;
    position: fixed;
    width: 1em;
    height: 1em;
    background-color: #ff1a38;
    padding: 0.25em;
    right: 1em;
    color: white;
}
body #sessionTasksOverlay {
    display: none;
    position: fixed;
    right: 0;
    min-width: calc(100vw - 250px - 3em);
    height: 10em;
    background: #fff0f0;
    bottom: 0;
    overflow: auto;
}

#sessionTasksOverlay > ul {
    padding: 1em;
}

body.sessionTasksOverlayVisible #sessionTasksOverlay {
    display: inline-block;
}
body.sessionTasksOverlayVisible #sessionTasksToken {
    display: none;
}
body.sessionTasksOverlayVisible #taskCloseButton {
    display: inline-block;
}

body.sessionTasksOverlayEmpty #taskCloseButton,
    body.sessionTasksOverlayEmpty #sessionTasksOverlay,
    body.sessionTasksOverlayEmpty #sessionTasksToken {
    display: none;
}

#rgpdCookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f5f5f5;
    padding: 0.75em 1em;
}

.help-logo {
    display: block;
    width: 10em;
    margin: 2em auto;
}

.page #summary {
    margin: 0.5em 0 0 3em;
}

.page #summary ul {
    padding: 0 0 0 1em;
}

.page #summary li {
    list-style-type: disc;
    line-height: 1.5em;
    font-weight: bold;
    color: #ff1a38;
}

table.h2r-versions {
    overflow: auto;
    display: inline-block;
    width: 100%;
    user-select: none;
}

table.h2r-versions > tbody {
    display: block;
}

table.h2r-versions tr {
    border: 1px solid #ff455d;
    border-top: 0px;
    background: #f5f5f5;
    display: block;
}

table.h2r-versions tr:first-child {
    border: 1px solid #ff455d;
}

table.h2r-versions tr:nth-child(odd) {
    background: #ffffff;
}

#help-content img {
    max-width: 100%;
    display: block;
}

