html, body {
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

body, label, textarea, button {
    background: darkslategray;
    color: white
}

input, label, span {
    /*margin: 3px;*/
    /*font-size: 150%;*/
}

.page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content {
    /*height: 100%;*/
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-center {
    display: flex;
    justify-content: center;
}

.manual-input-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.content-right {
    display: flex;
    justify-content: right;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

span.hotkey {
    background: black;
    border: 1px solid white;
    border-radius: 20%;
    color: white;
    font-size: inherit;
    padding: 1px 5px;
    text-decoration: none !important;
}

span.red-box, span.blue-box {
    color: white;
    font-size: inherit;
    padding: 1px 5px;
}

span.red-box {
    background: darkred;
}

span.blue-box {
    background: blue;
}

button {
    margin: 3px;
    padding: 10px;
    /*font-size: 120%;*/
    text-wrap: nowrap !important;
}

button:disabled {
    color: #6b7280;
}

button.url {
    border: 0;
    background: none !important;
    cursor: pointer;
}

button.url:hover {
    text-decoration: underline;
}

input, textarea {
    border: 0;
}

textarea {
    /*margin: 3px;*/
    /*font-size: 100%;*/
    /*width: 100%;*/
}

.hidden {
    display: none;
}

.text-xb {
    font-weight: bolder;
}

.text-b {
    font-weight: bold;
}

.text-xxl {
    font-size: 200%;
}

.text-xl {
    font-size: 180%;
}

.text-l {
    font-size: 150%;
}

.text-m {
    font-size: 120%;
}

.text-n {
    font-size: 100%;
}

.text-s {
    font-size: 80%;
}

.text-xs {
    font-size: 60%;
}

.m3 {
    margin: 3px;
}

.mt3 {
    margin-top: 3px;
}

.mb3 {
    margin-bottom: 3px;
}

.ml3 {
    margin-left: 3px;
}

.mr3 {
    margin-right: 3px;
}

.m5 {
    margin: 5px;
}

.mt5 {
    margin-top: 5px;
}

.mb5 {
    margin-bottom: 5px;
}

.ml5 {
    margin-left: 5px;
}

.mr5 {
    margin-right: 5px;
}

.m10 {
    margin: 10px;
}

.mt10 {
    margin-top: 10px;
}

.mb10 {
    margin-bottom: 10px;
}

.ml10 {
    margin-left: 10px;
}

.mr10 {
    margin-right: 10px;
}

.m20 {
    margin: 20px;
}

.mt20 {
    margin-top: 20px;
}

.mb20 {
    margin-bottom: 20px;
}

.ml20 {
    margin-left: 20px;
}

.mr20 {
    margin-right: 20px;
}

.p10 {
    padding: 10px;
}

.pt10 {
    padding-top: 10px;
}

.pb10 {
    padding-bottom: 10px;
}

.pl10 {
    padding-left: 10px;
}

.pr10 {
    padding-right: 10px;
}

.p5 {
    padding: 5px;
}

.pt5 {
    padding-top: 5px;
}

.pb5 {
    padding-bottom: 5px;
}

.pl5 {
    padding-left: 5px;
}

.pr5 {
    padding-right: 5px;
}

.p3 {
    padding: 3px;
}

.pt3 {
    padding-top: 3px;
}

.pb3 {
    padding-bottom: 3px;
}

.pl3 {
    padding-left: 3px;
}

.pr3 {
    padding-right: 3px;
}

.p1 {
    padding: 1px;
}

.pt1 {
    padding-top: 1px;
}

.pb1 {
    padding-bottom: 1px;
}

.pl1 {
    padding-left: 1px;
}

.pr1 {
    padding-right: 1px;
}

.bt1 {
    border-top: 1px solid;
}

.bb1 {
    border-bottom: 1px solid;
}

.bl1 {
    border-left: 1px solid;
}

.br1 {
    border-right: 1px solid;
}

.bt2 {
    border-top: 2px solid;
}

.bb2 {
    border-bottom: 2px solid;
}

.bl2 {
    border-left: 2px solid;
}

.br2 {
    border-right: 2px solid;
}

.bt3 {
    border-top: 3px solid;
}

.bb3 {
    border-bottom: 3px solid;
}

.bl3 {
    border-left: 3px solid;
}

.br3 {
    border-right: 3px solid;
}

.bt4 {
    border-top: 4px solid;
}

.bb4 {
    border-bottom: 4px solid;
}

.bl4 {
    border-left: 4px solid;
}

.br4 {
    border-right: 4px solid;
}

.bc-white {
    border-color: white;
}

.bc-black {
    border-color: black;
}

.bg-red {
    background: darkred;
}

.bg-blue {
    background: blue;
}

.bg-darkviolet {
    background: darkviolet;
}

.bg-orangered {
    background: orangered;
}

.bg-normal {
    background: darkslategray;
}

.cr-white {
    color: white;
}

.cr-red {
    color: darkred;
}

.cr-blue {
    color: blue;
}

.cr-yellow {
    color: yellow;
}

.page_title {
    font-size: 180%;
    margin: 10px 3px 10px 3px;
    text-align: center;
    font-weight: bold;
}

div.lang_buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

div.message {
    margin: 10px 3px;
    color: darkred;
    display: none;
}

.busy-indicator {
    border: 2px solid gray;
    background: black;
    padding: 50px;
    display: none;
}

.stock-cell, .progress {
    height: 40px;
    line-height: 40px;
    margin: 0 0;
    text-align: center;
    font-size: 150%;
}

.progress {
    display: none;
}

.center {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.status-bar {
    padding: 0;
    margin: 3px;
    font-size: 100%;
    color: #a0aec0;
    width: 100%;
}

.status-bar ul {
    max-height: 50px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    font-size: 70%;
}

.scanner-emulator {
    border: 1px solid darkred;
    margin: 10px 0;
    position: absolute;
    left: 10px;
    bottom: 50px;
    width: 300px;
}

.scanner-emulator input {
    font-size: 14px;
    width: 100%;
}

.scanner-emulator button {
    font-size: 14px;
    padding: 1px;
}

.manual-input-quantity {
    font-weight: bold;
    font-size: 200%;
    padding: 0;
    text-align: center;
    flex: 1 1;
    max-width: 100%;
}

/* Fullscreen modal container */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Black background with opacity */
}

/* Modal content */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*background-color: darkslategray;*/
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 90%;
    height: 90%;
    max-height: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.modal-content-header {
    font-size: 200%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-content-text {
    flex-grow: 1;
    font-size: 150%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-content-footer {
    font-size: 150%;
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: black;
}