/* ════════════════════════════════════════════
   Gestione Lista Ordini v2.2.7 — glo-style.css
   ════════════════════════════════════════════ */

.glo-wrap {
	font-family: Arial, sans-serif;
	font-size: 15px;
	color: #1d2327;
	max-width: 1200px;
	margin: 0 auto;
}

/* ── Toolbar ── */
.glo-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
	padding: 12px 16px;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}
.glo-filtri-left  { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.glo-toolbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.glo-input-search {
	padding: 7px 11px;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	font-size: 14px;
	width: 220px;
	outline: none;
	transition: border-color .15s;
}
.glo-input-search:focus { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; }

.glo-select-filtro {
	padding: 7px 11px;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	font-size: 14px;
	background: #fff;
	outline: none;
	cursor: pointer;
}
.glo-select-filtro:focus { border-color: #2271b1; }

.glo-count-label { font-size: 13px; color: #666; white-space: nowrap; }

/* ── Pulsante Stampa ── */
.glo-btn-stampa {
	background: #f0f0f1;
	color: #1d2327;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s;
}
.glo-btn-stampa:hover { background: #dcdcde; }

/* ── Sommario (nascosto, i valori sono visibili come testo informativo) ── */
.glo-sommario { display: none; }

/* ── Tabella ── */
.glo-table-wrap { overflow-x: auto; }
.glo-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	min-width: 720px;
}
.glo-table thead tr { background: #f0f0f1; border-bottom: 2px solid #c3c4c7; }
.glo-table th {
	padding: 11px 12px;
	text-align: left;
	font-weight: 700;
	font-size: 13px;
	color: #50575e;
	white-space: nowrap;
}
.glo-th-art, .glo-th-azioni { text-align: center; }

.glo-row td {
	padding: 11px 12px;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: middle;
}
.glo-row { cursor: pointer; transition: background .12s; }
.glo-row:hover td { background: #e8f0fe !important; }

/* Colori riga per stato */
.glo-row-concluso  td { background: #48D1CC; }
.glo-row-preventivo td { background: #fefce8; }
.glo-row-annullato td { background: #fff0ee; }

/* Ditta in bold (già nel PHP con <strong>, rinforziamo) */
.glo-td-ditta strong {
	font-weight: 700;
	font-size: 15px;
}

/* Badge "Pronta" inline nella cella Ditta */
.glo-pronta-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
	white-space: nowrap;
}
.glo-pronta-si { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* Riga con articolo pronto (turchese) — ha precedenza su sfondo base */
.glo-row-art-pronta td { background: #40E0D0 !important; }
.glo-row-art-pronta:hover td { background: #2ecfc0 !important; }

/* Riga "pronta" con sfondo tenue verde */
.glo-row-pronta.glo-row-concluso  td { background: #48D1CC; }
.glo-row-pronta.glo-row-preventivo td,
.glo-row-pronta td { background: #f6fff8; }
.glo-row-pronta:hover td { background: #e8f0fe !important; }

.glo-badge-numero { color: #1d6fa4; font-weight: 700; font-size: 15px; }
.glo-td-art, .glo-td-azioni { text-align: center; }
.glo-sal-positivo { color: #c0392b; font-weight: 700; }
.glo-sal-zero     { color: #27ae60; font-weight: 700; }

/* Badge stato */
.glo-stato-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.glo-stato-concluso   { background: #98FB98; color: #1a6b2a; }
.glo-stato-preventivo { background: #F0E68C; color: #7a6800; }
.glo-stato-annullato  { background: #FF6347; color: #fff; }
.glo-stato-aperto     { background: #e8f0fe; color: #1d6fa4; }

.glo-empty-row td { text-align: center; padding: 28px; color: #888; font-style: italic; }
.glo-hint { font-size: 13px; color: #888; margin-top: 8px; font-style: italic; }

/* ── Pulsanti ── */
.glo-btn-primary {
	background: #2271b1; color: #fff; border: none;
	border-radius: 3px; padding: 8px 18px; font-size: 14px; font-weight: 700;
	cursor: pointer; transition: background .15s;
}
.glo-btn-primary:hover { background: #135e96; }

.glo-btn-danger {
	background: #c0392b; color: #fff; border: none;
	border-radius: 3px; padding: 8px 16px; font-size: 14px; font-weight: 700;
	cursor: pointer; transition: background .15s;
}
.glo-btn-danger:hover { background: #96281b; }

.glo-btn-outline {
	background: #fff; color: #1d2327; border: 1px solid #c3c4c7;
	border-radius: 3px; padding: 7px 16px; font-size: 14px;
	cursor: pointer; transition: background .15s;
}
.glo-btn-outline:hover { background: #f6f7f7; }

.glo-btn-close {
	background: none; border: none; font-size: 22px;
	cursor: pointer; color: #888; line-height: 1;
	padding: 2px 8px; border-radius: 3px;
}
.glo-btn-close:hover { background: #f0f0f1; color: #1d2327; }

.glo-btn-open, .glo-btn-del-row {
	background: #fff; border: 1px solid #c3c4c7;
	border-radius: 3px; padding: 4px 10px;
	cursor: pointer; font-size: 13px; margin: 0 2px;
}
.glo-btn-open:hover    { background: #e8f0fe; border-color: #2271b1; }
.glo-btn-del-row       { border-color: #c0392b; color: #c0392b; }
.glo-btn-del-row:hover { background: #fce8e8; }

/* Pulsanti icona compatti nella riga tabella */
.glo-btn-icon-sm {
	background: none; border: none;
	padding: 3px 5px; cursor: pointer;
	font-size: 17px; line-height: 1;
	border-radius: 3px; transition: background .12s;
}
.glo-btn-icon-sm:hover { background: #f0f0f1; }
.glo-btn-del-row.glo-btn-icon-sm:hover { background: #fce8e8; }

/* Icone nel modal (Stampa/WA) */
.glo-btn-icon {
	background: none; border: 1px solid #c3c4c7;
	border-radius: 4px; padding: 8px 12px;
	font-size: 20px; line-height: 1; cursor: pointer;
	transition: background .12s;
}
.glo-btn-print-receipt.glo-btn-icon:hover { background: #e8f0fe; }
.glo-btn-wa-receipt.glo-btn-icon:hover    { background: #d4f5e0; }

/* Cella stato checkbox */
.glo-td-stato-chk { text-align: center; width: 36px; }

/* Tabella senza scroll — altezza auto */
.glo-table-wrap { overflow-x: auto; overflow-y: visible; }

/* ── Overlay & Modal ── */
.glo-overlay {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(0,0,0,.6);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}

/* Modal più grande: max-width 1020px, altezza 96vh */
.glo-modal {
	background: #fff;
	border-radius: 6px;
	width: 98%;
	max-width: 1020px;
	max-height: 96vh;
	overflow-y: auto;
	box-shadow: 0 8px 40px rgba(0,0,0,.28);
	display: flex;
	flex-direction: column;
}

.glo-modal-head {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 10px;
	padding: 18px 26px 14px;
	border-bottom: 1px solid #e0e0e0;
	position: sticky; top: 0; background: #fff; z-index: 2;
}
.glo-modal-head-left h2  { margin: 0 0 3px; font-size: 20px; font-weight: 700; }
.glo-modal-numero        { color: #1d6fa4; font-weight: 700; font-size: 16px; }
.glo-modal-head-right    { display: flex; align-items: center; gap: 10px; }

.glo-modal-body { padding: 22px 26px; flex: 1; font-size: 15px; }

.glo-modal-foot {
	padding: 16px 26px;
	border-top: 1px solid #e0e0e0;
	display: flex; gap: 12px; justify-content: flex-end;
	position: sticky; bottom: 0; background: #fff;
}

/* ── Card modal ── */
.glo-card { border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.glo-card-head {
	background: #f0f0f1;
	padding: 10px 17px;
	font-weight: 700;
	font-size: 14px;
	border-bottom: 1px solid #e0e0e0;
}
.glo-card-body       { padding: 18px; }
.glo-card-body-table { padding: 12px; }

.glo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .glo-grid-2 { grid-template-columns: 1fr; } }

.glo-field { display: flex; flex-direction: column; gap: 6px; }
.glo-field label { font-size: 14px; font-weight: 700; color: #50575e; }

/* Ditta strong inside view-val */
.glo-view-val strong { font-size: 18px; font-weight: 700; }

/* Data ordine view */
#glo-view-data { font-size: 17px; font-weight: 700; }

.glo-input {
	border: 1px solid #c3c4c7; border-radius: 3px;
	padding: 7px 10px; font-size: 15px;
	color: #1d2327; background: #fff; outline: none;
	width: 100%; box-sizing: border-box; transition: border-color .15s;
}
.glo-input:focus { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; }

.glo-input-acconto { max-width: 160px; }

.glo-view-val  { font-size: 16px; font-weight: 700; color: #1d2327; padding: 4px 0; min-height: 24px; }
.glo-view-note { font-size: 14px; font-weight: 400; color: #50575e; font-style: italic; white-space: pre-wrap; min-height: 70px; }

/* ── Anagrafica ── */
.glo-anagrafica {
	margin-top: 14px; background: #f6f7f7; border: 1px solid #e0e0e0;
	border-radius: 4px; padding: 12px 16px;
	display: flex; flex-wrap: wrap; gap: 5px 22px;
}
.glo-ana-campo { display: flex; gap: 6px; align-items: baseline; }
.glo-ana-label { font-size: 14px; font-weight: 700; color: #50575e; white-space: nowrap; }
.glo-ana-val   { font-size: 16px; font-weight: 700; color: #1d2327; }
.glo-ana-empty { color: #aaa; font-weight: 400; }

/* ── Tabella righe modal ── */
.glo-table-righe-wrap { overflow-x: auto; }
.glo-table-righe { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; table-layout: fixed; }
.glo-table-righe th {
	background: #f0f0f1; padding: 6px 4px;
	text-align: left; font-size: 12px; font-weight: 700; color: #50575e;
	border-bottom: 2px solid #c3c4c7; white-space: nowrap; overflow: hidden;
}
.glo-table-righe td { padding: 4px 3px; border-bottom: 1px dotted #e0e0e0; vertical-align: middle; font-size: 15px; font-weight: 700; overflow: hidden; }
.glo-table-righe input {
	border: 1px solid #c3c4c7; border-radius: 2px;
	padding: 4px 4px; font-size: 14px; font-weight: 700; outline: none;
	width: 100%; box-sizing: border-box;
}
.glo-table-righe input:focus { border-color: #2271b1; }
.glo-td-subtot { font-weight: 700; white-space: nowrap; font-size: 14px; }

/* Larghezze colonne fisse per edit mode compatto */
.glo-table-righe th:nth-child(1), .glo-table-righe td:nth-child(1) { width: 18%; } /* Articolo */
.glo-table-righe th:nth-child(2), .glo-table-righe td:nth-child(2) { width: 5%;  } /* Pronto */
.glo-table-righe th:nth-child(3), .glo-table-righe td:nth-child(3) { width: 6%;  } /* Qt */
.glo-table-righe th:nth-child(4), .glo-table-righe td:nth-child(4) { width: 7%;  } /* Taglia */
.glo-table-righe th:nth-child(5), .glo-table-righe td:nth-child(5) { width: 10%; } /* Colore */
.glo-table-righe th:nth-child(6), .glo-table-righe td:nth-child(6) { width: 9%;  } /* Prezzo */
.glo-table-righe th:nth-child(7), .glo-table-righe td:nth-child(7) { width: 9%;  } /* Subtot */
.glo-table-righe th:nth-child(8), .glo-table-righe td:nth-child(8) { width: auto; } /* Note */
.glo-table-righe th:nth-child(9), .glo-table-righe td:nth-child(9) { width: 28px; text-align: center; } /* ✕ */
.glo-btn-rm-riga {
	background: none; border: 1px solid #c0392b;
	border-radius: 3px; padding: 3px 8px; cursor: pointer; color: #c0392b; font-size: 13px;
}
.glo-btn-rm-riga:hover { background: #fce8e8; }

/* Riga articolo "Pronto" = sfondo verde */
.glo-riga-pronta { background: #90EE90 !important; }
.glo-riga-pronta input { background: transparent !important; }

/* Checkbox pronto nella riga articolo */
.glo-pronto-cell { text-align: center; }
.glo-pronto-chk  { width: 18px; height: 18px; cursor: pointer; accent-color: #27ae60; }

/* ── Importi senza cornici (testo semplice) ── */
.glo-importi-wrap {
	margin-bottom: 12px;
}
.glo-importo-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px dotted #e0e0e0;
}
.glo-importo-row:last-child { border-bottom: none; }
.glo-importo-label {
	font-size: 14px;
	font-weight: 700;
	color: #50575e;
	min-width: 80px;
}
.glo-importo-val {
	font-size: 16px;
	font-weight: 700;
	color: #1d2327;
}

/* ── Saldo box ── */
.glo-saldo-box {
	display: flex; align-items: center; justify-content: space-between;
	background: #f6f7f7; border: 1px solid #c3c4c7;
	border-radius: 4px; padding: 12px 16px; margin-top: 4px;
}
.glo-saldo-label { font-size: 15px; font-weight: 700; color: #50575e; }
.glo-saldo-val   { font-size: 22px; font-weight: 700; }

/* ── Picker stato ── */
.glo-stato-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; }

/* ── Cornice Stato ordine ── */
.glo-stato-box {
	position: relative;
	border: 2px solid #2271b1;
	border-radius: 6px;
	padding: 14px 16px 14px;
	margin-top: 16px;
}
.glo-stato-box-title {
	position: absolute;
	top: -11px;
	left: 14px;
	background: #fff;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #2271b1;
}
.glo-stato-opt {
	padding: 6px 0; border-radius: 3px; font-size: 13px;
	cursor: pointer; border: 1px solid #c3c4c7; background: #f9f9f9; color: #555;
	transition: border-color .12s;
	width: 90px; text-align: center;
}
.glo-stato-opt:hover             { border-color: #2271b1; }
.glo-stato-opt.glo-stato-active  { border: 2px solid #1d6fa4; font-weight: 700; }
.glo-stato-opt-concluso          { background: #98FB98; color: #1a6b2a; }
.glo-stato-opt-preventivo        { background: #F0E68C; color: #7a6800; }
.glo-stato-opt-annullato         { background: #FF6347; color: #fff; }

/* ── Toggle Pronta ── */
.glo-pronta-wrap { margin-top: 14px; }

.glo-pronta-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	padding: 10px 16px;
	border-radius: 5px;
	border: 2px solid #c3c4c7;
	background: #f9f9f9;
	transition: background .2s, border-color .2s;
	width: 100%;
	box-sizing: border-box;
}
.glo-pronta-toggle:hover { border-color: #2271b1; background: #f0f6ff; }

.glo-pronta-toggle input[type="checkbox"] {
	width: 20px; height: 20px;
	accent-color: #27ae60;
	cursor: pointer;
	flex-shrink: 0;
}
.glo-pronta-toggle-text {
	font-size: 15px;
	font-weight: 700;
	color: #1d2327;
}

/* Quando spuntato: bordo verde e sfondo chiaro */
.glo-pronta-toggle.is-checked {
	border-color: #27ae60;
	background: #f0fff4;
}
.glo-pronta-toggle.is-checked .glo-pronta-toggle-text {
	color: #155724;
}

/* ── Grid Stato + Azioni Ordine: 2 colonne affiancate ── */
.glo-stato-azioni-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 16px;
}
@media (max-width: 640px) { .glo-stato-azioni-grid { grid-template-columns: 1fr; } }
.glo-stato-box-full { width: 100%; }

/* ── Cornice Azioni Ordine (stile gemello di glo-stato-box) ── */
.glo-azioni-box {
	position: relative;
	border: 2px solid #0073aa;
	border-radius: 6px;
	padding: 14px 14px 12px;
}
.glo-azioni-box-title {
	position: absolute;
	top: -11px;
	left: 14px;
	background: #fff;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #0073aa;
}

/* Righe dentro Azioni Ordine */
.glo-azioni-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.glo-azioni-row:last-child { margin-bottom: 0; }
.glo-azioni-row-elimina {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px dashed #ddd;
}

/* Toggle verde per Ritiro */
.glo-slider-green { background-color: #ccc; }
.glo-bc-toggle input:checked + .glo-slider-green { background-color: #25D366; }

/* Stato testo toggle */
.glo-ritiro-stato {
	font-size: 13px;
	font-weight: 700;
	color: #999;
	min-width: 60px;
}
.glo-ritiro-stato.on { color: #25D366; }

/* Pulsante Invia Messaggio Ritiro */
.glo-btn-ritiro {
	background: #25D366;
	color: #fff;
	border: none;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	opacity: 0.35;
	pointer-events: none;
	transition: opacity 0.3s, background 0.15s;
	white-space: nowrap;
}
.glo-btn-ritiro:not([disabled]) { opacity: 1; pointer-events: auto; }
.glo-btn-ritiro:not([disabled]):hover { background: #1da851; }

/* Riga messaggio inviato */
.glo-msg-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 6px 0 8px;
	border-bottom: 1px dashed #ddd;
	margin-bottom: 8px;
}
.glo-msg-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}
.glo-msg-datetime-input {
	font-size: 12px;
	font-weight: 700;
	color: #0073aa;
	border: 1px solid #0073aa;
	border-radius: 3px;
	padding: 3px 5px;
	background: #f0f8ff;
}

/* ── BC-style elimina dentro Azioni Ordine ── */
.glo-toggle-wrap { display: flex; align-items: center; gap: 10px; }
.glo-bc-toggle { position: relative; display: inline-block; width: 52px; height: 28px; }
.glo-bc-toggle input { opacity: 0; width: 0; height: 0; }
.glo-bc-toggle-slider {
	position: absolute; cursor: pointer;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: #ccc; border-radius: 28px; transition: 0.3s;
}
.glo-bc-toggle-slider:before {
	position: absolute; content: "";
	height: 22px; width: 22px; left: 3px; bottom: 3px;
	background-color: white; border-radius: 50%; transition: 0.3s;
}
.glo-bc-toggle input:checked + .glo-bc-toggle-slider { background-color: #cc0000; }
.glo-bc-toggle input:checked + .glo-bc-toggle-slider:before { transform: translateX(24px); }
.glo-elimina-stato { font-size: 13px; font-weight: 700; color: #999; min-width: 60px; }
.glo-elimina-stato.on { color: #cc0000; }
.glo-btn-elimina-ordine {
	background: #cc0000; color: #fff; border: none;
	padding: 8px 14px; border-radius: 4px; font-size: 13px; font-weight: 700;
	cursor: pointer; opacity: 0.35; pointer-events: none;
	transition: opacity 0.3s, background 0.15s; white-space: nowrap;
}
.glo-btn-elimina-ordine:not([disabled]) { opacity: 1; pointer-events: auto; }
.glo-btn-elimina-ordine:not([disabled]):hover { background: #aa0000; }

/* ── DIALOG CONFERMA ELIMINA — stile BC (overlay rosso) ── */
.glo-confirm-elimina-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 199999;
	background: rgba(0,0,0,0.65);
	align-items: center;
	justify-content: center;
}
.glo-confirm-elimina-overlay.visible { display: flex; }
.glo-confirm-elimina-box {
	background: #FF0000;
	color: #fff;
	border-radius: 10px;
	padding: 30px 35px;
	max-width: 460px;
	width: 90%;
	box-shadow: 0 8px 32px rgba(0,0,0,0.5);
	text-align: center;
}
.glo-confirm-titolo  { font-size: 22px; font-weight: 700; margin-bottom: 18px; letter-spacing: 1px; }
.glo-confirm-body    { font-size: 16px; line-height: 1.6; margin-bottom: 10px; }
.glo-confirm-avviso  {
	font-size: 15px; font-style: italic; font-weight: 700;
	margin-bottom: 24px;
	border-top: 1px solid rgba(255,255,255,0.4);
	padding-top: 12px;
}
.glo-confirm-btn-wrap { display: flex; justify-content: center; gap: 20px; }
.glo-confirm-btn-annulla {
	background: #fff; color: #cc0000; border: none;
	padding: 10px 28px; border-radius: 5px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.glo-confirm-btn-annulla:hover { background: #f0f0f0; }
.glo-confirm-btn-conferma {
	background: #7a0000; color: #fff; border: none;
	padding: 10px 28px; border-radius: 5px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.glo-confirm-btn-conferma:hover { background: #550000; }

/* ── Notice ── */
.glo-notice {
	padding: 11px 18px; border-radius: 4px; margin-bottom: 14px; font-size: 14px;
}
.glo-notice-ok  { background: #d7edda; border: 1px solid #81c784; color: #1a6b2a; }
.glo-notice-err { background: #fce8e8; border: 1px solid #e57373; color: #b71c1c; }

/* ── STAMPA ── */
@media print {
	.glo-toolbar, .glo-hint,
	.glo-td-azioni, .glo-th-azioni { display: none !important; }
	.glo-wrap  { max-width: 100%; }
	.glo-table { font-size: 12px; }
	.glo-table th, .glo-table td { padding: 6px 8px; }
	.glo-row:hover td { background: transparent !important; }
}

/* Nasconde freccette su input number (tutti i browser) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* ── Cornice Stampa/WhatsApp (solo in Dettaglio) ── */
.glo-print-bar {
	position: relative;
	border: 2px solid #2271b1;
	border-radius: 6px;
	padding: 16px 26px 18px;
	margin: 0 0 0;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.glo-print-bar-title {
	position: absolute;
	top: -11px; left: 18px;
	background: #fff;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #2271b1;
}
.glo-print-bar-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.glo-btn-print-receipt {
	background: #2271b1; color: #fff; border: none;
	padding: 11px 24px; border-radius: 4px;
	font-size: 15px; font-weight: 700; cursor: pointer;
	display: inline-flex; align-items: center; gap: 8px;
	transition: background .15s;
}
.glo-btn-print-receipt:hover { background: #135e96; }

.glo-btn-wa-receipt {
	background: #25D366; color: #fff; border: none;
	padding: 11px 24px; border-radius: 4px;
	font-size: 15px; font-weight: 700; cursor: pointer;
	display: inline-flex; align-items: center; gap: 8px;
	transition: background .15s;
}
.glo-btn-wa-receipt:hover { background: #1da851; }

/* ══════════════════════════════════════════
   STAMPA 83mm — finestra popup dedicata
   Larghezza carta: 83mm, area utile ~75mm
   ══════════════════════════════════════════ */
.glo-receipt-print {
	font-family: 'Courier New', Courier, monospace;
	font-size: 13px;
	width: 75mm;
	margin: 0 auto;
	padding: 4mm 3mm;
	color: #000;
	line-height: 1.45;
}
.glo-receipt-print .rcp-header {
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 3mm;
	letter-spacing: 1px;
}
.glo-receipt-print .rcp-sub {
	text-align: center;
	font-size: 11px;
	margin-bottom: 4mm;
}
.glo-receipt-print .rcp-sep {
	border: none;
	border-top: 1px dashed #000;
	margin: 3mm 0;
}
.glo-receipt-print .rcp-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 1.5mm 0;
	gap: 4mm;
}
.glo-receipt-print .rcp-label {
	font-weight: 700;
	white-space: nowrap;
	font-size: 12px;
	color: #444;
	flex-shrink: 0;
}
.glo-receipt-print .rcp-val {
	font-weight: 700;
	font-size: 14px;
	text-align: right;
	word-break: break-word;
}
.glo-receipt-print .rcp-section-title {
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 3mm 0 1mm;
	color: #333;
}
.glo-receipt-print table {
	width: 100%;
	border-collapse: collapse;
	font-size: 11px;
	margin-top: 1mm;
}
.glo-receipt-print table th {
	border-bottom: 1px solid #000;
	text-align: left;
	padding: 0.5mm 1mm;
	font-size: 10px;
	font-weight: 700;
}
.glo-receipt-print table td {
	padding: 0.8mm 1mm;
	border-bottom: 1px dotted #aaa;
	vertical-align: top;
}
.glo-receipt-print .rcp-totale-finale {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	font-size: 16px;
	margin-top: 3mm;
	padding-top: 2mm;
	border-top: 2px solid #000;
}

@media print {
	/* Nasconde tutto tranne il receipt nel popup */
	body.glo-print-mode * { display: none !important; }
	body.glo-print-mode .glo-receipt-print,
	body.glo-print-mode .glo-receipt-print * { display: revert !important; }

	@page {
		size: 83mm auto;
		margin: 3mm 2mm;
	}
}

/* ── Checkbox "St. senza Prezzo" nella print-bar ── */
.glo-print-opt-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	color: #1d2327;
	padding: 6px 10px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #f6f7f7;
	user-select: none;
	white-space: nowrap;
	transition: background .12s;
}
.glo-print-opt-label:hover { background: #e8f0fe; border-color: #2271b1; }

/* ── Autocomplete dropdown righe articoli ── */
.glo-autocomplete-dd {
	list-style: none;
	margin: 0; padding: 0;
	background: #fff;
	border: 1px solid #2271b1;
	border-radius: 3px;
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
	max-height: 160px;
	overflow-y: auto;
	z-index: 9999;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 120px;
}
.glo-autocomplete-dd li {
	padding: 7px 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f1;
	white-space: nowrap;
}
.glo-autocomplete-dd li:last-child { border-bottom: none; }
.glo-autocomplete-dd li:hover { background: #e8f0fe; color: #1d6fa4; }

/* Celle input con position relative per dropdown */
.glo-table-righe td { position: relative; }

/* ── Pulsante Stampa A4 ── */
.glo-btn-print-a4 {
	background: #46b450; color: #fff; border: none;
	padding: 8px 14px; border-radius: 4px;
	font-size: 14px; font-weight: 700; cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background .15s; white-space: nowrap;
}
.glo-btn-print-a4:hover { background: #399d42; }

/* Pulsante Stampa Ric. con testo */
.glo-btn-print-receipt.glo-btn-icon {
	font-size: 14px; font-weight: 700;
	padding: 8px 14px; white-space: nowrap;
	background: #2271b1; color: #fff; border: none;
	display: inline-flex; align-items: center; gap: 6px;
}
.glo-btn-print-receipt.glo-btn-icon:hover { background: #135e96; }

/* ── Pulsante PDF + WA (stesso stile di Stampa A4) ── */
.glo-btn-pdf-wa {
	background: #25D366; color: #fff; border: none;
	padding: 8px 14px; border-radius: 4px;
	font-size: 14px; font-weight: 700; cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background .15s; white-space: nowrap;
}
.glo-btn-pdf-wa:hover { background: #1da851; }

/* Colonne con Descrizione */
.glo-table-righe th:nth-child(1),  .glo-table-righe td:nth-child(1)  { width: 13%; } /* Articolo */
.glo-table-righe th:nth-child(2),  .glo-table-righe td:nth-child(2)  { width: 15%; } /* Descrizione */
.glo-table-righe th:nth-child(3),  .glo-table-righe td:nth-child(3)  { width: 4%;  } /* Pronto */
.glo-table-righe th:nth-child(4),  .glo-table-righe td:nth-child(4)  { width: 5%;  } /* Qt */
.glo-table-righe th:nth-child(5),  .glo-table-righe td:nth-child(5)  { width: 6%;  } /* Taglia */
.glo-table-righe th:nth-child(6),  .glo-table-righe td:nth-child(6)  { width: 8%;  } /* Colore */
.glo-table-righe th:nth-child(7),  .glo-table-righe td:nth-child(7)  { width: 7%;  } /* Prezzo */
.glo-table-righe th:nth-child(8),  .glo-table-righe td:nth-child(8)  { width: 7%;  } /* Subtot */
.glo-table-righe th:nth-child(9),  .glo-table-righe td:nth-child(9)  { width: auto; } /* Note */
.glo-table-righe th:nth-child(10), .glo-table-righe td:nth-child(10) { width: 26px; text-align:center; } /* ✕ */

/* ── Pulsante PDF + WA (stesso stile di Stampa A4) ── */
.glo-btn-pdf-wa {
	background: #25D366; color: #fff; border: none;
	padding: 8px 14px; border-radius: 4px;
	font-size: 14px; font-weight: 700; cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background .15s; white-space: nowrap;
}
.glo-btn-pdf-wa:hover { background: #1da851; }

/* Larghezze colonne con Descrizione */
.glo-table-righe th:nth-child(1),  .glo-table-righe td:nth-child(1)  { width: 13%; } /* Articolo */
.glo-table-righe th:nth-child(2),  .glo-table-righe td:nth-child(2)  { width: 14%; } /* Descrizione */
.glo-table-righe th:nth-child(3),  .glo-table-righe td:nth-child(3)  { width: 4%;  } /* Pronto */
.glo-table-righe th:nth-child(4),  .glo-table-righe td:nth-child(4)  { width: 5%;  } /* Qt */
.glo-table-righe th:nth-child(5),  .glo-table-righe td:nth-child(5)  { width: 6%;  } /* Taglia */
.glo-table-righe th:nth-child(6),  .glo-table-righe td:nth-child(6)  { width: 8%;  } /* Colore */
.glo-table-righe th:nth-child(7),  .glo-table-righe td:nth-child(7)  { width: 7%;  } /* Prezzo */
.glo-table-righe th:nth-child(8),  .glo-table-righe td:nth-child(8)  { width: 7%;  } /* Subtot */
.glo-table-righe th:nth-child(9),  .glo-table-righe td:nth-child(9)  { width: auto; } /* Note */
.glo-table-righe th:nth-child(10), .glo-table-righe td:nth-child(10) { width: 26px; text-align:center; } /* ✕ */
