/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */


/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */


/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}


/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}


/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}


/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}


/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}


/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}


/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html,
body {
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #eee;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: none;
}

.btn,
.form-control {
    border-radius: 0px;
}

.wrapper #settings-screen .container {
    margin-top: 20px;
}

.wrapper>div {
    display: none;
    height: 100%;
    width: 100%;
}

.wrapper>div.active {
    display: block;
}

#login-screen {
    background-color: rgb(255, 255, 255);
    width: 100vw;
    height: 100vh;
}

#login-screen p {
    margin: 0;
    padding: 0 0 10px 0;
    line-height: 20px;
}

#login-screen .phone {
    margin-top: 15px;
}

#login-screen .tel {
    margin-bottom: 10px;
    margin-top: 10px;
    border: 1px solid #666;
    border-radius: 0px;
}

#login-screen .num-pad {
    padding-left: 15px;
}

#login-screen .row1>div {
    margin-top: calc((100vh - 650px)/2);
}

#login-screen .num {
    border: 1px solid #f5f5f5;
    -webkit-border-radius: 999px;
    border-radius: 999px;
    -moz-border-radius: 999px;
    height: 80px;
    color: #333;
    cursor: pointer;
    width: 80px;
    margin-bottom: 10px;
}

#login-screen .num:hover {
    background-color: #9e9e9e;
    color: #fff;
    transition-property: background-color .2s linear 0s;
    -moz-transition: background-color .2s linear 0s;
    -webkit-transition: background-color .2s linear 0s;
    -o-transition: background-color .2s linear 0s;
}

#login-screen .txt {
    font-size: 30px;
    text-align: center;
    margin-top: 15px;
    font-family: 'Lato', sans-serif;
    line-height: 30px;
    color: #f5f5f5;
}

#login-screen .small {
    font-size: 15px;
}

#login-screen .btn {
    font-weight: bold;
    -webkit-transition: .1s ease-in background-color;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 1px;
}

#login-screen .btn:hover {
    transition-property: background-color .2s linear 0s;
    -moz-transition: background-color .2s linear 0s;
    -webkit-transition: background-color .2s linear 0s;
    -o-transition: background-color .2s linear 0s;
}

#login-screen .spanicons {
    width: 72px;
    float: left;
    text-align: center;
    margin-top: 40px;
    color: #9e9e9e;
    font-size: 30px;
    cursor: pointer;
}

#login-screen .spanicons:hover {
    color: #3498db;
    transition-property: color .2s linear 0s;
    -moz-transition: color .2s linear 0s;
    -webkit-transition: color .2s linear 0s;
    -o-transition: color .2s linear 0s;
}

#login-screen .active {
    color: #3498db;
}

#login-screen .pincode-entry {
    margin-bottom: 15px;
    margin-top: 65px;
    font-size: 2rem;
    letter-spacing: 5px;
    text-align: center;
    height: 75px;
    color: #f5f5f5;
}

#login-screen>div {
    background-color: #666;
    height: 100vh;
}

#login-screen .left-side {
    border-right: solid black 1px;
    background-color: white;
}

#login-screen .logo-image {
    margin-top: calc((50vh - 150px) / 2);
    max-width: 450px;
    height: 150px;
}

#terminal-screen .left-side>div {
    float: left;
}

#terminal-screen .left-side .top-bar {
    height: 7.5vh;
    width: 100%;
    background-color: #3498db;
    color: white;
    padding: 2%;
    font-size: 1rem;
}

.home-page-change {
    margin-top: 20%;
    font-size: 25px;
}

#terminal-screen .left-side .top-bar span:hover {
    cursor: pointer;
}

#terminal-screen .left-side {
    width: 60vw;
    height: 100vh;
    background-color: #2980b9;
    float: left;
    color: white;
}

#terminal-screen .left-side .panels {
    float: left;
    height: 92.5vh;
    width: 100%;
    overflow: hidden;
}

#terminal-screen .left-side .panels .products {
    height: 92.5vh;
    overflow-y: auto;
}

#terminal-screen .left-side .sidebar {
    position: absolute;
    right: 0;
    top: 7.5vh;
    height: 92.5vh;
    width: 60px;
    background-color: #333;
    display: none;
}

#terminal-screen .left-side .sidebar.active {
    display: block;
}

#terminal-screen .left-side .sidebar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#terminal-screen .left-side .sidebar ul li a {
    display: block;
    font-size: 1rem;
    color: #f5f5f5;
    padding: 20px;
    border-bottom: solid #666 2px;
    text-align: center;
}

#terminal-screen .left-side .panels>div {
    display: none;
    width: 60vw;
    height: 100vh;
}

#terminal-screen .left-side .panels>div.active {
    display: block;
}

#terminal-screen .left-side .panels .home {
    padding: 15px;
}

#terminal-screen .left-side .panels .home .keypad {
    width: 65%;
    height: 50vh;
    float: left;
    padding: 5px;
}

#terminal-screen .left-side .panels .home .keypad .input {
    width: 100%;
    height: 10vh;
    background-color: white;
    color: black;
    font-size: 3rem;
    padding: 2% 2%;
}

#terminal-screen .left-side .panels .home .keypad ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#terminal-screen .left-side .panels .home .keypad ul li {
    float: left;
    width: 25%;
}

#terminal-screen .left-side .panels .home .keypad ul li button {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    display: block;
    border: solid rgba(0, 0, 0, 0.6) 1px;
    height: calc((40vh - 6.5px) /4);
}

#terminal-screen .left-side .panels .home .payment-methods {
    padding: 5px;
    margin-top: 5px;
    float: left;
    width: 100%;
}

#terminal-screen .left-side .panels .home .payment-methods button {
    padding: 15px;
    background-color: #f5f5f5;
    color: black;
    border: solid 1px #246997;
    width: calc((60vw - 40px) / 5);
    font-size: 1rem;
    margin-bottom: 10px;
    float: left;
    font-weight: bold;
}

#terminal-screen .left-side .panels .home .payment-methods button:nth-child(-n+5) {
    padding: 25px;
}

#terminal-screen .left-side .panels .home .payment-methods button.active {
    color: white;
    background-color: black;
}

#terminal-screen .left-side .panels .home .basket-info {
    padding: 5px;
    height: 50vh;
    width: 35%;
    float: left;
}

#terminal-screen .left-side .panels .home .basket-info .inner-block {
    background-color: #fff;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: black;
    padding: 5px;
}

#terminal-screen .left-side .panels .home .basket-info .inner-block small {
    font-size: 0.8rem;
    color: #666;
    font-weight: bold;
}

#terminal-screen .left-side .panels .home .basket-info .inner-block span {
    position: relative;
    top: -13px;
}

a:hover {
    text-decoration: none;
}

#terminal-screen .left-side .sidebar ul li a:hover {
    background-color: #666;
}

#terminal-screen .tender {
    width: 40vw;
    height: 100vh;
    background-color: #f5f5f5;
    float: left;
}

#terminal-screen .tender .customer {
    height: 7.5vh;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 18px 15px;
    font-size: 1rem;
}

#terminal-screen .tender .customer .name {
    margin-right: 20px;
}

#terminal-screen .tender>div {
    display: none;
    float: left;
    width: 100%;
    height: 100%;
}

#terminal-screen .tender .top {
    display: block !important;
    background-color: #aaa;
    color: #fff;
    height: 7.5vh;
    padding-top: 2%;
}

#terminal-screen .tender .top span:hover {
    cursor: pointer;
    color: #333;
}

#terminal-screen .tender>.active {
    display: block !important;
}

#terminal-screen .panels .settings {
    padding: 35px;
}

#terminal-screen .panels .settings button {
    padding: 15px;
}

.products table input,
.products table select,
.products table button {
    border-radius: 0px;
}

.log {
    overflow: auto;
}

.pos-buttons>div {
    display: none;
}

.pos-buttons .pos-active {
    display: block;
}

.pos-button .button {
    float: left;
    width: calc(60vw/6);
    height: calc(100vh/6);
    border: solid white 1px;
}

.pos-button .button.product {
    background-color: red;
}

.pos-button .button.link {
    background-color: purple;
}

#order-information .order-products .product {
    width: 100%;
}

#order-information .order-products {
    background-color: white;
    height: 60vh;
    overflow-y: auto;
    border-bottom: solid black 1px;
}

#general-settings {
    overflow-y: auto;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */


/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}


/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}


/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}


/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}


/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

.clearfix:after {
    clear: both;
}


/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}


/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important;
        /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a,
    a:visited {
        text-decoration: underline;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }
    tr,
    img {
        page-break-inside: avoid;
    }
    img {
        max-width: 100% !important;
    }
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }
    h2,
    h3 {
        page-break-after: avoid;
    }
}