/* CSS reset, https://www.joshwcomeau.com/css/custom-css-reset/ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { min-height: max(100%, 100vh); }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

@font-face {
    font-family: carlito;
    src: url("Carlito-Regular.ttf")
}
@font-face {
    font-family: carlito;
    font-weight: bold;
    src: url("Carlito-Bold.ttf")
}
@font-face {
    font-family: carlito;
    font-style: italic;
    src: url("Carlito-Italic.ttf")
}

body {
    font-family: carlito, Calibri, Verdana, Arial, sans-serif;
    background-color: #fff;
    color: #000;
}

nav h1 {
    font-size: 2rem;
    display: flex;
}
h1>img {
    width: 30px;
    height: 30px;
    margin-right: 0.5rem;
    margin-top: 0.6rem;
}
nav h1 a {
    text-decoration: none;
    color: #fff;
}
h1 {
    font-size: 1.5rem;
    display: flex;
}
h2 {
    font-size: 1.3rem;
    margin-left: 0.5rem;
}
.highlighted {
    background-color: #f3ff44;
}
pre {
    background: #aaa;
    color: #000;
    font-family: monospace;
    margin: 1rem 0.5rem;
}

p {
    margin: 1rem 0.5rem;
}

nav {
    background: #0076be;
    color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.4rem 0.5rem;
    height: 3.6rem;
    position: sticky;
    top: 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    padding-top: 0.7rem;
}
nav ul li {
    margin-left: 0.5rem;
}
nav ul li .button {
    color: #fff;
    background: #2a6497;
    padding: 0.5rem 1rem;
}

.content header {
    background: #fff;
    position: sticky;
    top: 3.6rem;
    padding: 0.3rem 0.3rem;
    height: 2.7rem;
}

#pid { display: none; }

.flash {
    background: #faa;
    padding-left: 0.5rem;
}

form {
    display: flex;
    flex-direction: column;
    margin-left: 0.5rem;
}
form label {
}
form input {
    margin-bottom: 0.3rem;
    background: #fff;
    border: 1px solid #999;
    color: #000;
}
form input:focus {
    outline: none;
}
form input[type=text] {
    width: 20rem;
}
form input[type=password] {
    width: 20rem;
}
form input[type=submit] {
    width: 6rem;
}
form input[type=submit]:hover {
    background: #fff;
}
form input[type=submit]:focus {
    background: #fff;
    outline: 1px solid #000;
}
form textarea {
    color: #000;
    background: #eee;
    font-family: monospace;
    width: 50rem;
    height: 30rem;
}

form input[type=file] {
}

.menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
}
.menu li {
    background: #aaa;
    margin-right: 0.3rem;
    white-space: nowrap;
}
.menu li.selected {
    background: #ccc;
}
.menu li:hover {
    background: #ddd;
}
.menu a:focus {
    outline: 1px solid #000;
}
.menu a {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.button {
    color: #000;
    text-decoration: none;
    background: #ccc;
    padding: 0.5rem 1rem;
    font-weight: bold;
}
.button:hover {
    background: #aaa;
}
.button:focus {
    outline: 1px solid #000;
}

.user {
    display: flex;
    flex-direction: row;
    height: 2.5rem;
    align-items: center;
    margin: 0 0.5rem;
}

.user .id {
    width: 3rem;    
}
.user .name {
    width: 12rem;
}
.user .roles {
    width: 25rem;
}
.user .actions {
    width: 12rem;
}

.adduser {
    margin-left: 0.5rem;
}
