:root{--blue:#1764e8;--blue-dark:#1153c9;--ink:#172b49;--muted:#6b7b92;--line:#e4ebf4;--bg:#f3f6fb;--nav:#10223c;--sidebar-width:248px;--topbar-height:80px;--shadow:0 4px 20px #172b4907}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:185px}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-text-size-adjust:100%}a{color:var(--blue);text-decoration:none}a:hover{color:var(--blue-dark)}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border:1px solid #dce5f1;border-radius:9px;background:#fff;color:var(--ink);font-weight:650;font-size:12px;line-height:1.35;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .16s,border-color .16s,box-shadow .16s}button:hover,.button:hover{border-color:#afc7ea;background:#f5f9ff;color:#174b9b}button:active,.button:active{transform:translateY(1px)}.primary,button.primary,.button.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 4px 10px #1764e820}.primary:hover,button.primary:hover,.button.primary:hover{color:white;background:var(--blue-dark);border-color:var(--blue-dark)}.icon{width:19px;height:19px;display:inline-block;flex-shrink:0;vertical-align:middle}.button .icon,button .icon{width:17px;height:17px}.icon-button{width:40px;height:40px;padding:8px;min-height:40px;background:transparent}.icon-button .icon{width:21px;height:21px}.light{background:white;color:#1553b3;border-color:white}.wide{width:100%}.muted{color:var(--muted)}.small,small{font-size:12px}.eyebrow{display:inline-block;font-size:10px;letter-spacing:1.8px;font-weight:750;color:var(--blue)}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.25;letter-spacing:-.9px;margin:6px 0 8px}h2{font-size:17px;line-height:1.4;margin-bottom:12px;letter-spacing:-.2px}p{margin-bottom:14px}strong{font-weight:680}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link:focus{position:fixed;top:8px;left:8px;z-index:100;padding:12px 20px;background:#fff;border:2px solid var(--blue)}:focus-visible{outline:3px solid #73a5f8;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #95b8f3;outline-offset:1px;border-color:#7fa9ee}
/* Navigation shell */
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);height:100dvh;background:var(--nav);color:white;padding:29px 16px 18px;display:flex;flex-direction:column;z-index:60;overflow-y:auto}.sidebar-brand{display:flex;align-items:center;justify-content:space-between;padding:0 16px 34px}.brand{display:flex;align-items:center;gap:12px;color:#fff;font-weight:800;line-height:1}.brand:hover{color:white}.brand-mark{display:inline-grid;place-items:center;width:34px;height:40px;font-size:40px;letter-spacing:-7px;padding-right:7px;font-style:italic}.brand>span:last-child{font-size:19px;letter-spacing:2.8px}.brand small{display:block;font-size:10px;letter-spacing:3.5px;margin-top:9px;font-weight:550;color:#aebed5}.sidebar-close{display:none;color:#bacbe2;border-color:transparent}.nav-label{font-size:9px;letter-spacing:1.5px;color:#748ba9;font-weight:650;padding:0 15px 14px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:13px 15px;min-height:47px;border-radius:9px;color:#bdcbe0;font-size:12px;font-weight:550;position:relative}.sidebar nav a .icon{width:19px;height:19px;color:#8fa8c9}.sidebar nav a:hover{background:#1a3354;color:white}.sidebar nav a.selected{background:#1d61db;color:white;box-shadow:0 6px 16px #00000012}.sidebar nav a.selected .icon{color:#fff}.nav-active-dot{width:5px;height:5px;margin-left:auto;flex-shrink:0;border-radius:50%;background:#fff}.sidebar-bottom{margin-top:auto;padding:32px 9px 0}.sidebar-note{display:flex;align-items:center;gap:11px;background:#192f4b;border:1px solid #28405e;padding:12px;border-radius:10px}.sidebar-note>.icon{color:#86a8d4}.sidebar-note strong{font-size:10px;color:#c6d6ed;display:block}.sidebar-note small{font-size:9px;letter-spacing:1.4px;color:#6f8baa;display:block;margin-top:3px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#42cb9b;flex-shrink:0;margin-left:auto}.workspace{margin-left:var(--sidebar-width);min-height:100dvh;min-width:0}.topbar{height:var(--topbar-height);position:sticky;top:0;background:#ffffffed;backdrop-filter:blur(12px);border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:16px;z-index:40}.top-left,.top-right{display:flex;align-items:center;gap:20px;min-width:0}.topbar-brand strong{display:block;font-size:11px;letter-spacing:1.4px;color:#294365}.topbar-brand span{display:block;font-size:10px;color:#8a9ab0;margin-top:3px}.topbar-date{display:flex;align-items:center;gap:7px;color:#7c8da5;font-size:11px;white-space:nowrap;border-right:1px solid var(--line);padding-right:22px}.topbar-date .icon{width:16px;height:16px}.menu-toggle{display:none}.sidebar-backdrop{display:none}
/* Account menu */
.user-menu{position:relative}.user-menu>summary{display:flex;align-items:center;gap:11px;list-style:none;cursor:pointer;padding:6px 8px;border:1px solid transparent;border-radius:10px}.user-menu>summary::-webkit-details-marker{display:none}.user-menu>summary:hover,.user-menu[open]>summary{background:#f4f7fc;border-color:#e4ebf7}.avatar{width:38px;height:38px;background:#e9f0ff;color:#2361c9;border:1px solid #d8e6fd;display:grid;place-items:center;flex-shrink:0;border-radius:12px;font-size:14px;font-weight:750}.user-summary{display:block;max-width:190px}.user-summary strong{display:block;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.user-summary small{display:block;font-size:10px;color:#8192aa;margin-top:2px}.user-chevron{color:#7f91aa;transition:transform .2s}.user-chevron .icon{width:15px;height:15px}.user-menu[open] .user-chevron{transform:rotate(180deg)}.user-popover{position:absolute;right:0;top:calc(100% + 12px);width:290px;max-width:calc(100vw - 28px);background:white;border:1px solid #e1e9f4;border-radius:13px;box-shadow:0 16px 48px #142e5326;padding:8px;z-index:70}.popover-heading{padding:12px 12px 14px;border-bottom:1px solid var(--line);margin-bottom:6px;overflow-wrap:anywhere}.popover-heading strong{display:block;font-size:13px}.popover-heading small{display:block;color:var(--muted);font-size:11px;margin:2px 0 9px}.user-popover ul{list-style:none;padding:0;margin:0}.user-popover li a,.user-popover li button{display:flex;align-items:center;justify-content:flex-start;gap:11px;width:100%;padding:12px;border-radius:8px;min-height:44px;border:0;background:transparent;box-shadow:none;font-size:12px;font-weight:550;color:#344f71;white-space:normal;text-align:left}.user-popover li a:hover,.user-popover li button:hover{background:#f1f6ff;color:var(--blue)}.user-popover li .icon{width:18px;height:18px;color:#7e96b7}.user-popover .logout-item{border-top:1px solid var(--line);margin-top:6px;padding-top:6px}.user-popover .logout-item button,.user-popover .logout-item .icon{color:#bf4b54}.user-popover .logout-item button:hover{background:#fff0f0}
/* Common page layout */
.content{max-width:1680px;padding:27px 34px 22px;margin:auto;min-width:0}.content:focus{outline:none}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:25px;padding:0 0 15px;position:sticky;top:var(--topbar-height);background:var(--bg);z-index:25;min-height:111px}.page-intro{min-width:0}.page-intro .eyebrow{font-size:9px;letter-spacing:1.6px;color:#8a9bb3}.page-intro p{font-size:12px;color:#7b8da6;margin:0;max-width:650px}.page-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-shrink:0}.page-actions .primary{min-height:44px;padding-left:18px;padding-right:18px;box-shadow:0 5px 13px #1764e824}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);margin-bottom:22px;min-width:0;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 23px;border-bottom:1px solid #eef2f8}.panel-head h2{font-size:14px;margin:0}.panel-head p{font-size:11px;color:#90a0b6;margin:4px 0 0}.panel-head>a{font-size:11px;font-weight:600}.panel-head>.icon{color:#9aaec8}.table-hint{color:#90a0b6;font-size:10px;white-space:nowrap}.padding{padding:25px}.narrow{max-width:650px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(110deg,#123d80,#1b63d6);color:#fff;border-radius:13px;padding:25px 29px;margin-bottom:22px;position:relative;overflow:hidden}.welcome .eyebrow{color:#b8d2fd;font-size:9px}.welcome h2{font-size:24px;margin:10px 0 7px;font-weight:650;letter-spacing:-.5px}.welcome p{font-size:12px;color:#d0e1fa;max-width:540px;margin-bottom:17px}.welcome .button{min-height:38px;font-size:11px}.welcome-emblem{font-size:120px;color:#ffffff19;line-height:1;font-style:italic;font-weight:850;padding:0 26px;transform:skew(-8deg)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stats article{position:relative;border:1px solid var(--line);border-radius:11px;background:#fff;padding:20px;min-width:0;box-shadow:var(--shadow)}.stats article::before{content:'';position:absolute;left:20px;top:19px;width:3px;height:14px;background:#3b7be5;border-radius:2px}.stats article:nth-child(2)::before{background:#6b77df}.stats article:nth-child(3)::before{background:#2caa89}.stats article:nth-child(4)::before{background:#de9c46}.stats article>span{display:block;font-size:11px;color:#7e8fa7;margin-left:12px}.stats strong{display:block;font-size:clamp(18px,1.7vw,26px);font-weight:730;letter-spacing:-.6px;line-height:1.4;margin:16px 0 9px;overflow-wrap:anywhere}.stats small{display:block;color:#96a5b9;font-size:10px}.vehicle-stats strong{font-size:27px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.info-grid h2{margin:11px 0;font-size:17px}.info-grid p{font-size:12px}.info-grid a{font-size:12px;font-weight:650}.info-grid>.panel{margin-bottom:0}.alert{padding:14px 17px;margin-bottom:20px;border:1px solid #dce9fe;border-radius:9px;background:#edf4ff;color:#466993;font-size:12px;line-height:1.65;overflow-wrap:anywhere}.alert.success{background:#eefaf4;border-color:#cfecdd;color:#287451}.alert.danger{color:#a63f48;background:#fff1f2;border-color:#f3d3d8}.alert a{font-weight:650}.badge{display:inline-flex;align-items:center;gap:5px;max-width:100%;font-size:10px;line-height:1.4;padding:5px 9px;border-radius:6px;background:#edf3ff;color:#416ba6;font-weight:550}.badge.delivered{background:#eaf8f1;color:#2b9366}.badge.cancelled{background:#fff0ee;color:#c56354}.badge.open{background:#fff7e8;color:#b48637}footer{display:flex;justify-content:space-between;align-items:center;gap:16px;color:#9aabc1;font-size:10px;border-top:1px solid var(--line);padding-top:21px;margin-top:30px}footer strong{font-weight:650;letter-spacing:1px;font-size:9px}
/* Forms */
label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#405a7b;margin-bottom:19px;min-width:0}input,select,textarea{font:inherit;font-size:13px;color:var(--ink);width:100%;min-width:0;border:1px solid #dce5f2;background:#fff;border-radius:8px;padding:11px 12px;min-height:43px;font-weight:400;transition:border-color .16s,box-shadow .16s}input::placeholder,textarea::placeholder{color:#a2b0c3}input[readonly]{background:#f2f6fc;color:#7286a4}input:disabled,select:disabled{background:#f2f5fa;color:#90a0b5;cursor:not-allowed}textarea{min-height:98px;resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;padding:0 24px 24px}.full{grid-column:1/-1}.editor{scroll-margin-top:215px}.editor>summary{padding:18px 23px;cursor:pointer;font-size:13px;font-weight:680;color:#2461bd;list-style:none;display:flex;align-items:center;gap:11px}.editor>summary::-webkit-details-marker{display:none}.editor>summary::before{content:'+';display:inline-grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#edf4ff;color:#3172da;font-size:20px;font-weight:450;flex-shrink:0}.editor[open]>summary{border-bottom:1px solid var(--line);margin-bottom:23px;color:#244269}.editor[open]>summary::before{content:'−';background:#e9eff8;color:#7c91ad}.editor>summary::after{content:'Mở biểu mẫu';margin-left:auto;font-size:10px;font-weight:450;color:#8ea4c3}.editor[open]>summary::after{content:'Thu gọn'}.form-actions{border-top:1px solid #edf1f7;padding-top:19px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.form-actions>p{flex:0 0 100%;font-size:11px;color:#8c9eb5;margin-bottom:3px}.check{display:flex;flex-direction:row;align-items:center;gap:10px}.check input{width:17px;height:17px;min-height:17px;accent-color:var(--blue)}.search{display:flex;gap:9px;align-items:center;max-width:710px;margin-bottom:20px}.search input{box-shadow:var(--shadow);background:#fff;min-height:44px}.search button{min-height:44px;padding:10px 19px}.search .sr-only{margin:0}.compact{margin-top:10px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:180px}.compact select{width:160px;min-height:35px;padding:7px 9px;font-size:11px}.compact button,.compact .button{min-height:35px;padding:8px 10px;font-size:11px}.delete-button{background:#fff6f5;border-color:#f1d6d3;color:#bd5751}.delete-button:hover{background:#ffecea;border-color:#dfb7b2;color:#b0453e}.row-action{min-height:35px;padding:7px 11px;font-size:11px}.row-action .icon{width:14px;height:14px}.vehicle-note{min-width:240px;max-width:340px}.vehicle-note>small{white-space:normal}.vehicle-price-help{font-size:11px;color:#8da0ba;align-self:center;line-height:1.8;padding-top:20px}#ward-status{font-size:10px;font-weight:400}.vehicle-price-help p{margin-bottom:0}.text-button{border:0;background:transparent;box-shadow:none}.pagination{display:flex;justify-content:center;align-items:center;gap:16px;font-size:11px;color:#8b9db5;margin:20px 0}.pagination .button{font-size:11px;padding:8px 13px;min-height:36px}
/* Data tables. Original markup remains fully usable without JavaScript. */
.table-wrap{overflow:auto;max-width:100%;max-height:760px;scrollbar-width:thin;scrollbar-color:#cfdaea transparent}.table-wrap:focus-visible{outline-offset:-3px}table{width:100%;border-collapse:separate;border-spacing:0;text-align:left;font-size:12px}th,td{padding:16px 20px;border-bottom:1px solid #edf2f8;vertical-align:top;line-height:1.65}th{position:sticky;top:0;background:#f7f9fd;z-index:3;color:#8698b1;font-weight:650;font-size:10px;white-space:nowrap;letter-spacing:.15px}td{background:white;min-width:115px;overflow-wrap:anywhere;color:#566e8f}td strong{color:#274469;font-size:12px;font-weight:650}td small{display:block;color:#93a3b9;font-size:10px;margin-top:5px}tbody tr:hover td{background:#fbfcff}tbody tr:last-child td{border-bottom:0}table th:first-child,table td:first-child{position:sticky;left:0;min-width:165px;max-width:280px;z-index:2;background:white}table th:first-child{z-index:5;background:#f7f9fd}.action-cell{position:sticky;right:0;min-width:145px;z-index:2;box-shadow:-5px 0 12px #24426405}th.action-cell{z-index:5;background:#f7f9fd}.nowrap{white-space:nowrap}.customer-address{min-width:190px;max-width:300px}.empty{text-align:center;padding:40px;color:#9aabc0;position:static!important}.note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-width:380px;line-height:1.7}.audit-detail{max-width:400px;min-width:110px}.audit-detail summary{color:var(--blue);font-size:11px}.audit-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:270px;overflow:auto;font:11px/1.7 system-ui;background:#f5f8fd;border-radius:7px;padding:12px}.table-wrap details summary{cursor:pointer;font-size:10px;color:#6785ac;margin-top:4px}.row-toggle{display:none}
/* Organization / account */
.org-panel{padding:28px;overflow:auto}.org-tree,.org-tree ul{list-style:none;margin:0;padding:0}.org-tree ul{display:flex;gap:26px;align-items:flex-start;border-left:1px solid #cddbec;margin-left:24px;padding:26px 0 0 24px}.org-card{min-width:205px;border:1px solid #dce6f5;background:white;border-radius:10px;padding:17px 20px;position:relative}.org-tree>li>.org-card{background:#edf4ff;border-color:#c6dafa}.org-card strong,.org-card small{display:block}.org-card strong{font-size:13px;margin-top:10px}.org-card small{font-size:10px;color:#8d9fb7;margin-top:5px}.org-card.inactive{opacity:.55}.org-tree li{position:relative}.org-tree li ul li:before{content:'';position:absolute;top:-13px;left:-24px;width:24px;height:1px;background:#cddbec}#permissions-matrix{scroll-margin-top:200px}.profile-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px}.profile-overview{text-align:center;padding:34px 23px;align-self:start}.profile-avatar{width:76px;height:76px;display:grid;place-items:center;background:#eaf1ff;color:#4c7ecf;border-radius:24px;margin:0 auto 20px}.profile-avatar .icon{width:37px;height:37px;stroke-width:1.4}.profile-overview h2{font-size:19px;margin-bottom:5px;overflow-wrap:anywhere}.profile-overview>p{font-size:12px;color:#91a3ba}.profile-role{display:flex;justify-content:center;align-items:center;gap:9px;border-top:1px solid var(--line);padding-top:20px;margin-top:25px;color:#7390b8;font-size:12px}.profile-role .icon{width:17px;height:17px}.account-fields{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0;padding:12px 24px}.account-fields>div{padding:17px 10px;border-bottom:1px solid #f0f3f8;min-width:0}.account-fields dt{color:#92a3bb;font-size:10px;margin-bottom:5px}.account-fields dd{margin:0;font-size:13px;color:#355275;overflow-wrap:anywhere;font-weight:550}.profile-security{margin:10px 24px 24px;background:#f6f9fe;border:1px solid #e8effa;padding:17px;display:flex;align-items:center;gap:13px;border-radius:9px}.profile-security>.icon{color:#7899c5}.profile-security strong{font-size:12px}.profile-security p{font-size:10px;color:#8fa2ba;margin:4px 0 0}.profile-security .button{margin-left:auto;font-size:10px;padding:8px 11px;min-height:35px}
/* Sign in */
.login-layout{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr;background:#fff}.login-story{padding:55px;min-height:100dvh;background:linear-gradient(145deg,#10223c,#1559c2);color:#fff;display:flex;flex-direction:column;justify-content:space-between}.login-story .brand{font-size:44px}.login-story .brand>span{font-size:17px;letter-spacing:2px}.login-story .brand small{font-size:9px;letter-spacing:2px}.login-story .eyebrow{color:#a7c7f7}.login-story h1{font-size:clamp(28px,3.5vw,49px);line-height:1.27;margin:22px 0;letter-spacing:-1.4px}.login-story p{max-width:390px;color:#b6ceee;font-size:13px}.login-story>small{font-size:11px;color:#8cadde}.login-form{width:100%;max-width:455px;padding:40px;margin:auto}.login-form h2{font-size:26px;margin:13px 0 10px}.login-form form{margin-top:28px}.login-form label{margin-bottom:20px}.login-form input{min-height:46px}.login-form .primary{min-height:46px}.login-form .small{margin-top:23px;line-height:1.8}.mobile-brand{display:none}
@media(min-width:1600px){.stats strong{font-size:27px}}
@media(max-width:1280px){:root{--sidebar-width:226px}.content{padding:24px}.topbar{padding:0 24px}.page-heading{gap:15px}.page-intro p{max-width:460px}.stats{gap:12px}.stats article{padding:18px}.stats article::before{left:18px;top:17px}.stats strong{font-size:22px}.profile-grid{grid-template-columns:260px 1fr}.org-tree ul{gap:18px;margin-left:18px;padding-left:18px}.org-tree li ul li:before{left:-18px;width:18px}.org-card{min-width:185px;padding:16px}}
@media(max-width:1099px){:root{--sidebar-width:248px}.sidebar{transform:translateX(-100%);transition:transform .22s ease;box-shadow:15px 0 45px #0e213c33}.menu-open .sidebar{transform:translateX(0)}body.menu-open{overflow:hidden}.sidebar-close{display:inline-flex}.sidebar-brand{padding:0 10px 32px}.workspace{margin-left:0}.menu-toggle{display:inline-flex;border:0;background:#f3f6fb}.sidebar-backdrop{display:none;position:fixed;inset:0;border:0;border-radius:0;background:#0c213d70;z-index:55;min-height:100%;width:100%;cursor:pointer}.menu-open .sidebar-backdrop{display:block}.topbar-brand span{display:none}.stats strong{font-size:24px}.org-tree ul{flex-direction:column}.org-tree li ul li:before{display:none}.org-card{min-width:225px}.page-heading{top:var(--topbar-height);min-height:108px}.page-intro p{max-width:500px}}
@media(max-width:760px){:root{--topbar-height:70px}.topbar{padding:0 16px;gap:12px}.top-left,.top-right{gap:10px}.topbar-brand strong{font-size:10px;letter-spacing:.8px}.topbar-date{display:none}.user-summary{max-width:145px}.user-summary strong{font-size:11px}.user-summary small{font-size:9px}.avatar{width:34px;height:34px;border-radius:10px}.user-menu>summary{gap:8px;padding:5px}.user-chevron .icon{width:13px;height:13px}.content{padding:19px 16px}.page-heading{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:20px;padding-bottom:17px;min-height:0;position:relative;top:auto}.page-intro h1{font-size:27px;margin-top:6px}.page-intro p{font-size:11px;max-width:100%;line-height:1.7}.page-actions{justify-content:flex-start;width:100%;gap:8px}.page-actions>.primary{flex:1;min-height:45px}.page-actions>.button:only-child{flex:1}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:20px}.stats article{padding:17px 15px}.stats article::before{left:15px;top:17px}.stats span{font-size:10px}.stats strong{font-size:clamp(18px,4.6vw,25px);margin-top:14px}.stats small{font-size:9px}.stats article>span{font-size:10px}.welcome{padding:23px}.welcome h2{font-size:23px}.welcome .eyebrow{font-size:8px;letter-spacing:1.1px}.welcome p{font-size:11px}.welcome-emblem{display:none}.info-grid{grid-template-columns:1fr;gap:18px}.panel{margin-bottom:19px;border-radius:11px}.panel-head{padding:18px}.panel-head h2{font-size:13px}.table-hint{font-size:9px}.padding{padding:22px}.form-grid{grid-template-columns:1fr;padding:0 18px 20px}.full{grid-column:1}.form-actions .primary{flex:1;min-height:45px}.form-actions>.button{min-height:45px}.editor>summary{padding:16px 18px;font-size:12px}.editor>summary::after{font-size:9px}.editor[open]>summary{margin-bottom:19px}.editor{scroll-margin-top:88px}label{font-size:12px;gap:8px;margin-bottom:19px}input,select,textarea{min-height:45px;font-size:16px}textarea{min-height:100px}.search{max-width:none;margin-bottom:18px;gap:8px}.search input{font-size:13px;min-height:45px}.search button{padding:11px 15px;min-height:45px}.compact{min-width:0}.compact select{font-size:13px;min-height:40px;width:170px}.compact button{min-height:40px}.vehicle-price-help{padding-top:0}.pagination{gap:10px;font-size:10px}.pagination .button{min-height:40px;font-size:10px;padding:8px 11px}.org-panel{padding:21px}.org-tree ul{margin-left:10px;padding-left:15px;padding-top:20px;gap:20px}.org-card{min-width:195px}.org-card .eyebrow{font-size:9px;letter-spacing:1px}.profile-grid{grid-template-columns:1fr;gap:0}.profile-overview{padding:26px}.account-fields{padding:8px 16px}.account-fields>div{padding:14px 7px}.profile-security{margin:12px 18px 20px;flex-wrap:wrap;padding:15px}.profile-security .button{min-height:40px}.login-layout{display:block}.login-story{display:none}.login-form{max-width:470px;padding:40px 25px}.mobile-brand{display:block;font-weight:800;letter-spacing:2.5px;color:#1b58b5;font-size:14px;margin-bottom:60px}.login-form h2{font-size:26px}.login-form>.eyebrow{font-size:9px}.login-form p{font-size:12px}.login-form .small{font-size:11px}footer{margin-top:25px;gap:12px;align-items:flex-start;font-size:9px}footer strong{font-size:8px}.table-wrap{max-height:none}.audit-detail{max-width:100%;min-width:0}}
@media(max-width:640px){
 .topbar-brand{display:none}.topbar{padding:0 13px}.user-summary{max-width:185px}.user-menu>summary{padding:5px 0 5px 5px}.content{padding:20px 13px}.page-actions{position:sticky;top:70px}.user-popover{right:0;width:285px}.table-hint{display:none}
 .table-wrap:has(.mobile-cards){overflow:visible}.mobile-cards{display:block;min-width:0;width:100%;padding:0 14px 5px}.mobile-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}.mobile-cards tbody{display:block;width:100%}.mobile-cards tbody tr{display:block;border:1px solid #e3ebf6;border-radius:11px;margin:14px 0;background:#fff;overflow:hidden;box-shadow:0 3px 9px #29456b03}.mobile-cards tbody td,.mobile-cards tbody td:first-child{position:static;display:grid;grid-template-columns:minmax(100px,35%) minmax(0,1fr);gap:12px;padding:11px 14px;width:100%;min-width:0;max-width:none;box-shadow:none;font-size:12px;border-bottom:1px solid #f0f4fa;background:#fff;white-space:normal}.mobile-cards td::before{content:attr(data-label);font-size:10px;color:#8d9fb8;font-weight:500;align-self:start;padding-top:2px;overflow-wrap:normal}.mobile-cards tbody td:first-child{display:block;background:#f8faff;padding:15px 14px;border-bottom:1px solid #e9f0fb}.mobile-cards tbody td:first-child::before{display:none}.mobile-cards td:first-child strong{font-size:13px;color:#294d7f}.mobile-cards td small{margin-top:3px}.mobile-cards td>small{grid-column:2}.mobile-cards td:first-child>small{display:inline-block;margin-top:4px}.mobile-cards td:first-child details{margin-top:6px}.mobile-cards td>strong{font-size:12px}.mobile-cards td .badge{align-self:start;justify-self:start}.mobile-cards tbody td.action-cell{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fcfdff;border-top:1px solid #edf3fa;border-bottom:0;padding:12px 14px}.mobile-cards td.action-cell::before{display:none}.mobile-cards td.action-cell>.button{flex:1;min-height:40px;padding:10px 12px;font-size:12px}.mobile-cards td.action-cell .compact{flex:1;margin:0}.mobile-cards td.action-cell .compact button{flex:1;font-size:12px;min-height:40px}.mobile-cards td.action-cell .compact select{width:100%;min-height:40px}.mobile-cards tbody td.mobile-secondary{display:none}.mobile-cards tr.row-expanded td.mobile-secondary{display:grid}.mobile-cards .vehicle-note>small,.mobile-cards .vehicle-note>details{grid-column:2}.mobile-cards td>details{min-width:0}.mobile-cards .row-toggle{display:inline-flex;float:right;border:1px solid #d8e6fc;background:#fff;color:#4674b2;padding:6px 9px;min-height:31px;font-size:10px;font-weight:550;margin-left:8px;margin-top:2px}.mobile-cards td.empty{display:block!important;padding:35px 16px!important;text-align:center}.mobile-cards td.empty::before{display:none}.mobile-cards tbody tr:hover td{background:#fff}.mobile-cards tbody tr:hover td:first-child{background:#f8faff}.note{max-width:none}.table-wrap .audit-detail summary{font-size:11px}.audit-detail pre{font-size:11px}.org-card{min-width:180px}.org-tree ul{margin-left:7px;padding-left:12px}.org-panel{padding:18px}.account-fields{grid-template-columns:1fr}.account-fields>div{padding:13px 9px}.profile-security>.button{width:100%;margin-left:0}}
@media(max-width:380px){.user-summary{max-width:165px}.page-intro h1{font-size:25px}.stats article{padding:15px 12px}.stats article::before{left:12px;top:15px}.stats strong{font-size:18px}.editor>summary::after{display:none}.mobile-cards{padding-left:10px;padding-right:10px}.mobile-cards tbody td{grid-template-columns:96px minmax(0,1fr);gap:9px;padding:10px 12px}.mobile-cards .row-toggle{float:none;margin:10px 0 0;display:flex;width:max-content}.page-actions .primary{padding-left:12px;padding-right:12px;font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.sidebar,.topbar,.page-actions,.search,.editor,.pagination,.sidebar-backdrop,footer,.row-toggle{display:none!important}.workspace{margin:0}.content{padding:0}.page-heading{position:static}.table-wrap{overflow:visible;max-height:none}.panel{box-shadow:none}body{background:white}}
.row-action{background:#f4f8ff;border-color:#d9e7fb;color:#356bb3}.compact button:not(.delete-button){background:#edf4ff;border-color:#d6e6fd;color:#356bb3}@media(max-width:760px){.search input{font-size:16px}.compact select{font-size:16px}}

/* v1.3.1: single page title in the topbar, no repeated heading banner. */
.topbar .top-left{flex:1;min-width:0}.topbar-brand{min-width:0}.topbar-brand>strong{font-size:9px;color:#7c8ea7;letter-spacing:1.1px}.topbar-page-title{font-size:19px;line-height:1.3;font-weight:750;letter-spacing:-.35px;margin:4px 0 0;color:#172b49;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .top-right{flex-shrink:0}.page-toolbar{display:flex;justify-content:flex-end;align-items:center;margin:0 0 17px;padding:0;min-height:0}.page-toolbar .page-actions{position:static;width:auto}.editor{scroll-margin-top:100px}#permissions-matrix{scroll-margin-top:100px}html{scroll-padding-top:100px}
@media(max-width:760px){.topbar-page-title{font-size:17px}.topbar-brand>strong{font-size:8px}.page-toolbar{margin-bottom:15px}.page-toolbar .page-actions{width:100%}.editor{scroll-margin-top:88px}}
@media(max-width:640px){.topbar .topbar-brand{display:block}.topbar-brand>strong{display:none}.topbar-page-title{margin:0;font-size:16px;letter-spacing:-.2px}.topbar .user-summary{display:none}.topbar .user-menu>summary{gap:7px}.topbar .top-left{gap:10px}.page-toolbar .page-actions{justify-content:flex-end}}
@media(max-width:380px){.topbar-page-title{font-size:14px}.topbar .top-left{gap:8px}}

body[data-page="products"] .page-toolbar .page-actions{flex-wrap:wrap}
/* Model list controls */
.model-catalog-heading{flex-wrap:wrap}.model-search{position:relative;width:310px;max-width:100%}.model-search>.icon{position:absolute;left:12px;top:13px;width:17px;height:17px;color:#8ca0bc;pointer-events:none}.model-search input{padding-left:38px;min-height:43px;background:#fafcff;font-size:13px}.model-catalog-table th{font-weight:750;color:#496483}.model-sort-button{border:0;background:transparent;padding:0;min-height:30px;gap:8px;font-size:11px;font-weight:750;color:inherit;box-shadow:none}.model-sort-button:hover{background:transparent;border:0;color:#1764e8}.model-sort-button .icon{width:14px;height:14px;color:#9aabc1}.model-catalog-table th[aria-sort] .icon{color:#1764e8}.model-catalog-table tr[hidden]{display:none!important}.model-row-actions{display:inline-flex;align-items:center;gap:7px;flex-wrap:nowrap;white-space:nowrap}.model-row-actions form{display:inline-flex;margin:0;min-width:0}.model-row-actions .model-icon-button{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;min-height:35px;padding:7px;border:1px solid #dbe6f6;border-radius:8px;background:#f8fbff;color:#3866a3;box-shadow:none;flex-shrink:0}.model-row-actions .model-icon-button .icon{width:17px;height:17px}.model-row-actions .model-icon-button:hover{background:#eaf2ff;color:#1764e8;border-color:#b8cff3}.model-row-actions .model-pause{color:#ad8430;background:#fffaf0;border-color:#efe3c4}.model-row-actions .model-resume{color:#25815e;background:#effaf5;border-color:#ceeadd}.model-row-actions .model-delete{color:#bc5555;background:#fff6f6;border-color:#f1d6d6}.model-row-actions .model-icon-button:disabled{color:#a6b0bf;background:#f5f7fa;border-color:#e5eaf1;cursor:not-allowed;opacity:.65}
@media(max-width:640px){.model-search{width:100%}.model-search input{font-size:16px}.model-catalog-table .model-icon-button{width:42px;height:42px;min-height:42px}}
.model-catalog-table th[aria-sort] .model-sort-button .icon{display:none}.model-catalog-table th[aria-sort="ascending"] .model-sort-button::after{content:'↑';color:#1764e8;font-size:15px}.model-catalog-table th[aria-sort="descending"] .model-sort-button::after{content:'↓';color:#1764e8;font-size:15px}

/* Global event feedback */
.toast-stack{position:fixed;top:18px;right:18px;width:min(410px,calc(100vw - 32px));z-index:200;display:grid;gap:12px;pointer-events:none}
.app-toast{pointer-events:auto;display:flex;align-items:flex-start;gap:12px;padding:18px;background:#fff;border:1px solid #dce8e3;border-left:4px solid var(--toast-color);border-radius:12px;box-shadow:0 12px 36px #10223c26;color:#263c56;animation:toast-arrive .2s ease-out}
.toast-success{--toast-color:#15956b}.toast-warning{--toast-color:#d77b0b}.toast-error{--toast-color:#dc414c}
.toast-symbol{flex-shrink:0;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--toast-color);color:#fff;font-size:20px;font-weight:700}
.app-toast>div{flex:1;min-width:0}.app-toast strong{color:var(--toast-color);font-size:14px}.app-toast p{margin:5px 0 0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.toast-close,.confirm-close{background:transparent;border:0;box-shadow:none;padding:0;min-width:28px;min-height:28px;color:#73839a;font-size:23px;display:grid;place-items:center}
.confirm-dialog{width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #e0e8f3;border-radius:20px;padding:28px;color:#172d4b;background:#fff;box-shadow:0 24px 80px #0d213c40;z-index:250}
.confirm-dialog::backdrop{background:#10223c80;backdrop-filter:blur(3px)}
.confirm-dialog:not([open]){display:none}.confirm-dialog[open]{position:fixed;inset:0;margin:auto}
.confirm-heading{display:flex;align-items:center;justify-content:space-between}.confirm-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff3df;color:#cf790c;font-size:26px;font-weight:700}
.confirm-dialog h2{font-size:21px;margin:20px 0 10px}.confirm-dialog p{font-size:14px;line-height:1.7;color:#62738b;margin:0;overflow-wrap:anywhere}
.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px}.confirm-actions button{min-height:44px}.confirm-actions .confirm-destructive{background:#d83c48;border-color:#d83c48}.confirmation-open{overflow:hidden}
@keyframes toast-arrive{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:520px){.toast-stack{top:12px;right:12px;width:calc(100vw - 24px)}.confirm-dialog{padding:22px}.confirm-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){.app-toast{animation:none}}


/* Keep the vehicle catalog as a scrollable table at every viewport width. */
.model-table-scroll{max-height:clamp(240px,60vh,640px)}
.model-catalog-table{width:max-content;min-width:100%;table-layout:auto}
.model-catalog-table th,.model-catalog-table td{white-space:nowrap;overflow-wrap:normal;vertical-align:middle;padding:10px 16px}
.model-catalog-table th:first-child,.model-catalog-table td:first-child{min-width:0;max-width:none;left:auto}
.model-catalog-table th,.model-catalog-table th:first-child{top:0;z-index:3;background:#f4f7fb;box-shadow:0 1px 0 #e1e9f4}
.model-catalog-table td,.model-catalog-table td:first-child{position:static;min-width:0}
.model-catalog-table [data-model-row]{cursor:pointer}
.model-catalog-table [data-model-row]:hover td{background:#edf5ff}
.model-catalog-table [data-model-row].model-selected td{background:#bdd8ff;color:#183d68}
.model-select,.model-select:hover{background:transparent;border:0;box-shadow:none;padding:0;min-height:32px;color:#274469;font-size:12px;font-weight:650;text-align:left}
.model-select:focus-visible{outline:2px solid #1764e8;outline-offset:3px}
@media print{.model-table-scroll{max-height:none}.model-catalog-table{width:100%}}


.model-catalog-table {
 --model-column-padding: clamp(8px, 0.85vw, 14px);
 --model-name-width: clamp(145px, 17vw, 230px);
}
.model-catalog-table th,.model-catalog-table td { padding-inline: var(--model-column-padding); }
.model-catalog-table .model-sequence { text-align:center; font-variant-numeric:tabular-nums; }
.model-catalog-table .model-name-column {
 width:var(--model-name-width);
 min-width:var(--model-name-width);
 max-width:var(--model-name-width);
}
.model-name-column .model-select {
 display:block;
 max-width:calc(var(--model-name-width) - 2 * var(--model-column-padding));
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
}
.model-name-column .model-sort-button { max-width:calc(100% - 6px); }
.model-resize {
 position:absolute;
 inset:0 0 0 auto;
 width:18px;
 cursor:col-resize;
 touch-action:none;
 user-select:none;
}
.model-resize::after {
 content:'';
 position:absolute;
 inset:22% 3px 22% auto;
 width:2px;
 border-radius:2px;
 background:#91a9c8;
}
.model-resize:hover::after,.model-resize:focus-visible::after { background:#1764e8; }
.model-resize:focus-visible { outline:2px solid #1764e8; outline-offset:-2px; }
.model-catalog-table .model-action-column {
 position:sticky;
 right:0;
 z-index:2;
 box-shadow:-1px 0 0 #dce7f5;
}
.model-catalog-table th.model-action-column { z-index:4; }
.model-catalog-table td.model-action-column { background:#fff; }
.model-catalog-table [data-model-row]:hover td.model-action-column { background:#edf5ff; }
.model-catalog-table [data-model-row].model-selected td.model-action-column { background:#bdd8ff; }
@media print { .model-catalog-table .model-action-column { position:static; } }
@media(max-width:380px) {
 .model-catalog-table { --model-name-width:128px; }
 .model-catalog-table .model-action-column { padding-inline:5px; }
 .model-row-actions { gap:4px; }
}

#vehicle-sale-price,.stock-output {
 display:block;
 padding:10px 12px;
 border:1px solid #d8e5fa;
 border-radius:8px;
 background:#edf4ff;
 color:#234f8c;
 font-weight:700;
}


.product-stock-warning {
 padding:10px 16px;
 background:#fff7e8;
 color:#80520b;
 border-bottom:1px solid #f1dfb4;
}

.color-picker-field {
 display:flex;
 align-items:center;
 gap:12px;
}
.color-picker-field input[type="color"] {
 width:76px;
 min-height:44px;
 padding:4px;
 cursor:pointer;
}
.color-swatch {
 flex:0 0 32px;
 height:24px;
 border:1px solid #7d8ba0;
 border-radius:5px;
}
.color-catalog-table th:first-child,.color-catalog-table td:first-child {
 left:auto;
 min-width:0;
}
.color-catalog-table td { vertical-align:middle; min-width:0; }
.color-catalog-table .action-cell { min-width:0; }

.product-color-field { display:grid; align-content:start; gap:8px; }
.product-color-field > label { margin:0; }
.product-color-preview { min-height:24px; color:#496483; }

.product-list-color { display:inline-flex; align-items:center; gap:8px; vertical-align:middle; }
.product-list-color .color-swatch { flex-basis:16px; width:16px; height:16px; }

.vehicle-color-list, .vehicle-color-list .table-wrap { overflow:visible; }
.vehicle-color-list .table-wrap { max-height:none; }
.color-catalog-table th,
.color-catalog-table th:first-child,
.color-catalog-table th.action-cell {
 top:var(--topbar-height);
 z-index:6;
 background:#f4f7fc;
 color:#29476a;
 font-weight:800;
 box-shadow:0 1px 0 #e1e9f4;
}
.color-catalog-table td:first-child,
.color-catalog-table td.action-cell { position:static; }
.color-catalog-table th.action-cell { right:auto; }
.color-catalog-table th,.color-catalog-table td { padding:5px clamp(6px,1vw,14px); }
.color-catalog-table td { overflow-wrap:anywhere; }
.color-catalog-table .model-icon-button { width:30px; height:30px; min-height:30px; }
.color-catalog-table .model-sort-button { white-space:normal; text-align:left; }
.color-catalog-table th[aria-sort] .model-sort-button .icon { display:none; }
.color-catalog-table th[aria-sort="ascending"] .model-sort-button::after { content:'↑'; color:#1764e8; }
.color-catalog-table th[aria-sort="descending"] .model-sort-button::after { content:'↓'; color:#1764e8; }
.color-catalog-table tr[hidden] { display:none!important; }
.vehicle-color-codes { display:grid; }
.vehicle-color-list .color-swatch { flex-basis:20px; height:20px; }
.vehicle-color-options { display:grid; gap:12px; }
.vehicle-color-control { display:grid; gap:5px; }
.vehicle-color-control input[type="text"] { width:9ch; min-width:100px; }
.vehicle-color-control .color-picker-field { flex-wrap:wrap; }
@media(max-width:480px) {
 .color-catalog-table .color-picker-field { gap:5px; }
 .color-catalog-table .model-row-actions { gap:4px; }
}

.accessory-model-options { min-width:0; border:1px solid #dce7f5; border-radius:8px; padding:10px 14px; }
.accessory-model-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:8px; max-height:180px; overflow:auto; }
.accessory-model-grid label { display:flex; flex-direction:row; align-items:center; gap:6px; }
.accessory-model-grid input[type="checkbox"] { width:16px; min-height:0; flex:0 0 16px; }

@media(min-width:761px) {
 .accessory-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

#accessory-table { --accessory-model-width:clamp(152px,18vw,240px); }
#accessory-table .accessory-model-column {
 width:var(--accessory-model-width);
 min-width:var(--accessory-model-width);
 max-width:var(--accessory-model-width);
}
.accessory-model-text {
 display:block;
 max-width:calc(var(--accessory-model-width) - 2 * var(--model-column-padding));
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
}
.accessory-model-column .model-sort-button { max-width:calc(100% - 6px); }

.quote-section { min-width:0; margin:0 0 16px; padding:12px 16px; border:1px solid var(--line); border-radius:10px; }
.quote-section legend { padding:0 6px; color:#244269; font-weight:750; }
.quote-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; }
.quote-grid label,.quote-support label { margin-bottom:0; }
.quote-support-inputs { display:grid; grid-template-columns:90px minmax(0,1fr); gap:6px; }
.quote-options { max-height:230px; overflow:auto; margin-bottom:10px; }
.quote-option { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:8px; padding:7px 0; margin:0; }
.quote-option[hidden] { display:none; }
.quote-option input { width:16px; min-height:0; }
.quote-option output { white-space:nowrap; }
.quote-schedule { margin-top:12px; }
.quote-saved { display:grid; grid-template-columns:1fr auto; gap:4px 8px; }
.quote-saved dd { margin:0; }
@media(max-width:650px) { .quote-grid { grid-template-columns:minmax(0,1fr); } }

.quote-options-header:not([hidden]) { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--line); margin-bottom:4px; }

.website-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.website-tabs a{margin:0}
