/* CSS Document */

html,
body {
  height: 100%;
}

.home-bg {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #f5f5f5;
  background-image: url("../img/bghome_gescliweb.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.home-partner {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  padding-top: 140px !important;
  padding-bottom: 40px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background-color: #f5f5f5;
  background-image: url("../img/bghome.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: #fff !important;
}

.btn-login{
  background-color: #E23637;
  color: #fff;
  border-radius: 30px;
  padding: 12px 40px;
  font-size: 18px;
  font-weight: 500;
  border: none;
  width: 100%;
}

.btn-login-cliente{
  background-color: #0F2396;
  color: #fff;
}

.btn-login:hover, .btn-login:focus, .btn-login:active {
  background-color: #bb0808 !important;
  color: #fff !important;
}

.btn-login-cliente:hover, .btn-login-cliente:focus, .btn-login-cliente:active {
  background-color: #091a77 !important;
  color: #fff !important;
}

.home-logo {
  max-width: 300px;
}

.home-title {
  font-family: var(--primary-font-family);
  font-weight: 600;
  font-size: 3rem;
}

#tabella_ope {
  overflow-x: scroll;
}

.form-signin {
  width: 100%;
  max-width: 420px;
  padding: 15px;
  margin: auto;
}
.form-signin .checkbox {
  font-weight: 400;
}
.form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 15px 20px;
  font-size: 16px;
  background-color: #f0f0f5;
  border: none;
  border-radius: 18px;
  color: #666;
}
.form-signin .form-control::placeholder {
  color: #999;
}
.form-signin .form-control:focus {
  z-index: 2;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(15, 35, 150, 0.2);
}
.form-signin #username {
  margin-bottom: 15px;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
}

.placeholder {
  height: 47px;
  border: 1px solid #28a745;
}
.accordion {
  padding-bottom: 20px;
}
.hand {
  cursor: pointer;
}
.ristr {
  padding: 0.25rem 0.25rem !important;
}
.row2 {
  margin-bottom: 0.5rem;
}
.row3 {
  margin-bottom: 0rem;
}
.row4 {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e7f1ff;
  margin-bottom: 0.5rem;
}
.row5 {
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #e7f1ff;
  margin-bottom: 0.5rem;
}
.ui-autocomplete {
  z-index: 99999999999 !important;
  /*position: relative!important;*/
}
.textareablock {
  height: auto !important;
  border: 0px !important;
  /*border: 1px dashed #ced4da;*/
}
.seldis,
.seldis option {
	color: #212529 !important;
	opacity: 1 !important;
	background: none !important;
	background-image: none !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-expand: none;
	text-indent: 1px;
	text-overflow: "";
	pointer-events: none !important;
}

.toolbar,
.fann {
	width:100%;
  	text-align: right;
}
.tooltipcursor {
    cursor: pointer;
}
.cursornormal {
    cursor: default !important;
}
.modal {
  /*z-index: 2000!important;*/
}
.dataTables_processing {
    z-index: 1000 !important;
}
#g_NOTE_TELEFONATE {
    height: 200px;
}
#g_NOTE_GSW, #v_NOTE_VERIFICA {
  height: 360px;
}
#r_TESTO {
  height: 360px;
}
.textareablock {
  height: auto !important;
  border: 0px !important;
  /*border: 1px dashed #ced4da;*/
}
.textareavisual {
  flex: 1;
  height: 500px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
}
.textareaff {
  height: 220px !important;
}
.text-orange {
  color: #f90;
}
.ucase {
  text-transform: uppercase !important;
}
.nascondi {
  display: none;
}
.tooltip {
  z-index: 99999 !important;
  /*  display: inline;
  position: relative;*/
}
.tt {
}
.tooltip-inner {
  max-width: 350px;
}
.nowrap {
  white-space: nowrap;
}
.bigcell {
  width: 100%;
}
.form-check-input {
  margin-top: 0.6rem;
}

#tabella_stats .text-danger a {
  color: #dc3545 !important;
}
#tabella_stats .text-info a {
  color: #17a2b8 !important;
}
#tabella_stats .text-success a {
  color: #28a745 !important;
}
#tabella_stats .font-weight-bold a {
  color: #212529 !important;
}
.modal {
  overflow: auto !important;
}

.panel-title2 {
  /*margin-top: -5px;*/
  margin-top: 15px;
}
.panel-title2,
.panel-title3 {
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-weight: bold;
  font-size: 14px;
  border-bottom: 1px #ccc dashed;
}
.fa-80 {
  font-size: 0.8em;
}
.fa-stk {
  width: 1em;
}
.fa-stk-h1 {
  height: 1em;
  line-height: 1em;
}
#sidebarMenu {
  overflow: auto;
  font-family: verdana;
  font-size: 12px;
  font-weight: 200;
  background-color: #2e353d;
  position: fixed;
  top: 0px;
  height: 100%;
  color: #e1ffff;
}
#sidebarMenu ul,
#sidebarMenu li {
  list-style: none;
  padding: 0px;
  margin: 0px;
  line-height: 35px;
  cursor: pointer;
}
#sidebarMenu ul :not(collapsed) .arrow:before,
#sidebarMenu li :not(collapsed) .arrow:before {
  font-family: "Font Awesome 5 Pro";
  content: "\f107";
  font-weight: 900;
  display: inline-block;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: middle;
  float: right;
}
#sidebarMenu ul .active,
#sidebarMenu li .active {
  border-left: 3px solid #ffc107;
  background-color: #4f5b69;
}
#sidebarMenu ul .sub-menu li.active,
#sidebarMenu li .sub-menu li.active {
  background-color: #020203;
  border-left: 3px solid #ffc107;
  /*color: #007bff;*/
}
#sidebarMenu ul .sub-menu li.active a,
#sidebarMenu li .sub-menu li.active a {
  color: #ffeeba;
}
#sidebarMenu ul .sub-menu li,
#sidebarMenu li .sub-menu li {
  background-color: #181c20;
  border: none;
  line-height: 28px;
  border-bottom: 1px solid #2e353d;
  border-left: 3px solid #181c20;
  margin-left: 0px;
}
#sidebarMenu ul .sub-menu li:hover,
#sidebarMenu li .sub-menu li:hover {
  background-color: #020203;
  border-left: 3px solid #ffc107;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  -ms-transition: all 1s ease;
  transition: all 1s ease;
}
#sidebarMenu ul .sub-menu li a:hover,
#sidebarMenu li .sub-menu li a:hover {
  color: #ffeeba;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  -ms-transition: all 1s ease;
  transition: all 1s ease;
}

#sidebarMenu ul .sub-menu li.text-success a:hover,
#sidebarMenu li .sub-menu li.text-success a:hover {
  color: #37e55f !important;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  -ms-transition: all 1s ease;
  transition: all 1s ease;
}
/*#sidebarMenu ul .sub-menu li:before,
#sidebarMenu li .sub-menu li:before {
  font-family: "Font Awesome 5 Pro";
  content: "\f105";
  display: inline-block;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: middle;
}*/
#sidebarMenu li {
  padding-left: 0px;
  border-left: 3px solid #2e353d;
  border-bottom: 1px solid #23282e;
}
#sidebarMenu li a {
  text-decoration: none;
  color: #e1ffff;
  /* width: 100%; */
  display: block;
}
#sidebarMenu li a i {
  padding-left: 10px;
  width: 20px;
  padding-right: 20px;
}
#sidebarMenu li:hover {
  border-left: 3px solid #ffc107;
  background-color: #4f5b69;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  -ms-transition: all 1s ease;
  transition: all 1s ease;
}

.cbox label {
  padding-right: 10px !important;
  font-weight: normal !important;
}

.text-label {
  text-align: right !important;
}
.msgfile_normal {
  font-weight: bold;
}
.msgfile_err {
  font-weight: bold;
  color: #eb3300;
}
.thumbbox,
.filebox {
  float: left;
}
.thumbbox {
  padding-right: 5px;
  /*width:38px;*/
}
.msg_info2 {
  padding-top: 30px;
}
.txttel {
  height: 160px !important;
}

.seldis,
.seldis option {
  color: #212529 !important;
  opacity: 1 !important;
  background: none !important;
  background-image: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-expand: none;
  text-indent: 1px;
  text-overflow: "";
}
.h16,
.h16 span.fa-stack {
  height: 16px !important;
  line-height: 16px !important;
}
.fleft {
  float: left;
  padding-right: 10px;
}

#modifica_tel2 {
  float: right;
}
.form-check2 {
  margin-left: -1.25rem !important;
}
#n_NOTECONT {
  height: 200px;
}
#c_ANNOTAZIONI {
  height: 200px;
}
#v_SVOLGIMENTO {
  height: 300px;
}
#c_DESCRIZIONE_NC {
  height: 200px;
}
#c_NOME,
#c_NOME_DI_UTILIZZO {
  /*text-transform:uppercase;*/
}
@media (max-width: 767.98px) {
  #sidebarMenu {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
  }
  #sidebarMenu .toggle-btn {
    display: block;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 10 !important;
    padding: 3px;
    background-color: #ffffff;
    color: #000;
    width: 40px;
    text-align: center;
  }
}
@media (min-width: 767.98px) {
  #sidebarMenu .menu-list .menu-content {
    display: block;
  }
}
@media (max-width: 991.98px) {
  .text-label {
    text-align: left !important;
  }
}

/*
table.dataTable.no-footer {
  border-bottom: 1px solid #111;
}
table.dataTable.nowrap th, table.dataTable.nowrap td {
  white-space: nowrap;
}
table.dataTable.compact thead th,
table.dataTable.compact thead td {
  padding: 4px 17px;
}
table.dataTable.compact tfoot th,
table.dataTable.compact tfoot td {
  padding: 4px;
}
table.dataTable.compact tbody th,
table.dataTable.compact tbody td {
  padding: 4px;
}
table.dataTable th.dt-left,
table.dataTable td.dt-left {
  text-align: left;
}
table.dataTable th.dt-center,
table.dataTable td.dt-center,
table.dataTable td.dataTables_empty {
  text-align: center;
}
table.dataTable th.dt-right,
table.dataTable td.dt-right {
  text-align: right;
}
table.dataTable th.dt-justify,
table.dataTable td.dt-justify {
  text-align: justify;
}
table.dataTable th.dt-nowrap,
table.dataTable td.dt-nowrap {
  white-space: nowrap;
}
table.dataTable thead th.dt-head-left,
table.dataTable thead td.dt-head-left,
table.dataTable tfoot th.dt-head-left,
table.dataTable tfoot td.dt-head-left {
  text-align: left;
}
table.dataTable thead th.dt-head-center,
table.dataTable thead td.dt-head-center,
table.dataTable tfoot th.dt-head-center,
table.dataTable tfoot td.dt-head-center {
  text-align: center;
}
table.dataTable thead th.dt-head-right,
table.dataTable thead td.dt-head-right,
table.dataTable tfoot th.dt-head-right,
table.dataTable tfoot td.dt-head-right {
  text-align: right;
}
table.dataTable thead th.dt-head-justify,
table.dataTable thead td.dt-head-justify,
table.dataTable tfoot th.dt-head-justify,
table.dataTable tfoot td.dt-head-justify {
  text-align: justify;
}
table.dataTable thead th.dt-head-nowrap,
table.dataTable thead td.dt-head-nowrap,
table.dataTable tfoot th.dt-head-nowrap,
table.dataTable tfoot td.dt-head-nowrap {
  white-space: nowrap;
}
table.dataTable tbody th.dt-body-left,
table.dataTable tbody td.dt-body-left {
  text-align: left;
}
table.dataTable tbody th.dt-body-center,
table.dataTable tbody td.dt-body-center {
  text-align: center;
}
table.dataTable tbody th.dt-body-right,
table.dataTable tbody td.dt-body-right {
  text-align: right;
}
table.dataTable tbody th.dt-body-justify,
table.dataTable tbody td.dt-body-justify {
  text-align: justify;
}
table.dataTable tbody th.dt-body-nowrap,
table.dataTable tbody td.dt-body-nowrap {
  white-space: nowrap;
}*/

.table-orange,
.table-orange > th,
.table-orange > td {
  background-color: #ffd7b6 !important;
}

.table-orange th,
.table-orange td,
.table-orange thead th,
.table-orange tbody + tbody {
  border-color: #ff953d !important;
}

.table-hover .table-orange:hover {
  background-color: #ffbb82 !important;
}

.table-hover .table-orange:hover > td,
.table-hover .table-orange:hover > th {
  background-color: #ffbb82 !important;
}

/* Fix accordion arrow alignment - force to right */
.accordion-button::after {
  margin-left: auto !important;
}

.form-control-plaintext2 {
  color: #212529;
  background-color: transparent;
  border: solid transparent;
  border-width: 1px 0;
}
.form-control-plaintext2.form-control-sm,
.form-control-plaintext2.form-control-lg {
  padding-right: 0;
  padding-left: 0;
}

#s_DESCRIZIONE,
#s_NOTE {
  height: 100px;
}

.semaforo {
  font-family: "Font Awesome 5 Pro";
}
.txt-barrato {
  text-decoration: line-through;
}
form {
  position: relative;
}

.text-overflow {
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#e_ID_UTENTE_INS,
#e_ID_UTENTE_UPD,
#e_ID_UTENTE_SOL {
  pointer-events: none;
  display: block;
  width: 100%;
  padding: 0.375rem 0;
  margin-bottom: 0;
  line-height: 1.5;
  color: #212529;
  background-color: transparent;
  border: solid transparent;
  border-width: 1px 0;
}

.pagination {
  justify-content: end;
}

.rapp-annullato {
  background-color: #b3b3b3 !important; 
  text-decoration: line-through;
}

.rapp-annullato>td {
  background-color: #b3b3b3 !important;
}

.table .text-secondary td{
  color: rgba(var(--bs-secondary-rgb), var(--bs-text-opacity)) !important;
}

.table td p{
  margin-bottom: 0 !important;
}

#tinymce p{
  margin: 0 !important;
}

.dt-container{
  position: relative !important;
}

.container .location-map {
  display: block;
  width: 100%;
  height: 50vh;
}

.wide-card {
  width: 90vw;
  max-width: 640px;
}

/*.col-box {
  border: 1px solid rgba(33, 37, 41, 0.75);
  border-radius: 0.5rem;
  padding: 1rem;
} */

.logo-small {
  width: 60px;
  height: auto;
  vertical-align: middle;
  margin-right: 10px;
}

.wide-card #location-map {
  height: 300px;
  width: 100%;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  margin-bottom: 1rem;
  object-fit: cover;
}

.wide-card {
  border-radius: 2rem;
}

.header-img {
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
}

.label-clickable {
  margin: 0 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: #333;
}

.label-clickable.active {
  color: #0F2396;
  border-bottom: 2px solid #E23637;
}

.d-none {
  display: none;
}

.orari-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.orari-list li {
  display: flex;
  justify-content: start;
  gap: 1rem;
  line-height: 1.8;
}

.giorno {
  width: 90px;
  font-weight: 500;
}

.fascia {
  white-space: nowrap;
}

ul.list6 a {
  color: inherit;
  text-decoration: none;
}

.scroll-tabs {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.scroll-tabs .label-clickable {
  white-space: nowrap;
  flex-shrink: 0;
}

.agggiornamenti-precedenti:not(:last-child) {
  border-bottom: 1px solid #0000ff;
} 

.checkbox-wrapper input[type="checkbox"] {
  accent-color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 5px;
}

/* Home page service cards */
.hover-card {
  transition: all 0.3s ease;
  border-radius: 1rem;
}

.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.2) !important;
}

.disabled-card {
  border-radius: 1rem;
  opacity: 0.5;
}

a .disabled-card {
  cursor: pointer;
}

.primary-font {
  font-family: var(--primary-font-family);
}

/* Override navbar icon size for larger icons */
.navbar .icon-xl {
  font-size: 1.5rem !important;
}

/* ========================================
   Dashboard Card Home - Stile moderno
   ======================================== */

.card-home-link {
  text-decoration: none;
  display: block;
}

.card-home {
  border: none;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent-color, var(--color-primary-blu));
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Colore accento per variante */
.card-home-primary {
  --card-accent-color: #0F2396;
}

.card-home-info {
  --card-accent-color: #0dcaf0;
}

.card-home-secondary {
  --card-accent-color: #6c757d;
}

.card-home-success {
  --card-accent-color: #198754;
}

.card-home-warning {
  --card-accent-color: #ffc107;
}

.card-home-danger {
  --card-accent-color: #dc3545;
}

.card-home:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15, 35, 150, 0.18);
}

.card-home:hover::before {
  opacity: 1;
}

.card-home .card-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Icona con sfondo arrotondato */
.card-home-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.card-home-icon i {
  font-size: 1.75rem;
  color: #fff;
  transition: transform 0.3s ease;
}

.card-home:hover .card-home-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-home:hover .card-home-icon i {
  transform: scale(1.1);
}

/* Contenuto testuale */
.card-home-content {
  flex: 1;
  min-width: 0;
}

.card-home-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-blu);
  font-family: var(--primary-font-family);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.card-home-subtitle {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
}

/* Conteggio */
.card-home-count {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--primary-font-family);
  min-width: 50px;
  text-align: center;
  color: var(--card-accent-color);
}

.card-home-count:empty {
  display: none;
}

/* Freccia di navigazione */
.card-home-arrow {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.card-home-arrow i {
  font-size: 0.9rem;
  color: #adb5bd;
  transition: all 0.3s ease;
}

.card-home:hover .card-home-arrow {
  background: var(--color-primary-blu);
  transform: translateX(4px);
}

.card-home:hover .card-home-arrow i {
  color: #fff;
}

/* Varianti colore per le icone */
.card-home-icon.bg-primary {
  background: linear-gradient(135deg, #0F2396 0%, #1a3ad1 100%);
}

.card-home-icon.bg-info {
  background: linear-gradient(135deg, #0dcaf0 0%, #31d2f2 100%);
}

.card-home-icon.bg-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
}

.card-home-icon.bg-success {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.card-home-icon.bg-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ffda6a 100%);
}

.card-home-icon.bg-danger {
  background: linear-gradient(135deg, #dc3545 0%, #e35d6a 100%);
}

/* Varianti colore per hover card */
.card-home-primary:hover {
  box-shadow: 0 12px 32px rgba(15, 35, 150, 0.22);
}

.card-home-info:hover {
  box-shadow: 0 12px 32px rgba(13, 202, 240, 0.22);
}

.card-home-secondary:hover {
  box-shadow: 0 12px 32px rgba(108, 117, 125, 0.22);
}

/* Responsive */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .card-home-title {
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .card-home-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 0.875rem;
  }

  .card-home-icon i {
    font-size: 1.5rem;
  }

  .card-home-title {
    font-size: 1rem;
  }

  .card-home-subtitle {
    font-size: 0.8rem;
  }

  .card-home-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}
