/*****************************************
			DEBUG
******************************************/
/****  DEBUG  *****/
#debug-panel-container {
}
#debug-panel-container:not(.open) {
  height: auto;
  border-radius: 0 0px 10px 0;
  top: 0%;
  left: 0%;
  padding: 0;
  z-index: 9999999999 !important;
}
#debug-panel-container.open {
}
#debug-panel-btn {
}
#debug-panel-container.open #debug-panel-btn {
}
#debug-panel-container:not(.open) #debug-panel-btn span {
  display: none;
}
#debug-panel-container.open #debug-panel-btn span {
}
#debug-panel {
  max-width: 500px;
}
#debug-panel.hidden {
}
/**** /END DEBUG *****/
/*****************************************
			LOADER
******************************************/
.spinner-border {
  display: inline-block;
  width: 4rem;
  height: 4rem;
  vertical-align: middle;
  border: 0.4rem solid rgba(14, 165, 233, 0.25);
  border-right-color: #0ea5e9;
  border-radius: 50%;
  animation: global-loader-spin 0.75s linear infinite;
  box-sizing: border-box;
}
@keyframes global-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
/**** /END LOADER *****/
/*****************************************
			HEADER
******************************************/
html.mobile .sticky-header {
  display: none;
}
/**** /END HEADER *****/
/*****************************************
			SEARCH FILTERS
******************************************/
.form-control.search-control
  + .select2-container--default
  .select2-selection--single {
  border: 0;
}
/**** /END SEARCH FILTERS *****/
/*****************************************
			MIX
******************************************/
.animate__faster-exit {
  --animate-duration: 0.2s;
}
.select2-container--default .select2-selection--single {
  background-color: transparent;
}
/**** /END MIX *****/
/*****************************************
			PANNELLI
******************************************/
body.desktop #scan_qr_btn {
  /*display: none !important;*/
}
/**** /END PANNELLI *****/
/*****************************************
			SWAL
******************************************/
html.mobile .swal2-container {
  padding: 0 !important;
}
html.mobile .swal2-popup.fullscreen-mobile {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
html.mobile .swal2-popup.fullscreen-mobile .swal2-cancel {
  display: none !important;
}
html.mobile .swal2-popup.fullscreen-mobile {
  /* Remove parent padding if possible via CSS, but if not, keep in JS */
}
html.mobile #supporto_container {
  width: 100% !important;
  height: 100% !important;
  overflow-y: auto !important;
  padding: 24px 12px !important;
  box-sizing: border-box !important;
  background: transparent !important;
}
/**** /END SWAL *****/
select#swal-regione.form-control:hover,
select#swal-provincia.form-control:hover,
input#swal-data-invio.form-control:hover {
  background-color: color-mix(in oklab, var(--color-white) 80%, transparent);
}

.img-preview:hover {
  transform: scale(1.05);
  transition: transform 0.2s;
}

.email_suggestions {
  z-index: 1051;
}

.hub-image-input {
  position: relative;
  width: 100%;
  max-width: 12rem;
}
.hub-image-input__label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-gray-700);
}
.hub-image-input__dropzone {
  position: relative;
  display: flex;
  width: 12rem;
  height: 12rem;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0.125rem dashed #cacaca;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.hub-image-input__dropzone.is-dragover {
  border-color: var(--color-primary-500);
  background: color-mix(in srgb, var(--color-primary-300) 20%, white);
}
.hub-image-input__empty {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: #6b7280;
}
.hub-image-input__icon {
  font-size: 2rem;
}
.hub-image-input__preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}
.hub-image-input--contain .hub-image-input__preview {
  object-fit: contain;
}
.hub-image-input--cover .hub-image-input__preview {
  object-fit: cover;
}
.hub-image-input__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 2rem;
  height: 2rem;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.hub-image-input__spinner::before {
  display: block;
  width: 100%;
  height: 100%;
  border: 0.25rem solid #ddd;
  border-top-color: var(--color-primary-500);
  border-radius: 50%;
  content: "";
  animation: hub-image-spinner-rotate 0.8s linear infinite;
}
.hub-image-input__remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary-700);
  color: #fff;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.hub-image-input__remove::before,
.hub-image-input__remove::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 0.125rem;
  border-radius: 0.125rem;
  background: currentColor;
  content: "";
}
.hub-image-input__remove::before { transform: translate(-50%, -50%) rotate(45deg); }
.hub-image-input__remove::after { transform: translate(-50%, -50%) rotate(-45deg); }
.hub-image-input__remove:hover {
  background: var(--color-danger);
  transform: scale(1.06);
}
.hub-image-input__remove:active { transform: scale(0.94); }
.hub-image-input__remove:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary-500) 45%, transparent);
}
.hub-image-input__message {
  display: block;
  margin-top: 0.375rem;
  color: var(--color-danger);
}
.hub-image-input__message[data-type="info"] {
  color: #6b7280;
}
.hub-button-spinner { display: inline-block; width: .9em; height: .9em; margin-right: .4rem; border: .15em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hub-image-spin .7s linear infinite; vertical-align: -.1em; }
.is-recipient-disabled { opacity: .55; cursor: not-allowed; }
#filtri { white-space: pre-line; }
#filtri.is-empty { color: var(--color-danger) !important; font-weight: 600; }
@keyframes hub-image-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hub-image-spinner-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hub-image-input__dropzone.is-loading::after { content: ""; position: absolute; inset: 0; z-index: 3; background: rgba(255,255,255,.45); }
.hub-image-input__dropzone.is-loading .hub-image-input__preview { opacity: .55; }
.hub-image-input__dropzone.is-loading .hub-image-input__spinner { display: block; }
.hub-image-input__dropzone.is-preview .icon,
.hub-image-input__dropzone.is-preview .text { display: none; }

/* From Uiverse.io by Yaya12085 */
.custum-file-upload {
  height: 10rem;
  width: 12rem;
  display: flex;
  flex-direction: column;
  align-items: space-between;
  gap: 1.25rem; /* 20px */
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 0.125rem dashed #cacaca; /* 2px */
  background-color: rgba(255, 255, 255, 1);
  padding: 1.5rem;
  border-radius: 0.625rem; /* 10px */
  box-shadow: 0rem 3rem 2.1875rem -3rem rgba(0, 0, 0, 0.1); /* 0px 48px 35px -48px */
}

.device-photo-input {
  position: relative;
  overflow: hidden;
}

.device-photo-input.is-loading .icon,
.device-photo-input.is-loading .text,
.device-photo-input.is-preview .icon,
.device-photo-input.is-preview .text {
  display: none;
}

.device-photo-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  border: 0.25rem solid rgba(14, 165, 233, 0.25);
  border-right-color: #0ea5e9;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: device-photo-spin 0.75s linear infinite;
}

.device-photo-spinner[hidden],
.device-photo-preview[hidden] {
  display: none;
}

.device-photo-preview {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

@keyframes device-photo-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.custum-file-upload .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custum-file-upload .icon svg {
  height: 80px;
  fill: rgba(75, 85, 99, 1);
}

.custum-file-upload .text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custum-file-upload .text span {
  font-weight: 400;
  color: rgba(75, 85, 99, 1);
}

.custum-file-upload input {
  display: none;
}

.image-remove-button {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 9999px;
  background: rgba(17, 24, 39, 0.88);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.company-icon-control {
  position: relative;
}

.company-icon-loading {
  width: 12rem;
  height: 10rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 0.125rem dashed #cacaca;
  border-radius: 0.625rem;
  background: rgba(249, 250, 251, 0.85);
  color: rgba(75, 85, 99, 1);
  text-align: center;
}

.company-icon-loading .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 0.3rem;
}

.dark .company-icon-loading {
  border-color: #4b5563;
  background: rgba(31, 41, 55, 0.85);
  color: #e5e7eb;
}

.image-remove-button:hover,
.image-remove-button:focus-visible {
  background: #dc2626;
  outline: 3px solid rgba(239, 68, 68, 0.35);
  outline-offset: 2px;
  transform: scale(1.05);
}

.dark .image-remove-button {
  border-color: #374151;
  background: rgba(243, 244, 246, 0.92);
  color: #111827;
}

.dark .image-remove-button:hover,
.dark .image-remove-button:focus-visible {
  background: #ef4444;
  color: #fff;
}

.dropdown-menu {
  -webkit-box-shadow: 0 5px 10px rgba(30, 32, 37, 0.12);
  box-shadow: 0 5px 10px rgba(30, 32, 37, 0.12);
  -webkit-animation-name: DropDownSlide;
  animation-name: DropDownSlide;
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  position: absolute;
  z-index: 999;
}
.dropdown-menu.dropdown-megamenu {
  padding: 20px;
  left: 0 !important;
  right: 0 !important;
}
.dropdown-menu[data-popper-placement="top-start"] {
  -webkit-animation-name: DropDownSlideDown;
  animation-name: DropDownSlideDown;
}
@keyframes DropDownSlide {
  100% {
    margin-top: -1px;
  }
  0% {
    margin-top: 8px;
  }
}
@-webkit-keyframes DropDownSlideDown {
  100% {
    margin-bottom: 0;
  }
  0% {
    margin-bottom: 8px;
  }
}
@keyframes DropDownSlideDown {
  100% {
    margin-bottom: 0;
  }
  0% {
    margin-bottom: 8px;
  }
}
.switch-profilo li a:hover,
.switch-profilo li a.active {
  background-color: var(--color-primary-light-500);
  border-color: var(--color-primary-light-500);
  color: var(--color-white) !important;
}

/* Utility per forzare larghezza 50% con !important */
.w-1\/2-important {
  width: 50% !important;
}

/* Classi condivise per tutti i popup applicativi HubPartner. */
.swal2-popup.hub-swal-popup:not(.swal2-toast) {
  box-sizing: border-box;
  width: min(32rem, calc(100vw - 2rem)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - 2rem) !important;
  padding: 1rem !important;
  border-radius: 0.75rem;
  background: var(--color-dakblue-900) !important;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.swal2-popup.hub-swal-popup .hub-swal-title,
.swal2-popup.hub-swal-popup .swal2-title.hub-swal-title {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.swal2-popup.hub-swal-popup .swal2-html-container.hub-swal-html {
  box-sizing: border-box;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hub-swal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-grow: 0 !important;
}

/* Variante form: piu respiro verticale senza aumentare gli alert semplici. */
.swal2-popup.hub-swal-popup:has(.hub-swal-form):not(.swal2-toast) {
  padding: 1.4rem 1rem 1.4rem !important;
}

.swal2-popup.hub-swal-popup:has(.hub-swal-form) .hub-swal-title,
.swal2-popup.hub-swal-popup:has(.hub-swal-form) .swal2-title.hub-swal-title {
  margin-bottom: 1rem !important;
}

.hub-swal-form .hub-swal-field {
  gap: 0.5rem;
}

.hub-swal-form .hub-swal-label,
.hub-swal-form label.hub-swal-label,
.hub-swal-form label:not(.swal2-checkbox) {
  margin: 0 !important;
}

.hub-swal-form > .hub-swal-field + .hub-swal-field {
  margin-top: 0 !important;
}

.swal2-popup.hub-swal-popup:has(.hub-swal-form) .hub-swal-actions,
.swal2-popup.hub-swal-popup:has(.hub-swal-form) .swal2-actions {
  margin-top: 1.25rem !important;
  gap: 0.75rem !important;
}

.modifica-utente-actions {
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  gap: 0.5rem;
  width: min(100%, max-content);
  max-width: 100%;
  margin: 1rem auto 0;
}

.modifica-utente-actions .btn {
  width: 100%;
  max-width: 100%;
  padding-inline: 1rem;
  white-space: normal;
}

.hub-swal-field,
.swal-user-field-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(100%, 18.75rem);
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.swal2-popup.hub-swal-popup .swal-user-field-group {
  gap: 0 !important;
}

.hub-swal-field,
.hub-swal-input-wrap,
.hub-swal-html,
.swal2-popup.hub-swal-popup .swal2-html-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hub-swal-input-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 18.75rem;
  margin: 0 auto;
  padding: 0;
}

.hub-swal-input-wrap > #email_suggestions {
  top: calc(100% + 0.25rem);
  box-sizing: border-box;
  width: 100%;
  max-height: 11rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.25rem 0;
  border: 1px solid var(--color-primary-500);
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: 0 0.375rem 1rem rgba(17, 24, 39, 0.14);
  z-index: 1051;
  text-align: left;
}

.hub-swal-input-wrap > #email_suggestions > div {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.875rem;
  padding: 0.625rem 0.75rem;
  gap: 0.5rem;
  white-space: nowrap;
  text-align: left;
}

.hub-swal-input-wrap > #email_suggestions .email-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hub-swal-input-wrap > #email_suggestions .remove-suggestion {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--color-danger) !important;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-align: center;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.hub-swal-input-wrap > #email_suggestions .remove-suggestion::before,
.hub-swal-input-wrap > #email_suggestions .remove-suggestion::after {
  content: "";
  position: absolute;
  width: 0.8125rem;
  height: 0.125rem;
  border-radius: 9999px;
  background: currentColor;
}

.hub-swal-input-wrap > #email_suggestions .remove-suggestion::before {
  transform: rotate(45deg);
}

.hub-swal-input-wrap > #email_suggestions .remove-suggestion::after {
  transform: rotate(-45deg);
}

.hub-swal-input-wrap > #email_suggestions .remove-suggestion:hover,
.hub-swal-input-wrap > #email_suggestions .remove-suggestion:focus-visible {
  background: color-mix(in srgb, var(--color-danger) 8%, transparent);
  color: var(--color-danger-600) !important;
  outline: none;
}

.hub-swal-input-wrap > #email_suggestions .remove-suggestion:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-danger) 35%, transparent);
  outline-offset: 2px;
}

.hub-swal-input-wrap > #email_suggestions .remove-suggestion:active {
  transform: scale(0.92);
}

.hub-swal-label {
  display: block;
  width: 100%;
  max-width: 18.75rem;
  margin: 0 auto 1rem !important;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.swal2-popup.hub-swal-popup:not(.swal2-toast) label:not(.swal2-checkbox) {
  display: block;
  width: 100%;
  max-width: 18.75rem;
  margin: 0 auto 1rem !important;
  text-align: center;
}

.hub-swal-description {
  width: 100%;
  margin: 0 0 1rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.swal2-popup.hub-swal-popup .swal2-validation-message.hub-swal-validation {
  width: 100%;
  max-width: 18.75rem;
  margin: 1rem auto 0 !important;
}

.swal2-popup.hub-swal-popup .hub-swal-input,
.swal2-popup.hub-swal-popup input.hub-swal-input,
.swal2-popup.hub-swal-popup select.hub-swal-input,
.swal2-popup.hub-swal-popup textarea.hub-swal-input,
.swal2-popup.hub-swal-popup .swal2-input.hub-swal-input {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 18.75rem !important;
  height: 3rem !important;
  min-height: 3rem !important;
  max-height: 3rem !important;
  margin: 0 !important;
  padding: 0 0.75rem !important;
  border: 1px solid var(--color-primary-500) !important;
  border-radius: 0.375rem;
  background: #fff !important;
  color: #111827 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #111827 !important;
}

.swal2-popup.hub-swal-popup .hub-swal-input:hover,
.swal2-popup.hub-swal-popup .hub-swal-input:focus,
.swal2-popup.hub-swal-popup .hub-swal-input:active {
  background: #fff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

.swal2-popup.hub-swal-popup .hub-swal-input::placeholder {
  color: #6b7280 !important;
  opacity: 1;
}

.swal2-popup.hub-swal-popup input.hub-swal-input:-webkit-autofill,
.swal2-popup.hub-swal-popup input.swal2-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #111827 !important;
}

.swal2-popup.hub-swal-popup:not(.swal2-toast)
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.swal2-popup.hub-swal-popup:not(.swal2-toast) select,
.swal2-popup.hub-swal-popup:not(.swal2-toast) textarea {
  box-sizing: border-box;
  width: min(100%, 18.75rem) !important;
  height: 3rem !important;
  min-height: 3rem !important;
  margin: 0 auto !important;
  padding: 0 0.75rem !important;
  border-radius: 0.375rem;
  background: #fff !important;
  color: #111827 !important;
}

.hub-swal-input:focus {
  outline: none !important;
  box-shadow: 0 0 0 1px #0ea5e9 !important;
}

.hub-swal-popup .swal2-input:not(.hub-swal-input) {
  display: none !important;
}

.hub-swal-input::placeholder {
  color: #6b7280 !important;
  opacity: 1;
}

input.hub-swal-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #1f2937 !important;
}

.swal2-popup.hub-swal-popup .swal-user-input-wrap {
  width: 100% !important;
  max-width: 18.75rem !important;
}

.swal2-popup.hub-swal-popup .swal-user-input-wrap > input.hub-swal-input {
  width: 100% !important;
  max-width: 18.75rem !important;
}

.hub-swal-help {
  margin: 1rem 0 0 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.8125rem;
  line-height: 1.25;
  text-align: left;
}

.hub-swal-input-row {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.hub-swal-input-row .hub-swal-input {
  padding-right: 3rem !important;
}

.hub-swal-input-row #scan_qr_btn,
.hub-swal-input-row a[title="Scansiona QRCode"] {
  right: 0.5rem;
  width: 2rem !important;
  height: 2rem !important;
}

.hub-swal-qr-reader {
  width: 100%;
  max-height: 18rem;
  margin: 0 !important;
  border-radius: 0.75rem;
}

.swal2-popup.hub-swal-popup .hub-swal-actions,
.swal2-popup.hub-swal-popup .swal2-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem !important;
  width: 100%;
  margin: 1rem 0 0 !important;
  padding: 0 !important;
}

.swal2-popup.hub-swal-popup .hub-swal-confirm,
.swal2-popup.hub-swal-popup .hub-swal-cancel,
.swal2-popup.hub-swal-popup .hub-swal-deny,
.swal2-popup.hub-swal-popup .swal2-actions button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  min-width: 7.5rem;
  height: 2.75rem;
  margin: 0 !important;
  padding: 0 1.5rem;
  border: none !important;
  border-radius: 9999px;
  color: #fff !important;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.swal2-popup.hub-swal-popup .swal2-actions button:hover {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.swal2-popup.hub-swal-popup .swal2-actions button:focus,
.swal2-popup.hub-swal-popup .swal2-actions button:focus-visible,
.swal2-popup.hub-swal-popup .swal2-actions button:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.swal2-popup.hub-swal-popup .hub-swal-confirm,
.swal2-popup.hub-swal-popup .hub-swal-deny {
  background: var(--color-primary-light-500) !important;
}

.swal2-popup.hub-swal-popup .hub-swal-confirm:hover,
.swal2-popup.hub-swal-popup .hub-swal-confirm:focus,
.swal2-popup.hub-swal-popup .hub-swal-confirm:active,
.swal2-popup.hub-swal-popup .hub-swal-deny:hover,
.swal2-popup.hub-swal-popup .hub-swal-deny:focus,
.swal2-popup.hub-swal-popup .hub-swal-deny:active {
  background: #0086bf !important;
}

.swal2-popup.hub-swal-popup .hub-swal-confirm:focus-visible,
.swal2-popup.hub-swal-popup .hub-swal-deny:focus-visible {
  background: #0086bf !important;
}

.swal2-popup.hub-swal-popup .hub-swal-confirm-danger,
.swal2-popup.hub-swal-popup .hub-swal-confirm-danger:hover,
.swal2-popup.hub-swal-popup .hub-swal-confirm-danger:focus,
.swal2-popup.hub-swal-popup .hub-swal-confirm-danger:active,
.swal2-popup.hub-swal-popup .hub-swal-confirm-danger:focus-visible {
  background: var(--color-danger-600) !important;
}

.swal2-popup.hub-swal-popup .hub-swal-cancel,
.swal2-popup.hub-swal-popup .hub-swal-cancel:hover,
.swal2-popup.hub-swal-popup .hub-swal-cancel:focus,
.swal2-popup.hub-swal-popup .hub-swal-cancel:active {
  background: #6b7280 !important;
}

.swal2-popup.hub-swal-popup .hub-swal-cancel:hover,
.swal2-popup.hub-swal-popup .hub-swal-cancel:focus,
.swal2-popup.hub-swal-popup .hub-swal-cancel:active {
  background: #4b5563 !important;
}

.swal2-popup.hub-swal-popup .hub-swal-cancel:focus-visible {
  background: #4b5563 !important;
}

@media (max-width: 480px) {
  .swal2-popup.hub-swal-popup:not(.swal2-toast) {
    width: calc(100vw - 2rem) !important;
    padding: 1rem !important;
  }

  .swal2-popup.hub-swal-popup .hub-swal-actions,
  .swal2-popup.hub-swal-popup .swal2-actions {
    gap: 0.5rem;
  }

  .swal2-popup.hub-swal-popup .swal2-actions button {
    flex: 0 0 7.5rem;
    max-width: 100%;
  }

  .swal2-popup.hub-swal-popup:has(.hub-swal-form) .swal2-actions button {
    flex: 0 0 7.5rem;
  }
}

/* Popup conferma email: layout specifico senza alterare gli altri popup. */
.swal2-popup.registration-confirm-popup .registration-confirm-form {
  gap: 0.75rem;
}

.swal2-popup.registration-confirm-popup .registration-confirm-email {
  display: block;
  margin-top: 0.25rem;
  color: #fff;
  overflow-wrap: anywhere;
}

.swal2-popup.registration-confirm-popup .registration-confirm-code-input {
  text-align: center;
  letter-spacing: 0.2em;
}

.swal2-popup.registration-confirm-popup .registration-confirm-resend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.375rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  text-align: center;
}

.swal2-popup.registration-confirm-popup .registration-confirm-resend-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #38bdf8;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.swal2-popup.registration-confirm-popup
  .registration-confirm-resend-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.swal2-popup.registration-confirm-popup
  .registration-confirm-resend-button:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 0.2rem;
  border-radius: 0.25rem;
}

.swal2-popup.registration-confirm-popup .registration-confirm-resend-message {
  width: 100%;
  max-width: 18.75rem;
  min-height: 1.25rem;
  margin: 0 auto;
  color: #38bdf8;
  font-size: 0.875rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.swal2-popup.registration-confirm-popup
  .registration-confirm-resend-message.is-error {
  color: #fca5a5;
}

.swal2-popup.registration-confirm-popup .registration-confirm-actions {
  flex-direction: row;
}

@media (max-width: 480px) {
  .swal2-popup.registration-confirm-popup .registration-confirm-actions {
    flex-direction: column;
    width: 100%;
  }

  .swal2-popup.registration-confirm-popup .registration-confirm-actions button {
    width: min(100%, 18.75rem) !important;
    min-width: 0 !important;
  }
}

/* Panel credentials actions/dialogs: compact on desktop, full-width/fullscreen on mobile. */
.panel-local-credentials-actions {
  min-width: 0;
}

.panel-local-credentials-footer {
  min-width: 0;
}

#panel-activity-open.panel-activity-tertiary {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  box-shadow: none;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
}

#panel-activity-open.panel-activity-tertiary:hover {
  background: #f1f5f9;
  color: #334155;
}

#panel-activity-open.panel-activity-tertiary:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.panel-local-credentials-popup {
  box-sizing: border-box;
  max-width: calc(100vw - 2rem);
}

@media (max-width: 767px) {
  .panel-detail-header {
    row-gap: 0;
    column-gap: 0;
  }

  .panel-detail-title-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6.5rem;
    align-items: start;
    column-gap: 0.75rem;
    row-gap: 0;
    width: 100%;
  }

  .panel-detail-title-group > span:first-child {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    max-width: none;
    width: 100%;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .panel-detail-cloud-wrapper {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 6.5rem;
    min-width: 0;
    gap: 0.5625rem;
  }

  .panel-detail-access-action {
    width: 100%;
    max-width: 6.5rem;
    height: 76px;
    flex: 0 0 76px;
    box-sizing: border-box;
    min-height: 0;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
  }

  .panel-detail-access-action:active {
    transform: translateY(1px);
    opacity: 0.82;
  }

  .panel-detail-access-action:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
  }

  .panel-detail-access-icon {
    width: 1.625rem;
    height: 1.625rem;
    flex: 0 0 1.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .panel-detail-access-icon svg {
    display: block;
    width: 1.5625rem;
    height: 1.5625rem;
    max-width: none;
    max-height: none;
  }

  .panel-detail-access-label {
    display: block;
    max-width: 100%;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .panel-detail-connectivity {
    display: grid;
    margin-top: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
  }

  .panel-detail-connectivity > div {
    min-width: 0;
    width: 100%;
  }

  .panel-connectivity-indicator {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .panel-connectivity-indicator .icona_connessione {
    width: 1.375rem;
    height: 1.375rem;
  }
}

@media (max-width: 340px) {
  .panel-detail-title-group {
    grid-template-columns: minmax(0, 1fr) 6rem;
    column-gap: 0.5rem;
  }

  .panel-detail-cloud-wrapper {
    width: 6rem;
  }

  .panel-detail-access-action {
    max-width: 6rem;
    width: 6rem;
  }
}

@media (max-width: 767px) {
  .panel-local-credentials-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .panel-local-credentials-page .upd_installer {
    margin-bottom: 0.75rem;
  }

  .panel-local-credentials-page .upd_installer .errori,
  .panel-local-credentials-page .upd_note .errori {
    margin-top: 0.75rem !important;
  }

  .panel-local-credentials-footer {
    gap: 1rem;
    margin-top: 1.25rem !important;
  }

  .panel-local-credentials-footer > .flex:last-child {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .panel-local-credentials-footer > .flex:last-child > .btn {
    flex: 1 1 10rem;
    min-height: 2.75rem;
  }

  .panel-local-credentials-footer > .flex:last-child > #panel-activity-open.panel-activity-tertiary {
    flex: 0 0 auto;
    min-height: 2.75rem;
  }

  .panel-main-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .panel-local-credentials-footer > .panel-main-actions.flex:last-child > .btn {
    display: flex;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    line-height: 1.25rem;
  }

  .panel-local-credentials-footer > .panel-main-actions.flex:last-child > #panel-activity-open.panel-activity-tertiary {
    min-height: 2.5rem;
    padding: 0.375rem 0.625rem;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
  }

  .panel-local-credentials-separator {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .panel-local-credentials-actions > button {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .panel-local-credentials-popup.is-mobile-fullscreen,
  .panel-local-credentials-reset-popup {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    z-index: 1000 !important;
    padding: max(1rem, env(safe-area-inset-top))
      max(1rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left)) !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .panel-local-credentials-popup.is-mobile-fullscreen
    > [data-plc-panel]
    > .mt-6,
  .panel-local-credentials-reset-popup > [data-plcr-panel] > .mt-6 {
    flex-wrap: wrap;
  }

  .panel-local-credentials-popup.is-mobile-fullscreen
    > [data-plc-panel]
    > .mt-6
    > button,
  .panel-local-credentials-reset-popup > [data-plcr-panel] > .mt-6 > button {
    flex: 1 1 10rem;
    min-width: min(100%, 10rem);
    white-space: normal;
  }

  .panel-local-credentials-popup.is-mobile-fullscreen > .flex.items-start,
  .panel-local-credentials-reset-popup > .flex.items-start {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: 0.75rem;
    background: #fff;
  }

  .panel-local-credentials-popup.is-mobile-fullscreen
    > .flex.items-start
    > div:first-child,
  .panel-local-credentials-reset-popup > .flex.items-start > div:first-child {
    padding-top: 1rem;
  }

  .panel-local-credentials-popup.is-mobile-fullscreen > .flex.items-start h3,
  .panel-local-credentials-reset-popup > .flex.items-start h3 {
    margin-bottom: 0.75rem;
  }

  .panel-local-credentials-popup.is-mobile-fullscreen
    > .flex.items-start
    h3
    + p,
  .panel-local-credentials-reset-popup > .flex.items-start h3 + p {
    margin-top: 0 !important;
  }

  .panel-local-credentials-popup.is-mobile-fullscreen
    > [data-plc-panel]
    > .mt-6,
  .panel-local-credentials-reset-popup > [data-plcr-panel] > .mt-6 {
    position: sticky;
    bottom: 0;
    z-index: 1;
    padding-top: 0.75rem;
    background: #fff;
  }

  .dark .panel-local-credentials-popup.is-mobile-fullscreen > .flex.items-start,
  .dark .panel-local-credentials-reset-popup > .flex.items-start,
  .dark
    .panel-local-credentials-popup.is-mobile-fullscreen
    > [data-plc-panel]
    > .mt-6,
  .dark .panel-local-credentials-reset-popup > [data-plcr-panel] > .mt-6 {
    background: #111827;
  }
}

body.panel-local-credentials-modal-open {
  overflow: hidden;
}

body.activity-log-modal-open {
  overflow: hidden;
}


/* Gestione impianto: blocco dati compatto e installatore integrato */
.panel-details-grid {
  align-items: stretch;
}

.panel-info-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d7dde5;
  border-radius: 0.5rem;
  background: #f3f4f6;
}

.panel-info-label {
  display: block;
  margin-bottom: 0.18rem;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.05rem;
}

.panel-info-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-installer-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #f8fafc;
}

.panel-installer-card.is-locked {
  background: #f3f4f6;
}

.installer-card-copy {
  flex: 1 1 auto;
  overflow: hidden;
}

.installer-card-primary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.15rem;
}

.installer-card-primary-text {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.installer-card-email {
  display: block;
  margin-top: 0.16rem;
  overflow: visible;
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.05rem;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.installer-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 0.5rem;
  border-radius: 9999px;
}

.installer-inline-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
}

.installer-change-button,
.installer-remove-button {
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.installer-change-button {
  width: 36px;
  padding: 0;
  border: 1px solid rgba(13, 127, 242, 0.38);
  color: #0d7ff2;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.installer-change-button:hover {
  border-color: #0d7ff2;
  background: #eef7ff;
}

.installer-change-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.installer-remove-button {
  width: 36px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #dc2626;
}

.installer-remove-button:hover {
  border-color: #dc2626;
  background: #fff1f2;
}

.installer-remove-button svg {
  width: 19px;
  height: 19px;
}

.dark .panel-info-card,
.dark .panel-installer-card,
.dark .panel-installer-card.is-locked {
  border-color: #374151;
  background: #1f2937;
}

.dark .panel-info-label,
.dark .installer-card-email {
  color: #9ca3af;
}

.dark .panel-info-value,
.dark .installer-card-primary {
  color: #f9fafb;
}

.dark .installer-change-button,
.dark .installer-remove-button {
  background: #111827;
}

.hub-installer-swal-list {
  position: relative;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  margin-top: 0.4rem;
  text-align: left;
}

.hub-installer-swal-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  background: transparent;
  text-align: left;
}

.hub-installer-swal-option:last-child {
  border-bottom: 0;
}

.hub-installer-swal-option:hover,
.hub-installer-swal-option.is-active {
  background: #eff7ff;
}

.hub-installer-swal-option-main {
  min-width: 0;
}

.hub-installer-swal-option-primary {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-installer-swal-option-email {
  display: block;
  margin-top: 0.1rem;
  overflow: hidden;
  color: #6b7280;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .panel-info-card {
    min-height: 60px;
  }

  .panel-installer-card {
    align-items: flex-start;
  }

  .installer-inline-actions {
    align-self: center;
  }

}

/* Cambio installatore: select compatta con gerarchia azienda / nominativo / email. */
.swal2-popup.hub-swal-popup .installer-select-field {
  width: min(100%, 25rem);
}

.swal2-popup.hub-swal-popup .installer-select-field .hub-swal-label {
  margin-bottom: 0.5rem !important;
}

.swal2-popup.hub-swal-popup .installer-select-field > .select2-container {
  width: 100% !important;
  max-width: 25rem;
  margin: 0 auto;
  text-align: left;
}

.swal2-popup.hub-swal-popup
  .installer-select-field
  .select2-container--default
  .select2-selection--single {
  display: flex;
  align-items: center;
  height: 3.25rem;
  border: 1px solid var(--color-primary-500);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: none;
}

.swal2-popup.hub-swal-popup
  .installer-select-field
  .select2-container--default.select2-container--focus
  .select2-selection--single,
.swal2-popup.hub-swal-popup
  .installer-select-field
  .select2-container--default.select2-container--open
  .select2-selection--single {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 1px var(--color-primary-500);
}

.swal2-popup.hub-swal-popup
  .installer-select-field
  .select2-selection--single
  .select2-selection__rendered {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0.35rem 2rem 0.35rem 0.75rem;
  color: #111827;
  line-height: 1.15;
  white-space: normal;
}

.swal2-popup.hub-swal-popup
  .installer-select-field
  .select2-selection--single
  .select2-selection__placeholder {
  color: #6b7280;
  font-size: 0.875rem;
}

.swal2-popup.hub-swal-popup
  .installer-select-field
  .select2-selection--single
  .select2-selection__arrow {
  top: 50%;
  right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
}

.swal2-popup.hub-swal-popup .installer-select-selection,
.swal2-popup.hub-swal-popup .installer-select-option {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.swal2-popup.hub-swal-popup .installer-select-selection {
  width: 100%;
}

.swal2-popup.hub-swal-popup .installer-select-main {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swal2-popup.hub-swal-popup .installer-select-company {
  font-weight: 700;
}

.swal2-popup.hub-swal-popup .installer-select-name,
.swal2-popup.hub-swal-popup .installer-select-separator {
  font-weight: 400;
}

.swal2-popup.hub-swal-popup .installer-select-email {
  display: block;
  max-width: 100%;
  margin-top: 0.15rem;
  overflow: hidden;
  color: #7b8492;
  font-size: 0.75rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swal2-popup.hub-swal-popup .installer-select-current {
  display: inline-flex;
  margin-left: 0.4rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: #e8f4fb;
  color: #0879aa;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: 0.08rem;
}

.hub-installer-select-dropdown-host.select2-container--open {
  z-index: 20000 !important;
}

.hub-installer-select-dropdown.select2-dropdown {
  z-index: 20000 !important;
  overflow: hidden;
  border: 1px solid #d7dce3;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.25rem rgba(17, 24, 39, 0.16);
}

.hub-installer-select-dropdown .select2-search--dropdown {
  padding: 0.55rem 0.6rem 0.4rem;
}

.hub-installer-select-dropdown .select2-search__field {
  width: 100% !important;
  height: 2.6rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.4rem;
  outline: none;
  background: #fff;
  color: #111827;
  font-size: 0.875rem;
}

.hub-installer-select-dropdown .select2-search__field:focus {
  border-color: var(--color-primary-500) !important;
  box-shadow: 0 0 0 1px var(--color-primary-500);
}

.hub-installer-select-dropdown
  .select2-results > .select2-results__options {
  max-height: 16.5rem;
  padding: 0.2rem;
}

.hub-installer-select-dropdown
  .select2-results__option {
  min-height: 0;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.35rem;
  color: #111827;
}

.hub-installer-select-dropdown
  .select2-results__option--highlighted.select2-results__option--selectable {
  background: #eef8fd;
  color: #111827;
}

.hub-installer-select-dropdown
  .select2-results__option--selected {
  background: #e5f4fb;
}

.hub-installer-select-dropdown
  .select2-results__option--disabled {
  background: transparent;
  opacity: 0.62;
}


/* La dropdown Select2 del cambio installatore vive sul body per poter uscire
   dai limiti del popup SweetAlert senza essere tagliata. */
.hub-installer-select-dropdown .installer-select-option {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.hub-installer-select-dropdown .installer-select-main {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-installer-select-dropdown .installer-select-company {
  font-weight: 700;
}

.hub-installer-select-dropdown .installer-select-name,
.hub-installer-select-dropdown .installer-select-separator {
  font-weight: 400;
}

.hub-installer-select-dropdown .installer-select-email {
  display: block;
  max-width: 100%;
  margin-top: 0.15rem;
  overflow: hidden;
  color: #7b8492;
  font-size: 0.75rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-installer-select-dropdown .installer-select-current {
  display: inline-flex;
  margin-left: 0.4rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: #e8f4fb;
  color: #0879aa;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: 0.08rem;
}

.swal2-popup.hub-swal-popup .installer-select-field + * {
  margin-top: 0;
}

.swal2-popup.hub-swal-popup.installer-change-popup:not(.swal2-toast) {
  width: min(34rem, calc(100vw - 2rem)) !important;
  padding: 1.65rem 1.5rem 1.55rem !important;
}

.swal2-popup.hub-swal-popup.installer-change-popup .hub-swal-title {
  margin-bottom: 1.2rem !important;
}

.swal2-popup.hub-swal-popup.installer-change-popup .installer-select-field .hub-swal-label {
  margin-bottom: 0.7rem !important;
}

.swal2-popup.hub-swal-popup.installer-change-popup .hub-swal-actions,
.swal2-popup.hub-swal-popup.installer-change-popup .swal2-actions {
  gap: 0.75rem !important;
  margin-top: 1.35rem !important;
  margin-bottom: 0.1rem !important;
}

@media (max-width: 480px) {
  .swal2-popup.hub-swal-popup.installer-change-popup:not(.swal2-toast) {
    padding: 1.35rem 1rem 1.25rem !important;
  }

  .swal2-popup.hub-swal-popup.installer-change-popup .hub-swal-title {
    margin-bottom: 1rem !important;
  }

  .swal2-popup.hub-swal-popup.installer-change-popup .hub-swal-actions,
  .swal2-popup.hub-swal-popup.installer-change-popup .swal2-actions {
    margin-top: 1.1rem !important;
  }
}
