body {font-family: Arial, Helvetica, sans-serif;}

/******************************************************************************/
/* 1. Login form*/
/******************************************************************************/

form {
  border: 3px solid #f1f1f1;
}

.login-box
{
  margin: auto;
  width: 50%;
  border: 3px solid #5AAAAD;
  padding: 10px;
}

input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

button {
  background-color: #5AAAAD;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

button:hover {
  opacity: 0.8;
}

.cancelbtn {
  width: auto;
  padding: 10px 18px;
  background-color: #f44336;
}

.imgcontainer {
  text-align: center;
  margin: 54px 0 12px 0;
}

img.avatar {
  width: 40%;
  /*border-radius: 50%;*/
}

.container {
  padding: 16px;
}

span.psw {
  float: right;
  /*padding-top: 5px;*/
}
span.video {
  float: left;
}

@media screen and (max-width: 650px) {
  .login-box {
    width: 80%;
  }

  .img.avatar {
    width: 20%;
  }
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
  span.psw {
     display: block;
     float: none;
  }
  .cancelbtn {
     width: 100%;
  }
}

/******************************************************************************/
/* Navigation bar*/
/******************************************************************************/

.sidenav {
  height: 100%;
  width: 200px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #5AAAAD;
  overflow-x: hidden;
  padding-top: 20px;
}

.sidenav a {
  padding: 6px 6px 6px 32px;
  text-decoration: none;
  font-size: 20px;
  color: white;
  display: block;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.main {
  margin-left: 200px; /* Same as the width of the sidenav */
  margin-right: 20px;
}

.nav-logo {
  width: 150px;
  margin-left: -10px;
  margin-top: -10px;
}

.user-name {
  position: absolute;
  top: 0px;
  right:  3px;
  font-size: 15px;
  font-weight: bold;
  padding: 0 5px 0 5px;
  color: #ffffff;
  text-align: center;
}

#bonus-free {
  position: fixed;
  bottom: 3px;
  left:  3px;
  font-size: 20px;
  color: #ffffff;
}

#bonus-free p {
  margin: 0 0 0 5px;
}

.search-item {
    margin-bottom: 15px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 10px;}
  #bonus-free {font-size: 13px;}
  .wa_img {width: 50px;}
}

@media screen and (max-width: 825px) {
  .sidenav {
    width: 100px;
    padding-top: 0;
  }
  .sidenav a {
    font-size: 10px;
    padding: 5px 5px 5px 15px;
  }
  .nav-logo {
    width: 80px;
    margin-left: -3px;
  }
  .main {
    margin-left: 100px;
    margin-right: 10px;
  }
  table {font-size: 12px;}
  .item_price {width: 8vw;}
  #bonus-free {font-size: 13px;}
  .wa_img {width: 50px;}
  #search-cli {width: 90px !important;}
}

/******************************************************************************/
/* 3. Main-placeholder*/
/******************************************************************************/

#main-placeholder {
  padding-left: 40px;
}

#main-placeholder thead {
  border: 1px solid black;
  border-collapse: collapse;
}

#spinner {
  display: block;
  margin:auto;
  padding-top: 50vh;
}

.header-order {
  display: flex;
}

.header-order h1{
  flex-grow: 1;
}

.action {
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 20px 2px 5px 2px;
    transition-duration: 0.2s;
    cursor: pointer;
    background-color: #5AAAAD;
    color: white;
    border: 2px solid white;
    width: auto;
    float: right;
}

.action:hover {
  background-color: white;
  color: #5AAAAD;
  border: 2px solid #5AAAAD;
}

.action-rev {
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 20px 2px 5px 2px;
    transition-duration: 0.2s;
    cursor: pointer;
    background-color: white;
    color: #5AAAAD;
    border: 2px solid #5AAAAD;
    width: auto;
    float: right;
}

.action-rev:hover {
  background-color: #5AAAAD;
  color: white;
  border: 2px solid white;
}

.qty {
  width: 70px;
  display: inline-block;
  border: 2px solid #ccc;
  box-sizing: border-box;
}

.item_qty {
  width: 4vw;
}

.bordered{
  border: 2px solid #5AAAAD;
  background-color: #ffe41f;
}

.un-bordered {
  border: none;
}

.total {
  font-weight: bold;
}

.header-order h3{
  flex-grow: 1;
}

.bonus {
  width: auto;
  float: right;
  text-align: right;
  margin-right: 6px;
  color: orange;
}

i {
  color: #5AAAAD;
}

.clone, .download {
  text-align: center;

}

.item_code {
  display: none;
}

/******************************************************************************/
.search{
  margin-top: 10px;
  position: relative;
  flex-grow: 1;
}

.search-item label{
  margin-top: 30px;
  color: white;
}
#search-cli{
  margin-left: 5px;
  width: 190px;
}

/******************************************************************************/
.filtri {
  display: flex;
  flex-direction: row;
}
.filtri select{
  margin-right: 15px;
}

.filtri form {
  border: none;
}

.filtri button {
  background-color: #5AAAAD;
  color: white;
/*  border: 2px solid white;*/
  cursor: pointer;
  width: auto;
  margin-bottom: 5px;
}

.filtri button:hover {
  opacity: 0.8;
  margin:none;
}

.filtri label {
  padding-top:35px;
}

/******************************************************************************/


/******************************************************************************/
/* Spinner
/******************************************************************************/
#cover-spin {
position:fixed;
width:100%;
left:0;right:0;top:0;bottom:0;
background-color: rgba(255,255,255,0.9);
z-index:9999;
display:none;
}

@-webkit-keyframes spin {
from {-webkit-transform:rotate(0deg);}
to {-webkit-transform:rotate(360deg);}
}

@keyframes spin {
from {transform:rotate(0deg);}
to {transform:rotate(360deg);}
}

#cover-spin::after {
content:'';
display:block;
position:absolute;
left:48%;top:40%;
width:40px;height:40px;
border-style:solid;
border-color:#5AAAAD;
border-top-color:transparent;
border-width: 10px;
border-radius:50%;
-webkit-animation: spin .9s linear infinite;
animation: spin .9s linear infinite;
}
/******************************************************************************/


/******************************************************************************/
/* Modal confirm
/******************************************************************************/
.modal-dialog {
  max-width: 85%;
  width: 85% !important;
}

.modal-content {
  padding: 10px;
}


.download-menu { background-color: #5AAAAD !important; }

.download-item { font-size: 14px !important; }

.ddwn-list {list-style-type: none;}