body {
    background-color: skyblue;
    font-family: sans-serif;
    color: #1b1e21;
}

header {
    background-color: whitesmoke;
    display: flex;
    justify-content: space-between;
    padding-left: 3em;
    padding-right: 3em;
    border: grey solid 2px;
    border-radius: 10px;
    font-family: serif;
    margin-bottom: 10px;
}
h1 a {
    text-decoration: none;
    color: #171710;
}

h1 a:hover {
    text-decoration: underline;
    color: rebeccapurple;
}

article {
    background-color: whitesmoke;
    padding: 1rem;
    margin-bottom: 1rem;
}

.session-form {
    background-color: whitesmoke;
    display: flex;
    flex-flow: row wrap;
    padding: 1em;
    border-top: lightslategray 1px solid;
    border-bottom: lightslategray 1px solid;
    margin-bottom: 0.5em;
    div {
        display: inline-flex;
        padding-right: 1em;
        label {
            padding-top: 3px;
        }
    }
}

form div div {
    padding: 0.4em;
    label {
        padding-right: 0.5em;
    }
}

.body-container {
    background-color: whitesmoke;
    display: grid;
    grid-template-columns: minmax(20%, 300px) minmax(800px, 70%);
    gap: 10px;
    margin: auto;
    nav {
        grid-column: 1 / 2;
        grid-row-start: 1;
        border: lightslategray 1px solid;
    }
    article {
        grid-column: 2 / 3;
        grid-row-start: 1;
    }
}

.table {
    border-collapse: collapse;
    border: 2px solid rgb(140 140 140);
    font-family: sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
}

caption {
    caption-side: bottom;
    padding: 10px;
    font-weight: bold;
}

section {
    margin-bottom: 2em;
}

.thead,
tfoot {
    background-color: rgb(228 240 245);
}

th,
td {
    border: 1px solid rgb(160 160 160);
    padding: 8px 10px;
}

td:last-of-type {
    text-align: right;
}

tbody > tr:nth-of-type(even) {
    background-color: rgb(237 238 242);
}


tfoot th {
    text-align: right;
}

tfoot td {
    font-weight: bold;
}

nav {
    background-color: whitesmoke;
    margin: 0.5rem;
    padding: 0.5rem;
}

div.user-notifs a svg {
    width: 100%;
    padding-right: 0.5em;
    color: black;
}

div.user-icon a {
    display: inline-block;
    text-align: center;
    padding-top: 1em;
}

div.user-icon a svg,
div.user-icon a span {
    display: block;
    width: 100%;
    clear: both;
    color: black;
}
div.user-notifs {
    position: relative;
}
.user-notifs-popover {
    position: absolute;
    top: 50px;
    right: 10px;
    height: fit-content;
    width: max(20vw, 200px);
    border: 2px solid #1b1e21;
    background-color: whitesmoke;
    z-index: 3;
}
div.notification {
    border: 2px solid dimgrey;
    padding-left: 1em;
    padding-right: 1em;
}

li.formula {
    position: relative;
}

.formula-popover + div {
    position: absolute;
    top: 2em;
    left: 1.5em;
    z-index: 3;
    border: 1px solid gray;
    background-color: antiquewhite;
    padding: 0.4em;
}

div.side-by-side {
    display: flex;
    justify-content: space-evenly;
}

details {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 0.5em 0.5em 0;

    summary {
        font-weight: bold;
        margin: -0.5em -0.5em 0;
        padding: 0.5em;
    }
}

details[open] {
    padding: 0.5em;
    summary {
        border-bottom: 1px solid #aaa;
        margin-bottom: 0.5em;
    }
}

div#form_delete_data {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-template-columns: repeat(2, auto);
    max-width: max-content;
}

div.alert {
    display: block;
    padding: 0.5em;
    margin: 0.3em;
    width: auto;
    border-style: solid;
    border-width: 2px;
    border-radius: 1em;
    background-color: whitesmoke;
}
.alert-warning {
    border-color: orange;
}
.alert-success {
    border-color: yellowgreen;
}
.alert-danger {
    border-color: red;
}

.d-none {
    display: none;
}

div.formula-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    outline: 1px lightblue solid;
    border-radius: 4px;
    padding: 0 2em 1em 2em;
    margin: 0.5em;
    width: max-content;
    max-width: 100%;
}

a.formula-hint {
    display: inline-block;
    outline: 1px green dotted;
    border-radius: 1px;
    margin: 0.1em;
    padding: 0.2em;
    color: mediumblue;
}
.formula-hint:hover {
    text-decoration: underline;
}

.formula {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

span.desc {
    padding-left: 1.4em;
    color: #4b4b6b;
}

.user-widget {
    display: flex;
    align-items: center;
}
button.space {
    padding: 0.4em;
    margin-right: 0.4em;
}