.bg-white {
    background-color: #FFF;
}
.bg-red {
    background-color: #EA0063;
}
.bg-blue {
    background-color: #1E295E !important;
}
.bg-gray {
    background-color: gray;
}
.bg-cyan {
	background-color: rgb(145, 200, 252);
}
.bc-red {
    border-color: #EA0063 !important;
}
.bc-blue {
    border-color: #1E295E !important;
}
.text-white {
    color: #FFF !important;
}
.bc-black {
    border-color: black;
}
.bc-white {
    border-color: white;
}
.text-red {
    color: #EA0063;
}
.text-blue {
    color: #1E295E;
}
.text-gray {
    color: gray;
}
.little{
    font-size: 14px !important;
	text-align: middle !important;
}
.normal{
    font-size: 18px !important;
	text-align: middle !important;
}
.med{
    font-size: 22px !important;
}
.med2{
    font-size: 28px !important;
}
.big{
    font-size: 33px !important;
}
.extra-big{
    font-size: 150px !important;
}
.extra-extra-big{
    font-size: 250px !important;
}
.navbar-total {
    margin-bottom: 0px;
    height: 200px;
}
.logo {
	font-family: 'Krona One', sans-serif !important;
}
.nav-item {
	height: 45px !important;
}
.disableded {
	pointer-events: none;
	color: gray !important;
}
.btn-custom {
	background-color: transparent;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	color: white
	/* Aggiungi altre personalizzazioni desiderate */
}
#formbutton :hover{
	background-color: #FFF; 
	color: #EA0063 !important;
}
body {
	/* font-family: 'Epilogue', sans-serif !important; */
	background-color: #FFF;
	height: 100% !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	text-decoration: none !important;
  }
p {
    font-size: 1.1em !important;
    font-weight: 300 !important;
    line-height: 1.7em !important;
    color: black;
	}
a {
	color: black ;
	text-decoration: none ;
}
a:hover {
	color: #EA0063
}
.tr-border tr {
	border-style: solid;
    border-width: thin;
}

#alert:hover {
	background-color: #1E295E !important;
	color:  #FFF !important;
}
.nav-tabs {
	border-bottom: 2px solid #1E295E !important; /* blu INNODIA */
}
.nav-tabs .nav-link {
	border: 1px solid white !important;
	border-bottom: none !important;
}
input[type="file"].form-control {
    display: block;
	height: auto;
    padding: 6px;
}
.description-collapsed {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	white-space: normal;
	line-height: 1.5em;
	max-height: calc(1.5em * 3); /* 3 righe */
  }
#extend {
	background: url('/static/sfondo.jpg') no-repeat center center fixed;
	background-size: cover;
	min-height: 100vh;
	height: auto !important;
}
#extend::after {
	content: "";
	display: table;
	clear: both;
  }
#extend.no-background {
	background: none !important;
  }
.pulsante:hover {
	background-color: #1E295E !important;
	color:  #FFF !important;
}
.pulsante2:hover {
	background-color: #EA0063 !important;
	color:  #FFF !important;
}
.pulsante3:hover {
	background-color: #EA0063 !important;
	color: #1E295E !important;
}
.pulsante4:hover {
	background-color: white !important;
	color: #1E295E !important;
}
.pulsante5 i {
    color: #EA0063;
}
.pulsante5:hover {
	background-color: gray !important;
	color: white !important;
}
.pulsante5:hover i{
	color: white !important;
}
.spinner-border {
    width: 1rem;
    height: 1rem;
}

#search-summary-bar, #private-search-summary-bar {
    font-style: italic;
}
/* .form-control:focus {
	border-color: transparent;
	box-shadow: none
  } */
.alert {
	text-decoration: none !important;
}
.alert:hover {
	color: black !important;
}
.mytable {
	width: 100%;
	border-width: thin !important;
	border-color: black !important;
}
#tabella th {
	font-size:13px !important;
	color: #FFF !important;
	background-color:#1E295E !important;
	padding-top:15px !important;
	padding-bottom:15px !important;
}
#tabella a {
	font-size:13px ;
	color:black ;
}
.overlay {
    position: fixed;
	width: 0px;
    top: 0;
    bottom: 0;          /* ← questa è la chiave */
    left: 0;
    overflow: hidden;
    z-index: 1010;
    transition: 0.5s;
}
.overlay ul{
	list-style-type: none;
	margin: 0px !important;
	padding: 0px
}
.overlay li{
	margin: 0px !important;
	padding-left: 20px
}
.pd-double li {
	margin: 0px !important;
	padding-left: 45px
}
.overlay li::marker{
	color: black;
}
.overlay-content {
	position: relative;
	top: 5%;
	width: 100%;
	text-align: left;
	margin-top: 15px;
}
.overlay-content li:hover{
	background-color: #FFF; 
	color: #EA0063 !important;
}
.overlay-content a:hover{
	background-color: #FFF; 
	color: #EA0063 !important;
}
.overlay-content li:hover button{
	background-color: #FFF; 
	color: #EA0063 !important;
}
.overlay-content li:hover a{
	background-color: #FFF; 
	color: #EA0063 !important;
}
.overlay-content .menu-voice {
	width: 100%;
  }
  .overlay-content .menu-voice a,
.overlay-content .menu-voice button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: white;
}
.overlay-content .menu-voice:hover a,
.overlay-content .menu-voice:hover button {
	background-color: #FFF;
	color: #EA0063 !important;
}
.overlay a {
	padding: 8px;
	text-decoration: none;
	font-size: 15px;
	color: #FFF;
	display: block;
	transition: 0.3s;
}
.overlay a:hover {
	color: #EA0063 !important;
}
.overlay .closebtn {
	cursor: pointer;
}
.overlay .home {
	cursor: pointer;
}
.overlay .closebtn:hover {
	color: #f54d8c;
}
.overlay .home:hover {
	color: #f54d8c;
}
.centerd {
	text-align: center;
} 
.fixed {
	position: fixed;
	top: 0;
	z-index: 999
}
.linea-spessa {
	border-style:solid !important; 
	border-bottom-width: 4px !important;
	opacity: 1
}
.linea-media {
	border: 2px solid #1E295E;
	opacity: 1
}
.linea-normale {
	border: 1px thin white;
	opacity: 1
}
.linked {
	color: black
}
.page-link {
	border-color: black;
}
.page-link:hover {
	background-color: #1E295E;
	color:#FFF !important; 
}
.page-item.active .page-link {
	background-color:#EA0063; 
	border-color: black; 
	color: #FFF !important
}
.page-item.active .page-link:hover {
	color: black !important; 
}
#tabella td a {
	font-size:16px;
	color:black;
	font-weight: 500;
}
#tabella th a {
	color: #FFF;
}
.drop {
	border-style: dashed;
	border-color:  #178b48;
	border-width: 5px
}
.drop2 {
	border-style: solid;
	border-color:  #178b48;
	border-width: 5px
}

.bs-placeholder {
	font-size: 14px;
	background:#178b48; 
	border: none;
	border-radius: 5;
	width: 168px;
}
.filter-option-inner-inner:hover   {
	color: lightgray
}
.filter-option-inner-inner   {
		color:white;
width: 280px;
}
.bootstrap-select>.dropdown-toggle.bs-placeholder, .bootstrap-select>.dropdown-toggle.bs-placeholder:active, .bootstrap-select>.dropdown-toggle.bs-placeholder:focus, .bootstrap-select>.dropdown-toggle.bs-placeholder:hover {
	color: white;
} 
.btn.btn-primary.btn-md.ml-5 {
	padding: 3px;
	padding-left: 12px ;
	padding-right: 12px;
	margin-bottom: 4px;
}
.form-check {
	margin-bottom:10px;
}
.btn.dropdown-toggle.btn-light.bs-placeholder {
	background:#1E295E !important; 
	border-color:#1E295E !important; 
	color:white;
	height: 38px;
}  
.btn.dropdown-toggle.btn-light {
	background-color: #144e73 !important;
	border-color:#144e73 !important;
}

.btn.dropdown-toggle.btn-light:hover {
	color: white!important
}

.bs-actionsbox .btn-group button {
	width: 50% !important;
}
.dropdown-item {
	width: 295px
}
.dropdown-item {
	width: 250px !important;
}
.my_check {
	width: 1.25em;
	height: 1.25em;
	margin-right: .75em;
}
.my_check:checked {
	background-color: #1E295E !important;
	border-color: #1E295E !important;
}
.my_check:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
#reader {
	max-width: 40% !important;
}
#drops:hover {
	border-color: black !important;
}
#reader__scan_region {
	max-height: 100% !important;
	max-width: 100% !important;
}
#div_id_scansiona {
	display:none !important
}
#id_profile_picture {
	display:none !important
}
#view {
	width:5% !important;
	text-align: center !important;
}
#full_name {
	width:35% !important
}
#category, #date {
	width:20% !important
}
#chk, #module {
	width:10% !important;
	text-align: center !important;
}
.form-check-input:checked {
    background-color: #1E295E;
    border-color: #1E295E;
}
.form-check-input {
    width: 1.3em;
    height: 1.3em;
}
.testo-interlinea {
    line-height: 1.75 !important; /* Imposta l'interlinea a 1.5 volte l'altezza del carattere */
  }
::placeholder {
	font-size: 13px; /* Imposta la dimensione del carattere del placeholder */
	color: #1E295E !important;
  }
  #chat-log, #private-chat-log {
	position: relative;
  }
  .chat-bubble {
	display: inline-block;
	padding: 6px;
	border-radius: 10px;
	word-wrap: break-word;
	background-color: inherit;
	max-width: fit-content;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  .chat-image {
	width: 100%;
	max-width: 280px; /* 👈 limite fisso, puoi cambiarlo */
	height: auto;
	border-radius: 6px;
	cursor: pointer;
	display: block;
  }
.chat-message.align-items-end .chat-bubble {
	background-color: #d1ecf1; /* Azzurro chiaro */
  }
.chat-message.align-items-start .chat-bubble {
	background-color: #fff3cd; /* Giallo chiaro */
  }
  .highlight-reply {
    animation: flashHighlight 1.5s ease-in-out;
    background-color: #ffffcc !important;
}
.dropdown-menu .dropdown-item {
    cursor: pointer;
}
.list-group-item.active {
	background-color:#EA0063; 
	border-color: gray; 
	color: #FFF !important
}
@keyframes flashHighlight {
    0% { background-color: #ffffcc; }
    100% { background-color: transparent; }
}
a.mention {
    color: #1E295E !important;
    text-decoration: none;
}
#mention-suggestions, #private-mention-suggestions {
    position: absolute;
    z-index: 1050;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 180px; /* 💬 massimo 6 righe */
    overflow-y: auto;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: top 0.15s ease, opacity 0.15s ease;
}
.modal-header .btn-close {
	filter: brightness(0) invert(1);
	opacity: 1
}
#drop-indicator i, #private-drop-indicator i {
	animation: pulseDrop 1s infinite;
}
.chat-bubble {
    max-width: 85%;
    word-wrap: break-word; /* utile per evitare overflow con link lunghi */
}
@keyframes pulseDrop {
	0% { transform: scale(1); opacity: 0.7; }
	50% { transform: scale(1.15); opacity: 1; }
	100% { transform: scale(1); opacity: 0.7; }
}
.emoji-picker {
	position: absolute;
	bottom: 100%;
	right: 0;
	width: 100%;
	max-width: 360px;     /* ✅ Limita su desktop */
	max-height: 220px;
	overflow-y: auto;
	z-index: 1050;
	padding: 10px;
	background-color: #fff;
	border: 1px solid #dee2e6;
	box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  }  
  .emoji-picker span {
	font-size: 22px;
	padding: 6px;
	margin: 2px;
	cursor: pointer;
	border-radius: 4px;
  }
  .emoji-picker {
	scrollbar-width: thin;
	scrollbar-color: #e0e0e0 transparent;
  }
  .chat-message p.display-4 {
    line-height: 1.2;
	font-size: 3rem; /* optional override */
}
.display-4 {
	font-size: 2.5rem;
	font-weight: 300;
	line-height: 1.2;
  }
  
  /* Chrome/Webkit */
  .emoji-picker::-webkit-scrollbar {
	width: 6px;
  }
  .emoji-picker::-webkit-scrollbar-thumb {
	background-color: #ccc;
	border-radius: 4px;
  }
  .emoji-picker::-webkit-scrollbar-track {
	background: transparent;
  }
  .reaction-flyout {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.4rem 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 260px;
}
.reaction-btn {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.reaction-btn:hover {
    transform: scale(1.3);
}
.react-btn {
	color: #1E275C;
	transition: color 0.3s ease;
  }
  
  .react-btn:hover {
	color: #E6007E;
  }
  
  .react-btn svg {
	transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  .react-btn:hover svg {
	transform: scale(1.15);
	filter: drop-shadow(0 0 5px #E6007E);
	animation: bounceIn 0.3s ease-out;
  }
  
  @keyframes bounceIn {
	0%   { transform: scale(0.95); }
	60%  { transform: scale(1.2); }
	100% { transform: scale(1.15); }
  }
  .bi-reply-fill:hover {
	color: #E6007E;
  }
  .chat-message {
	position: relative;
	margin-bottom: 2.5rem;
	overflow: visible;
  }
  
  .chat-bubble {
	position: relative;
	border-radius: 12px;
  }
  
  .reaction-wrap {
	position: absolute;
	bottom: -10px;
	transform: translateY(50%);
	display: flex;
	gap: 6px;
	z-index: 10;
  }
  
  .align-start .reaction-wrap {
	left: 12px;
  }
  
  .align-end .reaction-wrap {
	right: 12px;
  }
  
  .reaction-chip {
	font-size: .95rem;
	padding: 2px 8px;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 999px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	pointer-events: auto;
	transition: transform 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
  }
  
  .reaction-chip:hover {
	transform: scale(1.1);
	background-color: #f7f7f7;
  }
  .reaction-detail-popover {
	position: absolute;
	background: #fff;
	padding: 12px 16px;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 9999;
	min-width: 180px;
	max-width: 240px;
	max-height: 200px;
	overflow-y: auto;
  }
  
  .reaction-detail-popover .emoji-large {
	font-size: 1.2rem;
	text-align: center;
  }
  .reaction-detail-popover ul {
	padding-left: 0;
  }
  .reaction-detail-popover li {
	padding: 2px 0;
	display: flex;
	align-items: center;
  }
  .reaction-user-list li {
	font-size: 0.95rem;
	margin-bottom: 4px;
  }
  input.form-control::placeholder {
    font-size: 1.05rem;
}

input.form-control {
    height: 48px;
    font-size: 1.05rem;
}
#searchSpinner, #searchBtn, #btnNext, #clearSearchBtn, #attachment, #emoji-toggle,
#private-searchSpinner, #private-searchBtn, #private-btnNext, #private-clearSearchBtn, #private-attachment, #private-emoji-toggle {
	height: 48px;
}
#new-message-indicator, #private-new-message-indicator {
	position: fixed; /* Default sempre visibile */
	top: 10px;
	right: 10px;
	opacity: 0;
	transform: translateY(-20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 1050;
  }
  
  #new-message-indicator.visible, #private-new-message-indicator.visible {
	opacity: 1;
	transform: translateY(0);
  }
  
  #new-message-indicator.absolute, #private-new-message-indicator.absolute {
	position: absolute !important;
  }
 #new-message-indicator.shift-left, #private-new-message-indicator.shift-left {
    right: 130px; /* o 70px, dipende dalla larghezza del badge reazioni */
}
#reaction-indicator, #private-reaction-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 14px;
    cursor: pointer;
    z-index: 1050;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#reaction-indicator.visible, #private-reaction-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}
#reaction-indicator.absolute, #private-reaction-indicator.absolute {
    position: absolute !important;
}
.selected-reaction {
    border: 2px solid #EA0063; 
    border-radius: 50%;
    padding: 1px;
    transform: scale(1.3);
    animation: bounceIn 0.3s ease;
    transition: transform 0.2s ease;
}
/* Bounce elegante */
@keyframes bounceIn {
    0% {
        transform: scale(0.8);
    }
    60% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1.2);
    }
}
#toast-container, #private-toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toast-notification {
    opacity: 0;
    transition: opacity 0.6s ease-in;
    position: relative;
    max-width: 320px;
}
.toast-notification.show {
    opacity: 1;
}
.toast.fade-out {
    opacity: 0 !important;
    transition: opacity 1.2s ease-out !important;
}
  .tab-pane {
	transition: opacity 0.3s ease;
  }
  .tab-pane:not(.show) {
	opacity: 0;
  }
  .react-btn svg, 
.react-btn svg * {
  pointer-events: none;
}
#reply-spinner, #private-reply-spinner {
    position: fixed; /* posizione fissa rispetto alla finestra */
    z-index: 1055; /* sopra tutto */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.capo {
	max-width: 100%;
	word-wrap: break-word !important; /* Per IE */
	overflow-wrap: anywhere !important; /* Per browser moderni */
	white-space: normal !important; /* Impedisce al testo di andare fuori dal contenitore */
	word-break: break-word !important; /* per Safari che non supporta overflow-wrap
	/* word-break: break-all; /* Forza la rottura delle parole lunghe nei link */
}
.otp-input {
	width: 50px;
	height: 50px;
	font-size: 24px;
	border-radius: 10px;
	border: 1px solid #ccc;
	text-align: center;
	transition: border-color 0.2s ease;
	outline: none;
  }
  .otp-input.filled {
	border: 3px solid #EA0063;
  }
  .otp-input:focus {
	border: 3px solid #1E295E;
  }
  #otp-container {
	max-width: 400px;
	margin: 30px auto;
  }
.favorite-indicator {
    font-size: 1.2rem;
    margin-right: 4px;
}
.custom-modal-position {
    position: fixed;
    bottom: 20px;
    left: 20px;
    margin: 0;
    width: 310px; /* o quanto vuoi */
    z-index: 1060; /* assicurati sia sopra la sidebar */
}

/* ---------------------------------------------------
CARICAMENTO
----------------------------------------------------- */
.no-vis {
	opacity: 0;
	pointer-events: none;
}
.opacity {
	opacity:0.3;
}

/* MEDIA QUERIS */
@media (min-width: 768px) {
	#one2one-contact-list {
		max-height: none !important;
	}
}
        
