﻿
:root {
    --background: #ffffff;
    --default-background: #f6f6f6;
    --mark-unused-background: orange;
    --used-background: #d6edd6;
    --unused-background: #f6f6f6;
    --border: 1px solid #c5c5c5;
    --color: #333333;
    --default-color: #454545;
    --input-color: #4F4F4F;
}


*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: arial, sans-serif;
    font-size: 16px;
    color: var(--color);
    width: 100%;
    margin: 0px;
    height: 100%;
}

form {
height: 100%;
}
input, select, textarea {
    font-size: 16px;
    background: var(--background);
    border: var(--border);
    padding: 1em;
    margin-bottom: 0.2em;
    color: var(--input-color);
    border-radius: 0.5em;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

    input:disabled, select:disabled, textarea:disabled {
        border: 1px solid #f2f2f2;
        color: #8f8f8f;
        box-shadow: none;
    }

.ui-padding {
    padding: 1em;
    margin-bottom: 1em;
}
.offScreen {
    position: absolute;
    left: -999px;
    top: -999px;
}

.onScreen {
    position: relative;
}

#divManualInput, #divManualInput .ui-input-text {
    display: inline-block;
}

#btnValidate {
    display: inline-block;
    vertical-align: middle;
}

#divScanInput {
    vertical-align: middle;
}

#divScannerSettings {
    width: 100%;
    padding: 1em;
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}


#divScannerMode {
    border: var(--border);
    border-radius: 0.5em;
    overflow: hidden;
}
    #divScannerMode label {
        border: 0;
        border-radius: 0;
    }

        #divScannerMode label:not(:last-child) {
            border-bottom: var(--border);
        }


#divScannerInfo {
    width: 100%;
    padding: 1em;
    max-width: 400px;
    margin: 0 auto;
}


#wrapper {
    max-width: 960px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

#header {
    padding: 1em;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
}

#logo {
    width: 100%;
    max-width: 200px;
}

#footer {
    padding: 0 1em 1em 1em;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-top: auto;
    position: fixed;
    bottom: 0;
}

    #footer > div {
        margin-bottom: 1em;
    }

#content {
    padding: 1em;
    margin: 0;
    min-height: 5em;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

    #content > div {
        width: 100%;
        margin-bottom: 1em;
    }

        #content > div#divAudio {
            margin-bottom: 0;
        }

#divAccessControlToken {
    display: none;
}

.accessControlTokenRegister {
    margin: 0;
    padding: 0;
}

.accessControlTokenRegister li {
    list-style: none;
    margin-bottom: 10px;
    padding: 10px;
}

.accessControlToken {
    background-color: var(--unused-background);
}

.accessControlTokenUsed {
    background: var(--used-background);
}

#divMessage {
    padding: 0;
    margin: 0;
}

#hStatus {
    padding: 20px;
    margin: 0;
}

#divRegister p {
    cursor: pointer;
}

#divResult {
    background-color: var(--background);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 1000;
    display: none;
    text-align: center;
}

#divResultClose {
    width: 100%;
    height: 100px;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    text-align: center;
    cursor: pointer;
    border-top: var(--border);
    background: var(--default-background);
    font-size: x-large;
    vertical-align: middle;
    line-height: 100px;
}

#divResultMarkUnused {
    width: 100%;
    height: 100px;
    bottom: 100px;
    left: 0;
    right: 0;
    position: fixed;
    text-align: center;
    cursor: pointer;
    background: var(--mark-unused-background);
    font-size: x-large;
    vertical-align: middle;
    line-height: 100px;
}

#divSettings {
    background-color: white;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 1000;
    display: none;
    text-align: center;
    overflow: auto;
}

    #divSettings.settings-visible {
        display: flex;
        flex-direction: column;
    }

#divSettingsClose {
    width: 100%;
    bottom: 0;
    position: sticky;
    text-align: center;
    cursor: pointer;
    border-top: var(--border);
    background: var(--default-background);
    font-size: x-large;
    vertical-align: middle;
    line-height: 100px;
    margin-top: auto;
}

#divMessage {
    padding: 1em;
}

.message-validating {
    background-color: var(--default-background);
    color: var(--color);
}

#divStatistics, #divOrderItemDetails {
    display: none;
    width: 100%;
}

#divLoginStatus {
}

.divTable {
    display: flex;
    flex-direction: column;
}

.divTableRow {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.divTableCell {
    display: flex;
    flex-direction: column;
}

.divCaptionColumn { 
    text-align: left;
    font-size: 0.9em;
    margin: 1em 0 0.5em 0;
    color: var(--color);
    font-weight: bold;
}

.divValueColumn {
}

.ui-checkboxradio-label {
    width: 100%;
}


@media screen and (max-width: 360px) {
    #divLogin .divTableCell {
        display: block;
        width: 100%;
    }


    input, select, textarea, label {
        display: block;
        width: 100%;
    }

    .ui-button {
        width: 100%;
    }
}
