:root{--ink:#172a36;--muted:#75828b;--accent:#087f79;--line:#e4e9e9;--bg:#f4f6f6;--dark:#112f35}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}a{color:var(--accent);text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;margin-bottom:4px}h2{font-size:17px;letter-spacing:-.3px;margin-bottom:16px}h3{font-size:14px;margin-bottom:8px}p{color:var(--muted)}small{font-size:12px;color:var(--muted);display:block}aside{width:238px;position:fixed;inset:0 auto 0 0;background:var(--dark);color:#d5e4e4;padding:32px 18px;display:flex;flex-direction:column}.brand{font-size:35px;line-height:1;font-weight:900;letter-spacing:-2px;display:block;color:inherit}.brand span{display:block;font-size:9px;letter-spacing:3.4px;font-weight:600;margin-top:10px}aside .brand{padding-left:16px;color:white;margin-bottom:45px}.navcaption{font-size:9px;letter-spacing:1.5px;color:#7c9b9e;margin:20px 15px 10px}nav a{display:block;color:#afc5c7;padding:12px 16px;border-radius:7px;margin:3px 0;font-weight:500}nav a:hover,nav a.active{background:#205058;color:#fff}nav a.active{box-shadow:inset 3px 0 #62cfbb}.asidefoot{margin-top:auto;padding-top:25px;display:flex;gap:10px;align-items:center;font-size:12px}.avatar{background:#32606a;border-radius:100%;height:32px;width:32px;display:grid;place-items:center}.asidefoot small{color:#81a1a5;font-size:10px}.asidefoot form{margin-left:auto}.workspace{margin-left:238px}header{height:80px;background:#fff;border-bottom:1px solid var(--line);padding:14px 36px;display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}header strong{color:var(--ink)}header form{margin:0}.branchlabel{display:flex;align-items:center;gap:12px;margin:0}.branchlabel select{width:190px;min-height:35px;margin:0;background:#fafcfc}main{padding:34px 36px;max-width:1700px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:var(--accent);margin-bottom:8px}.heading p{margin:0;font-size:13px}.button,button{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:white;border:1px solid transparent;border-radius:6px;padding:10px 16px;cursor:pointer;font:600 12px/1.5 inherit;white-space:nowrap}button:hover,.button:hover{filter:brightness(.95)}.secondary{background:#fff;color:var(--ink);border-color:var(--line)}.danger{color:#a74f4f;background:#fff;border-color:#edcccc}.icon{background:transparent;padding:6px 10px;color:inherit;border:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:26px}.stats section,.panel{background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 2px 2px #172a3603}.stats section{padding:22px}.stats span{font-size:11px;color:var(--muted)}.stats strong{display:block;font-size:25px;line-height:1.4;letter-spacing:-.7px;margin:14px 0 5px}.stats small{font-size:11px}.panel{margin-bottom:24px;overflow:hidden}.panelhead{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:1px solid var(--line)}.panelhead h2{margin:0}.panelhead a{font-size:12px}.twocol{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}.wideleft{grid-template-columns:1.8fr 1fr}.padded{padding:24px}.activity{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #f0f3f3;padding:15px 22px;color:inherit;font-size:12px}.activity:last-child{border-bottom:0}.activity strong{font-weight:600}.activity small{font-size:11px}.activity .right{margin-left:auto;text-align:right}.tile{width:35px;height:35px;background:#eaf6f3;display:grid;place-items:center;color:var(--accent);border-radius:8px;font-size:18px}.right strong{display:block}.badge{display:inline-block;font-size:10px;line-height:1.6;color:#967123;background:#fff4db;border-radius:4px;padding:3px 8px}.badge.green{color:#267862;background:#e9f6ef}.badge.red{color:#a14e4e;background:#fceeee}.callout{padding:20px;margin:20px;background:#eff7f5;border:1px solid #d9eae5;border-radius:7px;display:flex;gap:15px;align-items:center}.callout p{font-size:12px;margin:0}.callout h3{margin-bottom:5px}.callout>span:first-child{font-size:20px;color:var(--accent)}.empty{padding:55px 25px;text-align:center;color:var(--muted)}.empty h3{color:var(--ink);font-size:16px}.emptyicon{font-size:35px;color:#79a69c;margin-bottom:20px}.empty.compact{padding:25px}.notice{padding:12px 18px;background:#e1f2eb;color:#28694e;border-radius:6px;margin:0 0 20px}.notice.error{background:#fff0ee;color:#a6473e}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}th{padding:12px 20px;background:#fafcfc;color:#7b878b;font-size:10px;text-transform:uppercase;letter-spacing:.6px;font-weight:600;border-bottom:1px solid var(--line)}td{padding:16px 20px;border-bottom:1px solid #edf1f1}td small{font-size:10px;margin-top:3px}tbody tr:hover{background:#fcfdfd}label{display:block;font-size:12px;font-weight:500;margin-bottom:13px}input,select,textarea{display:block;width:100%;margin-top:6px;border:1px solid #dce3e4;border-radius:5px;background:white;padding:9px 11px;min-height:39px;font:inherit;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #a8d7ce;outline-offset:1px}textarea{min-height:85px;resize:vertical}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px}.search{max-width:260px;margin:0;font-size:12px}.actions{display:flex;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}.actions form{margin:0}.panelhead .actions{margin:0}.actions label{margin:0}.check{display:flex;gap:8px;align-items:center}.check input{width:16px;min-height:16px;margin:0}.spaced{margin-top:24px}.totals{max-width:340px;margin:22px 0 22px auto}.totals p,.totals h2{display:flex;justify-content:space-between;gap:24px}.totals h2{padding-top:14px;border-top:1px solid var(--line);font-size:22px}.receipt{background:#f7faf9;border:1px solid var(--line);border-radius:6px;padding:18px;margin-top:20px}.receipt p{margin:8px 0;color:var(--ink)}.printbrand{font-size:30px}footer{font-size:10px;color:#96a0a3;margin:28px 0}.auth{background:var(--dark);min-height:100vh;display:grid;place-items:center;padding:35px 20px}.authcard{background:#fff;border-radius:12px;width:100%;max-width:480px;padding:40px}.authcard .brand{color:var(--dark);margin-bottom:38px}.authcard h1{font-size:28px}.authcard button{width:100%;margin:8px 0 24px}.authcard>small{text-align:center}.authcard .eyebrow{font-size:8px;margin-bottom:13px}#items select{min-width:240px}#items input{min-width:110px}button:focus-visible,a:focus-visible{outline:3px solid #77cabb;outline-offset:3px}[hidden]{display:none!important}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.twocol,.wideleft{grid-template-columns:1fr}.workspace{margin-left:205px}aside{width:205px}main{padding:25px}header{padding:15px 25px}.heading{align-items:flex-start}.heading .button{font-size:11px}}
@media(max-width:700px){aside{position:static;width:100%;padding:20px}.workspace{margin:0}aside .brand{margin-bottom:15px;font-size:27px}nav{display:flex;overflow:auto;gap:5px}nav a{white-space:nowrap;font-size:12px;padding:8px 12px}.navcaption,.asidefoot{display:none}header{padding:12px 20px;height:auto;gap:15px}header>span{display:none}.branchlabel{font-size:11px}main{padding:24px 15px}.heading{flex-direction:column}h1{font-size:26px}.stats{gap:10px}.stats section{padding:15px}.stats strong{font-size:20px}.panelhead{padding:16px;flex-wrap:wrap}.formgrid{grid-template-columns:1fr}.authcard{padding:28px}.actions{gap:8px}.callout{margin:15px}.panelhead .actions{width:100%}}
@media print{body{background:white;font-size:11px}aside,header,.heading,.no-print,footer,.notice{display:none!important}.workspace{margin:0}main{padding:0;max-width:none}.panel{box-shadow:none;border:0}.printable{padding:10px}.twocol{display:block}.panelhead{padding:10px 0}.button,button{display:none!important}table{white-space:normal}td,th{padding:8px}.receipt-mode .workspace main>*{display:none!important}.receipt-mode .workspace main>.twocol.no-print{display:block!important}.receipt-mode .twocol>section{display:none!important}.receipt-mode .twocol>section:has(.print-receipt){display:block!important}.receipt-mode section:has(.print-receipt)>*{display:none!important}.receipt-mode section>.print-receipt{display:block!important;border:0;background:white}.receipt-mode .print-receipt:before{content:'BBRY · REMITO INTERNO';font-weight:bold;font-size:20px}}

/* v0.1.1: scorrimento indipendente del menu su finestre basse o con zoom. */
@media screen and (min-width:701px){
 aside{overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#6a9d9e var(--dark)}
 aside>*{flex-shrink:0}
 aside::-webkit-scrollbar{width:8px}
 aside::-webkit-scrollbar-track{background:var(--dark)}
 aside::-webkit-scrollbar-thumb{background:#6a9d9e;border-radius:8px}
}
