/* MAIN STYLES */
html {
    margin: 0px;
    padding: 0px;
    border: 0px;
}
body {
    margin: 0px;
    padding: 0px;
    border: 0px;
    font-family: Arial, Tahoma, Verdana;
    font-style: normal;
    font-weight: 300;
    font-size: 14px;
    line-height: 16px;
    background-color: #ededed;
}

#twn-app-holder.ajax-loader::after {
    content: ' ';
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    text-align: center;
    background: url('../images/ajax-loader.svg') no-repeat center center rgba(0, 0, 0, 0.5);
    background-size: 128px 128px;
    z-index: 99999;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
}

.menu-right {
    position: absolute;
    top: 5px;
    right: 45px;
}

h2 {
    text-align: center;
}

h4 {
    margin-bottom: 0.6rem;
}

.clear {
    clear: both;
}

.hidden {
    display: none;
}

.btn-search {
    background-color: #ffffff;
    border: 1px solid #ced4da;
}

.search-picture {
    width: 20px;
}

.space10 {
    height: 10px;
}

.space20 {
    height: 20px;
}

.space30 {
    height: 30px;
}

.space40 {
    height: 40px;
}

.product-box-holder {
    float: left;
    margin-bottom: 5px;
    text-align: center;
    padding: 0px;
    font-size: 12px;
}

.product-box-holder .product-box {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-box-holder .product-box .product-image {
    margin: 5px auto;
    float: left;
}

.product-box-holder .product-box .product-image img {
    max-height: 42px;
}

.product-box-holder .product-box .product-name {
    margin: 5px auto;
    float: left;
}

.product-box-holder .product-box .product-price {
    font-weight: bold;
    float: left;
}

.product-cart-holder {
    padding: 5px 0px;
    background-color: #ffffff;
    margin-bottom: 5px;
    text-align: left;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-cart-holder .product-cart-picture, .product-cart-holder .product-cart-name, .product-cart-holder .product-cart-qty, .product-cart-holder .product-cart-price {
    float: left;
}

.product-cart-holder .product-cart-picture img {
    max-width: 42px;
}

.product-cart-holder .product-cart-qty input {
    margin: 0px;
    height: 28px;
}

.order-table-body .order-body-row-holder {
    cursor: pointer;
}

.cart-body-row-holder .cart-row .do-remove-cart-row {
    cursor: pointer;
    font-size: 20px;
}

.cart-table-body .cart-product-dirty {
    background-color: #8fbc8f;
}

.function-order-holder {
    text-align: right;
}

.order-sum-holder {
    text-align: right;
}

.order-sum {
    font-size: 20px;
}

.product-cart-price {
    font-weight: bold;
}

.font-bold {
    font-weight: bold;
}

/* CART OPTIONS */
.main-page-options {
    display: block;
    overflow: hidden;
    overflow-y: scroll;
    height: calc(100vh - 70px);
    position: relative;
}
/* CART TABLE ============================================================== */
.scroll-product-div {
    width: 100%;
    display: block;
    overflow-y: scroll;
    height: calc(100vh - 310px);
}

.main-page-options .scroll-product-div {
    height: calc(100vh - 200px);
}

.cart-table .cart-table-body td {
    vertical-align: middle;
}

.cart-table .cart-table-body .product-image {
    height: 32px;
}

.cart-table .cart-total td {
    font-size: 20px;
    font-weight: bold;
}

.cart-table .cart-table-body .cart-row-total {
    font-weight: bold;
}
.cart-table .cart-table-body .cart-row-name-big {
    font-size: 14px;
    line-height: 14px;
    margin-bottom: 4px;
}
.cart-table .cart-table-body .cart-row-name-small {
    font-size: 10px;
    line-height: 12px;
}

.cart-table .cart-table-body .cart-row-change-price {
    cursor: pointer;
}

/* CART TABLE ============================================================== */
/* AUTOCOMPLETE ============================================================ */
.ui-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    font-size: 14px;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    background-clip: padding-box;
    max-height: calc(100vh - 140px);
    overflow-x: hidden;
    overflow-y: auto;
}

.ui-menu .ui-menu-item,
.pos-autocomplete-row {
    border-bottom: 1px solid #ccc;
    list-style: none;
    list-style-image: none;
    padding: 5px 0px 5px 0px;
}

.pos-autocomplete-row .product-search-row .product-image {
    float: left;
    width: 32px;
    height: 32px;
    padding: 2px;
    margin: 0px 10px 0px 0px;
    border: 1px solid #ccc;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.pos-autocomplete-row .order-search-row .order-id {
    float: left;
    height: 32px;
    padding: 2px;
    margin: 0px 10px 0px 0px;
    line-height: 28px;

}

.pos-autocomplete-row .product-search-row .title-and-description, .pos-autocomplete-row .order-search-row .title-and-description {
    float: left;
}

.pos-autocomplete-row .product-search-row .title-and-description .title, .pos-autocomplete-row .order-search-row .title-and-description .title {
    font-size: 14px;
}

.pos-autocomplete-row .product-search-row .title-and-description .description, .pos-autocomplete-row .order-search-row .title-and-description .description {
    font-size: 12px;
}

.pos-autocomplete-row .order-search-row .order-date {
    float: left;
    line-height: 28px;
    margin: 0px 10px 0px 0px;
    height: 32px;
    padding: 2px;
}

.pos-autocomplete-row .order-search-row .order-price {
    float: right;
    line-height: 28px;
    height: 32px;
    padding: 2px;
}

.ui-state-hover,
.ui-state-active,
.ui-state-focus {
  text-decoration: none;
  color: #262626;
  background-color: #f5f5f5;
  cursor: pointer;
}

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

/* Backgrounds ============================================================= */
.bgWarning {
    background-color: #fffacd;
}

.bgSuccess {
    background-color: #ace1af;
}

.bgError {
    background-color: #ff9999;
}

.fontBold {
    font-weight: bold!important;
}

/* AUTOCOMPLETE ============================================================ */

#main-order-table-body tr td a {
    color: #000000;
    display: block;
    width: 100%;
}

.date-updated {
    font-size: 12px;
}

.update-button {
    line-height: 1.1;
    padding-top: 1px;
    padding-bottom: 1px;
}

.fancybox-container.cart-client .popup-child.cartClient .form-group {
    margin-bottom: 0.5rem;
}

.fancybox-container.cart-client .fancybox-content {
    padding: 20px;
}
