html, body {
    height: 100%;
}

.box {
    max-width: 1024px;
}

td > img {
    display: block;
    max-width: 100%;
    width: 76px;
}
.wrap {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.remove-item {
    cursor: pointer;
    background-color: red;
}

.flex {
    display: flex;
    flex-direction: row;
}

.flex-w {
    flex-wrap: wrap;
}

.flex-center {
    justify-content: center;
}

.flex-stretch {
    justify-content: stretch;
}

.flex-item {
    margin: 10px 5px;
    display: block;
    flex: 1 1;
}

.flex-column {
    flex-direction: column;
}

div#item-modal {
    font-weight: bold;
    font-size: 16px;
}

div#item-modal .form-control {
    font-size: 16px;
}

.check {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.check input[type=checkbox] {
    display: none;
}

.check label {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    background-color: #2c6086;
    border-radius: 7px;
    margin: 5px;
    cursor: pointer;
    flex: 1 1 0;
}

.check input[type=checkbox]:checked + label {
    background-color: #d23232;
}

body.login {
    background: url("/web_assets/images/login-bg.jpg") no-repeat 50% 50%;
    -webkit-background-size: cover;
    background-size: cover;
    height: 100vh;
}

body.cash {
    background: url("/web_assets/images/login-bg.jpg") no-repeat 50% 50%;
    -webkit-background-size: cover;
    background-size: cover;
    height: 100vh;
}

body.login .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

body.login .site-login {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.61);
    border-radius: 5px;
}

.site-login h1 {
    margin-bottom: 20px;
}

#login-form .form-group {
    display: flex;
}

body.index {
    background: url("/web_assets/images/main-bg.jpg") no-repeat 50% 0;
    -webkit-background-size: cover;
    background-size: cover;
    height: calc(100vh - 60px);
}

#main-nav {
    height: 90px;
    background: url("/web_assets/images/main-bg.jpg") no-repeat 50% 0;
    -webkit-background-size: cover;
    background-size: cover;
    box-shadow: 0 0 20px rgb(0, 0, 0);
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: block;
    font-size: 22px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #fff;
    line-height: 30px;
}

.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
    display: block;
    background-color: #fff;
}

#user-nav {
    font-size: 22px;
    font-weight: bold;
}

#user-nav li {
    margin-right: 5px;
}

#user-nav a {
    background-color: #fff;
    border-radius: 5px;
}

body.operation-buy {
    background: url("/web_assets/images/main-bg.jpg") no-repeat fixed 50% 0;
    background-size: cover;
    height: auto;
}

div#buy {
    margin-top: 105px;
}

body.operation-sell {
    background: url("/web_assets/images/main-bg.jpg") no-repeat fixed 50% 0;
    background-size: cover;
    height: calc(100vh - 60px);
}

body.operation-sell .wrap {
    display: block;
}

.sell {
    padding-top: 110px;
}

.pricelist-title {
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 5px #000;
}

.operation-btn {
    display: block;
    padding: 50px 120px 50px 40px;
    background-color: #fff;
    border-radius: 160px;
    color: #000000;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 8rem;
    margin: 20px;
    position: relative;
    flex: 1 1 0;
    border: 10px solid #eee;;
}

.operation-btn:visited, .operation-btn:hover, .operation-btn:focus, .operation-btn:active {
    text-transform: uppercase;
    text-decoration: none;
    color: #000000;
}

.operation-btn:after {
    display: block;
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background: url('/web_assets/images/arrow-down.svg') no-repeat 50% 50%;
    background-size: contain;
}

.operation-btn:nth-child(2):after {
    background: url('/web_assets/images/arrow-up.svg') no-repeat 50% 50%;
    background-size: contain;
}

.site-index {
    /*padding-top: 50px;*/
}

.site-index .flex {
    align-items: center;
}

a.product-btn {
    display: block;
    color: #000000;
    background-color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
    width: 100%;
    height: 78%;
    text-align: center;
    overflow: hidden;
    border: 3px solid #eee;
    line-height: 64px;
}

a.product-btn:active, a.product-btn:focus, a.product-btn:visited, a.product-btn:hover {
    color: #000000;
    background-color: #fff;
    text-decoration: none;
}

form#fill-cash-form, form#rest-cash-form {
    background-color: #eee;
    padding: 10px 40px;
    border-radius: 5px;
}

.history .wrap {
    display: block;
}
.operation-history {
    margin-top: 80px;
}

.content-header > .breadcrumb {
    float: none;
    position: relative;
    margin-bottom: 10px;
    top: auto;
    right: auto;
}

#clients {
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
}

.del-client.active {
    visibility: visible;
}

.del-client {
    visibility: hidden;
}
@media (max-width: 1440px) {
    .operation-btn {
        padding: 30px 100px 30px 30px;
    }


    .operation-btn:after {
        width: 80px;
        height: 80px;
        right: 15px;
    }
}

@media (max-width: 1100px) {
    .operation-btn {
        font-size: 4rem;
        padding: 20px 74px 20px 20px;
    }


    .operation-btn:after {
        width: 70px;
        height: 50px;
        right: 8px;
    }
}

@media (max-width: 420px) {
    a.operation-btn {
        padding: 20px 80px 20px 25px;
    }

    .operation-btn:after {
        right: 8px;
    }

    a.navbar-brand {
        font-size: 18px;
        padding: 5px 10px;
        line-height: 20px;
        height: auto;
    }

    nav#main-nav {
        display: block;
        padding-top: 22px;
    }

    #user-nav a {
        border-radius: 0;
        border-bottom: 1px solid #ccc;
    }

    a.product-btn {
        height: 40px;
        line-height: 30px;
    }
}

.pills {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    z-index: 10;
}

.dash {
    margin: 0 15px;
    width: 35px;
    height: 15px;
    border-radius: 8px;
    background: #FFEB3B;
    /*box-shadow: 0 0 10px 0 #FECDFF;*/
}

.uno {
    margin-right: -18px;
    transform-origin: center left;
    animation: spin 3s linear infinite;
}

.dos {
    transform-origin: center right;
    animation: spin2 3s linear infinite;
    animation-delay: .2s;
}

.tres {
    transform-origin: center right;
    animation: spin3 3s linear infinite;
    animation-delay: .3s;
}

.cuatro {
    transform-origin: center right;
    animation: spin4 3s linear infinite;
    animation-delay: .4s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(360deg);
    }
    30% {
        transform: rotate(370deg);
    }
    35% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin2 {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(0deg);
    }
    30% {
        transform: rotate(-180deg);
    }
    35% {
        transform: rotate(-190deg);
    }
    40% {
        transform: rotate(-180deg);
    }
    78% {
        transform: rotate(-180deg);
    }
    95% {
        transform: rotate(-360deg);
    }
    98% {
        transform: rotate(-370deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes spin3 {
    0% {
        transform: rotate(0deg);
    }
    27% {
        transform: rotate(0deg);
    }
    40% {
        transform: rotate(180deg);
    }
    45% {
        transform: rotate(190deg);
    }
    50% {
        transform: rotate(180deg);
    }
    62% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(360deg);
    }
    80% {
        transform: rotate(370deg);
    }
    85% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin4 {
    0% {
        transform: rotate(0deg);
    }
    38% {
        transform: rotate(0deg);
    }
    60% {
        transform: rotate(-360deg);
    }
    65% {
        transform: rotate(-370deg);
    }
    75% {
        transform: rotate(-360deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.loader {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
}

.shade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 5;
}