
*, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
html, body { color: #465664; background-color: #eff1f5; line-height: 20px !important; padding: 0; margin: 0; font: 13px 'Montserrat', sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; }
small { line-height: 15px; font-size: 12px; font-weight: 300; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: bold; }
a { text-decoration: none; }
hr { margin: 10px 0px; border: 0; border-bottom: 1px solid #ddd; }

html {-moz-text-size-adjust: none; -webkit-text-size-adjust: none; text-size-adjust: none; }

span.icon { margin-right: 5px; float: left; display: block; }

button, .button { height: 40px; line-height: 40px !important; border: 0; border-radius: 5px; padding: 0px 15px; font: 13px 'Montserrat', sans-serif; font-weight: bold; clear: both; cursor: pointer; text-decoration: none; display: inline-block; -webkit-appearance: none; }
button .material-icons, .button .material-icons { line-height: 40px !important; margin: 0px 5px 0px -5px; float: left; }

input:not([type='checkbox']):not([type='radio']), select, textarea { color: #263238; background-color: #fff; border: 1px solid rgba(0,0,0,.1); padding: 0px 10px; font: 13px 'Montserrat', sans-serif; -webkit-appearance: none; }
select { height: 40px; line-height: 40px; border-color: #ddd; padding: 0px 10px; cursor: pointer; }

.box { background-color: #fff; border: 1px solid rgba(0,0,0,.1); padding: 10px; margin-bottom: 30px; position: relative; clear: both; }
.box:after { content: ''; display: block; clear: both; }
.title { margin-bottom: 20px; }
.row { margin-bottom: 10px; clear: both; }
.row:after { content: ''; display: block; clear: both; }
.clear { clear: both; }

.notice { background-color: #fea; border: 1px solid #a38627; padding: 10px; margin-bottom: 20px; display: block; }
.notice.error { background-color: #faa; border: 1px solid #a00; }

.loader-ring { width: 30px; height: 30px; display: block; }
.loader-ring:after { content: ' '; width: 30px; height: 30px; border-radius: 50%; border: 5px solid #465664; border-color: #465664 transparent #465664 transparent; animation: loader-ring 1.2s linear infinite; display: block; }
@keyframes loader-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.copy-on-click { text-decoration: underline dotted; cursor: pointer; }

/*
 *	TOPBAR
 */

#topbar { height: 70px; line-height: 70px; background-color: #fff; border-bottom: 1px solid #e3e8ef; padding: 0 18px 0 5px; position: fixed; top: 0; right: 0; left: 80px; z-index: 9; box-shadow: 0 10px 28px rgba(15, 23, 42, .06); }
#topbar-right { height: 70px; line-height: 70px;  float: right; }
#topbar-right .icon { height: 70px; line-height: 70px; }
#topbar .submenu { min-width: 0; height: 70px; padding: 0; margin: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
#topbar .submenu::-webkit-scrollbar { display: none; }
#topbar .submenu li { flex: 0 0 auto; height: 42px; padding: 0; list-style: none; display: flex; align-items: center; }
#topbar .submenu li span { color: #a38627; width: 30px; height: 40px; line-height: 40px; text-align: center; display: block; }
#topbar .submenu li a { color: #465664; background: #f7f9fc; min-height: 42px; line-height: 1; padding: 0 14px; border: 1px solid #e3e8ef; border-radius: 12px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 11px; font-weight: 900; text-transform: uppercase; box-shadow: 0 6px 16px rgba(15, 23, 42, .05); transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
#topbar .submenu li a:hover { color: #1b84ff; background: #eef6ff; border-color: rgba(27, 132, 255, .32); transform: translateY(-1px); box-shadow: 0 9px 18px rgba(27, 132, 255, .11); }
#topbar .submenu li.active a,
#topbar .submenu li.is-dashboard a { color: #fff; background: #101827; border-color: #101827; box-shadow: 0 9px 18px rgba(16, 24, 39, .18); }
#topbar .submenu li.active a:hover,
#topbar .submenu li.is-dashboard a:hover { color: #fff; background: #18243a; border-color: #18243a; }
#topbar .submenu .material-symbols-outlined { width: auto; height: auto; margin: 0; color: inherit; font-size: 18px; line-height: 1; float: none; display: inline-flex; }
#topbar .submenu .submenu-dot { min-width: 22px; height: 22px; line-height: 1; margin-left: 2px; padding: 0 7px; border-radius: 999px; color: #fff !important; background: #f59e0b; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; box-shadow: 0 7px 16px rgba(245, 158, 11, .24); }
#topbar .submenu--pickings .submenu-dot { background: #e11d48; box-shadow: 0 7px 16px rgba(225, 29, 72, .20); }
#topbar .submenu--pickings .submenu-dot.is-warning { background: #f59e0b; }
#topbar .submenu--caffettieri .submenu-dot { background: #17a673; box-shadow: 0 7px 16px rgba(23, 166, 115, .20); }
#topbar .submenu--caffettieri .submenu-dot.is-warning { background: #f59e0b; box-shadow: 0 7px 16px rgba(245, 158, 11, .24); }
#topbar > .submenu { flex: 1 1 auto; }
#mobile-brand { display: none; }

/*
 *  FOOTER
 */

#footer { width: 80px; line-height: 15px; padding: 10px; font-size: 11px; font-weight: bold; position: fixed; bottom: 0; }
#footer a { color: #fff; opacity: 0.3; }
#footer a:hover { opacity: 0.5; }

#mobile-menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	margin: 11px 10px 11px 0;
	padding: 0;
	position: relative;
	z-index: 10;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #1e293b;
	border: 1px solid #e3e8ef;
	border-radius: 12px;
	float: left;
	font-size: 1px;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

#mobile-menu-toggle .mobile-menu-icon {
	font-size: 23px;
	line-height: 1;
	font-variation-settings: "opsz" 48;
	display: block;
}

#mobile-menu-toggle .mobile-menu-icon--close {
	display: none;
}

body.mobile-sidebar-open #mobile-menu-toggle .mobile-menu-icon--menu {
	display: none;
}

body.mobile-sidebar-open #mobile-menu-toggle .mobile-menu-icon--close {
	display: block;
}

#mobile-menu-toggle-label {
	display: none;
	font-size: 12px;
	font-weight: 700;
	margin-left: 5px;
	line-height: 1;
}

#mobile-sidebar-close { display: none; }

#sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	z-index: 180;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}

/*
 *	SIDEBAR
 */

#sidebar { width: 80px; background: linear-gradient(180deg, #111827 0%, #263244 100%); border-right: 1px solid rgba(255,255,255,.06); position: fixed; top: 0; left: 0; bottom: 0; overflow: visible; z-index: 200; box-shadow: 12px 0 32px rgba(15,23,42,.10); }

#sidebar #open { background: #fff url('../img/logimen-symbol-transparent.png?v=20260718') no-repeat center; background-size: 50px auto; color: #fff; height: 70px; line-height: 70px; padding: 0; margin-bottom: 10px; box-shadow: inset 0 -1px 0 #e3e8ef; }
#sidebar #open a { width: 80px; height: 70px; color: #fff; display: block; }
#sidebar #open a span { line-height: 70px !important; font-size: 30px; }

#sidebar #tools { overflow: visible; -webkit-overflow-scrolling: touch; overflow: -moz-scrollbars-none; -ms-overflow-style: none; }
#sidebar #tools::-webkit-scrollbar { width: 0 !important }
#sidebar #tools ul { padding: 0 10px 132px; margin: 0; }
#sidebar #tools ul li { height: 52px; list-style: none; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; white-space: nowrap; overflow: visible; position: relative; }
#sidebar #tools ul li.divider { height: 1px; background-color: rgba(255,255,255,.08); margin: 12px 4px; }
#sidebar #tools ul li a { color: #8b99ab; width: 60px; height: 52px; line-height: 52px; padding: 0; border-radius: 14px; display: block; position: relative; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
#sidebar #tools ul li a.disabled { opacity: 0.3; }
#sidebar #tools ul li a span.icon { width: 60px; height: 52px; line-height: 52px; border-radius: 14px; padding: 0; margin: 0; font-size: 28px; text-align: center; float: none; display: block; transition: background .15s ease, color .15s ease; }
#sidebar #tools ul li a span:not(.icon) { color: #fff; background: #111827; height: 36px; line-height: 36px; padding: 0 13px; border-radius: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.22); font-size: 11px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; position: absolute; left: 72px; top: 8px; opacity: 0; pointer-events: none; transform: translateX(-6px); transition: opacity .15s ease, transform .15s ease; }
#sidebar #tools ul li a span:not(.icon):before { content: ""; width: 8px; height: 8px; background: #111827; position: absolute; left: -4px; top: 14px; transform: rotate(45deg); }
#sidebar #tools ul li:hover a,
#sidebar #tools ul li.active a { color: #fff; background: rgba(255,255,255,.10); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
#sidebar #tools ul li:hover a span.icon,
#sidebar #tools ul li.active a span.icon { color: #fff; background: transparent; }
#sidebar #tools ul li:hover a span:not(.icon) { opacity: 1; transform: translateX(0); }
/*
 *	DASHBOARD
 */

#dashboard { padding-top: 50px; text-align: center; }
#dashboard ul { max-width: 960px; padding: 0; margin: 0 auto; text-align: center; font-size: 0; }
#dashboard ul li { background-color: #fff; border: 4px solid #fff; border-radius: 10px; margin: 0 8px 8px 0; list-style: none; display: inline-block; position: relative; }
#dashboard ul li:hover { border: 4px solid #a38627; }
#dashboard ul li a { color: #263238; width: 150px; padding: 30px 0; text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; display: block; }
#dashboard ul li a .icon { color: #465664; margin: 0 0 10px 0; font-size: 30px; display: block; float: none; }
#dashboard ul li a img { max-height: 30px; margin: 0 auto 10px auto; display: block }
#dashboard ul li a.disabled { opacity: 0.3; }

.notification-badge { background-color: #a00; color: #fff; width: 30px; height: 30px; line-height: 30px !important; border-radius: 50%; padding: 0; text-align: center; font-size: 10px; font-weight: bold; display: block; position: absolute; top: -10px; left: -10px; }

/*
 *	PAGE
 */

#page { padding: 30px 50px; overflow-y: scroll; position: fixed; top: 70px; right: 0; bottom: 0px; left: 80px; }
#page #header { min-height: 40px; margin-bottom: 20px; }
#page #header h1 { height: 40px; line-height: 40px; margin-right: 20px; font-size: 20px; display: inline-block; float: left; }
#page #header #notices { clear: both; }
#page #header #breadcrumb {  }
#page #header #breadcrumb h1 { height: 40px; line-height: 40px; margin: 0px 0px 0px 0px; font-size: 15px; display: inline-block; }
#page #header #breadcrumb h1 * { opacity: 0.5; text-decoration: none; font-size: 15px; font-weight: 700; }
#page #header #breadcrumb h1 a:hover { text-decoration: underline; }
#page #header #breadcrumb h1 small { font-size: 12px; }
#page #header #breadcrumb a.back { color: rgba(0,0,0,.3); width: 40px; height: 40px; line-height: 40px; border-radius: 5px; margin-right: 10px; text-align: center; float: left; display: block; }
#page #header #breadcrumb a.back:hover { color: rgba(0,0,0,.2); background-color: rgba(0,0,0,.1); }
#page #header #breadcrumb a.back span { line-height: 40px !important; font-size: 30px; }

#page #header #tabs { padding: 0; display: block; clear: both; }
#page #header #tabs .tab { display: inline-block; list-style: none; }

#page #filters { margin-bottom: 30px; }
#page #filters label { height: 40px; line-height: 40px; padding: 0 10px 0 5px; float: left; display: block; }
#page #filters input { background-color: #fff; height: 40px; line-height: 40px; border-radius: 0; border: 1px solid #ddd; padding: 0 10px; margin: 0 5px 5px 0; float: left; }
#page #filters select { background-color: #fff; margin: 0 5px 5px 0; float: left; }
#page #filters input.selected { background-color: #fea; color: #a38627; border-color: #a38627; font-weight: bold; }
#page #filters select.selected { background-color: #fea; color: #a38627; border-color: #a38627; font-weight: bold; }
#page #filters #total-items { padding: 5px; }

#page #body { }
#page #body > h4 { padding: 10px 10px 0px 10px; }

/*
 *	TABLE
 */

table tr td { vertical-align: top; }

table.data { width: 100%; border-spacing: 0px 0px; border-collapse: separate; clear: both; }
table.data tr { }
table.data tr th { background-color: #fff; height: 20px; line-height: 20px; border-bottom: 1px solid #fff; border-right: 1px solid #fff; padding: 10px; text-transform: uppercase; text-align: left; }
table.data tr th.centered { text-align: center; }
table.data tr th a { color: #465664; font-size: 13px; text-decoration: none;  }
table.data tr th a:hover { text-decoration: underline; }
table.data tr td { background-color: #fff; height: 40px; line-height: 20px; border-bottom: 1px solid #fff; border-right: 1px solid #fff; padding: 10px; font-size: 13px; overflow: hidden; }
table.data tr:nth-child(even) td { background-color: rgba(239,241,245,.9); }
table.data tr:nth-child(odd) td { background-color: rgba(239,241,245,.3); }
table.data tr:hover td { background-color: rgba(216,220,228,1); }
table.data tr.processing td { background-color: #fea; }
table.data tr.pending td { background-color: #fca; }
table.data tr.cancelled td,
table.data tr.open td { background-color: #fcc; }
table.data tr.solved td { background-color: #cfc; }
table.data tr td { max-width: 500px; }
table.data tr td.null { color: #ccc; }
table.data tr td.negative { color: #a00; }
table.data tr td a { color: #465664; font-weight: bold; }
table.data tr td a:hover { color: #a38627; }
table.data tr td a.details { line-height: 0; text-align: center; display: block; }
table.data tr td a strong { font-weight: bold; }
table.data tr td span { margin-right: 5px; font-size: 20px; float:left; }

table.data tr td.centered { text-align: center; }
table.data tr td.icon { padding: 0px 10px; }
table.data tr td.icon span { line-height: 40px; font-size: 25px; }
table.data tr td.image img { max-width: 100px; max-height: 40px; margin: auto; display: block; }

table.data tr td input { background-color: #fff; width: 100%; height: 35px; line-height: 35px; }
table.data tr td select { background-color: #fff; width: 100%; height: 35px; line-height: 35px; }

table.data tr td.input-symbol { position: relative; }
table.data tr td.input-symbol:after { height: 35px; line-height: 35px; font-size: 13px; display: block; position: absolute; top: 10px; right: 20px; opacity: 0.5; }
table.data tr td.input-symbol.kg:after { content: 'kg'; }
table.data tr td.input-symbol.perc:after { content: '%'; }
table.data tr td.input-symbol.euro:after { content: '€'; }

table.data tr td.input-symbol:hover:after { display: none; }

/*
 *	PAGINATION
 */

#page .pagination { padding: 0; margin: 20px 0px; }
#page .pagination li { border-right: 1px solid #eee; list-style: none; display: inline-block; }
#page .pagination li a { color: #272935; background-color: #fff; height: 40px; line-height: 40px; border: 1px solid #eee; padding: 0px 15px; font-size: 15px; display: block; font-weight: bold; }
#page .pagination li.page a { font-size: 13px; }
#page .pagination li:hover a { background-color: rgba(255,255,255,.5); }
#page .pagination li.selected a { color: #fff; background-color: #465664; }
#page .pagination li a span { line-height: 40px; margin: 0px 5px 0px 0px; font-size: 13px; float: left; display:block; }
#page .pagination li.right a span { margin: 0px 0px 0px 5px; float: right; }

/*
 *	EDITOR
 */

#editor { padding: 20px 0px 0px 0px; }
#editor .title { padding: 20px 5px; margin: 0px; font-weight: bold; clear: both; }
#editor .opn-field { min-height: 40px; padding: 0px 5px; margin: 0px 0px 20px 0px; position: relative; }
#editor .opn-field.spacer { min-height: 60px; }
#editor .opn-field label { color: #aaa; height: 20px; line-height: 20px; line-height: 20px; font-size: 12px; display: inline-block; }
#editor .opn-field .field { width: 100%; height: 40px; line-height: 40px; border-radius: 0px; border: 1px solid #ddd; padding: 0px 10px; }
#editor .opn-field textarea.field { width: 100%; height: 100px; line-height: 15px; border-radius: 0px; border: 1px solid #ddd; padding: 10px; }
#editor button { margin: 30px 0px 5px 5px; clear: both; }
#deletor button { position: absolute; right: 15px; bottom: 15px; }

/*
 * COLORS
 */

.suite-colors { color: #263238; color: #465664; color: #a38627; color: #ff5963; }
.background-green { background-color: #a38627; }
.background-red { background-color: #ff5963; }
.color-green { color: #a38627; }
.color-red { color: #ff5963; }

a { color: #a38627; }
a:hover { color: #465664; }

button, .button { color: #fdfdfe; background-color: #263238; }
button:hover, .button:hover { color: #fdfdfe; background-color: #465664; }
button span, .button span { line-height: 40px; float: left; display: block; }
.button-green { color: #fff; background-color: #0a0; }
.button-green:hover { background-color: #070; }
.button-red { color: #fff; background-color: #a00; }
.button-red:hover { background-color: #700; }
.button-grey { color: #25282d; background-color: #a8afb8; }
.button-grey:hover { background-color: #6a7481; }
.button-white { color: #25282d; background-color: white; }
.button-white:hover { color: #25282d; background-color: #E0E1DD; }


/*
 * FIX DATEPICKERS
 */

input[name="day_from"]:before, input[name="day_to"]:before { float: left; }



/*
 * LOGGED USER ID 3 - SERIALI ORDINI
 */

/*
.logged-user-id-3 #sidebar { display: none; }
.logged-user-id-3 #topbar { display: none; }
.logged-user-id-3 #page { padding: 20px; top: 0; left: 0; }
.logged-user-id-3 #page #filters { margin: 0; position: relative; }
.logged-user-id-3 #page #filters input { width: 100%; height: 40px; line-height: 40px; border-color: #eee; margin: 0; font-size: 13px; }
.logged-user-id-3 #page #filters select { height: 40px; line-height: 40px; border-color: #eee; margin: 0; font-size: 13px; }
.logged-user-id-3 #page #filters #read-barcode { width: 58px; position: absolute; top: 3px; right: 5px; opacity: 0.3; cursor: pointer; }

.logged-user-id-3 #page .pagination { margin: 10px 0; }
.logged-user-id-3 #page .pagination li { width: 20%; }
.logged-user-id-3 #page .pagination li a { height: 40px; line-height: 40px; padding: 0 10px; text-align: center; }
.logged-user-id-3 #page .pagination li a span { line-height: 60px; }

.logged-user-id-3 #page #orders {  }
.logged-user-id-3 #page #orders .order { padding-top: 20px; margin-bottom: 10px; }
.logged-user-id-3 #page #orders .order.info { padding-top: 10px; }
.logged-user-id-3 #page #orders .order a { color: #465664; }
.logged-user-id-3 #page #orders .order div.info { line-height: 25px; border-left: 10px solid #eee; padding-left: 15px; margin-left: 10px; font-size: 15px; }
.logged-user-id-3 #page #orders .order div.products { line-height: 25px; border: 0; padding: 0px 0 10px 35px; margin: 0; font-size: 13px; position: relative; }
.logged-user-id-3 #page #orders .order div.products span { width: 50px; height: 50px; line-height: 25px; font-size: 30px; display: block; position: absolute; left: 0; }
.logged-user-id-3 #page #orders .order div.attachments { }
.logged-user-id-3 #page #orders .order div.attachments .image { border: 1px solid #ddd; width: 23%; margin: 1%; text-align: center; float: left; }
.logged-user-id-3 #page #orders .order div.attachments .image img { width: 100%; display: block; }
.logged-user-id-3 #page #orders .order div.attachments .image.new { border: 0; }
.logged-user-id-3 #page #orders .order div.attachments .image.new img { opacity: 0.1; }
.logged-user-id-3 #page #orders .order div.attachments .image.open { width: 100%; background-color: #f7f7f7; border: 1px dashed #ddd; padding: 5px; margin: 0 0 10px 0; }
*/

@media( max-width: 768px ) {
    .no-mobile { display: none; }
    .no-wrap { white-space: nowrap; }

    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { width: 100% !important; padding: 0 !important; }
    .box { margin-bottom: 12px; overflow: auto; }

    table.data .material-symbols-outlined { display: none; }

    #topbar {
        left: 0;
        right: 0;
        height: 64px;
        min-height: 64px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 12px 30px rgba(15, 23, 42, .10);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    #topbar #mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin: 0;
        border: 1px solid #dfe6ef;
        border-radius: 13px;
        background: #101827;
        color: #fff;
        box-shadow: 0 8px 18px rgba(16, 24, 39, .18);
    }

    #topbar #mobile-menu-toggle:hover {
        background: #1b84ff;
        border-color: #1b84ff;
        transform: translateY(-1px);
    }

    #topbar #mobile-brand {
        min-width: 0;
        height: 42px;
        margin: 0;
        display: inline-flex;
        align-items: center;
        color: #101827;
    }

    #topbar #mobile-brand img {
        width: 132px;
        height: auto;
        max-height: 30px;
        object-fit: contain;
        object-position: left center;
        display: block;
    }

    #topbar .submenu {
        flex: 1 1 auto;
        min-width: 0;
    }

    #topbar #mobile-menu-toggle-label { display: none; }

    #sidebar {
        width: min(86vw, 320px);
        height: 100vh;
        padding: 0 12px;
        overflow: hidden;
        overflow-x: hidden;
        transform: translateX(-100%);
        transition: transform .24s cubic-bezier(.22, .8, .24, 1), box-shadow .24s ease;
        box-shadow: 18px 0 44px rgba(15, 23, 42, .28);
    }
    #sidebar #open {
        height: 76px;
        margin: 0 -12px 12px;
        background-size: 48px auto;
    }
    #sidebar #open a { width: 100%; height: 76px; }
    #sidebar #tools {
        display: block !important;
        height: calc(100vh - 88px);
        overflow-y: auto;
        padding: 0 0 36px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, .22) transparent;
    }

    #sidebar #tools ul { padding: 0 0 112px; }
    #sidebar #tools ul li {
        width: 100%;
        margin-bottom: 6px;
        height: 48px;
    }

    #sidebar #tools ul li.divider {
        height: 1px;
        margin: 12px 4px;
        background: rgba(255, 255, 255, .12);
    }

    #sidebar #tools ul li a {
        width: 100%;
        height: 48px;
        line-height: 48px;
        border: 1px solid transparent;
        border-radius: 13px;
        padding: 0 13px;
        color: #aeb9c8;
        display: flex;
        align-items: center;
        transition: background .16s ease, color .16s ease, border-color .16s ease;
    }

    #sidebar #tools ul li a:hover,
    #sidebar #tools ul li.active a {
        color: #fff;
        background: rgba(255, 255, 255, .11);
        border-color: rgba(255, 255, 255, .12);
    }

    #sidebar #tools ul li a span.icon {
        flex: 0 0 36px;
        width: 36px;
        height: 48px;
        line-height: 48px;
        margin-right: 8px;
        color: inherit;
        font-size: 22px;
        text-align: center;
        display: block;
    }

    #sidebar #tools ul li a span:not(.icon) {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        width: auto;
        height: auto;
        line-height: 1;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
        display: inline;
    }

    #sidebar #tools ul li a span:not(.icon):before {
        display: none;
    }

    body.mobile-sidebar-open #sidebar {
        transform: translateX(0);
    }

    body.mobile-sidebar-open {
        overflow: hidden;
        touch-action: none;
    }

    body.mobile-sidebar-open #topbar {
        z-index: 220;
        background: transparent;
        box-shadow: none;
        pointer-events: none;
    }

    body.mobile-sidebar-open #topbar #mobile-menu-toggle {
        pointer-events: auto;
    }

    body.mobile-sidebar-open #topbar #mobile-brand {
        visibility: hidden;
    }

    body.mobile-sidebar-open #sidebar-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    body.mobile-sidebar-open #page {
        overflow: hidden;
    }

    body.mobile-sidebar-open #topbar,
    body.mobile-sidebar-open #logimen-operational-bar,
    body.mobile-sidebar-open .submenu {
        pointer-events: none;
    }

    #page { padding: 26px 12px 30px; top: 64px; left: 0; }

    body.has-mobile-submenu #page {
        padding-bottom: 96px;
    }

    body.has-mobile-submenu #topbar .submenu {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        padding: 9px 12px calc(9px + env(safe-area-inset-bottom)) !important;
        min-height: 64px !important;
        height: auto !important;
        background: rgba(255, 255, 255, .96) !important;
        border-top: 1px solid #dfe6ef !important;
        box-shadow: 0 -12px 30px rgba(15, 23, 42, .10);
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        align-items: center;
        gap: 7px;
        float: none;
        z-index: 170;
        display: flex;
        justify-content: flex-start;
        white-space: nowrap;
    }

    body.has-mobile-submenu #topbar .submenu::-webkit-scrollbar {
        display: none;
    }

    body.has-mobile-submenu #topbar .submenu li {
        float: none;
        height: auto !important;
        padding: 0;
        margin: 0;
        display: inline-flex !important;
        white-space: nowrap;
    }

    body.has-mobile-submenu #topbar .submenu li a,
    body.has-mobile-submenu #topbar .submenu li a:visited {
        min-height: 40px !important;
        height: 40px !important;
        line-height: 1 !important;
        padding: 0 12px !important;
        display: inline-flex;
        align-items: center;
        width: auto;
        white-space: nowrap;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 700;
    }

    body.has-mobile-submenu #topbar .submenu li a .material-symbols-outlined {
        display: inline-flex;
        width: auto;
        height: auto;
        font-size: 16px;
        line-height: 1;
        margin-right: 6px;
    }

    #dashboard h3 { display: none; }
    #dashboard br { display: none; }
    #dashboard ul { width: 100%; max-width: 520px; margin: auto; }
    #dashboard ul li { width: calc(50% - 4px); margin: 0 4px 8px 0; float: left; }
    #dashboard ul li a { width: 100%; padding: 24px 8px; }

    #header {}
    #header h1 { width: 100%; }
    #header a { margin-bottom: 5px; }

    #filters > form > *:not(script, style) { width: 100% !important; margin-right: 0 !important; display: block !important; }
    #filters > form .select2-hidden-accessible { display: none !important; }
    #filters > form > * > * { width: 100% !important; }

    #totals { width: 100%; }
    #totals span, #totals-yoy span { width: 48%; margin: 0 1% 10px 1%; }

    #page.orders .totals { width: 50%; padding: 20px 1px 0 1px; float: left; clear: none !important; }
    #page.orders .totals span { width: 100%; margin: 0 0 2px 0; }

}

/* Mobile app navigation: a real drawer plus a persistent dashboard dock. */
@media (max-width: 768px) {
    body #topbar #mobile-menu-toggle {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
        border-radius: 16px;
        box-shadow: 0 10px 22px rgba(16, 24, 39, .22);
    }

    body #topbar #mobile-menu-toggle .mobile-menu-icon { font-size: 28px; }

    body #sidebar {
        width: min(86vw, 338px);
        height: 100dvh;
        padding: 0;
        border: 0;
        border-right: 1px solid rgba(255, 255, 255, .1);
        border-radius: 0 22px 22px 0;
        background: #101827;
    }

    body #sidebar #open {
        height: 84px;
        margin: 0;
        border-radius: 0 22px 0 0;
        background-color: #fff;
        background-image: url('../img/logimen-completo-transparent.png');
        background-repeat: no-repeat;
        background-position: 20px center;
        background-size: 174px auto;
        box-shadow: inset 0 -1px 0 #e3e8ef;
    }

    body #sidebar #open a { width: 100%; height: 84px; }

    body #sidebar #tools {
        height: calc(100dvh - 84px);
        padding: 16px 12px 0;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    body #sidebar #tools ul {
        min-height: 100%;
        padding-bottom: 32px;
    }

    body #sidebar #tools:before {
        content: 'Menu principale';
        display: block;
        padding: 0 13px 10px;
        color: #8290a5;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .08em;
        line-height: 14px;
        text-transform: uppercase;
    }

    body #sidebar #tools ul li a {
        min-height: 50px;
        height: 50px;
        border-left: 3px solid transparent;
        border-radius: 13px;
        padding: 0 12px 0 10px;
    }

    body #sidebar #tools ul li a span.icon {
        flex-basis: 38px;
        width: 38px;
        height: 50px;
        line-height: 50px;
        font-size: 23px;
    }

    body #sidebar #tools ul li.active a,
    body #sidebar #tools ul li:hover a {
        border-left-color: #1b84ff;
        background: rgba(27, 132, 255, .14);
        box-shadow: inset 0 0 0 1px rgba(27, 132, 255, .13);
    }

    body #sidebar #tools ul li.active a span.icon { color: #51b0ff; }

    body.mobile-sidebar-open #topbar .submenu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body.has-mobile-submenu #topbar .submenu {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 170;
        min-height: 78px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
        display: flex !important;
        align-items: stretch;
        gap: 3px;
        overflow-x: auto !important;
        overflow-y: hidden;
        border-top: 1px solid #dfe6ef !important;
        background: rgba(255, 255, 255, .98) !important;
        box-shadow: 0 -14px 34px rgba(15, 23, 42, .13);
        scroll-snap-type: x proximity;
    }

    body.has-mobile-submenu #topbar .submenu li {
        flex: 0 0 72px;
        height: 62px !important;
        padding: 0;
        scroll-snap-align: start;
        display: flex !important;
        align-items: stretch;
    }

    body.has-mobile-submenu #topbar .submenu li + li:before {
        content: '';
        width: 1px;
        height: 34px;
        margin: auto 1px auto 0;
        background: #dfe6ef;
        display: block;
    }

    body.has-mobile-submenu #topbar .submenu li a,
    body.has-mobile-submenu #topbar .submenu li a:visited {
        position: relative;
        width: 72px;
        min-height: 62px !important;
        height: 62px !important;
        padding: 7px 6px 5px !important;
        border: 1px solid transparent !important;
        border-radius: 13px !important;
        color: #708096;
        background: transparent !important;
        box-shadow: none !important;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 9px;
        font-weight: 900;
        line-height: 11px !important;
        text-align: center;
        text-transform: uppercase;
        transform: none !important;
    }

    body.has-mobile-submenu #topbar .submenu li a:hover,
    body.has-mobile-submenu #topbar .submenu li.active a,
    body.has-mobile-submenu #topbar .submenu li.is-dashboard a {
        color: #1b84ff !important;
        background: #eef6ff !important;
        border-color: #cfe5ff !important;
    }

    body.has-mobile-submenu #topbar .submenu li.active a:after,
    body.has-mobile-submenu #topbar .submenu li.is-dashboard a:after {
        display: none;
    }

    body.has-mobile-submenu #topbar .submenu li a .material-symbols-outlined,
    body.has-mobile-submenu #topbar .submenu li a .icon {
        width: auto;
        height: 27px;
        min-height: 27px;
        margin: 0 !important;
        color: inherit;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 23px;
        line-height: 27px;
        float: none;
    }

    body.has-mobile-submenu #topbar .submenu li a .submenu-dot {
        min-width: 18px;
        width: auto;
        height: 18px;
        padding: 0 5px;
        border: 2px solid #fff;
        border-radius: 99px;
        position: absolute;
        top: 2px;
        right: 7px;
        font-size: 8px;
        line-height: 14px;
    }

    body.has-mobile-submenu #page { padding-bottom: 108px; }
}

/* Keep the dashboard dock at the bottom even if an older page script does not set the body helper class. */
@media (max-width: 768px) {
    #topbar .submenu {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 170;
        min-height: 78px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
        display: flex !important;
        align-items: stretch;
        gap: 3px;
        overflow-x: auto !important;
        overflow-y: hidden;
        border-top: 1px solid #dfe6ef !important;
        background: rgba(255, 255, 255, .98) !important;
        box-shadow: 0 -14px 34px rgba(15, 23, 42, .13);
    }

    #topbar .submenu li {
        flex: 0 0 72px;
        height: 62px !important;
        padding: 0;
        display: flex !important;
        align-items: stretch;
    }

    #topbar .submenu li + li:before {
        content: '';
        width: 1px;
        height: 34px;
        margin: auto 1px auto 0;
        background: #dfe6ef;
        display: block;
    }

    #topbar .submenu li a,
    #topbar .submenu li a:visited {
        position: relative;
        width: 72px;
        min-height: 62px !important;
        height: 62px !important;
        padding: 7px 6px 5px !important;
        border: 1px solid transparent !important;
        border-radius: 13px !important;
        color: #708096;
        background: transparent !important;
        box-shadow: none !important;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 9px;
        font-weight: 900;
        line-height: 11px !important;
        text-align: center;
        text-transform: uppercase;
    }

    #topbar .submenu li a:hover,
    #topbar .submenu li.active a,
    #topbar .submenu li.is-dashboard a {
        color: #1b84ff !important;
        background: #eef6ff !important;
        border-color: #cfe5ff !important;
    }

    #topbar .submenu li.active a:after,
    #topbar .submenu li.is-dashboard a:after {
        display: none;
    }

    #topbar .submenu li a .material-symbols-outlined,
    #topbar .submenu li a .icon {
        width: auto;
        height: 27px;
        min-height: 27px;
        margin: 0 !important;
        color: inherit;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 23px;
        line-height: 27px;
        float: none;
    }

    #topbar .submenu li a .submenu-dot {
        min-width: 18px;
        width: auto;
        height: 18px;
        padding: 0 5px;
        border: 2px solid #fff;
        border-radius: 99px;
        position: absolute;
        top: 2px;
        right: 7px;
        font-size: 8px;
        line-height: 14px;
    }

    body:has(#topbar .submenu) #page { padding-bottom: 108px; }

    body.mobile-sidebar-open #topbar .submenu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body.mobile-sidebar-open #topbar #mobile-menu-toggle {
        position: fixed;
        top: 16px;
        left: calc(min(86vw, 338px) - 52px);
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border: 1px solid #dfe6ef;
        border-radius: 10px;
        background: #f7f9fc;
        color: #344054;
        box-shadow: 0 6px 14px rgba(15, 23, 42, .1);
    }

    body.mobile-sidebar-open #topbar #mobile-menu-toggle .mobile-menu-icon { font-size: 22px; }
}

@media (max-width: 768px) {
    body #sidebar #open { position: relative; }

    body #sidebar #mobile-sidebar-close {
        position: absolute;
        top: 21px;
        right: 14px;
        z-index: 3;
        width: 42px;
        height: 42px;
        min-width: 42px;
        margin: 0;
        padding: 0;
        border: 1px solid #d9e2ef;
        border-radius: 12px;
        background: #101827;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1 !important;
        box-shadow: 0 10px 22px rgba(16, 24, 39, .22);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: scale(.92);
        transition: opacity .18s ease, visibility .18s ease, transform .18s ease, background-color .18s ease;
    }

    body #sidebar #mobile-sidebar-close .material-symbols-outlined {
        margin: 0;
        float: none;
        font-size: 23px;
        line-height: 1;
    }

    body #sidebar #mobile-sidebar-close:hover,
    body #sidebar #mobile-sidebar-close:focus-visible {
        background: #1b84ff;
        border-color: #1b84ff;
        outline: none;
        transform: scale(1);
    }

    body.mobile-sidebar-open #sidebar #mobile-sidebar-close {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: scale(1);
    }

    body.mobile-sidebar-open #topbar #mobile-menu-toggle {
        display: none !important;
        pointer-events: none !important;
    }

    body.mobile-sidebar-open #topbar {
        display: none;
    }
}

/* The mobile contextual navigation is intentionally outside #topbar. */
#mobile-context-nav { display: none; }

@media (max-width: 768px) {
    body.has-mobile-submenu #topbar > .submenu,
    body.has-mobile-submenu #topbar .submenu {
        display: none !important;
        position: static !important;
    }

    #mobile-context-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 175;
        display: block !important;
        width: 100%;
        pointer-events: none;
    }

    #mobile-context-nav .submenu {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        z-index: auto;
        min-height: 78px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
        display: flex !important;
        align-items: stretch;
        gap: 3px;
        overflow-x: auto !important;
        overflow-y: hidden;
        pointer-events: auto;
        border-top: 1px solid #dfe6ef !important;
        background: rgba(255, 255, 255, .98) !important;
        box-shadow: 0 -14px 34px rgba(15, 23, 42, .13);
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    #mobile-context-nav .submenu::-webkit-scrollbar { display: none; }

    #mobile-context-nav .submenu li {
        flex: 0 0 72px;
        height: 62px !important;
        padding: 0;
        list-style: none;
        scroll-snap-align: start;
        display: flex !important;
        align-items: stretch;
    }

    #mobile-context-nav .submenu li + li:before {
        content: '';
        width: 1px;
        height: 34px;
        margin: auto 1px auto 0;
        background: #dfe6ef;
        display: block;
    }

    #mobile-context-nav .submenu li a,
    #mobile-context-nav .submenu li a:visited {
        position: relative;
        width: 72px;
        min-height: 62px !important;
        height: 62px !important;
        padding: 7px 6px 5px !important;
        border: 1px solid transparent !important;
        border-radius: 13px !important;
        color: #708096;
        background: transparent !important;
        box-shadow: none !important;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 9px;
        font-weight: 900;
        line-height: 11px !important;
        text-align: center;
        text-transform: uppercase;
        white-space: normal;
    }

    #mobile-context-nav .submenu li a:hover,
    #mobile-context-nav .submenu li.active a,
    #mobile-context-nav .submenu li.is-dashboard a {
        color: #1b84ff !important;
        background: #eef6ff !important;
        border-color: #cfe5ff !important;
    }

    #mobile-context-nav .submenu li.active a:after,
    #mobile-context-nav .submenu li.is-dashboard a:after {
        display: none;
    }

    #mobile-context-nav .submenu li a .material-symbols-outlined,
    #mobile-context-nav .submenu li a .icon {
        width: auto;
        height: 27px;
        min-height: 27px;
        margin: 0 !important;
        color: inherit;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 23px;
        line-height: 27px;
        float: none;
    }

    #mobile-context-nav .submenu li a .submenu-dot {
        min-width: 18px;
        width: auto;
        height: 18px;
        padding: 0 5px;
        border: 2px solid #fff;
        border-radius: 99px;
        position: absolute;
        top: 2px;
        right: 7px;
        font-size: 8px;
        line-height: 14px;
    }

    body.has-mobile-submenu #page,
    body:has(#mobile-context-nav .submenu) #page { padding-bottom: 108px; }

    body.mobile-sidebar-open #mobile-context-nav {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
