/*Version 1.0 - 13/06/2023*/
/* CIA: palette locale, non altera i badge delle altre viste. */
.badge.cia-status { display:inline-block; padding:4px 8px; border-radius:4px; font-size:12px; line-height:1.3; font-weight:600; white-space:normal; }
.badge.cia-status-neutral { background:#eceeef; color:#515860; }
.badge.cia-status-info { background:#e9f1f9; color:#315a7b; }
.badge.cia-status-attention,.badge.cia-status-excess { background:#fff0dc; color:#80531e; }
.badge.cia-status-complete { background:#edf5ed; color:#386442; }
.badge.cia-status-partial { background:#f8e9e7; color:#85483e; }
.badge.cia-status-extra { background:#f0eafa; color:#66517c; }
tr.cia-line-partial > td { background:#fdf3f1 !important; }
tr.cia-line-excess > td { background:#fff8ee !important; }
tr.cia-line-extra > td { background:#f7f3fc !important; }
/* https://www.toptal.com/developers/cssminifier */
/* webfont */
/* https://gwfh.mranftl.com/fonts */
/* roboto-slab-regular - latin */
/* lato-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('/adminsite/fonts/lato-v24-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/*eliminazione branding tinymce*/
.tox-promotion, .tox-statusbar__branding {
	display: none !important;
}
/*main*/

.nomobile {
	display: none !important;
}
.nascosto {
	display: none !important;
}
.scrollhoriz {
	overflow-x: scroll !important;
	/*max-width: 1000000em !important;*/
}
.displayflex {
	display: flex;
}
.addpaddingbottom {
	padding-bottom: 2em !important;
}
.tolowercase {
	text-transform: lowercase !important;
}
.alertinput {
	border: 0.01em solid !important;
	background-color: rgba(255, 205, 205, 1.0) !important;
}
.intl-tel-input {
	width: 100% !important;
}
#phone {
	padding-left: 6em !important;
}
.iti-arrow {
	display: none;
}
.rounded {
	border-radius: 50%;
}

* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}
html, body {
	margin: 0;
	padding: 0;
	background-color: rgba(255,255,255,1);
	font-family: Lato, Helvetica, Arial, sans-serif;
	font-weight: 400;
	line-height: 1.5em;
	color: #212529;
	scroll-behavior: smooth;
	font-size: 16px;
}
body {
	background-color: #F4F6F9;
	line-height: 1.5;
	position: relative;
}
a:link, a:visited {
	text-decoration:none;
	color: rgba(171,41,41,1);
	color: rgb(66 133 244);
}
a:hover {
	color: rgba(133,133,147,1);
}

strong {
	font-weight: 700;
}
h1, h2, h3, h4, h5, h6 {
	line-height: 1em;
	line-height: 1.2em;
}
h1 {
	font-size:1.5em;
}
ul {
	margin: 0;
	padding: 0;
}
li {
	list-style: none;
	margin: 0;
	padding: 0;
}
fieldset {
	border: none;
}

.btn {
	background-color: rgba(131,187,86,1);
	color: rgba(255,255,255,1);
	/*background-color: rgba(212,175,55,1);
	color: rgba(255,255,255,1);*/
	margin: 1em auto;
	padding: 0.5em 1em;
	word-wrap: break-word;
	text-transform: uppercase;
	font-weight: 400;
	line-height: 1.5em;
	/*border-color: #b9ed8f;
	/*border-color: rgba(197,179,88,1);*/
	/*  color: #212529;*/
	border: none;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	display: inline-block;
	border-radius: 0.25rem;
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn:hover {
	background-color: rgba(181,181,181,1);
	color: rgba(0, 0, 0, 1);
}
a.btn::before {
	 width: 0;
	 height: 0;
}
a.btn-primary:link, a.btn-primary:visited {
	color: rgba(255,255,255,1);
}
a.btn-default:link, a.btn-default:visited {
	color: rgba(255,255,255,1);
}
.btn-orange {
	background-color: rgba(255,128,0,1);
}
.btn-orange:hover {
	background-color: rgba(181,181,181,1);
	color: rgba(0, 0, 0, 1);
}
.btn-default:hover {
	background-color: rgba(86,179,187,1);
}
.btn-green {
	background-color: rgba(131, 187, 86, 1);
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
    border-radius: 0.4em;
}
.btn-green:hover {
	background-color: rgba(181,181,181,1);
	color: rgba(0, 0, 0, 1);
}
.btn-grey {
	background-color: rgb(106 113 101);
	background-color: rgb(191 191 191);
    color: rgba(0, 0, 0, 1);
    cursor: pointer;
    border-radius: 0.4em;
}
.btn-grey:hover {
	background-color: rgba(181,181,181,1);
	color: rgba(255, 255, 255, 1);
	color: rgba(0, 0, 0, 1);
}
.btn-lightgrey {
	background-color: rgb(239 239 239);
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
    border-radius: 0.4em;
}
.btn-blue {
	background-color: rgb(66 133 244);
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
    border-radius: 0.4em;
}
.btn-blue img {
	filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}





    


.text-center {
	text-align: center !important;
}
.text-right {
	text-align: right !important;
}
.text-left {
	text-align: left !important;
}
.text-uppercase {
	text-transform: uppercase;
}
.boxedcontainer {
	max-width: 1320px;
	margin: auto;
}
.haspadding div {
	padding: 0 1.5em;
}

input, button, select, optgroup, textarea {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	margin-bottom:  0.5em;
	padding: 0.5em 1em;
	border: 0.01em solid #d9d9d9;
}

.rounded-circle {
    border-radius: 50% !important;
}
.bg-light {
    background-color: #f8f9fa !important;
}
.imgbackground {
	object-fit: cover;
	object-position: center center;
	width: 100%;
	height: 100%;
}

.form-control {
	display: block;
	width: 100%;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #ced4da;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border-radius: 0.25rem;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/*SCROLLBAR*/
/* width */
::-webkit-scrollbar {
	width: 0.001em;
}
/* Track */
::-webkit-scrollbar-track {
	background: #f1f1f1;
	background: rgba(0,0,0,0);
}
/* Handle */
::-webkit-scrollbar-thumb {
	background: #888;
	background: rgba(0,0,0,0);
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: #555;
	background: rgba(0,0,0,0);
}


/*PAGINA LOGIN*/
.login-box {
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}
.login-box form {
	max-width: 500px;
	width: 80%;
}
.login-box input {
	width: 100%;
}
.login-box h1 {
	text-align: center;
	font-weight: 900;
	color: #484848;
	margin: 0.5em;
}
.login-box h1 span {
	font-weight: 300;
}
input:focus, textarea:focus { 
	box-shadow: 0 0 0.8em rgba(86,179,187,1);
	border-color: rgba(86,179,187,1);
	outline: none; 
} 
input.error, textarea.error  {
	box-shadow: 0 0 0.8em rgba(180,0,0,1);
	border-color: rgba(180,0,0,1);
	outline: none; 
}
input.warning, textarea.warning {
	box-shadow: 0 0 0.8em rgba(255,131,0,1);
	border-color: rgba(255,131,0,1);
	outline: none; 
}
input.ok, textarea.ok {
	box-shadow: 0 0 0.8em rgba(131, 187, 86, 1);
	border-color: rgba(131, 187, 86, 1);
	outline: none; 
}
input.success, textarea.success {
	box-shadow: 0 0 0.8em rgba(131, 187, 86, 1);
	border-color: rgba(131, 187, 86, 1);
	outline: none; 
}


thead tr td.asc::after {
    content: ' ▲';
}
thead tr td.desc::after {
    content: ' ▼';
}

/*PAGINE ADMIN*/
.wrapper {
	width: 100%;
}


.navbar {
	position: fixed;
	top: 0;
	height: 100vh;
	background: rgba(54, 54, 54, 1.0);
	width: 16em;
	z-index: 100;
	color: rgba(255, 255, 255, 1.0);
	box-shadow: 0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)!important;
	overflow-x: hidden;
	width: 100%;
	display:none;

	background-image: linear-gradient(-230deg, #444d65, #171e28, #171e28, #171e28, #444d65);
    background-position: center;
}
.navbar a:link, .navbar a:visited {
	color: rgba(255,255,255,1);
}
.navbar a:hover {
	color: rgba(171,171,171,1);
}
.logobox {
	height: 4em;
	background: rgba(25, 25, 25, 1.0);
	display: flex;
	/*justify-content: center;*/
	align-items: center;
	padding-left: 1em;
	border-bottom: 0.02em solid #ccc;
}
.logobox a:link, .logobox a:visited {
	color: rgba(255,255,255,1);
}

.logo {
	font-size: 0.7em;
}
.logo img {
	margin-right: 1em;
	width: 2em;
	height: 2em;
	float: left;
	background: #505050;
	padding: 0.3em;
}
.logobox a:hover {
	color: rgba(255,255,255,0.5);
}
.logobox a:hover img {
	background: #e2c622;
}
.brandname {
	font-size: 2em;
	line-height: 1em;
}
#errore-bar {
    font-size: 16px;
    padding: 12px;
    background-color: #dc3545;
    color: white;
    position: absolute;
    z-index: 99999;
    display:none; position: fixed; top: 0; left: 0; right: 0; border-radius: 0;
}
.modale {
	display: none;
	position: fixed;
	width: 100%;
	height: 100vh;
	background-color: rgba(255,255,255,0.8);
	z-index: 99997;
	top:0;
}
.modale form {
	width: 90%;
	height: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.loader {
	display: none;
	position: fixed;
	width: 100%;
	height: 100vh;
	background-color: rgba(255,255,255,0.8);
	z-index: 99998;
	top:0;
}
.loader img {
	max-width: 10em;
	height: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

}

/* Stile generale per la navbar */
.navbar ul {
    padding: 0;
    margin: 0;
}

.navbar ul img {
    filter: invert(100%) sepia(27%) saturate(0%) hue-rotate(239deg) brightness(111%) contrast(101%);
}

/* Link del menu */
.navbar a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
    padding: 0.5em;
}

/* Lista degli elementi */
.navbar ul li {
    margin: 0.5em 0;
    list-style: none;
}

/* Icona a sinistra */
.icon-left {
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    vertical-align: middle;
}

/* Badge di notifica */
.badge {
    background-color: #247ec8;
    color: #ffffff;
    font-size: 0.8em;
    border-radius: 10%;
    padding: 0.2em 0.5em;
    margin-left: 0.5em;
    vertical-align: middle;
}


.badge-secondary {
	background-color: #c82424;
	color: #ffffff;
}

.badge-secondary img {
	filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}


.badge-orange {
	background-color: #ff8000;
	color: #ffffff;
}

.badge-grey{
	background-color: rgb(191 191 191);
	color: #ffffff;
}




.badge-green {
	background-color: #83bb56;
	color: #ffffff;
}

/* Icona a destra */
.icon-right {
    width: 0.8em;
    height: 0.8em;
    vertical-align: middle;
    margin-left: 0.5em;
}

/* Spaziatore flessibile */
.flex-spacer {
    flex-grow: 1;
}

/* Sottomenu di default nascosto */
.navbar ul li ul {
    display: none;
    margin-left: 1em;
    padding-left: 0;
}

/* Mostra il sottomenu quando il parent ha la classe "open" */
.navbar ul li.open > ul {
    display: block;
}

.bg-red {
	background-color: #dc3545 !important;
	color: #ffffff !important;
}
.bg-info {
	background-color: #17a2b8 !important;
	color: #ffffff !important;
}
.bg-green {
	background-color: #28a745 !important;
	color: #ffffff !important;
}
.bg-orange {
	background-color: #fd7e14! important;
	color: #ffffff !important;
}
.bg-purple {
	background-color: #6f42c1! important;
	color: #ffffff !important;
}
.bg-yellow {
	background-color: #ffc107! important;
	color: #000000 !important;
}
.bg-grey {
	background-color: #9e9e9e !important;
	color: #ffffff !important;
}
.bg-darkgrey {
	background-color: #607d8b !important;
	color: #ffffff !important;
}
.bg-blunotte {
	background-color: #3f51b5 !important;
	color: #ffffff !important;
}

/*fine barra di navigazione */

.menuleft {
	position: absolute;
	left: 1em;
	top: 1em;
}
.menuright {
	position: absolute;
	top: 1em;
	right: 1em;
}
.main {
	position: relative;
	min-height: 100vh;
	text-align: center;
	width: 100%;
	margin-left: 0;
}
/*HEADER*/
header {
	position: fixed;
	height: 4em;
	display: inline-block;
	background: #ffffff;
	width: 100%;
	display: flex;
	align-items: center;
	border-bottom: 0.02em solid #ccc;
	padding: 0 1em;
	z-index: 99;
}
header a img {
	filter: invert(55%) sepia(5%) saturate(18%) hue-rotate(348deg) brightness(90%) contrast(89%);
	height: 1.5em;
	width: auto;
}
header a:hover img {
	filter: invert(15%) sepia(18%) saturate(6571%) hue-rotate(181deg) brightness(98%) contrast(91%);
}
header li {
	display: inline-block;
	margin: 0 1em 0 0;
}
header a:link, header a:visited {

}
header a:hover {

}
.closemenu {

}
.closemenu img {
	filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(348deg) brightness(103%) contrast(101%);
	height: 1.5em;
	width: auto;
	position: absolute;
	right: 1em;
	top: 1em;
}

/*menu laterale*/
.userbox {
	padding: 1em 1em;
	display: flex;
	align-items: center; /* Centra verticalmente */
	/*justify-content: center; /* Centra orizzontalmente */
	gap: 0.8em; /* Spaziatura tra immagine e testo, opzionale */
	border-bottom: 0.01em solid;
}
.userbox img {
	width: 2.5em;
	height: auto;
	vertical-align: middle;
}
.userbox .logout {
	font-size: 0.7em;
	margin-top:0.4em; /* Spazio tra "Guest" e "Logout" */
}

.userbox div {
	display: flex;
	flex-direction: column; /* Disposizione verticale per testo e link */
	/*align-items: center; /* Centra il testo e il link sotto l’immagine */
}
.userletter {
    background: #5777a7;
    width: 2em;
    height: 2em;
    line-height: 2em;
    font-size: 2em;
    margin: auto;
    color: #fff;
    border: 3px solid #adb5bd;
    margin: 0 auto;
    padding: 3px;
    width: 100px;
    height: 100px;
    line-height: 87px;
}

.searchboxdiv {
	display: flex;
	align-items: center;
	padding: 0.5em;
	border-radius: 0.25em;
	margin-bottom: 0.5em;
}

.search {
	flex: 1;
	border: none;
	outline: none;
	padding: 0.5em;
	border-radius: 0.25em;
}

.searchboxdivbutton {
	margin-left: 0.4em;
	display: flex;
	align-items: center; /* Centra verticalmente l'icona nel bottone */
}

.btnsearch {
	padding: 0.50em; /* Imposta padding per una dimensione uniforme */
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.55em;
}

.btnsearch img {
	height: 1.55em;
	width: auto;
}
.btnsearch:hover img {
	filter: invert(100%) sepia(27%) saturate(0%) hue-rotate(239deg) brightness(111%) contrast(101%);
}



/*centro*/
.maincontainer {
	width: 100%;
}

.container {
	width:calc(100% - 2em);
	margin: auto;
	padding-top: 6em;
	text-align: left;
	display: flex;
	flex-wrap: wrap;
}
.container h1 {
	display: block;
	width: 100%;
	font-weight: 300;
	border-bottom: 0.02em solid #ccc;
	margin-bottom: 1em;
	text-transform: uppercase;
}
.container input, .container textarea, .container select {
	width: 100%;
	border-radius: 0.6em;
}

.card, .card-internal {
	/*width: calc(50% - 2em);*/
	padding: 1em;
	border: 0.02em solid #ccc;
	border-radius: 0.6em;

	width: calc(100% - 2em);
	margin: 1em;
	overflow-x: scroll;

}
.cardnoborder {
	padding: 0;
	border: 0;
	/*min-height: 4em*/
	/*border-radius: 0em;*/
}
.cardcontainer{
    display:flex;
    flex-wrap:wrap;
    gap:1em;
    align-items:flex-start;
}

.smallcard {
	width: calc(100% - 1em);
    background-color: rgba(255, 255, 255, 1);
    color: rgba(0, 0, 0, 1);
    box-sizing: border-box; /* Include padding e bordo nella dimensione totale */
    border-radius: 0.6em;
    min-height: 10em;
    padding: 1em; /* Spaziatura interna */
}
.smallcard{
    flex:0 0 100%;
    max-width:100%;
    width:100%;
    margin:0 !important;
    box-sizing:border-box;
    border-radius:0.6em;
    min-height:10em;
    padding:1em;
}
.card-header {
	background-color: transparent;
	background-color: rgba(196,196,196,1);
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    padding: .75rem 1.25rem;
    position: relative;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}
.card-primary {
	padding: 0;
}
.card-body {
	padding: 1em;
}
.card-internal,
.card-body,
.list-group-item {
    overflow: visible;
}
.card-internal {
	/*font-size: 0.8em;*/
	line-height: 1.8em;
}
.card h2 {
	text-transform: uppercase;
	font-size: 1.5em;
	margin: 1em 0 1em 0;
	font-weight: 300;
    text-transform: uppercase;
}

.smallcard h3 {
	font-size: 3em;
}

.card table {
	width: 100%;
	color: rgba(60,60,60,1); /* Testo bianco per le righe nere */
}

.card table thead {
    background-color: rgba(57,57,57,1);
    color: rgba(255,255,255,1);
    font-weight: 700;
    text-align: center;
}

.card table tbody tr:nth-child(odd) {
    background-color: rgb(239 239 239);
   
}

.card table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.card table tbody tr:hover {
    background-color: #ececec;
}
.card td {
    padding: 0.2em 1em;
    white-space: nowrap;
    /*text-transform: uppercase;*/
}

.card tr.error {
    background-color: rgba(244,185,185,1) !important;
}
.card tr.warning {
    background-color: rgba(240,188,128,1) !important;
}

.card td input {
    width:auto;
}

.icon {
	height: 1em;
	width: 1em;
}
.row-alert td {
	background-color: #f16b6b;
}
.row-warning td {
	background-color: rgba(255,192,125,1);
}

.card_dashboard {
	display: flex;
	flex-wrap: wrap;
	gap: 1em; /* Spazio di 1em tra le card */
	border: 0;
}



/* =========================
   LAYOUT GENERALE
========================= */
.tabs-layout {
    display: flex;
    gap: 16px;
}

/* =========================
   COLONNA TAB
========================= */
.tabs-nav {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 12px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;

    background: #f5f6f7;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;

    /*font-size: 14px;*/
    cursor: pointer;
}

.tab-btn:hover {
    background: #eaeaea;
}

.tab-btn.active {
    background: #ffffff;
    color: #0d6efd;
    border-color: #ddd;
    border-bottom: 1px solid #ffffff; /* “fuso” con contenuto */
    font-weight: 600;
}

/* =========================
   CONTENUTO TAB
========================= */
.tabs-content {
    border: 1px solid #ddd;
    border-top: none;
    padding: 12px;
    background: #ffffff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* =========================
   TABELLE DENTRO LE TAB
========================= */
.tab-panel table {
    width: 100%;
    border-collapse: collapse;
}

.tab-panel th,
.tab-panel td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    /*font-size: 13px;*/
}

.tab-panel th {
    /*background: #f5f5f5;*/
    text-align: left;
}

.profile-username {
	padding: 1em;
	font-size: 24px;
}

/* =========================
   CONTENITORE
========================= */
.btn-group {
    position: relative;
    display: inline-block;
}

/* =========================
   BOTTONE AZIONI
========================= */
.btn-group > .btn {
    position: relative;
    padding: 6px 28px 6px 14px;
    border: 1px solid #cfd4da;
    background-color: #ffffff;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    border-radius: 4px;
}

/* Hover bottone */
.btn-group > .btn:hover {
    background-color: #f5f6f7;
}

/* =========================
   FRECCETTA ▼
========================= */
.btn-group > .btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;

    width: 0;
    height: 0;

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #444;

    transform: translateY(-40%);
    pointer-events: none;
}

/* Freccia ruotata quando aperto */
.btn-group.open > .btn::after {
    transform: translateY(-40%) rotate(180deg);
}

/* =========================
   DROPDOWN MENU
========================= */
.btn-group .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;

    min-width: 260px;
    padding: 10px 12px;
    margin-top: 6px;

    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Mostra menu quando open */
.btn-group.open .dropdown-menu {
    display: block;
}

/* =========================
   VOCI MENU
========================= */
.dropdown-menu .dropdown-item {
    display: block;
    padding: 6px 10px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

/* Hover voce */
.dropdown-menu .dropdown-item:hover {
    background-color: #f3f3f3;
}

/* =========================
   DIVIDER
========================= */
.dropdown-menu .dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background-color: #e0e0e0;
}


/*suggest per inventario*/
.suggestions {
  position: relative;
  border: 1px solid #ccc;
  background-color: white;
  max-height: 150px;
  overflow-y: auto;
  display: none;
}

.suggestions li {
  padding: 8px;
  cursor: pointer;
}

.suggestions li:hover {
  background-color: #f0f0f0;
}

.seorow {
	background-image: linear-gradient(-230deg, #444d65, #171e28, #171e28, #171e28, #444d65);
    background-position: center;
    color: #bfbfbf;
    padding: 1em;
}
.punteggio {
	    font-size: 2em;
    padding: 0.5em;
    display: block;
} 
.googleserp {
	background-color: #1f1f1f;
	padding: 1em;
}
.googleserp .sitetitle {
	color: #dadce0;
	font-size: 0.875em;
}
.googleserp .sitetitle img {
	float: left;
	width: 2em;
	height: auto;
	margin-right: 1em;
}
.googleserp .sitetitle p {
	float: left;
	width: calc(100% - 4em);
	line-height: 1.3em;
}
.googleserp .sitetitle a:link, .googleserp .sitetitle a:visited {
	color: #dadce0;
	font-size: 0.875em;
}
.googleserp h3 {
	font-size: 1.5em;
    color: #99c3ff;
    padding-top: 0.5em !important;
    display: block;
    clear: both;
 }
.googleserp p {
	font-size: 0.875em;
	color: #bfbfbf;
}

.preview-h1 {
	padding-top:1em;
	text-align: center;
	font-weight: 400;
	font-size: 2em;
}
.preview-h2 {
	text-align: center;
	font-weight: 300;
	font-size: 1.5em;
}
.preview-h3 {
	text-align: left;
	font-weight: 200;
	font-size: 1.2em;
}
.preview-articolo {
	text-align: left;
}
.preview-articolo p {
	margin-bottom: 1em;
}
.previewphoto {
	width: 100%;
	position: relative;
	background-size: cover;
    background-position: center;
    margin: 1em auto;
}
.previewphoto-horiz {
    padding-top: calc(10 / 22.22 * 100%); /* Mantiene il rapporto 19.14:10 */
}
.previewphoto-sq {
    padding-top: calc(10 / 10 * 100%); /* Mantiene il rapporto 19.14:10 */
}
.previewphoto-sl {
    padding-top: calc(10 / 19.14 * 100%); /* Mantiene il rapporto 19.14:10 */
}

.row-col-container {
  display: flex;
  gap: 20px;
}
.col-editor {
  flex: 1;
  border: 1px solid #ccc;
  padding: 10px;
  background: #f9f9f9;
}
.contenuti-col {
  margin-top: 10px;
}

.menuaggiuntablocco img {
	height: 2em;
	width: auto;
}

.riga-editor {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}

.col-tools {
  width: 30px;
  flex-shrink: 0;
  position: relative;
}

.col-contenuto {
  flex-grow: 1;
  padding-left: 1em;
}

.block-options {
  display: none;
  position: absolute;
  left: 35px;
  top: 0;
  background: #eee;
  border: 1px solid #ccc;
  padding: 5px;
  z-index: 10;
}


.editor-toolbar {
	text-align: center;
	padding: 1em 0;
}

.preview-paragrafo {
	 margin:auto;
}
/*STILO PER PREVIEW*/
.panelprevieweditor {
	font-family: "Open Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings:"wdth" 100;
	background-color: #fff;
}
.panelprevieweditor .text-right {
	text-align: right !important;
}
.panelprevieweditor .text-left {
	text-align: left !important;
}
.panelprevieweditor .text-uppercase {
	text-transform: uppercase;
}
.panelprevieweditor .has-padding-vert {
	padding-top: 1em !important;
	padding-bottom: 1em !important;
}
.panelprevieweditor .has-padding-hor {
	padding-left: 1em !important;
	padding-right: 1em !important;
}
.panelprevieweditor .row-narrow {
		max-width: 75%;
		background-color: #ff0000;
	}
/**/

/*fine suggest per inventario*/

/*BOTTONE AGGIUNGI*/
.fab-add {
    position: fixed;
    display:none;
    bottom: 1.5em;
    right: 1.5em;
    width: 1.5em;
    height: 1.5em;
    padding: 0;
    border-radius: 50%;
    background-color: #4285f4;
    color: white;
    font-size: 2em;
    font-weight: bold;
    border: none;
    box-shadow: 0 0.3em 0.6em rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.fab-add:hover {
    background-color: #3367d6;
    box-shadow: 0 0.4em 0.8em rgba(0, 0, 0, 0.4);
}


/*DEBUGGER*/
#toggleDebugger {
	position:fixed;bottom:0.8em;left:0.8em;z-index:10000;
}
.debugger {
	position: fixed;
	bottom: 0;
	right: 0;
	width: 300px;
	max-height: 100vh;
	overflow-y: auto;
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
	font-family: monospace;
	font-size: 13px;
	padding: 15px 20px 40px;
	border-left: 2px solid #00ffc8;
	z-index: 9999;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.7);
	transition: right 0.3s ease;
	display: none;
}
.debugger.active {
    display: block;
}

.debugger h3 {
	margin-top: 0;
	font-size: 16px;
	color: #00ffc8;
}

.debugger ul {
	padding-left: 0;
	list-style: none;
	margin: 0;
}

.debugger li {
	margin-bottom: 8px;
	word-break: break-all;
}

.debugger button.chiudi-debugger {
	position: absolute;
	top: 5px;
	right: 10px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}

.debugger.nascosto {
	right: -320px;
}
/*fine debugger*/


/*MODALE*/
.modale{
    display:none;
    position:fixed;
    inset:0;
    width:100%;
    height:100vh;
    background-color:rgba(255,255,255,0.82);
    z-index:99997;
}

.modale form{
    width:90%;
    max-width:760px;
    max-height:90vh;
    overflow-y:auto;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    background:#ffffff;
    padding:1.5em;
    border-radius:0.8em;
    box-shadow:0 15px 45px rgba(0,0,0,0.25);
}

.modale form h1{
    margin-bottom:1em;
    font-size:1.6em;
}

.modale form label{
    display:block;
    font-weight:700;
    margin:0 0 0.35em 0;
}

.modale form input,
.modale form select,
.modale form textarea{
    width:100%;
    margin-bottom:1em;
    border-radius:0.4em;
    border:1px solid #d0d0d0;
    background:#fff;
}

.modale form .form-row{
    display:grid;
    grid-template-columns:1fr;
    gap:1em;
}

.modale form .form-actions{
    display:flex;
    justify-content:flex-end;
    gap:0.5em;
    margin-top:1em;
}

.modale form .form-actions .btn{
    margin:0;
}


.deposit-shelf-detail{
    width:100%;
}

.detail-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:1em;
    margin-bottom:1em;
    background:#ffffff;
    padding:1em;
    border-radius:0.6em;
    box-shadow:0 2px 8px rgba(0,0,0,0.06);
}

.detail-info{
    flex:1;
}

.detail-header h2{
    margin:0;
}

.detail-header h2 span{
    font-size:0.65em;
    color:#666;
    font-weight:400;
}

.detail-actions{
    display:flex;
    justify-content:flex-end;
    align-items:flex-start;
    gap:0.5em;
}

.detail-actions .btn{
    margin:0;
}

.detail-info .btn{
    margin-top:0.8em;
}

.shelf-areas-list{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:1em;
}

.area-row-block{
    background:#ffffff;
    border-radius:0.6em;
    padding:1em;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    overflow-x:auto;
}

.area-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:1em;
    margin-bottom:0.8em;
}

.area-header h3{
    font-size:1.4em;
    margin:0;
}

.positions-list{
    display:flex;
    flex-direction:column;
    gap:0.55em;
    min-width:max-content;
}

.position-row{
    display:flex;
    align-items:center;
    gap:0.6em;
}

.position-label{
    width:3em;
    min-width:3em;
    font-weight:700;
}

.levels-list{
    display:flex;
    gap:0.35em;
    align-items:center;
}

.location-cell{
    min-width:3em;
    height:2.2em;
    padding:0 0.5em;
    border-radius:0.3em;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:0.85em;
    font-weight:700;
    color:#ffffff;
    cursor:pointer;
    margin:0;
    border:0;
    line-height:1;
}

.cell-empty{
    background:#28a745;
}

.cell-partial{
    background:#ffc107;
    color:#000000;
}

.cell-full{
    background:#dc3545;
}

.cell-disabled{
    background:#6c757d;
}

.btn-add-level{
    background:#607d8b;
    color:#ffffff;
    text-transform:uppercase;
}

.btn-add-level:hover{
    background:#fd7e14;
}

.btn-add-position,
.btn-add-area{
    margin:0;
}

.position-click{
    cursor:pointer;
    background:#f1f3f5;
    border-radius:0.25em;
    padding:0.35em 0.5em;
    text-align:center;
}

.position-click:hover{
    background:#fd7e14;
    color:#ffffff;
}


.session-expired-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.65);
}

.session-expired-modal[hidden] {
	display: none;
}

.session-expired-box {
	width: 100%;
	max-width: 440px;
	padding: 30px;
	background: #fff;
	border-radius: 8px;
	text-align: center;
}

.session-expired-title {
	margin-top: 0;
}

.session-expired-message {
	margin-bottom: 25px;
}

gmp-place-autocomplete {
    display: block;
    width: 100%;
    color-scheme: light;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

gmp-place-autocomplete::part(prediction-list) {
    color-scheme: light;
    background-color: #fff;
    color: #212529;
}

gmp-place-autocomplete::part(prediction-item) {
    background-color: #fff;
    color: #212529;
}

gmp-place-autocomplete::part(prediction-item-main-text) {
    color: #212529;
}

gmp-place-autocomplete::part(prediction-item-selected) {
    background-color: #f2f2f2;
    color: #212529;
}

.edit-icon{
    width:16px;
    height:16px;
    margin-left:6px;
    cursor:pointer;
    vertical-align:-2px;
    opacity:.55;
    transition:opacity .15s ease;
}

.edit-icon:hover{
    opacity:1;
}

.table {
	width: 100%;
}

@media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ 
	
}

@media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ 
	
}
@media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ 
	
}
@media (min-width:913px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ 
	.onlymobile {
		display: none !important;
	}
	.nomobile {
		display: inline-block !important;
	}
	.col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11 {
		display: inline-block;
		margin: 0;
		padding: 0;
		vertical-align:top;
	}
	.col-2 {
		width: 16.66666666666667%;
	}
	.col-3 {
		width: 25%;
		width: 24.7%;
		width: 24.5%;
	}
	.col-4 {
		width: 33%;
	}
	.col-5 {
		width: 41.66666666666667%;
	}
	.col-6 {
		width: 49%;
	}
	.col-7 {
		width: 58.33333333333333%;
	}
	.col-8 {
		width: 66%;
	}
	.col-9 {
		width: 75%;
	}
	.col-10 {
		width: 83.33333333333333%;
	}
	.col-11 {
		width: 91.66666666666667%;
	}
	

	.navbar {
		width: 16em;
		display: inline-block;
	}
	.main {
		width: calc(100vw - 16em);
		margin-left: 16em;
	}
	.mainfull {
		width: calc(100vw);
		margin-left: 0em;
	}

	header {
		width: calc(100% - 16em);
	}
	.headerfull {
		width: calc(100vw);
		margin-left: 0em;
	}


	.openmenu {
		/*display: none;*/
	}
	
	.card {
		flex: 0 0 calc(50% - 2em);
	}

	.card-fullwidth {
		flex: 0 0 calc(100% - 2em);
	}

	.smallcard {
	    flex: 0 0 calc(33.333% - 0.67em); /* Sottrae il gap dallo spazio totale */
	    max-width: calc(33.333% - 0.67em); /* Mantiene la larghezza massima considerando il gap */
	}

	.modale form {
		width: 50%;
		
	}
	.modale form .form-row{
        grid-template-columns:repeat(2, 1fr);
    }
	
	.detail-header{
        flex-direction:column;
    }

    .area-header{
        flex-direction:column;
        align-items:flex-start;
    }
}
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ 
	.firstcolinput {
		margin-right: 0.7em !important;
	}
	
}
@media (min-width:1280px) { /* hi-res laptops and desktops */ 
	.nodesktop {
		display: none !important;
	}
	.closemenu {
		display: none !important;
	}
}
@media (min-width:1991px) { /* larger desktops */ 
	
}


/* ==================================================
   SCHEDA RIASSUNTIVA AZIENDA
================================================== */

.business-summary-column {
    padding-right: 0.5em !important;
}


/* Card comuni */

.business-summary-card,
.business-widget {
    width: 100%;
    margin: 0 0 1em 0;
    padding: 1em;
    overflow: visible;

    background: #ffffff;
    border: 0;
    border-radius: 0.6em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


/* ==================================================
   TESTATA AZIENDA
================================================== */

.business-summary-header {
    display: flex;
    align-items: flex-start;
    gap: 1em;
}

.business-summary-avatar {
    flex: 0 0 5.5em;
    width: 5.5em;
}

.business-summary-avatar .useravatar,
.business-summary-avatar .userletter {
    display: block;
    width: 5.5em;
    height: 5.5em;
    margin: 0;
}

.business-summary-avatar .useravatar {
    object-fit: cover;
}

.business-summary-avatar .userletter {
    padding: 0;
    font-size: 1.7em;
    line-height: calc(5.5em - 6px);
    text-align: center;
}


.business-summary-identity {
    flex: 1;
    min-width: 0;
}

.business-summary-identity h2 {
    margin: 0 0 0.2em 0;
    padding: 0;

    font-size: 1.35em;
    font-weight: 700;
    text-transform: none;
}

.business-summary-type {
    margin-bottom: 0.65em;
    color: #6c757d;
}


/* Badge */

.business-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}

.business-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.65em;

    border-radius: 0.5em;
    font-size: 0.8em;
    font-weight: 700;
}

.business-badge-active {
    color: #218838;
    background: #e5f5e9;
}

.business-badge-inactive {
    color: #842029;
    background: #f8d7da;
}

.business-badge-customer {
    color: #0866bd;
    background: #e2f1ff;
}

.business-badge-forwarder {
    color: #b45f00;
    background: #fff0df;
}


.business-summary-divider {
    height: 1px;
    margin: 1em 0;
    background: #e5e8eb;
}


/* ==================================================
   RECAPITI
================================================== */

.business-summary-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
}

.business-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
}

.business-contact-icon {
    flex: 0 0 1.2em;
    width: 1.2em;
    color: #6c757d;
    text-align: center;
}

.business-contact-value {
    flex: 1;
    min-width: 0;
    color: #3f4650 !important;
    overflow-wrap: anywhere;
}

.business-contact-value:hover {
    color: #4285f4 !important;
}


.business-summary-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1em;
}

.business-summary-actions .btn {
    margin: 0;
}


/* ==================================================
   WIDGET
================================================== */

.business-widget-title {
    margin: -1em -1em 1em;
    padding: 0.85em 1em;

    border-bottom: 1px solid #e5e8eb;
    font-weight: 700;
}


/* ==================================================
   REFERENTE
================================================== */

.business-reference {
    display: flex;
    align-items: flex-start;
    gap: 1em;
}

.business-reference-avatar {
    flex: 0 0 4em;
}

.business-reference-letter {
    width: 4em;
    height: 4em;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #f0f1f3;
    color: #5b6168;
    font-size: 1.3em;
}

.business-reference-content {
    flex: 1;
    min-width: 0;
}

.business-reference-name,
.business-reference-role {
    display: block;
}

.business-reference-name {
    margin-bottom: 0.15em;
}

.business-reference-role {
    margin-bottom: 0.7em;
    color: #6c757d;
}

.business-reference-contact {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-top: 0.35em;
}

.business-reference-contact i {
    width: 1em;
    color: #6c757d;
    text-align: center;
}

.business-reference-contact a {
    color: #5a6169;
    overflow-wrap: anywhere;
}

.business-widget-action {
    margin-top: 1em;
    text-align: center;
}

.btn-reference {
    margin: 0;
    padding: 0.45em 0.8em;

    color: #4285f4;
    background: #ffffff;
    border: 1px solid #4285f4;
}

.btn-reference:hover {
    color: #ffffff;
    background: #4285f4;
}


.business-empty-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    color: #6c757d;
}


/* ==================================================
   KPI
================================================== */

.business-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1em 0.75em;
}

.business-kpi {
    display: flex;
    align-items: center;
    gap: 0.7em;
    min-width: 0;
}

.business-kpi-icon {
    flex: 0 0 2.6em;
    width: 2.6em;
    height: 2.6em;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 0.45em;
}

.business-kpi-blue {
    color: #3478c8;
    background: #eaf3ff;
}

.business-kpi-purple {
    color: #7247c7;
    background: #f1ebff;
}

.business-kpi-green {
    color: #24923f;
    background: #e8f7eb;
}

.business-kpi-lightblue {
    color: #168fc5;
    background: #e5f7ff;
}

.business-kpi-orange {
    color: #e77b00;
    background: #fff1df;
}

.business-kpi-red {
    color: #d74444;
    background: #fde9e9;
}

.business-kpi-content {
    min-width: 0;
}

.business-kpi-label {
    display: block;
    color: #6c757d;
    font-size: 0.83em;
    line-height: 1.2;
}

.business-kpi-value {
    display: block;
    margin-top: 0.1em;
    font-size: 1.2em;
}


/* ==================================================
   DATE
================================================== */

.business-date-list {
    display: flex;
    flex-direction: column;
}

.business-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;

    padding: 0.7em 0;
    border-bottom: 1px solid #eceff2;
}

.business-date-row:first-child {
    padding-top: 0;
}

.business-date-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.business-date-label {
    color: #6c757d;
}

.business-date-label i {
    width: 1.4em;
    margin-right: 0.35em;
    text-align: center;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 912px) {

    .business-summary-column {
        width: 100% !important;
        padding-right: 0 !important;
    }

    .business-summary-header {
        align-items: center;
    }

    .business-kpi-grid {
        grid-template-columns: 1fr;
    }

}

@media (min-width: 913px) and (max-width: 1250px) {

    .business-summary-header {
        display: block;
        text-align: center;
    }

    .business-summary-avatar {
        margin: 0 auto 0.8em;
    }

    .business-summary-badges {
        justify-content: center;
    }

    .business-kpi-grid {
        grid-template-columns: 1fr;
    }

}

/* ==================================================
   COLLEGAMENTO CONTATTO / AZIENDA
================================================== */

.contact-primary-option {
	display: flex !important;
	align-items: flex-start;
	gap: 0.75em;

	width: 100%;
	margin: 1em 0;
	padding: 1em;

	background: #f5f7f9;
	border: 1px solid #dfe3e7;
	border-radius: 0.5em;

	cursor: pointer;
}

/* Sovrascrive .container input { width:100% } */
.container .contact-primary-option input[type="checkbox"],
.modale .contact-primary-option input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.1em !important;
	height: 1.1em;
	margin: 0.25em 0 0 0 !important;
	padding: 0;
	cursor: pointer;
}

.contact-primary-option span {
	display: block;
	flex: 1;
	min-width: 0;
}

.contact-primary-option strong {
	display: block;
	margin: 0;
	line-height: 1.3;
}

.contact-primary-option small {
	display: block;
	margin-top: 0.3em;

	color: #6c757d;
	font-size: 0.85em;
	font-weight: 400;
	line-height: 1.4;
}
.contact-company-link-toggle {
	margin: 1em 0;
}

.contact-company-link-toggle .btn {
	margin: 0;
}

.contact-company-link-section {
	margin-top: 1em;
	padding-top: 1em;
	border-top: 1px solid #e2e5e9;
}

.contact-company-link-section h2 {
	margin: 0 0 0.8em;
	font-size: 1.35em;
	text-transform: none;
}

.contact-company-link-section .form-group {
	margin-bottom: 1em;
}

.contact-company-link-section .form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1em;
}

@media (max-width: 700px) {

	.contact-company-link-section .form-row {
		grid-template-columns: 1fr;
	}

}

.contact-selected-business {
    display: flex;
    align-items: center;
    gap: 0.8em;

    width: 100%;
    margin-bottom: 1em;
    padding: 0.9em 1em;

    background: #f5f8fb;
    border: 1px solid #dfe5eb;
    border-radius: 0.5em;
}

.contact-selected-business.nascosto {
    display: none !important;
}

.contact-selected-business-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 2.6em;
    width: 2.6em;
    height: 2.6em;

    color: #4285f4;
    background: #e8f1ff;
    border-radius: 50%;
}

.contact-selected-business-data {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.contact-selected-business-data small {
    color: #6c757d;
    font-size: 0.8em;
}

.contact-selected-business-data strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-contact-business {
    flex: 0 0 auto;

    width: 2em;
    height: 2em;
    margin: 0;
    padding: 0;

    color: #777;
    background: transparent;
    border: 0;

    font-size: 1.4em;
    cursor: pointer;
}

.remove-contact-business:hover {
    color: #dc3545;
}

/*bottoni selezione azienda da crea contatto*/
.contact-business-results {
    margin-top: 0.35em;
    border: 1px solid #d9dde2;
    border-radius: 0.45em;
    background: #fff;
    box-shadow: 0 0.4em 1em rgba(0,0,0,.08);
    overflow: hidden;
    max-height: 14em;
    overflow-y: auto;
    position: relative;
    z-index: 20;
}

.contact-business-results.nascosto {
    display: none !important;
}

.contact-business-result {
    padding: 0.7em 0.9em;
    border-bottom: 1px solid #eceff2;
    cursor: pointer;
    transition:
        background-color .12s ease,
        padding-left .12s ease;
}

.contact-business-result:last-child {
    border-bottom: 0;
}

.contact-business-result:hover {
    background: #f2f6fa;
    padding-left: 1.05em;
}

.contact-business-result:active {
    background: #e8eef5;
}
.contact-business-results-title {
    padding: 0.55em 0.9em;
    background: #f7f8fa;
    color: #6b7280;
    font-size: 0.82em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    border-bottom: 1px solid #e4e7eb;
}
.contact-business-loading {
    padding: 0.9em;
    color: #6b7280;
    font-size: 0.9em;
    text-align: center;
}
.business-badge-neutral {
    background: #edf0f2;
    color: #626970;
}
.table-main-link,
.table-contact-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.table-main-link:hover,
.table-contact-link:hover {
    text-decoration: underline;
}
button.business-badge {
    border: 0;
    font: inherit;
    cursor: pointer;
}

button.business-badge:hover {
    opacity: .8;
}
.dati-anagrafica-table tr.required-missing td {
    background: #fdecec;
}

.dati-anagrafica-table .feature-add-row td {
    background: transparent;
}

.dati-anagrafica-table .feature-add-row .btn {
    font-size: 0.9em;
}
.product-tracking-group {
    margin-top: 20px;
}

.product-tracking-title {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-tracking-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-tracking-option input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.product-tracking-option label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}
.inbound-sender-results {
	background-color: rgb(212 235 253);
    padding: 0 13px;
}
/* ==================================================
   DETTAGLIO ORDINE
================================================== */

.order-detail {
    width: 100%;
    padding: 10px 0 30px 0;
}


/* TESTATA */

.order-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;

    padding-bottom: 20px;
    margin-bottom: 22px;

    border-bottom: 1px solid #ddd;
}

.order-type-label {
    display: block;

    margin-bottom: 3px;

    font-size: 12px;
    color: #777;
    text-transform: uppercase;
}

.order-heading h1 {
    margin: 0 0 4px 0;

    font-size: 25px;
    font-weight: 500;
}

.order-id {
    font-size: 12px;
    color: #888;
}

.order-detail-status {
    padding-top: 5px;
}


/* ==================================================
   DUE COLONNE
================================================== */

.order-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 45px;

    margin-bottom: 25px;
}


/* SINGOLO BLOCCO */

.order-info-block {
    min-width: 0;
}

.order-info-block h3 {
    margin: 0 0 15px 0;
    padding-bottom: 8px;

    border-bottom: 1px solid #e5e5e5;

    font-size: 15px;
    font-weight: 600;
}


/* RIGA INFORMAZIONE */

.order-info-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);

    gap: 15px;

    padding: 6px 0;
}

.order-info-row > span {
    color: #777;
    font-size: 12px;
}

.order-info-row > strong {
    font-size: 13px;
    font-weight: 500;
}


/* COLLI + PALLET */

.order-info-inline {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.order-info-inline > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-info-inline span {
    color: #777;
    font-size: 12px;
}

.order-info-inline strong {
    font-size: 14px;
}


/* ==================================================
   NOTE
================================================== */

.order-notes-block {
    padding: 15px 18px;
    margin-bottom: 30px;

    background: #f7f7f7;
    border-left: 3px solid #ccc;
}

.order-notes-block > span {
    display: block;

    margin-bottom: 5px;

    color: #777;
    font-size: 12px;
}

.order-notes-block > div {
    font-size: 13px;
}


/* ==================================================
   PRODOTTI
================================================== */

.order-lines-section {
    padding-top: 5px;
}

.order-lines-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 15px;
    padding-bottom: 10px;

    border-bottom: 1px solid #ddd;
}

.order-lines-header h2 {
    margin: 0 0 3px 0;

    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
}

.order-lines-header p {
    margin: 0;

    color: #888;
    font-size: 12px;
}

.order-lines {
    margin-top: 10px;
}


/* EMPTY STATE */

.order-empty-state {
    padding: 25px;

    text-align: center;

    border: 1px dashed #ccc;
    background: #fafafa;
    color: #888;
}


/* ==================================================
   FOOTER
================================================== */

.order-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 25px;
    padding-top: 15px;

    border-top: 1px solid #ddd;

    color: #888;
    font-size: 12px;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

    .order-detail-header {
        gap: 15px;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .order-info-row {
        grid-template-columns: 1fr;
        gap: 2px;

        padding: 7px 0;
    }

    .order-info-inline {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .order-lines-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-lines-header .btn {
        width: 100%;
    }

    .order-detail-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .order-detail-footer .btn {
        width: 100%;
    }

}

/* ==================================================
   DOCUMENTI ORDINE
================================================== */

.order-documents-section {
    margin-top: 25px;
    padding-top: 5px;
}

.order-documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    margin-bottom: 12px;
    padding-bottom: 10px;

    border-bottom: 1px solid #ddd;
}

.order-documents-header h2 {
    margin: 0 0 3px 0;

    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
}

.order-documents-header p {
    margin: 0;

    color: #888;
    font-size: 12px;
}

.order-documents-empty {
    padding: 18px;

    color: #888;
    background: #fafafa;
    border: 1px dashed #ccc;
}

@media (max-width: 767px) {

    .order-documents-header {
        flex-direction: column;
        align-items: stretch;
    }

    .order-documents-header .btn {
        width: 100%;
    }

}

.inbound-product-autosuggest{position:relative}.inbound-product-results{position:absolute;left:0;right:0;top:100%;z-index:1100;max-height:320px;overflow-y:auto;background:#fff;border:1px solid #d7d7d7;box-shadow:0 8px 18px rgba(0,0,0,.12)}.inbound-product-result{display:grid;grid-template-columns:minmax(120px,180px) 1fr auto;gap:12px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #eee;background:#fff;text-align:left;cursor:pointer}.inbound-product-result:hover,.inbound-product-result:focus{background:#f4f4f4}.inbound-product-result strong,.inbound-product-result small{white-space:nowrap}.inbound-product-noresult{padding:12px;color:#777}.inbound-product-selected,.inbound-last-line{margin:10px 0 15px;padding:12px;background:#f5f5f5;border-left:4px solid #999}@media(max-width:768px){.inbound-product-result{grid-template-columns:1fr;gap:3px}}

.document-notes {
    margin-top: 3px;
    font-size: 0.85em;
    line-height: 1.25;
}

/*==================================================
  OPERATIVITÀ MAGAZZINO
==================================================*/

.warehouse-operations {
    width: 100%;
}


.warehouse-operations-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}


.warehouse-operations-header h1 {
    margin: 0 0 4px 0;
    font-size: 1.55rem;
}


.warehouse-operations-header p,
.warehouse-operation-panel-header p {
    margin: 0;
    color: #777;
}


/*==================================================
  KPI
==================================================*/

.warehouse-operation-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}


.warehouse-summary-box {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}


.warehouse-summary-value {
    display: block;
    margin-bottom: 3px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}


.warehouse-summary-label {
    display: block;
    font-size: .88rem;
    color: #666;
}


.warehouse-summary-alert {
    border-left: 4px solid #ff7d00;
}


/*==================================================
  GRIGLIA
==================================================*/

.warehouse-operation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}


.warehouse-operation-panel {
    min-width: 0;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #ddd;
}


.warehouse-operation-panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid #ddd;
}


.warehouse-operation-panel-header h2 {
    margin: 0 0 3px 0;
    font-size: 1.1rem;
}


.warehouse-active-operations {
    width: 100%;
}


/*==================================================
  TABELLE
==================================================*/

.warehouse-table-wrap {
    width: 100%;
    overflow-x: auto;
}


.warehouse-table {
    width: 100%;
    border-collapse: collapse;
}


.warehouse-table th {
    padding: 8px 10px;
    background: #3c3c3c;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}


.warehouse-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
}


.warehouse-table tbody tr:last-child td {
    border-bottom: 0;
}


.warehouse-table tbody tr:hover {
    background: #f8f8f8;
}


.warehouse-number {
    text-align: center;
}


.warehouse-actions-column {
    min-width: 190px;
}


.warehouse-row-actions {
    white-space: nowrap;
    text-align: right;
}


.warehouse-order-link {
    font-weight: 600;
}


/*==================================================
  EVIDENZE TEMPORALI
==================================================*/

.warehouse-order-today td {
    background: #fff8dc;
}


.warehouse-order-late td {
    background: #ffe6e6;
}


.warehouse-order-late:hover td {
    background: #ffdddd;
}


/*==================================================
  OPERATORI
==================================================*/

.warehouse-operator {
    display: inline-block;
    font-weight: 600;
}


.warehouse-operator-separator {
    color: #999;
}


/*==================================================
  EMPTY
==================================================*/

.warehouse-empty {
    padding: 26px 16px;
    color: #777;
    text-align: center;
}


/*==================================================
  MOBILE
==================================================*/

@media (max-width: 1100px) {

    .warehouse-operation-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .warehouse-operation-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 640px) {

    .warehouse-operations-header {
        display: block;
    }


    .warehouse-scan-actions {
        margin-top: 12px;
    }


    .warehouse-operation-summary {
        grid-template-columns: 1fr 1fr;
    }


    .warehouse-summary-box {
        padding: 12px;
    }


    .warehouse-summary-value {
        font-size: 1.6rem;
    }

}


.receiving-scan-section {
    margin: 18px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #ddd;
}


.receiving-scan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}


.receiving-scan-header h2 {
    margin: 0 0 4px 0;
}


.receiving-live-status {
    white-space: nowrap;
    font-size: .85rem;
}


.receiving-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: #7fbd4b;
}


.receiving-scan-input-row {
    display: flex;
    gap: 8px;
}


.receiving-scan-input {
    flex: 1;
    min-width: 0;
    font-size: 1.05rem;
}


.receiving-scan-submit {
    flex: 0 0 auto;
}


.receiving-scan-result {
    margin-top: 12px;
}


.receiving-scan-card {
    padding: 14px;
    border: 1px solid #ddd;
    background: #fafafa;
}


.receiving-scan-card h3 {
    margin: 8px 0 2px 0;
}


.receiving-scan-card p {
    margin: 4px 0 12px 0;
}


.receiving-last-activity {
    margin-top: 14px;
    display: none;
}


.receiving-order-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 14px;
    padding: 7px 11px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    font-size: .88rem;
}


.receiving-order-check-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
}


.receiving-order-check-red .receiving-order-check-dot {
    background: #d9534f;
}


.receiving-order-check-orange .receiving-order-check-dot {
    background: #f08a24;
}


.receiving-order-check-green .receiving-order-check-dot {
    background: #79bd4b;
}


.receiving-registrations {
    margin-top: 10px;
    border-top: 1px solid #e3e3e3;
    padding-top: 8px;
}


.receiving-registrations summary {
    cursor: pointer;
    color: #555;
    font-weight: 600;
}


.receiving-registration-list {
    margin-top: 8px;
}


.receiving-registration {
    margin-bottom: 7px;
    padding: 9px;
    border: 1px solid #ddd;
    background: #f7f7f7;
}


.receiving-registration-meta {
    margin-top: 3px;
    color: #777;
    font-size: .82rem;
}


.receiving-registration .btn {
    margin-top: 7px;
}


.receiving-anomaly-card .receiving-complete-tracking {
    margin-top: 9px;
}


.receiving-label-status {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
}


.receiving-label-status strong,
.receiving-label-status span {
    display: block;
}


.receiving-label-status span {
    margin-top: 3px;
    color: #666;
}


.receiving-label-status-blocked {
    border-left: 4px solid #f08a24;
}


.receiving-label-status-ready {
    border-left: 4px solid #79bd4b;
}


.receiving-print-labels {
    margin-top: 10px;
}


/* Ricevimento terminato: riepilogo consultabile ma non modificabile. */
.receiving-closed .receiving-scan-section,
.receiving-closed .receiving-line-actions,
.receiving-closed .receiving-add-unexpected-product {
    display: none;
}


.form-inbound-receiving-complete {
    width: min(760px, calc(100vw - 40px));
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}


.form-inbound-receiving-complete h2 {
    margin-top: 0;
}


.receiving-completion-summary {
    margin: 18px 0;
    border-top: 1px solid #ddd;
}


.receiving-completion-row {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
}


.receiving-completion-row > div + div {
    margin-top: 4px;
}


.receiving-completion-result {
    font-weight: 700;
}


.receiving-completion-missing .receiving-completion-result,
.receiving-completion-excess .receiving-completion-result {
    color: #d97904;
}


.receiving-completion-exact .receiving-completion-result {
    color: #609d31;
}


.receiving-completion-totals {
    margin: 16px 0;
    padding: 12px;
    background: #f3f3f3;
}


.receiving-anomaly-list {
    display: grid;
    gap: 10px;
}


.receiving-anomaly-card {
    padding: 12px;
    border-left: 4px solid #e58418;
    background: #fff7ed;
}


.receiving-anomaly-product {
    margin-bottom: 6px;
}


.receiving-anomaly-badges:empty {
    display: none;
}


.receiving-anomaly-text {
    margin-top: 6px;
}


.receiving-anomaly-meta {
    margin-top: 7px;
    color: #666;
    font-size: .9rem;
}


.receiving-product-choice-list,
.receiving-unexpected-results {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}


.receiving-manual-product-choice,
.receiving-unexpected-product-choice {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d5d5d5;
    background: #fff;
    color: #222;
    text-align: left;
    cursor: pointer;
}


.receiving-manual-product-choice:hover,
.receiving-unexpected-product-choice:hover {
    border-color: #7fbd4b;
    background: #f5faef;
}


.receiving-manual-product-choice span,
.receiving-unexpected-product-choice span {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: .9rem;
}


.form-receiving-unexpected-product,
.form-receiving-manual-association {
    width: min(720px, calc(100vw - 40px));
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}


.receiving-label-status-pending {
    border-left: 4px solid #888;
    background: #f3f3f3;
}


.form-inbound-logistic-splits {
    width: min(820px, calc(100vw - 40px));
    max-height: calc(100vh - 50px);
    overflow-y: auto;
}


.logistic-split-group {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fafafa;
}


.logistic-split-group h3 {
    margin: 0 0 7px;
}


.logistic-split-meta {
    margin: 0 0 14px;
    color: #555;
}


.logistic-split-automatic {
    padding: 11px 12px;
    border-left: 3px solid #777;
    background: #eee;
}


.logistic-split-quantities {
    min-height: 105px;
    resize: vertical;
}


.logistic-split-row {
    display: grid;
    grid-template-columns: 150px minmax(190px, 1fr) minmax(210px, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e2e2;
}


.logistic-split-row .form-group {
    margin: 0;
}


.logistic-quantity-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}


.logistic-quantity-with-unit span {
    min-width: 32px;
    font-weight: 600;
}


.logistic-add-row {
    margin-top: 3px;
}


.logistic-split-group-total {
    margin-top: 12px;
    padding: 9px 11px;
    background: #eee;
}


@media (max-width: 760px) {
    .logistic-split-row {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .inbound-receiving {
        width: 100%;
    }


    .receiving-header {
        display: block;
    }


    .receiving-header-status {
        margin-top: 8px;
    }


    .receiving-summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }


    .receiving-summary-box {
        min-width: 0;
        padding: 9px;
    }


    .receiving-order-totals {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }


    .receiving-scan-section {
        margin: 12px -6px;
        padding: 12px;
    }


    .receiving-scan-header {
        display: block;
    }


    .receiving-live-status {
        margin-top: 6px;
    }


    .receiving-scan-input-row {
        display: block;
    }


    .receiving-scan-input {
        width: 100%;
        height: 44px;
    }


    .receiving-scan-submit {
        width: 100%;
        margin-top: 7px;
        height: 42px;
    }


    .receiving-line {
        margin-bottom: 10px;
        padding: 12px;
        border: 1px solid #ddd;
        background: #fff;
    }


    .receiving-line-main {
        display: block;
    }


    .receiving-line-status {
        margin-top: 5px;
    }


    .receiving-line-data {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 10px;
    }


    .receiving-line-data > div {
        min-width: 0;
    }


    .receiving-line-data span {
        display: block;
        font-size: .78rem;
        color: #777;
    }


    .receiving-line-actions {
        margin-top: 10px;
    }


    .receiving-line-actions .btn {
        width: 100%;
        min-height: 42px;
    }


    .receiving-section-header {
        display: block;
    }


    .receiving-add-unexpected-product {
        width: 100%;
        margin-top: 8px;
    }


    .receiving-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }


    .receiving-footer .btn {
        width: 100%;
        min-height: 42px;
    }

}

.inbound-putaway-progress {
    margin: 14px 0 18px;
    padding: 12px 14px;
    background: #f2f2f2;
    border-left: 4px solid #f28c00;
}

.form-inbound-putaway {
    max-width: 680px;
    padding: 24px;
}

.form-inbound-putaway .form-group {
    margin-bottom: 16px;
}

.form-inbound-putaway .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.putaway-location-scan .receiving-scan-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.putaway-location-divider {
    margin: 18px 0 10px;
    color: #666;
    text-align: center;
}

.putaway-location-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(105px, 1fr));
    gap: 8px;
}

.putaway-location-summary {
    min-height: 24px;
    margin-top: 10px;
    color: #555;
}

.putaway-unit-summary {
    min-height: 22px;
    margin-top: 8px;
    padding: 10px 12px;
    background: #f2f2f2;
    border-left: 4px solid #80bd45;
    line-height: 1.45;
}

.putaway-unit-summary:empty {
    display: none;
}

.putaway-confirmation-box {
    margin: 1rem 0;
    padding: 1rem;
    border: 2px solid #e7a21a;
    border-radius: 8px;
    background: #fff8e8;
    color: #4b3812;
}

.putaway-confirmation-box p {
    margin: .5rem 0 1rem;
}

.putaway-confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.defective-goods-header,
.defective-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.defective-goods-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.defective-goods-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.defective-goods-table {
    min-width: 1180px;
}

.cia-table-tools {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0 10px;
}

.cia-table-filter {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: min(520px,100%);
    margin: 0;
}

.cia-table-filter span,
.cia-table-result-count {
    font-size: 13px;
    color: #555;
}

.cia-table-filter-input {
    width: 100%;
    box-sizing: border-box;
}

.cia-filterable-table th.cia-sortable {
    position: relative;
    padding-right: 25px;
    cursor: pointer;
    user-select: none;
}

.cia-filterable-table th.cia-sortable::after {
    content: "↕";
    position: absolute;
    right: 8px;
    opacity: .45;
}

.cia-filterable-table th.cia-sortable.sort-asc::after {
    content: "↑";
    opacity: 1;
}

.cia-filterable-table th.cia-sortable.sort-desc::after {
    content: "↓";
    opacity: 1;
}

.cia-table-no-results {
    padding: 18px;
    text-align: center;
    color: #666;
    background: #f6f6f6;
}

.defective-detail {
    width: min(1050px, 94vw);
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 22px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 55px rgba(0,0,0,.28);
}

.defective-detail-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(150px,1fr));
    gap: 10px;
    margin: 15px 0;
}

.defective-detail-grid > div {
    padding: 10px;
    background: #f3f3f3;
    border-radius: 5px;
}

.defective-detail-grid span,
.defective-detail-grid strong {
    display: block;
}

.defective-notes,
.defective-documents,
.defective-detail-actions,
.defective-archive-result {
    margin-top: 16px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.defective-document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
    gap: 10px;
}

.defective-document-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 9px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: inherit;
    text-decoration: none;
}

.defective-document-card img {
    width: 100%;
    height: 125px;
    object-fit: cover;
}

.defective-document-card span,
.defective-document-card small {
    display: block;
    overflow-wrap: anywhere;
}

.defective-resolution-form label {
    display: block;
    margin: 12px 0;
}

.defective-resolution-form textarea {
    min-height: 85px;
}

.defective-resolution-confirmation {
    margin-top: 12px;
    padding: 12px;
    border: 2px solid #e7a21a;
    border-radius: 6px;
    background: #fff8e8;
}

.cia-status-error {
    background: #f8e1df;
    color: #8b2f28;
}

@media (max-width: 800px) {
    .defective-goods-header,
    .defective-detail-header { flex-direction: column; }
    .defective-detail-grid { grid-template-columns: 1fr 1fr; }
    .cia-table-tools { align-items: stretch; flex-direction: column; }
}

@media (max-width: 480px) {
    .defective-detail {
        width: 96vw;
        max-height: 94vh;
        max-height: 94dvh;
        padding: 15px;
    }
    .defective-detail-grid { grid-template-columns: 1fr; }
}

.business-stock-summary { padding: 12px; background: #f2f2f2; }
.pending-dashboard { margin: 0 0 16px; }
.pending-inbound-panel { padding: 18px; margin-bottom: 24px; background: #fff; border: 1px solid #ddd; border-left: 4px solid #e69b35; border-radius: 6px; }
.pending-inbound-panel h2 { font-size: 21px; margin: 0 0 12px; }
.pending-unit-scan { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.pending-unit-scan label { display: flex; flex-direction: column; gap: 5px; }
.pending-unit-scan input { padding: 9px; border: 1px solid #ccc; border-radius: 5px; min-width: 230px; }
.pending-unit-scan .btn { float: none; margin: 0; }
.pending-table-scroll { width: 100%; overflow-x: auto; margin-top: 14px; }
.pending-table-scroll table { width: 100%; border-collapse: collapse; }
.pending-table-scroll th { background: #393939; color: #fff; text-align: left; }
.pending-table-scroll th, .pending-table-scroll td { padding: 10px; border-bottom: 1px solid #ddd; white-space: normal; }
.business-inventory-open { border: 0; padding: 0; margin: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.business-inventory-open:hover { text-decoration: underline; }
.business-inventory-open:focus-visible { outline: 2px solid #4285f4; outline-offset: 4px; }
.modale .business-inventory-modal { background: #fff; color: #292d32; border-radius: 14px; width: min(1150px, 94vw); max-height: 90vh; max-height: 90dvh; margin: 4vh auto; display: flex; flex-direction: column; box-sizing: border-box; box-shadow: 0 14px 45px #0003; }
.modale .business-inventory-header { position: static; height: auto; width: auto; flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid #ddd; border-radius: 14px 14px 0 0; background: #fff; }
.modale .business-inventory-header > div { min-width: 0; }
.modale .business-inventory-close { flex: 0 0 auto; float: none; margin: 0; }
.business-inventory-header h2 { margin: 0 0 6px; font-size: 23px; }
.business-inventory-header p { margin: 0; color: #666; }
.business-inventory-body { padding: 20px 24px 24px; overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.business-inventory-stock-details { margin-top: 24px; border-top: 1px solid #ddd; padding-top: 16px; }
.business-inventory-stock-details > summary { cursor: pointer; font-weight: 600; margin-bottom: 16px; }
.business-inventory-slots { padding: 16px; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; }
.business-inventory-slots h3 { margin: 0; }
.business-inventory-section-title { margin: 24px 0 12px; }
.business-inventory-modal .business-stock-table thead { background: #393939; color: white; }
.business-inventory-modal .business-stock-table tbody tr:nth-child(odd) { background: #f3f3f3; }
@media (max-width: 600px) {
    .business-inventory-header { padding: 16px; }
    .business-inventory-body { padding: 16px; }
    .business-inventory-modal .business-stock-table { min-width: 780px; }
}
.business-slot-widget { display: block; margin-top: 12px; font-size: 13px; font-weight: normal; min-width: 0; }
.business-slot-caption { display: block; margin-bottom: 4px; color: #555; }
.business-slot-line { display: block; font-weight: 600; }
.modale .business-slot-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: 10px; margin: 12px 0 16px; width: 100%; }
.modale .business-slot-date-label { display: flex; flex-direction: column; gap: 5px; font-weight: normal; font-size: 12px; margin: 0; }
.modale .business-slot-controls input { width: 170px; height: 40px; max-width: 100%; min-width: 0; margin: 0; padding: 7px 10px; border: 1px solid #ccc; border-radius: 5px; background: #fff; font: inherit; font-size: 14px; }
.modale .business-slot-controls .btn { float: none; flex: 0 0 auto; width: auto; height: 40px; margin: 0; padding: 8px 12px; font-size: 13px; }
.modale .business-slot-result { display: block; padding: 12px 14px; background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; margin-bottom: 10px; }
.business-slot-note { display: block; font-size: 11px; color: #666; line-height: 1.4; }
.business-stock { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.business-stock-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; margin-bottom: 16px; }
.business-stock .business-stock-table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; box-sizing: border-box; margin: 0; }
.business-stock h3 { margin: 24px 0 12px; }
.business-stock .business-stock-table th,
.business-stock .business-stock-table td { white-space: normal; overflow-wrap: anywhere; word-break: normal; box-sizing: border-box; }
.business-stock-table th, .business-stock-table td {
    padding: 10px; vertical-align: top; text-align: left;
    border-bottom: 1px solid #ddd;
}
.business-stock-table th { white-space: nowrap; }
.business-stock-table .badge { white-space: normal; }

/* Importazione guidata catalogo cliente */
.catalog-import-wizard {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1100px, 94vw);
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    background: #fff;
    padding: 26px 28px;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.24);
    box-sizing: border-box;
}
.catalog-import-wizard h1 { margin: 0 0 6px; font-size: 24px; }
.catalog-import-wizard h3 { margin: 24px 0 10px; }
.catalog-import-wizard > p { margin: 0 0 20px; color: #666; }
.catalog-import-wizard .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}
.catalog-import-wizard .form-actions .btn { margin: 0; }
.catalog-map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.catalog-map-grid label,
.catalog-tracking-grid label,
.catalog-overwrite-tracking { display: block; }
.catalog-tracking-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 10px 0;
}
.catalog-overwrite-tracking { margin: 8px 0 22px; }
.catalog-preview-scroll {
    max-width: 100%;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}
.catalog-preview-scroll table { min-width: 700px; }
.catalog-import-validation { margin: 12px 0; }
.catalog-import-progress {
    margin-top: 18px;
    padding: 14px;
    background: #f2f2f2;
}
.catalog-import-report { line-height: 1.7; }
.catalog-import-report-error { color: #a12622; }
.catalog-import-progress .form-actions { margin-top: 12px; }

.business-products-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px auto auto;
    align-items: center;
    gap: 8px;
    margin: 14px 0 16px;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
}
.business-products-filter .form-control,
.business-products-filter .btn { margin: 0; width: auto; }
.business-products-count { color: #666; white-space: nowrap; text-align: right; }
.business-products-table { min-width: 950px; }
.business-products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 4px;
}
.business-products-pagination .btn { margin: 0; }
.business-products-pagination span { padding: 0 8px; }
@media (max-width: 760px) {
    .catalog-import-wizard { padding: 20px; }
    .catalog-map-grid { grid-template-columns: 1fr; }
    .business-products-filter { grid-template-columns: 1fr; }
    .business-products-count { text-align: left; }
}

.putaway-location-scan small {
    display: block;
    margin-top: 5px;
    color: #666;
}

@media (max-width: 760px) {
    .putaway-location-grid { grid-template-columns: 1fr; }
    .putaway-location-scan .receiving-scan-input-row { grid-template-columns: 1fr; }
}
.initial-inventory-box{max-width:980px;margin:30px auto;background:#fff;border-radius:10px;padding:28px;box-shadow:0 14px 45px rgba(0,0,0,.2)}
.initial-inventory-box h1{margin-top:0}
.initial-inventory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.initial-inventory-grid label,.initial-inventory-verify label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.initial-inventory-grid .initial-inventory-open{justify-content:flex-end;flex-direction:row;align-items:center}
.initial-inventory-session-report,.initial-inventory-result,.initial-inventory-verify-result{margin:15px 0}
.initial-inventory-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.initial-inventory-verify{margin-top:20px;padding:18px;border:1px solid #d8d8d8;border-radius:8px;background:#f8f8f8}
.initial-inventory-verify label{margin-bottom:12px}
.initial-inventory-product-field{position:relative}
.initial-inventory-product-results{display:none;position:absolute;z-index:20;top:100%;left:0;right:0;max-height:260px;overflow:auto;background:#fff;border:1px solid #ccc;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.initial-inventory-product-choice{display:block;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #eee;background:#fff;text-align:left;cursor:pointer}
.initial-inventory-product-choice:hover{background:#f2f7ed}
.initial-inventory-product-choice small{float:right;color:#777}
.initial-inventory-product-empty{padding:12px;color:#777}
.initial-inventory-grid label small{font-weight:400;color:#777;line-height:1.25}
.initial-inventory-total{margin:14px 0 20px;padding:14px 16px;border-radius:7px;background:#f2f7ed;font-size:18px}
.initial-inventory-total strong{font-size:22px;color:#477b27}
@media(max-width:800px){.initial-inventory-box{margin:10px;padding:18px}.initial-inventory-grid{grid-template-columns:1fr}}
.receiving-anomaly-photos{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.receiving-anomaly-photo{display:block;width:92px;height:72px;border:1px solid #ddd;border-radius:6px;overflow:hidden;background:#f5f5f5}
.receiving-anomaly-photo img{width:100%;height:100%;object-fit:cover}
.badge-red{background:#f8e1df;color:#8b2f28}
.logistic-defects-group {
    border-color: #d39e00;
    background: #fff8e1;
}

.logistic-defect-locked {
    margin: 10px 0;
    padding: 12px 14px;
    border: 1px solid #e4b84e;
    border-radius: 8px;
    background: #fff;
    color: #563d00;
}

.inbound-order-confirm-box {
    clear: both;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #e0ad35;
    border-radius: 8px;
    background: #fff8e1;
    color: #493500;
    text-align: left;
}

.inbound-order-confirm-box p {
    margin: 5px 0 12px;
}

.inbound-order-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.operazione-bar {
    position: fixed;
    z-index: 100000;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: none;
    max-width: min(620px, calc(100vw - 30px));
    padding: 13px 18px;
    border: 1px solid #5b9d32;
    border-radius: 8px;
    background: #edf8e7;
    color: #244b12;
    box-shadow: 0 8px 26px rgba(0,0,0,.18);
    font-weight: 600;
}

.business-defects-panel > p { margin: 0 0 18px; color: #666; }
.business-defects-panel h3 { margin: 22px 0 10px; }
.business-defect-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-left: 5px;
    padding: 0 7px;
    border-radius: 12px;
    background: #a12622;
    color: #fff;
    font-size: 12px;
}

.cia-identity-check {
    position: fixed;
    z-index: 1000000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(3px);
}
.cia-identity-check[hidden] { display: none; }
.cia-identity-dialog {
    width: min(440px,100%);
    padding: 28px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
    text-align: center;
}
.cia-identity-dialog h2 { margin: 0 0 18px; }
.cia-identity-dialog > p { font-size: 20px; }
.cia-identity-dialog .cia-identity-note { font-size: 14px; color: #666; }
.cia-identity-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.stock-unit-page-header,
.stock-unit-page-actions,
.stock-unit-search-row,
.stock-unit-detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.stock-unit-page-header { justify-content: space-between; }
.stock-unit-page-actions { justify-content: flex-end; }
.stock-unit-search-row { margin: 16px 0 20px; }
.stock-unit-search-row .form-control { flex: 1 1 300px; margin: 0; }
.stock-unit-search-row .btn { margin: 0; }
.stock-unit-results { overflow-x: auto; }
.stock-unit-detail,
.form-stock-unit-move,
.form-stock-unit-open,
.form-stock-unit-split,
.form-stock-unit-remove,
.form-stock-unit-damage,
.stock-unit-exhausted {
    width: min(1050px,calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    padding: 24px;
    overflow: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(0,0,0,.24);
}
.stock-unit-detail-actions { margin: 18px 0; }
.stock-unit-history { margin-top: 22px; }
.stock-unit-move-summary {
    margin: 14px 0 18px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f7f7f7;
    line-height: 1.6;
}
.form-stock-unit-move > label,
.form-stock-unit-open > label,
.form-stock-unit-split > label,
.form-stock-unit-remove > label,
.form-stock-unit-damage > label,
.stock-unit-split-grid > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    font-weight: 600;
}
.form-stock-unit-open .stock-unit-open-print {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    font-weight: 500;
}
.form-stock-unit-open .stock-unit-open-print input { margin: 0; }
.stock-unit-split-grid {
    display: grid;
    grid-template-columns: 160px minmax(190px,1fr) minmax(230px,1.2fr);
    gap: 12px;
    margin-top: 18px;
}
.stock-unit-split-grid > label { margin: 0; }
.stock-unit-split-total {
    margin: 16px 0;
    padding: 13px 15px;
    border: 1px solid #c9dcbf;
    border-radius: 8px;
    background: #f2f8ee;
}
.stock-unit-split-total.stock-unit-split-invalid {
    border-color: #d78c88;
    background: #fff0ef;
    color: #8b2f28;
}
.form-stock-unit-split .stock-unit-split-print {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    font-weight: 500;
}
.form-stock-unit-split .stock-unit-split-print input { margin: 0; }
.stock-unit-table-filter { margin: 16px 0; }
.stock-unit-exhausted-table { min-width: 960px; }
.form-stock-unit-remove .cia-inline-warning { margin: 14px 0; }
.stock-unit-damage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0;
}
.stock-unit-damage-grid > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}
.form-stock-unit-damage .stock-unit-damage-print {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    font-weight: 500;
}
.form-stock-unit-damage .stock-unit-damage-print input { margin: 0; }
.stock-unit-exhausted .btn-red,
.form-stock-unit-remove .btn-red,
.form-stock-unit-damage .btn-red,
.stock-unit-detail .btn-red {
    border-color: #9d2f29;
    background: #b83a33;
    color: #fff;
}
.stock-unit-exhausted .btn-red:hover,
.form-stock-unit-remove .btn-red:hover,
.form-stock-unit-damage .btn-red:hover,
.stock-unit-detail .btn-red:hover { background: #942d27; }
.stock-unit-move-message { margin-top: 14px; }
@media (max-width:760px) {
    .stock-unit-detail,
    .form-stock-unit-move,
    .form-stock-unit-open,
    .form-stock-unit-split,
    .form-stock-unit-remove,
    .form-stock-unit-damage,
    .stock-unit-exhausted {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        padding: 16px;
    }
    .stock-unit-split-grid { grid-template-columns: 1fr; }
    .stock-unit-damage-grid { grid-template-columns: 1fr; }
}
.outbound-modal-box{width:min(780px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;margin:20px auto;background:#fff;border-radius:14px;box-shadow:0 18px 55px rgba(0,0,0,.22);padding:24px;box-sizing:border-box}
.outbound-modal-box.outbound-editor,.outbound-modal-box.outbound-picking{width:min(1040px,calc(100vw - 32px))}
.modale .outbound-modal-box .outbound-order-form,.modale .outbound-modal-box .outbound-add-line-form,.modale .outbound-modal-box .outbound-pick-form,.modale .outbound-modal-box .outbound-differences-form,.modale .outbound-modal-box .outbound-package-form{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;background:transparent!important;padding:0!important;border-radius:0!important;box-shadow:none!important}
.outbound-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:1px solid #e4e8ec;padding-bottom:14px;margin-bottom:18px}
.outbound-modal-head h2,.outbound-lines-head h3{margin:0 0 5px}.outbound-modal-head p{margin:0;color:#66717c}
.outbound-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.outbound-form-grid label,.outbound-product-search label,.outbound-add-line-form label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.outbound-form-grid input,.outbound-form-grid select,.outbound-form-grid textarea,.outbound-product-search input,.outbound-add-line-form input{width:100%;box-sizing:border-box}
.outbound-form-grid textarea{min-height:90px}.outbound-wide{grid-column:1/-1}
.outbound-recipient-group,.outbound-forwarder-group{position:relative}.outbound-recipient-group>label,.outbound-forwarder-group>label,.outbound-address-group>label{display:block;font-weight:600;margin-bottom:6px}
.outbound-recipient-search-wrap,.outbound-forwarder-search-wrap{position:relative}.outbound-recipient-results,.outbound-forwarder-results{display:none;position:absolute;left:0;right:0;top:calc(100% - 12px);z-index:20;max-height:220px;overflow:auto;background:#fff;border:1px solid #d8dee4;border-radius:8px;box-shadow:0 10px 28px rgba(0,0,0,.16)}
.outbound-recipient-result{display:block;width:100%;padding:10px 12px;text-align:left;background:#fff;border:0;border-bottom:1px solid #edf0f2;cursor:pointer}.outbound-recipient-result:hover{background:#fff6e8}.outbound-recipient-empty{padding:12px;color:#65707a}
.outbound-new-recipient,.outbound-new-address{margin-top:2px}.outbound-quick-panel,.outbound-address-panel{grid-column:1/-1;margin-top:10px;padding:14px;background:#f5f7f9;border:1px solid #dde3e8;border-radius:9px}
.outbound-new-forwarder{margin-top:2px}.outbound-forwarder-result{display:block;width:100%;padding:10px 12px;text-align:left;background:#fff;border:0;border-bottom:1px solid #edf0f2;cursor:pointer}.outbound-forwarder-result:hover{background:#fff6e8}
.outbound-quick-panel p{margin:4px 0 10px;color:#65707a}.outbound-address-grid{display:grid;grid-template-columns:2fr 2fr 1fr;gap:8px;margin-top:10px}.outbound-address-grid input{margin:0!important}
.outbound-form-actions,.outbound-lines-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.outbound-inline-message{padding:12px 14px;border-radius:8px;margin:14px 0}.outbound-inline-message.error{background:#feecec;color:#932828}.outbound-inline-message.warning{background:#fff4d6;color:#785600}
.outbound-inline-message.success{background:#e8f7ed;color:#176b39}.outbound-package-meta{display:grid;grid-template-columns:1fr 2fr;gap:14px;margin:14px 0}.outbound-package-meta label{display:flex;flex-direction:column;gap:6px;font-weight:600}.outbound-package-form{margin-top:22px;padding-top:18px;border-top:1px solid #dde3e8}.outbound-package-form input[type=number]{width:140px}.order-detail-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.outbound-package-action-panel{margin-top:14px}.outbound-package-delete-confirm{padding:16px 18px;background:#fff8e8;border:1px solid #e9c56d;border-radius:9px;white-space:normal}.outbound-package-delete-confirm strong{display:block;margin-bottom:6px}.outbound-package-delete-confirm p{margin:0 0 13px;line-height:1.45}.outbound-package-confirm-actions{display:flex;gap:9px;flex-wrap:wrap}.outbound-package-form input.error{border:2px solid #c9362b!important;background:#fff1f0!important}
.outbound-modal-box.outbound-shipment{width:min(1050px,calc(100vw - 32px))}.modale .outbound-modal-box .outbound-note-confirm-form,.modale .outbound-modal-box .outbound-load-scan-form,.modale .outbound-modal-box .outbound-load-differences-form{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;background:transparent!important;padding:0!important;box-shadow:none!important}.delivery-note-head{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.delivery-note-head>div{padding:12px;background:#f5f7f9;border-radius:8px;display:flex;flex-direction:column;gap:4px}.delivery-note-head span{font-size:12px;color:#66717c}.delivery-note-address{grid-column:1/-1}.outbound-note-confirm-form{padding:16px!important;margin:18px 0;background:#fff8e8!important;border:1px solid #ead08e;border-radius:9px}.outbound-load-panel{margin-top:20px;padding:17px;background:#f4f7f9;border-radius:10px}.outbound-load-scan-form{display:grid!important;grid-template-columns:1fr auto;gap:12px;align-items:end}.outbound-load-scan-form label{display:flex;flex-direction:column;gap:6px;font-weight:600}.outbound-load-ok{background:#e8f7ed}.outbound-load-differences-form{display:grid!important;gap:10px}.outbound-load-differences-form label{display:flex;flex-direction:column;gap:6px;padding:12px;background:#fff4d6;border-radius:8px}.outbound-load-differences-form textarea{min-height:65px}
@media(max-width:700px){.delivery-note-head{grid-template-columns:1fr}.delivery-note-address{grid-column:auto}.outbound-load-scan-form{grid-template-columns:1fr}}
.outbound-product-results{display:grid;gap:5px;margin-top:6px;max-height:260px;overflow:auto}
.outbound-product-result{display:flex;flex-wrap:wrap;gap:4px 8px;text-align:left;padding:11px 13px;border:1px solid #dfe5ea;border-radius:8px;background:#fff;cursor:pointer}
.outbound-product-result:hover{border-color:#f28b00;background:#fffaf3}.outbound-product-result small{display:block;width:100%;color:#52606b}
.outbound-selected-product{margin:14px 0}.outbound-add-line-form{display:grid;grid-template-columns:minmax(0,1fr) 220px auto;gap:12px;align-items:end;padding:14px;background:#f5f7f9;border-radius:9px}
.outbound-lines-table-wrap{overflow:auto}.outbound-lines-table{width:100%}.outbound-stock-ok{color:#207544;font-weight:700}.outbound-stock-ko{color:#b03030;font-weight:700}
.outbound-confirm-box{position:sticky;bottom:0;margin-top:16px;padding:16px;border:1px solid #f1c56b;border-radius:10px;background:#fff8e8;box-shadow:0 -8px 25px rgba(0,0,0,.08)}
.outbound-confirm-box p{margin:5px 0 12px}.outbound-complete-box{text-align:center;padding:35px 15px}
@media(max-width:720px){.outbound-form-grid{grid-template-columns:1fr}.outbound-wide{grid-column:auto}.outbound-add-line-form{grid-template-columns:1fr}.outbound-modal-box{width:calc(100vw - 14px);margin:7px auto;padding:16px}}
.outbound-pick-grid{display:grid;grid-template-columns:1fr 1fr 180px auto;gap:12px;align-items:end;padding:14px;background:#f4f7f9;border-radius:9px}
.outbound-pick-grid label,.outbound-differences-form label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.outbound-pick-grid input{width:100%;box-sizing:border-box}.outbound-picking-lines{margin-top:18px;overflow:auto}
.outbound-picking-table{width:100%}.outbound-pick-done{opacity:.62;background:#edf8f1}.outbound-pick-pending td:nth-child(2) strong{color:#bd6200}
.outbound-complete-picking-wrap{display:flex;justify-content:flex-end;margin-top:16px}.outbound-differences-form{display:grid;gap:12px;width:min(680px,100%)}
.outbound-differences-form label{padding:12px;background:#fff5dc;border-radius:8px}.outbound-differences-form textarea{min-height:72px}
.product-logistics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.product-logistics-grid>div{display:flex;flex-direction:column;gap:5px;padding:13px;background:#f5f7f9;border:1px solid #e1e5e8;border-radius:8px}.product-logistics-grid span{color:#6b747c;font-size:12px}.product-stock-summary{display:flex;flex-wrap:wrap;gap:12px 24px;padding:14px;margin-bottom:15px;background:#f5f7f9;border-radius:8px}.product-stock-summary strong{color:#207544}.product-stock-table{min-width:900px}
@media(max-width:900px){.outbound-pick-grid{grid-template-columns:1fr 1fr}.outbound-pick-grid button{grid-column:1/-1}}
@media(max-width:600px){.outbound-pick-grid{grid-template-columns:1fr}.outbound-pick-grid button{grid-column:auto}.product-logistics-grid{grid-template-columns:1fr}}
