/* COMASIRA’S Design System · HUB 4.30.0 · 11 October 2026
   Presentation-only stylesheet. Does not alter database or business workflows. */
:root{
  --bg:#f4f3ef;--paper:#ffffff;--ink:#211d1b;--muted:#716b64;
  --gold:#af7d35;--gold2:#e3bf7a;--burg:#822b2c;--red:#a7383c;
  --line:#e4ded4;--black:#1c1a19;--green:#286850;
  --shadow:0 6px 22px rgba(36,29,21,.055);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
html{scroll-behavior:smooth;scroll-padding-top:98px}
body{background:#f4f3ef;color:var(--ink);line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(166,107,48,.65);outline-offset:3px}
[hidden]{display:none!important}
.app-shell{max-width:1190px;padding:30px 25px 64px}
.main-topbar,.hub-topbar{background:rgba(27,25,23,.97);border-bottom:1px solid #49403a;box-shadow:0 7px 26px rgba(0,0,0,.13)}
.brand-title,.brand-title-hub{font-family:inherit!important;font-weight:800!important;letter-spacing:.025em!important}
.sync-wrap,.hub-sync{border:1px solid rgba(238,221,197,.19);border-radius:50px;padding:7px 11px;background:rgba(255,255,255,.05)}
.view>.hero,.view>.page-head,.hub-shell .hero,.hub-shell .page-head{margin-bottom:21px;gap:20px;align-items:center}
.hero h1,.page-head h1,.hub-shell .hero h1,.hub-shell .page-head h1{font-family:inherit;font-weight:800;letter-spacing:-.045em;line-height:1.1;font-size:clamp(30px,3.8vw,43px)}
.eyebrow{color:#986e3a;font-weight:850;letter-spacing:.14em;font-size:10px}
.muted{color:var(--muted)}
.section-head{margin-top:24px;margin-bottom:12px;gap:14px}.section-head h2{font-family:inherit;letter-spacing:-.025em;font-size:clamp(18px,2vw,22px);font-weight:790;margin-bottom:3px}
.section-head p{line-height:1.5}
.primary,.secondary,.link-btn,.button-link{border-radius:12px;min-height:42px;transition:background .17s,border-color .17s,transform .13s,box-shadow .17s}
.primary{background:#822b2c;color:#fff;border-color:#822b2c;box-shadow:0 5px 12px rgba(130,43,44,.13)}
.primary:hover:not(:disabled){background:#682122;border-color:#682122;box-shadow:0 8px 20px rgba(130,43,44,.18)}
.secondary{border-color:#dcd5cc;background:#fff;color:#2d2722}
.secondary:hover:not(:disabled){border-color:#ab9c89;background:#faf8f4}
.link-btn{color:#7d392e}
.search,.filters select,.field input,.field select,.field textarea,.form-grid input,.form-grid select,.form-grid textarea{border:1px solid #dcd6cc;background:#fff;border-radius:12px;min-height:43px}
.search:focus,.filters select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#a67e43;box-shadow:0 0 0 3px rgba(166,126,67,.11)}
.kpi-grid{gap:12px;margin:17px 0 24px}
.kpi{border-radius:18px;border:1px solid #e6e0d6;background:#fff;padding:17px 18px;box-shadow:var(--shadow)}
.kpi span{display:block;font-size:11px;font-weight:650;color:#77716b;letter-spacing:.015em}
.kpi strong{font-family:inherit;font-size:clamp(23px,2.8vw,31px);font-weight:780;letter-spacing:-.045em;color:#27211e}
.card,.settings-card,.product-stock,.info-card,.task-item,.review-queue{background:#fff;border-color:#e3ddd4;border-radius:18px;box-shadow:var(--shadow)}
.card-head h3{font-size:16px;letter-spacing:-.02em}
.badge{letter-spacing:.035em;font-weight:850;border-radius:999px}
.quick-card{border:1px solid #e3ddd4;background:#fff;border-radius:17px;box-shadow:var(--shadow);min-height:96px}
.quick-card:hover{border-color:#c7ab83;box-shadow:0 12px 22px rgba(36,29,21,.09)}
.bottom-nav{background:rgba(29,26,23,.98);border-top:1px solid #493e34}
.bottom-nav .nav-item.active{color:#f1c986}
.modal-sheet{border:1px solid #e3d8c8;box-shadow:0 24px 80px rgba(20,15,13,.18)}
.auth-card{background:#fff;border-color:#ddc7a6;box-shadow:0 26px 80px rgba(0,0,0,.24)}

/* HUB home: operating overview */
.hub-view{padding-top:7px;padding-bottom:34px}
.hub-intro{background:#22201e;border:1px solid #38302a;border-radius:24px;padding:21px 25px;margin:0 0 18px;color:#fff;position:relative;overflow:hidden;min-height:157px;align-items:center}
.hub-intro:after{content:"";position:absolute;right:-120px;bottom:-205px;width:360px;height:360px;background:radial-gradient(circle,rgba(178,126,55,.24),transparent 68%);pointer-events:none}
.hub-intro-copy{position:relative;z-index:1}.hub-eyebrow{color:#d5b27c!important;font-size:10px!important}
.hub-intro .hub-main-logo{max-height:75px;width:min(100%,270px);filter:drop-shadow(0 2px 5px rgba(0,0,0,.15))}
.hub-logo-wrap .hub-hub-title{font-family:inherit!important;font-size:33px!important;font-weight:850;line-height:1;letter-spacing:.075em}
.hub-intro-copy>p:last-child{font-size:13px!important;line-height:1.45!important;max-width:560px!important;color:#d9d1c8!important;margin-top:8px!important}
.hub-version{background:rgba(255,255,255,.08);border:1px solid rgba(236,216,184,.23);border-radius:999px;color:#e2c795;padding:7px 11px;font-size:10px;white-space:nowrap}
.hub-today{border:1px solid #e5ded2;border-radius:22px;padding:20px 22px;background:#fff;box-shadow:var(--shadow);margin:0 0 17px}
.hub-today h2{font-family:inherit;font-size:21px;font-weight:800;letter-spacing:-.035em;margin:0 0 3px}
.hub-today>p{font-size:12px;margin:0 0 13px;color:#77716b}
.today-actions{gap:10px}.today-action{background:#f7f5f0;border:1px solid #e6dfd5;border-radius:15px;min-height:87px;text-align:left;padding:13px 15px;transition:background .15s,transform .15s,border-color .15s}
.today-action:hover{background:#f5ece0;border-color:#c9ae86;transform:translateY(-2px)}
.today-action b{font-family:inherit;font-size:29px;font-weight:840;color:#30251f;line-height:1.1;letter-spacing:-.05em}
.today-action span{font-size:12px;font-weight:720;color:#645b52}
.department-search{background:transparent;border:0;padding:0;margin:14px 0 12px;font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:850;color:#84725e}
.department-search input{margin-top:8px;background:#fff;border:1px solid #ddd6ce;border-radius:12px;height:46px;font-size:13px;text-transform:none;letter-spacing:normal}
.department-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:13px 0 21px}
.department-card,.department-commercial,.department-production,.department-sales{display:grid!important;grid-template-columns:58px minmax(0,1fr) 27px!important;grid-template-rows:1fr!important;align-items:center!important;gap:12px!important;min-height:150px!important;height:auto!important;padding:20px 17px!important;border-radius:21px!important;background:#24211f!important;border:1px solid #40362e!important;box-shadow:0 9px 26px rgba(38,27,17,.13)!important;overflow:hidden;text-align:left!important}
.department-card::before{background:linear-gradient(125deg,#2b2622,#1f1d1b)!important}
.department-card::after{right:-160px;top:-155px;opacity:.55}
.department-card:hover{transform:translateY(-3px)!important;border-color:#947e5b!important;box-shadow:0 15px 29px rgba(24,18,14,.19)!important}
.department-number{top:13px;right:15px;color:#a9947a;font-size:10px;font-weight:800}
.department-icon{grid-column:1!important;grid-row:1!important;align-self:center!important;justify-self:center!important;width:54px!important;height:54px!important;border-radius:16px!important;border:1px solid rgba(225,182,116,.23)!important;background:rgba(214,163,95,.08)!important;color:#e7b66d!important}
.department-icon svg{width:27px;height:27px}
.department-copy{grid-column:2!important;grid-row:1!important;align-items:flex-start!important;justify-content:center!important;gap:5px!important;padding:0!important;margin:0!important;text-align:left!important;min-width:0}
.department-copy small{font-size:9px!important;letter-spacing:.12em!important;color:#c9a476!important;text-align:left!important}
.department-copy strong{font-family:inherit!important;font-weight:810!important;letter-spacing:-.015em!important;font-size:clamp(18px,2vw,23px)!important;line-height:1.13!important;text-align:left!important;margin:0!important;max-width:100%!important}
.department-copy em{font-size:11px!important;line-height:1.38!important;color:#d3c6b7!important;text-align:left!important;max-width:100%!important}
.department-arrow{grid-column:3!important;grid-row:1!important;position:static!important;align-self:end!important;justify-self:end!important;width:30px;height:30px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.11);color:#ebc48a;font-size:15px}
.department-warehouse{border-color:#8e6442!important;background:#30251e!important}
.department-warehouse::before{background:linear-gradient(125deg,#3d2b21,#251d18)!important}
.department-warehouse .department-icon{background:rgba(226,172,97,.16)!important}
.department-mary .mary-home-talk-wrap{grid-column:1!important;grid-row:1!important}
.department-mary .department-copy{grid-column:2!important;grid-row:1!important}
.hub-utility{border:1px solid #e6dfd5;background:#fff;border-radius:18px;padding:17px 19px}

/* Warehouse landing: task-first, scorte on demand */
.warehouse-view{padding-bottom:34px}
.warehouse-welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:236px;padding:28px 32px;margin-bottom:21px;position:relative;overflow:hidden;color:#fff;background:linear-gradient(112deg,#28211d 0%,#33271f 68%,#4c3020 100%);border:1px solid #49372b;border-radius:26px;box-shadow:0 15px 34px rgba(41,30,19,.17)}
.warehouse-welcome::after{content:"";position:absolute;right:-90px;top:-120px;width:370px;height:370px;border-radius:50%;background:radial-gradient(circle,rgba(217,167,99,.18),transparent 65%);pointer-events:none}
.warehouse-welcome-copy{position:relative;z-index:1;max-width:730px}
.warehouse-welcome .eyebrow{color:#e9ba7b;margin-bottom:13px}
.warehouse-welcome h1{font-family:inherit;font-weight:830;font-size:clamp(34px,4vw,51px);line-height:1.02;letter-spacing:-.052em;margin:0}
.warehouse-welcome h1 span{color:#e6bd82}
.warehouse-welcome p:not(.eyebrow){color:#ddd0c0;max-width:580px;font-size:14px;line-height:1.58;margin:14px 0}
.warehouse-mode-label{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(234,207,164,.24);background:rgba(255,255,255,.06);border-radius:999px;padding:7px 11px;color:#f1d9b5;font-size:11px;font-weight:680}
.warehouse-mode-label>span{width:7px;height:7px;border-radius:50%;background:#81c4a0;box-shadow:0 0 0 3px rgba(129,196,160,.14)}
.warehouse-welcome-art{flex:0 0 135px;opacity:.7;z-index:1}.warehouse-welcome-art svg{width:100%;stroke:#dfb779;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.warehouse-toolbar-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:4px 0 12px}
.warehouse-toolbar-head h2{margin:0;font-size:23px;font-weight:810;letter-spacing:-.035em}
.warehouse-text-link{border:1px solid #ded3c3;background:#fff;color:#6f4932;border-radius:12px;padding:9px 13px;font-size:12px;font-weight:730;white-space:nowrap}
.warehouse-text-link:hover{background:#f8efe4}
.warehouse-jump-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.warehouse-jump-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;min-height:145px;border:1px solid #e7ded4;border-radius:19px;background:#fff;padding:17px;box-shadow:var(--shadow);color:#302720;transition:transform .16s,border-color .16s,box-shadow .16s}
.warehouse-jump-card:hover{border-color:#c6a47a;transform:translateY(-2px);box-shadow:0 11px 23px rgba(30,23,16,.1)}
.warehouse-jump-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#f5ede3;color:#875c37;margin-bottom:7px}
.warehouse-jump-icon svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.warehouse-jump-card strong{font-size:15px;font-weight:790;letter-spacing:-.018em}
.warehouse-jump-card small{font-size:11px;color:#797068}
.warehouse-jump-arrow{position:absolute;right:17px;top:16px;font-size:16px;color:#967653}
.warehouse-recap-banner{display:flex;align-items:flex-start;gap:13px;padding:15px 17px;background:#f2e9dd;border:1px solid #e5d5c2;border-radius:16px;margin:18px 0 28px}
.warehouse-recap-mark{flex:0 0 23px;height:23px;display:grid;place-items:center;border:1px solid #bfa17b;border-radius:50%;color:#805d39;font-family:Georgia,serif;font-weight:800}
.warehouse-recap-banner b{font-size:12px}.warehouse-recap-banner p{font-size:12px;margin:3px 0 0;color:#705e4e;line-height:1.5}
.warehouse-operations{margin:0 0 27px}
.warehouse-operations>.warehouse-operations-head{margin-bottom:9px}
.warehouse-operations>.warehouse-operations-head h2{font-size:24px}
.warehouse-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:15px!important}
.warehouse-kpis .kpi{padding:19px;background:#fff;box-shadow:var(--shadow)}
.warehouse-kpis .kpi strong{font-size:32px}
.warehouse-kpis .attention{border-color:#cfb79b;background:#fffaf5;box-shadow:inset 0 0 0 1px rgba(184,101,65,.13)}
.warehouse-operations>.section-head{border-bottom:1px solid #e4ded4;padding-bottom:10px;margin-top:29px}
.warehouse-operations>.section-head h2{font-size:21px}
.warehouse-operations>.list{scroll-margin-top:104px}
.warehouse-operations .warehouse-toolbar{border:1px solid #e4dcd1;border-radius:14px;background:#fff;padding:11px 12px;gap:10px}
.warehouse-operations .warehouse-toolbar select{min-height:42px;border:1px solid #dcd4c8;background:#faf9f6;border-radius:10px;padding:8px 12px}
.warehouse-operations .warehouse-title-source{gap:8px;flex-wrap:wrap}
.warehouse-operations .warehouse-items{border-radius:12px;background:#f9f7f3;color:#56504a;padding:9px 11px;margin-top:10px}
.warehouse-inventory-disclosure{scroll-margin-top:100px;border:1px solid #e0d8cd;background:#fff;border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}
.warehouse-inventory-disclosure>summary{display:flex;align-items:center;gap:13px;cursor:pointer;padding:19px 21px;list-style:none;user-select:none}
.warehouse-inventory-disclosure>summary::-webkit-details-marker{display:none}
.warehouse-inventory-summary-icon{display:grid;place-items:center;width:47px;height:47px;border-radius:14px;background:#eee7dc;color:#775633;font-size:23px;font-weight:800}
.warehouse-inventory-summary-copy{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.warehouse-inventory-summary-copy strong{font-size:19px;font-weight:800;letter-spacing:-.028em;color:#302720}
.warehouse-inventory-summary-copy small{font-size:12px;color:#797068;line-height:1.45}
.warehouse-inventory-chevron{font-size:22px;color:#8b7357;transition:transform .2s}
.warehouse-inventory-disclosure[open] .warehouse-inventory-chevron{transform:rotate(180deg)}
.warehouse-inventory-content{border-top:1px solid #e7dfd5;padding:21px 20px 24px}
.warehouse-inventory-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:12px;color:#796d60}
.warehouse-inventory-content .warehouse-stock-section{background:#fbfaf7;border:1px solid #e8e0d7;margin:0 0 20px;padding:17px}
.warehouse-inventory-content .warehouse-stock-tabs{display:flex;flex-wrap:wrap;overflow:visible;gap:7px}
.warehouse-inventory-content .warehouse-stock-tab{font-size:12px;border-radius:12px;min-height:40px;padding:9px 12px}
.warehouse-inventory-content .section-head h2{font-size:18px}
.warehouse-inventory-content #stockMovements{margin-bottom:0}
.warehouse-future-note{display:flex;gap:12px;margin:20px 0 8px;padding:15px 18px;border:1px dashed #d5c7b4;border-radius:17px;background:#f9f5ef;color:#675448}
.warehouse-future-note b{font-size:12px}.warehouse-future-note p{font-size:11px;line-height:1.55;margin:3px 0 0}
.warehouse-future-icon{font-size:20px;color:#9b7c58}

/* Other HUB departments share the same card language without changing their workflows */
.hub-shell .quick-card,.sales-shell .quick-card{border-radius:17px!important;box-shadow:var(--shadow)}
.hub-shell .kpi,.sales-shell .kpi{border-radius:18px}
.hub-shell .product-stock{border-radius:17px}
.sales-topbar,.e-topbar{box-shadow:0 7px 25px rgba(0,0,0,.11)}
.sales-shell,.e-shell{max-width:1230px}

@media(max-width:960px){
 .department-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .warehouse-jump-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 .app-shell{padding:17px 13px 50px}
 .hub-intro{padding:18px!important;border-radius:21px;min-height:144px;gap:12px}
 .hub-intro .hub-main-logo{width:min(100%,230px)!important;max-height:64px!important}
 .hub-logo-wrap .hub-hub-title{font-size:27px!important}
 .hub-intro-copy>p:last-child{font-size:11px!important}
 .hub-version{font-size:9px;padding:6px 9px}
 .hub-today{padding:16px 14px;border-radius:18px}
 .hub-today h2{font-size:19px}
 .today-actions{grid-template-columns:1fr 1fr;gap:8px}
 .today-action{min-height:79px;padding:11px}
 .today-action b{font-size:26px}
 .today-action span{font-size:10px}
 .department-grid{grid-template-columns:1fr;gap:9px;margin-top:12px}
 .department-card,.department-commercial,.department-production,.department-sales{grid-template-columns:52px minmax(0,1fr) 29px!important;gap:12px!important;min-height:114px!important;height:auto!important;padding:17px 14px!important;border-radius:17px!important}
 .department-icon{width:46px!important;height:46px!important;border-radius:13px!important}
 .department-icon svg{width:25px;height:25px}
 .department-copy strong{font-size:20px!important}
 .department-copy small{font-size:8px!important}
 .department-copy em{font-size:10px!important;line-height:1.32!important}
 .department-arrow{width:29px;height:29px}
 .hub-utility{padding:13px}
 .warehouse-welcome{min-height:211px;padding:24px 21px;border-radius:21px;margin-bottom:17px}
 .warehouse-welcome h1{font-size:36px}
 .warehouse-welcome p:not(.eyebrow){font-size:12px;margin:11px 0}
 .warehouse-welcome-art{display:none}
 .warehouse-mode-label{font-size:9px}
 .warehouse-toolbar-head h2{font-size:20px}
 .warehouse-text-link{font-size:10px;padding:8px 9px}
 .warehouse-jump-grid{gap:9px}
 .warehouse-jump-card{padding:13px;min-height:132px;border-radius:16px}
 .warehouse-jump-card strong{font-size:13px}.warehouse-jump-card small{font-size:10px}
 .warehouse-jump-icon{width:34px;height:34px}
 .warehouse-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .warehouse-kpis .kpi{padding:15px}
 .warehouse-inventory-content{padding:13px}
 .warehouse-inventory-disclosure>summary{padding:15px 13px}
 .warehouse-inventory-actions{align-items:flex-start;flex-direction:column}
 .warehouse-inventory-summary-copy strong{font-size:16px}
 .warehouse-inventory-summary-copy small{font-size:10px}
 .warehouse-inventory-content .warehouse-stock-section{padding:12px}
}
@media(max-width:385px){
 .today-actions{grid-template-columns:1fr}
 .warehouse-jump-card{min-height:128px}
 .warehouse-toolbar-head{align-items:flex-start;flex-direction:column}
 .warehouse-welcome h1{font-size:32px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.warehouse-jump-card,.today-action,.department-card{transition:none!important}}

/* Reparto Rete Vendita — functional workspaces retained */
.sales-shell{padding-left:20px;padding-right:20px}
.sales-hero.sales-hero-redesign{border:1px solid #44372c;border-radius:24px;padding:26px 30px;background:linear-gradient(110deg,#29221d,#3b2921);color:#fff;box-shadow:0 13px 29px rgba(34,25,19,.13);margin:20px 0 15px}
.sales-hero.sales-hero-redesign .eyebrow{color:#e0b77c}
.sales-hero.sales-hero-redesign h1{font-family:inherit;font-weight:810;font-size:clamp(32px,4vw,45px);letter-spacing:-.045em;color:#fff}
.sales-hero.sales-hero-redesign .muted{color:#d9cabc;line-height:1.55}
.sales-workspace-nav{background:#fff;border:1px solid #e3dcd2;border-radius:17px;padding:5px;box-shadow:var(--shadow)}
.sales-workspace-tab{border-radius:12px;font-weight:750}
.sales-workspace-tab.active{background:#efe4d5;color:#763f25;border-color:#d6b894}
.sales-context-nav{border-bottom-color:#e2d8cc}
.sales-context-nav .sales-tab{border-radius:10px}
.dashboard-action,.command-card,.network-snapshot,.commercial-pulse,.commercial-command,.pulse-card{border-radius:18px!important;border-color:#e3dcd2!important;box-shadow:var(--shadow)}
.dashboard-action{background:#fff!important;transition:border-color .18s,transform .16s}
.dashboard-action:hover{border-color:#b89a73!important;transform:translateY(-2px)}
.dashboard-action-icon{border-radius:12px!important;background:#f4eadd!important;color:#7d5738!important}
.sales-section-head h2{font-family:inherit;font-weight:810;letter-spacing:-.03em}
@media(max-width:560px){.sales-shell{padding-left:12px;padding-right:12px}.sales-hero.sales-hero-redesign{padding:20px;border-radius:20px}.sales-workspace-nav{padding:3px;gap:3px}.sales-workspace-tab{border-radius:10px}}

/* E-commerce — match the HUB shell while keeping Shopify safeguards */
body:has(.e-shell){background:#f4f3ef}
.e-shell{padding-left:20px;padding-right:20px}
.e-hero{border:1px solid #4d3b2d;background:linear-gradient(110deg,#29221d,#403022);color:#fff;padding:26px 30px;border-radius:24px;box-shadow:0 13px 31px rgba(28,21,16,.13)}
.e-hero h1{font-family:inherit;font-weight:810;letter-spacing:-.045em;font-size:clamp(29px,4vw,45px)}
.e-hero .eyebrow{color:#e8bc7f}.e-hero p{color:#ded0c0;line-height:1.55}
.e-setup-card,.e-panel,.e-control-grid article,.e-list article,.e-kpis article{border-radius:18px;border-color:#e3dbd0;background:#fff;box-shadow:var(--shadow)}
.e-section-head h2,.e-section-head h3{font-family:inherit;font-weight:800;letter-spacing:-.028em}
.e-sync-actions button,.e-tabs button{border-radius:12px;min-height:43px}
.e-tabs{background:#fff;border:1px solid #e4dcd0;border-radius:15px;padding:5px;box-shadow:var(--shadow)}
.e-tabs button.active{background:#eee4d7;color:#714328}
@media(max-width:560px){.e-shell{padding-left:12px;padding-right:12px}.e-hero{border-radius:20px;padding:20px}.e-hero h1{font-size:33px}}

/* Production home and forms: no change to harvest/lot logic */
.hub-shell .hub-rule{border-radius:16px;background:#f6ece0;border:1px solid #dfcdb7;color:#5d4937}
.hub-shell .workflow-strip{gap:7px}
.hub-shell .workflow-strip button{border-radius:999px}
.hub-shell .quick-grid{gap:11px}
.hub-shell .quick-card{background:#fff;border:1px solid #e3dcd3;color:#30251f;text-align:center}
.hub-shell .quick-card b{color:#8b5830}
.hub-shell .quick-card span{font-weight:730}
.hub-shell .quick-card:hover{border-color:#bea27a}
.hub-shell .label-quick{background:#fbf7f1;border-color:#d9c3a4}
.hub-shell .master-card,.hub-shell .run-card-openable{border-radius:18px}
/* Keep the Rete Vendita workspace bar within the viewport on narrow phones. */
.sales-workspace-nav{margin-left:0!important;margin-right:0!important;width:100%;max-width:100%;box-sizing:border-box}

/* 4.34.0 — packaging grouped by product and use (operational inventory) */
.warehouse-packaging-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 15px}
.warehouse-packaging-shortcuts button{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:#fbfaf7;border:1px solid #ded0b9;border-radius:17px;padding:15px 17px;min-height:80px;color:#332923;cursor:pointer;box-shadow:0 3px 13px rgba(34,27,20,.05)}
.warehouse-packaging-shortcuts button:hover,.warehouse-packaging-shortcuts button:focus-visible{border-color:#a98140;background:#faf2e7;outline-offset:2px}
.warehouse-packaging-shortcuts button>span:nth-child(2){display:flex;flex-direction:column;flex:1;gap:5px}
.warehouse-packaging-shortcuts strong{font-size:15px;font-weight:800}
.warehouse-packaging-shortcuts small{font-size:12px;line-height:1.45;color:#746e66}
.warehouse-packaging-shortcuts .shortcut-emoji{background:#efe4d2;color:#a07430;width:43px;height:43px;flex:0 0 43px;border-radius:12px;display:grid;place-items:center;font-size:24px}
.packaging-search{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0 17px}
.packaging-search label{font-weight:750;font-size:12px;color:#605446}
.packaging-search input{flex:1 1 240px;min-width:120px;max-width:500px;background:#fff;border:1px solid #d7cec1;border-radius:12px;min-height:43px;padding:10px 12px;font-size:14px;color:#352d25}
.packaging-search>span{color:#847b70;font-size:12px;white-space:nowrap}
.packaging-grouped-list{display:flex;flex-direction:column;gap:24px;min-width:0}
.packaging-family-group{border:1px solid #e6e1d8;background:#fff;border-radius:18px;padding:15px 15px 17px;min-width:0}
.packaging-family-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid #ece6dc}
.packaging-family-heading h3{font-size:17px;font-weight:800;color:#392d23;letter-spacing:-.025em;margin:0}
.packaging-family-heading p{font-size:12px;color:#81786c;line-height:1.45;margin:4px 0 0}
.packaging-family-count{flex:0 0 auto;border:1px solid #e6d7bf;color:#785832;background:#f7f1e7;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:750;white-space:nowrap}
.packaging-family-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.packaging-family-grid .warehouse-inventory-card{min-width:0;display:flex;flex-direction:column;gap:8px;margin:0}
.packaging-family-grid .warehouse-inventory-card .card-actions{margin-top:auto}
.packaging-family-grid .warehouse-inventory-card .stock-number{font-size:28px}
.stock-provisional{display:block;color:#7b5930;background:#faf2e5;border:1px solid #ecdbc0;padding:5px 8px;border-radius:8px;font-size:11px;font-weight:700;margin:2px auto}
@media(max-width:1000px){.packaging-family-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.warehouse-packaging-shortcuts{grid-template-columns:1fr}.packaging-family-group{padding:13px 11px}.packaging-family-grid{grid-template-columns:1fr}.packaging-family-heading{align-items:flex-start}.packaging-family-heading h3{font-size:16px}.packaging-family-count{font-size:10px}.packaging-search{align-items:stretch}.packaging-search input{flex-basis:100%;max-width:100%}}
