app{
    height: calc(100% - 2rem) !important;
}

.app .main-content > .grid-content{
    height: calc(100% - 2rem) !important;
}

.scanner-mode {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items:center;
    width: 100%;
    height: 2rem;
    background-color: #272727;
    color: #ffffff;
    text-align: center;
    font-size: .8rem;
    line-height: .8rem;
    font-weight: 700;
    z-index: 90;
}

.scanner-controls,
.refresh-control {
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    bottom: 2.1rem;
    right: .1rem;
    z-index: 91;
}

.refresh-control{
    bottom: 7rem;
    z-index: 999999;
}

.scanner-controls button,
.refresh-control button {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 2.8rem;
    height: 2.8rem;
    margin: 0 1rem 0 0;
    padding: .7rem;
    border-radius: 50%;
    background-color: #004680;
    border: 0;
    outline: 0;
    opacity: .7;
}

.refresh-control button{
    margin-right: .5rem;
}

.scanner-controls button img,
.refresh-control button img {
    width: 100%;
    height: 100%;
}

.scanner-controls button.start, .scanner-controls button.stop {
    width: 4rem;
    height: 4rem;
    margin-right: .5rem;
    padding: 1rem;
    opacity: 1;
}

.scanner-controls button.start {
    background-color: #bfbfbf;
}

.scanner-controls button.stop {
    background-color: #008000;
}

.scanner-controls button[disabled='disabled'] {
    background-color: #ffbdbd !important;
}

.scanner-controls button.show,
.refresh-control button.show{
    display: flex;
}

.scanner-response-messages-container{
    position: fixed;
    top: 55%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    pointer-events: none;
    z-index: 100;
}

.scanner-response-message{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 250px;
    min-height: 50px;
    max-width: 95%;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 0 10px 5px #e5e5e5;
    transform: scale(.65);
    margin-bottom: -5px;
    background-color: #bdbdbd;
}

.scanner-response-message::before {
    content: "";
    position: absolute;
    top: -10px;
    display: inline-block;
    width: 3px;
    height: calc(100% + 20px);
    background-color: #FF0000;
    box-shadow: 0 0 3px 0 #FF0000;
    border-radius: 10px;
    animation-name: scanner-response-message-waiting;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.scanner-response-message.completed {
    animation-name: scanner-response-message-fade-out;
    animation-duration: 3s;
    animation-delay: 2s;
}

.scanner-response-message.completed::before {
    display: none;
}

.scanner-response-message:first-of-type {
    transform: unset;
    margin-bottom: 10px;
}

.scanner-response-message.success{
    background-color: #03c503;
}

.scanner-response-message.error{
    background-color: #ff2c2c;
}

.scanner-response-message.unknown {
    background-color: #f7952d;
}

.scanner-response-message-result{
    font-family: sans-serif;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0px 10px #181818;
    font-size: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

@keyframes scanner-response-message-waiting {
    0% {
        left: 0
    }

    50% {
        left: 100%;
    }

    100% {
        left: 0
    }
}

@keyframes scanner-response-message-fade-out{
    from{
        opacity: 1;
    }

    to{
        opacity: 0;
    }
}