.td_am, .td_ac, .tc_oe, .td_info, .td_us, .td_sostituzioni, .td_kit{
  width:30px !important
}

#gridArticoliCar table tbody td:first-child,
#gridArticoliTruck table tbody td:first-child,
#gridArticoliAssali table tbody td:first-child,
#gridArticoliMotori table tbody td:first-child,
#RicercaCodiceGrigliaContent table tbody td:first-child {
  display: table-cell;
}

#gridArticoliCar table tbody td:first-child img,
#gridArticoliTruck table tbody td:first-child img,
#gridArticoliAssali table tbody td:first-child img,
#gridArticoliMotori table tbody td:first-child img,
#RicercaCodiceGrigliaContent table tbody td:first-child img {
  display: block;
}

#gridArticoliCar table tbody td:not(:first-child)>img,
#gridArticoliCar table tbody td:not(:first-child)>span,
#gridArticoliTruck table tbody td:not(:first-child)>img,
#gridArticoliTruck table tbody td:not(:first-child)>span,
#gridArticoliAssali table tbody td:not(:first-child)>img,
#gridArticoliAssali table tbody td:not(:first-child)>span,
#gridArticoliMotori table tbody td:not(:first-child)>img,
#gridArticoliMotori table tbody td:not(:first-child)>span,
#RicercaCodiceGrigliaContent table tbody td:not(:first-child)>img,
#RicercaCodiceGrigliaContent table tbody td:not(:first-child)>span {
  box-shadow: 0 4px 4px -4px #333;
  margin-top: 2px;
}

#gridArticoliCar i.fas,
#gridArticoliTruck i.fas,
#gridArticoliAssali i.fas,
#gridArticoliMotori i.fas,
#RicercaCodiceGrigliaContent i.fas {
  background-color: white;
  border: 1px solid #dd0031;
  border-radius: 5px;
  width: 23px;
  height: 23px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 4px -4px #333;
  margin-top: 2px;
}

#top nav {
  padding: 0;
}

#top nav #home_link {
  padding-left: 15px;
}

#top nav #home_link #logo-inforicambi {
  height: 30px;
  width: 30px;
}

@media (max-width: 890px) {
  #top nav .nav-link {
    padding: 5px 8px;
  }
}

.right-nav-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 15px;
}

.sofinn-logo-container {
  align-self: flex-end;
  padding-bottom: 5px;
}

.sofinn-logo {
  max-width: 100px;
  height: auto;
}

#menu_user {
  align-self: flex-end;
  padding: 0;
  margin: 0;
  z-index: 1999;
}

#menu_user .nav-item .nav-link {
  padding: 0;
  white-space: nowrap;
}

#menu_user .user-thumb {
  max-width: 25px;
  max-height: 25px;
  border: 0;
  margin-left: 5px;
}

#menu li.nav-item span {
  float: left;
  display: block;
  width: 24px;
  height: 24px;
  margin-right: 4px;
}

a.nav-link {
  border-top: 4px solid transparent !important;
}

a.nav-link:hover {
  border-top: 4px solid #dd0031 !important;
  color: #dd0031;
}

a.nav-link.active {
  border-top: 4px solid #dd0031 !important;
  color: #dd0031;
}

.active > span:first-child {
  color: #000;
}

#circo .dx-datagrid-rowsview .dx-datagrid-group-text-content { color: white !important; }
#circo .dx-datagrid-rowsview .dx-datagrid-group-opened,
#circo .dx-datagrid-rowsview .dx-datagrid-group-closed { display: none; }
#circo > .dx-datagrid > .dx-datagrid-rowsview .dx-group-cell { cursor: pointer; }
#circo > .dx-datagrid > .dx-datagrid-rowsview .dx-group-cell:before {
  content: '+';
  margin-right: 3px;
}

@media (max-height: 800px) {
  .dx-texteditor-input {
    padding: 0;
  }

  div#panelRicercaCodice {
    margin-top: 0;
  }

  #RicercaCodiceGrigliaContent .dx-datagrid .dx-row>td {
    padding-top: 2px;
    padding-bottom: 2px;
  }
}

.dx-list-item,
.dx-list .dx-empty-message {
  color: var(--base-color);
}

.dx-datagrid {
  background-color: var(--background-row-even);
  color: var(--base-color);
}

.dx-datagrid .dx-row-alt>td,
.dx-datagrid .dx-row-alt>tr>td {
  background-color: var(--background-row-odd);
}

.dx-datagrid .dx-row-lines>td {
  border-bottom: 1px solid var(--background-row-border);
}

.dx-item-zipped {
  width: 50%;
  float: left;
}

body {
  height: auto !important;
  overflow-y: hidden !important;
}

.dx-overlay-content.dx-popup-normal.dx-popup-draggable.dx-resizable {
  width: auto !important;
}

.dx-treeview-item-without-checkbox.dx-state-selected .dx-treeview-item {
  background-color: #dd0031;
  color: #ffffff;

}

.dx-item .dx-treeview-item .dx-state-hover {
  color: #000000;
}

.modal {
  position: relative;
  width: 80%;
  height: 500px;
  margin: auto;
  top: 50px;
}

.modalcontentGallery {
  max-width: 40%;
  max-height: 40vh;
  margin: auto;
  display: block;
  object-fit: contain;
}

#caption {
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

.close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
}

.modal-prev,
.modal-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.modal-prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.modal-next {
  right: 0;
  border-radius: 0 3px 3px 0;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.dx-gallery-item-image {
  margin: 0;
  margin-left: 5px;
}

.dx-datagrid-header-panel .dx-toolbar {
  margin-bottom: 0px;
}

.dx-toolbar {
  border: 1px solid #d7d7d7 !important;
}

.dx-datagrid-group-panel .dx-group-panel-message {
  padding: 3px !important;
}

#dialogCompare {
  max-width: 100%;
  max-height: 100%;
}

.article-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notes-section {
  width: 100%;
  margin-top: 10px;
}

.card-image,
.image-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
}

.parent-container {
  overflow: hidden;
}

.h100_custom2 {
  height: calc(100vh - 120px);
}

.h50_custom {
  height: calc(100vh - 435px);
}


.breadcrumb {
  margin-bottom: 0;
  margin-left: 6px;
}

.infoCarparkContent {
  max-height: 300px;
  width: 100%;
  overflow-y: hidden;
  padding: 6px;
}

.dx-scrollable-scrollbar {
  opacity: 1 !important;
}

.dx-scrollable-scrollbar:hover {
  opacity: 1 !important;
}

.dx-scrollable-scrollbar {
  z-index: 10000;
}

.container-flex {
  display: flex;
  flex-wrap: nowrap;
}

.card-left,
.col-lg-10 {
  flex: 1;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}


.dx-tab-content {
  display: flex;
  justify-content: space-between;
}

#galleryContainer {
  text-align: center;
  width: 100%;
  position: relative;
}

.thumbnails {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
}

.thumbnail {
  display: inline-block;
  vertical-align: top;
  margin-right: 2px;
  width: 70px;
  height: 70px;
}

.thumbnail img,
.thumbnail .Sirv {
  max-width: 80%;
  max-height: 100%;
  display: block;
}

.thumbnail img.active,
.thumbnail .Sirv.active {
  border: 2px solid #333;
}


#mainImageContainer {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
}

.navigation-arrow {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  z-index: 1000;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}



.close {
  position: absolute;
  top: 50px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {
    -webkit-transform: scale(0)
  }

  to {
    -webkit-transform: scale(1)
  }
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.cell-class {
  user-select: text;
  -moz-user-select: text;
  -webkit-user-select: text;
}

#menu_carpark_content {
  height: 49px;
}

#menu_carpark {
  height: 77px;
}

.tab-pane>.w-50,
.tab-pane>.w-100 {
  min-height: 40px;
}

.no-underline {
  text-decoration: none !important;
  text-shadow: none !important;
  text-decoration-line: none !important;
  text-decoration-style: initial !important;
}

.dx-datagrid .dx-header-row .dx-datagrid-action .dx-datagrid-text-content {
  text-align: center !important;
}

.menu-tab {

  padding-left: 15px;
  padding-right: 15px;
  background-color: #f0f0f0;
  margin: 0;
}

.custom_content {
  display: table;
  height: 100%;
}

.tabPanelFunzioni {
  margin-top: 0px;
  padding-top: 0px;
}

.custom_toolbar {
  background-color: transparent;
}

.modal-navigation-arrow {
  position: absolute;
  top: 50%;
  z-index: 99999;
  cursor: pointer;
  color: #FFFFFF;
}

.left-arrow-modal {
  left: 10px;
  z-index: 99999;
}

.right-arrow-modal {
  right: 10px;
  z-index: 99999;
}

.dx-popup-wrapper>.dx-overlay-content {
  min-width: 1280px;
}

.anyPro .dx-header-filter {
  display: none !important;
}

.dx-gridbase-container>.dx-datagrid-rowsview.dx-scrollable {
  height: 100vh;
}

.menu-deltaweb {
  height: 40px;
  background-color: #f0f0f0;
}

.marchio {
  height: 300px;
}

#main-content {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
}

.font-size-sm {
  font-size: 0.875rem;
}

.font-weight-bold {
  font-weight: 700;
}

.loading {
  background-image: url('/images/icons/loading.svg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 20px 20px;
}

.btn2 {
  font-family: "Segoe UI", "Helvetica Neue", "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn2-dark {
  background-color: #343a40;
  color: #ffffff;
}

.btn2-dark:hover {
  background-color: #23272b;
}

.btn2-primary {
  background-color: #007bff;
  color: #ffffff;
}

.btn2-primary:hover {
  background-color: #0069d9;
}

.btn_ricerca_avanzata_tab,
.btn_ricerca_avanzata_back_tab {
  width: 100%;
  height: 100%;
}

#ElencoProduttori .dx-datagrid .dx-data-row {
  height: 50px;
}

#ElencoProduttoriDettaglio .dx-tabs-wrapper .dx-item.dx-tab {
  padding: 10px 15px;
}

#ElencoProduttoriDettaglio .dx-item-content.dx-tab-content {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#ElencoProduttoriDettaglio .dx-tabpanel-container {
  padding-top: 50px;
  transition: padding-top 0.3s ease;
}

#ElencoProduttoriDettaglio .dx-item.dx-tab.dx-tab-selected {
  background-color: #f0f0f0;
  font-weight: bold;
}

#ElencoProduttoriDettaglio .close-div-btn {
  font-size: 35px;
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 9999;
}

#ElencoProduttoriDettaglio .close-div-btn:hover {
  color: #ff0000;
}

#immagineModelloCar .bg-img {
  position: relative !important;
  padding-top: 10px !important;
}

.dxc .dxc-chart {
  height: 350px !important;
}


.dx-datagrid .dx-master-detail-cell .detail-row {
  display: flex;
  justify-content: start;
  align-items: center;
  width: 100%;
  padding: 10px;
}

.dx-datagrid .dx-master-detail-cell .main-description {
  flex: 1 1 20%;
  margin-right: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #e7e7e7;
  padding: 5px;
  border-radius: 5px;
}

.dx-datagrid .dx-master-detail-cell .technical-notes {
  display: flex;
  flex: 1 1 80%;
  align-items: center;
  overflow: hidden;
}

.dx-datagrid .dx-master-detail-cell .technical-note {
  flex: 1;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #e7e7e7;
  padding: 5px;
  border-radius: 5px;
}

.dx-datagrid .dx-master-detail-cell .note-value {
  margin-left: 5px;
  font-weight: bold;
}

.dx-freespace-row {
  height: 0px !important;
}

#ElencoProduttori1 .dx-datagrid .dx-data-row {
  height: 50px;
}



.dx-datagrid .dx-row-focused {
  background-color: #c1c1c1 !important;
}

.dx-datagrid .dx-selection {
  background-color: #c1c1c1 !important;
}

.dx-datagrid-focus-overlay {
  display: none !important;
}

.h100_custom3 {
  height: calc(100vh - 154px);
}

.h100_custom34 {
  height: 100%;
}

.custom-selectbox1 .dx-dropdowneditor-input-wrapper {
  height: 24px;
}

.custom-selectbox1 .dx-selectbox {
  padding: 0;
  height: 24px;
  line-height: 24px;
}

.resizable-row {
  overflow: hidden;
  height: 50%;
  max-height: 80% !important;
  position: relative;
}

.resizable-handle {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  cursor: ns-resize;
  background: transparent;
}

.info-resizable-row {
  overflow: hidden;

  max-height: 100% !important;
  min-height: 20%;
  position: relative;
}

.info-resizable-handle {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  cursor: ns-resize;
  background: transparent;
}

.resizable-grid-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dx-datagrid-headers .dx-header-row .dx-datagrid-action {
  border-right: 1px solid #ddd;
}



#map-container {
  position: relative;
  z-index: 5;
  width: 74%;
}

.dropdown-menu {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.dropdown-item {
  padding: 10px;
  cursor: pointer;
}

.panelRicercaCodiceTabsArticolo {
  margin-top: 0px !important;
}

.dx-datagrid-rowsview .dx-select-checkboxes-hidden .dx-select-checkbox {
  display: block !important;
}


.nav-link {
  padding: 5px 8px !important;
}

#ricercaInfocar2 {
  flex: 0 0 auto;
}
.dx-tab{
  line-height: 0 !important;
}
#panelRicercaVeicoloCar .dx-icon{
  color:red !important;
}
.dx-texteditor-input{
  text-align: right !important;
}
.custom-tabs {
  border: none !important;
}
.custom-tabs .dx-tabs-wrapper {
  display:flex;
  justify-content: space-around;
  border:none !important;
  margin-top: -6px;
}
.custom-tabs .dx-tabs-wrapper .dx-item.dx-tab {
  background-color: #d3d3d3; 
  color: #000; 
  border-radius: 5px; 
  margin: 0 4px; 
  padding: 2px 10px !important; 
  border:none !important;
  box-shadow: none !important;
}
.custom-tabs .dx-tab-selected:after{
  border: none !important;
}
.custom-tabs .dx-tabs-wrapper .dx-item.dx-tab.dx-tab-selected {
  background-color: #b22222; 
  color: #fff; 
  border:none !important;
  box-shadow: none !important;
}
.ricercaKitContent .dx-gridbase-container > .dx-datagrid-rowsview.dx-scrollable {
  height: auto !important;
  max-height: none !important;
}
.carparkKitContentCar .dx-gridbase-container > .dx-datagrid-rowsview.dx-scrollable {
  height: auto !important;
  max-height: none !important;
}

.ricercaKitContent .dx-datagrid-group-opened, .ricercaKitContent .dx-datagrid-group-closed {
  width: 100%;
  color: red;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
  background-color: #e3486a88 !important;
  
   border-top: none !important;
   border-left: 5px solid #dd0031 !important;

   padding-left: 5px !important;

}

.dx-popup-wrapper,
.dx-overlay-content,
.dx-overlay-shader {
    z-index: 10000 !important; 
}

.dx-overlay-shader {
    background-color: rgba(0, 0, 0, 0.5) !important; 
}
.dx-datagrid .dx-datagrid-group-closed:before {
  content: "\002b";
  font-size: 14px;
  color: #000;
}

.dx-datagrid .dx-datagrid-group-opened:before {
  content: "\2212";
  font-size: 14px;
  color: #000;
}
.descrizione_input input,.codice_input {
  padding-left:5px;

}
#immagineModelloCar,
#immagineModelloTruck,
#immagineModelloMotori,
#immagineModelloAssali{
  height:98% !important;
}
.nav-item .nav-link{
border-radius:unset !important;

}

.viewport {
  width: 100%;
  height: 100%;
  background-image: url("/images/bg.png");
}
.precontainer {
  display: flex;
  height: calc(100% - var(--footer-height));
  width: auto;
  align-items: center;
}

#containerHome {
  display: grid;
  width: var(--container-width);
  height: var(--container-height);
  grid-template-areas: 'box1';
  grid-gap: var(--box-border);
  margin-left: auto;
  margin-right: auto;
}
.item1 {
  grid-area: box1;
  background-color: var(--background-color-block);
  width: calc(var(--container-width)* 100 / 100);
  height: calc(var(--container-height)* 100 / 100);
  border-radius: var(--box-radius);
  box-shadow: var(--box-shadow);
}
.fade-out {
  transition: opacity 1s ease-out;
  opacity: 0;
}

.hidden {
  display: none;
}
.dx-datagrid-content .dx-datagrid-table .dx-row > td, .dx-datagrid-content .dx-datagrid-table .dx-row > tr > td {
  vertical-align: middle !important;
  
}
.dx-item.dx-tab.dx-tab-selected > div >div {
    background-color: #b22222 !important;
    color: white !important;
}

.dx-item.dx-tab.dx-tab-active > div >div {
    background-color: #b22222 !important;
     color: black !important;
}


.nav-pills .nav-link.NavtabBottone {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 15px !important;
    margin: 4px 4px 0 0;
    margin-left: 5px;
    height: 30px;
    min-width: 70px;
    border-radius: 10px !important;
    border-left: 0px #dd0031 !important;
    background-color: #dd0030 !important;
    color: #fff !important;
    text-align: center;
    box-sizing: border-box;
    border-left: none !important;
    cursor: pointer;
}

.nav-pills .nav-link.NavtabBottone.active {
    background: #dd0030 !important;
    border: none !important;
    box-shadow: none !important;
    color: white !important;

    border-bottom: 3px solid #a79696 !important;
}

.nav-pills .nav-link.NavtabBottone.disabled {
    background-color: #555 !important;
    color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}


.valoreNote { 
  margin:0 5px;
  font-weight: bold;
  font-size: 12px;
}

.etichettaNote {
  text-transform: capitalize;
  font-weight: bold;
  color: #1212c9;
  font-size: 12px;
}


.custom-tooltip {
  position: absolute;
  background-color: #fff;
  color: #333;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  white-space: pre-line;
  max-width: 200px;
  font-family: "Segoe UI", "Helvetica Neue", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  z-index: 1000;
}

.toolp {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.toolp .toolptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  position: absolute;
  z-index: 1;
}

.toolp:hover .toolptext {
  visibility: visible;
}

.nav-link.disabled{
  opacity: 0.5 !important; 
}

.nav-link.active{
  font-weight: bold !important;
}

.CustomKitTab .dx-tabs-wrapper{
  display: inline-block;
}

#menu .nav-link {
  border-radius: 8px 8px 0 0 !important;
  border-top: 4px solid transparent !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px;
  transition: all 0.15s ease-in-out;
  position: relative;
}

/* Hover */
#menu .nav-link:hover {
  border-top: 4px solid #dd0031 !important;
  background-color: #fff;
}

/* ATTIVO - Effetto bottone premuto */
#menu .nav-link.active {
  border-top: 4px solid #dd0031 !important;
  background-color: #ffffff !important;

  /* Effetto pressione */
  transform: translateY(2px);
  box-shadow: inset 0 4px 6px rgba(0,0,0,0.15),
              inset 0 -2px 4px rgba(255,255,255,0.4);
  
  border-bottom: 2px solid #e0e0e0;
}

.tooltip-card{
    background:#bad6d5;
    color:#000;
    padding:10px;
    border-radius:6px;
    font-size:12px;
    width: 100%;

}

.tooltip-row{
    display:flex;
    margin-bottom:4px;
    width: 100%;
}

.tooltip-label{
    color:#1212c9;
    margin-right:6px;
}

.tooltip-value{
    font-weight:600;
}
.tooltip-content {
  margin: 0;
  width: 100%;
}
.dx-tooltip .dx-overlay-content {
  background: transparent;
  border: none;
  box-shadow: none; 
}


#infoPopup .dx-overlay-content.dx-popup-normal.dx-popup-draggable.dx-resizable {
    transform: translate(5vw,2vw) !important;
    width: 90vw !important;
}