.history-section{max-width:760px;margin-inline:auto}.history-filters{border:1px solid #dce5ee;border-radius:12px;background:#f8fafc;padding:0 14px}.history-filters>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;cursor:pointer;font-weight:650;list-style:none}.history-filters>summary:after{content:'⌄';font-size:20px}#history-period{margin-left:auto;font-size:12px;font-weight:400;color:#64758a}.history-filters form{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}.history-filters form label{margin:0}.history-filters form p{grid-column:1/-1;font-size:12px;color:#64758a;margin:0}.history-filters form>button{grid-column:1/-1;margin:0 0 14px}.receipt-card-list{display:grid;gap:12px}.receipt-card{border:1px solid #dce5ee;border-radius:16px;padding:16px;background:white;box-shadow:0 3px 12px #18304905;min-width:0}.receipt-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.receipt-card>header>div{min-width:0}.receipt-card h3{font-size:17px;line-height:1.4;margin:0;overflow-wrap:anywhere}.receipt-card-date{font-size:13px;color:#64758a;margin:5px 0 0}.receipt-card-total{font-size:23px;font-weight:750;margin:12px 0 0;font-variant-numeric:tabular-nums}.receipt-card-badge{display:inline-block;margin-top:10px;background:#fff0ef;color:#a33d35;border-radius:6px;padding:3px 7px;font-size:12px}.receipt-card .receipt-more{font-size:27px;line-height:1;background:transparent;color:#5d7285;border:0;width:44px;height:44px;flex:0 0 44px;padding:0;margin:-8px -6px 0 0;min-height:44px}.receipt-card .receipt-more:disabled{opacity:.3}.receipt-card-actions,.cash-row-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:14px}.receipt-card-actions>button,.cash-row-actions>button{min-width:0;width:100%;margin:0;font-size:14px;padding:11px 8px;line-height:1.3;min-height:46px}.receipt-secondary,.cash-row-actions>#clear-cart{background:#eff5fa!important;color:#1c5978!important;border:1px solid #d7e4ef!important}.history-action-status:empty{display:none}.history-action-status{font-size:13px;color:#a3362d;margin:12px 0 0;overflow-wrap:anywhere}.receipt-sheet{box-sizing:border-box;border:0;border-radius:20px;padding:22px;width:calc(100% - 32px);max-width:520px;max-height:88vh;max-height:88dvh;overflow:auto;color:#183049;overscroll-behavior:contain}.receipt-sheet::backdrop{background:#10283f88;backdrop-filter:blur(2px)}.receipt-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.receipt-sheet>header h2{font-size:21px;margin:0!important}.receipt-sheet .receipt-sheet-close{background:#eff4f8;color:#405c71;border:0;margin:0;width:42px;min-height:42px;padding:0;font-size:27px;flex-shrink:0}.receipt-sheet-subtitle{font-size:13px;color:#64758a;margin:8px 0 20px;overflow-wrap:anywhere}.receipt-share-choices{display:grid;gap:10px}.receipt-sheet .receipt-channel{width:100%;margin:0;text-align:left;padding:17px;border:1px solid #dae5ed;background:#f5f8fb;color:#1c3b55;display:flex;flex-direction:column;gap:5px}.receipt-channel>span{font-size:17px;font-weight:700}.receipt-channel>small{font-size:13px;font-weight:400;color:#65798b}.receipt-sheet .receipt-channel-whatsapp{background:#eef8f2;border-color:#cce7d8;color:#26734b}.receipt-sheet .receipt-sheet-back{background:transparent;color:#31617f;border:0;padding:8px 0;margin:0 0 12px;font-size:13px}.receipt-sheet .pdf-share-panel,.receipt-sheet .email-receipt-panel{background:transparent!important;border:0!important;padding:0!important;margin:0!important}.receipt-sheet .pdf-share-panel h3,.receipt-sheet .email-receipt-panel h3{font-size:18px}.receipt-sheet textarea{max-width:100%}.receipt-sheet .receipt-danger-action{width:100%;background:#fff2f1;color:#a73731;border-color:#f1d2cf}.receipt-sheet-body>button{width:100%;margin:6px 0}.receipt-return-form label{padding:12px 0;border-bottom:1px solid #e1e8ef}.receipt-return-form label span{display:block;overflow-wrap:anywhere}.receipt-return-form small{font-size:12px;color:#64758a;margin:5px 0}.receipt-return-form input{margin-top:8px}.receipt-view-dialog{border:0;border-radius:16px!important;padding:18px!important;box-sizing:border-box;color:#183049;max-width:95vw!important}.receipt-view-controls{display:flex;flex-wrap:wrap;gap:7px;max-width:400px}.receipt-view-controls>label{flex-basis:100%;font-size:13px;margin:0 0 8px}.receipt-view-controls>button{margin:0;min-height:42px;font-size:13px;padding:10px}.receipt-original-pdf{max-width:100%;margin-top:14px}.receipt-original-pdf iframe{display:block;width:100%;height:60vh;border:1px solid #dce5ee;margin-top:12px}.receipt-document-details{max-width:400px;border-top:1px solid #dce5ee;padding-top:12px;font-size:13px}.receipt-document-details summary{cursor:pointer;font-weight:650}.receipt-document-details dl{margin-bottom:0}.receipt-document-details dt{color:#64758a;font-size:12px;margin-top:9px}.receipt-document-details dd{margin:3px 0;overflow-wrap:anywhere}.cash-row-actions{margin:12px 0}.cash-two-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.cash-two-fields>label{min-width:0;margin:12px 0}.cash-two-fields input{min-width:0}.cash-two-fields label{font-size:14px}
.cash-final-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:14px 0}.cash-final-actions>button{margin:0;width:100%;min-width:0;min-height:48px;padding:12px 8px;font-size:14px;line-height:1.3}.cash-final-actions>#print-draft{background:#eff5fa;color:#1c5978;border-color:#d7e4ef}#cart-list .cart-remove{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;margin:0;background:#fff3f1;color:#ad3b32;border:1px solid #f2dbd7}#cart-list p{overflow-wrap:anywhere}.cart-remove:hover{background:#fbe4e0!important}
@media(max-width:600px){.receipt-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;border-radius:22px 22px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));max-height:90vh;max-height:90dvh}.receipt-sheet:before{content:'';display:block;width:38px;height:4px;border-radius:8px;background:#d4dfe8;margin:-10px auto 19px}.receipt-card{padding:14px}.receipt-card-actions>button{font-size:14px}.receipt-view-dialog{width:calc(100vw - 20px);max-width:420px!important}.receipt-view-dialog #fiscal-receipt{box-sizing:border-box;max-width:100%}.receipt-view-controls{max-width:100%}}
.cash-line-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);gap:6px 8px;margin:16px 0}.cash-line-fields>label{min-width:0;margin:0;font-size:14px}.cash-line-fields input,.cash-line-fields select{min-width:0;font-size:16px;padding-inline:8px}.cash-line-fields>small{grid-column:1/-1;color:#64758a;font-size:12px}
.cash-gift{display:flex!important;align-items:center;gap:9px;line-height:1.3;margin:12px 0!important;min-height:32px}.cash-gift>input[type=checkbox]{flex:0 0 20px;width:20px!important;height:20px;min-height:20px!important;margin:0;padding:0;accent-color:#125d96}.cash-totals{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:12px;padding:15px 0;margin-top:4px;border-top:1px solid #e0e8ef}.cash-totals>p{min-width:0;margin:0;font-size:15px;overflow-wrap:anywhere}.cash-totals>#total{text-align:right;font-weight:750;color:#183049}.cash-discount-fields{margin-top:4px}
output[hidden],.cash-prepare-actions>[hidden],.cash-final-actions[hidden]{display:none!important}.cash-prepare-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:12px 0}.cash-prepare-actions:not(.has-preview)>#prepare{grid-column:1/-1}.cash-prepare-actions>button{width:100%;min-width:0;min-height:48px;margin:0;padding:12px 8px;font-size:14px;line-height:1.3}.cash-prepare-actions>#print-draft{background:#eff5fa;color:#1c5978;border-color:#d7e4ef}.cash-final-actions{display:block;margin:8px 0 14px}.cash-final-actions>#send-from-cash{display:block;width:100%;font-size:16px;min-height:50px}#received{text-align:right;font-variant-numeric:tabular-nums}#cash-line-status:empty{display:none}#cash-line-status{color:#a3362d;font-size:13px}
@media print{.receipt-view-controls,.receipt-document-details,.receipt-original-pdf,.receipt-sheet{display:none!important}}

/* Catalogo: righe compatte e azioni accessibili anche su mobile. */
#article-list .article-row{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:4px;align-items:center;padding:10px 0;border-bottom:1px solid #e2e9f0;min-width:0}
#article-list .article-select{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;margin:0;padding:8px 4px;background:transparent;color:#183049;border:0;border-radius:8px;text-align:left;line-height:1.4}
#article-list .article-info{display:grid;min-width:0;gap:2px}#article-list .article-info small{font-size:11px;letter-spacing:.03em;color:#64758a}#article-list .article-info strong{font-size:14px;font-weight:650;overflow-wrap:anywhere}#article-list .article-price{font-size:14px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
#article-list .article-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:0;background:transparent;color:#46657c;border-radius:10px}#article-list .article-del{color:#b44943}#article-list .article-icon svg{pointer-events:none;flex-shrink:0}#article-list button:hover{background:#f0f5f9}#article-list .article-del:hover{background:#fff0ef}#article-list button:focus-visible{outline:3px solid #2487b2;outline-offset:1px}
@media(max-width:480px){#article-list .article-row{grid-template-columns:minmax(0,1fr) 40px 40px;gap:0}#article-list .article-select{display:flex;gap:8px;padding-inline:2px}#article-list .article-info{flex:1;min-width:0}#article-list .article-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#article-list .article-price{flex-shrink:0;font-size:13px}#article-list .article-icon{width:40px;padding-inline:8px}}
