/* Visual reference: calm blue workspace, rounded cards, native system typography. */
:root{--bg:#f6f7fc;--paper:#fff;--ink:#202025;--muted:#50505b;--border:#dfe5ef;--green:#0a9c6c;--mint:#e1f4ee;--yellow:#fff6dc;--shadow:none}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit;box-shadow:none!important}button{border:1.5px solid var(--border);border-radius:18px;min-height:44px;font-weight:650}button:hover{transform:none;filter:brightness(.97)}button:focus-visible,[role=button]:focus-visible{outline:3px solid #1976ff;outline-offset:3px}.primary{background:#1976ff;color:white;border-color:#1976ff}.danger{background:transparent;color:#b5251c;border-color:#b5251c}.ghost{box-shadow:none;background:transparent}.card{border:1px solid var(--border);border-radius:22px;box-shadow:none;background:white}.sidebar{background:#0c2d50;border-right:0;color:white}.sidebar .nav{color:#d4e4fa;border-color:transparent}.sidebar .nav.active{background:#1b4e86;border-color:#416d9b;color:white}.sidebar .workspace,.sidebar .license-card{background:#153d65;border:1px solid #41638a;color:white}.sidebar .nav-label,.sidebar footer,.sidebar .workspace span{color:#c0d5ee}.sidebar .brand-mark{background:#1976ff;border-color:transparent}.mobile-brand{display:none}.pagehead{background:transparent;border:0;box-shadow:none;padding:26px 0;margin:8px 0 15px;display:flex;align-items:center;gap:16px}.pagehead:after{display:none}.pagehead>div{flex:1;min-width:0}.pagehead h1{font-size:32px;letter-spacing:0;margin:0 0 5px}.pagehead p{font-size:15px;font-weight:600;color:var(--muted);margin:0}.pagehead .eyebrow{display:none}.page-logo{width:48px;height:48px;border-radius:14px}.pagehead>button{background:transparent;color:var(--muted);border:1.5px solid var(--border);border-radius:30px}.toolbar{border:0;box-shadow:none;background:transparent;padding:0;gap:14px}.searchbox{background:transparent;border:1px solid #718097;border-radius:12px;padding:12px 14px;min-height:54px}.searchbox input{border:0;background:transparent;min-width:0;padding:0;font-weight:600}.toolbar select{background:transparent;border:1px solid var(--border);border-radius:30px}.catalog-toolbar{display:block}.catalog-filters{display:flex;gap:10px;margin:8px 0}.catalog-filters select{min-width:0;flex:1}.catalog-tabs{display:flex;align-items:center;gap:8px;margin:8px 0}.catalog-tabs button{min-height:36px;padding:7px 16px;background:transparent;border-radius:12px}.catalog-tabs button[aria-pressed=true]{background:#e6dff5}.catalog-tabs>span{margin-left:auto;font-size:13px;font-weight:650}.products-grid{gap:16px}.product-card{overflow:hidden;background:#e8edf7;border:1px solid var(--border);box-shadow:none}.photo{background:#fff;border-bottom:1px solid var(--border);padding:0;height:230px}.photo img{object-fit:contain;width:100%;height:100%;padding:12px}.photo-count-badge,.catalog-photo-position{position:absolute;background:#2d3444;color:#fff;border:0;border-radius:13px;padding:8px;font-size:12px;font-weight:700;top:9px;left:9px;right:auto}.catalog-photo-position{left:auto;top:auto;bottom:9px;right:9px}.product-info{padding:17px}.product-info .eyebrow{font-size:11px!important;letter-spacing:.5px;color:#1976ff}.product-info h3{font-size:18px;line-height:1.4;min-height:0;margin:10px 0}.product-sku{font-size:13px;font-weight:600;color:var(--muted)}.product-info .price{font-size:27px;margin:20px 0 10px;letter-spacing:0}.product-info del{font-size:12px}.product-margin,.product-stock{font-size:13px;font-weight:650;color:#078259;margin:9px 0}.product-info footer{border:0;margin:12px 0 0;padding:0}.product-info .open-detail{font-size:12px}.pill{border:1px solid #7ad4b5;background:#eafff5;color:#078259;box-shadow:none;border-radius:30px;font-weight:650}.pill.warn{border-color:#ffd342;background:#fff8e4;color:#924408}.pill.red{border-color:#eab3ad;background:#fff0ee;color:#ad2c22}.catalog-thumbnails{display:flex;gap:6px;padding:7px 8px 0;overflow:hidden}.catalog-thumbnails img{width:38px;height:38px;border:1px solid var(--border);border-radius:9px;object-fit:contain;background:#fff}.catalog-thumbnails img:first-child{border:2px solid #0c2d50}.demo-watermark{display:none}.demo-banner{border:1px solid #cad7ee;background:#eaf1fd;border-radius:12px;box-shadow:none;font-size:12px}.metric,.metric:nth-child(n){background:white;box-shadow:none;border:1px solid var(--border)}.metric .icon-tile{background:#e7effb;border:0;color:#1976ff}.card-head,.detail-notes,.dialog-foot{border-color:var(--border)}.quick button{background:#e8edf7;border:1px solid var(--border)}.insight{background:#e8edf7}.insight:after{display:none}.dialog-head{background:#202025;color:white;border:0}.dialog-head button{color:white;background:transparent;border:1px solid #fff;border-radius:50%}.dialog-body{background:var(--bg)}dialog{border:1px solid var(--border);box-shadow:0 20px 80px #1e2d3e30;border-radius:22px}.detail-grid{gap:0;border:1px solid var(--border);border-radius:22px;background:white;padding:0 16px}.detail-grid>div,.detail-grid>div:nth-child(2){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);align-items:start;border:0;border-bottom:1px solid #ced7e5;border-radius:0;padding:16px 0;background:transparent;gap:16px;grid-column:1/-1}.detail-grid>div:last-child{border:0}.detail-grid span{font-size:15px;margin:0;color:var(--muted)}.detail-grid strong{font-size:15px;line-height:1.5}.detail-actions{position:static;background:transparent;border:0;display:flex;gap:12px;flex-wrap:wrap;padding:16px 0 0}.detail-actions button{flex:1;border-radius:30px}.detail-title{font-size:28px}.detail-hero h2{font-size:26px;letter-spacing:0}.gallery-stage{background:white;border:1px solid var(--border);border-radius:22px}.gallery-stage>span{background:#303747;color:#fff;border:0;border-radius:12px}.gallery-thumbnails button{background:white;border-color:var(--border);box-shadow:none}.gallery-thumbnails button[aria-pressed=true]{background:white;border-color:#0c2d50;box-shadow:none}.order-articles{display:none}.bottom-note{color:var(--muted)}
@media(max-width:700px){
main{padding:0 16px calc(95px + env(safe-area-inset-bottom));margin:0}.topbar{margin:0 -16px;padding:18px 16px;min-height:88px;background:linear-gradient(110deg,#0c2d50,#174f8f);color:white;border:0;gap:12px}.mobile-brand{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.mobile-brand>img{width:45px;height:45px;flex-shrink:0;border:1px solid #456480;border-radius:12px}.mobile-brand strong{font-size:25px;letter-spacing:.3px}.mobile-brand span{display:block;font-size:13px;color:#c8defa;font-weight:600;margin-top:3px}.topbar .crumb,.topbar .top-actions{display:none}.topbar #menu{display:flex;align-items:center;justify-content:center;width:46px;height:46px;min-height:46px;border:1.5px solid white!important;background:#202633!important;color:white;border-radius:50%;order:2;flex-shrink:0}.mobile-dock{left:0;right:0;bottom:0;border:0;border-radius:0;background:#fff;box-shadow:0 -3px 15px #202b3d04;padding:8px 10px calc(8px + env(safe-area-inset-bottom));gap:7px;min-height:70px}.mobile-dock button{min-height:54px;border-radius:17px;border:1.5px solid transparent;color:#64748b;padding:6px 2px;gap:5px}.mobile-dock button span{font-size:11px;color:#50505b;font-weight:650}.mobile-dock button svg{width:22px;height:22px}.mobile-dock button.active{color:#1976ff;background:#e2edff;border-color:#94bdff}.mobile-dock button.active span{color:#1976ff}.mobile-dock .dock-clients.active{background:#fff0e3;border-color:#ffc694;color:#ff851e}.mobile-dock .dock-orders.active{background:#e0f3ee;border-color:#8cd7be;color:#0a9c6c}.pagehead{display:flex;gap:12px;padding:20px 0;margin:0 0 5px}.page-logo{width:43px;height:43px;border-radius:12px}.pagehead h1{font-size:26px;margin:0 0 4px;letter-spacing:0}.pagehead p{font-size:13px;line-height:1.5}.pagehead>button{font-size:14px;padding:7px 13px;min-height:38px;flex-shrink:0;gap:5px}.pagehead>button svg{width:18px}.toolbar{margin-bottom:12px}.searchbox{min-height:54px;padding:13px;gap:12px;border-radius:11px;width:100%}.searchbox input{font-size:14px;line-height:1.4}.catalog-filters select{font-size:12px;min-height:38px;padding:8px 12px}.catalog-tabs button{font-size:12px;padding:6px 14px}.catalog-tabs>span{font-size:11px}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.photo{height:clamp(150px,42vw,230px);padding:0}.photo img{padding:9px}.product-info{padding:13px 9px}.product-info h3{font-size:16px;line-height:1.4;min-height:0;font-weight:750}.product-info .eyebrow{font-size:10px!important}.product-sku{font-size:12px}.product-info .price{font-size:24px;margin:18px 0 10px}.product-info footer .open-detail{font-size:10px}.product-margin,.product-stock{font-size:12px;line-height:1.5}.product-info .pill{font-size:10px}.product-card{border-radius:20px}.photo-count-badge,.catalog-photo-position{font-size:10px;padding:7px}.contact-list,.order-list{background:transparent;border:0;border-radius:0;overflow:visible!important}.contact-list tbody,.order-list tbody{display:grid;gap:12px}.contact-list tbody tr,.order-list tbody tr{display:grid;gap:5px;padding:17px 15px;background:#e8edf7;border:1px solid var(--border)!important;border-radius:22px;grid-template-columns:minmax(0,1fr) auto}.contact-list td:before,.order-list td:before{display:none!important}.contact-list tbody td:first-child,.order-list tbody td:first-child{padding:0;min-height:0}.contact-list tbody td{grid-column:1;font-size:15px;line-height:1.5}.contact-list tbody td:first-child{font-size:19px;grid-row:1}.contact-list .contact-email{display:none}.contact-list .contact-phone{grid-row:2}.contact-list .contact-city{grid-row:3}.contact-list tbody td:last-child{position:static;grid-column:2;grid-row:1/4;align-self:center;color:#64748b;width:auto;height:auto}.order-list .order-client{grid-column:1/-1;grid-row:1;font-size:20px;display:block;padding-right:100px}.order-list .order-articles{display:block;font-size:14px;font-weight:600;margin-top:37px;line-height:1.5;margin-right:-100px}.order-list .order-reference{grid-row:4;grid-column:1;font-size:11px;color:#50505b}.order-list td:nth-child(3){grid-row:1;grid-column:1;margin-top:28px;font-size:14px;align-self:start}.order-list td:nth-child(4){grid-row:3;grid-column:1/-1;font-size:18px;margin:8px 0;color:#078259}.order-list td:nth-child(4):before{display:inline!important;content:'Totale';font-size:13px;text-transform:none;letter-spacing:0}.order-list td:nth-child(5){grid-row:1;grid-column:2;position:absolute;right:15px;top:20px}.order-list td:last-child{top:auto;bottom:10px;right:10px}.order-list td:last-child button{background:transparent;border:0;width:36px;min-height:36px}.order-list .pill{font-size:11px;padding:8px 10px}.reference-detail{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;overflow:auto;background:var(--bg)}.reference-detail .dialog-head{position:sticky;top:0;z-index:2;min-height:76px;padding:16px;gap:12px}.reference-detail .dialog-head h2{font-size:20px}.reference-detail .dialog-head button{width:42px;height:42px}.reference-detail .dialog-body{padding:18px 16px 30px}.detail-title{font-size:28px;line-height:1.25}.detail-grid{padding:0 16px;grid-template-columns:1fr;border-radius:22px}.detail-grid>div{padding:15px 0;gap:12px}.detail-grid span,.detail-grid strong{font-size:15px}.detail-grid span.pill{font-size:11px}.detail-actions{position:static;padding:14px 0 0;bottom:auto}.detail-actions button{min-height:50px;font-size:15px}.detail-notes{background:white;border:1px solid var(--border);border-radius:20px;padding:15px}.gallery-stage>img{height:260px;padding:10px}.demo-banner{margin:0 0 18px;font-size:11px}.metric{border-width:1px}.sidebar.open{z-index:30}.table-wrap:not(.contact-list):not(.order-list) tbody tr{border-color:var(--border)}.table-wrap:not(.contact-list):not(.order-list) tbody td:last-child button{border-color:var(--border);background:white}.hint{font-size:11px;line-height:1.5}
}
@media(max-width:360px){.mobile-brand strong{font-size:23px}.pagehead h1{font-size:23px}.pagehead>button{font-size:12px;padding:7px 10px}.page-logo{width:38px;height:38px}.product-info h3{font-size:14px}.product-info .price{font-size:22px}.mobile-dock button span{font-size:10px}}
.toolbar .searchbox{display:flex;align-items:center;box-sizing:border-box;min-width:0;max-width:100%;width:100%;flex:1 1 100%}.toolbar .searchbox svg{position:static;width:20px;height:20px;flex-shrink:0;color:#50505b}.toolbar .searchbox input{width:0;min-width:0;flex:1;padding:0;min-height:24px}.product-card:nth-child(n) .photo{background:white}.product-card:nth-child(n){transform:none}
.reference-detail .dialog-head h2{display:flex;align-items:center;gap:12px;font-size:24px;flex:1}.reference-detail .dialog-head h2 img{width:42px;height:42px;border-radius:12px}.reference-detail .dialog-head h2 small{display:block;font-size:12px;margin-top:4px;color:#ced7e5}.reference-detail #close-modal{order:-1;border:0;background:transparent;flex-shrink:0}.reference-detail #close-modal svg{transform:rotate(180deg)}.reference-detail #detail-menu{flex-shrink:0}.product-order{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;margin-top:18px;min-height:52px}.product-order svg{width:22px}.client-summary{display:flex;justify-content:space-between;gap:18px;margin-top:16px;background:#e8edf7;border:1px solid var(--border);border-radius:22px;padding:18px}.client-summary span{display:block;font-size:13px;font-weight:650;color:var(--muted)}.client-summary strong{display:block;font-size:24px;margin-top:8px}.client-summary>div:last-child strong{color:#078259}
@media(max-width:700px){.reference-detail .dialog-body{padding-bottom:calc(105px + env(safe-area-inset-bottom))}.reference-detail .dialog-head h2{font-size:22px}.reference-detail #close-modal{width:24px;padding:0;min-height:40px}.reference-detail .dialog-head h2 img{width:38px;height:38px}.reference-detail .dialog-head{gap:10px}.detail-dock{z-index:4}}
@media(max-width:700px){.topbar{padding:12px 16px;min-height:76px}.pagehead{padding:14px 0;margin-bottom:0}.pagehead>div>p{margin:0}.toolbar .searchbox input::placeholder{opacity:1;color:#50505b}.contact-list+.hint{margin-top:14px}.contact-list tbody td:first-child{line-height:1.4}.contact-list .contact-phone,.contact-list .contact-city{font-weight:600}.detail-hero{margin:14px 0}.detail-grid .product-margin{margin:0}}
button.primary{background:#1976ff;border-color:#1976ff;color:white}.detail-record-card{background:white;border:1px solid var(--border);border-radius:22px;padding:16px}.detail-record-card .detail-title{margin:3px 0 20px}.detail-record-card .detail-grid{padding:0;border:0}.detail-record-card .detail-notes{border:0;border-top:1px solid #ced7e5;border-radius:0;padding:15px 0 0;margin-top:0}.detail-record-card .detail-notes span{font-size:15px;text-transform:none;color:var(--muted)}.detail-record-card .detail-notes p{font-size:15px;font-weight:650}.detail-record-card .detail-grid>div:last-child{border-bottom:1px solid #ced7e5}
@media(max-width:700px){html:has(dialog[open]),body:has(dialog[open]){overflow:hidden}.reference-detail{width:100vw}.reference-detail .detail-dock{left:0;right:0}.reference-detail .dialog-head h2{margin:0}.reference-detail .dialog-head{min-height:76px}}
.pagehead>button.primary{background:transparent;border-color:var(--border);color:var(--muted)}
@media(max-width:700px){.toolbar:not(.catalog-toolbar)>.muted{display:none}.contact-list tbody tr{padding:15px}.contact-list .open-detail{color:#64748b}.contact-list tbody{gap:12px}.detail-record-card .detail-title{font-size:28px}}
@media(max-width:700px){html,dialog{scrollbar-width:none}html::-webkit-scrollbar,dialog::-webkit-scrollbar{display:none}.detail-record-card .detail-notes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px}.detail-record-card .detail-notes p{margin:0}}
.last-order{display:flex;justify-content:space-between;gap:12px;background:#e8edf7;border:1px solid var(--border);border-radius:22px;padding:18px;width:100%;margin-top:14px;text-align:left}.last-order span{font-size:13px;color:var(--muted)}.last-order span strong{display:block;margin-top:5px;color:var(--ink);font-size:17px}.last-order>strong{font-size:20px}.last-order svg{width:18px}
@media(max-width:700px){.order-list td:nth-child(4){flex-direction:row;align-items:center;gap:6px}.order-list td:nth-child(4):before{font-size:18px;color:inherit}.order-list .order-client{padding-right:105px}}
html{background:var(--bg)}.toolbar .searchbox{gap:12px}.sidebar .brand,.sidebar .brand span,.sidebar .workspace strong,.sidebar .license-card strong{color:#fff}.sidebar .brand small{color:#c0d5ee}thead th{background:#e8edf7;color:#50505b}.card-head{background:#e8edf7}
.dashboard-hero{background:#0d2d51;color:#fff;border-radius:28px;padding:26px 28px;margin:16px 0 14px;max-width:100%}.dashboard-hero>span{color:#a2cdff;font-weight:750;font-size:17px}.dashboard-hero>div{display:flex;justify-content:space-between;align-items:center;gap:20px}.dashboard-hero h1{color:#fff;font-size:34px;line-height:1.25;margin:14px 0}.dashboard-hero img{width:86px;height:86px;border-radius:23px}.dashboard-hero p{color:#c2d4e9;font-weight:650;max-width:330px;margin:0;font-size:16px}
.sales-card,.stock-chart-card{padding:24px;margin:14px 0;border-radius:28px;background:white}.sales-card h2,.stock-chart-card h2{font-size:27px;margin:18px 0 12px}.sales-card>p,.stock-chart-card>p{font-size:17px;font-weight:600;color:#50505b;line-height:1.55}.sales-caption{display:flex;justify-content:space-between;gap:12px;margin:28px 0 20px;font-size:12px;text-transform:uppercase;font-weight:700;color:#50505b}.sales-bars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.sales-month{text-align:center;min-width:0}.sales-bar-space{height:132px;display:flex;align-items:flex-end}.sales-bar{width:100%;border:3px solid #111;border-radius:15px;background:#1976ff;min-height:8px}.sales-bar.current{background:#ff8b19}.sales-month>span{display:block;margin-top:10px;text-transform:capitalize;font-weight:700;color:#50505b}.sales-month small{display:block;font-size:10px;color:#596476;margin-top:5px}.dashboard-metrics .card{background:white;min-height:145px}.dashboard-metrics .metric-top{font-size:14px;text-transform:uppercase}.dashboard-metrics .metric:nth-child(2) .value{color:#0ca573}.dashboard-metrics .value{font-size:27px}.stock-chart-card canvas{width:100%;height:240px;display:block}.stock-chart-card details{margin:12px 0;font-size:14px}.stock-chart-card table{width:100%;margin-top:12px}.stock-chart-card .hint{font-size:13px;font-weight:400}.trial-banner{display:flex;gap:8px;flex-wrap:wrap}.settings-card>#clear-trial{margin-top:18px}.settings-card form+#clear-trial{margin-top:24px}
@media(min-width:1000px){.dashboard-hero h1{font-size:42px}.sales-bar-space{height:190px}.sales-bars{gap:22px}.sales-month small{font-size:13px}.dashboard-metrics{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.dashboard-hero{margin-top:16px;padding:22px 20px}.dashboard-hero h1{font-size:29px}.dashboard-hero img{width:74px;height:74px}.dashboard-hero p{font-size:14px;max-width:245px}.sales-card,.stock-chart-card{padding:20px 18px}.sales-card h2,.stock-chart-card h2{font-size:25px}.sales-card>p{font-size:17px}.sales-month>span{font-size:12px}.sales-caption{font-size:10px}.sales-bars{gap:9px}.sales-bar{border-width:3px;border-radius:13px}.dashboard-metrics{gap:12px}.dashboard-metrics .card{padding:18px 14px}.dashboard-metrics .metric-top{font-size:11px}.dashboard-metrics .value{font-size:22px}.dashboard-metrics .note{font-size:11px}.dashboard-hero+.demo-banner{margin-top:0}}

@media(max-width:700px){.dashboard-hero{padding:20px}.dashboard-hero>span{font-size:14px;line-height:18px}.dashboard-hero h1{font-size:27px;line-height:1.15;margin:6px 0}.dashboard-hero img{width:72px;height:72px}.dashboard-hero p{font-size:13px;line-height:18px}.sales-card .eyebrow,.stock-chart-card .eyebrow{font-size:12px;letter-spacing:.03em}.sales-card h2{margin:15px 0 12px}.sales-card>p{margin:0 0 22px}.sales-caption{margin:24px 0 18px}.sales-bar-space{height:112px}}

@media(max-width:700px){.sales-bar-space{height:92px}.sales-caption{margin-top:18px}.sales-card{padding-top:18px;padding-bottom:18px}}

.sales-card .eyebrow,.stock-chart-card .eyebrow{color:#50505b}.dashboard-metrics .metric-top .icon-tile{display:none}.dashboard-metrics .value{margin:8px 0 6px}@media(max-width:700px){.sales-month small{display:none}.dashboard-metrics .metric-top{min-height:16px}.dashboard-metrics .metric{min-height:135px}}

.brand-mark{background:transparent!important;padding:0!important;border:0!important}.brand-mark img{width:100%;height:100%;object-fit:contain;border-radius:12px}.stock-chart-card canvas{scroll-margin-bottom:100px}
