/* Based on MVP.css v1.6.3 - https://github.com/andybrewer/mvp */

:root {
    --border-radius: 5px;
    --color: #118bee;
    --color-accent: #118bee15;
    --color-bg: #fff;
    --color-bg-secondary: #e9e9e9;
    --color-secondary: #920de9;
    --color-secondary-accent: #920de90b;
    --color-shadow: #f4f4f4;
    --color-text: #000;
    --color-text-secondary: #999;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --hover-brightness: 1.2;
    --justify-important: center;
    --justify-normal: left;
    --line-height: 1.5;
    --dark-color: rgb(18, 21, 71);
    --warning-color: rgb(197, 27, 27);
    --width-content: 800px;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    line-height: var(--line-height);
    margin: 0;
    padding: 0;
}

footer,
header,
main {
    margin: 0 auto;
    max-width: var(--width-content);
    padding: 2rem 1rem;
}

/* Headers */
article header,
div header,
main header {
    padding-top: 0;
}

header {
    text-align: var(--justify-important);
}

header a b,
header a em,
header a i,
header a strong {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

header nav img {
    margin: 1rem 0;
}

/* Nav */
nav {
    align-items: center;
    display: flex;
    font-weight: bold;
    justify-content: space-between;
    margin-bottom: 7rem;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 0.5rem;
    position: relative;
    text-align: left;
}

p {
    margin: 0.75rem 0;
    padding: 0;
}

pre {
    margin: 1rem 0;
    max-width: 100%;
    padding: 1rem 0;
}

/* Links */
a {
    color: var(--color-secondary);
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    filter: brightness(var(--hover-brightness));
    text-decoration: underline;
}

a b,
a em,
a i,
a strong,
button {
    border-radius: var(--border-radius);
    display: inline-block;
    font-size: medium;
    font-weight: bold;
    line-height: var(--line-height);
    margin: 0.5rem 0;
    padding: 1rem 2rem;
}

button {
    font-family: var(--font-family);
}

button:hover {
    cursor: pointer;
    filter: brightness(var(--hover-brightness));
}

a b,
a strong,
button {
    background-color: var(--color);
    border: 2px solid var(--color);
    color: var(--color-bg);
}

a em,
a i {
    border: 2px solid var(--color);
    border-radius: var(--border-radius);
    color: var(--color);
    display: inline-block;
    padding: 1rem 2rem;
}

/* Images */
figure {
    margin: 0;
    padding: 0;
}

figure img {
    max-width: 100%;
}

figure figcaption {
    color: var(--color-text-secondary);
}

/* Forms */

button:disabled,
input:disabled {
    background: var(--color-bg-secondary);
    border-color: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    cursor: not-allowed;
}

button[disabled]:hover {
    filter: none;
}

form {
    display: block;
    width: 100%;
    text-align: var(--justify-normal);
    margin: 1rem 0;
}

input,
label,
select,
textarea {
    display: block;
    font-size: inherit;
    width: 100%;
    box-sizing:border-box; /* maybe just on input? */
}
input[type="checkbox"] {
    width: auto;
}

input[type="checkbox"],
input[type="radio"] {
    display: inline-block;
}

input[type="checkbox"]+label,
input[type="radio"]+label {
    display: inline-block;
    font-weight: normal;
    position: relative;
    top: 1px;
}

input,
select,
textarea {
    border: 1px solid var(--color-bg-secondary);
    border-radius: var(--border-radius);
    padding: 0.4rem 0.8rem;
}

input[readonly],
textarea[readonly] {
    background-color: var(--color-bg-secondary);
}

label {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

/* Tables */
table {
    border: 1px solid var(--color-bg-secondary);
    border-radius: var(--border-radius);
    border-spacing: 0;
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    padding: 0;
    white-space: nowrap;
}

table td,
table th,
table tr {
    padding: 0.4rem 0.8rem;
    text-align: var(--justify-important);
}

table thead {
    background-color: var(--color);
    border-collapse: collapse;
    border-radius: var(--border-radius);
    color: var(--color-bg);
    margin: 0;
    padding: 0;
}

table tr:nth-child(even) {
    background-color: var(--color-accent);
}






nav {
    background-color: var(--dark-color);
    color: rgb(255, 255, 255);
    padding: 0;
    margin-bottom: 0;
}

table.inventory {
    border: 1px solid var(--dark-color);
    font-size: small;
}

table.inventory td div {
    min-width: 6vw;
    max-width: 6vw;
    overflow: hidden;
}

table.inventory.disabled div, table.inventory tr.disabled div {
    text-decoration: line-through;
}

img.bottleThumb {
    width: 32px;
}

img.bottleThumb.empty {
    opacity: 0.3;
}

div.content {
    margin: auto;
    width: 80vw;
    max-width: var(--width-content);
}

div.menu-options {
    margin: 1rem 0;
}

div.menu-options a,button {
    width: 100%;
}

span#logout {
    float: right;
}

div#receipt {
    font-family: monospace;
    white-space: pre;
}

.warnings {
    color: var(--warning-color);
    font-weight: bolder;
}

button.engages-machinery::before {
    content: '⚙️';
}

ul li.active {
    list-style-image: url('/static/progress.gif')
}

ul li.failed {
    list-style-type: '❌';
}

ul li.succeeded {
    list-style-type: '✔️';
}

ul#progress li {
    padding-left: 1rem;
}

span.aligned-label {
    display: block;
    font-weight: bold;
}

img {
    max-width: 100%;
}

div.captureContainer {
    text-align: center;
}

table.automats tr td:first-child {
    text-align: left
}