:root {
  --blue: #075FCD;
  --orange: #FF3333;
  --orange-lite: #FFF9DD;
  --red: #f00;
  --grey-0: #999;
  --grey-1: #ccc;
  --grey-2: #ddd;
  --grey-3: #eee;
  --beige: hsl(35, 49%, 89%);
  --white: #fff;
}

body {
  font-family: sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
}

small {
  font-size: 14px;
  line-height: 20px;
}

a:hover {
  color: var(--orange);
}

form {
  padding: 10px;
}

label {
  display: inline-block;
  width: 160px;
  line-height: 28px;
}

input[type=text],
input[type=password] {
  width: 200px;
  font-size: 1rem;
  padding: 3px 5px 1px;
}

select {
  width: 200px;
}

input[type=submit],
button {
  background: var(--blue);
  color: var(--white);
  border: 0;
  padding: 10px 20px;
  border: 1px solid var(--blue);
}

input[type=reset] {
  background: #fff;
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 10px 20px;
}

input[type=submit]:hover,
input[type=reset]:hover,
button:hover {
  opacity: 85%;
}

input[type=submit]:active,
button:active {
  transform: scale(95%);
}

textarea {
  font-size: 1.1rem;
}

hr {
  border: 0;
  height: 1px;
  background: var(--grey-1);
  margin: 25px 0;
}

table {
  border-collapse: collapse;
}

th,
td {
  padding: 2px 10px;
}

td {
  border: 1px solid var(--grey-1);
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.rounded {
  border-radius: 100px;
}

.grid {
  display: grid;
}

@media (min-width: 1024px) {
  .lg-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sub-nav {
  border-bottom: 1px solid var(--grey-1);
  margin: 10px 0;
}

.sub-nav a {
  display: inline-block;
  padding: 10px 25px;
  border-bottom: 2px solid var(--white);
}

.sub-nav a.active {
  border-bottom: 2px solid var(--blue);
}

.update-now {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  background: #f00;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  padding: 5px 10px;
}

.update-padding {
  padding-top: 20px;
}

.l {
  text-align: left;
}

.r {
  text-align: right;
}

.c {
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin: auto;
}

.red {
  color: var(--red);
}

.orange-lite-bg {
  background: var(--orange-lite);
}

.grey {
  color: var(--grey-0);
}

.grey-bg-2 {
  background: var(--grey-2);
}

.grey-bg-3 {
  background: var(--grey-3);
}

.col-descr {
  width: 550px;
}

.col-value {
  width: 100px;
}

.box {
  padding: 10px 10px;
}

.dotted-box {
  border: 1px dotted #ccc;
  padding: 5px 10px;
}

/* Search categorie */

.search-categoria-container {
  position: relative;
}

.search-categoria-results {
  position: absolute;
  top: 25px;
  left: 0;
  background: #fff;
  border: 1px solid var(--grey-1);
  padding: 15px 20px;
  width: 500px;
}

.search-categoria-results ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Pure CSS Loaders */

.lds-dual-ring {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 16px;
  height: 16px;
  margin: 2px;
  border-radius: 50%;
  border: 2px solid var(--grey-0);
  border-color: var(--grey-0) transparent var(--grey-0) transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Link chiamate ajax */

.ajax-call {
  border: 1px solid var(--blue);
  border-radius: 1000px;
  display: inline-block;
  width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  overflow: hidden;
  position: relative;
  top: 3px;
  margin-right: 3px;
}

.ajax-call:hover {
  border-color: var(--orange);
}

/* Tooltip */

.tooltip-container {
  display: inline-block;
  position: relative;
}

.tooltip-icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  background-color: var(--grey-0);
  color: white;
  text-align: center;
  font-size: 14px;
  font-family: monospace;
  border-radius: 1000px;
}

.tooltip-icon:hover {
  cursor: pointer;
}

.tooltip-content {
  display: none;
  position: absolute;
  top: 25px;
  left: -5px;
  width: 450px;
  z-index: 1001;
  text-align: left;
  background-color: var(--grey-0);
  color: white;
  padding: 10px;
  border-radius: 5px;
}

/* Note */

.note-container {
  display: inline-block;
  position: relative;
}

.note-icon {
  display: block;
  transform: scale(-1, 1);
  background: var(--blue);
  color: #fff;
  border-radius: 1000px;
  display: inline-block;
  width: 25px;
  height: 25px;
  font-size: 20px;
  line-height: 25px;
  text-align: center;
  overflow: hidden;
  position: relative;
  top: 4px;
  margin-top: -4px;
  border: 1px solid var(--blue);
}

.note-icon:hover {
  background: var(--orange);
  border: 1px solid var(--orange);
  color: #fff;
  cursor: pointer;
}

.note-icon a {
  color: #fff;
}

.note-icon-lite {
  background: #fff;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.note-icon-lite:hover {
  background: #fff;
  border: 1px solid var(--orange);
  color: var(--orange);
}

.note-content {
  display: none;
  position: absolute;
  max-height: 450px;
  overflow: auto;
  top: 25px;
  left: -25px;
  width: 450px;
  z-index: 1001;
  text-align: left;
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--grey-1);
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.45);
}

.note-content hr {
  margin: 5px 0;
}

.note-form {
  margin-bottom: 5px;
}

.note-modal-container {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1005;
  background-color: rgba(0, 0, 0, .45);
  display: none;
}

.note-modal {
  position: fixed;
  width: 500px;
  top: 25px;
  left: 50%;
  z-index: 1010;
  transform: translateX(-50%);
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--grey-1);
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.45);
}
