﻿body {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 12px;
    background-color: #FFFFFF;
    color: #000000;
    margin: 0;
    padding: 0;
}

#mainLayoutTable {
    width: 100%;
    max-width: 1920px;
    margin: 10px auto;
    border: 2px outset #999999;
    background-color: #F9F9F9;
}

.header-cell {
    background-color: #DCDCDC;
    border-bottom: 2px solid #999999;
    padding: 8px;
    font-size: 12px;
}

.site-title {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

.content-cell {
    padding: 15px;
}

.footer-cell {
    padding: 10px;
    font-size: 12px;
    color: #666666;
    text-align: center;
}

.fieldset-center {
    width: 50%;
    margin: 0 auto;
}

.table-center {
    margin-left: auto;
    margin-right: auto;
}

a {
    color: #0000FF;
    text-decoration: underline;
}

    a:visited {
        color: #800080;
    }

    a:hover {
        text-decoration: none;
    }

hr {
    border: 0;
    border-top: 1px solid #CCCCCC;
    height: 1px;
}

@media screen and (max-width: 600px) {
    body {
        margin: 0;
    }

    #mainLayoutTable {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .content-cell {
        padding: 5px;
    }

    .desktop-only {
        display: none !important;
    }

    .results-table, .results-table thead, .results-table tbody, .results-table th, .results-table td, .results-table tr {
        display: block;
    }

    .results-table thead {
        display: none;
    }

    .results-table tr {
        display: block;
        margin-bottom: 10px;
        text-align: right;
        vertical-align: middle;
        border: 1px groove #ccc;
    }

    .results-table td {
        display: block;
        position: relative;
        padding: 8px 8px 8px 45%;
        text-align: right;
        vertical-align: bottom;
        border-bottom: 1px groove #eee;
    }

    .results-table td:last-child {
        border-bottom: 0;
    }

    .results-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 8px;
        width: 40%;
        font-weight: bold;
        text-align: left;
    }
}

#barcode-scanner {
    position: relative;
    height: 480px;
    margin-top: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px groove #999;
}

#barcode-scanner video,
#barcode-scanner canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#barcode-scanner video {
    object-fit: cover;
}

#barcode-scanner canvas {
    z-index: 10;
}