.wrapper {
  margin-top: 5vh;
}

.dataTables_filter {
  float: right;
}

.table-hover > tbody > tr:hover {
  background-color: #ccffff;
}

@media only screen and (min-width: 768px) {
  .table {
    table-layout: fixed;
    max-width: 100% !important;
  }
}

thead {
  background: #ddd;
}

.table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight {
  background: #ffff99;
}

@media only screen and (max-width: 767px) {
  /* Force table to not be like tables anymore */
  table,
thead,
tbody,
th,
td,
tr {
    display: block;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  thead tr,
tfoot tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  td {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50% !important;
  }

  td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
  }

  .table td:nth-child(1) {
    background: #ccc;
    height: 100%;
    top: 0;
    left: 0;
    font-weight: bold;
  }

  /*
  Label the data
  */
  td:nth-of-type(1):before {
    content: "Name";
  }

  td:nth-of-type(2):before {
    content: "Position";
  }

  td:nth-of-type(3):before {
    content: "Office";
  }

  td:nth-of-type(4):before {
    content: "Age";
  }

  td:nth-of-type(5):before {
    content: "Start date";
  }

  td:nth-of-type(6):before {
    content: "Salary";
  }

  .dataTables_length {
    display: none;
  }
}


#example{
  display: none;
}
#suppliers{
  display: none;
}

#grigio{
  background-color: rgb(166, 205, 231);
}

.error{
  color: red;
  font-weight: bold;
}


/* here start invoice like css*/

			.invoice-box {
				max-width: 800px;
				margin: auto;
				padding: 30px;
				border: 1px solid #eee;
				box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
				font-size: 16px;
				line-height: 24px;
				font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
				color: #555;
			}

			.invoice-box table {
				width: 100%;
				line-height: inherit;
				text-align: left;
			}

			.invoice-box table td {
				padding: 5px;
				vertical-align: top;
			}

			.invoice-box table tr td:nth-child(2) {
				text-align: right;
			}
		

			.invoice-box table tr.top table td {
				padding-bottom: 20px;
			}

			.invoice-box table tr.top table td.title {
				font-size: 45px;
				line-height: 45px;
				color: #333;
			}

			.invoice-box table tr.information table td {
				padding-bottom: 40px;
			}

			.invoice-box table tr.heading td {
				background: #eee;
				border-bottom: 1px solid #ddd;
				font-weight: bold;
				text-align: left
			}

			.invoice-box table tr.details td {
				padding-bottom: 20px;
        text-align: left
			}

			.invoice-box table tr.item td {
				border-bottom: 1px solid #eee;
				text-align: left
			}

			.invoice-box table tr.item.last td {
				border-bottom: none;
			}

			.invoice-box table tr.total td:nth-child(2) {
				border-top: 2px solid #eee;
				font-weight: bold;
			}

			@media only screen and (max-width: 600px) {
				.invoice-box table tr.top table td {
					width: 100%;
					display: block;
					text-align: center;
				}

				.invoice-box table tr.information table td {
					width: 100%;
					display: block;
					text-align: center;
				}
			}

			/** RTL **/
			.invoice-box.rtl {
				direction: rtl;
				font-family: Tahoma, 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
			}

			.invoice-box.rtl table {
				text-align: right;
			}			.invoice-box.rtl table tr td:nth-child(2) {
				text-align: left;
			}			/* Override right alignment for #dati element */
			#dati {
				text-align: left !important;
				padding-left: 7% !important;
			}/* Align warehouse info to the left */
			.invoice-box table tr.information table td:nth-child(2) {
				text-align: left;
			}

/* file upload styling*/
		.custom-file-upload {
            position: relative;
            display: inline-block;
        }

        .custom-file-upload input[type="submit"] {
            padding: 10px 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            cursor: pointer;
            overflow: hidden;
            text-align: left;
            transition: background-color 0.2s ease-in-out;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            font-family: 'Roboto', sans-serif;
        }

        .custom-file-upload input[type="submit"]:hover {
            background-color: #573c1a;
			-webkit-text-fill-color: #ffffff;
		
        }
        .custom-file-upload input[type="submit"]::before {
            content: "\f0e4";
            font-family: FontAwesome;
            margin-right: 5px;
        }
        .custom-file-upload input[type="file"]{
			padding: 10px 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            cursor: pointer;
            overflow: hidden;
            text-align: left;
            transition: background-color 0.2s ease-in-out;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            font-family: 'Roboto', sans-serif;
		}
		
                      ::-webkit-file-name-text {
            color: black;
        }

        .infinite-scroll-marker.d-none {
          display: none !important;
      }
      
      .htmx-indicator {
          opacity: 0;
          transition: opacity 200ms ease-in;
      }
      
      .htmx-request .htmx-indicator {
          opacity: 1;
      }
      
      .htmx-settling tr {
          opacity: 0;
          animation: fade-in 0.3s ease-in forwards;
      }
      
      @keyframes fade-in {
          0% { opacity: 0; }
          100% { opacity: 1; }
      }
    /* overrides bootstrap 5 hover color */
      
      .table-hover tbody tr:hover td {
        background: rgb(230, 235, 236);
    }