* {
    box-sizing: border-box;
}

:root {
    --dark-color: #07215a;
    --light-grey: white;
    --light-color: #b4bccd;
    --green: #3e8e41;
    --orange: #ec7513;
}

:fullscreen {
    font-size: 1em;
}

@font-face {
    font-family: RedHatDisplay;
    src: url("../fonts/redhatdisplay-variable.ttf");
}

@font-face {
    font-family: faSolid;
    src: url("../fonts/fa-solid.ttf");
}

html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: RedHatDisplay, sans-serif;
    font-size: 1em;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
    background-color: darkgrey;
    overflow: scroll;
    background-image: url("../images/rdt-bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
}

main {
    display: grid;
    grid-template-rows: min-content auto min-content;
    margin: auto;
    height: 100%;
    max-width: 1000px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .8);
    box-sizing: border-box;
    opacity: .9;
}

header {
    background-color: var(--dark-color);
    color: var(--light-grey);
    padding: 5px 8px;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#user-icon::after {
    font-family: faSolid;
    font-size: 1.5em;
    color: white;
    content: "\f2bd";
    box-sizing: border-box;
}


#header-block {
    float: left;
    display: flex;
    align-items: center;
    flex-grow: 2;
}

section {
    background-color: var(--light-grey);
    box-shadow: 0 6px 5px -5px rgba(0, 0, 0, .75) inset, 0 -6px 5px -5px rgba(0, 0, 0, .75) inset;
    text-align: center;
    overflow: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Hide scroll bars - BEGIN */

section::-webkit-scrollbar {
    display: none;
}

/* Hide scroll bars - END */

footer {
    background-color: var(--dark-color);
    padding: 5px 8px;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#navPanel {
    width: 100%;
}

#vantecLogo {
    height: 2em;
}

#rr-logo {
    width: 1.5em;
    margin: 0 0 0 10px;

}

/* Table styles - BEGIN */
#mainPanel {
    width: 100%;
}

#dataTable {
    margin: auto;
    width: 95%;
}

tr {
    width: 100%;
    border-bottom: 1px solid var(--dark-color);
    box-sizing: border-box;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-around;
}

tr:first-child {
    border: none;
}

td {
    color: black;
    border: none;
    font-weight: 600;
    background-color: transparent;
    font-size: .8em;
    padding: 4px 0;
}

td:hover {
    background-color: transparent;
    cursor: pointer;
}

th {
    background-color: transparent;
    color: black;
    text-align: left;
}

#entries tr.clicked {
    background: transparent;
}

#entries tr.highlight {
    background: transparent;
}

.th1 {
    background-color: transparent;
    color: black;
}

.th2 {
    background-color: transparent;
    color: black;
}

.th3 {
    background-color: transparent;
    color: black;
}

.td1 {
    color: black;
    width: 100%;
    font-weight: 400;
    text-align: center;
    padding: 0;
    font-size: calc(1em + .4vw);
    flex-basis: 35%;
}

.td1::after {
    font-family: faSolid;
    content: "\f054";
    color: var(--dark-color);
    float: right;
    margin-right: 1.5em;
    font-size: .9em;
    margin-top: .1em;
}

.td2 {
    color: black;
    text-align: center;
    padding: 0;
    font-size: calc(1em + .4vw);
    flex-basis: 65%;
}

.tw1 {
    color: black;
    border: none;
    width: 55%;
}

.tw1:hover {
    background-color: transparent;
    cursor: pointer;
}

/* Table styles - END */

.tooltip {
    display: none;
    background: #C8C8C8;
    margin-left: 15px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    width: 200px;
    height: 50px;
}

input {
    font-family: RedHatDisplay, sans-serif;
    outline: none;
    border: none;
    background-color: transparent;
    width: 100%;
    display: inline-block;
    text-align: left;
    font-weight: 800;
    font-size: calc(1em + .6vw);
}


.hidden-col {
    height: 0;
    width: 0;
    min-width: 0;
    max-width: 0;
}

.input-box {
    display: block;
    color: black;
    width: 100%;
    border: none;
    padding: 5px;
    border-radius: 3px;
    font-size: calc(1em + .6vw);
}

.input-box:focus {
    background-color: rgba(242, 175, 15, .3);
    border-radius: 3px;
    border: none;
    color: black;
}

.input-box:not(:focus) {
    background-color: transparent;
    color: black;
}

::placeholder {
    color: darkred;
}

.read-only-box {
    color: black;
    background-color: transparent;
    width: 100%;
    font-size: calc(1em + .4vw);
    font-weight: 300;
}

.read-only-box:hover {
    background-color: transparent;
    cursor: pointer;
}

.barcode-box {
    color: black;
    width: 100%;
    padding: 5px;
}

.barcode-box:focus {
    background-color: rgba(242, 175, 15, .3);
    border-radius: 3px;
    border: none;
    color: black;
}

.confirm-panel {
    font-family: RedHatDisplay, sans-serif;
    font-size: 1em;
    text-align: center;
    display: none;
    position: fixed;
    z-index: 1;
    left: 14vw;
    top: 30vh;
    width: 80vw;
    max-width: 800px;
    padding: .5em;
    background: white;
    color: var(--dark-color);
    font-weight: bold;
    border: 1px solid var(--dark-color);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .7);
    box-sizing: border-box;
}

#yesbtn, #nobtn {
    display: inline-flex;
    font-family: RedHatDisplay, sans-serif;
    background: var(--dark-color);
    width: 6em;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    padding: .5em 1.5em;
    color: var(--light-grey);
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

#confirmtext {
    width: 90%;
    text-align: center;
}

#confirminput {
    position: relative;
    left: 15%;
    width: 75%;
    text-align: center;
    display: none;
}

.button {
    display: inline-flex;
    font-family: RedHatDisplay, sans-serif;
    padding: .5em .5em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    color: var(--dark-color);
    background-color: var(--light-grey);
    border: none;
    border-radius: .20rem;
    margin: 3px;
    justify-content: center;
    align-items: center;
    transition-duration: 0.3s;
}

.button:active, .button:hover {
    background-color: var(--green);
}

.askbutton {
    border: thin;
    display: none;
    background-color: transparent;
    padding: 0;
    width: 10px;
}

.final {
    color: black;
    padding-right: 3px;
}

.interim {
    color: gray;
}

#start_img {
    height: 35px;
}

#loadingmsg {
    color: black;
    background: #fff;
    padding: 10px;
    position: fixed;
    top: 10%;
    left: 10%;
    z-index: 100;
    margin-left: 1px;
    margin-top: 1px;
}

#loadingover {
    background: black;
    z-index: 99;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    filter: alpha(opacity=0.1);
    -moz-opacity: 0.1;
    -khtml-opacity: 0.1;
    opacity: 0.1;
}

.alertoverlay {
    display: none;
    opacity: 0.4;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
}

.alertbox {
    left: 10px;
    top: 10px;
    z-index: 9999;
    position: absolute;
    display: none;
    background: white;
    border: 7px black;
    border-radius: 3px;
    font-size: 20px;
    opacity: 1;
}

.alertboxhead {
    background: red;
    padding: 10px;
    color: white;
}

.alertboxbody {
    background: white;
    padding: 40px;
    color: black;
}

.alertboxfoot {
    background: red;
    padding: 10px;
    text-align: right;
}

.rdtmessage {
    background: var(--orange);
    color: white;
    font-size: 1.4em;
    font-weight: 800;
}

#rdtmessage {
    width: 100%;
    text-align: left;
}

/* Styles from body -- BEGIN */


#txtCompany {
    display: inline-block;
    font-size: .9em;
    min-width: max-content;
    margin: 0 15px;
    font-weight: 600;
}

#txtSelect {

    font-family: RedHatDisplay;
    width: 250px;
    margin: 10px auto;
    height: 2em;
    font-weight: 700;
    font-size: 1em;
    text-align: center;
    color: var(--dark-color);
    background-color: transparent;
    border: 2px solid var(--dark-color);
    border-radius: 3px;
}

#txtTranType {
    color: var(--light-grey);
    font-size: .9em;
    text-align: center;
}

#txtSystem {
    width: 10%;
    height: 15px;
    font-size: 10px;
}

#menuOption {
    position: absolute;
    width: 1px;
    height: 75%;
    font-size: 1px;
    border: none;
    z-index: -1;
    float: right;
}

#txtUser {
    display: inline-block;
    font-size: .9em;
    width: 5em;
    font-weight: 600;
    color: var(--light-grey);
    text-transform: uppercase;
    text-align: right;
    align-self: flex-end;
    margin-right: 5px;
}

#alert {
    width: 75%;
    text-align: left;
}

#loadingmsg {
    display: none;
}

#loadingover {
    display: none;
}

/* navPanel styles */
#btnPanel {
    display: inline-block;
    border: none;
}

#button {
    float: right;
}

#imagefile {
    display: none;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /*  background-color: #fefefe; */
    background-color: gainsboro;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    border-radius: 15px;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles from body -- END */

@media screen and (max-width: 320px) {
    body {
        background-size: cover;
        font-size: .8em;
    }

    main {
        max-width: 480px;
    }

    tr {
        padding: 2px 0;
    }

    .td1 {
        font-size: .85em;
    }

    .td2 {
        font-size: .85em;
    }

    .tw1 {
        font-size: 1em;
    }

    input {
        font-size: 1em;
    }

    .input-box {
        font-size: .85em;
    }

    .read-only-box {
        font-size: .85em;
    }

    button {
        font-size: .8em;
    }
}

@media screen and (min-width: 321px) and (max-width: 720px) {
    body {
        background-size: cover;
    }

    header {
        font-size: .9em;
    }

    tr {
        padding: 5px 0;
    }

    .td1 {
        font-size: calc(.9em + .3vw);
    }

    input {
        font-size: calc(.9em + .3vw);
    }

    .input-box {
        font-size: calc(.9em + .3vw);
    }

    .read-only-box {
        font-size: calc(.9em + .3vw);
    }

    button {
        font-size: .75em;
    }
}

@media screen and (min-width: 721px) {
    body {
        background-size: cover;
    }

    header {
        font-size: 1.1em;
        height: 3em;
    }

    tr {
        padding: 8px 0;
    }

    .td1 {
        font-size: calc(1em + .5vh);
    }

    input {
        font-size: calc(1em + 1vh);
    }

    button {
        font-size: .9em;
    }
}

/* ---------------------------------------------------
    Badges
----------------------------------------------------- */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.20rem;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    border: none;
    cursor: default;
}

/* Badge Variants */
.badge-primary {
    color: #fff;
    background-color: #0d6efd;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

.badge-success {
    color: #fff;
    background-color: #198754;
}

.badge-danger {
    color: #fff;
    background-color: #dc3545;
}

.badge-warning {
    color: #000;
    background-color: #ffc107;
}

.badge-info {
    color: #000;
    background-color: #0dcaf0;
}

.badge-light {
    color: #000;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.badge-dark {
    color: #fff;
    background-color: #212529;
}
