﻿:root {
  --main-color: grey;
  --main-color-highlight: darkgrey;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

.navbar-default {
  margin: 0 0 0 0;
}

.navbar-default .navbar-nav > li > a,
.dropdown-menu > li > a {
  color: #31708f;
}

.navbar-default .navbar-nav > li > a.active {
  color: var(--main-color);
}

.navbar-default .navbar-nav > li > a.active:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  width: 80%;
  display: block;
  background-color: var(--main-color);
  margin: auto;
}

#page-wrapper {
  margin: 0 0 0 0;
  border-left: 0;
}
/* Default: #FE9A2E */
.imgWelcome {
  max-width: 100%;
}

.imgInfo {
  /*max-width: 50%;*/
  max-height: 200px;
}

.btn-warning {
  border-color: var(--main-color-highlight);
  background-color: var(--main-color);
  transition: all 0.3s ease;
  color: white;
}

.btn-warning:hover,
.btn-warning:active,
.btn-warning:focus {
  border-color: var(--main-color-highlight);
  background-color: var(--main-color-highlight);
}

.btn-warning:active:focus,
.btn-warning:active:hover {
  border-color: var(--main-color-active);
  background-color: var(--main-color-active);
}

.btn-warning[disabled],
.btn-warning[disabled] {
  border-color: var(--main-color-highlight);
  background-color: var(--main-color);
  opacity: 0.5;
  filter: grayscale(0.8);
}

.btn-warning[disabled]:focus,
.btn-warning[disabled]:hover {
  border-color: var(--main-color-highlight);
  background-color: var(--main-color);
  opacity: 0.7;
  filter: grayscale(0.8);
}

.dropdown-menu > li > a {
  padding: 8px 20px;
}

.btn-grey {
  background-color: #ccc;
  border-color: transparent;
  color: #5d5d5d;
}

.btn-grey:hover {
  background-color: #adadad;
  border-color: transparent;
  color: #5d5d5d;
}

.btn-grey:focus {
  background-color: darkgrey;
  border-color: transparent;
  color: black;
}

.panel-yellow {
  border-color: var(--main-color);
  transition: all 0.5s ease;
}

.panel-yellow > .panel-heading {
  border-color: var(--main-color);
  background-color: var(--main-color);
  transition: all 0.3s ease;
  text-shadow: rgba(0, 0, 0, 0.15) 1px 1px 0;
}

select {
  background-color: white;
}

select:disabled {
  background-color: #eee;
}

body {
  background-color: #e6e6e6;
  font-family: var(--font-family);
  font-size: 13px;
  color: #585858;
}

hr {
  border: 0;
  color: var(--main-color);
  background-color: var(--main-color);
  height: 1px;
}

a {
  cursor: pointer;
}

/*OMBREGGIATURA*/
.shadow {
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.shadow-sticky {
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.45);
}

.title {
  background-color: var(--main-color);
  color: White;
  text-align: center;
}

/*TUTTE PAGINE.ASPX*/
.content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  color: #606060;
}

.btnMenu {
  /*  bottoni rettangolari per 
        usarli come menù*/
  width: 100%;
  max-width: 325px;
  height: 40px;
  margin-top: 8px;
}

.btnHalfMenu {
  /*  bottoni rettangolari per 
        usarli come menù*/
  width: 250px;
  height: 40px;
  margin-top: 8px;
}

.fixLeftSpan {
  float: left;
  text-align: right;
  width: 197px;
  min-width: 197px;
  margin-right: 8px;
  margin-top: 8px;
  display: block;
}

.leftText {
  text-align: left !important;
}

.centerText {
  text-align: center;
}

.rightText {
  text-align: right;
  padding-right: 3px;
}

.fixRightSpan {
  float: left;
  text-align: left;
  width: 545px;
  margin-top: 8px;
  display: block;
}

.fixCenterSpan {
  text-align: left;
  width: 545px;
  margin-top: 8px;
  display: block;
}

.SpanTitolo {
  color: #337ab7;
  text-align: Left;
  width: 98%;
  margin-top: 8px;
  margin-left: 8px;
  display: block;
}

.textbox_standard {
  width: 325px;
  min-width: 325px;
  max-width: 325px;
  font-size: larger;
  color: #606060;
}

.alignLeft {
  text-align: left;
}

.alignCenter {
  text-align: center;
}

.alignRight {
  text-align: right;
}

.infoGenerale {
  border: 1px solid #337ab7;
}

.failureNotification {
  color: Red;
}
/*------------*/
/*MANAGEUSERS.ASPX*/
.tableUtentiLeftTD {
  padding-right: 5px;
  text-align: right;
  width: 215px;
}

.tableUtentiRightTD {
  padding-left: 2px;
  width: 58px;
}

.greyText {
  color: #606060;
}

/*.find {
    background: url('../Images/find.JPG') no-repeat right top;
}

.combo {
    background: white url('../Images/combo.png') right center no-repeat;
}

.new {
    background: url('../Images/new.png') no-repeat right center;
}

.promo {
    background: url('../Images/promo.png') no-repeat right center;
}*/

.tableListArtLeftTD {
  padding-left: 5px;
  width: 60px;
}

.linkArt {
  text-decoration: none;
  display: block;
  color: #606060;
}

.linkHeadArtBlue {
  text-decoration: none;
  color: #337ab7;
  resize: horizontal;
  overflow: auto;
  font-size: 0.92em;
  font-weight: 500;
}

.linkHeadArtBlueNoResize {
  text-decoration: none;
  color: #337ab7;
  font-size: 0.92em;
  font-weight: 500;
}

.linkArtBlue {
  text-decoration: none;
  font-weight: normal;
  border-bottom: 1px solid #606060;
}

.rigaGridListaArticoli {
  height: 48px;
  font-weight: 400;
}

.divPopup {
  border: 1px solid var(--main-color);
  background-color: #f6f6f6;
}
/*------------*/
/*VIEWLASTORDER.ASPX*/

.tableLastOrdersLeftTD {
  padding-right: 10px;
  text-align: right;
  width: 179px;
  height: 20px;
  border-right: 1px solid Blue;
}

.tableLastOrdersRightTD {
  text-align: left;
  padding-left: 10px;
  width: 460px;
  height: 20px;
  color: #646464;
}

.table {
  margin-bottom: 6px;
}

.table-righe > tbody > tr > th {
  line-height: 12px;
}

/*ADDARTICLE.ASPX*/

.tableDettArtLeftTD {
  padding-left: 5px;
  text-align: left;
  width: 250px;
}

.tableDettArtRightTD {
  text-align: left;
  width: 150px;
}

.imgDett {
  max-width: 140px;
  max-height: 230px;
}

.txtAddArticle {
  width: 150px;
  text-align: left;
}

.Orange {
  color: var(--main-color);
}

.Navy {
  color: #337ab7;
}

/*MENU AUTOCOMPLETE*/
.ui-autocomplete {
  position: absolute;
  cursor: default;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #e3e3e3;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10000;
}

.ui-autocomplete-loading {
  background: white url('../Images/ui-anim_basic_16x16.gif') right center no-repeat;
}

* html .ui-autocomplete {
  width: 1px;
}

.ui-menu {
  list-style: none;
  padding: 0px;
  margin: 0;
  display: block;
  border: 1px solid #ddd;
}

.ui-menu .ui-menu {
  margin-top: -3px;
}

.ui-menu .ui-menu-item {
  margin: 0;
  padding: 0;
  float: left;
  clear: left;
  width: 100%;
  border: 1px solid transparent;
}

.ui-menu .ui-menu-item a {
  text-decoration: none;
  display: block;
  padding-top: 3px;
  padding-bottom: 3px;
  color: #606060;
  border-radius: 0;
}

.ui-widget {
  font-family: var(--font-family);
  font-size: 13.33333px;
}

.ui-menu .ui-menu-item a {
  line-height: 2;
}

.ui-menu-item a.ui-state-focus {
  border: 1px solid #fff0a3;
  background: #fff8d3 !important;
}

.ui-menu .ui-menu-item a.autocomplete-item {
  display: flex;
  font-size: 12px;
}

.autocomplete-cliente-label {
  flex: 1.5;
  margin-right: 8px;
}

.autocomplete-cliente-description {
  flex: 2;
}

.autocomplete-codice {
  flex: 0 0 21ch;
}

.autocomplete-descrizione {
  flex: 3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-prezzoVendita {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

/*.autocomplete-disponibilita {
    flex: 0 0 24px;
    text-align: right;
    height: 24px;
    display: inline-block;
}*/
.autocomplete-disponibilita {
  flex: 0 0 15ch;
  text-align: right;
}

.custom-combobox {
  position: relative;
  display: block;
}

.form-control.custom-combobox-input {
  padding-right: 32px;
}

.custom-combobox-toggle {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32px;
  height: 32px;
}

.custom-combobox-toggle::before {
  border-style: solid;
  border-width: 2px 2px 0 0;
  content: '';
  display: inline-block;
  height: 0.5em;
  left: 1.05em;
  position: relative;
  top: 1em;
  transform: rotate(135deg);
  vertical-align: top;
  width: 0.5em;
  color: #585858;
}

.divListino {
  visibility: hidden;
}

.hide {
  display: none;
}

.imgList {
  text-decoration: none;
  border-width: 0px;
  max-width: 24px;
  max-height: 24px;
  cursor: zoom-in;
}

.imgList-container {
  width: 28px;
  height: 28px;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.imgList-container > i {
  opacity: 1;
}

.input:disabled {
  background-color: #eee;
  cursor: not-allowed;
  opacity: 1;
}

.input:focus {
  outline: 0;
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.input,
.datepicker,
.consegna,
.order-item {
  width: 100%;
  padding: 4px;
  margin: 0px;
  height: 32px;
  border: 1px solid #e3e3e3;
  border-radius: 3px !important;
  font-weight: 400;
  /*background: transparent;*/
}

.datepicker {
  width: 110px;
}

.consegna {
  width: 120px;
}

.order-item {
  width: auto;
}

.input-error {
  border-color: #ca2929;
}

.input-warning {
  border-color: #ff9800;
}

.row > .Navy {
  line-height: 1;
}

.form-group {
  margin-bottom: 0px;
  margin: 0;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0 4px;
  margin: 0;
  border-radius: 3px;
  height: 32px;
  color: inherit;
  background-color: #fff;
  background-image: none;
  border: 1px solid #e3e3e3;
  font-weight: 400;
  box-shadow: unset;
  -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.input-codici {
  width: 120px;
}

.back-giallino {
  background-color: #fcf8e3 !important;
}

.btn:active {
  box-shadow: unset;
  -webkit-box-shadow: unset;
}

.panel.panel-yellow {
  border-radius: 4px;
  font-weight: 600;
}

.panel-yellow > .panel-heading {
  border-radius: 0;
  padding: 8px 15px;
}

.altriDatiLabel {
  margin-top: 7px;
}

#confermaRiga {
  height: 32px;
  width: 43.5px;
}

.noResize {
  resize: none;
}

.widthPerc2 {
  width: 2%;
  min-width: 44px;
  flex-grow: 1;
}

.widthPerc5 {
  width: 5%;
  min-width: 80px;
  flex-grow: 1;
}

.widthPerc10 {
  width: 10%;
  min-width: 100px;
  /*max-width: 140px;*/
  flex-grow: 1;
}

.widthPerc15 {
  width: 15%;
  min-width: 120px;
  flex-grow: 1;
}

.widthPerc20 {
  width: 20%;
  min-width: 140px;
  flex-grow: 1;
}

.widthPerc25 {
  width: 25%;
  min-width: 200px;
  flex-grow: 1;
}

.widthPerc30 {
  width: 30%;
  min-width: 220px;
  flex-grow: 1;
}

.widthPerc35 {
  width: 35%;
  min-width: 240px;
  flex-grow: 1;
}

.modal-dialog-centered {
  height: 25%;
  padding-top: 15%;
}

.verticalAlignCenter {
  vertical-align: middle !important;
}

.marginRight {
  margin-right: 2px;
}

.noBorder {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.ruolo-utente {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  border-radius: 50%;
  text-transform: capitalize;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.ruolo-utente-sm {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  display: inline-flex;
  font-size: 11px;
}

.ruolo-utente_cliente {
  border: 1px solid darkgreen;
  color: darkgreen;
}

.ruolo-utente_agente {
  border: 1px solid goldenrod;
  color: goldenrod;
}

.ruolo-utente_supervisore {
  border: 1px solid orangered;
  color: orangered;
}

.ruolo-utente_amministratore {
  border: 1px solid #cc0000;
  color: #cc0000;
}

.ruolo-utente_capoarea {
  border: 1px solid #2196f3;
  color: #2196f3;
}

.action-links {
  background-color: #f5f5f5;
  padding: 8px 4px;
  border: 1px solid #ddd;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.action-links > a {
  padding: 0 4px;
}

.action-links > a:last-child {
  border-right: 0;
}

.link-hover {
  color: #337ab7;
}

.link-hover:hover {
  color: #23527c;
}

/* WIZARD IMPORTAZIONE UTENTI */
.step-app > .step-content {
  padding: 10px 0 0 0;
}

.step-footer {
  padding-top: 10px;
}

.step-disabled {
  cursor: default;
}

.step-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-app > .step-steps > li.active a {
  background-color: #fff;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  border-radius: 3px;
}

.step-app > .step-steps > li:not(.active) a {
  background-color: ButtonFace;
  border: 2px solid transparent;
  color: #5d5d5d;
}

.step-app > .step-steps > li.done a {
  background-color: #28a745;
  border: 2px solid #28a745;
  color: white;
}

.step-app > .step-steps > li.error a {
  background-color: red;
  border: 2px solid red;
  color: white;
}

/* Totali ordine/offerta */
.totali-row {
  position: sticky;
  bottom: 23px;
}

.totali-row .totali-panel {
  margin-bottom: 0;
}

.totali-row .totali-body {
  display: flex;
  padding: 4px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.totali-row .totali-body .totali-totali,
.preview-totali {
  display: flex;
  flex-direction: row;
  flex: 1;
  align-items: center;
  justify-content: space-around;
}

.totali-row .totali-body .totali-totali .totali-totale,
.preview-totale {
  min-width: 92px;
  display: flex;
  flex-direction: column;
  padding: 4px;
}

.totali-row .totali-body .totali-buttons {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.totali-row .totali-body .totali-buttons button {
  margin-top: 0;
  width: auto;
  min-width: 92px;
  margin-left: 4px;
}

.table {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-radius: 3px;
}

.table > thead > tr > th {
  border-bottom: 0;
}

#listaOrdini th {
  font-size: 0.9em;
}

.label {
  white-space: pre-line;
  word-break: keep-all;
  width: 100%;
  padding: 0 0.2em 0.2em 0.2em;
  margin: 0.1em;
  min-height: 20px;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
}

.label:empty {
  display: flex;
}

.label + .label {
  margin-bottom: 0.2em;
}

.label-disp {
  height: 22px;
  width: 22px;
  display: block;
  margin-left: auto;
}

.td-stato {
  display: flex;
  width: 60px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45px;
}

/* DataTable */
table.dataTable {
  width: 100%;
}

table.dataTable .dt-center {
  text-align: center;
}

table.dataTable .dt-min:not(.sorting) {
  min-width: 180px;
}

table.dataTable .dt-right {
  text-align: right;
}

table.dataTable .dt-numeric {
  font-variant-numeric: tabular-nums;
}

table.dataTable > .table-head {
  background-color: #fcf8e3;
}

table.dataTable > .table-head > tr > th {
  border-top: 1px solid #ddd !important;
  border-bottom: 1px solid #ddd !important;
  font-size: 0.9em;
}

table.dataTable > tbody > tr:first-child > td {
  border-top: 0 !important;
}

table.dataTable:not(.dms) > tbody > tr:last-child > td {
  border-bottom: 1px solid #ddd;
}

table.dataTable.dms {
  border-bottom: 1px solid #ddd;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
  bottom: 3px;
}

table.dataTable.dtr-inline.collapsed > tbody > tr[role='row'] > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr[role='row'] > th:first-child:before {
  font-family: 'Font Awesome 5 Free';
  content: '\f138';
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: rgba(0, 0, 0, 0.5);
  top: 7px;
  cursor: pointer;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before {
  content: '\f13a';
}

table.dataTable > tbody > tr.child {
  padding: 0;
}

.dataTables_filter input {
  max-width: 200px;
}

#tablePagamenti_filter {
  text-align: center;
}

#tablePagamenti_showAll {
  text-align: right;
  margin-top: 5px;
}

.dataTables_length select {
  max-width: 52px;
  height: 32px;
}

table.dataTable > tbody > tr.child > td.child {
  padding: 0;
}

table.dataTable > tbody > tr.child ul.dtr-details {
  width: 100%;
  background: #f5f5f5;
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
  display: flex;
  padding: 0;
  border-bottom: 0;
}

table.dataTable > tbody > tr.child ul.dtr-details > li > span {
  line-height: 2;
  flex: 1;
}

table.dataTable > tbody > tr.child ul.dtr-details > li > span.dtr-title {
  padding-left: 30px;
  margin-left: 10px;
  font-weight: 600;
  border-left: 2px solid rgba(0, 0, 0, 0.5);
}

table.dataTable > tbody > tr.child ul.dtr-details > li > span.dtr-data {
  text-align: center;
}

table.dataTable tfoot tr td {
    border-bottom: 1px solid #ddd!important;
}

.checkbox input[type='checkbox'],
.checkbox-inline input[type='checkbox'],
.radio input[type='radio'],
.radio-inline input[type='radio'] {
    margin-left: 0;
}

#MainContent_testaEdit .Navy,
#filtri .Navy,
#MainContent_viewUser .Navy {
  height: 32px;
  font-weight: 600;
}

#MainContent_testaEdit .Navy .form-label,
#filtri .Navy .form-label,
#MainContent_viewUser .Navy .form-label {
  display: flex;
  height: 100%;
  align-items: center;
  font-size: 0.92em;
}

/* Inseritore righe */
.fi {
  box-sizing: border-box;
  border: 1px solid var(--main-color);
  display: flex;
  flex-wrap: wrap;
  background-color: #f6f6f6;
}

.fi input,
.fi select {
  background-color: #fff;
}

.fi .fi-container {
  display: flex;
}

.fi .fi-item {
  display: flex;
  flex-direction: column;
}

.fi .fi-item-label {
  height: 24px;
  padding: 4px 4px 4px 6px;
  font-size: 0.92em;
  font-weight: 500;
  color: #337ab7;
  background-color: #fcf8e3;
  border-bottom: 1px #ddd solid;
  border-top: 1px #ddd solid;
  border-right: 1px #ddd solid;
}

.fi .fi-item .input {
  margin: 4px 0;
}

#row-articolo > .fi-item-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#row-articolo > .fi-item-label > button {
  font-size: 0.8em;
  border: 0;
  line-height: 0.95;
  padding: 6px 4px;
  text-transform: uppercase;
  font-weight: bold;
}

#modalAssortimenti,
#modalPreview, #modalPreviewPagamenti {
  height: 100%;
  overflow-y: hidden;
  padding-right: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

body.modal-open #modalAssortimenti {
  pointer-events: auto;
}

.modalAssortimenti {
  display: flex;
  min-height: 70vh;
  max-height: 550px;
  flex-direction: column;
  width: calc(70% - 60px);
  margin: 30px;
  position: relative;
  overflow-y: auto;
  border-radius: 4px;
  background-color: #fff;
}

.modalass-title,
.modalpreview-title {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 24px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 3px -2px, rgba(0, 0, 0, 0.14) 0px 0px 4px 0px,
    rgba(0, 0, 0, 0.12) 0px 0px 8px 0px;
  z-index: 100;
}

.modalass-content {
  display: flex;
  padding: 4px 16px;
  flex: 1 1 auto;
  overflow-y: auto;
}

.modalass-footer {
  flex: 0 0 auto;
  display: flex;
  padding: 8px;
  align-items: center;
  justify-content: flex-end;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 3px -2px, rgba(0, 0, 0, 0.14) 0px 0px 4px 0px,
    rgba(0, 0, 0, 0.12) 0px 0px 8px 0px;
  z-index: 100;
}

#assortimenti-results {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#loading-assortimenti {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.simple-ass-container {
  padding: 0;
}

.simple-ass-item {
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  list-style: none;
  padding: 0 8px;
  outline: 1px solid transparent;
  transition: outline 50ms linear;
  min-height: 34px;
  border-bottom: 1px solid #ddd;
}

.simple-ass-item:hover,
.simple-ass-item:focus {
  outline: 1px solid var(--main-color);
}

.simple-ass-codice-desc {
  display: flex;
  flex-direction: column;
  flex: 1 1 100%;
  margin-right: 8px;
  border-right: 1px solid #ddd;
  min-height: 34px;
  font-size: 14px;
  justify-content: center;
}

.simple-ass-codice-desc > div {
  display: flex;
  min-height: 26px;
  flex-wrap: wrap;
}

.simple-ass-codice {
  display: flex;
  align-items: center;
  font-weight: 500;
  flex: 0 0 20ch;
}

.simple-ass-descrizione {
  display: flex;
  align-items: center;
  flex: 1 0 200px;
}

.simple-ass-note {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-style: italic;
  color: #585858;
}

.simple-ass-prezzoVendita {
  flex: 0 1 12ch;
  margin-right: 8px;
  border-right: 1px solid #ddd;
  display: flex;
  align-items: center;
  min-height: 34px;
  align-self: stretch;
}

.simple-ass-disponibilita {
  flex: 0 0 14ch;
  margin-right: 8px;
  display: flex;
  align-items: center;
  min-height: 34px;
}

.button-plus {
  background: white;
  border: 0;
  color: var(--main-color);
  align-self: center;
}

@media (max-width: 720px) {
  .modalAssortimenti {
    width: 100%;
    max-height: 85vh;
    margin: 0;
  }

  .modalass-content {
    padding: 4px 8px;
  }

  .modalass-footer {
    padding: 4px;
  }

  .simple-ass-item {
    padding: 0 4px;
  }
}

.fade-up {
  transform: translateY(5%);
  opacity: 0;
  transition: all 0.25s linear;
  display: flex !important;
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0%);
}

/* Modal Incasso*/

#modalIncasso,
#modalPreview,
#modalPreviewPagamenti {
    height: 100%;
    overflow-y: hidden;
    padding-right: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    /*z-index: -1;*/
    pointer-events: none;
}

body.modal-open.modalIncasso-open #modalIncasso,
body.modal-open.modalPreview-open #modalPreview,
body.modal-open.modalPreview-open #modalPreviewPagamenti {
    pointer-events: auto;
}

.modalIncasso {
  display: flex;
  min-height: 25vh;
  max-height: 550px;
  flex-direction: column;
  width: calc(25% - 60px);
  min-width: 320px;
  margin: 30px;
  position: relative;
  overflow-y: auto;
  border-radius: 4px;
  background-color: #fff;
}

.modalinc-title,
.modalpreview-title {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 24px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 3px -2px, rgba(0, 0, 0, 0.14) 0px 0px 4px 0px,
    rgba(0, 0, 0, 0.12) 0px 0px 8px 0px;
  z-index: 100;
}

.modalinc-content {
  display: flex;
  padding: 4px 16px;
  flex: 1 1 auto;
  overflow-y: auto;
}

.modalinc-footer {
  flex: 0 0 auto;
  display: flex;
  padding: 8px;
  align-items: center;
  justify-content: flex-end;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 3px -2px, rgba(0, 0, 0, 0.14) 0px 0px 4px 0px,
    rgba(0, 0, 0, 0.12) 0px 0px 8px 0px;
  z-index: 100;
}

table.payments .row-green,
table.payments .row-green:hover {
  background: #19c51957;
}

table.payments .row-yellow:not(.selected),
table.payments .row-yellow:not(.selected):hover {
  background: #f5ec83a6;
}

/**/

.modalPreview {
  display: flex;
  min-height: 85vh;
  max-height: calc(90vh - 60px);
  flex-direction: column;
  width: calc(95% - 60px);
  max-width: 1280px;
  margin: 30px;
  position: relative;
  overflow-y: auto;
  border-radius: 4px;
  background-color: #fff;
}

.modalpreview-content {
  flex: 1;
  font-size: 14px;
  padding-top: 1rem;
  max-width: 100%;
}

#modalpreview-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.modalpreview-content-wrapper {
  display: flex;
  padding: 4px 24px;
  flex: 1 1 auto;
  overflow-y: auto;
  /*align-items: center;*/
}

#modalPreview[data-loaded] .modalpreview-content-wrapper {
  align-items: flex-start;
}

.modalpreview-footer {
  flex: 0 0 auto;
  display: flex;
  padding: 8px;
  align-items: center;
  flex-direction: column;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 3px -2px, rgba(0, 0, 0, 0.14) 0px 0px 4px 0px,
    rgba(0, 0, 0, 0.12) 0px 0px 8px 0px;
  z-index: 100;
}

.modalpreview-buttons {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.modalpreview-head {
  display: flex;
  flex-wrap: wrap;
}

.preview-column {
  flex: 1 1 400px;
}

.preview-field {
  display: flex;
  align-items: baseline;
  min-height: 24px;
  padding-bottom: 6px;
}

.preview-label {
  padding: 4px 8px;
  min-height: 24px;
  min-width: 124px;
  display: flex;
  opacity: 0.7;
  font-size: 0.85em;
  font-weight: 500;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 1.2em;
  text-align: right;
}

.preview-text-code {
  font-size: 0.8em;
  font-weight: 500;
  display: inline-block;
  background: #fafafa;
  padding: 0 2px;
  border-radius: 2px;
}

.preview-table {
  grid-column: span 2;
  margin: 3rem 0;
  overflow-x: auto;
}

.preview-table > table {
  width: 100%;
  min-width: 780px;
}

.preview-table thead th {
  opacity: 0.7;
  font-size: 0.8em;
  font-weight: 500;
  padding: 4px 8px;
  background-color: #f0f0f0;
}

.preview-table tbody td {
  padding: 4px 8px;
  font-size: 0.9em;
}

.preview-totali {
  width: 100%;
}

.preview-totale {
  font-weight: bold;
  font-size: 14px;
}

.preview-totale > small {
  opacity: 0.6;
}

@media (max-width: 720px) {
  .modalPreview {
    width: 100%;
    max-height: 85vh;
    margin: 0;
  }

  .modalpreview-content-wrapper {
    padding: 4px 8px;
  }

  .modalpreview-content {
    padding: 4px 8px;
  }

  .preview-table {
    margin: 2rem -8px;
  }

  .modalpreview-footer {
    padding: 4px;
  }
}

@media (max-width: 480px) {
  .modalPreview {
    min-height: 95vh;
    max-height: calc(100vh - 60px);
  }

  .modalpreview-content {
    padding: 0;
  }

  .preview-field {
    flex-direction: column;
    padding-bottom: 2px;
  }

  .preview-label {
    padding: 0;
    justify-content: flex-start;
  }

  .preview-table > table {
    min-width: unset;
  }

  .preview-table tbody tr {
    display: grid;
    grid-template-columns: auto;
    padding: 4px;
  }

  .preview-table tbody td {
    padding: 2px 12px;
  }

  .preview-table tbody td[data-col]:before {
    content: attr(data-col) '  ';
    font-weight: 500;
    font-size: 0.85em;
    opacity: 0.8;
    align-items: center;
    min-width: 16ch;
    display: inline-block;
  }

  .preview-table tbody td[data-col='Riga'] {
    background-color: #f0f0f0;
    opacity: 0.8;
  }

  .preview-table tbody td[data-col='Riga']:before {
    display: inline;
    opacity: 0.8;
    font-weight: 500;
  }

  .preview-table tbody td[data-col='Articolo'],
  .preview-table tbody td[data-col='Nota'] {
    display: flex;
    align-items: center;
  }

  .preview-table thead {
    display: none;
  }
}
/*.ass-item {
    transition: background-color 200ms linear;
    text-align: left;
    font-size: 14px;
    display: grid;
    grid-template-columns: 10rem 1fr 12rem 12rem 10rem 10rem 10rem;
    grid-gap: 0 0.5rem;
    grid-template-rows: 10rem;
    padding: 8px 12px;
    border-radius: 4px;
    border-bottom: 2px solid transparent;
}

    .ass-item button:focus {
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
    }

.ass-image {
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

    .ass-image > img {
        object-fit: cover;
        width: 10rem;
        height: 10rem;
    }

    .ass-image > i {
        opacity: 0.5;
        font-size: 1.2em;
    }

.ass-description {
    display: flex;
    flex-direction: column;
}

    .ass-description > div:nth-child(2) > div.ass-label {
        margin-top: 4px;
    }

    .ass-label {
        text-transform: uppercase;
        font-weight: 500;
        opacity: 0.6;
        font-size: 0.9rem;
    }

.ass-qty, .ass-uom, .ass-prezzi {
    display: flex;
    flex-direction: column;
    text-align: center;
}
.ass-qty-input-container, .ass-uom-input-container, .ass-prezzi-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 0;
}
.ass-qty-input-btn {
    appearance: none;
    display: flex;
    min-height: 2rem;
    min-width: 2rem;
    border-radius: 2rem;
    font-weight: bold;
    justify-content: center;
    border: 0;
    padding: 0;
    line-height: 120%;
}

.ass-qty-input-btn-minus {
    margin-right: 0.25rem;
}
.ass-qty-input-btn-plus {margin-left: 0.25rem;}

.ass-qty input {
    font-size: 2rem;
    width: 5ch;
    height: 40px;
    text-align: center;
}

.ass-prezzi input {
    height: 40px;
    font-size: 1.4rem;
}

.nice-select.input {
    line-height: 32px;
    height: 40px;
}

.last-selected {
    border-bottom: 2px solid var(--main-color);
}

.ass-modified {
    background-color: #f7f7f7;
}

@media (max-width: 920px) {
    .ass-item {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: 3.5rem 5rem;
    }

    .ass-image {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .ass-description {
        flex-direction: row;
        grid-column: 2 / 7;
        grid-row: 1;
    }

    .ass-description span {
        font-size: 1.2rem;
    }

        .ass-description > div:first-child {
            flex-basis: 14rem;
            margin-right: 8px;
        }

        .ass-description > div:nth-child(2) > div.ass-label {
            margin-top: 0;
        }

    .ass-qty {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .ass-uom {
        grid-column: 3 / 4;
        grid-row: 2;
    }

    .ass-item:nth-child(5) {
        grid-column: 3 / 4;
        grid-row: 2;
    }

    .ass-item:nth-child(6) {
        grid-column: 4 / 5;
        grid-row: 2;
    }

    .ass-item:nth-child(7) {
        grid-column: 5 / 6;
        grid-row: 2;
    }
}*/
/* Hamburger */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  height: 36px;
  width: 36px;
  cursor: pointer;
}

.hamburger-menu .bar {
  height: 4px;
  background: #888;
  border-radius: 4px;
  margin: 3px 0px;
  transform-origin: -0.5%;
  transition: all 0.5s;
}

button.navbar-toggle {
  padding: 4px;
  margin-top: 2px;
  margin-bottom: 2px;
}

button.navbar-toggle[aria-expanded='true'] .hamburger-menu .top {
  transform: rotate(45deg) translateX(4px) translateY(-3px);
  background: var(--main-color);
}

button.navbar-toggle[aria-expanded='true'] .hamburger-menu .middle {
  opacity: 0;
}

button.navbar-toggle[aria-expanded='true'] .hamburger-menu .bottom {
  transform: rotate(-45deg) translateX(3px) translateY(4px);
  background: var(--main-color);
}

/* Datepicker */
.ui-datepicker-trigger {
  position: absolute;
  left: 100px;
  top: 6px;
  height: 20px;
  width: auto;
  cursor: pointer;
}

.ui-widget-content {
  border: 1px solid #ddd;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.3);
}

.ui-datepicker-header {
  border-radius: 0;
  background: var(--main-color);
  border: 0;
  color: white;
}

.ui-datepicker-prev span.ui-icon,
.ui-datepicker-next span.ui-icon {
  background-image: none;
}

.ui-datepicker-prev:before {
  content: '\f104';
  font-family: 'Font Awesome 5 Free';
  position: absolute;
  left: 7px;
  bottom: 2px;
  color: white;
}

.ui-datepicker-next:before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  position: absolute;
  right: 7px;
  bottom: 2px;
  color: white;
}

.ui-datepicker-next.ui-datepicker-next-hover,
.ui-datepicker-prev.ui-datepicker-prev-hover {
  background: none;
  border: 0;
  top: unset;
}

.ui-datepicker-prev.ui-datepicker-prev-hover {
  left: 2px;
  bottom: 2px;
}

.ui-datepicker-next.ui-datepicker-next-hover {
  right: 2px;
  bottom: 2px;
}

.ui-datepicker-calendar .ui-state-default {
  background: none;
  border: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.ui-datepicker-calendar .ui-state-default.ui-state-active {
  border: 2px solid var(--main-color);
}

.ui-datepicker-calendar .ui-state-default.ui-state-highlight {
  background: #ddd;
}

.ui-datepicker-buttonpane > button.ui-state-default {
  color: #5d5d5d;
  font-weight: normal;
  padding: 6px 12px;
  background: #ccc;
}

.ui-datepicker-buttonpane > button.ui-state-default:hover {
  background: #adadad;
  border-color: transparent;
  color: #5d5d5d;
}

.ui-datepicker-buttonpane > button.ui-state-default:active {
  color: black;
}

#tipiDocGroup > li > a,
#eserciziGroup > li > a {
  transition: border-color 0.4s ease;
}

#tipiDocGroup > li.active > a,
#eserciziGroup > li.active > a {
  color: #337ab7;
  background-color: #fff;
  border: 2px solid;
}

#tipiDocGroup > li > a,
#eserciziGroup > li > a {
  border: 2px solid transparent;
  padding: 2px 8px;
}

#scrollToTop {
  display: block;
  text-align: center;
  background-color: var(--main-color);
  line-height: 42px;
  width: 42px;
  height: 42px;
  border-radius: 3px;
  position: fixed;
  bottom: 3rem;
  right: 2rem;
  transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

#scrollToTop:hover,
#scrollToTop:active {
  cursor: pointer;
  background-color: var(--main-color-highlight);
  text-decoration: none;
}

#scrollToTop.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTop::after {
  content: '\f077';
  font-family: 'Font Awesome 5 Free';
  font-weight: normal;
  font-style: normal;
  font-size: 1.5em;
  color: #fff;
}

/* Rubrica */
.tabs {
  display: flex;
  margin-left: 12px;
}

button.tab-button {
  position: relative;
  appearance: none;
  padding: 8px 16px;
  border: 1px solid #ddd;
  display: flex;
  align-items: baseline;
  border-radius: 3px;
}

button.tab-button#btn-mappa {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

button.tab-button#btn-lista {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

button.tab-button.tab-button-active {
  font-weight: bold;
  color: var(--main-color);
}

button.tab-button.tab-button-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  display: block;
  background-color: var(--main-color);
  margin: auto;
}

button.tab-button > i {
  margin-right: 6px;
}

.listCustomers tr:hover {
  background-color: hsl(240deg 5% 98%);
}

.listCustomers tr td {
  padding: 8px 6px;
  border-radius: 6px;
}

.listCustomers tr td .cust-row {
  display: flex;
  align-items: center;
}

.listCustomers tr td .cust-row > a {
  margin-left: 8px;
  text-decoration: none;
}

.listCustomers tr td .cust-row i {
  color: #527898;
}

.listCustomers tr td .cust-row strong {
  font-size: 1.1em;
}

.listCustomers tr td .cust-row small {
  margin-left: 8px;
}

.cust-info {
  line-height: 1.5;
}

.cust-info strong {
  font-size: 1.1em;
}

.cust-info small {
  margin-left: 8px;
}

.listCustomers tr td a div:nth-child(2) {
  flex: 1;
}

.listCustomers tr td a div:nth-child(3) {
  flex: 0;
}

#map {
  width: 100vw;
  margin-left: calc(50% - 50vw - 1px);
  height: calc(100vh - 213px);
}

.select-esercizio {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 5px;
  margin-left: 5px;
  position: sticky;
  top: -1px;
  padding: 5px 10px;
  z-index: 200;
  background: white;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: box-shadow 0.2s;
}

.chart-spinner,
.table-spinner {
  position: absolute;
  opacity: 0.5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.table-spinner[data-loading='true'] + div {
  opacity: 0.5;
  pointer-events: none;
}

.table-spinner[data-loading='false'] + div {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1080px) {
  .col-chart {
    width: 100%;
  }
}

.sedi-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 8px;
  margin-bottom: 3rem;
  border: 1px solid #ddd;
  padding: 8px;
  max-height: 640px;
  overflow-y: auto;
  border-radius: 6px;
}

.sede-card {
  padding: 0.5rem 1.25rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.sede-card i {
  margin-right: 4px;
  opacity: 0.6;
  width: 16px;
}

.sede-card > div {
  display: flex;
  align-items: baseline;
  padding: 2px 0;
}

.sede-card > div > span,
.profile-label {
  font-weight: 600;
  opacity: 0.85;
}

.sede-card > div > div {
  margin-left: 4px;
}

.profile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
}

.profile-field {
  display: flex;
}

.profile-label {
  min-width: 136px;
  display: inline-block;
}

.profile-label i {
  margin-right: 4px;
  width: 16px;
  opacity: 0.6;
}

.profile-text {
  font-weight: normal;
}

.non-disponibile {
  opacity: 0.7;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.3px;
}

@media (max-width: 720px) {
  .sede-card > div,
  .profile-field {
    flex-direction: column;
  }

  .profile-field {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .profile-row {
    display: flex;
    flex-direction: column;
  }

  .profile-field {
    margin-top: 4px;
  }
}

/* LOGIN */
.login {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  background: white;
  max-width: 400px;
  margin: auto;
}

.login .login-image {
  background: #f3f3f3;
  border-radius: 6px;
  padding: 1rem 8rem;
}

.login .login-form {
  background: white;
  padding: 2rem;
  border-radius: 6px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-self: center;
}

.login .login-form h3 {
  color: grey;
}

.login .login-form fieldset {
  margin-top: 2rem;
}

.login .login-image h2 {
  text-align: center;
  color: var(--main-color);
}

/* MOBILE */
@media (max-width: 480px) {
  .col-lg-12,
  .col-md-12,
  .col-sm-12,
  .col-xs-12,
  .col-lg-10,
  .col-md-10,
  .col-sm-10,
  .col-xs-10,
  .col-lg-7,
  .col-md-7,
  .col-sm-7,
  .col-xs-7,
  .col-lg-6,
  .col-md-6,
  .col-sm-6,
  .col-xs-6,
  .col-lg-3,
  .col-md-3,
  .col-sm-3,
  .col-xs-3,
  .col-lg-4,
  .col-md-4,
  .col-sm-4,
  .col-xs-4,
  .col-lg-2,
  .col-md-2,
  .col-sm-2,
  .col-xs-2 {
    padding-left: 8px;
    padding-right: 8px;
  }

  div.panel-body {
    padding: 8px;
  }

  .totali-row .totali-body .totali-buttons {
    flex-wrap: wrap;
  }

  .totali-row .totali-body .totali-buttons button {
    margin-left: 2px;
    margin-bottom: 2px;
  }

  .ui-datepicker-trigger {
    left: 94px;
  }

  #thead-prezzoNetto,
  #thead-nota,
  #thead-tipoVendita,
  #thead-disponibilita,
  #tbody-prezzoNetto,
  #tbody-nota,
  #tbody-tipoVendita,
  #tbody-disponibilita {
    display: none;
  }

  /*  .tab-responsive:not(.dms) > tbody > tr:first-child,
  .tab-responsive.dms > thead > tr:first-child {
    display: none;
  }*/

  .tab-responsive > tbody > tr {
    display: flex;
    flex-direction: column;
  }

  .tab-responsive > tbody > tr > td {
    width: auto !important;
    text-align: left;
    padding: 0;
    display: inherit;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 36px;
    font-size: 0.9em;
    gap: 0 2px;
  }

  .tab-responsive > tbody > tr > td > span {
    align-items: center;
  }

  .tab-responsive > tbody > tr > td > .label {
    width: initial;
  }

  .label + .label {
    margin-bottom: 0;
  }

  #listaOrdini {
    border: 0;
  }

  #listaOrdini > table {
    border: 0;
  }

  .tab-responsive > tbody > tr {
    border: 1px solid #ddd;
    margin-bottom: 8px;
  }

  td[data-col='Ordine'] br,
  td[data-col='Consegna'] br {
    content: ' ';
  }

  td[data-col='Tracking'] > a[style] {
    padding: 0 8px !important;
  }

  td > [data-col='Cliente'] {
    display: flex;
  }

  td > [data-col='Apri'] i {
    font-size: 1.4em;
  }

  span.td-data + br {
    margin-left: 0.5em;
  }

  .truncate-overflow {
    display: inline-block;
    width: calc(100vw - 16px - 68px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  table.dataTable.dms {
    border-bottom: 0;
  }

  .dms .truncate-overflow {
    display: inline-block;
    width: calc(100vw - 16px - 52px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tab-responsive.dms > tbody > tr > td > :first-child:before {
    content: attr(data-col) '  ';
    font-weight: 500;
    font-size: 0.85em;
    color: #555;
    min-width: 56px;
    background: #f5f5f5;
    display: inline-flex;
    align-items: center;
    border-right: 1px solid #ddd;
    margin-right: 4px;
    padding: 2px;
    min-height: 36px;
  }

  .tab-responsive.dms > tbody > tr > td {
    border-top: 0;
  }

  .tab-responsive.viewDocument > tbody > tr > td[data-col]:before {
    content: attr(data-col) '  ';
    font-weight: 500;
    font-size: 0.85em;
    color: #555;
    min-width: 62px;
    background: #f5f5f5;
    display: inline-flex;
    align-items: center;
    border-right: 1px solid #ddd;
    margin-right: 4px;
    padding: 4px;
    min-height: 36px;
  }

  .tab-responsive > tbody > tr > td:last-child:not([data-col]) {
    display: inline-block;
  }

  .tab-responsive > tbody > tr > td:last-child > span {
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    justify-content: flex-start;
  }

  .action-links {
    padding: 4px 4px;
  }

  .action-links a:not(:last-child) {
    margin-right: 1em;
  }

  .action-links > a {
    padding: 8px 4px 0 4px;
  }

  .action-links a > i {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .action-links a > i:after {
    content: attr(title);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 3px;
  }

  .ui-menu .ui-menu-item {
    border-bottom: 1px solid #ddd;
  }

  .ui-menu .ui-menu-item:last-child {
    border-bottom: 0;
  }

  .autocomplete-item {
    flex-direction: column;
  }

  .autocomplete-cliente-label {
    flex: 1;
    margin-right: 0;
  }

  .autocomplete-cliente-description {
    flex: 1;
  }

  .autocomplete-codice {
    flex: 1;
  }

  .autocomplete-descrizione {
    flex: 1;
  }

  .autocomplete-prezzoVendita {
    flex: 1;
  }

  .autocomplete-disponibilita {
    flex: 1;
    text-align: left;
    display: flex;
  }

  .autocomplete-prezzoVendita:before,
  .autocomplete-disponibilita:before {
    content: attr(data-label);
    color: #888;
  }
}

@media (max-width: 720px) {
  .totali-col {
    padding-left: 0;
    padding-right: 0;
  }

  .totali-panel {
    border-width: 1px 0;
  }

  .totali-row .totali-body .totali-buttons {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  #MainContent_testaEdit .Navy,
  #filtri .Navy,
  #MainContent_viewUser .Navy {
    height: 18px;
  }

  .navbar-default .navbar-nav > li > a.active:after {
    display: none;
  }
}

/* Filtri tabella visualizza ordini/offerte */
.pagination-container {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 24px;
}

.paginationjs-pages,
.paginationjs-pages > ul {
  display: flex;
}

.paginationjs-pages > ul > li {
  list-style: none;
  padding: 6px 12px;
  font-weight: 600;
  border-color: #ddd;
  border-width: 1px;
  border-style: solid;
}

.paginationjs-pages > ul > .paginationjs-prev {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.paginationjs-pages > ul > .paginationjs-next {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.paginationjs-pages > ul > .paginationjs-page {
  position: relative;
  margin-left: -1px;
  border-right: 0;
}

.paginationjs-pages > ul > .paginationjs-page:hover {
  background-color: #eee;
}

.paginationjs-pages > ul > .paginationjs-page.active {
  cursor: default;
  background-color: #337ab7;
  border-color: #337ab7;
}

.paginationjs-pages > ul > .paginationjs-page.active > a {
  cursor: default;
  color: #fff;
}

.paginationjs-pages > ul > li > a {
  text-decoration: none;
}

.paginationjs-pages > ul > li > a:hover,
.paginationjs-pages > ul > li:hover > a {
  color: #23527c;
}

.paginationjs-pages > ul > li,
.paginationjs-pages > ul > li > a {
  cursor: pointer;
}

.paginationjs-pages > ul > .paginationjs-prev:hover,
.paginationjs-pages > ul > .paginationjs-prev:active,
.paginationjs-pages > ul > .paginationjs-next:hover,
.paginationjs-pages > ul > .paginationjs-next:active {
  background-color: #eee;
}

.paginationjs-pages > ul > .paginationjs-prev.disabled > a,
.paginationjs-pages > ul > .paginationjs-next.disabled > a {
  color: #777;
  cursor: not-allowed;
  background-color: #fff;
  border-color: #ddd;
}

.paginationjs-pages > ul > .paginationjs-prev.disabled,
.paginationjs-pages > ul > .paginationjs-next.disabled {
  cursor: not-allowed;
  background-color: #fff;
  border-color: #ddd;
}

.paginationjs-pages > ul > .paginationjs-prev.disabled > a,
.paginationjs-pages > ul > .paginationjs-next.disabled > a {
  color: #777;
  cursor: not-allowed;
  background-color: #fff;
  border-color: #ddd;
}

.orders_options {
  display: flex;
  justify-content: space-between;
}

.orders_filter,
.orders_pageSize {
  display: flex;
  justify-content: flex-end;
}

.orders_filter > label,
.orders_pageSize > label {
  display: flex;
  align-items: center;
  font-weight: 400;
}

.orders_filter > label > input,
.orders_pageSize > label > select {
  margin-left: 4px;
}

/* Lightbox */

.lightbox {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease-in;
}

.lightbox.lightbox-show {
  background-color: rgba(0, 0, 0, 0.85);
  opacity: 1;
  visibility: visible;
  z-index: 1000;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox.lightbox-show,
.lightbox.lightbox-show .imgList {
  cursor: zoom-out;
}

.lightbox .close-lightbox {
  cursor: pointer;
  position: absolute;
  top: 30px;
  right: 50px;
  width: 20px;
  height: 20px;
}

.lightbox .close-lightbox::after,
.lightbox .close-lightbox::before {
  content: '';
  width: 3px;
  height: 20px;
  background-color: #ddd;
  position: absolute;
  border-radius: 5px;
  transform: rotate(45deg);
}

.lightbox .close-lightbox::before {
  transform: rotate(-45deg);
}

.lightbox .close-lightbox:hover::after,
.lightbox .close-lightbox:hover::before {
  background-color: #fff;
}

.condizione-pagamento {
  padding: 6px 4px;
}

/* Articoli più venduti */
.elencoArticoliPiuVenduti-container {
  overflow-y: hidden;
  display: flex;
  flex: 1;
}

.elencoArticoliPiuVenduti {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  background: #fff;
}

.elencoArticoliPiuVenduti .articoloPiuVenduto + .articoloPiuVenduto {
  margin-top: 4px;
}

.nessunArticoloPiuVenduto {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 4rem;
  font-size: 14px;
  font-weight: 500;
  color: #888;
}

#chiudiArticoliInevasiButton {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.5rem;
  width: 1.5rem;
  padding: 1.5rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

#chiudiArticoliInevasiButton:hover {
  background: #e7e7e7;
}

#chiudiArticoliInevasiButton:focus {
  outline: none;
  box-shadow: 0 0px 0px 2px rgb(102 175 233 / 40%);
}

.articoloPiuVenduto {
  all: initial;
  font-family: var(--font-family);
  cursor: pointer;
  color: rgb(88, 88, 88);
}

.articoloPiuVenduto .checkbox {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.articoloPiuVenduto .articoloPiuVenduto-content {
  width: 100%;
  display: flex;
  /*        display: grid;
        grid-template-columns: 68px 1fr;
        grid-template-rows: auto auto;*/
  align-items: center;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  padding: 0.75rem;
  background-color: #fff;
}

.articoloPiuVenduto:hover .articoloPiuVenduto-content {
  background-color: rgb(0 137 255 / 4%);
}

.articoloPiuVenduto .checkbox:checked + .articoloPiuVenduto-content {
  border-color: #337ab7;
  color: #337ab7;
  background-color: rgb(0 137 255 / 7%);
  box-shadow: inset 0px 0px 0px 1px #337afa;
}

.articoloPiuVenduto input:focus + .articoloPiuVenduto-content {
  outline: 0;
  box-shadow: inset 0 0px 0px 2px rgb(102 175 233 / 40%);
}

.articoloPiuVenduto .qty {
  padding-right: 4px;
  font-size: 13px;
  /*min-width: 68px;*/
  text-align: center;
  display: flex;
  align-self: stretch;
  align-items: center;
  /*align-content: center;
        height: 100%;*/
}

.articoloPiuVenduto .netPrice {
  font-size: 13px;
}

.articoloPiuVenduto .disponibilita {
  font-size: 10px;
  opacity: 0.8;
  text-align: center;
}

.articoloPiuVenduto .item {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-grow: 2;
}

.articoloPiuVenduto .item .item-data {
  display: flex;
  align-items: center;
  font-size: 11px;
  gap: 4px;
  opacity: 0.8;
}

.articoloPiuVenduto .item .item-code {
  font-size: 13px;
  /*background-color: rgb(0 0 0 / 3%);*/
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 500;
}

.articoloPiuVenduto .description {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
}

.confermaArticoliPiuVenduti {
  padding: 0.9rem 1.5rem;
  display: flex;
  background: #f8f8f8;
  border-top: 1px solid #e7e7e7;
  align-items: center;
  justify-content: space-between;
}

#confermaArticoliPiuVendutiButton:focus {
  outline: none;
  box-shadow: 0 0px 0px 2px rgb(102 175 233 / 40%);
}

#articoliPiuVendutiSelected {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#articoliPiuVendutiSelected span:first-child {
  color: #337ab7;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#selezionaTuttiArticoliPiuVenduti {
  border: 0;
  background-color: transparent;
  color: #888;
  border-radius: 6px;
  padding: 4px 8px;
}

#selezionaTuttiArticoliPiuVenduti:hover {
  background: #e7e7e7;
}

#selezionaTuttiArticoliPiuVenduti:focus {
  outline: none;
  box-shadow: 0 0px 0px 2px rgb(102 175 233 / 40%);
}

#ButtonShowArticoliPiuVenduti {
  display: none;
}

.content-container {
  display: flex;
  position: relative;
}

#chiudiArticoliPiuVendutiButton {
  display: none;
}

.articoliPiuVenduti {
  position: sticky;
  top: 0px;
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  height: calc(100vh - 22.56px - 71px - 18px);
  right: 0;
  background-color: #fff;
  transform: none;
  box-shadow: none;
  border: 1px solid var(--main-color);
  margin-left: 12px;
  margin-top: 37px;
  border-radius: 4px;
  overflow-y: hidden;
}

.articoliPiuVenduti .articoliPiuVenduti-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10.5px 15px;
  border-top: none;
  border-bottom: none;
  background-color: var(--main-color);
}

.articoliPiuVenduti .articoliPiuVenduti-title h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-shadow: rgba(0, 0, 0, 0.15) 1px 1px 0;
}

.articoliPiuVenduti[data-show='true'] {
  display: flex;
}

.articoliPiuVenduti[data-open='true'] {
  transform: none;
}

/* E-Commerce */
#ecommerce {
  display: flex;
}
.ecommerce-items-container {
  flex: 1;
  padding: 20px 20px;
  padding-top: 0;
  padding-bottom: 30px;
  max-height: calc(100vh - 73px);
  overflow-y: auto;
}
.ecommerce-items-container > h2 {
  margin-top: 0;
}
#ecommerce-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-auto-rows: 400px;
  grid-gap: 2rem;
}
.ecommerce-item {
  overflow: hidden;
  border: 1px solid rgba(0 0 0 / 0.1);
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
}
.ecommerce-item-image {
  padding: 10px;
  padding-bottom: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-items: center;
  justify-content: center;
}
.ecommerce-item-image button {
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  width: 33px;
  border: 1px solid #ddd;
  transition: background 0.2s linear;
}
.ecommerce-item-image button:hover {
  background: rgba(255, 255, 255, 1);
}
.ecommerce-item-image-left {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  left: 10px;
}
.ecommerce-item-image-right {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  right: 10px;
}
.ecommerce-item-image-placeholder {
  height: 200px;
  width: 100%;
  border-radius: 4px;
  background: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ecommerce-item-image-placeholder i {
  font-size: 6rem;
  color: white;
}
.ecommerce-item-image img {
  display: block;
  height: 100%;
  width: auto;
  border-radius: 4px;
  cursor: zoom-in;
}
.ecommerce-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ecommerce-item-info {
  padding: 10px;
  padding-bottom: 0;
  font-weight: 600;
  font-size: 1.4rem;
  white-space: pre-line;
  line-clamp: 3;
  overflow: hidden;
}
.ecommerce-item-info > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ecommerce-item-codice {
  color: #888;
  font-family: monospace;
}
.ecommerce-item-categoria {
  color: #888;
  font-size: 1.2rem;
}
.ecommerce-item-bottom {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ecommerce-item-bottom > div {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecommerce-item-bottom > div > div:first-child {
  flex: 1;
}
.ecommerce-item-bottom > button {
  all: unset;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--main-color);
  background-color: white;
  transition: all 0.3s ease;
  color: var(--main-color);
  text-align: center;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 1.5rem;
  font-weight: 600;
}
.ecommerce-item-bottom > button:hover {
  border: 1px solid var(--main-color-highlight);
  background-color: #eee;
  color: var(--main-color-highlight);
}
.ecommerce-item-bottom > button:focus {
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.ecommerce-item-bottom > button:active {
  background-color: #ddd;
}
.ecommerce-item-bottom > button > i {
  margin-right: 1rem;
}
.ecommerce-item-price {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--main-color);
}
.ecommerce-item-price > span {
  font-size: 1.5rem;
  font-weight: 600;
}
.ecommerce-item-qty {
  width: 12rem;
  display: flex;
  border: 1px solid #ddd;
  align-items: center;
  border-radius: 4px;
}
.ecommerce-item-qty button {
  all: unset;
  display: block;
  cursor: pointer;
  box-sizing: border-box;
  background-color: #ddd;
  transition: all 0.3s ease;
  color: var(--main-color);
  text-align: center;
  border-radius: 2px;
  font-size: 2rem;
  font-weight: 600;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: end;
  justify-content: center;
  user-select: none;
}
.ecommerce-item-qty button:hover {
  background-color: #e7e7e7;
}
.ecommerce-item-qty button:active {
  background-color: #d4d4d4;
}
.ecommerce-item-qty .ecommerce-qty-dec {
  margin-left: 4px;
}
.ecommerce-item-qty .ecommerce-qty-inc {
  margin-right: 4px;
}
.ecommerce-item-qty input {
  border: 0;
  text-align: center;
  padding: 4px;
  height: 32px;
}
.ecommerce-item-qty input::-webkit-outer-spin-button,
.ecommerce-item-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ecommerce-mobile-show-categories {
  all: unset;
  display: none;
  color: #666;
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: underline;
}
.mobile-categories-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
#ecommerce-nav {
  width: 100%;
  max-width: 30rem;
  z-index: 1;
  max-height: calc(100vh - 73px);
  overflow-y: auto;
  padding: 25px 10px;
}
#ecommerce-nav .sidebar-nav .dropdown-menu {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  float: unset;
}
#ecommerce-nav .dropdown-menu > li > a,
#ecommerce-nav .nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  color: #585858;
  font-size: 14px;
  border-radius: 4px;
  padding: 10px;
}
#ecommerce-nav .dropdown-menu > li > a > span,
#ecommerce-nav .nav > li > a > span {
  text-wrap: wrap;
  pointer-events: none;
}
#ecommerce-nav .dropdown-menu > li > a:focus,
#ecommerce-nav .dropdown-menu > li > a:hover,
#ecommerce-nav .nav > li > a:focus,
#ecommerce-nav .nav > li > a:hover {
  background-color: #f5f5f5;
}
#ecommerce-nav .dropdown-menu > li > a[data-selected='true'],
#ecommerce-nav .dropdown-menu > li > a[data-selected='true'],
#ecommerce-nav .nav > li > a[data-selected='true'],
#ecommerce-nav .nav > li > a[data-selected='true'] {
  background-color: var(--main-color);
  color: white;
}
.ecommerce-category-chevron {
  padding: 3px;
  border-radius: 3px;
  transition: 0.2s ease;
}
.ecommerce-category-chevron:hover {
  background-color: #ffffff33;
}
#ecommerce-nav .dropdown-toggle[aria-expanded='true'] i {
  transform: rotate(-180deg);
}
#ecommerce-pagination a {
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: center;
}
#ecommerce-pagination li.active a {
  background-color: var(--main-color);
  border-color: var(--main-color-highlight);
}
.ecommerce-cart {
  display: flex;
  flex-shrink: 0;
  align-items: end;
  position: relative;
  color: #666;
  font-weight: 600;
  font-size: 1.5rem;
}
.ecommerce-cart:hover {
  text-decoration: none;
}
.ecommerce-cart i {
  font-size: 3.5rem;
}
.ecommerce-cart span:last-child {
  position: absolute;
  right: -10px;
  top: -10px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  background-color: var(--main-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ecommerce-top-bar {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0 2rem;
  margin-bottom: 1rem;
}
.ecommerce-search {
  max-width: 50%;
  min-width: 320px;
  display: flex;
}
.ecommerce-search input {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}
.ecommerce-search button {
  all: unset;
  display: block;
  cursor: pointer;
  box-sizing: border-box;
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
  color: white;
  background-color: var(--main-color);
  min-width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
}
.ecommerce-search button:hover,
.ecommerce-search button:active {
  background-color: var(--main-color-highlight);
}
.ecommerce-search button:focus {
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.ecommerce-breadcrumb.breadcrumb {
  margin-bottom: 1rem;
}
.ecommerce-breadcrumb.breadcrumb li:last-child a {
  font-weight: bold;
}
/* Cart */
.cart-back {
  display: flex;
  align-items: baseline;
  color: #666;
  font-weight: 600;
  font-size: 1.5rem;
  gap: 1rem;
  padding-top: 24px;
}
.cart-back:hover {
  text-decoration: none;
}
.cart-container {
  display: flex;
  gap: 0 4rem;
  margin-bottom: 32px;
}
.cart-table {
  display: block;
  width: 100%;
  transition: 0.2s linear;
  transition-delay: 0.2s;
  max-width: 100%;
  overflow-x: auto;
}
.cart-table thead {
  border-bottom: 1px solid #999;
}
.cart-table tfoot {
  border-top: 1px solid #999;
}
.cart-table th {
  color: #666666;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 5px 20px;
}
.cart-table td {
  width: var(--w);
  font-size: 1.5rem;
  font-weight: 500;
  padding: 5px 20px;
}
.cart-table tbody tr:not(:last-child) {
  border-bottom: 1px solid #ddd;
}
.cart-image {
  height: 100px;
  width: 100px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
}
.cart-image i {
  font-size: 4rem;
  color: white;
}
.cart-image img {
  height: 100%;
  display: block;
  cursor: zoom-in;
}
.cart-data-container {
  top: 2rem;
  position: sticky;
  width: 48rem;
  margin-top: 8.3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem 0;
  height: min-content;
}
.cart-data {
  border: 1px solid var(--main-color);
  border-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
}
.cart-data h4 {
  margin: 0;
  padding: 10px 20px;
  background: var(--main-color);
  color: white;
}
.cart-fields {
  padding: 2rem 20px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.cart-field {
  display: flex;
  flex-direction: column;
  position: relative;
}
.cart-field .ui-datepicker-trigger {
  top: 50%;
  left: 85px;
}
.cart-total {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
  background-color: #ddd;
  border-radius: 8px;
}
.cart-total h3 {
  margin: 0;
}
.cart-invia {
  all: unset;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--main-color-highlight);
  background-color: white;
  transition: all 0.3s ease;
  background-color: var(--main-color);
  color: white;
  text-align: center;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 1.5rem;
  font-weight: 600;
}
.cart-invia:hover,
.cart-invia:active {
  background-color: var(--main-color-highlight);
}
.cart-invia:focus {
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
#cart-spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.275);
  z-index: 1;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 500;
}

@media (max-width: 1140px) {
  #ButtonShowArticoliPiuVenduti[data-show='true'] {
    display: block;
  }

  #chiudiArticoliPiuVendutiButton {
    display: flex !important;
  }

  .content-container {
    display: block;
  }

  .articoliPiuVenduti {
    padding-top: 0;
    position: fixed;
    height: calc(100vh - 22.56px);
    top: -19px;
    transform: translateX(105%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0px 6px 2px rgb(0 0 0 / 10%);
    border: 0;
    border-left: 1px solid #f8f8f8;
    margin-bottom: 0;
  }

  .articoliPiuVenduti .articoliPiuVenduti-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #fff;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
    background: #f8f8f8;
  }

  .articoliPiuVenduti .articoliPiuVenduti-title h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-shadow: none;
  }

  .confermaArticoliPiuVenduti {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 767px) {
  .articoliPiuVenduti {
    max-width: 100%;
  }
}

/* Articoli inevasi */
.elencoArticoliInevasi-container {
  overflow-y: hidden;
  display: flex;
  flex: 1;
}

.elencoArticoliInevasi {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  background: #fff;
}

.elencoArticoliInevasi .articoloInevaso + .articoloInevaso {
  margin-top: 4px;
}

.nessunArticoloInevaso {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 4rem;
  font-size: 14px;
  font-weight: 500;
  color: #888;
}

#chiudiArticoliInevasiButton {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.5rem;
  width: 1.5rem;
  padding: 1.5rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

#chiudiArticoliInevasiButton:hover {
  background: #e7e7e7;
}

#chiudiArticoliInevasiButton:focus {
  outline: none;
  box-shadow: 0 0px 0px 2px rgb(102 175 233 / 40%);
}

.articoloInevaso {
  all: initial;
  font-family: var(--font-family);
  cursor: pointer;
  color: rgb(88, 88, 88);
}

.articoloInevaso .checkbox {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.articoloInevaso .articoloInevaso-content {
  width: 100%;
  display: grid;
  grid-template-columns: 68px 1fr;
  grid-template-rows: auto auto;
  align-items: baseline;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  padding: 0.75rem;
  background-color: #fff;
}

.articoloInevaso:hover .articoloInevaso-content {
  background-color: rgb(0 137 255 / 4%);
}

.articoloInevaso .checkbox:checked + .articoloInevaso-content {
  border-color: #337ab7;
  color: #337ab7;
  background-color: rgb(0 137 255 / 7%);
  box-shadow: inset 0px 0px 0px 1px #337afa;
}

.articoloInevaso input:focus + .articoloInevaso-content {
  outline: 0;
  box-shadow: inset 0 0px 0px 2px rgb(102 175 233 / 40%);
}

.articoloInevaso .qty {
  padding-right: 4px;
  font-size: 13px;
  min-width: 68px;
  text-align: center;
}

.articoloInevaso .disponibilita {
  font-size: 10px;
  opacity: 0.8;
  text-align: center;
}

.articoloInevaso .item {
  padding-left: 4px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.articoloInevaso .item .item-data {
  display: flex;
  align-items: center;
  font-size: 11px;
  gap: 4px;
  opacity: 0.8;
}

.articoloInevaso .item .item-code {
  font-size: 13px;
  background-color: rgb(0 0 0 / 3%);
  border-radius: 2px;
  padding: 1px 2px;
  font-weight: 500;
}

.articoloInevaso .description {
  padding-left: 4px;
  font-size: 12px;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
}

.confermaArticoliInevasi {
  padding: 0.9rem 1.5rem;
  display: flex;
  background: #f8f8f8;
  border-top: 1px solid #e7e7e7;
  align-items: center;
  justify-content: space-between;
}

#confermaArticoliInevasiButton:focus {
  outline: none;
  box-shadow: 0 0px 0px 2px rgb(102 175 233 / 40%);
}

#articoliInevasiSelected {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#articoliInevasiSelected span:first-child {
  color: #337ab7;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#selezionaTuttiArticoliInevasi {
  border: 0;
  background-color: transparent;
  color: #888;
  border-radius: 6px;
  padding: 4px 8px;
}

#selezionaTuttiArticoliInevasi:hover {
  background: #e7e7e7;
}

#selezionaTuttiArticoliInevasi:focus {
  outline: none;
  box-shadow: 0 0px 0px 2px rgb(102 175 233 / 40%);
}

#ButtonShowArticoliInevasi {
  display: none;
}

.content-container {
  display: flex;
  position: relative;
}

#chiudiArticoliInevasiButton {
  display: none;
}

.articoliInevasi {
  position: sticky;
  top: 0px;
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  height: calc(100vh - 22.56px - 71px);
  right: 0;
  background-color: #fff;
  transform: none;
  box-shadow: none;
  border: 1px solid var(--main-color);
  margin-left: 12px;
  margin-top: 19px;
  border-radius: 4px;
  overflow-y: hidden;
}

.articoliInevasi .articoliInevasi-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10.5px 15px;
  border-top: none;
  border-bottom: none;
  background-color: var(--main-color);
}

.articoliInevasi .articoliInevasi-title h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-shadow: rgba(0, 0, 0, 0.15) 1px 1px 0;
}

.articoliInevasi[data-show='true'] {
  display: flex;
}

.articoliInevasi[data-open='true'] {
  transform: none;
}

@media (max-width: 1140px) {
  #ButtonShowArticoliInevasi[data-show='true'] {
    display: block;
  }

  #chiudiArticoliInevasiButton {
    display: flex !important;
  }

  .content-container {
    display: block;
  }

  .articoliInevasi {
    padding-top: 0;
    position: fixed;
    height: calc(100vh - 22.56px);
    top: -19px;
    transform: translateX(105%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0px 6px 2px rgb(0 0 0 / 10%);
    border: 0;
    border-left: 1px solid #f8f8f8;
    margin-bottom: 0;
  }

  .articoliInevasi .articoliInevasi-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #fff;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
    background: #f8f8f8;
  }

  .articoliInevasi .articoliInevasi-title h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-shadow: none;
  }

  .confermaArticoliInevasi {
    padding: 1rem 1.5rem;
  }

  .cart-container {
    flex-direction: column;
  }

  .cart-data-container {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .articoliInevasi {
    max-width: 100%;
  }

  #ecommerce-nav {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    transform: translateX(calc(-100% - 20px));
    padding: 10px;
    background: white;
    border-radius: 8px;
    width: 100%;
  }

  #ecommerce-nav.open {
    transform: translateX(0px);
  }

  .ecommerce-search {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .ecommerce-items-container {
    padding-bottom: 40px;
  }

  .ecommerce-mobile-show-categories {
    display: block;
  }

  .ecommerce-cart > span:first-child {
    display: none;
  }

  #tablePagamenti_filter,
  #tablePagamenti_length,
  #tablePagamenti_showAll,
  #tableOfferte_length,
  #tableOfferte_filter,
  #tableOrdini_length,
  #tableOrdini_filter,
  #tableArticoli_length,
  #tableArticoli_filter,
  #tableArticoli_limit_container {
    text-align: left;
    padding: 0 8px;
  }

  #tableArticoli_limit_container > label {
    display: flex;
    align-items: center;
  }

  #tableArticoli_limit_container > label > select {
    width: 50px;
    margin-left: 4px;
  }
}
