/* Same tokens and grouped app surfaces as Linea Pizzeria, with Magazzino identity. */
:root{--b-paper:#f2f2f7;--b-surface:#fff;--b-ink:#1c1c1e;--b-muted:#636366;--b-line:#e5e5ea;--b-copper:#007aff;--b-warm:#eaf3ff;--b-sage:#248a3d;--b-green:#eaf8ee;--b-ice:#007fa3;--b-cold:#e8f7fc;--app-font:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:light}
body{font-family:var(--app-font);background:var(--b-paper);color:var(--b-ink)}
button,input,select,textarea{font-family:var(--app-font);max-width:100%}button{min-height:44px;font-size:14px;line-height:1.25;padding:10px 13px;border-radius:11px;background:#eef0f5;font-weight:600;box-shadow:none;touch-action:manipulation}button.big{min-height:46px;font-size:15px;padding:11px 14px}button:hover{background:#e4e7ed}button.primary{background:var(--b-copper);color:white}button.primary:hover{background:#0066d6}button:active{opacity:.8}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #007aff;outline-offset:3px}input,select,textarea{min-height:44px;border-radius:10px;border-color:#d1d1d6;font-size:16px}input:focus,select:focus{outline:2px solid #007aff;outline-offset:1px}label{font-size:13px;font-weight:600;gap:6px}.muted,small,.page-head p,.section-head p{color:var(--b-muted)}h1{font-size:32px;letter-spacing:-1px;font-weight:750;line-height:1.15}h2{font-size:20px;font-weight:650;letter-spacing:-.4px}h3{font-size:17px}.page-head h1{font-size:32px}.page-head p{font-size:14px;line-height:1.45;margin:6px 0 0}.page-head{margin-bottom:20px;gap:14px}.head-actions{gap:7px}.head-actions button{min-height:44px}.layout{display:block}main{max-width:1160px;padding:24px;margin:0 auto;min-width:0}.ios-card{background:white;border:0;border-radius:16px;padding:18px;box-shadow:0 1px 3px #1c1c1e06;margin-bottom:14px}.section-head{gap:12px;margin-bottom:12px}.section-head p{font-size:13px;line-height:1.4;margin-bottom:0}.form{gap:14px}.two-col{gap:12px}
.top{height:64px;background:rgba(250,250,252,.94);border-bottom:1px solid #d9d9e180;padding:0 24px;backdrop-filter:blur(18px)}.top-left{min-width:0;gap:10px}.brand{gap:10px}.brand-logo{width:34px;height:34px;border-radius:10px;box-shadow:none}.brand b{font-size:17px;letter-spacing:-.4px}.top-user{font-size:13px}.top-user button{color:#0064d8;background:#e7f0ff;min-height:40px}.hamburger{width:44px;height:44px;min-height:44px;background:transparent}.menu-drawer{background:#f2f2f7;box-shadow:10px 0 60px #0002;border-radius:0 24px 24px 0}.drawer-head{gap:9px;padding:12px 6px 20px}.drawer-head b{font-size:16px}.drawer-appmark{width:36px;height:36px;border-radius:11px;box-shadow:none}.drawer-list{gap:4px}.drawer-item{min-height:48px;padding:8px 10px;border-radius:12px;font-size:15px;font-weight:550}.drawer-item.active{background:#e7f0ff;color:#0064d8;font-weight:650}.drawer-icon,.drawer-item.active .drawer-icon{width:30px;height:30px;border-radius:9px;background:transparent;color:#007aff}.drawer-item.active .drawer-icon{color:#0064d8}.drawer-chevron{font-size:20px;color:#aeaeb2}.drawer-footer button{font-weight:600;min-height:44px}.app-symbol{display:inline-block;vertical-align:middle;width:24px;height:24px;flex:none}.symbol-wash{opacity:.08}.inline-symbol{display:inline-flex;vertical-align:middle;margin-right:6px;color:inherit}.inline-symbol .app-symbol{width:20px;height:20px}.app-tabs{display:none}
.dashboard-grid{gap:14px}.dashboard-section{padding:0;overflow:hidden}.order-section-summary{min-height:62px;padding:14px 16px!important;background:white!important;gap:10px;list-style:none}.order-section-summary h2{font-size:18px;margin:0}.order-section-summary p{font-size:13px;margin:4px 0 0}.order-section-summary::-webkit-details-marker{display:none}.section-body{padding:0 16px 14px!important}.count,.badge,.tag{background:#f2f2f7;color:#636366;border:0;font-size:12px;font-weight:600;padding:4px 8px;border-radius:20px}.warning-count{background:#fff0ee;color:#c72e29}.chevron{color:#aeaeb2}.simple-row,.list-action{border-radius:0;min-height:56px;padding:12px 0;background:white;border-bottom:1px solid #e5e5ea;box-shadow:none;font-size:15px}.list-action b,.simple-row b{font-weight:600}.list-action small,.simple-row small{display:block;margin-top:4px;line-height:1.4;font-size:12px}.stock-alert{border:0;border-radius:12px;background:#fff4de;color:#945a00;padding:12px}.stock-alert small{color:inherit}.inventory-open-warning-section{border:1px solid #ff9b94!important}.inventory-open-warning-section .order-section-summary{background:#fff0ee!important}.success-note,.err,.notice{font-size:14px;line-height:1.45;font-weight:550;border-radius:12px;padding:12px 14px}.success-note{background:#eaf8ee;color:#248a3d}.err{background:#fff0ee;color:#b52320}
.product-search{position:relative}.product-search input{background:#eaeaef;border:0;border-radius:11px;min-height:44px}.product-search span{font-size:13px;font-weight:550;color:#636366}.product-search-card,.counter-card>.product-search{background:transparent;padding:0;margin-bottom:12px}.counter-card{background:transparent;padding:0;box-shadow:none}.counter-card>.counter-head{background:transparent;padding:4px 0 12px;margin:0}.counter-card>.counter-list{padding:0;border-radius:16px;overflow:hidden;background:white}.counter-row,.inventory-row,.order-line{padding:12px 14px;gap:10px;min-height:68px;border:0;border-bottom:1px solid #e5e5ea;border-radius:0;background:white}.counter-product,.inventory-product,.order-product{min-width:0;max-width:none;font-size:16px;line-height:1.3}.counter-product b,.inventory-product b,.order-product b{font-weight:600}.counter-product small,.inventory-product small{font-size:12px;line-height:1.4}.counter-input,.stepper{background:#f2f2f7;border-radius:10px;gap:0;overflow:hidden;flex:none}.counter-input button,.stepper button,.counter-input button:last-child,.stepper button:last-child{width:44px;height:44px;min-height:44px;border:0;border-radius:0;background:transparent;color:#007aff;font-size:22px}.counter-input input,.stepper input,.qty-input{border:0;background:transparent;font-size:17px;font-weight:650;width:44px;min-height:44px;border-radius:0;padding:7px 2px;text-align:center;font-variant-numeric:tabular-nums}.counter-actions{gap:7px}.counter-actions button{min-height:44px}.counter-suspended{background:#eaf3ff;border:0;border-radius:14px;padding:12px 14px}.my-counter-history{background:#fff;border:0;border-radius:16px;margin-bottom:12px;overflow:hidden}.my-counter-history>summary{padding:14px 16px;min-height:54px;font-size:15px;cursor:pointer}.my-counter-row{gap:8px;padding:12px 14px}.my-counter-row small{font-size:12px}.counter-category{border:0;border-radius:14px;background:#fff;margin:0 0 10px;overflow:hidden}.counter-category>summary{padding:13px 14px;min-height:52px;font-weight:650;background:white;border-bottom:1px solid #e5e5ea;cursor:pointer;font-size:15px}.counter-category>summary small{font-weight:500;color:#636366}.counter-category>summary::marker{color:#aeaeb2}.inventory-list{gap:0;border-radius:14px;overflow:hidden}.inventory-row{min-height:68px}.order-list{gap:0;border-radius:14px;overflow:hidden}.order-line.suggested{background:#f4f8ff}.mini-badge{font-size:11px;background:#e7f0ff;color:#0064d8;font-weight:600}.filter-bar,.stats-filters{gap:10px}.filter-bar label,.stats-filters label{font-size:12px}.filter-bar input,.filter-bar select,.stats-filters input,.stats-filters select{background:#f2f2f7;border:0}.table-wrap{border-radius:12px}.table-wrap table{width:100%;font-size:14px}.table-wrap th{background:#f7f7fa;font-size:12px;color:#636366;padding:11px}.table-wrap td{padding:12px 11px}.product-thumb{border-radius:9px}.missing-stock-target{background:#fff7f6}
.settings-grid{gap:14px}.settings-card{padding:18px}.settings-row{padding:10px 0;border-color:#e5e5ea;gap:10px;min-height:56px}.settings-name{min-width:0}.settings-name b{font-size:15px;font-weight:600}.settings-actions{gap:6px;flex:none}.settings-actions button{min-height:44px;padding:8px 10px;font-size:13px}.settings-actions .icon-btn{width:44px}.settings-order-preview{background:#f7f7fa;border-radius:11px;padding:6px 10px}.settings-users{grid-column:1/-1}.role-chip{background:#e7f0ff;color:#0064d8;font-size:11px}.printer-test-card{max-width:720px}.printer-test-card .form{grid-template-columns:1fr 120px;align-items:start}.printer-test-card .form>*{grid-column:1/-1}.printer-test-card .form>label:first-child{grid-column:1}.printer-test-card .form>label:nth-child(2){grid-column:2}.printer-test-card h3{margin:8px 0 0}.printer-test-card hr{width:100%;border:0;border-top:1px solid #e5e5ea;margin:8px 0}.printer-test-card p{margin:0}.printer-save{width:100%}#printerStatus{margin:0}input[type=checkbox]{width:22px;min-height:22px;accent-color:#34c759}.printer-test-card label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px;min-height:44px}
.stats-summary{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.stat-kpi{background:#f7f7fa;border:0;border-radius:13px;padding:16px;min-width:0}.stat-kpi b{font-size:26px;letter-spacing:-.7px;overflow-wrap:anywhere}.stat-kpi small{font-size:12px}.stats-grid{gap:14px}.chart-card{border:0;border-radius:13px;background:#f7f7fa;padding:16px}.bar-track{background:#e5e5ea}.bar-track i{background:#007aff}.rank-row{font-size:14px}.rank-row b{min-width:0;overflow-wrap:anywhere}.rank-row strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.overlay{background:#0005;backdrop-filter:blur(3px);padding:24px}.modal{background:#f2f2f7;border-radius:24px;box-shadow:0 24px 80px #0003;padding:20px;width:min(720px,100%);max-height:88dvh;overflow:auto}.modal-head{align-items:start;gap:12px;margin-bottom:16px}.modal-head h2{font-size:22px;margin:0 0 5px}.modal-head p{font-size:13px;line-height:1.45;color:#636366;margin:0}.modal-head>button{width:44px;min-height:44px;padding:0;border-radius:50%;background:#e5e5ea;font-size:24px;flex:none}.modal-actions{gap:8px;position:sticky;bottom:-20px;background:#f2f2f7;padding:12px 0 0;margin-top:12px}.modal-actions button{min-height:44px}.modal .form{border-radius:16px;padding:16px}.print-preview,.detail-list{border-radius:14px}.login-box{background:white;border-radius:24px;padding:30px;box-shadow:0 8px 35px #1c1c1e08}.login-box h1{font-size:27px}.login-box .app-mark{border-radius:18px}
@media(min-width:1180px){.hamburger{display:none}.menu-drawer{top:64px!important;width:220px!important;height:calc(100dvh - 64px);transform:none!important;z-index:18;padding:18px 10px;border-radius:0;box-shadow:none;transition:none}.drawer-head{display:none}.drawer-chevron{display:none}.drawer-footer{display:none}.layout{padding-left:220px}.top{z-index:30}.menu-shade{display:none!important}main{padding:28px 30px}}
@media(max-width:1179px){.app-tabs{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;z-index:35;padding:6px max(8px,env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom));background:rgba(250,250,252,.97);backdrop-filter:blur(18px);border-top:1px solid #d9d9e1}.app-tabs button{flex:1;max-width:180px;min-height:54px;display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:#636366;border-radius:12px;font-size:13px}.app-tabs button.active{background:#e7f0ff;color:#0064d8}.app-tabs .app-symbol{width:25px;height:25px}main{padding-bottom:110px}.menu-drawer{z-index:100}.menu-shade{z-index:99}.overlay{z-index:110}}
@media(max-width:600px){.top{height:58px;padding:0 12px}.brand b{font-size:15px}.brand-logo{width:30px;height:30px}.top-user button{font-size:13px;padding:8px 10px}.top-user span{display:none}main{padding:18px 12px calc(100px + env(safe-area-inset-bottom))}.page-head{margin-bottom:16px}.page-head h1{font-size:29px}.page-head p{font-size:14px}.head-actions{display:flex;flex-wrap:wrap;width:100%}.head-actions button{flex:1;min-width:110px;font-size:13px}.head-actions label{flex:1;width:100%}.ios-card{padding:14px}.dashboard-section{padding:0}.dashboard-grid{grid-template-columns:1fr}.order-section-summary{padding:14px!important}.app-tabs button{flex-direction:column;gap:4px;font-size:11px;padding:4px}.app-tabs .app-symbol{width:25px;height:25px}.counter-head{flex-direction:column;align-items:stretch;gap:10px}.counter-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.counter-actions button{font-size:13px}.counter-row,.inventory-row{padding:12px 10px;gap:8px}.counter-product,.inventory-product{font-size:15px;min-width:0;max-width:none;overflow-wrap:anywhere}.counter-input,.stepper{width:auto;justify-content:initial;flex:none}.counter-input button,.stepper button{width:44px;height:44px}.counter-input input,.stepper input{width:38px;min-height:44px}.my-counter-row{flex-wrap:wrap;gap:6px}.my-counter-row>div{flex:1;min-width:140px}.settings-grid{grid-template-columns:1fr}.settings-card{padding:14px}.settings-actions button{font-size:12px}.settings-row{gap:8px}.section-head{flex-wrap:wrap}.section-head h2{font-size:19px}.section-head>button{font-size:13px}.order-line{flex-direction:column;gap:10px;padding:12px}.order-stepper{width:100%;justify-content:flex-start;gap:8px}.stats-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat-kpi{padding:12px}.stat-kpi b{font-size:22px}.stat-kpi span{font-size:12px}.stats-grid{grid-template-columns:1fr}.filter-bar{grid-template-columns:1fr 1fr}.filter-bar input,.filter-bar select,.stats-filters input,.stats-filters select{min-width:0;min-height:44px}.stats-filters{grid-template-columns:1fr 1fr}.printer-test-card .form{grid-template-columns:minmax(0,1fr) 92px;gap:12px}.printer-test-card .form>label{min-width:0}.overlay{padding:0;align-items:end}.modal{border-radius:24px 24px 0 0;max-height:90dvh;padding:18px 12px calc(16px + env(safe-area-inset-bottom))}.modal::before{content:'';display:block;width:36px;height:5px;background:#c7c7cc;border-radius:4px;margin:-8px auto 14px}.modal-head h2{font-size:20px}.modal .form{padding:12px}.modal-actions{display:flex;flex-wrap:wrap;bottom:-16px;padding-bottom:4px}.modal-actions button{flex:1;min-width:120px}.table-wrap{overflow:visible}.table-wrap .adaptive-table{display:block;min-width:0;width:100%;font-size:14px}.adaptive-table thead{display:none}.adaptive-table tbody{display:grid;gap:10px}.adaptive-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#f7f7fa;border-radius:13px;padding:6px 10px;min-width:0}.adaptive-table tbody td{display:block;border:0;padding:7px 4px;min-width:0;overflow-wrap:anywhere}.adaptive-table tbody td:first-child{grid-column:1/-1;font-size:16px;font-weight:600}.adaptive-table tbody td::before{content:attr(data-label);display:block;color:#636366;font-size:11px;font-weight:500;margin-bottom:3px}.adaptive-table tbody td:has(button){grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px}.adaptive-table tbody td:has(button)::before{display:none}.adaptive-table tbody td button{min-height:44px}.table-wrap:has(.adaptive-table){padding:0}.modal .table-wrap{overflow-x:auto}.modal table:not(.adaptive-table){min-width:0}}
.primary{box-shadow:none!important}#printerStatus{grid-row:3}.product-search>span{display:flex;align-items:center;gap:6px;margin-bottom:6px}.product-search>span .inline-symbol{display:inline-flex;margin:0}.my-counter-history{padding:0}.my-counter-history>summary{display:grid;gap:4px}.my-counter-history>summary small{font-size:12px;font-weight:400}.my-counter-history>summary b{font-weight:650}.dashboard-section .order-section-summary h2{font-size:18px!important}.dashboard-section .order-section-summary p{font-size:13px!important}.order-line{grid-template-columns:minmax(0,1fr) auto auto auto!important}
@media(max-width:600px){.counter-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px 10px;align-items:start}.counter-row>.product-thumb{width:36px;height:36px;grid-column:1;grid-row:1/3}.counter-row>.counter-product{grid-column:2;max-width:none}.counter-row>.counter-input{grid-column:2;justify-self:end}.counter-product b{font-size:16px;line-height:1.3}.counter-row>.counter-product small{margin-top:4px}.adaptive-table tbody td{white-space:normal}.adaptive-table:has(.product-thumb) tbody tr{position:relative}.adaptive-table:has(.product-thumb) tbody td:first-child{position:absolute;top:12px;left:12px;padding:0}.adaptive-table:has(.product-thumb) tbody td:nth-child(2){grid-column:1/-1;padding-left:52px;min-height:58px}.order-line{grid-template-columns:minmax(0,1fr)!important}.order-qty-total{min-width:0;text-align:left;white-space:normal}.order-stepper{flex-wrap:wrap!important}.modal-actions button{width:auto}.settings-name{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.app-tabs,.inline-symbol{display:none!important}.layout{padding:0}main{padding:0}.adaptive-table thead{display:table-header-group}.adaptive-table tbody{display:table-row-group}.adaptive-table tbody tr{display:table-row}.adaptive-table tbody td{display:table-cell}.adaptive-table tbody td::before{display:none}}
