/* Anteprima: superfici neutre come nel mockup. */
:root{--bg:#fff;--ink:#17213b;--muted:#697180;--line:#dedfe3;--surface:#fff;--surface-soft:#f7f7f8;--table-head:#eff0f2;--row-base:#fff;--row-alternate:#f3f3f4;--row-hover:#e9eaec;--row-selected:#e0e8ff;--demo-height:34px}
body,main,.content{background:#fff}body{color:#17213b;font-size:12px}.content{padding:20px 22px;max-width:none}.page-header{margin-bottom:10px}.page-header h1{font-size:23px;color:#17213b;letter-spacing:-.6px}.page-header .actions{gap:7px}.button{min-height:29px;padding:5px 10px;border-color:#d9dde5;border-radius:4px;font-size:10.5px;color:#293a5c;background:#fff;box-shadow:none}.button:hover{background:#f3f3f5;border-color:#bac2d1}.button.primary{color:#fff;background:#2458ed;border-color:#2458ed;box-shadow:none}.button.primary:hover{background:#1947d0}.sidebar{top:var(--demo-height);background:#fff;border-right-color:#dedfe4}.navitem{color:#536076}.navlabel{color:#29344b}.navgroup{border-color:#e5e5e8}.navitem:hover{background:#f5f5f6}.navitem.active,.navitem.active:hover{background:#f0f1f3;color:#2458ed}.brand{color:#192238}.avatar{background:#eceef2;color:#536076}.iconbutton{border-color:#e0e1e5;color:#657085}.stock-tabs{gap:16px;margin-bottom:9px;border-bottom:1px solid #e5e5e9}.stock-tabs a{padding:8px 3px 9px;border-radius:0;font-size:11px;color:#3c4964;gap:6px}.stock-tabs a.active{background:transparent;color:#2458ed;box-shadow:inset 0 -2px #2458ed}.stock-tabs small{font-size:9px;line-height:16px;padding:0 4px;border-radius:3px;background:#eceef2;color:#536076;min-width:17px;text-align:center}.stock-tabs a.active small{background:#e5ebff;color:#2458ed}.inventory{border:1px solid #dedfe5;border-radius:5px;box-shadow:0 2px 7px #00000005;overflow:visible}.toolbar{display:flex;align-items:center;gap:8px;padding:10px;background:#fff;border-bottom:1px solid #e5e6eb;position:relative;flex-wrap:nowrap}.toolbar .search{flex:0 1 280px;min-width:170px;height:29px;min-height:29px;padding:5px 9px;background:#fff;border-color:#d9dde5;font-size:11px}.toolbar .channel-filter{width:155px;height:29px;min-height:29px;padding:4px 7px;font-size:10.5px;border-color:#d9dde5;background:#fff}.toolbar .advanced{flex:none}.toolbar .advanced>summary{display:flex;gap:8px;align-items:center;padding:5px 10px;margin:0;font-size:10.5px;list-style:none;color:#293a5c}.toolbar-end{margin-left:auto;display:flex;align-items:center;gap:7px}.toolbar .apply-search{padding:5px 11px}.advanced-panel{position:absolute;top:calc(100% - 1px);left:0;right:0;z-index:15;background:#fff;border:1px solid #d7dce5;border-radius:0 0 6px 6px;box-shadow:0 9px 18px #17213b15;padding:17px;max-height:65vh;overflow:auto}.advanced-panel h3{margin:0 0 16px;font-size:13px}.advanced[open] .formgrid{padding:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 17px}.advanced fieldset{border:0;padding:0;margin:0;min-width:0}.advanced legend{font-size:10px;font-weight:600;color:#596272;margin-bottom:7px}.advanced .range-fields label{font-size:9px;font-weight:400}.advanced .field label{font-size:10px;color:#596272}.advanced input,.advanced select{min-height:30px;padding:5px 8px;border-color:#d9dde5;font-size:11px;background:#fff}.advanced-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e5e6eb;padding-top:13px;margin-top:16px}.active-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 10px;background:#fff;border-bottom:1px solid #e4e5e9;font-size:10px}.active-filters>span{color:#787f8d;margin-right:4px}.filter-chip{display:inline-flex;align-items:center;gap:8px;background:#f2f3f5;border:1px solid #dce0e6;border-radius:4px;padding:4px 7px;font-size:10px;color:#34435f;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filter-chip:hover{border-color:#9aa9c4}.filter-chip>span{font-size:14px;color:#6b768b}.tablewrap{overflow-x:auto;border-radius:0;scrollbar-width:thin;scrollbar-color:#cbd0d8 #f8f8f9}.stock-table{border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums}.stock-table th{background:#eff0f2;color:#3b465c;text-transform:none;font-size:10.5px;font-weight:600;letter-spacing:0;padding:9px 8px;border-top:0;border-bottom:1px solid #dddfe5;border-right:1px solid #e4e5e9;white-space:nowrap}.stock-table .column-filters td{background:#f7f7f8;padding:5px;border-bottom:1px solid #dddfe5;border-right:1px solid #e4e5e9;height:35px}.stock-table tbody td{height:36px;padding:8px;font-size:11.5px;line-height:1.35;color:#23304a;border-right:1px solid #e8e9ec;border-bottom:1px solid #e5e6ea}.stock-table tbody tr:nth-child(odd)>td{background:#fff}.stock-table tbody tr:nth-child(even)>td{background:#f3f3f4}.stock-table tbody tr[data-href]:hover>td,.stock-table tbody tr[data-href]:focus-within>td{background:#e9eaec}.stock-table tbody tr.selected>td,.stock-table tbody tr.selected:hover>td{background:#e0e8ff;border-bottom-color:#cbd7fa}.stock-table tbody tr.selected>td:first-child{box-shadow:inset 3px 0 #2458ed}.stock-table [data-column=model]{min-width:125px}.stock-table [data-column=plate]{min-width:90px}.stock-table [data-column=brand]{min-width:78px}.stock-table [data-column=registration]{min-width:90px}.stock-table [data-column=mileage]{min-width:90px}.stock-table [data-column=sale_price]{min-width:105px}.stock-table [data-column=status]{min-width:110px}.stock-table [data-column=depot]{min-width:100px}.stock-table [data-column=age]{min-width:95px}.stock-table [data-column=fuel]{min-width:100px}.stock-table [data-column=interior]{min-width:85px}.stock-table tbody [data-column=sale_price] strong{font-weight:600}.plate,.stock-table .plate{color:#253653;font-weight:550;font-size:11px;letter-spacing:0}.old-stock{color:#bc6b25;background:transparent;border:0;font-size:11px;padding:0;font-weight:500}.badge{font-size:9.5px;font-weight:500;padding:4px 7px;border-radius:5px;border:0;background:#d9f4df;color:#2f7545;white-space:nowrap}.badge.riservato{background:#dce7ff;border:0;color:#2a59b2}.badge.ripristino{background:#ffebd1;border:0;color:#9d651f}.badge.venduto{background:#eceef1;border:0;color:#667183}.pagination{padding:12px 10px;background:#fff;border-top:0;font-size:10.5px;color:#5f6980;gap:10px}.table-hint{color:#81899b;font-size:10px;margin-left:10px}.page-number{display:inline-grid;place-items:center;border-radius:4px;min-width:26px;height:26px;background:#2458ed;color:white!important}.filter-popover{min-width:68px;max-width:160px;position:static;text-align:left;font-size:10px}.filter-popover>summary{display:flex;align-items:center;justify-content:space-between;gap:5px;list-style:none;min-height:25px;height:25px;background:#fff;border:1px solid #dce0e7;border-radius:3px;padding:3px 6px;color:#7a8497;white-space:nowrap}.filter-popover summary::-webkit-details-marker,.advanced summary::-webkit-details-marker,.column-picker summary::-webkit-details-marker{display:none}.filter-popover>summary>span:first-child{max-width:110px;overflow:hidden;text-overflow:ellipsis}.filter-chevron{color:#8893a6;font-size:11px}.filter-popover.has-filter>summary{border-color:#a7baf0;color:#2458ed;background:#fff}.filter-popover[open]>summary{border-color:#849fe6}.filter-panel{position:fixed;z-index:70;background:#fff;border:1px solid #d6dce7;border-radius:6px;box-shadow:0 8px 24px #17213b24;padding:12px;text-align:left;white-space:normal;overflow-y:auto}.filter-panel-title{color:#2b3d5e;font-size:12px;font-weight:650;padding-bottom:10px}.filter-panel .filter-search{height:30px;min-height:30px;width:100%;font-size:11px;padding:5px 8px;border:1px solid #dce0e7;margin-bottom:7px;background:#fff}.filter-choice-list{max-height:185px;overflow-y:auto;scrollbar-width:thin}.filter-choice{display:flex;align-items:center;gap:8px;padding:7px 5px;margin:0;color:#364660;font-size:11px;font-weight:400;border-radius:3px}.filter-choice:hover{background:#f3f4f6}.filter-choice input{width:14px!important;height:14px!important;min-height:0!important;min-width:0!important;margin:0;accent-color:#2458ed}.filter-choice>span{flex:1;overflow-wrap:anywhere}.filter-choice small{font-size:10px;color:#8992a3;margin:0}.filter-no-options,.filter-no-match{font-size:11px;color:#818a9b;padding:5px}.filter-panel-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eaecf1;padding-top:10px;margin-top:9px;gap:10px}.filter-panel-footer .textlink{border:0;background:none;padding:4px 0;font-size:10px;color:#6e7b95}.filter-panel-footer .button{font-size:10px;min-height:27px;padding:4px 10px}.filter-panel .range-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.range-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.filter-panel .range-fields input{width:100%!important;max-width:none!important;min-width:0!important;height:31px!important;min-height:31px!important;padding:5px;font-size:11px;border:1px solid #dce0e7}.range-fields label{font-size:10px;color:#788398;font-weight:400}.filter-panel .field{min-width:0}.column-picker .popover{position:absolute;top:34px;min-width:190px;border-color:#d6dce7;box-shadow:0 7px 22px #17213b20;border-radius:5px;z-index:20}.column-picker label{font-size:11px;font-weight:400}.empty{padding:42px 20px;background:#fff}.drawer,.drawer-header,.drawer-tabs,.drawer-footer{background:#fff}.drawer{top:var(--demo-height);box-shadow:-6px 0 24px #00000020;border-left-color:#d8dce4}.drawer-backdrop{top:var(--demo-height);background:#1e253526;backdrop-filter:none}.drawer-header{padding:20px 25px 16px;border-bottom-color:#e6e7eb}.drawer-header h2{font-size:23px;color:#17213b}.drawer-header p{color:#687387}.drawer-tabs{gap:23px;border-bottom-color:#e0e3e9}.drawer-tabs button{font-size:11px;padding:13px 0 11px;color:#53617a}.drawer-tabs button.active{color:#2458ed;box-shadow:inset 0 -2px #2458ed}.section-title{font-size:12px;color:#273651;margin-bottom:15px;border-bottom-color:#e8e9ee}.details{gap:15px 25px}.details>div{padding-bottom:10px;border-color:#ececf0}.details dt{color:#747f94;font-size:10.5px;margin-bottom:5px}.details dd{font-size:12px;color:#23304a}.drawer input,.drawer select,.drawer textarea{background:#fafafa;border-color:#dce0e7}.drawer .field label{color:#637087}.drawer-footer{border-top-color:#e3e5eb;padding:13px 25px}.panel,.login{border-color:#e0e2e7;box-shadow:none}.authmain{background:#fafafa}.tips{background:#f7f7f8}.help,.muted{color:#7b8496}.demo-banner{height:var(--demo-height);position:sticky;top:0;z-index:50;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 20px;background:#fafafa;border-bottom:1px solid #e3e4e8;color:#858b98;font-size:10px}.demo-banner b{display:inline-block;background:#efeff1;color:#697181;border:1px solid #e0e1e5;border-radius:3px;padding:2px 5px;letter-spacing:.7px;font-size:8px;margin-right:8px}.demo-banner>div{display:flex;align-items:center;gap:8px}.demo-banner label{color:#7b8496;margin:0;font-size:9px}.demo-banner select{width:215px;min-height:24px;height:24px;padding:2px 6px;background:#fff;color:#56627b;border:1px solid #dce0e7;font-size:9px}.demo-banner button{border:0;color:#7b8496;background:none;padding:3px 0 3px 7px;font-size:9px}.drawer-open .demo-banner{position:fixed;left:0;right:0}.drawer-open main{padding-top:var(--demo-height)}
@media(min-width:1800px){.content{padding:22px 28px}.stock-table tbody td{height:37px;padding:8px 9px;font-size:12px}.stock-table th{font-size:11px}}
@media(max-width:1100px){.toolbar{flex-wrap:wrap}.toolbar .search{flex:1;flex-basis:200px}.toolbar-end{margin-left:auto}.stock-table{min-width:1150px}.advanced[open] .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:18px 16px}}
@media(max-width:700px){:root{--demo-height:60px}.content{padding:16px 10px}.demo-banner{align-items:flex-start;flex-direction:column;justify-content:center;gap:3px;padding:6px 10px;font-size:9px}.demo-banner b{font-size:7px}.demo-banner select{width:200px;font-size:9px}.demo-banner>div{gap:7px}.demo-banner button{font-size:8px}.page-header{gap:10px}.page-header h1{font-size:21px}.toolbar{gap:6px;padding:8px}.toolbar .search{flex-basis:100%;width:100%}.toolbar .channel-filter{width:145px}.toolbar-end{margin-left:0}.toolbar .apply-search{min-width:44px}.toolbar .button{padding:5px 8px;font-size:10px}.stock-tabs a{font-size:10px}.stock-tabs{gap:12px}.table-hint{display:none}.advanced-panel{padding:13px;max-height:65vh}.advanced[open] .formgrid{grid-template-columns:1fr}.filter-panel{max-width:calc(100vw - 24px)}.filter-choice{padding:9px 5px;font-size:12px}.filter-choice input{height:17px!important;width:17px!important}.filter-panel-footer .button{min-height:34px}.drawer-header{padding:18px 20px}.drawer-header h2{font-size:22px}.drawer-tabs{gap:17px}.drawer-footer{padding:12px 20px}.filter-chip{font-size:9px;max-width:200px}.stock-table tbody td{height:37px}}
