@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Roboto+Condensed&family=Roboto:wght@300;400;500&display=swap');

*  {
  box-sizing: border-box;
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
}

body {
  background-color: #ddd;
}

#sfondo {
  margin: 230px auto;
  padding: 0 20px;
}

#welcome, #orologio {
  font-size: 7.5em;
  margin: auto;
  text-align: center;
  color: #777;
}


/***********************
* HEADER
***********************/
.header-container {
  background-color: #fff;

}

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px;
  max-width: 1100px;
}

.logo {
  min-width: 120px;
  min-height: 120px;
}

.titolo {
  font-family: 'Montserrat', sans-serif;;
  font-size: 1.7em;
  text-align: center;
  text-transform: uppercase;
  padding: 20px 0 20px 0;
}

.sottotitolo {
  font-size: 1.2em;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 30px;
}


/***********************
* MENU
***********************/

/* add a black background color to the top navigation */
.topnav {
  background-color: #fff;
  overflow: hidden;
  font-family: 'Roboto Condensed', sans-serif;

}

/* style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #c14400;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 1em;
  text-transform: uppercase;
  border-bottom: 2px solid #ddd;
}

/* add an active class to hilight the current page */
.active {
  background-color: #4caf50;
  color: white;
}

/* hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* dropdown container - needed to position the dropdown content */
.dropdown {
  float: left;
  overflow: hidden;
  border-bottom: 2px solid #ddd;
}

/* style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: 1em;
  border: none;
  outline: none;
  color: #c14400;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  text-transform: uppercase;
}

/* style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  color: #c14400;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: #c14400;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #eee;
  border-bottom: 2px solid #c14400;
}

/* add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}

/* when the screen is less than 600 pixels wide, hide all links, except for the
first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user
clicks on the icon. This class makes the topnav look good on small screens
(display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {
    float: none;
  }
  .topnav.responsive .dropdown-content {
    position: relative;
  }
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}

/*=============================
* BOTTONI
===============================*/
.bottoni {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 900px;
  margin: auto;
}

.dataform {
    display: flex;
    flex-direction: row;
    align-items: center;
}

a.button1, .dataform input, button.button1 {
    background-color: #da4628;
    padding: 0.5em 1.1em;
    margin: 0 0.3em 0.3em 0;
    border-radius: 5px;
    color: #fff;
    font-size: 0.9em;
    font-weight: 400;
    text-align: center;
    box-shadow: inset 0 -0.6em 1em -0.35em rgba(0,0,0,0.17),inset 0 0.6em 2em -0.3em rgba(255,255,255,0.15),inset 0 0 0em 0.05em rgba(255,255,255,0.12);
}

a.button1:active {
    box-shadow: inset 0 0.6em 2em -0.3em rgba(0,0,0,0.15),inset 0 0 0em 0.05em rgba(255,255,255,0.12);
}

.dataform label {
    padding-right: 0.7em;
    font-size: 1.1em;
  }

  .dataform select {
    display: block;
    font-size: 1em;
    padding: 0.5em 1.1em;
    margin: 0 1.2em 0.3em 0;
    border-radius: 0.2em;
    background-color: #fff;
  }
  
  #myInput {
	  background-image: url("/static/img/searchicon.png");
	  background-position: 5px 5px;
      background-repeat: no-repeat; 
	  padding-right: 0.3em;
	  font-size: 1.1em;	  
	  padding: 0.5em 3em;
      margin: 0 1.2em 0.3em 0;
  }
  
  
/***********************
* TABLE
***********************/

.table-container {
  clear: both;
  border: 1px solid #963;
  overflow: auto;
  width: 900px;
  margin: 0 auto;
  border-bottom: 2px solid #da4628;
}

.table-corta {
    height: 500px;;
}

.table-lunga {
    height: 600px;
}

.table-stretta {
  width: 700px;
}

table {
  text-align: left;
  position: relative;
  border-collapse: collapse;
}

th, td {
  padding: 0.25rem;
}

tr th {
  background: #ff9333;
}

th {
  position: sticky;
  top: 0;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
  padding: 0.8em 0 0.6em 0;
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9em;
  text-transform: uppercase;
}

tr:nth-child(even)  {
   background-color:#eee;
}


tbody tr:hover {
  background: #f7ebc2;
}

tbody {
  border-left: 2px solid #da4628;
  font-weight: 400;
}

td.destra {
    text-align: right;
}

td.centro {
    text-align: center;
}

.selected {
    color: #11bb11;
    font-weight: 500;
}

.debito {
  color: blue;
}

/*=============================
  FOOTER TOTALI
===============================*/

.totali {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 900px;
    margin: 20px auto;

  }

  .subtotali {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #da4628;
    border-radius: 7px;
    padding: 10px;
  }

  .subsubtotali {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 5px;
  }

  .subsubtotali p {
    padding: 0 15px 0 5px;
  }


  /*=============================
    FOOTER
  ===============================*/

  footer {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #aaa;
  }


/*=============================
    FORMS
===============================*/

.scheda {
  width: 650px;
  margin: 1em auto;
}

fieldset {
  border: 2px solid #da4628;
  border-radius: 10px;
  padding: 10px;
  background-color: #eee;
}

.riga-scheda {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px;;
}

.etichetta {
  font-family: 'Roboto', sans-serif;
  width: 20%;
  text-align: right;
}

.form-control {
  width: 440px;
}

.riga-bottoni {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding-top: 10px;
}

#pos, #bonifico {
  height: 23px;
}

.field-select {
  width: 440px;
}

/*=============================
LOGIN BOX
===============================*/
#sfondo-login {
  background: url("/static/img/image.jpg");
  background-size: cover;
  background-position: center;
}

.login-box {
  width: 320px;
  height: 420px;  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  padding: 30px 30px;
}

#h1login {
  margin: 0;  padding: 0 0 20px;
  text-align: center;
  font-size: 22px;
}

.login-box label {
  margin: 0;
  padding: 0;
  font-weight: bold;
}

.login-box input {  width: 100%;
  margin-bottom: 20px;
}

.login-box input[type="text"], input[type="password"] {
  border: none;
  border-bottom: 1px solid #fff;
  background: transparent;
  outline: none;
  height: 40px;
  color: #fff;
  font-size: 16px;
}

.login-box input[type="submit"] {
  border: none;
  outline: none;
  height: 40px;
  background: #1c8abd;
  color: #fff;
  font-size: 18px;
  border-radius: 15px;
}
.login-box input[type="submit"]:hover {
  cursor: pointer;
  background: #39dc79;
  color: #000;
}

/***********************
* STATISTICHE
***********************/

.stat {
  width: 1000px;
  margin: 1px auto;
  font-family: 'Arial', sans-serif;
  background-color: white;
  padding: 2em;
}

.stat h2 {
  font-size: 1.5rem;
  text-align: center;
}

.stat h3 {
  font-size: 1.4em;
  padding-top: 2em;
  padding-bottom: 1em;
}

.stat p {
  font-size: 1.2em;
}

.stat table {
  border-spacing: 2px;
  background-color: #fff;
  border-color: #eee;

}

.stat table tbody {
  border-left: none;

}

.stat table th, .stat table td  {
  background-color: white;
  font-size: 1rem;
  padding: 0.75rem;
}
