/* ==========================================================================
   DEFAULT SCOPE: FONT, THEME, AND GLOBAL CUSTOM CSS
   ========================================================================== */

@font-face {
  font-family: 'main-font';
  src: url('../../fonts/titillium/TitilliumWeb-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* *stile del tema (DA FARE PER OGNI COLORE DISPONIBILE)* */
:root {
  /* *da qui variabili che vanno bene in tutti i temi* */
  --danger-color: #b32020;
  --ov-bs-accordion-active-color: #111;
  --ov-bs-accordion-active-bg: rgb(236, 232, 232);
  --ov-bs-accordion-border-width: 1px;
  --ov-bs-accordion-border-color: lightgray;
  --ov-bs-accordion-btn-focus-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.125);
  --light-gray-bg: #eeeeee9e;
  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

html {
  overflow-x: hidden;
}

* {
  font-family: 'main-font', sans-serif;
  font-size: 15px;
}

body>.wrapper {
  min-height: 100dvh;
}

.pull-right {
  float: right !important;
}

input[type="checkbox"]:not(.default-position) {
  vertical-align: middle;
}

input[type="checkbox"] {
  /* *width: 1.25rem;*
    *height: 1.25rem;*
    *margin: 0 0.5rem 0 0;* */

  accent-color: #a9a4a8;
  cursor: pointer;
}

input[type="checkbox"]:focus-visible {
  outline: 3px solid #a9a4a8;
  outline-offset: 2px;
}

input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}





.file-name,
.file-size {
  font-size: 11px !important;
}

.box-body canvas {
  opacity: .8;
}

.moduli:nth-child(even) {
  color: rgb(99, 97, 97) !important;
}

/* *date chip style* */

.selperiodo.text-dark {
  border-radius: 20px;
}

.periodi-nav {
  position: relative;
  isolation: isolate;
}

.periodi-nav::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--pill-y, 0px);
  width: var(--pill-width, 0px);
  height: var(--pill-height, 0px);
  transform: translateX(var(--pill-x, 0px));
  background-color: #565a5824;
  border: 1px solid color-mix(in srgb, #565a58 15%, transparent);
  border-radius: 20px;
  pointer-events: none;
  box-sizing: border-box;
}

.periodi-nav.pill-ready::before {
  transition: transform 0.3s ease, width 0.3s ease;
}

.periodi-nav > div {
  position: relative;
  z-index: 1;
}

.selperiodo {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .periodi-nav.pill-ready::before {
    transition: none;
  }
}


/* *material chips style* */

.chip-group-document {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px 0;
  position: relative;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.chip:focus-within label {
  outline: 1px solid var(--default-color);
  outline-offset: 2px;
}

.chip label,
.chip label.docPagItem {
  display: inline-flex;
  align-items: center;
  background: #f5f5f5;
  transition: all 0.15s;
  min-width: max-content;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
}

.chip label {
  padding: 3px 11px;
  border-radius: 999px;
  color: #666;
}

.chip label.docPagItem {
   border-radius: 0;
   padding: 5px 11px;
   width: 100%;
   justify-content: center;
}

.chip input:checked+label {
  /* *background-color: #49a77b5e;*
  *border-color: color-mix(in srgb, #146c43 25%, transparent);*
  *color: #146c43;* */
  background-color: #6bbe9724;
  border-color: color-mix(in srgb, #34b177 25%, transparent);
  color: #146c43;
}

.chip-group-document .chip input:checked+label {
  background-color: #fff;
  border-color: color-mix(in srgb, #a8b1ad 25%, transparent);
  color: #333;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  border-radius: 0.45rem;
}

.chip-group-document .chip input:checked+label::after,
.chip-group-document .chip input:not(:checked)+label::after {
  content: "";
  margin-left: 6px;
  color: transparent;
}

.chip input+label::after {
  font: normal normal normal 14px/1 FontAwesome;
  font-size: 11px;
  font-weight: normal;
}

.chip input:not(:checked)+label::after {
  content: "\f067";
  margin-left: 6px;
  color: #666;
}

.chip input:checked+label::after {
  content: "\f00d";
  margin-left: 6px;
  color: #146c43;
}

.progress,
.progress-bar {
  height: 5px;
}

/* *----------------------------------------------------* */

label,
label * {
  font-size: 13px !important;
  font-weight: bold;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
  font-family: inherit !important;
}

table.dataTable thead .sorting::after {
  content: "⇅" !important;
}

table.dataTable thead .sorting_asc::after {
  font-family: "bootstrap-icons" !important;
  content: "\F57B" !important;
}

table.dataTable thead .sorting_desc::after {
  font-family: "bootstrap-icons" !important;
  content: "\F575" !important;
}

table.dataTable thead .sorting_desc::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting::after {
  font-size: 1.2rem !important;
  bottom: 7px !important;
}

table.table.dataTable td,
table.table.dataTable th {
  white-space: nowrap;
  font-weight: 400 !important;
}

.hidden {
  display: none;
}

.icon-end {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000000000;
  opacity: .6;
}

.bi.home-icon {
  font-size: 150px !important;
  aspect-ratio: 1;
  position: absolute;
  bottom: -80px;
  right: -40px;
  opacity: .07;
}

.resprint i.bi,
i.small.bi {
  font-size: 13px !important;
}

.navbar .bi {
  font-size: 17px !important;
}

.bi {
  font-size: 15px !important;
}

.main-sidebar i.bi-chevron-left,
.main-sidebar ul li ul li i.bi {
  font-size: 11px !important;
}

.bg-white {
  background-color: white !important;
}

.modal-header {
  background-color: var(--default-color);
  color: var(--light-color);
}

/* *css table* */

.table> :not(caption)>*>* {
  padding: .5rem 30px .5rem .75rem !important;
}

.table.tablefatt> :not(caption)>*>* {
  padding: 5px 30px 5px .75rem !important;
}

select.form-select {
  height: 35.2667px !important;
  /* *same formula Bootstrap uses for inputs type text**/
}

.img-responsive {
  max-width: 200px;
}

/* ==========================================================================
   VIEWPORT: PRINT
   ========================================================================== */

.resprint .img-responsive {
  width: 80px;
  margin-bottom: -30px;
  visibility: hidden;
}

@media print {
  @page {
    margin: 0;
  }

  body {
    margin: 1.5cm;
  }

  body * {
    visibility: hidden;
  }

  .resprint {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
  }

  .resprint *,
  .resprint .img-responsive {
    visibility: visible !important;
  }
}

/* ==========================================================================
   DEFAULT SCOPE: CUSTOM CSS (CONTINUED)
   ========================================================================== */

.text-dark {
  --bs-text-opacity: 1;
  color: rgb(26, 26, 24) !important;
}

.text-secondary {
  --bs-text-opacity: 1;
  color: rgb(103, 109, 115) !important;
}

/* ==========================================================================
   DEFAULT SCOPE: CUSTOM UPLOAD
   ========================================================================== */


.upload-input {
  display: none;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 250px;
  border: 1.5px dashed #c0bfb8;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  padding: 2rem;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.upload-label:hover {
  border-color: #888780;
  background: #fafaf8;
}

.upload-input:focus-visible+.upload-label {
  outline: 2px solid #378add;
  outline-offset: 2px;
}

.upload-icon {
  width: 40px;
  height: 40px;
  color: #888780;
}

.upload-text-primary {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a18;
}

.upload-text-secondary {
  font-size: 12px !important;
  color: #777672;
}

.upload-btn {
  margin-top: 4px;
  padding: 6px 18px;
  border-radius: 8px;
  border: 0.5px solid #c0bfb8;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a18;
  transition: border-color 0.15s;
}

.upload-label:hover .upload-btn {
  border-color: #888780;
}

.file-list {
  margin-top: 16px;
  /* *width: 480px;* */
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 0.5px solid #c0bfb8;
  background: #ffffff;
  font-size: 13px;
  color: #1a1a18;
}

.file-item svg {
  flex-shrink: 0;
  color: #888780;
}

.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: #888780;
  flex-shrink: 0;
}

a.btn.btn-primary {
  background-color: var(--default-color);
  border-color: var(--default-color);
  color: var(--light-color);
}

#btnperiodo.btn-outline-secondary {
  background-color: transparent;
  border-color: var(--bs-secondary);
  color: var(--bs-secondary);
}

#btnperiodo.btn-outline-secondary:hover,
#btnperiodo.btn-outline-secondary:focus,
#btnperiodo.btn-outline-secondary:active {
  background-color: #f0f2f3;
  /* *light gray* */
  border-color: #6a7179;
  /* *darker gray, keeps border visible* */
  color: #656c74;
  /* *darker gray text for contrast* */
}

#btnperiodo.btn-outline-secondary:active {
  background-color: transparent;
}

/* *======================================================================================================* */

/* ==========================================================================
   DEFAULT SCOPE: GRID SYSTEM
   ========================================================================== */

[class*="grid-"] {
  display: grid;
}

.grid {
  display: grid !important;
}

/* *2 colonne* */
.grid-1-1 {
  grid-template-columns: 1fr 1fr;
}

.grid-1-2 {
  grid-template-columns: 1fr 2fr;
}

.grid-1-3 {
  grid-template-columns: 1fr 3fr;
}

.grid-2-1 {
  grid-template-columns: 2fr 1fr;
}

.grid-2-2 {
  grid-template-columns: 2fr 2fr;
}

.grid-2-3 {
  grid-template-columns: 2fr 3fr;
}

.grid-3-1 {
  grid-template-columns: 3fr 1fr;
}

.grid-3-2 {
  grid-template-columns: 3fr 2fr;
}

.grid-3-3 {
  grid-template-columns: 3fr 3fr;
}

/* *3 colonne* */
.grid-1-1-1 {
  grid-template-columns: 1fr 1fr 1fr;
}

.grid-1-1-2 {
  grid-template-columns: 1fr 1fr 2fr;
}

.grid-1-2-1 {
  grid-template-columns: 1fr 2fr 1fr;
}

.grid-2-1-1 {
  grid-template-columns: 2fr 1fr 1fr;
}

.grid-1-2-2 {
  grid-template-columns: 1fr 2fr 2fr;
}

.grid-2-1-2 {
  grid-template-columns: 2fr 1fr 2fr;
}

.grid-2-2-1 {
  grid-template-columns: 2fr 2fr 1fr;
}

.grid-2-2-2 {
  grid-template-columns: 2fr 2fr 2fr;
}

.grid-1-1-3 {
  grid-template-columns: 1fr 1fr 3fr;
}

.grid-1-3-1 {
  grid-template-columns: 1fr 3fr 1fr;
}

.grid-3-1-1 {
  grid-template-columns: 3fr 1fr 1fr;
}

.grid-1-3-3 {
  grid-template-columns: 1fr 3fr 3fr;
}

.grid-3-1-3 {
  grid-template-columns: 3fr 1fr 3fr;
}

.grid-3-3-1 {
  grid-template-columns: 3fr 3fr 1fr;
}

.grid-1-2-3 {
  grid-template-columns: 1fr 2fr 3fr;
}

.grid-1-3-2 {
  grid-template-columns: 1fr 3fr 2fr;
}

.grid-2-1-3 {
  grid-template-columns: 2fr 1fr 3fr;
}

.grid-2-3-1 {
  grid-template-columns: 2fr 3fr 1fr;
}

.grid-3-1-2 {
  grid-template-columns: 3fr 1fr 2fr;
}

.grid-3-2-1 {
  grid-template-columns: 3fr 2fr 1fr;
}

.grid-3-3-3 {
  grid-template-columns: 3fr 3fr 3fr;
}

/* ==========================================================================
   DEFAULT SCOPE: TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ddd;
  left: 31px;
  margin: 0;
  border-radius: 2px;
}

.timeline>li {
  position: relative;
  margin-right: 10px;
  margin-bottom: 15px;
}

.timeline>li:before,
.timeline>li:after {
  content: " ";
  display: table;
}

.timeline>li:after {
  clear: both;
}

.timeline>li>.timeline-item {
  /* *-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);*
  *box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);*
  *border-radius: 3px;* */
  margin-top: 0;
  /* *background: #fff;* */
  color: #444;
  margin-left: 60px;
  margin-right: 15px;
  padding: 0;
  position: relative;
}

.timeline>li>.timeline-item>.time {
  color: #999;
  float: right;
  padding: 10px;
  font-size: 12px;
}

.timeline>li>.timeline-item>.timeline-header {
  margin: 0;
  color: #fff;
  border-bottom: 1px solid #f4f4f4;
  padding: 10px;
  font-size: 16px;
  line-height: 1.1;
}

.timeline>li>.timeline-item>.timeline-header>a {
  font-weight: 600;
}

.timeline>li>.timeline-item>.timeline-body,
.timeline>li>.timeline-item>.timeline-footer {
  padding: 10px;
}

.timeline>li>.fa,
.timeline>li>.glyphicon,
.timeline>li>.ion,
.timeline>li>.bi {
  width: 30px;
  height: 30px;
  font-size: 15px;
  line-height: 30px;
  position: absolute;
  color: #fff;
  background: var(--default-color);
  border-radius: 50%;
  text-align: center;
  left: 18px;
  top: 50%;
  transform: translate(0, -50%);
}

.timeline>.time-label>span {
  font-weight: 600;
  padding: 5px;
  display: inline-block;
  background-color: var(--default-color);
  border-radius: 4px;
  color: #fff;
}

.timeline-inverse>li>.timeline-item {
  background: #f0f0f0;
  border: 1px solid #ddd;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.timeline-inverse>li>.timeline-item>.timeline-header {
  border-bottom-color: #ddd;
}


/* *=======================================================================================================* */

/* ==========================================================================
   RESPONSIVE WIDTH UTILITIES
   ========================================================================== */

/* *Gap X* */
.gap-x-0 {
  column-gap: 0 !important;
}

.gap-x-1 {
  column-gap: .25rem !important;
}

.gap-x-2 {
  column-gap: .5rem !important;
}

.gap-x-3 {
  column-gap: 1rem !important;
}

.gap-x-4 {
  column-gap: 1.5rem !important;
}

.gap-x-5 {
  column-gap: 3rem !important;
}

/* *Gap Y* */
.gap-y-0 {
  row-gap: 0 !important;
}

.gap-y-1 {
  row-gap: .25rem !important;
}

.gap-y-2 {
  row-gap: .5rem !important;
}

.gap-y-3 {
  row-gap: 1rem !important;
}

.gap-y-4 {
  row-gap: 1.5rem !important;
}

.gap-y-5 {
  row-gap: 3rem !important;
}


/* *Width utilities — all viewport sizes* */
.w-5 {
  width: 5% !important;
}

.w-10 {
  width: 10% !important;
}

.w-15 {
  width: 15% !important;
}

.w-20 {
  width: 20% !important;
}

.w-25 {
  width: 25% !important;
}

.w-30 {
  width: 30% !important;
}

.w-35 {
  width: 35% !important;
}

.w-40 {
  width: 40% !important;
}

.w-45 {
  width: 45% !important;
}

.w-50 {
  width: 50% !important;
}

.w-55 {
  width: 55% !important;
}

.w-60 {
  width: 60% !important;
}

.w-65 {
  width: 65% !important;
}

.w-70 {
  width: 70% !important;
}

.w-75 {
  width: 75% !important;
}

.w-80 {
  width: 80% !important;
}

.w-85 {
  width: 85% !important;
}

.w-90 {
  width: 90% !important;
}

.w-95 {
  width: 95% !important;
}

.w-100 {
  width: 100% !important;
}

.w-auto {
  width: auto !important;
}

/* ==========================================================================
   VIEWPORT: MIN-WIDTH 576PX (SM WIDTH UTILITIES)
   ========================================================================== */
@media (min-width: 576px) {
  .w-sm-5 {
    width: 5% !important;
  }

  .w-sm-10 {
    width: 10% !important;
  }

  .w-sm-15 {
    width: 15% !important;
  }

  .w-sm-20 {
    width: 20% !important;
  }

  .w-sm-25 {
    width: 25% !important;
  }

  .w-sm-30 {
    width: 30% !important;
  }

  .w-sm-35 {
    width: 35% !important;
  }

  .w-sm-40 {
    width: 40% !important;
  }

  .w-sm-45 {
    width: 45% !important;
  }

  .w-sm-50 {
    width: 50% !important;
  }

  .w-sm-55 {
    width: 55% !important;
  }

  .w-sm-60 {
    width: 60% !important;
  }

  .w-sm-65 {
    width: 65% !important;
  }

  .w-sm-70 {
    width: 70% !important;
  }

  .w-sm-75 {
    width: 75% !important;
  }

  .w-sm-80 {
    width: 80% !important;
  }

  .w-sm-85 {
    width: 85% !important;
  }

  .w-sm-90 {
    width: 90% !important;
  }

  .w-sm-95 {
    width: 95% !important;
  }

  .w-sm-100 {
    width: 100% !important;
  }

  .w-sm-auto {
    width: auto !important;
  }
}

/* ==========================================================================
   VIEWPORT: MIN-WIDTH 768PX (MD WIDTH UTILITIES)
   ========================================================================== */
@media (min-width: 768px) {
  .w-md-5 {
    width: 5% !important;
  }

  .w-md-10 {
    width: 10% !important;
  }

  .w-md-15 {
    width: 15% !important;
  }

  .w-md-20 {
    width: 20% !important;
  }

  .w-md-25 {
    width: 25% !important;
  }

  .w-md-30 {
    width: 30% !important;
  }

  .w-md-35 {
    width: 35% !important;
  }

  .w-md-40 {
    width: 40% !important;
  }

  .w-md-45 {
    width: 45% !important;
  }

  .w-md-50 {
    width: 50% !important;
  }

  .w-md-55 {
    width: 55% !important;
  }

  .w-md-60 {
    width: 60% !important;
  }

  .w-md-65 {
    width: 65% !important;
  }

  .w-md-70 {
    width: 70% !important;
  }

  .w-md-75 {
    width: 75% !important;
  }

  .w-md-80 {
    width: 80% !important;
  }

  .w-md-85 {
    width: 85% !important;
  }

  .w-md-90 {
    width: 90% !important;
  }

  .w-md-95 {
    width: 95% !important;
  }

  .w-md-100 {
    width: 100% !important;
  }

  .w-md-auto {
    width: auto !important;
  }
}

/* ==========================================================================
   VIEWPORT: MIN-WIDTH 992PX (LG WIDTH UTILITIES)
   ========================================================================== */
@media (min-width: 992px) {
  .w-lg-5 {
    width: 5% !important;
  }

  .w-lg-10 {
    width: 10% !important;
  }

  .w-lg-15 {
    width: 15% !important;
  }

  .w-lg-20 {
    width: 20% !important;
  }

  .w-lg-25 {
    width: 25% !important;
  }

  .w-lg-30 {
    width: 30% !important;
  }

  .w-lg-35 {
    width: 35% !important;
  }

  .w-lg-40 {
    width: 40% !important;
  }

  .w-lg-45 {
    width: 45% !important;
  }

  .w-lg-50 {
    width: 50% !important;
  }

  .w-lg-55 {
    width: 55% !important;
  }

  .w-lg-60 {
    width: 60% !important;
  }

  .w-lg-65 {
    width: 65% !important;
  }

  .w-lg-70 {
    width: 70% !important;
  }

  .w-lg-75 {
    width: 75% !important;
  }

  .w-lg-80 {
    width: 80% !important;
  }

  .w-lg-85 {
    width: 85% !important;
  }

  .w-lg-90 {
    width: 90% !important;
  }

  .w-lg-95 {
    width: 95% !important;
  }

  .w-lg-100 {
    width: 100% !important;
  }

  .w-lg-auto {
    width: auto !important;
  }
}

/* ==========================================================================
   VIEWPORT: MIN-WIDTH 1200PX (XL WIDTH UTILITIES)
   ========================================================================== */
@media (min-width: 1200px) {
  .w-xl-5 {
    width: 5% !important;
  }

  .w-xl-10 {
    width: 10% !important;
  }

  .w-xl-15 {
    width: 15% !important;
  }

  .w-xl-20 {
    width: 20% !important;
  }

  .w-xl-25 {
    width: 25% !important;
  }

  .w-xl-30 {
    width: 30% !important;
  }

  .w-xl-35 {
    width: 35% !important;
  }

  .w-xl-40 {
    width: 40% !important;
  }

  .w-xl-45 {
    width: 45% !important;
  }

  .w-xl-50 {
    width: 50% !important;
  }

  .w-xl-55 {
    width: 55% !important;
  }

  .w-xl-60 {
    width: 60% !important;
  }

  .w-xl-65 {
    width: 65% !important;
  }

  .w-xl-70 {
    width: 70% !important;
  }

  .w-xl-75 {
    width: 75% !important;
  }

  .w-xl-80 {
    width: 80% !important;
  }

  .w-xl-85 {
    width: 85% !important;
  }

  .w-xl-90 {
    width: 90% !important;
  }

  .w-xl-95 {
    width: 95% !important;
  }

  .w-xl-100 {
    width: 100% !important;
  }

  .w-xl-auto {
    width: auto !important;
  }
}

/* ==========================================================================
   VIEWPORT: MIN-WIDTH 1400PX (XXL WIDTH UTILITIES)
   ========================================================================== */
@media (min-width: 1400px) {
  .w-xxl-5 {
    width: 5% !important;
  }

  .w-xxl-10 {
    width: 10% !important;
  }

  .w-xxl-15 {
    width: 15% !important;
  }

  .w-xxl-20 {
    width: 20% !important;
  }

  .w-xxl-25 {
    width: 25% !important;
  }

  .w-xxl-30 {
    width: 30% !important;
  }

  .w-xxl-35 {
    width: 35% !important;
  }

  .w-xxl-40 {
    width: 40% !important;
  }

  .w-xxl-45 {
    width: 45% !important;
  }

  .w-xxl-50 {
    width: 50% !important;
  }

  .w-xxl-55 {
    width: 55% !important;
  }

  .w-xxl-60 {
    width: 60% !important;
  }

  .w-xxl-65 {
    width: 65% !important;
  }

  .w-xxl-70 {
    width: 70% !important;
  }

  .w-xxl-75 {
    width: 75% !important;
  }

  .w-xxl-80 {
    width: 80% !important;
  }

  .w-xxl-85 {
    width: 85% !important;
  }

  .w-xxl-90 {
    width: 90% !important;
  }

  .w-xxl-95 {
    width: 95% !important;
  }

  .w-xxl-100 {
    width: 100% !important;
  }

  .w-xxl-auto {
    width: auto !important;
  }
}

/* ==========================================================================
   DEFAULT SCOPE: CUSTOM CSS (CONTINUED)
   ========================================================================== */

.bg-secondary-subtle {
  background-color: var(--light-gray-bg) !important;
}

.w-ft {
  width: fit-content !important;
}

.main-header .sidebar-toggle {
  float: left;
  background-color: transparent;
  background-image: none;
  padding: 15px 15px;
  font-family: fontAwesome;
}

.main-header .sidebar-toggle:before {
  content: "\f0c9";
}

.main-header .sidebar-toggle:hover {
  color: #fff;
}

.main-header .sidebar-toggle:focus,
.main-header .sidebar-toggle:active {
  background: transparent;
}

.main-header .sidebar-toggle .icon-bar {
  display: none;
}

.sidebar-menu i {
  /* *todo* */
  opacity: .7;
  /* *color: var(--default-color);* */
}

.main-header {
  display: grid;
  grid-template-columns: 1fr 7fr;
}

.main-header .navbar,
.main-header .logo {
  background-color: var(--default-color) !important;
  padding: 0;
  /* *z-index: 10000000;* */
}

.sidebar-toggle:hover {
  background-color: transparent !important;
  text-decoration: none !important;
  max-width: fit-content !important;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--default-color);
  --bs-btn-border-color: var(--default-color);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--default-hover-color);
  --bs-btn-hover-border-color: var(--default-hover-color);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--default-hover-color);
  --bs-btn-active-border-color: var(--default-hover-color);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--default-hover-color);
  --bs-btn-disabled-border-color: var(--default-hover-color);
}

.btn-outline-primary {
  color: var(--default-hover-color);
  border-color: var(--default-hover-color);
}

.btn-outline-primary:hover {
  color: white;
  border-color: var(--default-hover-color);
  background-color: var(--default-hover-color);
}

.btn-outline-secondary {
  border-color: #595959 !important;
  color: #595959 !important;
}

.btn-outline-secondary:hover {
  border-color: #3D3D3D !important;
  color: #3D3D3D !important;
  background-color: transparent;
  text-decoration: none;
}

.btn-outline-secondary:focus {
  background-color: transparent;
}

.text-danger {
  color: #cf1b1b !important;
}

.btn-outline-danger {
  --bs-btn-color: #cf1b1b !important;
  --bs-btn-border-color: #cf1b1b !important;
}

/* ==========================================================================
   VIEWPORT: MIN-WIDTH 768PX (OVERFLOW UTILITY)
   ========================================================================== */

@media (min-width: 768px) {
  .overflow-md-hidden {
    overflow: hidden !important;
  }
}

/* ==========================================================================
   DEFAULT SCOPE: CUSTOM CSS (CONTINUED)
   ========================================================================== */

.dt-bootstrap>.row .col-sm-12 {
  padding: 0;
}

.p-row {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.navbar-nav .dropdown-menu {
  position: absolute;
  left: -150px;
  width: fit-content;
  padding: 0;
  border: none;
}

.navbar-nav .dropdown-menu .user-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.navbar-nav .dropdown-menu .user-footer a {
  display: block;
}

.table.dataTable {
  border-collapse: collapse !important;
}

.link-secondary {
  color: #555 !important;
}

.link-secondary:hover {
  color: #444 !important;
  text-decoration: none;
}

*:focus-visible,
.icon-button:focus-visible {
  /* *outline: 2px solid var(--default-color) !important;* */
  outline: none;
  outline-offset: 6px;
  box-shadow: 0 0 0 2px #fff,
    /* *gap (matches background)* */
    0 0 0 3px var(--default-color);
  /* *actual visible ring* */
  border-radius: 6px;
}

.icon-button {
  border: 0;
  background: transparent;
}

th:focus-visible {
  box-shadow: none;
  border-radius: 0;
  outline-offset: 2px;
  outline: 2px solid var(--default-color) !important;
}

.table-striped>tbody>tr:nth-of-type(2n+1)>* {
  /* *--bs-table-bg-type: rgba(99, 99, 99, 0.05) !important;* */
  --bs-table-bg-type: rgba(134, 134, 134, 0.05) !important;
}

.table {
  --bs-table-border-color: #f4f4f4 !important;
}

/* *=====================================================* */

/* ==========================================================================
   DEFAULT SCOPE: COLOR INPUT
   ========================================================================== */

input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  width: 35px;
  height: 35px;
  /* *border-radius: 50%;* */
  cursor: pointer;
  padding: 0;
  background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 8px;
}

/* *Dim the swatch* */
input[type="color"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* *Remove border styling on disabled swatch (Chrome/Edge)* */
input[type="color"]:disabled::-webkit-color-swatch {
  border: none;
}

/* *Firefox* */
input[type="color"]:disabled::-moz-color-swatch {
  border: none;
}

/* *=====================================================================* */

.content.container-fluid *:not(h1, h2, h3, h4, h5, h6) {
  font-size: 15px;
}

body {
  --bs-body-color: #4e4e4e;
  overflow: initial !important;
}

.content.container-fluid .btn,
.content.container-fluid .form-control,
.content.container-fluid .form-select {
  --bs-btn-font-size: 14px !important;
  font-size: 14px !important;
}

input[type="text"],
input[type="checkbox"],
input[type="password"],
select,
.form-control {
  color: #2e2d2c;
  border-color: lightgray;
}

.form-control::placeholder {
  font-size: 12px !important;
}

.form-control {
  border-radius: var(--bs-border-radius) !important;
}

.fa-info {
  color: gray !important;
  padding: 2px 5px !important;
  border: solid 1px gray !important;
  border-radius: 50% !important;
  font-size: 10px !important;
}

.custom-tooltip {
  --bs-tooltip-bg: #f2f2f2;
  --bs-tooltip-color: #333;
  --bs-tooltip-padding-x: 1dvw;
  --bs-tooltip-padding-y: 1vh;
  --bs-tooltip-opacity: 1;
  --bs-tooltip-max-width: 400px;
}

.accordion-button:not(.collapsed) {
  color: var(--ov-bs-accordion-active-color);
  background-color: var(--ov-bs-accordion-active-bg);
  box-shadow: inset 0 calc(-1 * var(--ov-bs-accordion-border-width)) 0 var(--ov-bs-accordion-border-color);
}

.accordion-button:focus {
  z-index: 3;
  outline: 0;
  box-shadow: var(--ov-bs-accordion-btn-focus-box-shadow);
}

.custom-tooltip .tooltip-inner {
  padding: 10px 12px;
  width: 400px;
  white-space: normal;
  text-align: left;
  font-size: 14px;
}

.error-text {
  color: var(--danger-color);
}

.main-sidebar {
  position: absolute;
  top: 0vh;
  left: 0;
  min-height: 100%;
  height: fit-content;
  width: 230px;
  z-index: 810;
  -webkit-transition: -webkit-transform 0.3s ease-in-out, width 0.3s ease-in-out;
  -moz-transition: -moz-transform 0.3s ease-in-out, width 0.3s ease-in-out;
  -o-transition: -o-transform 0.3s ease-in-out, width 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
  padding-left: 0;
  padding-right: 0;
  background-color: white !important;
}

.main-header .navbar .navbar-nav {
  flex-direction: row;
  gap: 25px;
  margin-right: 50px;
}

.content-wrapper {
  margin-left: 235px;
  max-width: calc(100dvw - 250px);
  width: 100%;
  -webkit-transition: -webkit-transform 0.3s ease-in-out, all 0.3s ease-in-out;
  -moz-transition: -moz-transform 0.3s ease-in-out, all 0.3s ease-in-out;
  -o-transition: -o-transform 0.3s ease-in-out, all 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, all 0.3s ease-in-out;
  padding-bottom: 100px;
}

.sidebar-collapse .content-wrapper {
  max-width: calc(100dvw - 70px);
}

.home-btn-border {
  border-color: var(--home-btn-border-color);
}

/* ==========================================================================
   DEFAULT SCOPE: BASE STYLES FOR INVOICE ACTIONS
   ========================================================================== */

.invoice-actions-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.invoice-actions-documents,
.invoice-actions-editing {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.invoice-actions-documents {
  flex: 1 1 32rem;
}

.invoice-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.invoice-actions-columns {
  margin-left: auto;
  flex-shrink: 0;
}

.invoice-actions-editing {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.invoice-actions-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: end;
  gap: 1rem;
  max-width: 64rem;
}

.invoice-actions-fields > * {
  min-width: 0;
}

.invoice-actions-fields .input-group {
  width: 100%;
}

.invoice-actions-fields .form-select {
  flex: 1 1 0%;
  width: 1%;
  min-width: 0;
}

.invoice-actions-fields .input-group > .btn {
  flex-shrink: 0;
}

/* ==========================================================================
   DEFAULT SCOPE: SIDEBAR OVERRIDES
   ========================================================================== */

.sidebar-collapse .sidebar .sidebar-menu .treeview a span.pull-right-container {
  display: none !important;
}

.sidebar-menu li {
  text-decoration: none;
  list-style: none;
  font-size: 14px;
  padding: 10px 15px;
  margin: 5px 0;
  width: 100%;
  text-wrap: nowrap;
  overflow: hidden;
  /* text-transform: capitalize; */
}

.sidebar-collapse .sidebar-menu .treeview ul li:last-of-type {
  padding-bottom: 30px;
}

.sidebar-collapse .sidebar-menu li {
  margin: 0;
}

.treeview>a {
  white-space: nowrap;
  /* *overflow: hidden;* */
  position: relative;
  display: block;
  width: 100%;
}

.treeview>a .pull-right-container {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar ul {
  padding: 0;
}

.sidebar-menu li:hover {
  width: 100%;
  text-wrap: nowrap;
  overflow: visible;
}

.sidebar-menu li.active:not(.treeview) {
  background-color: white !important;
  box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.10);
  border-radius: var(--bs-border-radius);
}

.sidebar-menu .break-icon {
  width: 15px;
}

.sidebar-menu i {
  margin-right: 10px;
}

.treeview-menu:not(.sidebar-collapse) {
  background-color: transparent !important;
}

.sidebar-collapse .treeview-menu {
  background-color: white !important;
}

.sidebar-menu .active>.treeview-menu {
  display: block;
}

.sidebar-menu .ative>ul.treeview-menu>li:not(:last-child) {
  margin: 5px 0;
}

.treeview-menu {
  display: none;
  list-style: none;
  padding: 0;
  /* *margin: 0;* */
  padding-left: 5px;
}

.treeview-menu .treeview-menu {
  padding-left: 20px;
}

/* *.treeview-menu>li {*
  *margin: 0;*
*}* */

.sidebar-collapse .treeview-menu>li,
.sidebar-collapse .treeview>a>span {
  background-color: #f8f8f8 !important;
}

.treeview-menu>li>a {
  display: block;
  font-size: 13px;
  width: 100%;
}

.sidebar .info,
.centered {
  display: grid;
  place-items: center;
}

/* ==========================================================================
   DEFAULT SCOPE: DATATABLES TOOLBAR AND PAGINATION
   ========================================================================== */
[id^="datatablesAO_wrapper"] .top{
   margin-bottom: 20px;
}

[id^="datatablesAO_wrapper"] .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 20px;
}

/* *Support your current pull-left/pull-right wrappers* */
[id^="datatablesAO_wrapper"] .bottom>.pull-left,
[id^="datatablesAO_wrapper"] .bottom>.pull-right,
[id^="datatablesAO_wrapper"] .bottom>.dt-length,
[id^="datatablesAO_wrapper"] .bottom>.dt-pagination {
  float: none;
  display: flex;
  align-items: center;
  margin: 0;
}

/* *Push paginator to the right* */
[id^="datatablesAO_wrapper"] .bottom>.pull-right,
[id^="datatablesAO_wrapper"] .bottom>.dt-pagination {
  margin-left: auto;
}

/* *Length selector* */
[id^="datatablesAO_wrapper"] .dataTables_length {
  float: none;
  display: flex;
  align-items: center;
  margin: 0;
}

/* *Paginator container* */
[id^="datatablesAO_wrapper"] .dataTables_paginate {
  float: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  clear: none;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: right;
}

/* *Pagination list* */
[id^="datatablesAO_wrapper"] .dataTables_paginate .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* *Pagination controls* */
[id^="datatablesAO_wrapper"] .pagination>li>a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 24px;
  min-height: 24px;
  padding: 0.25rem 0.4rem;

  color: #495057;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0.125rem;

  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

/* *Mouse hover* */
[id^="datatablesAO_wrapper"] .pagination>li:not(.disabled)>a:hover {
  color: #333333;
  background-color: #dee2e6;
  border-color: #adb5bd;
  text-decoration: none;
}

/* *Clearly visible keyboard focus* */
[id^="datatablesAO_wrapper"] .pagination>li>a:focus,
[id^="datatablesAO_wrapper"] .pagination>li>a:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #adb5bd;
  outline-offset: 2px;
}

/* *Current page* */
[id^="datatablesAO_wrapper"] .pagination>li.active>a,
[id^="datatablesAO_wrapper"] .pagination>li.active>a:hover {
  color: #333333;
  background-color: #ced4da;
  border-color: #adb5bd;
  text-decoration: none;
  cursor: default;
  border-radius: 0.375rem;
}

/* *Disabled previous/next controls* */
[id^="datatablesAO_wrapper"] .pagination>li.disabled>a,
[id^="datatablesAO_wrapper"] .pagination>li.disabled>a:hover {
  color: #666;
  background-color: #f8f9fa;
  border-color: #dee2e6;
  text-decoration: none;
  cursor: not-allowed;
  pointer-events: none;
  border-radius: 0.375rem;
}

td.centered {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

.treeview-menu>li>a>.fa,
.treeview-menu>li>a>.glyphicon,
.treeview-menu>li>a>.ion {
  width: 20px;
}

.treeview-menu>li>a>.pull-right-container>.fa-angle-left,
.treeview-menu>li>a>.pull-right-container>.fa-angle-down,
.treeview-menu>li>a>.fa-angle-left,
.treeview-menu>li>a>.fa-angle-down {
  width: auto;
}

.campodatarange,
.campodata {
  padding-right: 2rem;
}

/* ==========================================================================
   VIEWPORT: SCREEN AND MIN-WIDTH 850PX (SIDEBAR MINI)
   ========================================================================== */

@media screen and (min-width: 850px) {

  .sidebar-mini.sidebar-collapse .content-wrapper,
  .sidebar-mini.sidebar-collapse .right-side,
  .sidebar-mini.sidebar-collapse .main-footer {
    margin-left: 60px !important;
    z-index: 840;
  }

  .sidebar-mini.sidebar-collapse .main-sidebar {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
    width: 50px !important;
    z-index: 850;
  }

  .sidebar-mini.sidebar-collapse .sidebar-menu>li {
    position: relative;
  }

  .sidebar-mini.sidebar-collapse .sidebar-menu>li>a {
    margin-right: 0;
  }

  .sidebar-mini.sidebar-collapse .sidebar-menu>li>a>span {
    border-top-right-radius: 4px;
    top: -9px !important;
    padding: 10px 15px !important;
    left: 32px !important;
  }

  .sidebar-mini.sidebar-collapse .sidebar-menu>li:not(.treeview)>a>span {
    border-bottom-right-radius: 4px;
    top: 0 !important;
    padding: 10px 15px;
    left: 50px !important;
  }

  .sidebar-mini.sidebar-collapse .sidebar-menu>li>.treeview-menu {
    border-bottom-right-radius: 4px;
  }

  .sidebar-mini.sidebar-collapse .main-sidebar .user-panel>.info,
  .sidebar-mini.sidebar-collapse .sidebar-form,
  .sidebar-mini.sidebar-collapse .sidebar-menu>li>a>span,
  .sidebar-mini.sidebar-collapse .sidebar-menu>li>.treeview-menu,
  .sidebar-mini.sidebar-collapse .sidebar-menu>li>a>.pull-right,
  .sidebar-mini.sidebar-collapse .sidebar-menu li.header {
    display: none !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .sidebar-mini.sidebar-collapse .main-header .logo {
    /* *width: 50px;* */
    width: 100%;
  }

  .sidebar-mini.sidebar-collapse .main-header .logo>.logo-mini {
    display: block;
    margin-left: -15px;
    margin-right: -15px;
    font-size: 18px;
  }

  .sidebar-mini.sidebar-collapse .main-header .logo>.logo-lg {
    display: none;
  }

  .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>a>span:not(.pull-right-container),
  .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>.treeview-menu {
    display: block !important;
    position: absolute;
    width: 240px;
    left: 50px;
    top: -11px;
    background-color: #f8f8f8;
  }

  .sidebar-mini.sidebar-collapse .treeview:hover>* {
    display: block !important;
  }

  .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>ul>li:hover>a>span {
    top: 0;
    /* *margin-left: -3px;* */
    padding: 12px 5px 12px 20px;
    background-color: inherit;
    left: 32px !important;
  }

  .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>a>.pull-right-container {
    position: relative !important;
    float: right;
    width: auto !important;
    left: 240px !important;
    top: -29px !important;
    z-index: 900;
    display: none !important;
  }

}

/* ==========================================================================
   DEFAULT SCOPE: CUSTOM CSS (CONTINUED)
   ========================================================================== */

.sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>a>.pull-right-container>.label:not(:first-of-type) {
  display: none;
}

.sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>.treeview-menu {
  top: 44px;
  margin-left: 0;
}

.sidebar-collapse .user-panel img {
  width: 40px;
}

/* ==========================================================================
   VIEWPORT: SCREEN AND MAX-WIDTH 1200PX
   ========================================================================== */

@media screen and (max-width: 1200px) {
  .content-wrapper {
    max-width: 100% !important;
  }

  .navbar {
    height: 8vh;
  }

  .main-sidebar {
    position: absolute;
    top: 0vh;
  }
}

/* ==========================================================================
   ANIMATIONS: SIDEBAR
   ========================================================================== */

@keyframes sidebar-appear {
  100% {
    left: 0;
  }
}

@keyframes sidebar-disappear {
  100% {
    left: -230px;
  }
}

/* ==========================================================================
   VIEWPORT: SCREEN FROM 800PX TO 1400PX
   ========================================================================== */

@media screen and (min-width: 800px) and (max-width: 1400px) {
  .main-header {
    grid-template-columns: 1fr 4fr;
  }

}

/* ==========================================================================
   VIEWPORT: SCREEN AND MAX-WIDTH 899PX
   ========================================================================== */

@media screen and (max-width: 899px) {
  .logo {
    max-height: 1px;
  }

  /* *css table* */

  .sidebar-collapse .treeview-menu>li,
  .sidebar-collapse .treeview>a>span {
    background-color: white !important;
  }

  .table> :not(caption)>*>* {
    padding-right: 30px !important;
  }

  /* *da cancellare per test finale dopo la produzione di una nuova sidebar e navbar* */
  .main-sidebar {
    position: absolute;
    top: 8.3vh;
    left: -230px;
    transition: all .3s ease-in-out;
  }

  [class*="grid-"] {
    display: block;
  }

  .sidebar-mini.sidebar-collapse .wrapper .main-sidebar {
    left: 0;
  }

  .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>a>span {
    /* *top: 0;* */
    /* *margin-left: -3px;* */
    padding: 0;
    background-color: inherit;
  }

  .sidebar-collapse .treeview-menu {
    background-color: transparent !important;
  }

  .sidebar-mini.sidebar-collapse .li.treeview>* {
    display: grid;
    grid-template-columns: 1fr 6fr 1fr;
    place-items: center;
  }

  .sidebar-mini .user-panel {
    display: grid;
    place-items: center;
  }

  .sidebar .user-panel img {
    width: 230px;
    margin: auto;
  }

  .navbar-nav .dropdown-menu {
    left: -168px;
  }

  .content-wrapper {
    margin-left: 0;
  }

  .main-header {
    grid-template-columns: 1fr;
  }

  .main-header .navbar .navbar-nav {
    margin: 0;
    padding: 15px;
  }

  .main-header .logo .logo-lg {
    width: 100%;
    text-align: center;
    /* *span containing logo large* */
    display: block;
  }


  /* NESTED VIEWPORT: SCREEN AND MAX-WIDTH 550PX */
  @media screen and (max-width: 550px) {
    .main-sidebar {
      top: 8.5vh;
    }
  }

  /* *=============================================* */
  .row {
    width: 98% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* *css per il layout di tutte le pagine non cambiare* */
  .wrapper.row {
    width: 100dvw !important;
    margin: 0 !important;
  }
}