/* ************************************************************************************************************************************

																													$$\           $$\   $$\         $$\   $$\                          
																													\__|          \__|  $$ |        \__|  $$ |                         
		$$\  $$\  $$\ $$\  $$\  $$\ $$\  $$\  $$\      $$$$$$\   $$$$$$\  $$$$$$\$$$$\  $$\ $$$$$$$\  $$\ $$$$$$\       $$\ $$$$$$\                        
		$$ | $$ | $$ |$$ | $$ | $$ |$$ | $$ | $$ |    $$  __$$\ $$  __$$\ $$  _$$  _$$\ $$ |$$  __$$\ $$ |\_$$  _|      $$ |\_$$  _|                       
		$$ | $$ | $$ |$$ | $$ | $$ |$$ | $$ | $$ |    $$ /  $$ |$$$$$$$$ |$$ / $$ / $$ |$$ |$$ |  $$ |$$ |  $$ |        $$ |  $$ |                         
		$$ | $$ | $$ |$$ | $$ | $$ |$$ | $$ | $$ |    $$ |  $$ |$$   ____|$$ | $$ | $$ |$$ |$$ |  $$ |$$ |  $$ |$$\     $$ |  $$ |$$\                      
		\$$$$$\$$$$  |\$$$$$\$$$$  |\$$$$$\$$$$  |$$\ \$$$$$$$ |\$$$$$$$\ $$ | $$ | $$ |$$ |$$ |  $$ |$$ |  \$$$$  |$$\ $$ |  \$$$$  |                     
		 \_____\____/  \_____\____/  \_____\____/ \__| \____$$ | \_______|\__| \__| \__|\__|\__|  \__|\__|   \____/ \__|\__|   \____/                      
																	 $$\   $$ |                                                                                           
																	 \$$$$$$  |                                                                        
																	  \______/                                                                                            

*************************************************************************************************************************************** */
.bandaDev {
  background: crimson;
  color: #ffffff;
  text-align: center;
  position: fixed;
  width: 100%;
  z-index: 9999;
}
.bandaDev h3 {
  font-size: 1.4rem;
}
.inputIco {
  width: 50px;
  text-align: center;
  display: grid;
}
#eyePassword {
  cursor: pointer;
}

.clock {
  background-color: #000;
  color: #fff;
  position: absolute;
  padding: 10px 20px;
  font-size: 40px;
  border-radius: 5px;
  left: 50%;
  transform: translateX(-50%);
}
.hidden {
  display: none;
}
.hiddenImportant {
  display: none !important;
}

/* MODAL FULLSCREEN CUSTOM */


.modal-fullscreen .modal-content{
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
}
.modal-fullscreen .modal-content {
  height: 100vh !important;
  border-radius: 0 !important;
  max-height: 100vh !important;
}
.modal-fullscreen .modal-body {
  padding: 0px !important;
  height: calc(100vh - 120px) !important;
  overflow: hidden !important;
}
.modal-fullscreen .modal-body iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

/*COLOR TEXT*/
.bianco {
  color: #ffffff;
}
.danger {
  color: #f41127;
}
.success {
  color: #17a00e;
}
.blue {
  color: #206bc3;
}
.azzurro {
  color: #4299e1;
}
.indaco {
  color: #4263eb;
}
.fucsia {
  color: #ae3ec9;
}
.rosa {
  color: #f8fafc;
}
.rosso {
  color: #d63939;
}
.orange {
  color: #f76707;
}
.giallo {
  color: #f49e00;
}
.lime {
  color: #74b816;
}
.green {
  color: #2fb344;
}
.verde {
  color: #0ca678;
}
.ciano {
  color: #17a2b8;
}
.dark {
  color: #1d273b;
}
.gray {
  color: #616876;
}

.blueLgh {
  color: #e8f1f6;
}
.azzurroLgh {
  color: #ebf5fe;
}
.indacoLgh {
  color: #edf1fd;
}
.fucsiaLgh {
  color: #f6ebfa;
}
.rosaLgh {
  color: #fdeaf0;
}
.rossoLgh {
  color: #f7eee9;
}
.orangeLgh {
  color: #ffeee4;
}
.gialloLgh {
  color: #fef5e4;
}
.limeLgh {
  color: #f1f8e5;
}
.greenLgh {
  color: #edf9ee;
}
.verdeLgh {
  color: #e0f8f3;
}
.cianoLgh {
  color: #e6f6f8;
}
.darkLgh {
  color: #e8eaea;
}
.grayLgh {
  color: #eeeff1;
}

/*BACKGROUND COLOR*/
.bgbianco {
  background-color: #ffffff;
}
.bgdanger {
  background-color: #f41127;
}
.bgsuccess {
  background-color: #17a00e;
}
.bgblue {
  background-color: #206bc3;
}
.bgazzurro {
  background-color: #4299e1;
}
.bgindaco {
  background-color: #4263eb;
}
.bgfucsia {
  background-color: #ae3ec9;
}
.bgrosa {
  background-color: #f8fafc;
}
.bgrosso {
  background-color: #d63939;
}
.bgorange {
  background-color: #f76707;
}
.bggiallo {
  background-color: #f49e00;
}
.bglime {
  background-color: #74b816;
}
.bggreen {
  background-color: #2fb344;
}
.bgverde {
  background-color: #0ca678;
}
.bgciano {
  background-color: #17a2b8;
}
.bgdark {
  background-color: #1d273b;
}
.bggray {
  background-color: #616876;
}

.bgblueLgh {
  background-color: #e8f1f6;
}
.bgazzurroLgh {
  background-color: #ebf5fe;
}
.bgindacoLgh {
  background-color: #edf1fd;
}
.bgfucsiaLgh {
  background-color: #f6ebfa;
}
.bgrosaLgh {
  background-color: #fdeaf0;
}
.bgrossoLgh {
  background-color: #f7eee9;
}
.bgorangeLgh {
  background-color: #ffeee4;
}
.bggialloLgh {
  background-color: #fef5e4;
}
.bglimeLgh {
  background-color: #f1f8e5;
}
.bggreenLgh {
  background-color: #edf9ee;
}
.bgverdeLgh {
  background-color: #e0f8f3;
}
.bgcianoLgh {
  background-color: #e6f6f8;
}
.bgdarkLgh {
  background-color: #e8eaea;
}
.bggrayLgh {
  background-color: #eeeff1;
}

input[type="text"]:read-only:focus,
input[type="text"]:read-only {
  /*background-color: #e8eaea;*/
}
/*span.select2-container--below{display:none!important;}*/
/*LABEL ANIMATION*/

.col-form-label,
.form-label {
  font-weight: 600;
  color: #565656;
}

.disabledSelect2 .select2-container {
  display: none !important;
}
/*.select2-hidden-accessible {-webkit-clip-path:unset!important;width:100%!important;height:20px!important;}*/

.labelPadd {
  padding-top: 25px;
}

.labelFilter {
  text-transform: uppercase;
}

label.inputCheck {
  position: unset;
  margin: 0px;
  padding: 4px 10px;
}
label.inputText {
  position: absolute;
  margin: 8px 0;
  padding: 0px 10px;
  -webkit-transition: margin 0.3s ease-in-out, font-size 0.3s ease-in-out,
    letter-spacing 0.2s ease-in-out;
  transition: margin 0.3s ease-in-out, font-size 0.3s ease-in-out,
    letter-spacing 0.2s ease-in-out;
  z-index: 1;
}

label.inputData {
  position: absolute;
  margin: 8px 0;
  padding: 0px 10px;
  -webkit-transition: margin 0.3s ease-in-out, font-size 0.3s ease-in-out,
    letter-spacing 0.2s ease-in-out;
  transition: margin 0.3s ease-in-out, font-size 0.3s ease-in-out,
    letter-spacing 0.2s ease-in-out;
  z-index: 1;
}

label.inputFile {
  position: absolute;
  margin: 8px 0;
  padding: 0px 10px;
  -webkit-transition: margin 0.3s ease-in-out, font-size 0.3s ease-in-out,
    letter-spacing 0.2s ease-in-out;
  transition: margin 0.3s ease-in-out, font-size 0.3s ease-in-out,
    letter-spacing 0.2s ease-in-out;
  z-index: 1;
}

label.active {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: -10px 0;
  padding: 0px 10px;
  position: absolute;
  background-color: #ffffff;
  margin-left: 8px;
  color: #0b5ed7;
  z-index: 999;
}

.form-control {
  font-size: 0.9rem;
}
/* /LABEL ANIMATION*/
.logo-icon {
  width: 120px;
}
/*NOTIFICA*/
.lobibox-notify .lobibox-notify-body {
  margin: 10px 35px 10px 90px;
}

@media screen and (min-width: 1400px) {
  .page-wrapper {
    padding-left: 0px;
    padding-right: 0px;
  }
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 98%;
  }
}
.navbar-brand-image {
  height: 2.5rem;
}

.dtfh-floatingparenthead {
  top: 100px;
}
.dataTables_processing {
  background: rgb(255, 255, 255, 1);
  z-index: 999999999;
}

/* OVERRIDE DATATABLE */

.dataTables_scroll {
  padding-top: 20px;
}

.dataTables_wrapper .dataTables_length {
  float: right;
}

.dataTables_scrollHeadInner {
  width: 100% !important;
}
table.dataTable {
  width: 100% !important;
}
table.dataTable > tbody > tr.selected > td.select-checkbox:after,
table.dataTable > tbody > tr.selected > th.select-checkbox:after {
  content: "";
  display: none;
}
table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody th.select-checkbox:before {
  content: " ";
  margin-top: -6px;
  margin-left: -6px;
  border: 0px solid black;
  border-radius: 3px;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
  left: 10px;
}
table.dataTable tr.selected td.select-checkbox:after,
table.dataTable tr.selected th.select-checkbox:after {
  content: "";
  margin-top: -6px;
  margin-left: -6px;
}
table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody th.select-checkbox:before {
  margin-top: 0px;
  margin-left: -6px;
}
table.dataTable tr.selected td.select-checkbox:before,
table.dataTable tr.selected th.select-checkbox:before {
  border: 1px solid white;
}
table.dataTable > tbody > tr > td.select-checkbox:before,
table.dataTable > tbody > tr > th.select-checkbox:before {
  display: none;
}
table.dataTable thead tr > .dtfc-fixed-left,
table.dataTable thead tr > .dtfc-fixed-right,
table.dataTable tfoot tr > .dtfc-fixed-left,
table.dataTable tfoot tr > .dtfc-fixed-right {
  background-color: #1d60b0;
}
table.dataTable thead tr th {
  background-color: #1d60b0;
  color: #fff;
  font-size: 14px;
}
div.dtfc-right-top-blocker {
  display: none !important;
}
.dt-rowReorder-moving {
  --tblr-bg-opacity: 0.1;
  --tblr-text-opacity: 1;
  color: rgba(var(--tblr-lime-rgb), var(--tblr-text-opacity)) !important;
  background-color: rgba(
    var(--tblr-lime-rgb),
    var(--tblr-bg-opacity)
  ) !important;
  height: 20px !important;
}
table th {
  vertical-align: top !important;
}
/*
table.dataTable tr.selected td.select-checkbox:after,
table.dataTable tr.selected th.select-checkbox:after {
	content: "✓";
	font-size: 26px;
	margin-top: -47px;
	margin-left: -9px;
	text-align: center;
	text-shadow: 1px 2px #b0bed9, 1px 1px #b0bed9, 0px 0px #b0bed9,
		1px 1px #b0bed9;
}
*/
table.dataTable thead tr > .dtfc-fixed-left,
table.dataTable thead tr > .dtfc-fixed-right,
table.dataTable tfoot tr > .dtfc-fixed-left,
table.dataTable tfoot tr > .dtfc-fixed-right {
  right: 0 !important;
}
@media screen and (max-width: 766px) {
  table.dataTable {
    width: 100% !important;
  }
  table.dataTable tr.selected td.select-checkbox:after,
  table.dataTable tr.selected th.select-checkbox:after {
    content: "✓";
    font-size: 23px;
    margin-top: -50px;
    margin-left: 2px;
  }
}

table.dataTable tr.selected td.select-checkbox a:link,
table.dataTable tr.selected td.select-checkbox a:visited,
table.dataTable tbody tr.selected a {
  color: #ffffff !important;
}
table.dataTable tr.selected td.select-checkbox:before,
table.dataTable tr.selected th.select-checkbox:before {
  border: 0px solid white;
}

table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody td.select-checkbox:after,
table.dataTable tbody th.select-checkbox:before,
table.dataTable tbody th.select-checkbox:after {
  display: block;
  position: absolute;
  top: 46px;
  left: 50%;
  width: 19px;
  height: 16px;
  box-sizing: border-box;
}
table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody th.select-checkbox:before {
  margin-top: -33px;
  margin-left: -8px;
}

.dataTables_processing {
  position: fixed !important;
  font-size: 20px !important;
  top: 40% !important;
  width: 180px !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  color: #ffffff !important;
  background-color: #4775ad !important;
  box-shadow: 0 0 30px #fff, 0 0 60px #5c5c5c !important;
  border-radius: 50% !important;
  height: 180px !important;
  padding-top: 60px !important;
}

div.dataTables_processing > div:last-child > div {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 1);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

table.dataTable tr.even-row {
  background-color: #f7f7f7;
}
table.dataTable tr.odd-row {
  background-color: #efefef;
}

/* COLORI */
.filterBt {
  padding-top: 20px;
}

.arancio {
  color: #f76707;
}

/* DEFAULT */
.left {
  text-align: left;
}
.center {
  text-align: center;
}
.right {
  text-align: right;
}
.nascondi {
  display: none;
}

.float-l {
  float: left;
}
.float-r {
  float: right;
}

.ml1 {
  margin-left: 5px;
}
.ml2 {
  margin-left: 10px;
}
.ml3 {
  margin-left: 15px;
}
.ml4 {
  margin-left: 20px;
}
.ml5 {
  margin-left: 25px;
}

.mr1 {
  margin-right: 5px;
}
.mr2 {
  margin-right: 10px;
}
.mr3 {
  margin-right: 15px;
}
.mr4 {
  margin-right: 20px;
}
.mr5 {
  margin-right: 25px;
}

.mt1 {
  margin-top: 5px;
}
.mt2 {
  margin-top: 10px;
}
.mt3 {
  margin-top: 15px;
}
.mt4 {
  margin-top: 20px;
}
.mt5 {
  margin-top: 25px;
}

.mt1r {
  margin-top: 1rem;
}
.mt2r {
  margin-top: 1.5rem;
}
.mt3r {
  margin-top: 2rem;
}
.mt4r {
  margin-top: 2.5rem;
}
.mt5r {
  margin-top: 3rem;
}

.mb1 {
  margin-bottom: 5px;
}
.mb2 {
  margin-bottom: 10px;
}
.mb3 {
  margin-bottom: 15px;
}
.mb4 {
  margin-bottom: 20px;
}
.mb5 {
  margin-bottom: 25px;
}

.mb1r {
  margin-bottom: 1rem;
}
.mb2r {
  margin-bottom: 1.5rem;
}
.mb3r {
  margin-bottom: 2rem;
}
.mb4r {
  margin-bottom: 2.5rem;
}
.mb5r {
  margin-bottom: 3rem;
}
.m1 {
  margin: 8px;
}
.m2 {
  margin: 12px;
}
.m3 {
  margin: 18px;
}
.m4 {
  margin: 22px;
}
.m5 {
  margin: 30px;
}
.p1 {
  padding: 8px;
}
.p2 {
  padding: 12px;
}
.p3 {
  padding: 18px;
}
.p4 {
  padding: 22px;
}
.p5 {
  padding: 30px;
}

.w5 {
  width: 5%;
}
.w10 {
  width: 10%;
}
.w15 {
  width: 15%;
}
.w20 {
  width: 20%;
}
.w25 {
  width: 25%;
}
.w30 {
  width: 30%;
}
.w35 {
  width: 35%;
}
.w40 {
  width: 40%;
}
.w45 {
  width: 45%;
}
.w50 {
  width: 50%;
}
.w55 {
  width: 55%;
}
.w60 {
  width: 60%;
}
.w65 {
  width: 65%;
}
.w70 {
  width: 70%;
}
.w75 {
  width: 75%;
}
.w80 {
  width: 80%;
}
.w85 {
  width: 85%;
}
.w90 {
  width: 90%;
}
.w95 {
  width: 95%;
}
.w100 {
  width: 100%;
}
.h60 {
  height: 60px;
}
.agHr {
  margin: 1rem 0;
  color: blue;
}
.fs11 {
  font-size: 11px;
}
.fs12 {
  font-size: 12px;
}
.fs13 {
  font-size: 13px;
}
.fs14 {
  font-size: 14px;
}
.fs15 {
  font-size: 15px;
}
.fs16 {
  font-size: 16px;
}
.fs17 {
  font-size: 17px;
}
.fs18 {
  font-size: 18px;
}
.fs19 {
  font-size: 19px;
}
.fs20 {
  font-size: 20px;
}
.fs21 {
  font-size: 21px;
}
.fs22 {
  font-size: 22px;
}
.fs23 {
  font-size: 23px;
}
.fs24 {
  font-size: 24px;
}
.fs25 {
  font-size: 25px;
}
.fs26 {
  font-size: 26px;
}
.fs27 {
  font-size: 27px;
}
.fs28 {
  font-size: 28px;
}
.fs29 {
  font-size: 29px;
}
.fs30 {
  font-size: 30px;
}
.fs1r {
  font-size: 1rem;
}
.fs2r {
  font-size: 1.5rem;
}
.fs3r {
  font-size: 2rem;
}
.fs4r {
  font-size: 2.5rem;
}
.fs5r {
  font-size: 3rem;
}

.border0 {
  border: 0;
}

.dispIB {
  display: inline-block;
}
.notB {
  font-weight: 100;
}
.font-size-small {
  font-size: 12px;
}
.bold {
  font-weight: 600;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.btn i {
  font-size: 1rem;
}
.right0 {
  right: 0 !important;
}
.header-colors-indigators .indigator {
  width: 45px;
  height: 45px;
  background: #f4f2f2;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  /* vertical-align: middle; */
  padding-top: 13px;
}

ul.metismenu li.active a {
  color: #ffffff !important;
  background-color: #0d6efd;
}

/* DYNAMSOFT BARCODE READER */
@media only screen and (max-width: 545px) {
  .controler {
    flex-direction: column;
  }
}

.selector_switch {
  position: relative;
  width: 250px;
  height: 30px;
  border: 1px solid #ccc;
  border-radius: 5px;
  line-height: 30px;
  cursor: pointer;
  transition: all 200ms;
}

.selector_switch:hover {
  border: 1px solid #b4b4b4;
}

.selector_input {
  position: absolute;
  left: 0;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0 30px 0 15px;
  box-sizing: border-box;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 5px;
  color: #606266;
}

.selector_switch svg {
  height: 30px;
  position: absolute;
  right: 5px;
}

.arrow {
  transform: rotate(0deg);
  transition: all 200ms;
}

.trans {
  transform: rotate(-180deg);
}

.options {
  position: absolute;
  width: 250px;
  max-height: 0;
  margin: 3px 0 10px 0;
  transition: max-height 200ms;
  overflow: hidden;
  border-radius: 5px;
  overflow: auto;
  z-index: 2000;
  background-color: #fff;
}

.show {
  /*border: 1px solid #e4e7ed;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
	max-height: 200px;*/
}

.unshow {
  border: none;
  box-shadow: none;
}

.noheight {
  max-height: 0;
}

.UIElement {
  width: 80vw;
  height: 60vh;
  max-width: 600px;
  margin: 2vmin auto;
  text-align: center;
  font-size: medium;
}

.UIElement > div {
  width: 100%;
  height: 100%;
}

.latest-result {
  display: block;
  margin: 0;
  padding: 0.4rem 0.8rem;
  color: inherit;
  min-width: 40vw;
  width: auto;
  border: none;
  font-size: 1rem;
  border-radius: 0.2rem;
  text-align: center;
}

.latest-result::placeholder {
  color: #b0bec5;
}

.latest-result:focus {
  outline: none;
  box-shadow: 0.1rem 0.4rem 0.8rem #fe8e14;
}

.imageuploadify-details {
  opacity: 0.8 !important;
}
.imageuploadify-details span {
  word-wrap: break-word;
  font-size: 10xp;
  white-space: break-spaces;
  padding: 0px 3px;
}
.imageuploadify .imageuploadify-images-list .imageuploadify-container {
  width: 220px;
  height: 150px;
}
.imageuploadify {
  max-width: unset;
}
.imageuploadify-container {
  margin-right: 6px;
}

fieldset {
  /*position: absolute;*/
  border: 5px solid #aaa;
  background: #aaa;
  right: 0px;
  bottom: 0px;
}
canvas {
  /*outline: 5px solid #aaa;*/
  background: #fff;
}
input[type="submit"],
input[type="reset"] {
  font-size: larger;
}

.dropdown-item {
  padding: 0.5rem 1rem;
}

body.login .card {
  box-shadow: 0 0px 56px 0 rgb(218 218 253 / 0%),
    0 0px 0px 0 rgb(206 206 238 / 0%) !important;
}

.loading {
  margin: 50px 0;
  text-align: center;
}
.progress {
  height: 2rem;
}
.spinner-grow {
  width: 5rem;
  height: 5rem;
}
.form-switch .form-check-input {
  width: 2.5rem;
}

/*
.form-check-input {
  height: 1.6em;
}
*/
.listArt {
  height: 38px;
  line-height: 38px;
}

/*COLOR*/
.danger {
  color: #f41127;
}
.success {
  color: #17a00e;
}
.selected .danger,
.selected .success {
  color: #fff;
}
.selected .btn-outline-success,
.selected .btn-outline-primary,
.selected .btn-outline-danger {
  color: #ffffff;
  border-color: #ffffff;
}

#tipologiaTab table tr td {
  vertical-align: middle;
}

.huAccordion {
  font-size: 14px;
}

.accordionHu .accordion-body {
  background-color: aliceblue !important;
}
.absolute {
  position: absolute;
}
span.config {
  display: grid;
  width: 30%;
  text-align: right;
  font-size: 59px;
  font-weight: 400;
  text-transform: uppercase;
}

/* MODAL */
#modal-success .mdImage,
#modal-danger .mdImage {
  font-size: 4rem;
  margin-bottom: 15px;
}

@media (min-width: 1200px) {
  .modal-xl {
    max-width: 1240px;
  }
}

@media (min-width: 1600px) {
  .modal-xl {
    max-width: 1640px;
  }
}

/* THEMES */

#sidebar-menu ul li i {
  margin-right: 10px;
  font-size: 20px;
  font-weight: 400;
}
@media (min-width: 768px) {
  .card-md > .card-body {
    padding: 0.8rem;
  }
}
.card-title {
  font-size: 1.2rem;
}

.theme-dark select,
.theme-dark select option {
  background-color: #1a2234;
  border: 1px solid #243049;
  color: #f8fafc;
}
.theme-dark .select2-container--bootstrap4 .select2-selection {
  background-color: #1a2234;
  border: 1px solid #243049;
  border-radius: 0.25rem;
}
.theme-dark
  .select2-container--bootstrap4
  .select2-selection--single
  .select2-selection__placeholder {
  color: #f8fafc;
}
span.op li.select2-selection__choice {
  font-size: 12px;
}
li.select2-results__option {
  font-size: 11px;
}
span.op .select2-container .select2-selection--multiple {
  font-size: 11px;
}
.theme-dark .select2-container--bootstrap4 .select2-selection {
  background-color: #1a2234;
  border: 1px solid #243049;
  border-radius: 0.25rem;
}
.theme-dark .select2-dropdown {
  background-color: #1a2234;
  border: 1px solid #243049;
  color: #f8fafc;
}
.theme-dark .select2-dropdown input {
  background-color: #243049;
  border: 1px solid #243049;
  color: #f8fafc;
}

.theme-dark label.active {
  background-color: #1d273b;
  margin-left: 8px;
  color: #2445ff;
}
/*
@media (min-width: 992px){
  .modal-lg, .modal-xl {
	  --tblr-modal-width: 90%;
  }
}
*/

.card-header:last-child {
  border-radius: 0 0 var(--tblr-card-border-radius)
    var(--tblr-card-border-radius);
}
.card-bottom {
  padding: var(--tblr-card-cap-padding-y) var(--tblr-card-cap-padding-x);
  color: var(--tblr-card-cap-color);
  background-color: var(--tblr-card-cap-bg);
  border-bottom: var(--tblr-card-border-width) solid
    var(--tblr-card-border-color);
}
.modal-title {
  font-size: 1.2rem;
}
.row-cards {
  --tblr-gutter-y: unset;
}

.bBlue {
  z-index: 1;
  color: var(--tblr-primary);
  background: rgba(var(--tblr-primary-rgb), 0.04);
  border: 1px solid #206bc4;
}

/* /THEMES */

.bloccoUrl {
  padding-bottom: 20px;
}

.gbtText {
  height: auto;
  min-height: 500px !important;
}

ul.tabLav {
  padding: 10px;
  border-radius: 0;
}

ul.tabLav li {
  width: 100%;
}

ul.tabLav li a.tabLavA {
  text-align: left;
  width: 100%;
  justify-content: unset !important;
  padding: 10px 5px;
}
.card-header-tabs .tabLavA.active {
  border-color: var(--tblr-nav-tabs-link-active-border-color);
}

ul.navbar-nav li.active i,
ul.navbar-nav li.active,
li.nav-item a:active {
  color: #206bc4 !important;
}

select:focus,
textarea:focus,
input:focus {
  border: 1px solid green !important;
}
.bb1 {
  border-bottom: 1px solid #c0c0c0;
}

ul.listarticoli {
  margin: 0;
  background-color: #f6f9fd;
  border: 1px solid #206bc4;
  padding: 0 5px;
  list-style: none;
  border-radius: 5px;
}

ul.listarticoli li {
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid #206bc4;
  cursor: pointer;
}

ul.listarticoli li:last-child {
  border-bottom: 0px solid #206bc4;
}

.lista0 {
  background: #eceffd;
  border-radius: 20px;
  padding: 15px;
}

.agEvent {
  font-size: 14px;
  padding: 5px 6px;
}
.fc-event:hover,
.ui-widget .fc-event {
  background: #f59f00 !important;
  color: #ffffff !important;
}
.fc-list-item :hover {
  background: #f59f00 !important;
  color: #ffffff !important;
}

.noCursor,
.noCursor:hover {
  cursor: default;
}

table.dataTable tbody tr > .dtfc-fixed-left,
table.dataTable tbody tr > .dtfc-fixed-right {
  z-index: 1;
  background-color: unset;
}
.markdown > table,
.table {
  --tblr-table-striped-bg: unset;
}

.delimitatore {
  padding: 15px 0;
  border-bottom: 2px dashed #c0c0c0;
  margin-bottom: 15px;
}
.delimitatoreOrd {
  border-bottom: 2px dashed rgb(247 99 7);
  margin-bottom: 15px;
  border-bottom-width: 8px !important;
}
/*
.list-group-flush>.list-group-item {

}
*/
.material-symbols-sharp {
  margin-right: 5px;
}
.material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

/* HTML: <div class="loader"></div> */

/*INPUT FOCUS READONLY DISABLED */

select[aria-readonly="true"] {
  pointer-events: none;
  opacity: 1;
}

input[type="number"]:focus,
input[type="text"]:focus,
textarea:active,
textarea:focus,
input[type="number"]:active,
input[type="text"]:active,
textarea:hover,
input[type="number"]:hover,
input[type="text"]:hover {
  background-color: #ecf5fc !important;
}

input[type="checkbox"]:hover,
input[type="checkbox"]:active,
input[type="checkbox"]:focus {
  background-color: #206bc4 !important;
}
input[type="radio"]:hover,
input[type="radio"]:active,
input[type="radio"]:focus {
  background-color: #206bc4 !important;
}
textarea:read-only,
input[type="text"]:read-only,
input[type="number"]:read-only {
  color: #1a1a1a !important;
  background: #d0d0d0 !important;
}

/* OVERRIDE CSS TEMPLATE */
@media (max-width: 1200px) {
  .card-body {
    padding: 10px 10px;
  }
}
@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: unset;
  }
}

@media (min-width: 992px) {
  .modal-lg,
  .modal-xl {
    --tblr-modal-width: 50% !important;
  }
}

.modal {
  --tblr-modal-width: unset;
}

.navbar {
  --tblr-navbar-nav-link-padding-x: 2rem;
}

/* OVERRIDE DATATABLE */
.dataTables_processing {
  background: rgb(255, 255, 255, 1);
  z-index: 999999999;
}
.table-responsive {
  overflow-x: hidden !important;
}

.table-responsive tr ul.dtr-details {
  width: 100%;
}
table.dataTable > tbody > tr.child span.dtr-title {
  display: inline-block;
  min-width: 140px;
  font-weight: bold;
  text-align: right;
  padding-right: 10px;
}

.dataTables_scrollHeadInner {
  width: 100% !important;
}
table.dataTable {
  width: 100% !important;
}

table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody th.select-checkbox:before {
  content: " ";
  margin-top: -6px;
  margin-left: -6px;
  border: 0px solid black;
  border-radius: 3px;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
  left: 10px;
}
table.dataTable tr.selected td.select-checkbox:after,
table.dataTable tr.selected th.select-checkbox:after {
  content: "";
  margin-top: -6px;
  margin-left: -6px;
}
table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody th.select-checkbox:before {
  margin-top: 0px;
  margin-left: -6px;
}
table.dataTable tr.selected td.select-checkbox:before,
table.dataTable tr.selected th.select-checkbox:before {
  border: 1px solid white;
}
/*
table.dataTable tr.selected td.select-checkbox:after,
table.dataTable tr.selected th.select-checkbox:after {
	content: "✓";
	font-size: 26px;
	margin-top: -47px;
	margin-left: -9px;
	text-align: center;
	text-shadow: 1px 2px #b0bed9, 1px 1px #b0bed9, 0px 0px #b0bed9,
		1px 1px #b0bed9;
}
*/
@media screen and (max-width: 766px) {
  table.dataTable {
    width: 100% !important;
  }
  table.dataTable tr.selected td.select-checkbox:after,
  table.dataTable tr.selected th.select-checkbox:after {
    content: "✓";
    font-size: 23px;
    margin-top: -50px;
    margin-left: 2px;
  }
}

table.dataTable tr.selected td.select-checkbox:before,
table.dataTable tr.selected th.select-checkbox:before {
  border: 0px solid white;
}

table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody td.select-checkbox:after,
table.dataTable tbody th.select-checkbox:before,
table.dataTable tbody th.select-checkbox:after {
  display: block;
  position: absolute;
  top: 46px;
  left: 50%;
  width: 19px;
  height: 16px;
  box-sizing: border-box;
}
table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody th.select-checkbox:before {
  margin-top: -33px;
  margin-left: -8px;
}

.dataTables_processing {
  position: fixed !important;
  font-size: 20px !important;
  top: 40% !important;
  width: 180px !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  color: #ffffff !important;
  background-color: rgb(13, 202, 240, 0.8) !important;
  box-shadow: 0 0 30px #fff, 0 0 60px #5c5c5c !important;
  border-radius: 50% !important;
  height: 180px !important;
  padding-top: 60px !important;
}

div.dataTables_processing > div:last-child > div {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 1);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.dataTables_wrapper .dataTables_length {
  float: right !important;
}

.dataTables_scroll {
  padding-top: 30px;
}
.agGroupList .list-group-item {
  padding: 5px 5px;
}

/* MULTISELECT HTML */
select[multiple] {
  border: 1px solid #c0c0c0;
  width: 100%;

  border-radius: 0.25em;
  padding: 0.5em 0.5em;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.1;
  background-color: #fff;
  background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
}
select:focus + .focus {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 2px solid var(--select-focus);
  border-radius: inherit;
  background: content-box;
}
select[multiple] option {
  white-space: normal;
  padding: 0.4em 0.5em;
  border-bottom: 1px dashed #c0c0c0;
}
.notifyTitle,
.notifyMsg {
  text-align: left !important;
}
.notifyTitle {
  border-bottom: 1px dashed #c0c0c0;
  padding-bottom: 10px;
}
.notifyMsg {
  font-size: 16px;
  line-height: 22px;
}

ul.ui-sortable {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ul.ui-sortable li {
  margin: 0px;
  padding: 0px;
  cursor: move;
}

.ui-sortable-helper {
  --tblr-bg-opacity: 0.1;
  --tblr-text-opacity: 1;
  color: rgba(var(--tblr-lime-rgb), var(--tblr-text-opacity)) !important;
  background-color: rgba(
    var(--tblr-lime-rgb),
    var(--tblr-bg-opacity)
  ) !important;
}
i.position {
  left: 0;
  margin-left: 20px;
  position: absolute;
}
i.deg90 {
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
}
@media (min-width: 576px) {
  .d-sm-inline-block {
    display: block;
  }
}

.list-group-item:hover {
  background-color: rgb(0 0 0 / 4%);

  border-color: #206bc4;
  border-width: 0.5pt;
}

.resultClienti .list-group-item:hover,
.resultArt .list-group-item:hover {
  border-width: 0px;
  background-color: rgb(0 80 239 / 8%);
}

.popover-header {
  background-color: #20c0d794;
  padding: 0.2rem;
  text-align: left;
}
.popover-body {
  background: aliceblue;
  padding: 0.5rem;
}
.bgBoxOrdine {
  background-color: #7086a221;
  padding: 1rem;
  border: 1px solid #c0c0c0;
  margin: 0.8rem 0.1rem;
}
.markdown > table thead th,
.table thead th {
  background: #dedede;
}
.artLavorazione {
  padding: 0;
}

.lavorazione table td {
  vertical-align: baseline;
}

/* STATISTICHE */
:root {
  --good: #10b981;
  --medium: #f59e0b;
  --poor: #ef4444;
  --bg-good: #ecfdf5;
  --bg-medium: #fffbeb;
  --bg-poor: #fef2f2;
}
.card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  overflow: hidden;
}
/*.card:hover { transform: translateY(-4px); }*/

.metric-card {
  min-height: 190px;
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.metric-icon {
  font-size: 1.4rem;
  padding: 0.5rem;
  border-radius: 8px;
}

.metric-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.metric-value {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.25rem 0;
}

.metric-meta {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.metric-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #495057;
  border-top: 1px dashed #e9ecef;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.status-good {
  border-left: 6px solid var(--good);
}
.status-medium {
  border-left: 6px solid var(--medium);
}
.status-poor {
  border-left: 6px solid var(--poor);
}

.status-good .metric-icon {
  background-color: var(--bg-good);
  color: var(--good);
}
.status-medium .metric-icon {
  background-color: var(--bg-medium);
  color: var(--medium);
}
.status-poor .metric-icon {
  background-color: var(--bg-poor);
  color: var(--poor);
}

.status-good .metric-value {
  color: var(--good);
}
.status-medium .metric-value {
  color: var(--medium);
}
.status-poor .metric-value {
  color: var(--poor);
}

.header-badge {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  color: white;
  font-weight: 600;
}
.info-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #6c757d;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
  transition: all 0.2s ease;
  z-index: 10;
}
.info-icon:hover {
  background-color: #495057;
  transform: scale(1.1);
}
.metric-card {
  position: relative;
}
.tooltip-custom {
  position: absolute;
  background: #333;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  right: -10px;
  top: 30px;
}
.tooltip-custom::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 15px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #333;
}
.info-icon:hover + .tooltip-custom {
  display: block;
}

table.table-vcenter thead tr {
  margin: 0;
}

.lavorazione table.table-vcenter thead td {
  vertical-align: baseline;
  font-weight: 500;
  font-size: 0.8rem;
}
.tempoStrimato {
  position: absolute;
  right: 13px;
  font-size: 1rem;
  color: #ffffff;
}

/*ASSE CARTESIANO STATISTICHE*/
.legend {
  position: absolute;
  top: 14px;
  right: 45px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgb(203 203 203 / 32%);
  padding: 5px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  width: auto;
  height: auto;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.legend-item.disabled {
  opacity: 0.3;
}

.legend-color {
  width: 25px;
  height: 3px;
  border-radius: 2px;
}

.legend-icon {
  font-size: 12px;
}

.legend-text {
  font-size: 11px;
  color: #333;
}

canvas {
  display: block;
  width: 99%;
  /*cursor: crosshair*/
}

.chart-tooltip {
  position: fixed !important;
  background: rgba(0, 0, 0, 0.95) !important;
  color: white !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  display: none !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.chart-tooltip.active {
  display: block !important;
}

.chart-tooltip-title {
  font-weight: bold;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 4px;
}

.chart-tooltip-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
}

.chart-tooltip-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/*  CALENDARIO */
/* Calendario Container */
/* Calendario Container */
.calendario-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* Header Calendario */
.calendario-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendario-header h1 {
  margin: 0;
  font-size: 24px;
  color: #1e293b;
}

.calendario-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-nav {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-nav:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-nav:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-today {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  font-weight: 600;
}

.btn-today:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.current-month {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  min-width: 200px;
  text-align: center;
}

/* Vista Switcher */
.view-switcher {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.view-switcher button {
  padding: 8px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  position: relative;
}

.view-switcher button.active {
  background: #eff6ff;
  color: #3b82f6;
  font-weight: 600;
}

.view-switcher button:hover:not(.active) {
  background: #f8fafc;
}

/* Calendario Grid */
.calendario-grid {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.calendario-grid.hidden {
  display: none;
}

.calendario-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.weekday {
  padding: 15px;
  text-align: center;
  font-weight: 600;
  color: #64748b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendario-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e2e8f0;
}

.day-cell {
  background: white;
  min-height: 150px;
  padding: 8px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.day-cell:hover {
  background: #f8fafc;
}

.day-cell.other-month {
  background: #f8fafc;
  opacity: 0.5;
}

.day-cell.today {
  background: #eff6ff;
}

.day-number {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 5px;
}

.day-cell.today .day-number {
  background: #206bc4;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Festività */
.day-cell.festivo {
         background: linear-gradient(135deg, #ff000069 0%, #ff00001f 100%);
    border: 2px solid #e7e7e7;
}

.day-cell.festivo .day-number {
  color: white;
  font-weight: 700;
}

.festivita-label {
  font-size: 13px;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Eventi nel calendario */
.event-item {
  background: linear-gradient(135deg, #0066e5 0%, #286fd9 100%);
  border-radius: 4px;
  padding: 5px 7px;
  margin-bottom: 3px;
  font-size: 11px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.event-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.status-0 {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.status-30 {
  background: linear-gradient(135deg, #ffa500f5 0%, #fd8810 100%);
}
.status-60 {
  background: linear-gradient(135deg, #02c7ad 0%, #03a187 100%);
}
.status-90 {
  background: linear-gradient(135deg, #0066e5 0%, #286fd9 100%);
}

.status-100 {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}


.week-card.status-0 {
  border-left-color: #dc2626;
  background: linear-gradient(135deg, rgb(199 2 2 / 12%) 0%, rgb(209 18 18 / 0%) 100%)
  
}

.week-card.status-30 {
  border-left-color: #f9a51c;
  background: linear-gradient(135deg, #ffa500f5 0%, #fd8810 100%);
}

.week-card.status-60 {
  border-left-color: #039ea1;
  background: linear-gradient(135deg, rgb(2 181 199 / 17%) 0%, rgba(3, 105, 161, 0.02) 100%);
}

.week-card.status-90 {
  border-left-color: #8e02f1;
  background: linear-gradient(135deg, rgb(41 2 199 / 15%) 0%, rgba(3, 105, 161, 0.02) 100%);
}

.week-card.status-100 {
  border-left-color: #15803d;
  background: linear-gradient(
    135deg,
    rgba(22, 163, 74, 0.05) 0%,
    rgba(21, 128, 61, 0.02) 100%
  );
}



.event-item {
  cursor: move;
  transition: all 0.2s ease;
}

.event-item:active {
  cursor: grabbing;
}

.event-item.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.calendar-day.drag-over {
  background: #dbeafe;
  border-color: #3b82f6;
}

.event-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.event-percentage {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.event-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.3s;
  border-radius: 0 0 4px 4px;
}

.event-more {
  font-size: 9px;
  color: #64748b;
  padding: 2px 4px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
}

.event-more:hover {
  color: #206bc4;
}

/* Modal per dettagli evento */
.event-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.event-modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #1e293b;
}

.modal-close {
  background: white;
  border: 1px solid #d1d5db;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

.modal-body {
  padding: 24px;
}

.modal-field {
  margin-bottom: 20px;
}

.modal-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.modal-value {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.5;
}

.progress-bar-container {
  background: #e2e8f0;
  border-radius: 8px;
  height: 24px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
  transition: width 0.3s;
}

.progress-bar-fill.low {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.progress-bar-fill.medium {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.progress-bar-fill.high {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.date-range {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.date-badge {
  padding: 6px 12px;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.date-arrow {
  color: #94a3b8;
}

/* Legenda */
.calendario-legend {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legend-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}

.legend-items {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

/* Vista Settimanale */
.week-view {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.week-view.hidden {
  display: none;
}

.week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  gap: 1px;
  background: #e2e8f0;
}

.week-day-header {
  padding: 20px 15px;
  text-align: center;
  background: white;
}

.week-day-name {
  font-weight: 600;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.week-day-number {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 8px;
}

.week-day-header.today {
  background: linear-gradient(135deg, #206bc4 0%, #1c5cad 100%);
}

.week-day-header.today .week-day-name {
  color: rgba(255, 255, 255, 0.9);
}

.week-day-header.today .week-day-number {
  color: white;
}

.week-cards-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 15px;
  background: #f8fafc;
  min-height: 750px;
  align-items: start;
}

.week-day-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.week-card {
  background: white;
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid;
}

.week-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.week-card.status-0 {
  border-left-color: #dc2626;
  background: linear-gradient(135deg, rgb(199 2 2 / 12%) 0%, rgb(209 18 18 / 0%) 100%)
  
}

.week-card.status-30 {
  border-left-color: #f9a51c;
  background: linear-gradient(135deg, rgb(255 165 0 / 20%) 0%, rgb(209 18 18 / 0%) 100%);
}

.week-card.status-60 {
  border-left-color: #039ea1;
  background: linear-gradient(135deg, rgb(2 181 199 / 17%) 0%, rgb(0 177 255 / 49%) 100%);
}

.week-card.status-90 {
    border-left-color: #0066e5;
    background: linear-gradient(135deg, #0066e526 0%, #286fd969 100%);
}

.week-card.status-100 {
  border-left-color: #15803d;
      background: linear-gradient(135deg, rgb(22 163 74 / 17%) 0%, rgb(21 153 70 / 58%) 100%);
}



/*
.status-0 {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.status-30 {
  background: linear-gradient(135deg, #c79202 0%, #a15703 100%);
}
.status-60 {
  background: linear-gradient(135deg, #02c7ad 0%, #03a187 100%);
}
.status-90 {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.status-100 {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}
*/

.week-card-company {
  font-weight: 700;
  font-size: 11px;
  color: #1e293b;
  margin-bottom: 4px;
  line-height: 1.2;
}

.week-card-order {
  font-size: 9px;
  color: #64748b;
  margin-bottom: 5px;
  font-family: monospace;
}

.week-card-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.week-card-progress-bar {
  flex: 1;
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.week-card-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.week-card-progress-fill.low {
  background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
}

.week-card-progress-fill.medium {
  background: linear-gradient(90deg, #e7a000e8 0%, #f9cf00 100%);
}

.week-card-progress-fill.medium1 {
  background: linear-gradient(90deg, #02bec7 0%, #03a1a1 100%);
}

.week-card-progress-fill.high {
  background: linear-gradient(90deg, #16a34a 0%, #15803d 100%);
}
.week-card-progress-fill.high1 {
  background: linear-gradient(90deg, #1662a3 0%, #155d80 100%);
}


.week-card-progress-text {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  min-width: 32px;
  text-align: right;
}

.week-empty-day {
  text-align: center;
  padding: 30px 15px;
  color: #94a3b8;
  font-size: 12px;
}

.week-empty-day::before {
  content: "📭";
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Vista Giornaliera */
.day-view {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.day-view.hidden {
  display: none;
}

.day-view-header {
  padding: 20px;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  text-align: center;
}

.day-view-date {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.day-view-weekday {
  font-size: 14px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.day-view-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  max-height: 850px;
  overflow-y: auto;
}

.day-timeline {
  border-right: 2px solid #e2e8f0;
  background: #fafbfc;
}

.day-time-slot {
  height: 60px;
  padding: 8px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-align: right;
  border-bottom: 1px solid #e2e8f0;
}

.day-events-container {
  position: relative;
}

.day-hour-line {
  height: 60px;
  border-bottom: 1px solid #f1f5f9;
}

.day-event {
  position: absolute;
  left: 12px;
  right: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: white;
  cursor: move;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: all 0.2s ease;
}

.day-event:hover {
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.02);
}

.day-event.dragging {
  opacity: 0.5;
  cursor: grabbing;
  transform: rotate(2deg);
}

.day-event-company {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.day-event-order {
  font-size: 11px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.day-event-description {
  font-size: 10px;
  opacity: 0.85;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.day-event-progress-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
}

.day-event-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.day-event-progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
}

/* Toolbar Funzionalità */
.calendario-toolbar {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toolbar-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.toolbar-row:last-child {
  margin-bottom: 0;
}

.toolbar-section {
  display: flex;
  gap: 10px;
  align-items: center;
}

.toolbar-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  min-width: 70px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.search-input {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
}

.search-input::placeholder {
  color: #9ca3af;
}

.filter-select {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  min-width: 160px;
}

.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Select with Search */
.select-search-wrapper {
  position: relative;
  display: inline-block;
}

.select-search-container {
  position: relative;
  min-width: 200px;
}

.select-search-display {
  height: 32px;
  padding: 0 30px 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.select-search-display:hover {
  border-color: #3b82f6;
}

.select-search-display::after {
  content: "▼";
  position: absolute;
  right: 10px;
  font-size: 10px;
  color: #6b7280;
  transition: transform 0.2s;
}

.select-search-container.active .select-search-display::after {
  transform: rotate(180deg);
}

.select-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  max-height: 300px;
  overflow: hidden;
}

.select-search-container.active .select-search-dropdown {
  display: block;
}

.select-search-input {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  outline: none;
}

.select-search-input:focus {
  background: #f9fafb;
}

.select-search-options {
  max-height: 250px;
  overflow-y: auto;
}

.select-search-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}

.select-search-option:hover {
  background: #f3f4f6;
}

.select-search-option.selected {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 500;
}

.select-search-option.hidden {
  display: none;
}

.btn-action {
  height: 32px;
  padding: 0 16px;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

/* Buttons - Tabler Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: #206bc4;
  color: white;
  border-color: #206bc4;
}

.btn-primary:hover {
  background: #1a569d;
  border-color: #1a569d;
}

.btn-secondary {
  background: #626976;
  color: white;
  border-color: #626976;
}

.btn-secondary:hover {
  background: #4a5058;
  border-color: #4a5058;
}

/* KPI Dashboard */
.kpi-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.kpi-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kpi-total {
  border-color: #3b82f6;
}
.kpi-progress {
  border-color: #f59e0b;
}
.kpi-completed {
  border-color: #10b981;
}
.kpi-deadline {
  border-color: #f59e0b;
}
.kpi-overdue {
  border-color: #ef4444;
}
.kpi-avg-time {
  border-color: #8b5cf6;
}

.kpi-icon {
  font-size: 32px;
  line-height: 1;
}

.kpi-content {
  flex: 1;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.kpi-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  font-weight: 500;
}

/* Progress generale */
.overall-progress {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.overall-progress-title {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 10px;
}

.overall-progress-bar {
  height: 24px;
  background: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.overall-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

/* Sistema Notifiche */
.notifications-container {
  margin-bottom: 20px;
}

.notification-item {
  background: white;
  border-left: 4px solid;
  border-radius: 6px;
  padding: 15px 20px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification-warning {
  border-color: #f59e0b;
  background: #fffbeb;
}

.notification-danger {
  border-color: #ef4444;
  background: #fef2f2;
}

.notification-info {
  border-color: #3b82f6;
  background: #eff6ff;
}

.notification-icon {
  font-size: 24px;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.notification-text {
  font-size: 13px;
  color: #64748b;
}

.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #64748b;
}

/* Statistiche */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
}

.stat-card.red {
  border-left-color: #dc2626;
}

.stat-card.blue {
  border-left-color: #0284c7;
}

.stat-card.green {
  border-left-color: #16a34a;
}

.stat-card.yellow {
  border-left-color: #eab308;
}

.stat-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}

.stat-sublabel {
  font-size: 13px;
  color: #94a3b8;
}

/* Badge Filtri Attivi */
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #eff6ff;
  color: #3b82f6;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  transition: all 0.2s ease;
}

.filter-badge:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.filter-badge-remove {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  opacity: 0.6;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.filter-badge-remove:hover {
  opacity: 1;
  color: #dc2626;
}

/* Modal Aggiungi Lavoro */
.add-work-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.add-work-modal.active {
  display: flex;
}

.add-work-content {
  background: white;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.form-label.required::after {
  content: "*";
  color: #dc2626;
  margin-left: 4px;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #1f2937;
}

.form-input:hover {
  border-color: #9ca3af;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

/* Notifiche Toast */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left-color: #16a34a;
}

.toast.error {
  border-left-color: #dc2626;
}

.toast.warning {
  border-left-color: #eab308;
}

.toast.info {
  border-left-color: #0284c7;
}

.toast-icon {
  font-size: 20px;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  color: #1e293b;
}

.toast-close {
  cursor: pointer;
  color: #94a3b8;
  font-weight: 700;
  font-size: 18px;
}

.toast-close:hover {
  color: #64748b;
}

/* Event Badges */
.event-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.badge-urgent {
  color: #dc2626;
}

.badge-new {
  color: #16a34a;
}

/* Quick Actions sui Card */
.event-actions {
  position: absolute;
  top: 2px;
  right: 2px;
  display: none;
  gap: 3px;
  z-index: 50;
}

.event-item:hover .event-actions,
.week-card:hover .event-actions,
.day-event:hover .event-actions {
  display: flex;
}

.action-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(209, 213, 219, 0.8);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.action-edit {
  color: #3b82f6;
  border-color: #bfdbfe;
}

.action-edit:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

.action-delete {
  color: #ef4444;
  border-color: #fecaca;
}

.action-delete:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

.action-copy {
  color: #10b981;
  border-color: #bbf7d0;
}

.action-copy:hover {
  background: #f0fdf4;
  border-color: #10b981;
}

/* Vista Gantt */
.gantt-view {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
}

.gantt-view.hidden {
  display: none;
}

.gantt-header {
  display: flex;
  position: sticky;
  top: 0;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  z-index: 10;
}

.gantt-labels {
  min-width: 200px;
  padding: 15px;
  font-weight: 700;
  color: #64748b;
  border-right: 2px solid #e2e8f0;
}

.gantt-timeline {
  flex: 1;
  display: flex;
  padding: 15px;
}

.gantt-day {
  min-width: 40px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
}

.gantt-rows {
  display: flex;
  flex-direction: column;
}

.gantt-row {
  display: flex;
  min-height: 50px;
  border-bottom: 1px solid #f1f5f9;
}

.gantt-row:hover {
  background: #f8fafc;
}

.gantt-row-label {
  min-width: 200px;
  padding: 12px 15px;
  border-right: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
}

.gantt-row-label-company {
  font-weight: 600;
  font-size: 12px;
  color: #1e293b;
}

.gantt-row-timeline {
  flex: 1;
  position: relative;
  padding: 8px 0;
}

.gantt-bar {
  position: absolute;
  height: 34px;
  border-radius: 4px;
  padding: 6px 10px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.gantt-bar:hover {
  transform: scaleY(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

/* Timeline Laterale */
.side-timeline {
  position: fixed;
  right: 0;
  top: 80px;
  width: 320px;
  height: calc(100vh - 100px);
  background: white;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.side-timeline.active {
  transform: translateX(0);
}

.timeline-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #3b82f6;
  color: white;
  padding: 12px 8px;
  border: none;
  border-radius: 6px 0 0 6px;
  cursor: pointer;
  z-index: 998;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 20px;
  transition: all 0.2s;
  width:50px;
}

.timeline-toggle:hover {
  background: #2563eb;
  padding-left: 12px;
}

.timeline-header {
  padding: 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  position: relative;
}

.timeline-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.timeline-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-date {
  font-size: 13px;
  opacity: 0.9;
}

.timeline-content {
  padding: 15px;
}

.timeline-item {
  padding: 12px;
  margin-bottom: 10px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
  cursor: pointer;
  transition: all 0.2s;
}

.timeline-item:hover {
  background: #eff6ff;
  transform: translateX(-4px);
}

.timeline-item-company {
  font-weight: 700;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 4px;
}

.timeline-item-order {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
}

.timeline-item-progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.timeline-item-fill {
  height: 100%;
  background: #3b82f6;
}

/* Grafici Avanzamento */
.progress-charts {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 15px;
}

.chart-container {
  height: 200px;
  position: relative;
}

.chart-bar-group {
  display: flex;
  gap: 15px;
  height: 150px;
  align-items: flex-end;
  margin-top: 20px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, #206bc4, #3b82f6);
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 20px;
  transition: all 0.3s;
  cursor: pointer;
}

.chart-bar:hover {
  transform: scaleY(1.05);
  filter: brightness(1.1);
}

.chart-bar-label {
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.chart-bar-value {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

/* Badge Priorità */
.priority-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-normale {
  background: #e2e8f0;
  color: #64748b;
}

.priority-alta {
  background: #fef3c7;
  color: #d97706;
}

.priority-urgente {
  background: #fee2e2;
  color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
  .calendario-header {
    flex-direction: column;
    gap: 15px;
  }

  .day-cell {
    min-height: 80px;
    font-size: 12px;
  }

  .event-item {
    font-size: 10px;
    padding: 3px 4px;
  }

  .weekday {
    padding: 10px 5px;
    font-size: 11px;
  }
}
.truncate {
  white-space: nowrap;      /* Impedisce il ritorno a capo */
  overflow: hidden;         /* Nasconde il testo eccedente */
  text-overflow: ellipsis;  /* Aggiunge "..." alla fine */
}