
html, body {
	font-family: 'Lato', sans-serif;
	font-weight: 500;
}

a, a:hover {
	color: #212529;
}

.table td {
	border: 0 none;
	border-bottom: 1px solid #dee2e6;
}

.header {
	position: relative;
	width: 100%;
	height: 60px;
	border-bottom: 1px solid #d1d1d1;
}

.header img.logo {
	position: absolute;
	margin: auto;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: 100%;
	max-height: 100%;
}

@media screen and (max-width: 568px) {
	.header img.logo {
		left: auto;
		right: 10px !important;
	}
}

.header a.go_to_catalog {
	margin-left: 20px;
	margin-top: 0px;
	display: inline-block;
	height: 60px;
	line-height: 60px;
	font-size: 0.8em;
	font-weight: bold;
	color: #2d2d2d;
	text-decoration: none;
}

.header a.go_to_catalog img {
	width: auto;
	height: 70px;
	transform: rotate(12deg);
}

h1 {
	margin-top: 2em;
	margin-bottom: 2em;
	font-size: 1.2em;
	text-transform: uppercase;
	color: #545454;
}

#basket_id_wrapper {
	text-align: center;
	display: none;
}
#basket_id_title {
	color: #ff0092;
}

input#basket_id {
	border-radius: 0px;
	padding: 5px 10px;
	border: 1px solid #d1d1d1;
	font-size: 0.8em;
	color: #545454;
}

.btn-avon {
	background-color: #ff0092 !important;
	color: #fff;
	border: 0 none;
	border-radius: 0;
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
	padding: 5px 15px;
}

.login-wrapper {
	float: right;
	line-height: 60px;
	font-size: 16px;
    margin-right: 1%;
    padding-left: 30px;
	background: url("res/login.png") no-repeat center left;
}

.modal .close {
	background: url("res/close.png") no-repeat center center;
	width: 31px;
	height: 31px;
	font-size: 0;
	position: absolute;
	right: 40px;
	top: 40px;
}

.red-color {
	color: #ff0092;
}

.show-on-mobile {
	display: none !important;
}

#user-button {
	display: none;
}

.dropdown-logout {
	height: 30px;
	line-height: 20px;
}
.dropdown-logout:hover {
	background: #fff;
}

#login-button,
#user-button,
#orders-button {
	color: #ff0092;
	margin: 0 10px;
}

#login-button:hover,
#user-button:hover {
	color: #ff0092;
}

#content {
	margin-top: 3em;
}

#order_not_found {
	display: none;
	margin-top: 3em;
}

.add-product .order-note {
	border: 1px solid #ccc;
	display: block;
	width: 100%;
	height: 35px;
	margin: 0 auto 20px;
	padding-left: 10px;
}

#search_button {
	text-transform: inherit;
}

#validation_note {
	display: none;
}

/* Custom */

.modal-backdrop {
	background-color: #fff;
	opacity: .8;
}

#orders-wrapper {
	display: none;
}

#loginModal .modal-dialog {
	width: 335px;
	height: 181px;
	top: 35%;
    transform: translate(0, -50%) !important;
}
#loginModal .modal-content {
	box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.42);
	border: 0 none;
	border-radius: 0;
}
#loginModal .modal-title {
	color: #ff0092;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	text-transform: uppercase;
	width: 80%;
	margin: 0 auto;
	margin-bottom: 20px;
}
#loginModal .form-group {
    margin-bottom: 0.7rem;
}

#loginModal input.form-control {
	border: 0 none;
	border-radius: 0;
	border: 1px solid #ddd;
	/*box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.2);*/
	font-size: 12px;
	/* text-transform: uppercase; */
	padding: 5px 10px;
}
#loginModal label {
	text-align: right;
	font-size: 14px;
	padding: 0;
	line-height: 30px;
	width: 50%;
}
#loginModal .form-group > div  {
	width: 50%;
}

#loginModal button.btn-primary {
	background-color: #ff0092;
	border: 0 none;
	border-radius: 0;
	font-size: 16px;
	font-weight: 400;
	display: block;
	padding: 0px 15px;
	float: right;
	width: 100%;
	padding-top: 3px;
    padding-bottom: 3px;
}


#editOrderModal {
	user-select: none;
}
#editOrderModal .modal-dialog {
	background-color:  #ffffff;
	box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.14);
	width: 70%;
	max-width: 990px;
	max-height: 515px;
}
#editOrderModal .modal-content {
	border: 0 none;
}
#editOrderModal .modal-header {
	border: 0 none;
	text-align: center;
	margin-top: 20px;
}
#editOrderModal .modal-title {
	color: #ff0092;
	font-size: 18px;
	font-weight: 500;
	width: 100%;
}
#editOrderModal .modal-title .basket_id {
	color: #2d2d2d;
}
#editOrderModal td {
	text-align: center;
}

#editOrderModal .product-code {
	width: 15%;
}
#editOrderModal .product-name {
	text-align: left;
}
#editOrderModal .product-quantity {
	width: 200px;
}
#editOrderModal .product-quantity input {
	border: 0 none;
	width: 30px;
	text-align: center;
	vertical-align: baseline;
}
#editOrderModal .qty-plus,
#editOrderModal .qty-minus {
	background: url("res/qty_plus.png") no-repeat bottom center;
	width: 20px;
	height: 20px;
	display: inline-block;
    cursor: pointer;
}
#editOrderModal .qty-minus {
	background-image: url("res/qty_minus.png");
	margin-left: 10px
}
#editOrderModal .product-delete {
	background: url(res/delete-button.png) no-repeat center center;
    width: 50px;
    height: 35px;
    cursor: pointer;
}
#editOrderModal .add-product {
	border-bottom: 1px solid #dee2e6;
	padding: 10px 20px 20px 50px;
}
#editOrderModal .add-product input.product-id {
	width: 70px;
	margin-right: 1rem;
}
#editOrderModal .add-product input.product-qty {
	border: 0 none;
	width: 30px;
	text-align: center;
}
#editOrderModal .table-body {
	overflow-y: auto;
	height: auto;
	max-height: 280px;
}
#editOrderModal .modal-footer {
	border: 0 none;
	margin: 0 auto 20px;
}
#editOrderModal .cancel-button {
	margin-right: 3rem;
}
#editOrderModal .close-button {
	display: none;
}
#editOrderModal .order-note {
	display: none;
	text-align: center;
}
#editOrderModal #order-modal-total {
	width: 100%;
	text-align: right;
	padding-right: 50px;
	padding-bottom: 20px;
}

#editOrderModal.view-list .add-product,
#editOrderModal.view-list .product-quantity span,
#editOrderModal.view-list .product-delete,
#editOrderModal.view-list .cancel-button,
#editOrderModal.view-list .confirm-button {
	display: none;
}
#editOrderModal.view-list .product-quantity {
	width: 100px;
}
#editOrderModal.view-list .close-button {
	display: block;
}


/* Products list */
#products-list {
	display: none;
	padding-bottom: 40px;
}
#products-list .btn-avon {
	display: none;
	margin: 50px auto 0;
}
#confirmation_alert,
#validation_alert {
	display: none;
}

#validation_alert .alert-danger p {
	display: none;
}

#products-list .quantity input {
	width: 50px;
	text-align: center;
}

#products-list .qty-plus,
#products-list .qty-minus {
	display: inline-block;
	background: url("res/qty_plus.png") no-repeat center center;
	width: 30px;
	height: 30px;
    cursor: pointer;
    float: left;
}
#products-list .qty-minus {
	background-image: url("res/qty_minus.png");
	margin-left: 10px
}
#products-list .product-delete {
    background: url(res/delete-button.png) no-repeat center center;
    width: 35px;
    height: 35px;
    cursor: pointer;
}


#products-list .add-product {
	margin-top: 30px;
}
#products-list .add-product .product-id {
	border-width: 1px;
	border-color:  #cccccc;
	border-style: solid;
	font-size: 14px;
	width: 155px;
	text-align: center;
	margin-left: 10px;
	margin-right: 30px;
	height: 30px;
	line-height: 30px;
}
#products-list .add-product .product-qty {
	width: 50px;
	text-align: center;
	vertical-align: top;
	float: left;
	height: 30px;
	line-height: 30px;
	border: 1px solid #ccc;
}
#products-list .add-product .float-right {
	text-align: center;
}
#products-list .add-product .add-product-button {
	background-color: #212529 !important;
    color: #fff;
    border: 0 none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 5px 15px;
}
#products-list .add-product .float-left > span {
	line-height: 30px;
}


#products-list.validated .add-product,
#products-list.validated .product-delete,
#products-list.validated .qty-minus,
#products-list.validated .qty-plus {
	display: none !important;
}
#products-list.validated .quantity input {
	margin-left: 20px;
}

#products-list .table .code.page input {
	width: 50px;
}
#products-list .table .code.price input {
	width: 75px;
}
#products-list #order-list-total {
	display: none;
	width: 100%;
	text-align: right;
	padding-right: 50px;
}

/* Orders list */

#orders-list {
	display: none;
}
#orders-list td {
	border: 0 none;
}
#orders-list tr:hover .order-name,
#orders-list tr:hover .order-edit,
#orders-list tr:hover .order-status,
#orders-list tr:hover .order-view-button {
	background-color: #ff0092;
	color: #fff;
}
#orders-list tr:hover .order-edit span {
	visibility: visible;
	cursor: pointer;
}
#orders-list .order-check {
	padding-top: .7rem;
	width: 50px;
}
#orders-list .order-name {
	border-bottom: 1px solid #ddd;
}
#orders-list .order-edit {
	text-transform: uppercase;
	text-align: right;
	width: 100px;
	border-bottom: 1px solid #ddd;
}
#orders-list .order-edit span {
	color: #ff0092;
}
#orders-list .order-status {
	text-transform: uppercase;
	width: 100px;
	border-bottom: 1px solid #ddd;
	color: #ff0092;
}
#orders-list .order-delete {
	background: url("res/delete-button.png") no-repeat center center;
	width: 50px;
	height: 35px;
	cursor: pointer;
}
#orders-list .btn-primary {
	margin: 50px auto 0;
	display: block;
}


#deleteOrderModal .modal-dialog {
	width: 315px;
	top: 35%;
    transform: translate(0, -50%) !important;
}
#deleteOrderModal .modal-content {
	font-family: 'Lato', sans-serif;
	background-color: #ffebf6;
	box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.42);
	border: 0 none;
	border-radius: 0;
}
#deleteOrderModal .modal-title {
	color: #ff0092;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	text-transform: uppercase;
	width: 90%;
	margin: 20px auto;
	/*margin-bottom: 20px;*/
}
#deleteOrderModal button.btn-primary {
	padding: 0px 15px;
	margin-left: 20px;
	margin-bottom: 10px;
}




/* Custom checkbox */

.check-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 42px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 35px;
    width: 35px;
    background-color: #fff;
    border: 1px solid #ddd;
}
.check-container:hover input ~ .checkmark {
    background-color: #fff;
}
.check-container input:checked ~ .checkmark {
    background-color: #fff;
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.check-container input:checked ~ .checkmark:after {
    display: block;
}
.check-container .checkmark:after {
    left: 12px;
    top: 5px;
    width: 10px;
    height: 20px;
    border: solid #92C852;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


/* Mobile tweaks */

@media (min-width: 320px) and (max-width: 480px) {

.hide-on-mobile {
	display: none !important;
}
.show-on-mobile {
	display: block !important;
}

.btn-avon {
	padding-top: 8px;
	padding-bottom: 8px;
}

.container > h1 {
	margin-top: 1em;
	margin-bottom: 1em;
}

#loginModal .modal-dialog {
	width: 96%;
}

/* Products list */
#products-list {
	padding-bottom: 100px;
}
#products-list .btn-avon {
	font-size: 18px;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	padding-top: 12px;
	padding-bottom: 12px;
	white-space: normal;
}
#products-list .btn-avon:disabled {
	opacity: 1 !important;
}
#products-list thead {
	display: none;
}
#products-list .table tr {
	border-top: 1px solid #dee2e6;
}
#products-list .table tr:last-child {
	border-bottom: 1px solid #dee2e6;
}
#products-list .table td {
	display: block;
	border: 0 none;
	padding: .5rem;
}
#products-list .table td .code input {
	border-width: 1px;
	border-color:  #cccccc;
	border-style: solid;
	font-size: 14px;
	width: 55px;
	text-align: center;
	margin-left: 10px;
}
#products-list .quantity {
	line-height: 30px;
}
#products-list .quantity input {
	border: 0 none;
	width: 35px;
	text-align: center;
	vertical-align: top;
}
#products-list .quantity .qty-minus {
	margin-left: 20px;
}
#products-list .qty-plus,
#products-list .qty-minus {
	display: inline-block;
	background-position: center;
	width: 35px;
	height: 35px;
}
#products-list .table td .title {
	margin: 0;
}
#products-list .table td:nth-child(3),
#products-list .table td:nth-child(4),
#products-list .table td:nth-child(6) {
	padding-top: .2rem;
	padding-bottom: .2rem;
}
#products-list .table td:nth-child(6) {
	padding-bottom: 15px;
}
#products-list .table span.show-on-mobile {
	text-transform: uppercase;
	float: left;
}
#products-list .product-delete {
	background: url(res/delete-button.png) no-repeat center center;
    width: 50px;
    height: 35px;
    float: right;
    margin-top: -45px;
    cursor: pointer;
}
#products-list .add-product {
	margin-bottom: 10px;
}
#products-list .add-product .float-left {
	font-size: 13px;
}
#products-list .add-product .product-id {
	border-width: 1px;
	border-color:  #cccccc;
	border-style: solid;
	font-size: 14px;
	width: 55px;
	text-align: center;
	margin-left: 10px;
	margin-right: 10px;
}
#products-list .add-product .product-qty {
	width: 35px;
	text-align: center;
	vertical-align: top;
}
#products-list .add-product .float-right {
	width: 100%;
	margin: 20px auto 10px;
	text-align: center;
}
#products-list .add-product .add-product-button {
	background-color: #212529 !important;
    color: #fff;
    border: 0 none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 5px 15px;
}

#products-list #order-list-total {
}

#products-list.validated .add-product,
#products-list.validated .product-delete,
#products-list.validated .qty-minus,
#products-list.validated .qty-plus {
	display: none !important;
}
#products-list.validated .quantity input {
	margin-left: 20px;
}


/* Orders list */
#orders-list {
	position: inherit;
	padding-bottom: 50px;
}
#orders-list .btn-avon {
	font-size: 18px;
	position: fixed;
	bottom: 0;
	right: 0;
	left: 0;
	width: 100%;
	padding-top: 12px;
	padding-bottom: 12px;
}
#orders-list td {
	padding: 25px 0;
}
#orders-list tr:hover .order-name,
#orders-list tr:hover .order-edit,
#orders-list tr:hover .order-status {
	background: transparent !important;
	color: inherit !important;
}
#orders-list tr:hover .order-status {
	color: #ff0092 !important;
}
#orders-list .order-edit {
	position: absolute;
	border-bottom: 0 none;
	text-align: left;
	padding-top: 40px;
	padding-bottom: 11px;
}
#orders-list .order-edit .order-edit-button, 
#orders-list .order-edit .order-view-button {
	visibility: visible;
}
#orders-list .order-status {
	padding-top: 10px;
}
#orders-list .order-check {
	padding-left: 0;
	padding-top: 1.3rem;
}


/* Edit/view modal */
#editOrderModal {
}
#editOrderModal .modal-dialog {
	width: 100%;
	height: 100%;
	max-height: unset;
	max-width: unset;
	margin: 0;
}
#editOrderModal .modal-content,
#editOrderModal .modal-body {
	height: 100%;
}
#editOrderModal .table-body {
	max-height: 70vh;
}
#editOrderModal tr {
	border-top: 1px solid #dee2e6
}
#editOrderModal tr:last-child {
	border-bottom: 1px solid #dee2e6;
}
#editOrderModal td {
	display: block;
	border: 0 none;
	width: 100% !important;
	text-align: left;
}
#editOrderModal .show-on-mobile {
	display: inline-block !important;
}
#editOrderModal .product-code {
	/*display: none;*/
}
#editOrderModal .product-code,
#editOrderModal .product-quantity,
#editOrderModal .product-price {
	padding-top: 0;
	padding-bottom: 0;
}
#editOrderModal .product-price {
	padding-bottom: 15px;
}
#editOrderModal .product-quantity {
}
#editOrderModal .order-note {
	border-top: 1px solid #ccc;
	padding-top: 20px;
}
#editOrderModal td {
	display: block;
}
#editOrderModal .product-code-mobile {
	padding-bottom: 5px;
    padding-top: 5px;
}
#editOrderModal .product-code-mobile span.code {
	border-width: 1px;
	border-color:  #cccccc;
	border-style: solid;
	font-size: 14px;
	width: 55px;
	text-align: center;
	padding: 5px;
	margin-left: 10px;
}
#editOrderModal .qty-plus,
#editOrderModal .qty-minus {
	display: inline-block;
	background-position: center;
	width: 35px;
	height: 35px;
}
#editOrderModal .qty-text {
	float: left;
	line-height: 35px;
}
#editOrderModal .product-qty {
	vertical-align: top;
	line-height: 30px;
}
#editOrderModal .product-delete {
	width: 60px !important;
	float: right;
	margin-top: -50px;
}
#editOrderModal .add-product {
	/*font-size: 14px;*/
	border: 0 none;
	padding: 0;
}
#editOrderModal .add-product .float-left {
	margin-bottom: 15px;
	line-height: 30px;
}
#editOrderModal .add-product .float-left span,
#editOrderModal .add-product .float-left input {
	float: left;
}
#editOrderModal .add-product .float-left input {
	margin-left: 5px;
}
#editOrderModal .add-product .float-right {
	display: block;
	text-align: center;
	width: 100%;
	margin-bottom: 15px;
}
#editOrderModal .add-product input.product-id {
	border: 1px solid #ccc;
	margin-right: 10px;
	width: 50px;
	height: 30px;
}


}

@media (min-width: 320px) and (max-width: 360px) {

#loginModal label {
	font-size: 12px;
}

#products-list .add-product .float-left {
	font-size: 12px;
}
#products-list .add-product .product-id {
	width: 45px;
}
#products-list .add-product .product-qty {
	width: 25px;
}
#products-list .qty-minus {
	margin-left: 0;
}
#products-list .qty-plus,
#products-list .qty-minus {
	width: 30px;
}

}


.lds-roller{display:inline-block;position:relative;width:64px;height:64px}.lds-roller div{animation:lds-roller 1.2s cubic-bezier(.5,0,.5,1) infinite;transform-origin:32px 32px}.lds-roller div:after{content:" ";display:block;position:absolute;width:6px;height:6px;border-radius:50%;background:#ea008c;margin:-3px 0 0 -3px}.lds-roller div:nth-child(1){animation-delay:-36ms}.lds-roller div:nth-child(1):after{top:50px;left:50px}.lds-roller div:nth-child(2){animation-delay:-72ms}.lds-roller div:nth-child(2):after{top:54px;left:45px}.lds-roller div:nth-child(3){animation-delay:-108ms}.lds-roller div:nth-child(3):after{top:57px;left:39px}.lds-roller div:nth-child(4){animation-delay:-144ms}.lds-roller div:nth-child(4):after{top:58px;left:32px}.lds-roller div:nth-child(5){animation-delay:-.18s}.lds-roller div:nth-child(5):after{top:57px;left:25px}.lds-roller div:nth-child(6){animation-delay:-216ms}.lds-roller div:nth-child(6):after{top:54px;left:19px}.lds-roller div:nth-child(7){animation-delay:-252ms}.lds-roller div:nth-child(7):after{top:50px;left:14px}.lds-roller div:nth-child(8){animation-delay:-288ms}.lds-roller div:nth-child(8):after{top:45px;left:10px}@keyframes lds-roller{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}