.custom-progressbar-stacked{
  background-color:#e9ecef;
  width:100%;
  margin:1px;
  overflow: auto;
  border-radius: 4px;
}

.custom-progressbar-stacked div{
  height: 15px;
}

.custom-progressbar-cont {
  width: 90px;
  clear: both;
}

.custom-progressbar-cont .pbtitle{
  float:left;
  font-size: small;
  min-width: 10px;
}

.custom-progressbar-cont .pbcont{
  float:left;
  font-size: small;
  width: 80px;
}

.custom-progressbar-stacked .pbthr{
  border-right:2px solid red;
  position:relative;
}

.custom-badge {
  margin:1px;
  font-size: small;
  clear: both;
  width: 50px;
}

.custom-badge .cbtitle{
  width: 12px;
}

.custom-badge .cbcont{
  border-radius: 4px;
  margin:1px;
  font-size: 10px;
  padding: 0 2px;
  text-align: center;
  width: 30px;
  background-color:#e9ecef;
  cursor: pointer;
}

.custom-badge div{
  float: left;
  overflow: auto;
}

.circle {
  width: 100%;
  text-align: center;
  font-size:70%;
}

.fc-event-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  display: block;
  line-height: 1.2;
}

.fc-event-time{
  min-width: 15px;
}

.table_rolling_layout{
  overflow:auto;
}
.table_rolling_layout td{
  min-width: 110px;
  white-space: preserve nowrap;
}

.dt-buttons button{
  padding:0px 8px!important;
  margin-bottom: 2px;  
}


.dataTable th input{
  font-size: small;
  border:0px;  
  background-color: lightgoldenrodyellow;
  font-style:italic
}

.dataTable th .select2-container .select2-selection--multiple{
  font-size: small;
  border:0px;  
  background-color: lightgoldenrodyellow;
  font-style:italic;
}

.dataTable.table th{
  padding: 2px;
}


.email_report_lista_controlli{
  clear: both;
  overflow: auto;
}
.email_report_lista_controlli div{
  float:left;
  border:1px solid lightcyan;
  padding: 5px;
  width: 33%;
}
.email_report_lista_controlli input{
  float:right;
}


.toasts-bottom-right {
  z-index: 9999;
}


#wbc_chat_list{
  overflow: scroll;
  height: 50vh;
  padding: 10px;
}
#wbc_report_list{
  overflow: scroll;
  height: 60vh;
}

.chat_style_0{
  text-align: right;
  border: 1px solid gray;
  float: right;
  clear: both;
  padding: 5px 10px;
  margin-bottom: 5px; 
-webkit-border-radius: 8px;
-webkit-border-bottom-right-radius: 0;
-moz-border-radius: 8px;
-moz-border-radius-bottomright: 0;
border-radius: 8px;
border-bottom-right-radius: 0;
  background-color: #fffee2;
    line-height: 1.1em;
}
.chat_style_1{
  text-align: left;
  border: 1px solid gray;
  float: left;
  clear: both;
  padding: 5px 10px;
-webkit-border-radius: 8px;
-webkit-border-bottom-left-radius: 0;
-moz-border-radius: 8px;
-moz-border-radius-bottomleft: 0;
border-radius: 8px;
  margin-bottom: 5px;
border-bottom-left-radius: 0;
  background-color: #e6e6e6;
  line-height: 1.1em;
}


#menu_company_search{
  font-size: small;
  border: 0;
}

.btn-group{
  float: right;
  margin-left: 50px;
}

.btn-group button{
  font-size: small;
}

table.dataTable.table-sm > thead > tr > th:not(.sorting_disabled){
  padding-right: 35px;
}


#medialink_embedded_content{
  width: 100%;
  border: 0;
  height: 100%;
}

#medialink_embedded .modal-dialog {
  width: 100%;
  height: 100%;
}

#medialink_embedded .modal-content {
  height: auto;
  min-height: 90%;
}



.rotate90a {
  writing-mode: vertical-rl;
  text-align: center;
  transform:rotate(180deg);
  font-size: small;
  background-color:#e0e0e0;

}
.rotate90b {
  writing-mode: vertical-rl;
  text-align: center;
  transform:rotate(0deg);
  font-size: small;
background-color:#e0e0e0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  color: black;
}

.card.card-link{
  box-shadow: 0 0;
  border: 1px solid lightgray;
}
.card-link .card-title{
  color: blue !important;
}
.card-link .card-footer{
  background-color: white;
}

#bgkloader{
  z-index: 9999;
  background: white url(../img/loadbar.gif) no-repeat center center;
  overflow: auto;
  width: 100%;
  height: 100vh;
  position: fixed;
}

.content-wrapper > .content {
  padding-bottom: 1px!important;
}

.badge-darkgreen {
  background-color: #007c00 !important;
  color: #fff !important;
}

.select2-container .select2-selection--single{
  height: 38px!important;
}


.login-page{

    background: url(../img/loginwallpaper.jpg) center center no-repeat;
    background-size: cover;

}

.load-content{
  cursor:pointer;
  
}

.login-box{
  width: auto;
}


.adminltetoast{
  margin-bottom: 80px;
  margin-right: 20px;
}


.accordion .card {
  margin-bottom: 0px;
}

.accordion{
  margin-bottom: 1rem;
}
.accordion p{
  font-style: oblique;
  color:gray;
}

/* FIX SEARCH BOX IN TABLE */
thead input {
  width: 100%;
}


.gantt_cont {
  top:0;
  left:0;
  position: fixed;
  background-color: rgba(0,0,0,0.5);
  width:100%;
  height:100vh;
  z-index: 1049;
  overflow: auto;
}

#gantt_close_btn{
  float:right;
  margin:10px 20px;
  border:0;
  background-color:white;
}
.modal_custom{
  background-color: white;
  overflow: auto;
  margin:auto;
  margin-top:20px;
  width: 90%;
  height: 90%;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: .3rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.5);

}
.gantt {
  clear: both;
  height: 90%;
  margin:20px;
}

.gantt-tooltip {
  z-index: 99999;
}

.gantt-tooltip > h2 {
  font-size: 1.5rem;
}


#main_menu_list{
  clear: both;
  overflow:hidden;
}

.dashbox{
  float: left;
  width: 25%;
  padding:0px 5px;
}

.small-box h3{
  white-space:wrap!important;
}
.small-box .inner{
  overflow: hidden;
  height: 110px;
}
.small-box{
  margin-bottom: 10px;
}

.dashboard_logo_azienda{
  overflow: auto;
  text-align: center;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

tr.no-striped {
  background-color: transparent!important;
}

td.no-striped {
  background-color: transparent!important;
}

/* Stile per il contenitore di Select2 quando è invalido */
.select2-selection.is-invalid {
    border-color: #dc3545!important;
}

/* Stile per l'icona di feedback (se usata) */
.select2-container.is-invalid ~ .invalid-feedback {
    display: block;
}

.cursor-pointer{
  cursor: pointer!important;
}

/* Contenitore suggerimenti */
.ui-autocomplete {
  z-index: 1051; /* sopra modali AdminLTE */
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  max-height: 200px;
  overflow-y: auto;
  font-size: .875rem; /* simile a form-control */
  padding: 0;
}

/* Ogni voce */
.ui-menu-item {
  padding: .5rem .75rem;
  cursor: pointer;
}

/* Hover */
.ui-menu-item:hover {
  background-color: #f4f6f9; /* grigio AdminLTE */
  color: #000;
}

.ui-menu .ui-state-active,
.ui-menu .ui-state-focus {
  margin: 0; /* evita shift */
  background-color: #f4f6f9 !important; /* grigio AdminLTE */
  color: #212529 !important; /* testo Bootstrap */
  border: none !important;
  font-weight: normal !important;
}

#timesheet_week_table td {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-commessa {
    width: 100% !important;
    max-width: 100%;
}

#admin_timesheet_table td {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal moderno */
.modal-modern {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20,30,40,0.25);
  border: none;
}

/* backdrop blur (se supportato) */
.modal-backdrop {
  /* backdrop-filter: blur(4px);
  background-color: rgba(0,0,0,0.35) !important; */
  background-color: rgba(0,0,0,1) !important;
}

/* header */
.modal-modern .modal-header {
  background: var(--main-blue-900);
  padding: 12px 16px;
  color: white;
}
.modal-modern .modal-header .text-muted {
  color: rgba(255,255,255,0.75) !important;
}
.modal-modern .modal-logo {
  height: 36px;
  width: auto;
  border-radius: 6px;
}
.modal-modern .modal-title { font-weight: 700; font-size: 1rem; }

/* minimal close */
.modal-modern .minimal-close { font-size: 1.3rem; color: #333; opacity: .8; }
.modal-modern .minimal-close:hover { opacity: 1; }

/* list grid (voci) */
.list-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 576px) {
  .list-grid { grid-template-columns: 1fr  ; } /* keep single column inside each half */
}

.list-grid .menu-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 6px rgba(10,20,30,0.04);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.03);
}
.list-grid .menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(10,20,30,0.12);
}
.menu-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  background: linear-gradient(180deg,#f6f7fb,#fff);
  border: 1px solid rgba(0,0,0,0.04);
}
.menu-card .meta { flex:1; min-width:0; }
.menu-card .meta .title { font-weight:600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-card .meta .desc { font-size: .82rem; color:#6c757d; }

/* ricerca */
#modal_sub_menu_search { width: 220px; max-width: 40vw; }

/* utility: divider lato destro */
.modal-modern .border-left { border-left: 1px solid rgba(0,0,0,0.04); }

/* abilita il wrap per le badge generate dinamicamente */
.badge.badge-wrap {
  white-space: normal !important;
  display: inline-block;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.bg-giorno-lavorato{
    background-color: #d6d6d6;
    color: #000000;   
}





/* ======================
   MODAL SPLIT
   ====================== */
.modal-split {
  display: flex;
  min-height: 70vh;
  max-height: 80vh;
}

/* ======================
   SIDEBAR
   ====================== */
.modal-split-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #f9fafb, #f1f5f9);
  border-right: 1px solid #e5e7eb;
  padding: 12px 10px;
  overflow-y: auto;
}

.modal-split-sidebar .sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  padding: 8px 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ======================
   SIDEBAR ITEM
   ====================== */
.modal-split-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  transition: all .12s ease;
  margin-bottom: 3px;
  position: relative;
}

.modal-split-item i {
  font-size: 15px;
  color: #475569;
}

.modal-split-item:hover {
  background: #f1f5f9;
}

.modal-split-item.active {
  background: #e0e7ff;
  color: #1e40af;
  font-weight: 600;
}

.modal-split-item.active i {
  color: #1e40af;
}

.modal-split-item.active::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #2563eb;
  border-radius: 4px;
}

/* ======================
   CONTENT
   ====================== */
.modal-split-content {
  flex: 1;
  padding: 22px 26px;
  overflow-y: auto;
  background: #ffffff;
}

/* header interno */
.modal-content-header {
  font-size:18px;
  font-weight:600;
  margin-bottom:15px;
  color:#444;
  text-align: center;
}

/* ======================
   PANE
   ====================== */
.modal-split-pane {
  display: none;
  animation: fadeIn .15s ease;
}

.modal-split-pane.active {
  display: block;
}

/* ======================
   TABLES (MODAL)
   ====================== */
.modal-split-content table.table-sm th,
.modal-split-content table.table-sm td {
  padding: .45rem .6rem;
  font-size: 13px;
}

.modal-split-content table tbody tr:hover {
  background-color: #f8fafc;
}

/* ======================
   BUTTONS
   ====================== */
.modal-split-content .btn {
  border-radius: 6px;
}


/* =========================
   CONTENUTO DELLE TABELLE BLU/RANCIONE
========================= */
.process-header-card {
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}

/* =========================
   WORKSPACE FIXED
========================= */
.process-workspace {
  height: calc(100vh - 320px); /* regola se serve */
  overflow: hidden;
  border-radius: 0px 0px 6px 6px;
  border-bottom: #143b6f1e 1px solid;
  border-right: #143b6f1e 1px solid;
}

/* colonne a tutta altezza */
.process-workspace > .col-2,
.process-workspace > .col-md-10 {
  height: 100%;
}

/* card wrapper */
.process-workspace > .col-2 > .card,
.process-workspace > .col-md-10 > .card {
  height: 100%;
  border-radius: 0;
}

/* =========================
   SIDEBAR BLU
========================= */
.process-sidebar-blue {
  background: #143B6F;
}

.process-sidebar-blue .card {
  background: transparent;
  border: none;
}

/* header sidebar */
.process-sidebar-header {
  height: 44px;
  background: rgba(255,255,255,.08);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,.15);
  display: flex;
  align-items: center;
}

/* SCROLL SOLO QUI */
.process-sidebar-blue .card-body {
  height: calc(100% - 44px);
  overflow-y: auto;
  padding: 0;
}

/* link sidebar */
#workspaceSidebar .nav-link {
  color: #dce3f1;
  padding: 16px 20px;
  font-weight: 500;
  border-radius: 0;
}

#workspaceSidebar .nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #ffffff;
}

#workspaceSidebar .nav-link.active {
  background: rgba(255,255,255,.18);
  color: #ffffff;
}

/* =========================
   CONTENUTO CENTRALE
========================= */

/* SCROLL SOLO QUI */
.process-workspace > .col-md-10 > .card > .card-body {
  height: 100%;
  overflow-y: auto;
}

/* sezione */
.workspace-section {
  padding: 10px 5px;
}

/* =========================
   COLORI ORANGE
========================= */
.text-orange-aetyca {
  color: #C15A31 ;
}
.orange {
  background-color: #C15A31 !important;
  color: #fff;
}

.card-orange {
  border-top: 3px solid #C15A31;
}
.card-blue-aetyca {
  border-top: 3px solid #143B6F;
}

.card-orange > .card-header {
  border-bottom: 1px solid rgba(0,0,0,.15);
}

.card-orange .card-title {
  color: #fff;
  font-weight: 600;
}

.card-orange-insert {
  border-top: 3px solid #C15A31;
}
.card-orange-insert .card-title {
    color: #C15A31 !important;
    font-weight: 700 !important;
}

.card-orange-insert > .card-header {
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.bg-blue-aetyca{
  background-color: #143B6F;
  color: #fff;
}

.badge-blue-aetyca{
  color: #fff;
  background-color: #143B6F;
}

.badge-orange-aetyca{
  color: #fff;
  background-color: #C15A31;
}

.alert-orange-aetyca{
  background-color: #C15A31;
  color: #fff;
  border: 1px solid #c8410b;
}

.btn-blue-aetyca{
  background-color: #143B6F;
  color: #fff;
  border: 1px solid #143B6F;
}

.btn-blue-aetyca:hover{
  background-color: #0f2a57;
  color: #fff;
  border: 1px solid #0f2a57;
}

.btn-orange-aetyca{
  background-color: #C15A31;
  color: #fff;
  border: 1px solid #C15A31;
}

.btn-orange-aetyca:hover{
  background-color: #c8410b;
  color: #fff;
  border: 1px solid #c8410b;
}






















/* Contenitore principale */
.daterangepicker {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    font-family: 'Segoe UI', Roboto, sans-serif;
    border-radius: 8px;
    padding: 4px;
}

/* Header: selettori anno e mese */
.daterangepicker select.monthselect, 
.daterangepicker select.yearselect {
    border: 1px solid #ddd;
    padding: 3px;
    border-radius: 4px;
    outline: none;
}

/* Celle del calendario */
.daterangepicker td.active, 
.daterangepicker td.active:hover {
    background-color: var(--main-orange-color) !important; /* Il tuo Orange */
    border-color: transparent;
    color: #fff;
    border-radius: 4px;
}

.daterangepicker td.available:hover, 
.daterangepicker th.available:hover {
    background-color: #fef5e7;
    border-radius: 4px;
}

.daterangepicker td.today {
    background-color: #fdf2e2;
}

.daterangepicker td.today:after {
    border-bottom-color: var(--main-orange-color);
}

/* Bottoni */
.daterangepicker .applyBtn {
    background-color: var(--main-orange-color);
    border-color: var(--main-orange-color);
}

.daterangepicker .cancelBtn {
    color: #666;
    text-decoration: none;
}

/* Rende le frecce più pulite */
.daterangepicker .calendar-table .next span, 
.daterangepicker .calendar-table .prev span {
    border-width: 0 2px 2px 0;
    border-color: #333;
}