:root{--bg:#f5f5ef;--paper:#fff;--ink:#242b26;--muted:#82867e;--line:#e8eae2;--orange:#df6f35;--orange-soft:#fff0e5;--green:#386746;--green-soft:#eaf2e8;--yellow:#a97b19;--yellow-soft:#fbf2d8;--red:#b95643;--red-soft:#fceee9;--nav:#202721;--radius:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 "Segoe UI","Microsoft YaHei","PingFang SC",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #edb38e;outline-offset:2px}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--nav);color:#a8b0a5;padding:31px 20px 22px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;color:#f5f6ec;margin:0 9px 44px}.brand img{width:43px;height:43px}.brand strong{font-size:25px;letter-spacing:2px;line-height:1.2}.brand strong span{font-size:10px;letter-spacing:2px;color:#a1ab9d;margin-left:8px}.brand small{display:block;font-size:10px;letter-spacing:1.5px;color:#9aa593;margin-top:5px}.nav-caption{font-size:10px;letter-spacing:3px;color:#778172;margin:0 16px 15px}nav{display:grid;gap:7px}.nav-item{display:flex;align-items:center;gap:13px;padding:13px 16px;border-radius:9px;color:#a8b0a5;transition:background .15s}.nav-item:hover{background:#2c342b;color:#fff}.nav-item.active{background:#e07841;color:#fff8ec;box-shadow:0 4px 12px #0001}.nav-item .nav-count{margin-left:auto;background:#ffffff20;border-radius:5px;padding:0 6px;font-size:11px}.nav-item:nth-last-child(1){margin-top:21px}.sidebar-foot{margin-top:auto;border-top:1px solid #3c4438;padding:24px 8px 0;display:flex;gap:10px;align-items:center;font-size:11px;color:#d0d4c7}.sidebar-foot small{display:block;color:#7f8979;font-size:10px}.online-dot{width:6px;height:6px;border-radius:50%;background:#8ba976;box-shadow:0 0 0 4px #8ba97616}.version{margin-left:auto;font-size:9px;color:#87927f}.main-shell{margin-left:238px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:79px;background:#fafbf6;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:22px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{margin:0 12px;color:#c4c7bd}.breadcrumb strong{font-weight:500;color:#545d51}.demo-badge{color:#9b7953;border:1px solid #e3d6c3;background:#fcf5e9;border-radius:5px;padding:3px 8px;font-size:10px;letter-spacing:.5px}.store-scope{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted)}.store-scope select{border:0;background:transparent;font-size:12px;font-weight:600;color:#4c5748;max-width:190px;padding:6px}.avatar{width:32px;height:32px;border-radius:50%;background:#e9eddf;color:#687459;font-size:11px;display:grid;place-items:center;border:3px solid #fff}.mobile-menu{display:none!important}main{padding:32px 38px 40px;max-width:1800px;width:100%;margin:auto;flex:1;min-width:0}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:2px;color:#929883;text-transform:uppercase}h1{font-size:27px;line-height:1.35;font-weight:650;letter-spacing:-.7px;margin:6px 0 7px}h2{font-size:17px;font-weight:600;margin:0}h3{font-size:14px;margin:0;font-weight:600}.subtext{font-size:12px;color:var(--muted);margin:0}.head-actions{display:flex;gap:9px;flex-wrap:wrap}.button{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 16px;border-radius:7px;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;transition:background .15s}.button.primary{background:var(--ink);color:#fff}.button.primary:hover{background:#3e493c}.button.orange{background:var(--orange);color:#fff}.button.orange:hover{background:#c9612d}.button.secondary{background:#fff;border-color:#e0e4d8;color:#58614e}.button.secondary:hover{background:#f0f3e9}.button.small{padding:6px 10px;font-size:11px;border-radius:5px}.button .icon{width:15px;height:15px}.icon-button{border:0;background:transparent;padding:7px;display:inline-grid;place-items:center;color:#7c8476;font-size:24px;border-radius:6px}.icon-button:hover{background:#ecf0e4}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:25px}.metric-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px 21px;position:relative;overflow:hidden}.metric-top{display:flex;justify-content:space-between;align-items:center;color:#79836e;font-size:11px}.metric-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#f0f3e9;color:#6c7d60}.metric-icon .icon{width:17px;height:17px}.metric-card:nth-child(2) .metric-icon{background:#fcf0db;color:#b18b33}.metric-card:nth-child(3) .metric-icon{background:#fae9df;color:#ce794f}.metric-card:nth-child(4) .metric-icon{background:#eaf0e7;color:#5a7c54}.metric-number{font-size:34px;font-weight:650;letter-spacing:-1px;margin:6px 0 5px;font-variant-numeric:tabular-nums;line-height:1.5}.metric-number small{font-size:12px;color:#909685;letter-spacing:0;margin-left:7px;font-weight:400}.metric-note{font-size:10px;color:#959b8a;display:flex;align-items:center;gap:5px}.metric-note .mini-dot{width:5px;height:5px;border-radius:50%;background:#6c8960}.metric-note.warn{color:#a98638}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:23px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);min-width:0;overflow:hidden}.panel-head{padding:21px 23px 17px;display:flex;justify-content:space-between;gap:15px;align-items:center}.panel-head p{margin:3px 0 0;color:#9b9f92;font-size:10px}.text-link{border:0;background:transparent;color:#81916e;font-size:11px;padding:0;display:inline-flex;align-items:center;gap:5px}.text-link:hover{color:var(--orange)}.text-link .icon{width:13px;height:13px}.panel-body{padding:0 23px 22px}.section-gap{margin-top:23px}.inventory-health{display:flex;align-items:center;gap:25px;padding:8px 0 18px}.donut{width:145px;height:145px;flex-shrink:0}.donut text.big{font-size:29px;font-weight:600;fill:#364432}.donut text.small{font-size:9px;fill:#979f8d}.health-legend{flex:1;min-width:0}.legend-row{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px dashed #eff0e9;font-size:11px;color:#89907d}.legend-row:last-child{border:0}.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}.dot.green{background:#789268}.dot.yellow{background:#d2b466}.dot.red{background:#cf8063}.legend-row strong{margin-left:auto;font-size:15px;font-weight:600;color:#55624b}.legend-row small{font-size:10px;width:28px;text-align:right;color:#a7ad9d}.hint-strip{background:#f6f7f0;color:#929984;border-radius:6px;padding:9px 12px;font-size:10px;display:flex;gap:7px;align-items:center}.hint-strip .icon{width:13px;height:13px}.welcome-card{background:#e8ecdf;border:1px solid #e0e5d5;border-radius:var(--radius);padding:24px;position:relative;min-height:152px;overflow:hidden}.welcome-card h2{font-size:21px;color:#506044;margin:6px 0}.welcome-card p{max-width:73%;color:#89967a;font-size:11px;margin:0}.welcome-card .decor{position:absolute;right:8px;bottom:-12px;width:150px;height:140px;opacity:.52}.welcome-card .eyebrow{color:#83946e}.task-list{padding:0 23px 8px}.task-row{display:flex;gap:13px;padding:14px 0;border-bottom:1px solid #f0f1eb;align-items:flex-start}.task-row:last-child{border:0}.task-icon{background:#f4f2e7;color:#ad9564;border-radius:8px;width:32px;height:32px;display:grid;place-items:center;flex-shrink:0}.task-icon .icon{width:16px;height:16px}.task-row .grow{flex:1;min-width:0}.task-row strong{font-size:12px;font-weight:500}.task-row p{font-size:10px;color:#9aa08e;margin:3px 0 0}.task-row .when{font-size:10px;color:#a98152;white-space:nowrap;padding-top:3px}.task-row .badge{font-size:9px}.expense-mini{display:grid;gap:13px;padding:4px 0}.expense-line{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#859177}.expense-line strong{font-size:12px;color:#56634d;font-variant-numeric:tabular-nums}.app-footer{display:flex;justify-content:space-between;padding:0 38px 22px;color:#a2a897;font-size:9px;gap:20px}.table-wrap{overflow:auto;width:100%}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:11px}th{background:#fafbf7;color:#929a87;font-size:10px;font-weight:500;padding:12px 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:14px 18px;border-bottom:1px solid #eff1e9;color:#6e7961;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fdfdf9}td strong{color:#46543e;font-size:12px;font-weight:550;display:block}td small{font-size:10px;color:#a0a592;display:block;margin-top:3px}.table-wrap.compact td{padding:13px 23px}.table-wrap.compact th{padding-left:23px;padding-right:23px}.table-actions{display:flex;gap:5px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:3px 7px;font-size:10px;line-height:1.5;white-space:nowrap}.badge.green{background:var(--green-soft);color:#608057}.badge.yellow{background:var(--yellow-soft);color:#a58a40}.badge.red{background:var(--red-soft);color:#bb765e}.badge.gray{background:#f0f2ed;color:#8b9680}.badge.orange{background:var(--orange-soft);color:#b47852}.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;padding:18px 22px;border-bottom:1px solid var(--line);background:#fff}.filter-field{display:flex;flex-direction:column;gap:5px;min-width:108px;flex:1}.filter-field.wide{min-width:190px;flex:1.7}.filter-field label{font-size:10px;color:#969e8b}.filters input,.filters select{width:100%;height:35px;border:1px solid #e7eade;background:#fcfdf9;border-radius:6px;padding:6px 9px;font-size:11px;color:#6a765e;min-width:0}.filters .button{height:35px}.table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 22px}.table-toolbar p{font-size:11px;color:#9aa28e;margin:0}.table-toolbar p strong{color:#647857;margin:0 4px;font-weight:600}.tabs{display:inline-flex;gap:3px;border-radius:7px;padding:3px;background:#edf0e6}.tab{border:0;background:transparent;padding:6px 14px;font-size:11px;border-radius:5px;color:#8d977f}.tab.active{background:#fff;color:#4d6140;box-shadow:0 1px 4px #00000009}.pagination{padding:15px 22px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:10px;color:#9aa28d}.pagination div{display:flex;gap:7px;align-items:center}.empty{text-align:center;padding:50px 20px;color:#a0aa92}.empty .icon{width:33px;height:33px;margin-bottom:10px;color:#bcc5ae}.empty h3{color:#7a896a;font-weight:500}.empty p{font-size:11px}.split-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.2fr);gap:23px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:11px;color:#7d8870}.field label .required{color:#ce8358;margin-left:3px}.field input,.field select,.field textarea{width:100%;border:1px solid #e0e5d7;border-radius:6px;background:#fcfdf9;color:#45513e;padding:9px 11px;min-height:39px;outline-offset:0;min-width:0;font-size:12px}.field textarea{resize:vertical;min-height:77px}.field input::placeholder,.field textarea::placeholder{color:#b2b9a7}.field small{font-size:10px;line-height:1.6;color:#a0a88f}.field.checkbox{flex-direction:row;align-items:center;gap:10px;grid-column:1/-1}.field.checkbox input{width:16px;height:16px;min-height:0;accent-color:#d47745}.field.checkbox label{font-size:11px}.form-hint{padding:12px 14px;background:#f4f6ed;color:#8a9778;border-radius:7px;font-size:11px;margin-bottom:20px}.form-submit{margin-top:23px;display:flex;justify-content:flex-end}.query-result{padding:25px}.query-state{display:flex;align-items:center;gap:13px;margin-bottom:23px}.query-state .status-icon{width:45px;height:45px;border-radius:50%;background:#f0f4e9;color:#728866;display:grid;place-items:center}.query-state h2{font-size:20px}.query-state p{font-size:10px;color:#a0aa90;margin:3px 0 0}.reason-list{list-style:none;padding:0;margin:0 0 23px}.reason-list li{padding:10px 0;border-bottom:1px solid #f0f1e9;color:#839073;font-size:12px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;border-top:1px solid var(--line);padding-top:20px}.detail-grid dt{font-size:10px;color:#a6ae9a}.detail-grid dd{font-size:12px;color:#5f7050;margin:4px 0 0;overflow-wrap:anywhere}.rule-basis{font-size:11px;color:#9b9c7f;background:#faf7ea;padding:13px 15px;margin-top:22px;border-radius:7px}.customer-list{display:grid;gap:17px}.customer-head{display:flex;justify-content:space-between;align-items:center;padding:19px 22px;border-bottom:1px solid var(--line)}.customer-title{display:flex;align-items:center;gap:12px}.customer-avatar{width:35px;height:35px;background:#edf1e3;display:grid;place-items:center;color:#839469;border-radius:10px;font-size:13px}.customer-title h3{color:#58694b}.customer-title p{margin:2px 0 0;color:#a1a88f;font-size:10px}.customer-vehicles{padding:17px 22px;display:grid;gap:13px}.vehicle-card{border:1px solid #eaf0df;border-radius:9px;padding:16px 17px;background:#fdfef9}.vehicle-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.vehicle-card h3{font-size:12px;color:#6b7c59}.vehicle-card .detail-grid{border:0;margin:10px 0 14px;padding:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.vehicle-card .detail-grid dt{font-size:9px}.vehicle-card .detail-grid dd{font-size:10px}.vehicle-actions{display:flex;gap:8px;flex-wrap:wrap}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px}.settings-list{list-style:none;padding:0;margin:0}.settings-list li{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #f0f1e8;font-size:12px;color:#82916d}.settings-list li:last-child{border:0}.rule-note{font-size:11px;color:#a2a88f}.summary-grid{padding:0 22px 18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.summary-tile{background:#f6f8ef;border-radius:8px;padding:13px;color:#8f9a7f;font-size:10px}.summary-tile strong{display:block;font-size:18px;color:#637c4e;margin-top:3px;font-weight:600}.expense-totals{display:flex;gap:15px;margin-bottom:20px;align-items:stretch}.expense-total{background:#e8ecdf;padding:17px 23px;border-radius:10px;min-width:230px}.expense-total span{font-size:10px;color:#8c9b78}.expense-total strong{display:block;font-size:28px;color:#536e40;font-weight:600}.expense-categories{display:flex;gap:12px;align-items:center;flex-wrap:wrap;flex:1;background:white;border:1px solid var(--line);border-radius:10px;padding:14px 20px}.expense-categories span{font-size:10px;color:#9ca68c;border-right:1px solid var(--line);padding-right:15px}.expense-categories strong{display:block;color:#6b7d56;font-size:13px;margin-top:3px;font-weight:500}.loading{padding:120px 20px;text-align:center;color:#91a07d}.error-card{padding:35px;background:#fdf1e9;border:1px solid #f4dfcf;color:#a47758;border-radius:12px}.nowrap{white-space:nowrap}.wrap{white-space:normal;max-width:260px;min-width:150px;overflow-wrap:anywhere}.muted{color:#a1aa92}.orange-text{color:var(--orange)}dialog{border:1px solid #e0e4d5;border-radius:16px;padding:0;width:min(660px,calc(100vw - 32px));max-height:90vh;color:var(--ink);box-shadow:0 24px 100px #10200d38;background:#fff}dialog::backdrop{background:#17211275;backdrop-filter:blur(3px)}.modal-head{padding:23px 26px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:white;z-index:1}.modal-head h2{font-size:20px;margin-top:5px}.modal-body{padding:23px 26px;overflow:auto;max-height:calc(90vh - 170px)}.modal-foot{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:16px 26px;background:#fafbf7}.form-error{margin:0 26px 16px;padding:10px 13px;background:#fff0e8;color:#b56b49;font-size:12px;border-radius:6px}.toasts{position:fixed;right:25px;bottom:25px;display:grid;gap:9px;z-index:100}.toast{padding:12px 20px;background:#2e4028;color:#f4f7ed;border:1px solid #546a48;border-radius:9px;box-shadow:0 8px 30px #1e351c22;font-size:12px;max-width:min(420px,90vw)}.toast.error{background:#854d39;border-color:#a77559}.history-section+ .history-section{margin-top:23px}.history-section h3{margin-bottom:10px}.history-item{padding:10px 12px;background:#f6f8ef;border-radius:7px;margin-top:7px;font-size:11px;color:#7e9169;overflow-wrap:anywhere}.history-item small{display:block;color:#a1ad93;margin-top:3px}[hidden]{display:none!important}
@media(min-width:1500px){main{padding-top:40px}.dashboard-grid{grid-template-columns:minmax(0,1.6fr) minmax(350px,1fr)}.metric-card{padding:23px 25px}.metric-number{font-size:39px}}
@media(max-width:1150px){.sidebar{width:205px;padding-left:13px;padding-right:13px}.main-shell{margin-left:205px}.topbar{padding:0 25px}main{padding:27px 25px}.metric-grid{gap:11px}.metric-card{padding:16px}.metric-number{font-size:28px}.dashboard-grid{grid-template-columns:1.2fr 1fr;gap:17px}.inventory-health{gap:15px}.donut{width:115px;height:115px}.topbar-right{gap:13px}.split-layout{grid-template-columns:1fr 1.15fr}.vehicle-card .detail-grid{grid-template-columns:1fr 1fr}.app-footer{padding-left:25px;padding-right:25px}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:238px;box-shadow:0 0 0 100vmax #18201060}.sidebar:not(.open){box-shadow:none}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.mobile-menu{display:inline-grid!important}.topbar{height:69px}.topbar-left{gap:8px}.topbar-right{gap:9px}.store-scope>span{display:none}.store-scope select{max-width:155px}.avatar{display:none}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 5px}.dashboard-grid{grid-template-columns:1fr 1fr}.page-head{align-items:flex-start}.page-head h1{font-size:24px}.head-actions .button{padding:9px 11px}.split-layout,.settings-grid{grid-template-columns:1fr}.inventory-health{justify-content:center}.donut{width:145px;height:145px}.welcome-card{min-height:150px}.app-footer{font-size:8px}.form-grid{gap:15px}.expense-totals{flex-direction:column}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){main{padding:23px 16px}.topbar{padding:0 13px;height:63px}.topbar-right{gap:6px}.demo-badge{font-size:8px;padding:2px 5px;white-space:nowrap}.store-scope select{max-width:130px;font-size:10px}.breadcrumb{display:none}.page-head{flex-direction:column;gap:15px;margin-bottom:20px}.page-head h1{font-size:25px}.page-head .subtext{font-size:11px}.head-actions{width:100%}.head-actions .button{flex:1}.metric-grid{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:19px}.metric-card{padding:14px}.metric-top{font-size:10px}.metric-icon{height:27px;width:27px}.metric-number{font-size:27px}.metric-note{font-size:8px}.dashboard-grid{grid-template-columns:1fr;gap:18px}.dashboard-grid .section-gap{margin-top:18px}.panel-head{padding:18px}.panel-body{padding:0 18px 18px}.task-list{padding:0 18px 7px}.welcome-card{padding:22px}.welcome-card p{max-width:70%}.app-footer{padding:8px 16px 17px;display:block;text-align:center}.app-footer span{display:block;margin-top:3px}.filters{padding:15px;gap:10px}.filter-field{min-width:calc(50% - 10px)}.filter-field.wide{min-width:100%}.filters .button{flex:1}.table-toolbar{padding:13px 15px;flex-wrap:wrap;gap:9px}.table-toolbar p{font-size:10px}.tab{padding:6px 11px}.pagination{padding:13px 15px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.detail-grid{gap:13px}.modal-head{padding:19px}.modal-body{padding:20px}.modal-foot{padding:15px 19px}.form-error{margin:0 20px 15px}.customer-head{padding:16px;gap:10px}.customer-title{gap:9px}.customer-title h3{font-size:13px}.customer-vehicles{padding:13px}.vehicle-card{padding:13px}.vehicle-card .detail-grid{gap:8px}.vehicle-actions .button{padding:6px 8px;font-size:10px}.customer-head .head-actions{width:auto}.customer-head .button{font-size:10px;padding:6px 8px}.summary-grid{padding:0 15px 15px}.expense-total{padding:15px 20px}.expense-categories{padding:12px 15px}.query-result{padding:20px}.welcome-card .decor{width:125px;right:-4px}.toasts{bottom:15px;right:15px}.settings-grid{gap:18px}.filters>.filter-field{flex-basis:40%}}

.dashboard-grid > div{min-width:0}
.sales-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:23px}.sales-summary{display:flex;flex-wrap:wrap;gap:18px;padding:6px 0 18px}.sales-summary>div{flex:1;min-width:110px}.sales-summary span{font-size:11px;color:var(--muted)}.sales-summary strong{display:block;font-size:20px;overflow-wrap:anywhere}.sales-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.sales-details dd{margin:0;overflow-wrap:anywhere}.sales-details dt{color:var(--muted);font-size:11px}.sales-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 23px 23px}.sales-step{padding:16px;border:1px solid var(--line);border-radius:9px;min-width:0}.sales-step.done{background:#f8faf4;border-color:#dce7d5}.sales-step-head{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.sales-step p{font-size:11px;color:var(--muted);margin:8px 0}.sales-step-data{font-size:11px;overflow-wrap:anywhere;margin-bottom:12px}.sales-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:#79836e}.customer-sales{padding:0 23px 16px;display:grid;gap:9px}.customer-title{min-width:0}.customer-title p{overflow-wrap:anywhere}.field{min-width:0}.field input,.field select,.field textarea{max-width:100%}.iron-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1150px){.sales-two{grid-template-columns:minmax(0,1fr)}.sales-steps,.iron-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.sales-steps,.iron-steps{grid-template-columns:minmax(0,1fr);padding:0 15px 15px}.sales-step{padding:14px}.sales-details{gap:12px}.sales-summary{gap:12px}.sales-summary strong{font-size:18px}.customer-head{flex-wrap:wrap}.customer-sales{padding:0 16px 15px}.sales-two{gap:18px}.panel-head{flex-wrap:wrap}.customer-head .head-actions{width:100%}}
@media(max-width:1150px){.dashboard-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}}
@media(max-width:850px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split-layout,.settings-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.dashboard-grid{grid-template-columns:minmax(0,1fr)}}
/* Store and account screens reuse the existing workbench palette. */
.account-controls{display:flex;align-items:center;gap:12px;font-size:12px}.account-controls button{background:none;border:0;cursor:pointer;white-space:nowrap}.login-page{min-height:100vh;display:grid;place-items:center;background:#eef0e8;padding:24px}.login-card{width:min(100%,460px);padding:36px;background:#fff;border:1px solid #dce0d4;border-radius:20px;box-shadow:0 20px 70px #20302012}.login-card>.eyebrow{display:block;margin-top:18px}.login-card .field{margin:18px 0}.login-card form>.button{width:100%;margin:20px 0}.login-card input{width:100%;min-width:0}.login-card h1{font-size:28px}.main-shell,.panel,.panel-body,.field,.page-head>div{min-width:0}.wrap{overflow-wrap:anywhere}#content{overflow-wrap:anywhere}.form-grid input,.form-grid select{max-width:100%}
@media(max-width:700px){.topbar{flex-wrap:wrap;height:auto;gap:12px;padding:12px 16px}.topbar-right{flex-wrap:wrap;justify-content:flex-start;gap:10px}.account-controls{width:100%;justify-content:flex-end}.login-card{padding:24px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-number{font-size:26px}.head-actions{flex-wrap:wrap}.topbar .demo-badge{display:none}.store-scope select{max-width:180px}}

/* Overview sales metrics keep each amount within its own responsive cell. */
/* Product profiles and review keep original image evidence beside editable fields. */
.product-review-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:22px;align-items:start}.product-review-image{padding:22px;position:sticky;top:20px;max-height:calc(100vh - 45px);overflow:auto}.product-image{display:flex;flex-direction:column;align-items:center;gap:8px;background:#f4f6ee;border:1px solid var(--line);border-radius:10px;padding:10px;cursor:zoom-in;max-width:100%;min-width:0;color:inherit;font:inherit}.product-image img{display:block;width:100%;height:190px;object-fit:contain}.product-image span{font-size:12px;overflow-wrap:anywhere}.product-review-image .product-image{width:100%}.product-review-image .product-image img{height:auto;max-height:70vh}.product-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;padding:22px}.product-gallery>div{min-width:0}.product-gallery .product-image{width:100%}.product-sha{font-family:monospace;font-size:10px;color:#7c8475;overflow-wrap:anywhere}.product-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0}.product-facts>div{min-width:0}.product-facts dt{font-size:12px;color:#7b8572}.product-facts dd{margin:6px 0 0;line-height:1.7;overflow-wrap:anywhere}.product-certificate{padding:22px;border-top:1px solid var(--line)}.product-certificate h3{margin:0 0 20px;font-size:16px}.product-ocr{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}.product-ocr summary{cursor:pointer;font-size:13px;font-weight:600}.product-ocr pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7f0;border-radius:8px;padding:14px;font-size:12px}.product-ocr h3{font-size:13px;margin:15px 0}.product-drafts{padding:22px;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.product-drafts article{display:flex;gap:14px;align-items:center;min-width:0}.product-drafts .product-image{width:94px;flex-shrink:0}.product-drafts .product-image img{height:90px}.product-drafts .product-image span{display:none}#product-upload-form input[type=file]{width:100%;padding:14px;border:1px dashed #b8c4a6;border-radius:9px;background:#f7f9f1}#product-upload-progress{margin:16px 0;font-size:13px;color:#61784e}#product-image-dialog{width:min(1100px,96vw);max-width:96vw;padding:16px;max-height:96vh}#product-image-dialog img{display:block;max-width:100%;height:auto;margin:16px auto 0}#product-confirm-form .checkbox{margin:20px 0}#product-confirm-form .form-hint{line-height:1.8}
@media(max-width:1000px){.product-review-grid{grid-template-columns:minmax(0,1fr)}.product-review-image{position:static;max-height:none}.product-review-image .product-image img{max-height:500px}.product-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.product-gallery{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:10px}.product-gallery .product-image img{height:130px}.product-review-image,.product-certificate{padding:16px}.product-facts{gap:14px}.product-facts dd{font-size:13px}.product-drafts{padding:16px}.product-review-grid .form-grid{grid-template-columns:minmax(0,1fr)}}
.sales-overview-metrics{margin-bottom:25px}.sales-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:0 23px 16px}.sales-metric{min-width:0;background:#f8faf4;border:1px solid var(--line);border-radius:9px;padding:15px}.sales-metric>span{color:#79836e;font-size:12px}.sales-metric strong{display:block;margin-top:7px;font-size:clamp(18px,1.7vw,26px);font-weight:650;line-height:1.45;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.sales-metric strong small{font-size:11px;font-weight:400;color:#79836e;margin-left:5px;white-space:nowrap}.sales-metric-note{font-size:11px;color:#79836e;margin:0;padding:0 23px 20px;line-height:1.8}
@media(max-width:700px){.sales-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 18px 14px}.sales-metric{padding:12px}.sales-metric strong{font-size:20px}.sales-metric-note{padding:0 18px 18px}.sales-overview-metrics{margin-bottom:19px}}
.product-extra-section h3{font-size:14px}.product-extra-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;align-items:end;gap:10px;margin:12px 0}.product-extra-row label{font-size:12px;color:#738066;min-width:0}.product-extra-row input{display:block;margin-top:6px;width:100%}@media(max-width:600px){.product-extra-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.product-extra-row button{grid-column:1/-1;justify-self:end}}
.product-candidates{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;align-items:center}.product-candidates small{font-size:11px;color:#9b7f45}.product-candidates .button{white-space:normal;text-align:left;overflow-wrap:anywhere;max-width:100%}

.product-model-association{margin-top:22px;padding:18px;border:1px solid #bccbac;border-radius:10px;background:#f7f9f1;overflow-wrap:anywhere}.product-model-association h3{margin:0 0 10px;font-size:15px}.product-model-association p{margin:0 0 16px;color:#536e40}.product-model-association .field{min-width:0}.product-model-association select{max-width:100%}

/* Sales payment plan only */
.sales-payment-plan{display:grid;gap:12px;margin:18px 0;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}.sales-payment-plan article{padding:12px;border:1px solid #dce3d7;border-radius:10px;min-width:0;overflow-wrap:anywhere}.sales-payment-plan p{font-size:12px;line-height:1.7}.sales-payment-plan span{font-size:12px;color:#765624}.sales-payment-plan .sales-allocation-note{grid-column:1/-1;margin:0}.sales-plan-preview{grid-column:1/-1;overflow-wrap:anywhere}.sales-plan-preview[data-valid="false"]{color:#a33025}

/* Customer vehicle identity text must wrap long legal VINs inside dialogs. */
.vehicle-identity{display:block;min-width:0;max-width:100%;overflow-wrap:anywhere}
/* Historical imports use stacked cards on both desktop and narrow screens. */
.import-cards{display:grid;gap:20px;margin:24px 0}.import-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.import-field{display:flex;flex-direction:column;gap:7px;min-width:0;margin:12px 0}.import-field>span{font-size:13px;font-weight:600}.import-field input,.import-field select,.import-field textarea{width:100%;min-width:0;box-sizing:border-box;padding:11px;border:1px solid #d5dbce;border-radius:8px;font:inherit;background:#fff}.import-wide{grid-column:1/-1}.import-source{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;font-family:inherit;font-size:13px;line-height:1.7}.import-check{display:flex;align-items:flex-start;gap:10px;margin:12px 0;line-height:1.6}.import-check input{width:18px;height:18px;flex:none;margin-top:4px}.import-confirmations{border-top:1px solid #e0e5da;margin-top:16px;padding-top:12px}.import-error{color:#a33228;white-space:pre-wrap;overflow-wrap:anywhere}.import-messages p{font-size:13px;overflow-wrap:anywhere}.import-card{min-width:0}.import-card .panel-head{flex-wrap:wrap}.import-card details{padding:8px 0}.import-card summary{cursor:pointer}#import-error{margin:12px 0}#import-raw{font-family:inherit}.import-cards+.panel .panel-body{overflow-wrap:anywhere}
@media(max-width:600px){.import-grid{grid-template-columns:minmax(0,1fr)}.import-wide{grid-column:auto}.import-card .head-actions{flex-wrap:wrap}.import-card .button{white-space:normal}.import-card .panel-body{padding:16px}}

/* Compact customer cards and their vehicle/order drilldown. */
.customer-list .customer-head{border-bottom:0;gap:16px;flex-wrap:wrap}.customer-title>div:last-child{min-width:0}.customer-title h3{overflow-wrap:anywhere}.customer-avatar{flex-shrink:0}.customer-drilldown{display:grid;gap:14px;min-width:0}.customer-drilldown .vehicle-card-head{flex-wrap:wrap}.customer-drilldown h3,.customer-drilldown p{overflow-wrap:anywhere}.customer-drilldown .customer-order>p{font-size:12px;line-height:1.8}.customer-drilldown details{margin-top:14px}.customer-drilldown summary{cursor:pointer;font-size:12px;margin-bottom:12px}.customer-independent>p{margin:0 0 8px}

/* Customer overview and its two scoped subroutes. */
.customer-nav>.nav-item{margin-top:0}.customer-submenu{display:grid;gap:3px;margin:5px 0 5px 35px;border-left:1px solid #46503f;padding-left:10px}.customer-subnav{padding:7px 12px;font-size:12px;border-radius:6px}.customer-subnav:hover{background:#2c342b;color:#fff}.customer-subnav.active{background:#35432f;color:#f4eddc}.customer-metrics .metric-number{font-size:clamp(20px,2vw,31px);overflow-wrap:anywhere}.customer-metrics .metric-note{line-height:1.7}.customer-contributions .panel-head p{font-size:11px;line-height:1.8}.customer-contributions td:first-child{max-width:240px;white-space:normal;overflow-wrap:anywhere}.customer-focus{align-self:center;font-size:12px;color:#647857}.customer-metrics .metric-top{gap:6px}
@media(max-width:700px){.customer-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.customer-metrics .metric-card{padding:15px 12px}.customer-metrics .metric-number{font-size:21px;letter-spacing:-.5px}.customer-contributions .pagination{flex-wrap:wrap;gap:10px}.customer-contributions .table-wrap{overscroll-behavior-x:contain}}

/* Keep every navigation entry reachable on short desktop and mobile screens. */
.sidebar{overflow-y:auto;overscroll-behavior-y:contain}.sidebar>*{flex-shrink:0}

/* Vehicle management shares the established two-level navigation style. */
.breadcrumb #breadcrumb-root{margin:0;color:inherit}
.vehicle-nav>.nav-item{margin-top:0}.vehicle-submenu{display:grid;gap:3px;margin:5px 0 5px 35px;border-left:1px solid #46503f;padding-left:10px}.vehicle-subnav{padding:7px 12px;font-size:12px;border-radius:6px}.vehicle-subnav:hover{background:#2c342b;color:#fff}.vehicle-subnav.active{background:#35432f;color:#f4eddc}
.vehicle-location{display:grid;gap:3px;min-width:140px;max-width:280px;white-space:normal;overflow-wrap:anywhere}
.location-distribution{display:grid;gap:10px;min-width:180px;max-width:300px;white-space:normal;overflow-wrap:anywhere}
.location-distribution>div{border-left:2px solid var(--line);padding-left:9px}
.location-distribution strong,.location-distribution small{display:block;white-space:normal}
.product-model-association .field{min-width:0}.product-model-association select{width:100%;max-width:100%;text-overflow:ellipsis}
/* Global functional knowledge search, outside business modals and route content. */
.page-help{margin:18px 32px 0;padding:14px 18px;background:#fff;border:1px solid #e2e7db;border-radius:12px;min-width:0}
.page-help form{display:flex;align-items:center;gap:16px}.page-help label{font-weight:600;white-space:nowrap}.page-help-input-row{display:flex;gap:8px;flex:1;min-width:0}.page-help input{flex:1;min-width:0;width:100%;padding:10px 12px;border:1px solid #cbd5c0;border-radius:7px;font:inherit}.page-help-caption,.page-help-meta,.page-help-citation{color:#616b5c;font-size:12px;line-height:1.6}.page-help-caption{margin:8px 0 0}.page-help-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.page-help-result{padding:16px 0;border-top:1px solid #e5e9e0;overflow-wrap:anywhere}.page-help-result h3{margin:0 0 8px}.page-help-result p,.page-help-result li{line-height:1.7}.page-help-result ol{padding-left:22px}.page-help-citation{display:block;margin-top:10px}.page-help-example{font:inherit;font-size:12px;background:#f2f5ec;border:1px solid #dce4d1;border-radius:16px;padding:5px 10px;margin:0 7px 8px 0;cursor:pointer}
@media(max-width:700px){.page-help{margin:12px 16px 0;padding:12px}.page-help form{display:block}.page-help label{display:block;margin-bottom:8px}.page-help .button{padding:8px 12px}.page-help-panel-head{align-items:flex-start}}

/* Physical vehicle stock overview uses three matching totals. */
.vehicle-summary-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.vehicle-summary-metrics .metric-card{min-width:0}.vehicle-summary-metrics .metric-number{font-size:clamp(24px,3vw,38px)}
@media(max-width:700px){.vehicle-summary-metrics{gap:10px}.vehicle-summary-metrics .metric-card{padding:14px 10px}.vehicle-summary-metrics .metric-top{font-size:12px}.vehicle-summary-metrics .metric-icon{display:none}.vehicle-summary-metrics .metric-number{font-size:25px}.vehicle-summary-metrics .metric-note{font-size:10px;line-height:1.6}}

.inventory-pagination{flex-wrap:wrap;gap:12px}.inventory-pagination>div{flex-wrap:wrap}.inventory-pagination select{border:1px solid var(--line);border-radius:5px;background:#fff;color:inherit;padding:4px 6px}
.sales-new-form [hidden]{display:none!important}
/* Existing customers are chosen from inline matches, with a separate selected summary. */
.sales-customer-picker{min-width:0;grid-column:1/-1}.sales-customer-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px}.sales-customer-match{min-width:0;min-height:48px;text-align:left;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);padding:10px 12px;overflow-wrap:anywhere}.sales-customer-match strong,.sales-customer-match span{display:block}.sales-customer-match span,.sales-customer-selected span{font-size:12px;color:#616b5c}.sales-customer-match:hover{background:#f4f6ef}.sales-customer-match[aria-pressed="true"]{border-color:var(--green);background:var(--green-soft)}.sales-customer-selected{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #cbd8c5;border-radius:8px;background:var(--green-soft);padding:12px;margin-bottom:10px;overflow-wrap:anywhere}.sales-customer-selected>div{min-width:0;display:grid;gap:2px}.sales-customer-selected button{min-height:44px;flex-shrink:0}
@media(max-width:600px){.sales-customer-results{grid-template-columns:minmax(0,1fr)}}

/* Price/balance forms keep their save footer reachable when validation expands. */
#modal-form[data-price-balance-layout]{display:flex;flex-direction:column;max-height:calc(90vh - 2px)}
#modal-form[data-price-balance-layout] .modal-body{flex:1;min-height:0;max-height:none}
#modal-form[data-price-balance-layout] .modal-head,#modal-form[data-price-balance-layout] .modal-foot,#modal-form[data-price-balance-layout] #form-error{flex-shrink:0}

.import-stock-preview{overflow-wrap:anywhere}.import-stock-preview .import-check{margin-top:12px}

/* Inventory VIN stays complete and selectable inside the existing scroll container. */
.inventory-vin{font-family:Consolas,monospace;font-size:13px;color:var(--ink);white-space:nowrap;user-select:text}

.sales-business-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;padding:12px 20px}.sales-business-summary article{min-width:0;background:var(--bg,#f6f7f9);border:1px solid var(--line,#e3e6eb);border-radius:8px;padding:12px}.sales-business-summary span,.sales-business-summary strong{display:block;overflow-wrap:anywhere}.sales-business-summary span{font-size:13px;color:var(--muted,#596270);margin-bottom:8px}
