/* Colours */
:root {
    --dark-blue: 29, 31, 70;
    --blue: 0, 69, 135;
    --light-blue: 58, 191, 240;
    --pink: 232, 52, 139;
    --light-grey: 239, 239, 239;
    --grey: 204, 204, 204;
    --dark-grey: 153, 153, 153;
}

/* Defaults */
a {
    color: var(--blue);
}

/* Navigation */
.nav > ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    flex-direction: row;
    margin: 0;
}
.nav > ul > li {
    display: flex;
    padding: 0.25rem;
    margin-right: 1rem;
}
.nav > ul > li:last-of-type {
    margin-right: 0;
}
.nav a {
    text-decoration: none;
    color: rgb(var(--blue));
}
.nav a:hover {
    color: rgb(var(--pink));
}

/* Main nav */
#nav {
    background-color: #fff;
    padding: 0.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgb(var(--blue));
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 0.8rem;
    z-index: 100;
}
#nav > ul > li:not(.sign-out) {
    text-transform: uppercase;
    font-weight: 700;
}
#nav .logo > img {
    display: block;
    width: 4rem;
}
#nav .sign-out {
    flex-grow: 1;
    justify-content: flex-end;
}
#nav .sign-out > a {
    color: #fff;
}

/* Content area */
body {
    padding-top: 8rem;
    min-height: 100vh;
    background-color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

/* Headings */
h1 {
    color: rgb(var(--blue));
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Items */
.items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.items > .item {
    border: 1px solid rgb(var(--dark-grey));
    min-width: 2rem;
    min-height: 2rem;
    margin: 0 0.25rem 0.25rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.items > .item a {
    display: block;
}
.items > .item a > img {
    width: 100%;
}
.items > .item.add {
    font-size: 3rem;
    color: var(--blue);
}
.items > .item.add > a:hover {
    color: var(--pink);
}
.items > .item > .toolbar {
    display: none;
    flex-direction: row;
    gap: 0.25rem;
    background-color: rgba(255, 255, 255, 0.5);
    position: absolute;
    left: 50%;
    margin: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0.25rem;
    width: fit-content;
    max-width: 100%;
}
.items > .item:hover > .toolbar {
    display: flex;
}
.items > .item:hover > .toolbar > * {
    display: inline-block;
}

/* Images */
.thumbnail {
    width: 5rem;
}

/* Tables */
td.shrink, th.shrink {
    width: 0.1%;
    white-space: nowrap;
    text-align: right;
}
td, th {
    vertical-align: middle;
}
tbody + tbody {
    border-top: none !important;
}

/* Generic */
.hidden {
    display: none;
}

/* Alerts */
.alert {
    position: absolute;
    bottom: 0;
    left: 1rem;
}

/* Inputs */
textarea.form-control {
    min-height: 10rem;
}

/* WYSIWYG */
.trumbowyg-editor {
    background-color: #fff;
}

/* Sortable tables */
.handle:hover {
    cursor: grab;
}

/* Sizes */
.small {
    width: 6rem;
}
.medium {
    width: 12rem;
}

/* Statuses */
.status {
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    border-radius: 0.25rem;
    margin: 0 0.25rem 0.25rem 0;
    display: inline-block;
}
.status.bg-secondary {
    background-color: rgb(var(--dark-blue)) !important;
    color: #fff;
}