.form-control.is-invalid {
	border-right: 0.0625rem solid #FF2E2E !important;
}

.form-control.is-valid {
	border-right: 0.0625rem solid #2BC155 !important;
}

#data-save-alert{
	display:none;	 
	margin:auto !important;
	text-align:center;
	color:#ec6708;
}

.was-validated .form-control.is-invalid{
	border-color: #FF2E2E !important;
	border-right: 0.0625rem solid #FF2E2E !important;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23FF2E2E'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23FF2E2E' stroke='none'/%3e%3c/svg%3e") !important;
}

.modal-header h2{
	font-size:1.2rem;
}

.modal-backdrop {
  display: none;
}

.modal {
  background: rgba(0, 0, 0, 0.5);
}

#menu{
	background-color:var(--sidebar-bg);	
	position:relative;
	z-index:2;
}

.copyright{
	z-index:1;	
}

#box-images-upload, #box-images-upload-altri{
	
}

#box-images-upload-cruscotto, #box-images-upload-interni{
	
}

.image-upload{
	position:relative;
	border:0.0625rem solid #e3e3e3;
	border-radius:0.625rem;
	padding:12px;
	padding-bottom: 16px;
	height:182px;
	min-height:182px;
	height:auto !important;
	float:left;
	margin-right:9px;
	width:170px;
	/*height:270px !important; => booooo */
}

.image-upload .item-upload{
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	justify-content: center;
}

.doc-upload{
	position:relative;
	border:0.0625rem solid #e3e3e3;
	border-radius:0.625rem;
	padding:12px;
	/*padding-left:50px;*/
	float:left;
	margin-right:10px;
	width:fit-content;
	height:99px;
	min-height:99px;
	height:auto !important;
}

.upload-doc:not(:has(> .selected-doc)) {
    cursor:pointer;
}

.doc-upload:last-child{
	margin-right:0px;
}

.doc-upload-aggiuntivo-new{
	cursor:pointer;
}

/* Modifica pratica: padding card ridotti (template: body 1.875rem, header 1.5rem 1.875rem 1.25rem) */
.form_practices .card-body{
	padding:1.25rem;
}

.form_practices .card-header{
	padding:1rem 1.25rem 0.75rem;
}

@media only screen and (max-width: 575px){
	.form_practices .card-body{
		padding:1rem;
	}
}

.image-upload:last-child{
	margin-right:0px;
}

.image-upload input:not(.checkbox-select),
.doc-upload input:not(.checkbox-select){
	visibility: hidden;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0px;
	top: 0px;
	z-index:999;
}

.image-upload img{
    cursor: pointer;
	position:relative;
	z-index:1;
	width:100% !important;
	margin:auto;
	
	object-fit: contain;
	height: 60px;
}

.doc-upload img{
    cursor: pointer;
	position:relative;
	z-index:1;
	width:30px !important;
	margin:auto;
}

.image-upload label{
	justify-content: center;
	align-items: center;
	display:grid;
}

.doc-upload label:not(.label-doc-checkbox){
	float:left;
	margin-right:10px;
    /*position: absolute;
	top: 15px;
	left: 15px;
	width: calc(100% - 30px);*/
}

.doc-upload label.label-docs-selected{
	width: auto !important;
}
.image-upload p{
	font-size:12px;
	margin-bottom:0px;
	line-height:15px;
	text-align:center
}

.doc-upload p{
    font-size:12px;
	margin-bottom:0px;
	line-height:20px;
	text-align:center;
	width:fit-content;
	display:inline-block;
}

.doc-upload .selected-doc p{
	width:fit-content !important;
	display:inline-block !important;
}

.doc-upload .selected-doc p.mt-2{
	display:block !important;
	margin-left:auto !important;
	margin-right:auto !important;
}

.thumb-uploader{
	width:auto !important;	
	align-items: center;
	display:grid;
}


.select2-container.is-invalid .selection .select2-selection{
	border: 0.0625rem solid #FF2E2E !important;
	background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23FF2E2E'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23FF2E2E' stroke='none'/%3e%3c/svg%3e") !important;
	background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
	background-repeat:no-repeat !important;
}
	
#my-spinner{
	background-color:rgba(0,0,0,0.5);
	height:100%;
	width:100%;
	position:fixed;
	top:0px;
	left:0px;	
	z-index:999999999;
	display:none;
}

#box-spinner{
	width:100%;
	height:500px;
	margin-top:10%;
}

#spinner-text{
	color:#000;
	margin-top:10px;
}

.la-check{/*check legenda*/
	font-weight:bold;
	color:#7BD160;
}

.box-loading{
	width:500px;
	max-width:90%;
	height:auto;
	background-color:#fff;	
	padding:40px
}

.box-loading .spinner-border{
	 height:100px;
	 width:100px;	
	 margin-bottom:20px;
	 color:var(--secondary) !important;
}

.email-left-box{
	/*width:20rem;*/
	width:100%;
}

.email-right-box {
  /*padding-left: 0rem;*/
  padding-left: 0rem;
  padding-right: 0rem;
}

.compose-content{
	height:600px;
	max-height:600px;
	overflow-y:auto !important;
	margin-bottom:20px;
}

.mail-list a{
	font-size:13px;	
}

.mail-list .list-group-item i{
	color:var(--primary) !important;
}

.mail-list .list-group-item.bold-text{
	font-weight:bold;
}

.mail-list .list-group-item.bold-text i{
	color:var(--primary) !important;
}

.mail-list .list-group-item.normal-text{
	font-weight:normal;
}

.mail-list .list-group-item:hover{
	background-color:#f2f2f2;	
}

.mail-list .list-group-item.m-active{
	background-color:#f2f2f2;	
}

.compose-content .mei{
	float:right;
	width:60%;
	margin-right:20px;
	background-color:#f2f2f2;
	padding:10px;
	border-radius:10px;
	position:relative;
	margin-bottom:30px;
}

.compose-content .mei::after{
    content: '';
    position: absolute;
    right: -10px;
    top: 8px;
    width: 0;
    height: 0;
	border-left: 10px solid #f2f2f2;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
    clear: both;
}



.compose-content .toi{
	float:left;
	width:60%;
	margin-left: 20px;
	background-color:#f2f2f2;
	padding:10px;
	border-radius:10px;
	position:relative;
	margin-bottom:30px;
}

.compose-content .toi::after{
    content: '';
    position: absolute;
    left: -10px;
    top: 8px;
    width: 0;
    height: 0;
	border-right: 10px solid #f2f2f2;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
    clear: both;
}


.compose-content .mei .cht_date{
	position:absolute;	
	top:-20px;
	right:0px;
	font-size:12px;
}

.compose-content .toi .cht_date{
	position:absolute;	
	top:-20px;
	left:0px;
	font-size:12px;
}

.compose-form{
	display:none;	
}

.buttons_communications a{
	color:var(--primary) !important;
	background:#fff;
	border:1.5px solid var(--primary) !important;
		
}
.buttons_communications a{
	border:1.5px solid var(--primary-hover) !important;
		
}
.buttons_communications a.active{
	color:#fff !important;
	background:var(--primary);
	border:1.5px solid var(--primary)!important;
		
}


/*#btnnuovacomunicazione a,
#btnnuovotodo a{
	height: 30px;
	line-height: 30px;
	padding-top: 0px;
	padding-bottom: 0px;
	font-size: 13px;	
}*/

.mail-list{
	height:600px;
	max-height:600px;
	overflow-y:auto;
	padding-right:5px;
}

.select2-container{
	/*z-index:99;
	z-index:1*/
}

.modal-open .select2-container{
	z-index:99999999;
	/*z-index:1*/
}


.icon_right{
	font-size: 25px;
    margin-right: 20px;
    color: var(--primary);
    align-self: center;
}
.title_comm{
	padding-left:15px;
	border-left: 3px solid var(--secondary);
	color:#3d4465 !important;
	margin-bottom:8px !important;
}

.messages-chat{
	position: absolute;
    top: 0px;
    left: 0px;
    width: calc(100% - 3.75rem);
    margin: 1.875rem;
    z-index: 1;
    background-color: #fff;
    border-bottom: 1px solid #f2f2f2;
}

.chat-compose-content{
	padding-top: 110px;
}

#kt_modal_new_todo_header .btn, #kt_modal_new_chat_header .btn{
	padding-right:0px;	
}

.modal{
	z-index:99999999;	
}

#msgbtn i,
#todobtn i,
#memobtn i{
	position:relative	
}

#badge-notifiche-com{
	position: absolute;
	top: 10px;
	left: 60px;
	width: 15px;
	height: 15px;
	line-height: 15px;
	padding: 0px;
	font-size: 8px;
}

#badge-notifiche-msg-chat,
#badge-notifiche-msg-memo,
#badge-notifiche-msg-todo{
	position: absolute;
	top: -9px;
	right: -10px;
	width: 15px;
	height: 15px;
	line-height: 15px;
	padding: 0px;
	font-size: 7px;
}

.timeline li{
	cursor:pointer;
}

.card_bottom {
	z-index:99 !important 
}

[data-sidebar-style="overlay"] #badge-notifiche-com {
  left:25px
}

.tipo_sinistro .btn-group-sm > .btn{
	padding:0.625rem 0.938rem !important;
	--bs-btn-border-width:0px !important
}

.header{
	z-index:99;
}

.nav-header{
	z-index:999 !important;
}

.buttons_communications .col-md-4{
		width:33% !important;
		float:left !important	
	}
	
.swal2-container{
	 z-index:999999999
}


.deznav{
	z-index:99;
}


.btn-share{
	margin-top:29px	
}

.icon_info{
	font-size: 16px;
    color: #f6b384;
	cursor:pointer;	
}
.table_users .page-list{
	font-size:14px;
	color:#7e7e7e;	
}
.table_users .page-list .btn-group{
	padding-right:8px;	
}
.table_users .page-list .btn-group button{
	font-size:14px;
	padding:7px 9px;	
}
.picker--opened .picker__frame{
	top:50% !important;
	transform:translateY(-50%) !important;	
}


#user-menu-left{
	display:none;	
}

.header-profile{
	display:flex;	
}


.modal div[data-bs-dismiss='modal']{
	padding-right: 0px;
}
.light.btn-tertiary{
	background-color: #ede4ff;
    border-color: #e1d1ff;
    color: #8655e1;
}
#tableComm .light.btn-primary:hover {
	color:#fff !important;
	background-color:var(--primary);
	border-color:var(--primary);
}
#tableComm .light.btn-tertiary:hover {
	color:#fff !important;
	background-color:#8655e1;
	border-color:#8655e1;
}
.communication-content .right-sidebar-sticky{
	position:sticky;
	top:120px;	
}
.communication-content .ck.ck-editor .ck-content{
	border-width:1px;
}
.communication-content .ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable, .ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{
	border-radius:0.625rem;	
}
.communication-content .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){
	border-color:#e3e3e3;
}
.communication-content .form-check-label{
	margin-top: 0.16em;	
}
.communication-content .publish-content ul:hover{
	background-color:transparent;	
}
.communication-content .practice_data li:first-child{
	min-width:24px;	
}
.bootstrap-tagsinput {
	margin: 0;
	width: 100%;
	padding:0;
	font-size: 1rem;
	line-height: 1.25;
	transition: border-color 0.15s ease-in-out;
}
.bootstrap-tagsinput input{
	background: #fff;
	border: 0.0625rem solid #e3e3e3;
	padding: 0.6875rem 1.25rem;
	color: #B1B1B1;
	height: 2.875rem;
	border-radius: 0.625rem;	
	width:100%;
}
.label-info {
	display: inline-block;
	background-color: #01448a;
	padding: 8px 10px;
	border-radius: 8px;
	margin-top: 5px;
	font-size:14px;
}
.bootstrap-tagsinput .tag [data-role="remove"]:after {
	content: '\00d7';
	margin-left: 5px;
	font-size: 16px;
	position: relative;
	top: 2px;
	cursor:pointer;
}


.ico-canale{
	background-color:#F5F5F5;
	border-radius:50%;	
	margin:auto !important;
	width:157px;
	height:127px;
	padding-top:22px;
    box-sizing: border-box;
}

.ico-canale i{
	font-size:50px;	
}



.ico-canale:hover,
.ico-canale.active{
	cursor:pointer;
	border:2px solid #01448a;	
}

.ico-canale:hover i,
.ico-canale:hover span,
.ico-canale.active i,
.ico-canale.active span{
	color:#01448a;	
}
.details_communication_content .cm-content-body .oi-icon{
	width: 100px;
    height: 100px;
	border-radius: 100px;
	line-height: 100px;
}
.esito_comunicazioni{
	flex-direction: column;	
}
.esito_comunicazioni .row .col-xl-6:first-child{
	border-right:1px solid #b3b3b3;
}

.ck-editor .ck-content  a{
	text-decoration: underline !important;
}
.file_allegato{
	font-size:60px;
	padding-bottom:5px;	
}
.more_esiti .esito_ko{
	height: 25px;
    width: 45px;
    font-weight: 600;
    color: #ff2e2e;
    background: #ffc7c7;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
	cursor:pointer;
	font-size:15px;
}
.more_esiti .esito_ok{
	height: 25px;
    width: 45px;
    font-weight: 600;
    color: #2BC155;
    background: #e3f9e9;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
	cursor:pointer;
	font-size:15px;
}
textarea:disabled{
	background-color:#f1f1f1 !important;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
.practice_title_dett{
	display:flex;
	align-items:center;	
}
.badge-yellow{
	background-color: #fffea68f;
    color: #a7a65c;
}
.fancybox__caption{
	font-size: 22px;
    color: white !important;
    padding-top: 30px !important;
    font-weight: 600;	
}
#morris_donught text{
	font-size:14px !important;	
}
.legenda{
	/*display: flex;*/
    align-items: center;
}
/*
.legenda:before{
	content:'';
	width:10px;
	height:10px;
	margin-right:5px;	
}
*/
.body_fatturato .legenda:first-child:before{
	background:#678fb9;
}
.body_fatturato .legenda:nth-child(2):before{
	background:#94b0ce;
}
.body_fatturato .legenda:last-child:before{
	background:#ffa462;
}
.body_margini .legenda:first-child:before{
	background:#ffa462;
}
.body_margini .legenda:last-child:before{
	background:#678fb9;
}
.title_header span{
	font-weight:600;	
}
.ct-chart .ct-series.ct-series-a .ct-slice-donut{
	stroke:#ffa462;
}
.ct-chart .ct-series.ct-series-b .ct-slice-donut{
	stroke:	#678fb9;
}
.ct-chart .ct-series.ct-series-c .ct-slice-donut{
	stroke:	#94b0ce;
}
.body_sinistri .legenda:first-child:before{
	background:var(--primary);
}
.body_sinistri .legenda:nth-child(2):before{
	background:var(--primary-hover);
}
.body_sinistri .legenda:nth-child(3):before{
	background:rgb(43, 193, 85);
}
.body_sinistri .legenda:last-child:before{
	background:var(--secondary);
}
.body_gestite .legenda:first-child:before{
	background:var(--secondary);	
}
.body_gestite .legenda:last-child:before{
	background:#f29552;	
}
.ct-chart .ct-series.ct-series-a .ct-line, .ct-chart .ct-series.ct-series-a .ct-point {
   stroke: var(--secondary) !important;
}
.ct-chart .ct-series.ct-series-b .ct-line, .ct-chart .ct-series.ct-series-b .ct-point {
   stroke: var(--primary) !important;
}
.col_periodo .bootstrap-select.form-control:not([class*=col-]){
	width:200px !important;	
}




#danni_box_left{
	float:left; 
	height:165px
}

#danni_box_left input,
#danni_box_right input{
	margin-top:100px; 
	float:left;
}

#danni_box_right{
	float:left; 
	height:165px;
}


#danni_box_center{
	position:relative; 
	width:400px; 
	float:left;
}


#danni_box_center_top{
	float:left; 
	width:100%
}

#danni_box_center_bottom{
	float:left; 
	width:100%
}

#danni_box_center_tetto{
	position:absolute; 
	width:100%; 
	top:100px;	
}


#danni_box_center_top input,
#danni_box_center_bottom input,
#danni_box_center_tetto input,
#danni_box_right input,
#danni_box_left input{
	float:left;
	width:20px;
	height:20px;	
}

#danni_box_center_top input:nth-child(1),
#danni_box_center_bottom input:nth-child(1),
#danni_box_center_tetto input:nth-child(1){
	margin-left:14%;
}
#danni_box_center_top input:nth-child(2),
#danni_box_center_bottom input:nth-child(2){
	margin-left:22%;
}
#danni_box_center_top input:nth-child(3),
#danni_box_center_bottom input:nth-child(3){
	margin-left:13%;
}
#danni_box_center_top input:nth-child(4),
#danni_box_center_bottom input:nth-child(4){
	margin-left:11%;
}


#danni_box_center_tetto input:nth-child(2){
	margin-left:38%;
}

#danni_box_center_tetto input:nth-child(3){
	margin-left:19%;
}
#box-ricambi-upload .image-upload, .box-upload-files .image-upload{
	min-height:auto;
	width:100%;	
}
#box-ricambi-upload .image-upload .item-upload, .box-upload-files .image-upload .item-upload{
	flex-direction: row;	
}

#box-ricambi-upload .row .image-upload, .box-upload-files .image-upload{
	padding-bottom:20px;
}
#box-ricambi-upload .row .item-upload, .box-upload-files .item-upload{
	justify-content:start;
}
#box-ricambi-upload .row .item-upload i, .box-upload-files .item-upload i{
	font-size:27px;	
	margin-right:20px;
	color:var(--rgba-primary-8);
}
#box-ricambi-upload .row .item-upload p, .box-upload-files .item-upload p{
	font-size:16px;
	color:#3d4465;
	font-weight:600;	
}
#box-ricambi-upload .document_ricambi .nome_doc, .box-upload-files .document_descrizione .nome_doc{
	font-size:16px;
	font-weight:600;
	color:#3d4465;	
}
#box-ricambi-upload .document_ricambi .data_doc, .box-upload-files .document_descrizione .data_doc{
	font-size:14px;
}
#box-ricambi-upload .image-upload .container_ricambi, .box-upload-files .image-upload .container_documento{
	display: flex;
    align-items: center;	
}
#box-ricambi-upload .image-upload .container_ricambi i, .box-upload-files .image-upload .container_documento i{
	font-size: 32px;
    margin-right: 25px;
    color: var(--rgba-primary-8);
    padding-left: 10px;	
}
.photo_ricambi:hover, .photo_pre:hover, .photo_costi:hover{
	cursor:pointer;	
}
.document_ricambi, .document_descrizione{
	display:flex;
	flex-direction:column;	
}
.btn_action{
    display: flex;
    padding: 15px;
    width: fit-content;
    border-radius: 0.625rem;
}
.btn_action_view{
	border: 0.0625rem solid var(--rgba-primary-2);
}
.btn_action_download{
	border: 0.0625rem solid rgba(236, 103, 8, 0.2);
	padding: 15px 16.4px;
}
.btn_action_delete{ 
	border: 0.0625rem solid rgba(255, 46, 46, 0.2);
	padding: 15px 17.7px;
}
.view_action:hover .btn_action_view{
	border: 0.0625rem solid var(--rgba-primary-8);
    background: var(--rgba-primary-8);
}
.download_action:hover .btn_action_download{
	border: 0.0625rem solid rgba(236, 103, 8, 0.8);
    background: rgba(236, 103, 8, 0.8);
}
.delete_action:hover .btn_action_delete{
	border: 0.0625rem solid rgba(255, 46, 46, 0.8);
    background: rgba(255, 46, 46, 0.8);
}
.btn_action i{
	font-size:22px;
}
.btn_action_view i{
	color:var(--rgba-primary-8);	
}
.btn_action_download i{
	color:rgba(236, 103, 8, 0.8);	
}
.btn_action_delete i{
	color:rgba(255, 46, 46, 0.8);	
}
.view_action:hover i, .delete_action:hover i, .download_action:hover i{
	color:#fff;	
}
.view_action, .delete_action, .download_action{
	display:flex;
	flex-direction:column;
	align-items:center;	
	cursor:pointer;
}
.actions_ricambi .action_desc, .actions_carrozzeria .action_desc{
	font-weight:500;
	padding-top: 5px;
	font-size: 14px;
}
.view_action .action_desc{
	color:var(--rgba-primary-8);
}
.download_action .action_desc{
	color:rgba(236, 103, 8, 0.8);
}
.delete_action .action_desc{
	color:rgba(255, 46, 46, 0.8);
}
.view_action:hover .action_desc{
	color:var(--primary);
}
.download_action:hover .action_desc{
	color:rgba(236, 103, 8, 1);
}
.delete_action:hover .action_desc{
	color:rgba(255, 46, 46, 1);
}
#carrozzeria label, #brand label {
	font-weight:500;	
}
.filter_home .default-select.size-2 .btn, .users_list .default-select.size-2 .btn {
    border-radius: 0.625rem;
}



@media(min-width: 1200px) and (max-width:1900px){
	.row_pagamenti .col-xl-6{
		width:100%;	
	}
}
@media (max-width: 1370px){
	#logoSmall {
	  display: block !important;
	}
	
	.image-upload{
		height:216px !important;
	}
}

@media (max-width: 991.98px){
	.email-right-box {
	  padding-left: 0 !important;
	}

	.image-upload{
		height:210px !important;
	}
	.body_gestite{
		height:auto !important;	
	}
	


	/*.email-left-box {
	  width: 100% !important;
	}*/

}

@media (max-width: 920px){
	.questionario .tipo_sinistro .col-md-3 {
		float: right;
		position: absolute;
		right: 1rem;
	}
	
	.questionario .tipo_sinistro .col-md-9 {
		width:100%;
		position:absolute;
		top:1rem;
	}
	
	.questionario .tipo_sinistro .col-md-9 p {
		line-height:18px;
	}
	
	.questionario .tipo_sinistro {
		height:120px;
	}
	
	.questionario .tipo_sinistro .col-md-3 {
		width:100%;
		top:3.4rem;
	}
	
	.questionario .tipo_sinistro .col-md-3 .btn-group{
		width:calc(100% - 2rem);
	}
	
	/*.questionario .tipo_sinistro .col-md-9,
	.questionario .tipo_sinistro .col-md-3{
		width: 100%;
		float:left !important;
	}*/
}

@media (max-width: 1470px) {
	#box-images-upload, #box-images-upload-altri{
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.footer_btn .col-md-4{
		width:33% !important;
	}
	#user-menu-left{
		display:block;	
	}
	
	.header-profile{
		display:none !important;	
	}
}

@media (max-width: 580px) {
	.statobox{
		float:left !important	
	}
	.footer_btn .col-md-4{
		width:100% !important;
	}
	
	.footer_btn .col-md-4,
	.footer_btn .col-md-6,
	#data-save-alert{
		margin-bottom:10px !important;
	}
	
	.footer_btn .col-md-4 .btn{
		margin:auto !important;
		display: block;
		float:none !important;
		width:200px
		
	} 
	
	.footer_btn .col-md-6{
		width:50% !important;
	}
	
	.footer_btn .col-md-6 .btn{
		margin:auto !important;
		display: block;
		float:none !important;
		width:100%
		
	} 
	
	.messages-chat {
	  top: -1.875rem;
	  padding-top: 1.875rem;
	}
	
	#danni_box_center{
		width:270px;	
	}
	
	
	#danni_box_center_top input:nth-child(3),
	#danni_box_center_bottom input:nth-child(3){
		margin-left:8%;
	}
	
	#danni_box_center_top input:nth-child(4), 
	#danni_box_center_bottom input:nth-child(4){
		margin-left:10%;
	}
	
	#danni_box_center_tetto{
		top:75px;	
	}
	
	
	#danni_box_left input, 
	#danni_box_right input{
		margin-top:75px
	}
	
	#danni_box_center_tetto input:nth-child(2){
		margin-left:32%;
	}
	
}

@media (max-width: 450px) {
	#box-images-upload, #box-images-upload-altri{
		grid-template-columns: 1fr;
	}
	
	#box-images-upload-cruscotto, #box-images-upload-interni{
		grid-template-columns: 1fr;
	}
	
	
	.mail-list{
		height:200px;
	}
	
	.email-left-box{
		margin-bottom:0px !important;	
	}
	
	
	
	.list-group li{
		display:block !important;	
	}
	
	.list-group li .btn-group button{
	 padding:0.525rem 0.5rem;	
	}
	
	.list-group li .btn-group{
		float:right
	}
	
	

}

.input-group-append .input-group-text{
    height: 100%;
}

.input-group-append .input-group-text:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
	display: block !important;
	margin-right: 14px;
	font-size: 20px;
}

.link-remove:hover{
	color: #ff5858 !important;
}

/* Linguetta laterale destra */
.right-sidebar-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
    transition: right 0.3s ease;
}

.right-sidebar-tab .tab-handle {
    background-color: var(--primary, #01448a);
    color: #fff;
    padding: 20px 10px;
    cursor: pointer;
    border-radius: 10px 0 0 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    min-height: 120px;
}

.right-sidebar-tab .tab-handle:hover {
    background-color: var(--primary-hover, #0159b3);
}

.right-sidebar-tab .tab-handle i {
    font-size: 18px;
    transition: transform 0.3s ease;
    margin-top: 30px;
}

.right-sidebar-tab .tab-content {
    background-color: #fff;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px 0 0 10px;
    display: none;
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
	width:280px;
}

.right-sidebar-tab.expanded .tab-content {
    display: flex;
}

.right-sidebar-tab.expanded {
    right: 0;
}

.right-sidebar-tab.expanded .tab-handle i {
    transform: rotate(180deg);
}

.right-sidebar-tab .tab-header {
    padding: 15px;
    border-bottom: 1px solid #e3e3e3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.right-sidebar-tab .tab-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #3d4465;
}

.right-sidebar-tab .tab-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.right-sidebar-tab .tab-close:hover {
    color: #ff5858;
}

.right-sidebar-tab .tab-body {
    padding: 15px;
    flex: 1;
    font-size: 13px;
}

.right-sidebar-tab .tab-body p {
    font-size: 13px;
    margin-bottom: 10px;
}

.right-sidebar-tab .tab-body .sidebar-select-all-link {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.right-sidebar-tab .tab-body .sidebar-select-all-link:hover {
    opacity: 0.7;
    text-decoration: underline !important;
}

.right-sidebar-tab .tab-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 15px;
}

.right-sidebar-tab .tab-buttons .btn {
    /*width: 100%;*/
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.right-sidebar-tab .tab-buttons .btn-download {
    background-color: var(--primary, #01448a);
    color: #fff;
}

.right-sidebar-tab .tab-buttons .btn-download:hover {
    background-color: var(--primary-hover, #0159b3);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.right-sidebar-tab .tab-buttons .btn-send-mail {
    background-color: var(--secondary, #ec6708);
    color: #fff;
}

.right-sidebar-tab .tab-buttons .btn-send-mail:hover {
    background-color: #d45a07;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.right-sidebar-tab .tab-buttons .btn i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .right-sidebar-tab .tab-content {
        width: 280px;
    }
}

/* ==========================================================================
   Layout compatto: padding e margin ridotti rispetto al tema Mophy
   (contenitore, card, form, bottoni, tabelle, header, menu laterale)
   ========================================================================== */

/* contenitore pagina */
.content-body .container-fluid, .content-body .container-sm, .content-body .container-md,
.content-body .container-lg, .content-body .container-xl, .content-body .container-xxl {
	padding-top: 12px;
	padding-right: 14px;
	padding-left: 14px;
}
@media only screen and (max-width: 575px) {
	.content-body .container-fluid, .content-body .container-sm, .content-body .container-md,
	.content-body .container-lg, .content-body .container-xl, .content-body .container-xxl {
		padding-top: 8px;
		padding-right: 8px;
		padding-left: 8px;
	}
}

/* card */
.card {
	margin-bottom: 12px;
	height: calc(100% - 12px);
}
.card-header {
	padding: 10px 14px;
}
.card-body {
	padding: 12px 14px;
}
.card-footer {
	padding: 8px 14px;
}
.footer_btn {
	padding: 8px 14px;
}

/* riquadri contenuto (filtri, sezioni) */
.cm-content-box {
	margin-bottom: 10px;
}
.cm-content-box .content-title {
	padding: 2px 14px;
}

/* titoli di sezione nelle schede (es. Danneggiato, Dati Veicolo) */
.title_edit {
	margin-top: 6px !important;
	margin-bottom: 10px !important;
	font-size: 1.0625rem !important;
}

/* form: campi alti 30px, etichette piccole e vicine al campo */
.form-control, .form-control-sm {
	height: 1.875rem;
	min-height: 1.875rem;
	padding: 0.25rem 0.625rem;
}
textarea.form-control {
	height: auto;
	min-height: 0;
}
.form-label, .col-form-label {
	margin-bottom: 2px;
	font-size: 0.8125rem;
}
.mb-3 {
	margin-bottom: 0.5rem !important;
}
.select2-container .select2-selection--single {
	height: 1.875rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.875rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 1.875rem;
}
.bootstrap-select.form-control {
	height: auto;
}
.bootstrap-select .dropdown-toggle {
	padding: 0.25rem 0.625rem;
	min-height: 1.875rem;
}
.form-check {
	min-height: 1.25rem;
}

/* bottoni */
.btn {
	padding: 0.3125rem 0.75rem;
}

/* tabelle */
.table td {
	padding: 5px 8px;
}
.table thead th {
	padding-top: 6px;
	padding-bottom: 6px;
}

/* tab */
.nav-tabs .nav-link {
	padding: 5px 10px;
}

/* header piu' basso (schermi grandi) */
@media only screen and (min-width: 1200px) {
	.header, .nav-header {
		height: 4rem;
	}
	[data-header-position="fixed"] .content-body {
		padding-top: 4rem;
	}
	.deznav {
		top: 4rem;
		height: calc(100% - 4rem);
	}
	.nav-header .brand-logo img.brand-title {
		max-height: 3rem;
	}
}

/* menu laterale */
[data-sidebar-style="full"][data-layout="vertical"] .deznav .metismenu > li > a {
	padding: 0.1875rem 1.5rem;
}

/* griglie in vista a schede (sotto 1200px, vedi js/custom/globals/responsive-tables.js) */
.bootstrap-table .table td:has(> .card-views) {
	padding: 8px 10px;
	border-bottom: 1px solid #e6e6e6;
}
.card-views {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.card-view {
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
	line-height: 1.35;
}
.card-view .card-view-title {
	flex: 0 0 115px;
	min-width: 115px;
	max-width: 115px;
	font-size: 11px;
	font-weight: 400 !important;
	color: #8a8a8a !important;
	white-space: normal;
	word-break: break-word;
}
.card-view .card-view-value {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-word;
}
/* i formatter delle colonne usano spesso nowrap: in vista a schede il testo va a capo */
.card-view .card-view-value,
.card-view .card-view-value * {
	white-space: normal !important;
}
.bootstrap-table .table:has(.card-views) {
	min-width: 0 !important;
	width: 100% !important;
}
.card-view .card-view-value .btn.sharp {
	margin-bottom: 2px;
}
/* tablet: schede su due colonne */
@media only screen and (min-width: 768px) {
	.bootstrap-table .table:has(.card-views) tbody {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 16px;
	}
	.bootstrap-table .table:has(.card-views) tbody tr,
	.bootstrap-table .table:has(.card-views) tbody td {
		display: block;
	}
	.bootstrap-table .table tbody tr.no-records-found {
		grid-column: 1 / -1;
	}
}
