html,body{
	margin: 0;
	padding: 0;
	width: 100%;
	background-color: var(--main-bg-color);
}

*{
  font-family: "Montagu Slab", serif;
  font-optical-sizing: auto;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
}

:root {
  --main-bg-color: #DCF2F1;
  --main-text-color: black;
  --main-nav-color:#365486;
  --button-color: #365486;
  --text-color: white;

}
  
  /* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.video>p.vid{
  width: 350px;
  display: inline-block;
  border: 1px solid lightseagreen;
  border-radius: 30px;
  padding: 15px;
}
.video>p.vid>span{
  display: block;
  text-align: center;
  width: 80%;
}

.notify{
  display: block;
  position: fixed;
  border: green 2px solid;
  border-radius: 20px;
  bottom: 10px;
  left: 5px;
  width: 400px;
  background-color: azure;
  height: max-content;
  min-height: 20px;
  padding: 10px 20px;
  opacity: 0%;
  z-index: -10;
}

.notify.visible{
  z-index: 10;
  opacity: 100%;
  transition: all 1s ease;
}

.notify:not(.visible){
  transition: all 1s ease;
}


.notify > .text{
  margin: auto;
  padding: 5px;
}

.pagination{
  text-align: center;
}

.pagination a{
  margin: 0 5px;
  text-decoration: none;
  color: green;
  font-size: large;
  cursor: pointer;
}
.pagination a:hover{
  color: #0F1035;
}


.createuser input, .createuser select{
  width: 300px;
  display: block;
  margin: 20px 0;
}

nav{
	background-image: linear-gradient(160deg, #365486 0%, lightseagreen 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hamburger-menu{
  display: none;
  z-index: 10;
}

.autorisation{
  margin: auto 10vw;
  position: relative;
  top:30vh;
  text-align: center;
}

.content{
	color: var(--main-text-color);
	margin: 5px 10px;
}

button.nav{
	padding: 15px;
	color: var(--text-color);
	background-color: rgba(0, 0, 0, 0);
	border: none;
	cursor: pointer;
	transition: background-color .3s;
}

button.nav:hover {
	background-color: #0F1035;
}

button.nav:disabled{
  background-color: cadetblue;
  cursor: default;
}

button.beauty{
  margin: 5px;
  padding: 7px 20px;
  color: var(--text-color);
  background-color: seagreen;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .3s;
}

button.beauty:hover {
  background-color: #0F1035;
}

button.beauty:disabled {
  background-color: lightslategray;
  cursor: default;
}

input[type='checkbox']{
  border-radius: 2px;
  width: 20px;
  height: 20px;
  accent-color: green;
  outline: none;
}

input[type='checkbox']:checked{
  outline: 1px solid #2980B9;
  border-radius: 10px;
}

div.popup{
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(128, 128, 128, 0.6);
}
.popup .popup-content{
  position: relative;
  width: 95vw;
  height: 80vh;
  margin: auto auto;
  padding: 20px;
  border: 2px solid lightseagreen;
  border-radius: 10px;
  background-color: var(--main-bg-color);
  overflow: hidden;
  overflow-y: auto;
}
.popup .popup-content *{
  font-size: 14px;
}

.dropdown .text-to-add{
  width: 90%;
}

input, select,textarea{
  margin: 5px;
  padding: 5px;
  background-color: rgba(0, 0, 0, 0);
  border: none;
  display: inline-block;
  border-bottom: 3px solid lightseagreen;
/*  box-shadow: 2px 2px 10px lightseagreen;*/
  position: static;
  left: 20px;
  width: 80%;
}

input.error{
  border-bottom: 3px solid red;
}

.visits{
  display: flex;
}
.visits .block{
  border: 1px solid lightseagreen;
  border-radius: 10px;
  flex: auto;
  height: 70vh;
  color: black;
  padding: 5px;
  margin: 10px;
  margin-left: 0;
  font-size: 16px;
  overflow-y: auto;
}

.visits>.block:first-child{
  flex: 50%;
}
.visits a{
  text-decoration: none;
  color: black;
}

.parcel{
  display: block;
  width: 96%;
  min-height: 40px;
  height: fit-content;
  margin: 10px 5px;
  border: 1px solid teal;
  border-radius: 5px;
  padding: 5px;
  box-sizing: border-box;
}
.visits .block .parcel:first-child{
  margin-top: 30px;
}

.visits .block .parcel:last-child{
  margin-bottom: 30px;
}

.visits .block .parcel p{
  display: inline-block;
  font-size: small;
  margin: 2px 10px;
}
.parcel svg,img{
  vertical-align: middle;
}

.parcel .sum{
  color: green;
  position: relative;
  padding: 5px;
  float: right;
}

.transportation *{
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
}

.transportation .buttons a{
  text-decoration: none;
  width: max-content;
  width: 300px;
  height: 100px;
  display: block;
}

.transportation .buttons button{
  width: 300px;
  height: 100px;
  margin: 20px 0;
  display: block;
  text-decoration: none;
  color:white;
}


/* Form style */


ul.errorlist{
  text-decoration: none;
  list-style-type: disclosure-open;
  background-color: red;
  color: white;
}

ul.errorlist li{
  color: white;
  list-style-type: none;
}

.createuser p.error{
  color: red;
}

.form-parcel{
  width: 100%;
  height: max-content;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.form-parcel .block,.flexbox .block{
  border: 1px solid lightseagreen;
  border-radius: 10px;
  flex: 3;
  flex-basis: 400px;
  margin: 5px;
  padding: 10px 5px;
  height: 70vh;
  
}

.form-parcel .row{
  margin: 3px;
  padding: 2px;
  width: 95%;
  height: max-content;
}

.form-parcel p.error{
  color: red;
}

.form-parcel .volume input{
  width: 80px;
}
.form-parcel .volume #volume span.sum{
  font-size: larger;
}

.payment {
  padding: 100px auto 0 0;
}

.payment input{
  width:100px;
  font-size: large;
  display: inline-block;
}

.payment select{
  width: max-content;
  font-size: large;
  display: inline-block;
}

.payment input:read-only{
  color: gray;
}


.form-parcel #id_weight{
  width: 60px;
}

.payment button.beauty{
  background-color:lightslategray;
  width: 45%;
}

.payment button.beauty:disabled {
  background-color: seagreen;
}

.next-btn{
  position: fixed;
  bottom: 20px;
  right: 20px;
}


.items-invoce{
  padding: 0;
  margin: 0;
}
.items-invoce>.item{
  margin: 10px;
  padding-left: 20px;
}
.items-invoce>.item>.item-delete{
  position: absolute;
  left: 20px;
  cursor: pointer;
}
.items-invoce p{
  display: inline-block;
}
.count-to-add{
  width: 100px;
}

.form-autorisation{
  margin: 10px auto;
  width: 300px;
  height: max-content;
  border: 1px solid gray;
  border-radius: 15px;
  padding: 10px;
}
.form-autorisation label{
  display: block;
  text-align: center;
}

.form-autorisation input{
  padding: 10px 0;
  margin: 10px 0;
  width: 98%;
  text-align: center;
}

.form-autorisation .beauty{
  width: 95%;
}

.flexbox{
  display: flex;
  flex-wrap: wrap;
  flex-basis: 400;
  flex: 1;
}
.flexbox .block{
  flex: auto;
  height: 10vh;
  color: white;
  background-color: lightseagreen;
  background-image: linear-gradient(160deg, #365486 0%, lightseagreen 100%);
  padding: 20px;
  font-size: 16px;
}
.flexbox a{
  flex: 1;
  flex-basis: 400px;
  text-decoration: none;
}


div.redirect{
  width: 95%;
  padding: 10px;
  border: 1px solid lightseagreen;
  border-radius: 5px;
}

div.redirect input,div.redirect select{
  width: 300px;
}

div.redirect *{
  margin: 10px 0;
}

form#post{
  display: flex;
}

div.post{
  display:block;
  flex-basis: 300px;
  margin: 10px;
  padding: 20px;
  border: 1px solid lightseagreen;
  border-radius: 20px;
  height: 70vh;
}

.home-visits{
  width: 100%;
  height: max-content;
  max-height: 74vh;
  overflow: hidden;
  overflow-y: auto;
}
.home-visits .visit{
  display: inline-block;
  width: 22%;
  height: 6rem;
  padding: 5px;
  margin: 5px;
  border: 2px solid lightseagreen;
  border-radius: 10px;
  overflow: hidden;
  color: cadetblue;
  text-decoration: none;
}
.home-visits a{
  text-decoration: none;
}
.transaction{
  display: flex;
  flex-wrap: wrap;
}

.transaction input{
  border: 2px solid lightseagreen;
  border-radius: 3px;
  box-shadow: 1 1 lightseagreen;
  outline: none;
  width: 100px;
}

.transaction .block{
  display: flex;
  flex-direction: column;
  flex: 3 300px;
  border: 2px solid lightseagreen;
  border-radius: 5px;
  margin: 5px;
  height: 70vh;
  padding: 5px 10px;
  overflow-y: auto;
}

.break{
  flex-basis: 100%;
  height: 0;
}


.transaction select{
  width: 200px;
}
.add_car p>*{
  display: block;
  max-width: 200px;
  margin: 20px;
}
#id_drivers{
  list-style-type: none;
  padding: 0;
  width: max-content;
}
#id_drivers li{
  width: 100%;
  display: contents;
}
#id_drivers li input{
  width: 20px;
}

#id_drivers li *{
  position: relative;
  left: 0;

}

/* Table style */

table {
  border-collapse: collapse;
  border: 2px solid rgb(140 140 140);
  font-family: sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  width: 100%;
  overflow: hidden;
  overflow-y: auto;
}

table a{
  color: black;
  text-decoration: none;
  font-size: x-large;
  transition: background-color .1s;
}

table td>a:hover{
  background-color: lightgray;
}

caption {
  font-weight: bold;
}

thead,
tfoot {
  background-color: rgb(228 240 245);
}

th,td {
  border: 1px solid rgb(160 160 160);
  padding:3px;
  text-align: center;
  font-size: 1rem;
}

td:last-of-type {
  text-align: center;
}

tbody > tr:nth-of-type(even) {
  background-color: rgb(237 238 242);
}

tbody > tr.deleted{
  background-color: lightpink;
}

tfoot th {
  text-align: right;
}

tfoot td {
  font-weight: bold;
}


*[class*="info-"] {
  display: none;
}

.lb-info{
  display: inline-block;
  font-size: 20px;
  transform: rotate(90deg);
  transition: all .3s;
}

tr.visible{
  display: table-row;
  transition: all 1s linear;
}

tr.visible>*{
  text-align: left;
}

.infocheck{
  display: none;
}

.infocheck:checked + .lb-info{
  transform: rotate(-90deg);
}

.parcel_row_search th{
  padding: 3px;
}

.parcel_row_search th>input{
  margin: 0;
  width: 100%;
}

.stripes {
  background: repeating-linear-gradient(-45deg, lightgray, lightgray 1px, white 1px, white 30px);
}

/* DROPDOWN */

/* Dropdown Button */
.dropbtn {
  background-color: #3498DB;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
  background-color: #2980B9;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content option {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: background-color .3s;
}

.dropdown-content option:hover {
  background-color: lightgray;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
  display:block;
}
