:root{--text: #2B3A3E;--text-on-dark: #E9E9E9;--brand-primary-1: #732023;--brand-primary-2: #9B310D;--brand-dark: #364127;--brand-secondary: #B7C24B;--brand-warm: #D1C98C;--bg-page: #EDEBE4;--bg-card: #FFFEF9;--border: rgba(115, 32, 35, .2);--border-focus: var(--brand-primary-2);--input-bg: #FFFEF9;--muted: #5c6b6f;--accent: var(--brand-primary-2);--accent-hover: #b03a14;--header-bg: var(--brand-primary-1);--link: var(--brand-primary-1);--brand-primary: var(--brand-primary-2);--shadow: 0 2px 12px rgba(43, 58, 62, .08);--shadow-lg: 0 8px 24px rgba(43, 58, 62, .12);--badge-bg: rgba(183, 194, 75, .18);--badge-text: var(--brand-dark);--badge-border: rgba(183, 194, 75, .4);--focus-ring: rgba(183, 194, 75, .35);font-family:Lato,system-ui,sans-serif;line-height:1.5;font-weight:400;color:var(--text);background-color:var(--bg-page);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,.font-heading{font-family:Frank Ruhl Libre,Georgia,serif;color:var(--text)}.font-accent{font-family:Indie Flower,cursive}a{font-weight:500;color:var(--link);text-decoration:none}a:hover{color:var(--accent-hover);text-decoration:underline}body{margin:0;min-width:280px;min-height:100vh;min-height:100dvh;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}h1{font-size:1.75rem;line-height:1.2;font-weight:600}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;cursor:pointer;transition:background-color .2s,border-color .2s,box-shadow .2s}button:focus,button:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px;box-shadow:0 0 0 4px var(--focus-ring)}#root{min-height:100vh;min-height:100dvh}.loading-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;color:var(--muted);font-family:Lato,sans-serif}.barcode-scanner-overlay{position:fixed;inset:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;box-sizing:border-box;touch-action:manipulation;min-height:100dvh}.barcode-scanner-modal{background:var(--bg-card, #fff);border-radius:12px;overflow:hidden;max-width:100%;width:400px;max-height:min(90vh,90dvh);display:flex;flex-direction:column;box-shadow:0 8px 32px #0000004d}@media(max-height:500px)and (orientation:landscape){.barcode-scanner-overlay{padding:.5rem;align-items:stretch}.barcode-scanner-modal{max-height:95dvh;width:auto;min-width:280px}.barcode-scanner-view{min-height:180px;flex:1}}.barcode-scanner-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--border, #e0e0e0);flex-shrink:0}.barcode-scanner-header-actions{display:flex;align-items:center;gap:.5rem}.barcode-scanner-switch-camera{background:none;border:none;font-size:1.25rem;cursor:pointer;padding:.35rem;line-height:1;border-radius:8px;transition:background .2s;-webkit-tap-highlight-color:transparent;min-width:48px;min-height:48px}.barcode-scanner-switch-camera:hover{background:#00000014}.barcode-scanner-switch-camera:active{background:#0000001f}.barcode-scanner-title{margin:0;font-size:1.1rem;font-family:Frank Ruhl Libre,Georgia,serif;color:var(--text, #1a1a1a);font-weight:600}.barcode-scanner-close{background:none;border:none;font-size:1.25rem;cursor:pointer;padding:.25rem;line-height:1;color:var(--muted, #666);border-radius:6px;transition:color .2s,background .2s;min-width:48px;min-height:48px}.barcode-scanner-close:hover{color:var(--text, #1a1a1a);background:#0000000f}.barcode-scanner-error,.barcode-scanner-loading{margin:0;padding:1rem 1.25rem;font-size:.95rem}.barcode-scanner-error{color:#b02a37}.barcode-scanner-loading{color:var(--muted, #666)}.barcode-scanner-view{min-height:240px;position:relative;flex:1}.barcode-scanner-view video{width:100%;height:auto;display:block;object-fit:cover}.barcode-scanner-view #qr-shaded-region{border-width:50px!important}.barcode-scanner-manual-toggle{margin:0;padding:.75rem 1.25rem;background:none;border:none;border-top:1px solid var(--border, #e0e0e0);color:var(--muted, #666);font-size:.95rem;cursor:pointer;text-align:center;transition:background .2s,color .2s;flex-shrink:0}.barcode-scanner-manual-toggle:hover{background:#0000000a;color:var(--text, #1a1a1a)}.barcode-scanner-manual{display:flex;flex-direction:column;gap:.5rem;padding:1rem 1.25rem;flex-shrink:0}.barcode-scanner-manual-label{font-size:.9rem;color:var(--text, #1a1a1a);font-weight:500}.barcode-scanner-manual-input{padding:.65rem .85rem;font-size:1rem;border:1px solid var(--border, #ccc);border-radius:8px;font-family:inherit;background:var(--bg-card, #fff);color:var(--text, #1a1a1a)}.barcode-scanner-manual-input:focus{outline:2px solid var(--accent, #2c7a7b);outline-offset:1px;border-color:transparent}.barcode-scanner-manual-submit{padding:.65rem 1rem;background:var(--accent, #2c7a7b);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:background .2s;min-height:48px}.barcode-scanner-manual-submit:disabled{background:var(--muted, #999);cursor:not-allowed}.barcode-scanner-manual-submit:hover:not(:disabled){background:var(--accent-dark, #245e5f)}.transazioni-page{min-height:100vh;min-height:100dvh;background:var(--bg-page)}.transazioni-main{max-width:1200px;margin:0 auto;padding:1rem;box-sizing:border-box}@media(min-width:769px){.transazioni-main{padding:1.5rem}}.transazioni-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}.transazioni-title{margin:0;font-size:1.5rem;font-family:Frank Ruhl Libre,Georgia,serif;color:var(--text);font-weight:600}.btn-nuova-transazione{padding:.5rem 1rem;font-size:.95rem;border-radius:10px;background:var(--brand-primary);color:var(--text-on-dark);border:none;font-weight:600;cursor:pointer;font-family:inherit;transition:background-color .2s;min-height:48px}.btn-nuova-transazione:hover:not(:disabled){background:var(--accent-hover);color:var(--text-on-dark)}.btn-nuova-transazione:disabled{opacity:.7;cursor:not-allowed}.transazioni-count{margin:0 0 1rem;color:var(--muted);font-size:.95rem}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px;border:1px solid var(--border);background:var(--bg-card);box-shadow:var(--shadow)}.transazioni-table{width:100%;border-collapse:collapse;font-size:.9rem}.transazioni-table th,.transazioni-table td{padding:.65rem 1rem;text-align:left;border-bottom:1px solid var(--border)}.transazioni-table th{background:var(--brand-dark);color:var(--text-on-dark);font-weight:600;font-family:Frank Ruhl Libre,Georgia,serif}.th-sort{display:inline-flex;align-items:center;gap:.35rem;padding:0;border:none;background:none;color:inherit;font:inherit;font-weight:600;cursor:pointer;text-align:left;width:100%}.th-sort:hover{text-decoration:underline}.transazioni-cell-datetime{white-space:nowrap;font-variant-numeric:tabular-nums}.transazioni-table tr:last-child td{border-bottom:none}.transazioni-table tbody tr:hover{background:#b7c24b14}.transazioni-table a{color:var(--link);text-decoration:none;font-weight:500}.transazioni-table a:hover{color:var(--brand-primary);text-decoration:underline}.btn-sm{padding:.3rem .6rem;font-size:.8rem;border-radius:8px;background:var(--brand-primary);color:var(--text-on-dark);border:none;font-weight:500;cursor:pointer;text-decoration:none;display:inline-block}.btn-sm:hover{background:var(--accent-hover);color:var(--text-on-dark)}.transazioni-table .btn-danger.btn-sm{background:#b02a37;color:#fff}.transazioni-table .btn-danger.btn-sm:hover{background:#8b222a;color:#fff}.new-tx-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.new-tx-modal{background:var(--bg-card);border-radius:16px;box-shadow:var(--shadow);border:1px solid var(--border);max-width:480px;width:100%;max-height:90vh;overflow:auto}.new-tx-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--border)}.new-tx-modal-title{margin:0;font-size:1.25rem;font-family:Frank Ruhl Libre,Georgia,serif;color:var(--text);font-weight:600}.new-tx-close{width:36px;height:36px;border:none;background:transparent;color:var(--muted);font-size:1.25rem;cursor:pointer;border-radius:8px;display:flex;align-items:center;justify-content:center;transition:background-color .2s,color .2s}.new-tx-close:hover{background:var(--border);color:var(--text)}.new-tx-error{margin:0 1.25rem 1rem;padding:.5rem .75rem;background:#b02a371f;color:#b02a37;border-radius:8px;font-size:.9rem}.new-tx-success{margin:0 1.25rem 1rem;padding:.5rem .75rem;background:#5ac13826;color:#2d6a1e;border-radius:8px;font-size:.95rem;font-weight:500}.new-tx-success-screen{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.75rem;padding:2rem 1.5rem}.new-tx-success-icon{width:4rem;height:4rem;border-radius:50%;background:#5ac1382e;color:#2d6a1e;font-size:2.5rem;font-weight:700;line-height:4rem;display:flex;align-items:center;justify-content:center}.new-tx-success-text{margin:0;font-size:1.05rem;color:var(--text)}.new-tx-success-qty{margin:0;font-size:1.4rem;font-weight:600;color:#2d6a1e}.new-tx-success-screen .new-tx-actions{margin-top:1rem;display:flex;gap:.75rem;width:100%}.new-tx-success-screen .new-tx-actions button{flex:1;min-height:48px}.new-tx-vm-cards{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:.5rem 0 1rem}.new-tx-vm-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;padding:1.25rem .75rem;border:2px solid transparent;border-radius:12px;background:#f6f4ed;color:var(--text);cursor:pointer;text-align:center;min-height:96px;transition:transform .1s,border-color .15s,background .15s}.new-tx-vm-card:hover{transform:translateY(-1px)}.new-tx-vm-card-weight{border-color:#b7c24b80}.new-tx-vm-card-weight:hover{border-color:#b7c24b;background:#b7c24b1a}.new-tx-vm-card-price{border-color:#73202366}.new-tx-vm-card-price:hover{border-color:#732023;background:#7320230f}.new-tx-vm-card-label{font-size:.85rem;font-weight:500;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.new-tx-vm-card-value{font-family:Frank Ruhl Libre,Georgia,serif;font-size:1.6rem;font-weight:600;color:var(--text);line-height:1.1}.new-tx-vm-card-hint{font-size:.75rem;color:var(--muted)}.new-tx-vm-back{width:100%;margin-top:.5rem}.confirm-delete-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:300;padding:1rem}.confirm-delete-modal{background:var(--card-bg, #fff);color:var(--text);border-radius:12px;box-shadow:0 12px 32px #00000040;padding:1.5rem;width:100%;max-width:480px}.confirm-delete-modal h2{margin:0 0 1rem;font-size:1.2rem;font-family:Frank Ruhl Libre,Georgia,serif}.confirm-delete-summary{display:grid;grid-template-columns:auto 1fr;gap:.4rem .75rem;margin:0 0 1rem;font-size:.95rem}.confirm-delete-summary dt{font-weight:600;color:var(--muted)}.confirm-delete-summary dd{margin:0}.confirm-delete-checkbox{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem;background:#7320230f;border-radius:8px;margin-bottom:1rem;cursor:pointer;min-height:48px}.confirm-delete-checkbox input[type=checkbox]{width:1.25rem;height:1.25rem;margin-top:.1rem;flex-shrink:0;cursor:pointer}.confirm-delete-actions{display:flex;gap:.75rem;justify-content:flex-end}.confirm-delete-actions button{min-height:48px;min-width:100px}.new-tx-body{padding:1.25rem}.new-tx-empty-msg{margin:0 0 1rem;color:var(--muted);font-size:.95rem}.new-tx-hint{margin:0 0 1rem;color:var(--text);font-size:.95rem}.new-tx-product-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.new-tx-product-card{display:flex;align-items:center;gap:1rem;width:100%;padding:.75rem 1rem;border:1px solid var(--border);border-radius:12px;background:var(--bg-page);cursor:pointer;text-align:left;font-family:inherit;transition:border-color .2s,background-color .2s}.new-tx-product-card:hover{border-color:var(--brand-primary);background:#b7c24b14}.new-tx-card-img,.new-tx-card-placeholder{width:56px;height:56px;border-radius:8px;object-fit:cover}.new-tx-card-placeholder{background:var(--border);display:flex;align-items:center;justify-content:center;font-size:1.5rem}.new-tx-card-info{display:flex;flex-direction:column;gap:.2rem;min-width:0}.new-tx-card-desc{font-weight:500;color:var(--text);font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.new-tx-card-meta{font-size:.8rem;color:var(--muted)}.new-tx-confirm-card{display:flex;align-items:center;gap:1rem;padding:1rem;border:1px solid var(--border);border-radius:12px;background:var(--bg-page);margin-bottom:1.25rem}.new-tx-confirm-img,.new-tx-confirm-placeholder{width:80px;height:80px;border-radius:10px;object-fit:cover}.new-tx-confirm-placeholder{background:var(--border);display:flex;align-items:center;justify-content:center;font-size:2rem}.new-tx-confirm-info{display:flex;flex-direction:column;gap:.35rem;min-width:0}.new-tx-confirm-desc{font-weight:600;color:var(--text);font-size:1rem}.new-tx-confirm-meta,.new-tx-confirm-unit{font-size:.85rem;color:var(--muted)}.new-tx-weight-badge{display:inline-block;margin-top:.25rem;padding:.2rem .6rem;font-size:.78rem;font-weight:600;border-radius:6px;background:#b7c24b2e;color:var(--brand-dark, #3a3a2a)}.new-tx-quantity-row{margin-bottom:1.25rem}.new-tx-quantity-row label{display:block;margin-bottom:.5rem;font-size:.9rem;font-weight:500;color:var(--text)}.new-tx-qty-input{width:100%;max-width:120px;padding:.5rem .75rem;font-size:1rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-page);color:var(--text)}.new-tx-qty-input:focus{outline:none;border-color:var(--brand-primary)}.new-tx-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.btn-secondary-new-tx{padding:.5rem 1rem;font-size:.9rem;border-radius:10px;background:var(--bg-page);color:var(--text);border:1px solid var(--border);cursor:pointer;font-family:inherit;font-weight:500;transition:background-color .2s,border-color .2s}.btn-secondary-new-tx:hover{background:var(--brand-warm);border-color:var(--brand-primary)}.undo-banner{position:fixed;left:.75rem;right:.75rem;bottom:calc(5.5rem + env(safe-area-inset-bottom));z-index:200;background:#2d2d2d;color:#fff;border-radius:12px;box-shadow:0 6px 20px #00000040;animation:undo-banner-slide-in .18s ease-out}@keyframes undo-banner-slide-in{0%{transform:translateY(20%);opacity:0}to{transform:translateY(0);opacity:1}}.undo-banner-content{display:flex;align-items:center;gap:.5rem;padding:.75rem .5rem .75rem 1rem}.undo-banner-text{flex:1;font-size:.95rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.undo-banner-text strong{font-weight:600}.undo-banner-error{color:#ffb4a2;font-size:.85rem}.undo-banner-actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.undo-banner-undo{background:transparent;border:1px solid rgba(255,255,255,.4);color:#b7c24b;font-weight:600;font-size:.95rem;padding:.5rem .9rem;border-radius:8px;cursor:pointer;min-height:44px;min-width:80px;transition:background .15s}.undo-banner-undo:hover:not(:disabled){background:#b7c24b26}.undo-banner-undo:disabled{opacity:.6;cursor:not-allowed}.undo-banner-dismiss{background:transparent;border:none;color:#fff9;font-size:1.1rem;width:36px;height:36px;border-radius:50%;cursor:pointer}.undo-banner-dismiss:hover{background:#ffffff14;color:#fff}@media(min-width:640px){.undo-banner{left:auto;right:1rem;bottom:calc(6rem + env(safe-area-inset-bottom));max-width:480px}}.fab-nuova-transazione{position:fixed;bottom:max(1rem,env(safe-area-inset-bottom));right:max(1rem,env(safe-area-inset-right));display:inline-flex;align-items:center;gap:.5rem;padding:0 1rem 0 .6rem;min-height:48px;height:48px;border-radius:24px;border:none;background:var(--brand-primary);color:var(--text-on-dark);text-decoration:none;font-weight:600;font-size:.95rem;font-family:inherit;cursor:pointer;box-shadow:0 4px 14px #00000040;transition:background-color .2s,transform .2s,box-shadow .2s;z-index:100;-webkit-tap-highlight-color:transparent}@media(min-width:769px){.fab-nuova-transazione{bottom:1.5rem;right:1.5rem;padding:0 1.25rem 0 .75rem;height:56px;min-height:56px;border-radius:28px;font-size:1rem}}.fab-nuova-transazione:hover{background:var(--accent-hover);color:var(--text-on-dark);transform:scale(1.02);box-shadow:0 6px 18px #0000004d}.fab-nuova-transazione:active{transform:scale(.98)}.fab-nuova-transazione-icon{width:36px;height:36px;min-width:36px;min-height:36px;border-radius:50%;background:#fff3;display:flex;align-items:center;justify-content:center;font-size:1.35rem;font-weight:300;line-height:1}@media(min-width:769px){.fab-nuova-transazione-icon{width:40px;height:40px;min-width:40px;min-height:40px;font-size:1.5rem}}.fab-nuova-transazione-label{white-space:nowrap}.login-page{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg-page)}.login-brand-panel{display:none}.login-card-brand-mobile{display:flex;flex-direction:column;align-items:center;gap:.25rem;margin-bottom:1.5rem}.login-card-brand-mark{width:3rem;height:2.5rem}.login-card-brand-name{font-family:Frank Ruhl Libre,Georgia,serif;font-size:1.5rem;font-weight:600;color:var(--brand-primary, #732023);margin:0;line-height:1.1}.login-card-brand-app{font-size:.85rem;color:var(--text-muted, #6b7280);margin:0;letter-spacing:.02em}@media(min-width:640px){.login-card-brand-mobile{display:none}}.login-form-panel{flex:1;display:flex;align-items:center;justify-content:center;padding:1.5rem;padding-left:max(1.5rem,env(safe-area-inset-left));padding-right:max(1.5rem,env(safe-area-inset-right));box-sizing:border-box}.login-card{width:100%;max-width:400px;padding:2rem;border-radius:16px;background:var(--bg-card);box-shadow:var(--shadow-lg);border:1px solid var(--border);box-sizing:border-box}@media(min-width:640px){.login-page{flex-direction:row}.login-brand-panel{display:flex;flex:0 0 38%;min-height:100vh;min-height:100dvh;align-items:center;justify-content:center;background:var(--brand-primary-1);position:relative;overflow:hidden;padding:2.5rem;box-sizing:border-box}.login-brand-panel:before{content:"";position:absolute;inset:0;background-image:repeating-linear-gradient(-45deg,rgba(255,255,255,.04) 0px,rgba(255,255,255,.04) 1px,transparent 1px,transparent 28px);pointer-events:none}.login-form-panel{flex:1;min-height:100vh;min-height:100dvh}.login-card{padding:2.5rem}}.login-brand-inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:.75rem}.login-brand-mark{width:5rem;height:4.2rem;margin-bottom:.5rem}.login-brand-name{font-family:Frank Ruhl Libre,Georgia,serif;font-size:2rem;font-weight:700;color:var(--text-on-dark);margin:0;letter-spacing:.01em}.login-brand-app{font-size:1.05rem;color:var(--brand-warm);margin:0;letter-spacing:.02em}.login-brand-tagline{font-size:1.25rem;color:var(--brand-secondary);margin:.5rem 0 0;opacity:.9}.login-card h1{margin:0 0 .25rem;font-size:1.75rem;font-family:Frank Ruhl Libre,Georgia,serif;color:var(--text)}.login-subtitle{color:var(--muted);margin:0 0 1.75rem;font-size:.95rem}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.35rem;font-size:.9rem;color:var(--muted)}.form-group>input{display:block;width:100%;margin:0;padding:.7rem .85rem;border:1px solid var(--border);border-radius:10px;background:var(--input-bg);color:var(--text);font-size:16px;font-family:inherit;box-sizing:border-box;transition:border-color .2s,box-shadow .2s}.form-group>input:focus{outline:none;border-color:var(--border-focus);box-shadow:0 0 0 3px var(--focus-ring)}.password-field{margin-top:0;display:flex;align-items:center;gap:0;border:1px solid var(--border);border-radius:10px;background:var(--input-bg);transition:border-color .2s,box-shadow .2s}.password-field:focus-within{border-color:var(--border-focus);box-shadow:0 0 0 3px var(--focus-ring)}.password-field input{margin-top:0;flex:1;min-width:0;padding:.7rem .5rem .7rem .85rem;border:none;background:transparent;border-radius:10px}.password-field input:focus{outline:none;box-shadow:none}.password-toggle{flex-shrink:0;width:2.75rem;height:2.75rem;min-width:44px;min-height:44px;padding:0;border:none;background:none;color:var(--muted);cursor:pointer;border-radius:8px;display:flex;align-items:center;justify-content:center;transition:color .2s,background-color .2s;-webkit-tap-highlight-color:transparent}.password-toggle:hover{color:var(--text);background:var(--border)}.login-card form button[type=submit]{width:100%;margin-top:.5rem;padding:.85rem;font-size:1rem;border-radius:10px;border:none;background:var(--brand-primary);color:var(--text-on-dark);font-weight:600;cursor:pointer;transition:background-color .2s,transform .1s}.login-card form button[type=submit]:hover:not(:disabled){background:var(--accent-hover);color:var(--text-on-dark)}.login-card form button[type=submit]:active:not(:disabled){transform:scale(.99)}.login-card form button[type=submit]:disabled{opacity:.7;cursor:not-allowed}.login-error{margin:.5rem 0 0;padding:.6rem .75rem;border-radius:8px;background:#dc35451f;color:#b02a37;font-size:.9rem}.app-header{background:var(--header-bg);box-shadow:var(--shadow);position:sticky;top:0;z-index:100}.app-header-inner{max-width:1200px;margin:0 auto;padding:.6rem 1rem;padding-left:max(1rem,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:.5rem}@media(min-width:769px){.app-header-inner{padding:.75rem 1.25rem}}.app-header-brand{font-family:Frank Ruhl Libre,Georgia,serif;font-size:1.35rem;font-weight:600;color:var(--text-on-dark);text-decoration:none;white-space:nowrap;display:flex;align-items:center;gap:.5rem;transition:color .2s,opacity .2s}.app-header-brand:hover{color:var(--brand-warm);text-decoration:none}.app-header-logo-mark{width:1.6rem;height:1.35rem;flex-shrink:0;color:var(--text-on-dark);transition:color .2s}.app-header-brand:hover .app-header-logo-mark{color:var(--brand-warm)}.app-nav{display:flex;align-items:center;gap:.25rem}.app-nav-link{color:var(--brand-warm);text-decoration:none;font-size:.9rem;font-weight:500;padding:.5rem .75rem;border-radius:8px;transition:color .2s,background-color .2s}.app-nav-link:hover{color:var(--text-on-dark);background:#ffffff1a;text-decoration:none}.app-nav-link.is-active{color:var(--text-on-dark);background:#ffffff1f;box-shadow:inset 0 -2px 0 var(--brand-secondary)}.app-nav-link-logout{color:#e9e9e9d9;margin-left:.25rem}.app-nav-link-logout:hover{color:var(--text-on-dark)}.app-header-user{display:flex;align-items:center;gap:.75rem;padding-left:1rem;margin-left:.5rem;border-left:1px solid rgba(255,255,255,.25)}.app-header-user-info{display:inline-flex;align-items:center;gap:.5rem;color:#e9e9e9e6;font-size:.9rem;font-weight:400;white-space:nowrap;pointer-events:none}.app-header-user-icon{width:1.25rem;height:1.25rem;flex-shrink:0}.app-header-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;padding:0;border:none;background:transparent;cursor:pointer;color:var(--text-on-dark);border-radius:8px;transition:background-color .2s}.app-header-toggle:hover{background:#ffffff1a}.app-header-toggle-bar{display:block;width:22px;height:2px;background:currentColor;border-radius:1px;margin:0 auto}.app-nav-mobile{display:none;flex-direction:column;padding:0 1.25rem 1rem;background:var(--header-bg);border-top:1px solid rgba(255,255,255,.1)}.app-nav-mobile.is-open{display:flex}.app-nav-mobile-link{color:var(--brand-warm);text-decoration:none;font-size:1rem;padding:.65rem 0;border-bottom:1px solid rgba(255,255,255,.08);transition:color .2s}.app-nav-mobile-link:hover,.app-nav-mobile-link:focus{color:var(--text-on-dark);text-decoration:none}.app-nav-mobile-link.is-active{color:var(--text-on-dark);border-left:3px solid var(--brand-secondary);padding-left:.75rem}.app-nav-mobile-user{display:flex;align-items:center;gap:.5rem;color:#e9e9e9e6;font-size:.9rem;font-weight:400;padding:.75rem 0 .5rem;margin-top:.5rem;border-top:1px solid rgba(255,255,255,.15);border-bottom:none}.app-nav-mobile-user-icon{width:1.15rem;height:1.15rem;flex-shrink:0}@media(max-width:768px){.app-nav,.app-header-user{display:none}.app-header-toggle{display:flex}.app-nav-mobile{display:none}.app-nav-mobile.is-open{display:flex}}@media(min-width:769px){.app-nav-mobile{display:none!important}}.dashboard{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg-page)}.dashboard-header{background:var(--header-bg);padding:1rem 1.5rem;box-shadow:var(--shadow)}.header-row{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.dashboard-header h1{margin:0;font-size:1.35rem;font-family:Frank Ruhl Libre,Georgia,serif;color:var(--text-on-dark);font-weight:600}.header-user{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.header-user a{color:var(--brand-warm);text-decoration:none;font-size:.9rem;font-weight:500;transition:color .2s}.header-user a:hover{color:var(--text-on-dark);text-decoration:underline}.header-user span{color:var(--text-on-dark);font-size:.9rem;margin-right:.25rem}.logout-link{color:#e9e9e9cc!important}.logout-link:hover{color:var(--text-on-dark)!important}.dashboard-main{flex:1;max-width:1200px;margin:0 auto;padding:1rem;width:100%;box-sizing:border-box}@media(min-width:769px){.dashboard-main{padding:1.5rem}}.dashboard-title{margin:0 0 .5rem;font-size:1.5rem;font-family:Frank Ruhl Libre,Georgia,serif;color:var(--text);font-weight:600}.dashboard-intro{margin:0 0 1rem;color:var(--muted);font-size:.95rem}.filters{display:flex;gap:.75rem;margin-bottom:1.5rem;flex-wrap:wrap}.search-input{flex:1 1 100%;min-width:0;padding:.65rem .85rem;border:1px solid var(--border);border-radius:10px;background:var(--input-bg);color:var(--text);font-size:1rem;font-family:inherit;transition:border-color .2s,box-shadow .2s}.search-input:focus{outline:none;border-color:var(--border-focus);box-shadow:0 0 0 3px var(--focus-ring)}.category-select{padding:.65rem .85rem;border:1px solid var(--border);border-radius:10px;background:var(--input-bg);color:var(--text);font-size:1rem;font-family:inherit;min-width:160px}.error-msg{color:#b02a37;margin:0 0 1rem}.loading-msg,.empty-msg{color:var(--muted);margin:0 0 1rem}.articoli-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}@media(max-width:380px){.articoli-grid{grid-template-columns:1fr}}.articolo-card{border:1px solid var(--border);border-radius:12px;padding:1.25rem;background:var(--bg-card);display:flex;flex-direction:column;gap:.5rem;box-shadow:var(--shadow);transition:box-shadow .2s,border-color .2s}.articolo-card:hover{box-shadow:var(--shadow-lg);border-color:#b7c24b66;border-top-color:var(--brand-secondary);border-top-width:2px}.articolo-img{width:100%;height:140px;object-fit:contain;border-radius:8px;background:var(--bg-page)}.articolo-img-placeholder{width:100%;height:140px;display:flex;align-items:center;justify-content:center;font-size:3rem;background:var(--bg-page);border-radius:8px;color:var(--brand-warm)}.articolo-desc{margin:0;font-size:1rem;line-height:1.35;font-family:Frank Ruhl Libre,Georgia,serif;color:var(--text);font-weight:500}.articolo-codice,.articolo-meta{margin:0;font-size:.85rem;color:var(--muted)}.categoria-badge{display:inline-block;background:var(--badge-bg);color:var(--badge-text);border:1px solid var(--badge-border);border-radius:99px;padding:.15rem .65rem;font-size:.78rem;font-weight:500;letter-spacing:.01em}.articolo-metrics{display:flex;gap:1rem;font-size:.9rem;margin-top:.25rem;color:var(--text)}.btn-visualizza{margin-top:auto;padding:.6rem 1rem;text-align:center;background:var(--brand-primary);color:var(--text-on-dark);border-radius:10px;text-decoration:none;font-size:.95rem;font-weight:600;transition:background-color .2s,transform .1s}.btn-visualizza:hover{background:var(--accent-hover);color:var(--text-on-dark);text-decoration:none}.btn-visualizza:active{transform:scale(.99)}.sessione-card{background:linear-gradient(135deg,#7320230f,#b7c24b14);border:1px solid rgba(115,32,35,.15);border-radius:12px;padding:1rem 1.25rem;margin:0 0 1.25rem}.sessione-header{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;margin-bottom:.5rem}.sessione-title{font-family:Frank Ruhl Libre,Georgia,serif;font-size:1rem;font-weight:600;color:var(--brand-primary, #732023);text-transform:uppercase;letter-spacing:.06em}.sessione-link{color:var(--brand-primary, #732023);font-size:.9rem;font-weight:500;text-decoration:none;white-space:nowrap}.sessione-link:hover{text-decoration:underline}.sessione-top-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.25rem}.sessione-top-item{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.35rem 0;border-bottom:1px dashed rgba(0,0,0,.08);font-size:.95rem}.sessione-top-item:last-child{border-bottom:none}.sessione-top-desc{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sessione-top-qty{font-weight:600;color:var(--brand-primary, #732023);flex-shrink:0}.articolo-detail{min-height:100vh;min-height:100dvh;padding:0 1rem 2rem;padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right));padding-bottom:max(2rem,env(safe-area-inset-bottom));max-width:1000px;margin:0 auto;background:var(--bg-page);box-sizing:border-box}@media(min-width:769px){.articolo-detail{padding:0 1.25rem 2rem}}.articolo-detail h1,.articolo-detail h2,.articolo-detail h3{font-family:Frank Ruhl Libre,Georgia,serif;color:var(--text)}.page-loading,.detail-error{padding:3rem 2rem;text-align:center;color:var(--muted)}.detail-error a{color:var(--link);font-weight:500;text-decoration:none}.detail-error a:hover{text-decoration:underline}.detail-nav{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;padding:1rem 0 1.25rem;border-bottom:1px solid var(--border);margin-bottom:1.5rem}.detail-nav-back{color:var(--link);text-decoration:none;font-size:.95rem;font-weight:500;padding:.4rem 0}.detail-nav-back:hover{color:var(--brand-primary);text-decoration:underline}.detail-nav-actions{display:flex;gap:.5rem}.detail-btn{display:inline-flex;align-items:center;padding:.5rem 1rem;border-radius:10px;font-size:.9rem;font-weight:600;min-height:48px;font-family:inherit;cursor:pointer;text-decoration:none;border:none;transition:background-color .2s,color .2s,border-color .2s}.detail-btn-primary{background:var(--brand-primary);color:var(--text-on-dark)}.detail-btn-primary:hover:not(:disabled){background:var(--accent-hover);color:var(--text-on-dark)}.detail-btn-secondary{background:var(--bg-card);color:var(--text);border:1px solid var(--border)}.detail-btn-secondary:hover{background:var(--brand-warm);border-color:var(--brand-primary);color:var(--text);text-decoration:none}.detail-btn-danger{background:#b02a37;color:#fff}.detail-btn-danger:hover:not(:disabled){background:#8b222a;color:#fff}.detail-main{padding-bottom:.5rem}.detail-hero{display:grid;grid-template-columns:280px 1fr;gap:2rem;align-items:start;margin-bottom:2rem;padding:1.5rem;background:var(--bg-card);border-radius:16px;border:1px solid var(--border);box-shadow:var(--shadow)}@media(max-width:640px){.detail-hero{grid-template-columns:1fr;gap:1.25rem}}.detail-hero-image{position:relative;border-radius:12px;overflow:hidden;background:var(--bg-page)}.detail-hero-info{min-width:0}.detail-title{margin:0 0 .75rem;font-size:1.6rem;line-height:1.25;font-weight:600;color:var(--text)}.detail-meta{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}.detail-badge{display:inline-block;padding:.25rem .65rem;font-size:.8rem;font-weight:500;color:var(--text);background:var(--bg-page);border:1px solid var(--border);border-radius:8px}.detail-badge-code{font-family:ui-monospace,monospace;background:#73202314;border-color:#73202333;color:var(--brand-primary-1)}.detail-unita{margin:0;font-size:.9rem;color:var(--muted)}.detail-img{width:100%;height:220px;object-fit:contain;display:block}.detail-img-placeholder{width:100%;height:220px;display:flex;align-items:center;justify-content:center;font-size:4rem;background:var(--bg-page);color:var(--brand-warm)}.detail-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:1.25rem}@media(max-width:768px){.detail-grid{grid-template-columns:1fr}}.detail-section{background:var(--bg-card);border:1px solid var(--border);border-radius:14px;padding:1.25rem 1.5rem;box-shadow:var(--shadow)}.detail-section-title{margin:0 0 1rem;font-size:1.05rem;font-weight:600;color:var(--text);padding-bottom:.5rem;border-bottom:1px solid var(--border)}.detail-section-stock{grid-column:1}.detail-metrics{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}.metric-card{padding:1rem;background:var(--bg-page);border-radius:10px;text-align:center;border:1px solid var(--border)}.metric-card .metric-label{display:block;font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;margin-bottom:.25rem}.metric-card .metric-value{font-size:1.75rem;font-weight:700;color:var(--text);display:block;line-height:1.2}.metric-card .metric-unit{font-size:.85rem;color:var(--muted)}.progress-wrap{margin-top:0}.progress-bar-bg{height:12px;background:var(--bg-page);border-radius:6px;overflow:hidden;margin-bottom:.35rem}.progress-bar-fill{height:100%;background:var(--brand-primary);border-radius:6px;transition:width .35s ease-out}.progress-caption{font-size:.85rem;color:var(--muted);margin:0}.detail-section-form{grid-column:2}@media(max-width:768px){.detail-section-form{grid-column:1}}.transazione-form{margin:0}.transazione-form-row{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end}.transazione-form label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:var(--muted)}.transazione-form select,.transazione-form input{padding:.6rem .75rem;border:1px solid var(--border);border-radius:10px;background:var(--input-bg);color:var(--text);font-family:inherit;font-size:1rem;min-width:120px}.transazione-form button.detail-btn-primary{padding:.6rem 1.25rem}.msg-ok{color:#2d6a4f;margin:.5rem 0 0;font-size:.9rem}.msg-err{color:#b02a37;margin:.5rem 0 0;font-size:.9rem}.detail-aside{grid-column:1 / -1}.transazioni-list{list-style:none;margin:0;padding:0;max-height:280px;overflow-y:auto}.transazioni-list-item{display:grid;grid-template-columns:1fr auto auto;gap:1rem;align-items:center;padding:.6rem .75rem;border-bottom:1px solid var(--border);font-size:.9rem}.transazioni-list-item:last-child{border-bottom:none}.transazioni-list-item:hover{background:var(--bg-page)}.transazioni-time{color:var(--muted);font-size:.85rem;font-variant-numeric:tabular-nums;min-width:4.5em}.transazioni-ref{font-weight:500;color:var(--text)}.transazioni-qty{color:var(--text);font-variant-numeric:tabular-nums}.detail-empty{color:var(--muted);font-size:.9rem;margin:0;font-style:italic}.modal-overlay{position:fixed;inset:0;background:#2b3a3e80;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.modal{background:var(--bg-card);padding:1.75rem 2rem;border-radius:16px;max-width:420px;width:100%;border:1px solid var(--border);box-shadow:var(--shadow-lg)}.modal-text{margin:0 0 1.5rem;color:var(--text);line-height:1.5}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end}.modal-actions .detail-btn{min-width:100px}.form-articolo{min-height:100vh;min-height:100dvh;padding:1rem;padding-bottom:max(2rem,env(safe-area-inset-bottom));max-width:720px;margin:0 auto;background:var(--bg-page);box-sizing:border-box}@media(min-width:769px){.form-articolo{padding:1.25rem 1.5rem 2rem}}.form-articolo-title{margin:0 0 1.5rem;font-size:1.6rem;font-family:Frank Ruhl Libre,Georgia,serif;color:var(--text);font-weight:600;letter-spacing:-.02em}.form-main{margin-top:.5rem;background:var(--bg-card);padding:1.25rem 1rem;border-radius:16px;border:1px solid var(--border);box-shadow:var(--shadow);box-sizing:border-box}@media(min-width:769px){.form-main{padding:1.75rem 2rem}}.form-section{margin-bottom:1.75rem}.form-section:last-of-type{margin-bottom:0}.form-section-title{margin:0 0 1rem;font-size:.85rem;font-weight:600;color:var(--text);text-transform:uppercase;letter-spacing:.06em;padding-bottom:.5rem;border-bottom:1px solid var(--border)}.form-section-fields{display:grid;grid-template-columns:1fr;gap:1rem 1.5rem}@media(min-width:520px){.form-section-fields.form-section-fields--grid-2{grid-template-columns:1fr 1fr}}.form-field-full{grid-column:1 / -1}.form-articolo form label{display:block;margin-bottom:0;font-size:.9rem;color:var(--muted)}.form-articolo form label+label,.form-articolo form .form-section-fields+.form-section-fields{margin-top:0}.form-articolo form input,.form-articolo form select{display:block;width:100%;margin-top:.4rem;padding:.7rem .9rem;border:1px solid var(--border);border-radius:10px;background:var(--input-bg, var(--bg-page));color:var(--text);font-size:1rem;font-family:inherit;box-sizing:border-box;transition:border-color .2s,box-shadow .2s}.form-articolo form input:focus,.form-articolo form select:focus{outline:none;border-color:var(--border-focus);box-shadow:0 0 0 3px #9b310d1f}.form-articolo form input:disabled{opacity:.7;cursor:not-allowed}.radio-group{display:flex;gap:1.25rem;margin-top:.4rem}.radio{display:flex;align-items:center;gap:.5rem;cursor:pointer;color:var(--text);font-weight:500}.radio input{width:auto;margin:0}.form-articolo .msg-err{color:#b02a37;margin:0 0 1rem;font-size:.95rem}.form-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem;padding-top:1.5rem;border-top:1px solid var(--border)}.form-actions button{padding:.75rem 1.5rem;border-radius:10px;border:none;background:var(--brand-primary);color:var(--text-on-dark);font-weight:600;cursor:pointer;font-size:1rem;font-family:inherit;transition:background-color .2s,transform .1s}.form-actions button:hover:not(:disabled){background:var(--accent-hover);color:var(--text-on-dark)}.form-actions button:active:not(:disabled){transform:scale(.99)}.form-actions button:disabled{opacity:.7;cursor:not-allowed}.btn-secondary{display:inline-flex;align-items:center;padding:.75rem 1.5rem;border-radius:10px;background:var(--bg-page);color:var(--text);border:1px solid var(--border);text-decoration:none;font-size:1rem;font-family:inherit;font-weight:500;transition:background-color .2s,border-color .2s}.btn-secondary:hover{background:var(--brand-warm);border-color:var(--brand-primary);color:var(--text);text-decoration:none}.articolo-codice-prodotto-block{margin-top:.5rem}.articolo-codice-prodotto-label{display:block;font-size:.8rem;font-weight:600;color:var(--text);margin-bottom:.35rem}.articolo-codice-prodotto-row{display:flex;gap:.5rem;align-items:center}.articolo-codice-prodotto-input{flex:1;min-width:0;padding:.5rem .65rem;border:1px solid var(--border);border-radius:8px;background:var(--input-bg);color:var(--text);font-size:.9rem;font-family:inherit}.articolo-codice-prodotto-input:focus{outline:none;border-color:var(--border-focus)}.articolo-codice-prodotto-input:disabled{opacity:.7}.btn-scansiona{flex-shrink:0;padding:.5rem .75rem;font-size:.85rem;font-weight:600;color:var(--text-on-dark);background:var(--brand-primary);border:none;border-radius:8px;cursor:pointer;transition:background .2s,opacity .2s}.btn-scansiona:hover:not(:disabled){background:var(--accent-hover)}.btn-scansiona:disabled{opacity:.6;cursor:not-allowed}.articolo-saving-hint{display:block;font-size:.75rem;color:var(--muted);margin-top:.25rem}.error-msg .error-dismiss{margin-left:.75rem;padding:.2rem .5rem;font-size:.85rem;cursor:pointer;background:transparent;border:1px solid currentColor;border-radius:6px;color:inherit}.error-msg .error-dismiss:hover{background:#fff3}.duplicate-alert-curtain{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:900;padding:1rem;box-sizing:border-box}.duplicate-alert-panel{background:var(--bg-card);border-radius:12px;max-width:480px;width:100%;max-height:85vh;overflow:auto;box-shadow:0 8px 32px #00000040;border:2px solid #c9302c}.duplicate-alert-title{margin:0;padding:1.25rem 1.25rem .5rem;font-size:1.25rem;font-family:Frank Ruhl Libre,Georgia,serif;color:#c9302c;font-weight:600}.duplicate-alert-intro{margin:0 1.25rem 1rem;font-size:.95rem;color:var(--text);line-height:1.4}.duplicate-alert-list{margin:0 1.25rem;padding:0 0 0 1.25rem;list-style:none}.duplicate-alert-item{margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}.duplicate-alert-item:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.duplicate-alert-code{display:block;font-size:1rem;color:var(--text);margin-bottom:.25rem}.duplicate-alert-count{font-size:.85rem;color:var(--muted)}.duplicate-alert-articoli{margin:.5rem 0 0;padding-left:1rem;list-style:disc;font-size:.9rem}.duplicate-alert-articoli li{margin-bottom:.25rem}.duplicate-alert-link{color:var(--brand-primary);text-decoration:none}.duplicate-alert-link:hover{text-decoration:underline}.duplicate-alert-close{display:block;margin:1rem 1.25rem 1.25rem;padding:.65rem 1.25rem;width:100%;max-width:200px;margin-left:auto;margin-right:auto;font-size:1rem;font-weight:600;color:var(--text-on-dark);background:#c9302c;border:none;border-radius:10px;cursor:pointer;transition:background .2s}.duplicate-alert-close:hover{background:#a94442}
