/*GENERAL*/
#loading {position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.3); z-index: 9998; display: none;}
#loading div.loader {position: relative; width: 200px; top: 200px; left: 50%; margin-left: -100px;}
#session_msg {display: none;}

/*FORMS*/
.alert-form, .ok-form {display: none; line-height: 1rem !important; white-space: normal !important;}
.ui-autocomplete {z-index: 9999 !important;}
.modal-body > .card {border: 0 !important; box-shadow: none;}
.progress {display: none;}

/*TABLES*/
.table-responsive {white-space: normal;}
.table thead tr {border-top: none;}
.table thead tr th:first-child, .table tbody td:first-child {border-left: none;}
.table thead tr th:last-child, .table tbody td:last-child {border-right: none;}
.table.table-hover tbody tr td:not(:first-child) {cursor: pointer}
.table tbody tr td div.lock_free {width: 15px; height: 15px;}

@media print {
  .navbar {display: none !important}
  .sidebar-wrapper {display: none !important}
  .page-wrapper {margin: 0 !important}
  .topbar {display: none !important}
  .btn {display: none !important}
  
  .nav-tabs,
  .nav-tabs .nav-item,
  .nav-tabs .nav-link {
    display: none !important;
  }

  
  .tab-content > .tab-pane {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .tab-pane:not(:first-child) {break-before: page;} /* opzionale: fa iniziare ogni tab da una nuova pagina */
  
  .sticky-top,
  .position-sticky,
  .fixed-top,
  .fixed-bottom,
  [style*="position: sticky"],
  [style*="position:fixed"] {
    position: static !important;
    top: auto !important;
  }

  
  .nav-tabs .nav-link.active,
  .nav-tabs .nav-item.show .nav-link {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  table thead th,
  .table thead th {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    background: transparent !important;  /* se vuoi mantenere il grigio, commenta questa riga */
    box-shadow: none !important;
  }

  
  .card,
  .tab-content,
  .tab-pane,
  .table {
    box-shadow: none !important;
    background-clip: border-box !important;
  }

  
  .tab-pane + .tab-pane {
    margin-top: 1.5rem !important;
  }

  .page-footer {display: none !important}
}