html, body {
  height: 100%;
}
body {
  padding-top: 4.5rem;
}
a {
  color: #20AA76;
}
a:hover {
  color: #092e20;
  text-decoration: none;
}
.cms-toolbar-expanded {
  height: calc(100vh - 46px);
}
.cms-structure-mode-structure {
  min-height: calc(100vh - 46px);
}
.cms-toolbar-expanded .navbar {
  top: 46px;
}
#page-content {
  flex: 1 0 auto;
}

.imgfit {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

#items_list_container {
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.product_item_div {
  display:flex;
  align-items:center;
  justify-content:center;
}

.div_item_dealer_cloned {
  border-style: inset;
  border-color: #1b1e21;
  border-width: thin;
  font-size: .8em;
}

.div_item_dealer_cloned.default {
  border-style:inset;
  border-width: thick;
  border-color: #1e7e34;
}

.div_item_dealer_cloned.hover {
  background-color: #999999;
}

.cfg_list_item {
  font-style: italic;
  font-size: .8em;
  color: black;
}

.cfg_list_item_value {
  font-style: normal;
  font-size: .9em;
  font-weight: bold;
  color: darkblue;
}


.line-prop-title {
  font-weight: bold;
  color:darkblue;
  font-size: 1.2em;
}

.line-prop-hora {
  font-weight: bold;
  color:green;
  font-size: 1.3em;
}

.line-prop-valor {
  font-weight: bold;
  color:maroon;
  font-size: 1.2em;
}
.line-prop-valor > span {
  font-weight: normal;
  color:black;
  font-size: 0.8em;
}


#dimmer {
  background:#000;
  opacity:0.7;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:none;
  z-index:100500;
  filter: alpha(opacity=50);
}

.enable_item_modif_quantity {
  border-style: double;
  border-color: lightslategrey;
}

#switchChart {
  font-size: .8em;
}

.product_item_div >div {
  user-select: none;

}
.formula {
  font-size:.7em;
}

.div_box {
  box-shadow: 2px 2px 2px 2px gray;
}

.actual_data_title {
  font-style: italic;
  color: darkslategrey;
  display:flex;
  align-items:center;
  justify-content:center;
}

.actual_data_title.tracking {
  font-weight: bolder;
  color: red;
}

.actual_data_valor {
  font-weight: bold;
  box-shadow: 1px 1px 1px gray;
  text-shadow: 1px 1px gray;
  display:flex;
  align-items:center;
  justify-content:center;
}

.real_data_main_title {
  font-style: italic;
  color: darkslategrey;
  display:flex;
  font-size: 1.3em;
  align-items:flex-end;
  justify-content:center;
}

.real_data_title {
  font-style: italic;
  color: darkslategrey;
  display:flex;
  font-size: 1.3em;
  align-items:flex-end;
  justify-content:right;
}

.real_data_main_value {
  color:red;
  font-weight: bold;
  font-size: 3.5em;
  text-shadow: 2px 2px gray;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

.real_analog_data_main_value {
  color:darkblue;
  font-weight: bold;
  font-size: 2.5em;
  text-shadow: 2px 2px gray;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}


.real_data_sp_value {
  color:green;
  font-weight: bold;
  font-size: 2.5em;
  text-shadow: 1px 1px gray;
  display:flex;
  align-items:flex-start;
  justify-content:left;
}

.real_data_values {
  font-style: italic;
  color: darkslategrey;
  display:flex;
  font-size: 1em;
  align-items:center;
  justify-content:center;
}
.rdv_green {
  color: green;
  font-weight: bold;
  text-shadow: 1px 1px gray;
  font-size: 1.2em;
}

.rdv_blue {
  color: blue;
  font-weight: bold;
  text-shadow: 1px 1px gray;
  font-size: 1.2em;
}

.log_list_item_date {
  font-style: italic;
  font-size:0.8em;
}

.log_list_item_text {
  font-size:0.8em;
  font-weight: bold;
}

.logERR {
  color:red;
}

.logWRN {
  color:orange;
}

.logINF {
  color:darkslategray;
}

.logCFG {
  color:cadetblue;
}

div:has(.logListRow) {
  overflow: hidden; white-space: nowrap;
}

div.refreshed {
  background-color: yellow;
}

#ui-datepicker-div{
  font-size: 0.8em;
  background-color: beige;
}

#graphDatePicker {
  font-size: 0.8em;
}

#butVeureActual {
  font-size: 0.7em;
  margin-block-end: 10px;
}

div.center {
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

.fontPetita {
  font-size: 0.7em;
}

#divLogFloatDetail {
  position: absolute;
  left:0px;
  right:-1px;
}

.logListRow {
  user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;

}

.logListRow.selected {
  border-color: black;
  border-style: double;
  white-space: normal;
}


.right_title {
  font-style: italic;
  color: darkslategrey;
  display:flex;
  font-size: 0.8em;
  justify-content:right;
}

.print_title {

}

.print_left {
  display:flex;
  font-size: 1em;
  align-items:flex-end;
  justify-content:left;
  color:black;
}

.print_small_left {
  display:flex;
  font-style: italic;
  font-size: .7em;
  align-items:flex-end;
  justify-content:left;
}

.print_right {
  display:flex;
  font-size: .9em;
  align-items:flex-end;
  justify-content:right;
}

.tab {
  display: inline-block;
  margin-left: 1.2em;
}

.caption_data_act {
  font-style: italic;
  color: darkslategrey;
  display:flex;
  font-size: 1.2em;
  align-items:flex-end;
  justify-content:left;
}

.value_data_act {
  font-weight:bold;
  color: darkslategrey;
  display:flex;
  font-size: 1.2em;
  align-items:flex-end;
  justify-content:left;
}

#popup_window {
  position: fixed;
  width: 300px;
  height: 200px;
  background: white;
  border: 1px solid black;
  padding: 10px;
  margin: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: none;
}

.div_text_center {
  text-align: center;
}

.div_offline {
  text-decoration-line: line-through;
  background-color: lightgray;
}

.itemRow {
  border-color: gray;
  border-style: inset;
  border-width: 1px;
  margin-top: 2px;
  font-weight: lighter;
  font-size: .8em;
}

.itemRow  h5 {
  font-size: 1em;
}

.itemRow.selected {
  border-style: double;
  white-space: normal;
  background-color: cadetblue;
  color:white;
}

.itemRow.preselected {
  border-style: solid;
  white-space: normal;
  background-color: #9fcdff;
  color:#0062cc;
}


.ubicaRow.selected {
  border-style: double;
  white-space: normal;
  background-color: cadetblue;
  color:white;
}
.ubica_list_container {
  border-style: double;
}

.dz-image {
  width:95px !important;
  height:80px !important;
}
.dz-filename {
  margin-top: 30px !important;
}
.dz-remove {
  margin-top:25px !important;
}

.doc-min-info {
  border-width: 2px;
  border-color: darkgray;
  border-style: inset;
  margin-top: 2px;
}
.doc-min-info-img img {
  cursor: pointer;
}
.doc-min-info-img img {
  object-fit: contain;
  width: 40%;
}

.doc-min-info-name {
  text-align: center;
  font-size: .8em;
  font-style: italic;
  margin: 2px;
  text-decoration: overline;
  font-weight: bold;
}
.doc-min-info-size {
  padding: 0px;
  font-size: .6em;
  margin-top: 15px;
  cursor: pointer;
}

.doc-min-info-size  img {
  padding-left: 15px;
  width: 30px;
}



#items_table_container {
  border-style: double;
  white-space: normal;
}

.mainlist {
  overflow: auto !important;
  height: 800px;
}
.table-caption {
  font-size: 1em;
  color:white;
  background-color: black;
}
.table-item {
  font-size: 0.9em;
  color: black;
  font-style: italic;
  background-color: white;
}

.table-item.preselected {
  font-size: 1em;
  color: white;
  font-style: normal;
  background-color: coral;
}

.table-item.impar {
  background-color: gray;
  color:white;
}

.table-item.impar.preselected {
  font-size: 1em;
  color: white;
  font-style: normal;
  background-color: coral;
}

.table-item.selected {
  font-size: 1em;
  color: black;
  font-weight: bold;
  font-style: normal;
  background-color: lightcoral;
}

img.item {
  border: double 4px black;
}

.conjuntRow.selected {
  border-style: double;
  white-space: normal;
  background-color: black;
  color:white;
}

.assembly_icode {
  background-color: black;
  color: white;
  padding-right: 4px;
  padding-left: 4px;
  margin-right: 5px;
  font-size: .8em;
}

.assembly_icode_sub {
  background-color: grey;
  color: white;
  padding-right: 4px;
  padding-left: 4px;
  margin-right: 5px;
  font-size: .6em;
}

.assembly.selected {
  border-style: double;
  white-space: normal;
  background-color: cadetblue;
  color:white;
}

.assembly.preselected {
  border-style: solid;
  white-space: normal;
  background-color: #9fcdff;
  color:#0062cc;
}

.assembly.selected {
  border-style: double;
  white-space: normal;
  background-color: cadetblue;
  color:white;
}

.assembly-item.selected {
  border-style: double;
  white-space: normal;
  background-color: cadetblue;
  color:white;
}

.assembly-item.preselected {
  border-style: solid;
  white-space: normal;
  background-color: #9fcdff;
  color:#0062cc;
}

.assembly-item.selected {
  border-style: double;
  white-space: normal;
  background-color: cadetblue;
  color:white;
}

.btn::before {
  margin-left: -15px;
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform 0.35s ease;
  transform-origin: .5em 50%;
}

.btn[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn[ident-level] + div {
  margin-left:20px;
}

img.visual_type.selected {
  border-style: double;
  white-space: normal;
  background-color: cadetblue;
  color:white;
}


.dropzone {
  min-height: 30px;
  border: 1px solid rgba(0, 255, 0, .8);
  border-radius: 5px;
  padding: 4px 4px;
}

.dropzone .dz-preview {
  margin:2px;
}

.dropzone .dz-message {
  text-align: center;
  margin: .4em 0;
  font-size: .8em;
  font-style: oblique;
}

.upload-div-hidden {
  display: none;
  margin: 2px;
  font-size: 10px;
}
#img_doc_edit {
  object-fit: contain;
  width: 90%;
}
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none; /* ocult per defecte */
  z-index: 1000;
  /* capturem tots els events de punter */
  pointer-events: auto;
}

/* El modal (div centrat) */
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;          /* mida concreta: ample */
  height: 320px;         /* mida concreta: alt */
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 2rem);
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  padding: 1rem 1.25rem;
  display: none; /* ocult per defecte */
  z-index: 1001;
  overflow: auto;
}

/* Capçalera del modal */
.modal header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
}

/* Mostrem el backdrop i el modal quand tenen la classe .open */
.backdrop.open { display: block; }
.modal.open { display: block; }

/* Quan el modal està obert, evitem que el main rebi punter events (seguretat extra) */
main[aria-hidden="true"] {
  pointer-events: none;
  user-select: none;
  /* opcional: fer visualment enfosquit */
  filter: blur(0.2px) brightness(0.9);
}


#div_new_item_dealer {
  border-width: 2px;
  border-color: gray;
  border-radius: 2px;
  border-style: double;
}
input {
  width:100%;
}

.but-filter {
  font-size:.8em;
  font-style: italic;
  width:100%;
}
div.but-filter {
  height:100%;
  text-align: center;
  padding-top: 3px;
}

.but-filter.active {
  background-color: black;
  color:white;
}

.but-filter.inactive {
  background-color: dimgray;
  color:gray;
  cursor: not-allowed;
}

.div-sel-filters {
  border-style: double;
  border-radius: 3px;
  border-color: black;
  border-width: 2px;
  margin-bottom: 20px;
  font-size:.8em;
}

.div-but-filters > div {
  padding:0px;
}


.div-consolidate-container {
  font-size: .8em;
  display:none;
}

.handling_output_list_item {
  font-style: italic;
  color: black;
  font-weight: bold;
  display:flex;
  font-size: 0.7em;
  justify-content:right;
  text-decoration: #0c5460;
}

.button-state-blue {
  background-color: deepskyblue;
  padding: 0;
  width: 100px;
  margin: 0px;
}

.button-state-red {
  background-color: orangered;
  padding: 0;
  width: 100px;
  margin: 0px;
}

.button-state-grey {
  background-color: slategray;
  padding: 0;
  width: 100px;
  margin: 0px;
}

.edit_value {
  padding: 0;
}

.div_item_handling_cloned {
  border-style: inset;
  border-color: #1b1e21;
  border-width: thin;
  font-size: .8em;
}