/*************************************
GENERICHE TEMA
**************************************/
#copyrights {
  background-color: var(--verde-scuro);
  color: white;
  border-top: 3px solid var(--verde-chiaro) !important;
  padding: 50px;
}
.card h2 {
  font-family: "Poppins ExtraBold";
  color: var(--verde-chiaro);
}
.card h3 {
  font-family: "Poppins Light";
  color: var(--verde-scuro);
}
.card h4 {
  font-family: "Poppins ExtraBold";
  color: var(--verde-chiaro);
}
.color-green-custom {
  color: var(--verde-scuro);
}
.color-green-chiaro-custom {
  color: var(--verde-chiaro);
}
.bg-danger-td td {
  background: rgba(var(--bs-danger-rgb));
  color: white !important;
}
.alert i,
.sb-msg i,
.msgtitle i {
  width: 100%;
}
.container-btn-calendar {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(-50%, -50%);
}
@media screen and (max-width: 500px) {
  .container-btn-calendar {
    display: block;
    position: relative;
    transform: unset;
    margin-top: 10px;
  }
}
.bg-verde-chiaro {
  background-color: var(--verde-chiaro) !important;
}
.bg-verde-scuro {
  background-color: var(--verde-scuro) !important;
}
strong {
  font-family: "Poppins ExtraBold";
}
.badge-count {
  position: absolute;
  top: 50%;
  right: 10px; /* Opzionale per centrare anche orizzontalmente */
  transform: translateY(-50%);
}
.nav-link-custom:hover {
  color: var(--verde-scuro) !important;
  background: white;
}
.nav-link-custom {
  color: white;
}
.nav-link-custom.active {
  color: var(--verde-scuro) !important;
}

.table-striped tbody tr.bg-danger td {
  background-color: #dc3545 !important;
  color: white;
}
.table-striped tbody tr.bg-warning td {
  background-color: #ffc107 !important;
}
/*************************************
INIZIO TOAST CUSTOM
**************************************/
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999999999;
}
@media screen and (max-width: 375px) {
  .toast {
    width: 80%;
  }
}

.icon-min-width {
  min-width: 18px;
  max-width: 18px;
}
/*************************************
INIZIO CSS BOTTONI
**************************************/
.btn-outline-green-scuro {
  border: 1px solid var(--verde-scuro);
  color: var(--verde-scuro);
  background: white;
}
.btn-outline-green-scuro:hover {
  border: 1px solid var(--verde-scuro);
  color: var(--verde-scuro);
  background: white;
}
.btn-outline-green-scuro:focus {
  box-shadow: none !important;
}
.btn-outline-green-scuro-active {
  background: var(--verde-scuro);
  color: white;
}
.btn-outline-green-scuro-active:hover {
  background: var(--verde-scuro);
  color: white;
}
.btn-outline-green-scuro-active:focus {
  box-shadow: none !important;
}

/*************************************
INIZIO ALERT CUSTOM
**************************************/
.alert-full-msg {
  background-color: var(--bg-alert-full-msg);
  padding: 40px 20px;
  border-radius: var(--bs-border-radius);
  color: var(--color-alert-full-msg);
}

.alert-success-custom {
  background-color: var(--bg-alert-success);
  color: var(--color-alert-high-contrast-success);
}

.alert-error-custom {
  background-color: var(--bg-alert-error);
  color: var(--color-alert-high-contrast-error);
}

.alert-warning-custom {
  background-color: var(--bg-alert-warning);
  color: var(--color-alert-high-contrast-warning);
}

/*************************************
INIZIO CSS CALENDAR
**************************************/
@media screen and (max-width: 768px) {
  .fc-header-toolbar {
    display: block !important;
  }
  .fc-header-toolbar .fc-toolbar-chunk:nth-of-type(3) {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }
  .fc-toolbar-title {
    font-size: 1.4rem !important;
  }
}

.fc-prevBtn-button:after {
  content: "\f053";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.fc-nextBtn-button:after {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.fc-list-day-text {
  font-family: "Poppins ExtraBold";
  text-transform: uppercase;
}
.fc-direction-ltr .fc-list-day-side-text {
  font-family: "Poppins ExtraBold";
  text-transform: uppercase;
  float: left;
  margin-left: 10px;
}
.fc-toolbar-title {
  font-family: "Poppins ExtraBold";
  text-transform: uppercase;
  color: var(--verde-chiaro);
}
.fc .fc-button-primary:disabled {
  background-color: var(--verde-chiaro);
  border-color: var(--verde-chiaro);
  color: white;
}
.fc .fc-button-primary {
  background-color: var(--verde-scuro);
  border-color: var(--verde-scuro);
  color: white;
}
.fc .fc-list-event:hover td {
  color: var(--verde-chiaro);
}
.fc-list-day {
  background: white;
  z-index: 300;
  position: relative;
}

.default-calendar {
  background-color: var(--verde-chiaro);
  border-color: var(--verde-chiaro);
  color: white;
}

.booked-calendar {
  background-color: var(--bg-booked-calendar);
  border-color: var(--bg-booked-calendar);
  color: var(--color-booked-calendar);
}

.booked-calendar-finish {
  background-color: var(--bg-booked-calendar);
  border-color: var(--bg-booked-calendar);
  color: var(--color-booked-calendar);
}

.finish-calendar {
  background-color: var(--bg-finish-events);
  border-color: var(--bg-finish-events);
  color: var(--color-finish-events);
}

.active-calendar {
  background-color: var(--bg-active-calendar);
  border-color: var(--bg-active-calendar);
  color: var(--color-active-calendar);
}

.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}

/***************************
CSS PER LA SELECT
****************************/
.select2-container .select2-selection--single {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 38px !important;
  user-select: none;
  -webkit-user-select: none;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #444;
  line-height: 38px !important;
}

.bg-secondary-select2 {
  background: lightgray;
  display: block;
  padding: 6px;
  font-size: 16px;
}
/*Serve per la X della select 2*/
.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  height: 38px !important;
  margin-right: 20px;
  padding-right: 0px;
}
.select2-container--default .select2-selection--single {
  border: 1px solid #ced4da !important;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #212529 !important;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 38px !important;
}
.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--verde-chiaro);
  color: white;
}

/*************************************
CSS PER ACCORDION CUSTOM
**************************************/
.custom-accordion.accordion-item {
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: none;
}
.custom-accordion .accordion-button:focus {
  border-color: transparent;
  box-shadow: none;
  background-color: white;
  text-align: center;
}

.custom-accordion .accordion-body {
  padding: 0;
}
.custom-accordion .accordion-button:not(.collapsed) {
  color: white;
  background-color: var(--verde-chiaro) !important;
  box-shadow: none;
}
.custom-accordion.accordion-item:has(.accordion-collapse.show) {
  border-color: var(--verde-chiaro);
}

/***************************
CSS PER IFRAME
****************************/

/***************************
CSS PER LE NOTIFICHE
****************************/
.notification-box {
  position: fixed;
  left: 0;
  top: -100%;
  right: 0;
  width: 100%;
  z-index: 9999;
  transition: 0.3s all;
  margin-top: env(safe-area-inset-top);
}

.notification-box.show {
  top: 0;
}

.notification-dialog.android-style {
  background: #ffffff;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 2px 1px -1px rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  padding: 16px 16px;
}

.notification-dialog.android-style .notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-dialog.android-style .notification-header .in {
  display: flex;
  align-items: center;
}

.notification-dialog.android-style .notification-header .in .imaged {
  margin-right: 8px;
}

.notification-dialog.android-style .notification-header .in strong {
  font-size: 13px;
  font-weight: 400;
  color: #141515;
}

.notification-dialog.android-style .notification-header .in span {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-size: 11px;
}

.notification-dialog.android-style .notification-header .in span:before {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  content: "•";
}

.notification-dialog.android-style .notification-header .close-button {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #a1a1a2;
}

.notification-dialog.android-style .notification-header .close-button:hover,
.notification-dialog.android-style .notification-header .close-button:active {
  color: #4f5050;
}

.notification-dialog.android-style .notification-content {
  font-size: 13px;
  line-height: 1.4em;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.notification-dialog.android-style .notification-content .subtitle {
  font-size: 15px;
  margin: 0 0 5px 0;
  line-height: 1.4em;
  font-weight: 500;
}

.notification-dialog.android-style .notification-content .in {
  padding-right: 16px;
}

.notification-dialog.android-style .icon-box {
  width: 46px;
  height: 46px;
  font-size: 46px;
  color: #a1a1a2;
}

.notification-dialog.android-style .notification-footer {
  border-top: 1px solid #e1e1e1;
  margin: 16px -16px -16px -16px;
  padding: 0;
  display: flex;
  align-items: flex-start;
}

.notification-dialog.android-style .notification-footer .notification-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e74fd !important;
  font-size: 13px;
  border-right: 1px solid #e1e1e1;
  padding: 16px 6px;
}

.notification-dialog.android-style
  .notification-footer
  .notification-button
  i.bi,
.notification-dialog.android-style
  .notification-footer
  .notification-button
  i.icon,
.notification-dialog.android-style
  .notification-footer
  .notification-button
  ion-icon {
  font-size: 20px;
  line-height: 1em;
  margin-right: 8px;
}

.notification-dialog.android-style
  .notification-footer
  .notification-button:last-child {
  border-right: 0;
}

.notification-dialog.android-style
  .notification-footer
  .notification-button:hover,
.notification-dialog.android-style
  .notification-footer
  .notification-button:active {
  color: #0564fd;
  background: rgba(225, 225, 225, 0.3);
}

.notification-dialog.ios-style {
  margin: 10px;
  background: #3b4859;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.notification-dialog.ios-style .notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px 10px 0 0;
}

.notification-dialog.ios-style .notification-header .in {
  display: flex;
  align-items: center;
}

.notification-dialog.ios-style .notification-header .in .imaged {
  margin-right: 8px;
}

.notification-dialog.ios-style .notification-header .in strong {
  font-size: 13px;
  font-weight: 400;
  color: #fff;
}

.notification-dialog.ios-style .notification-header .right {
  display: flex;
  align-items: center;
}

.notification-dialog.ios-style .notification-header .right span {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.notification-dialog.ios-style .notification-header .close-button {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  opacity: 0.5;
}

.notification-dialog.ios-style .notification-header .close-button:hover,
.notification-dialog.ios-style .notification-header .close-button:active {
  opacity: 0.7;
}

.notification-dialog.ios-style .icon-box {
  width: 46px;
  height: 46px;
  font-size: 46px;
  color: #a1a1a2;
}

.notification-dialog.ios-style .notification-content {
  font-size: 13px;
  line-height: 1.4em;
  padding: 14px 16px 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.75);
}

.notification-dialog.ios-style .notification-content .subtitle {
  font-size: 15px;
  margin: 0 0 5px 0;
  line-height: 1.4em;
  color: #fff;
  font-weight: 500;
}

.notification-dialog.ios-style .notification-content .in {
  padding-right: 16px;
}

.notification-dialog.ios-style .notification-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  display: flex;
  align-items: flex-start;
}

.notification-dialog.ios-style .notification-footer .notification-button {
  color: #fff !important;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 6px;
}

.notification-dialog.ios-style .notification-footer .notification-button i.bi,
.notification-dialog.ios-style .notification-footer .notification-button i.icon,
.notification-dialog.ios-style
  .notification-footer
  .notification-button
  ion-icon {
  font-size: 20px;
  line-height: 1em;
  margin-right: 10px;
  color: #fff;
}

.notification-dialog.ios-style
  .notification-footer
  .notification-button:last-child {
  border-right: 0;
}

.notification-dialog.ios-style .notification-footer .notification-button:hover,
.notification-dialog.ios-style
  .notification-footer
  .notification-button:active {
  color: #0564fd;
  background: rgba(255, 255, 255, 0.02);
}

.accordion-center .accordion-button::after {
  margin: 0;
  right: 10px;
  position: absolute;
}
