@charset "UTF-8";
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#172b47;background:#f3f5f8;font-synthesis:none;--blue:#183d70;--navy:#112b4c;--border:#e2e7ef;--muted:#6d7d92;--green:#19705a;--danger:#b13a38;--shadow:0 12px 40px #112b4c0d}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79a8e6;outline-offset:2px}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-.7px;line-height:1.35;margin-bottom:8px}h2{font-size:20px;line-height:1.4;margin-bottom:8px}h3{font-size:16px;margin-bottom:8px}p{margin-bottom:12px}.muted,.subtext{color:var(--muted)}.subtext{font-size:12px;display:block;margin-top:4px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#718399;display:block;margin-bottom:5px}.brand{display:flex;align-items:center;gap:11px;color:inherit;font-weight:700;font-size:18px;white-space:nowrap;line-height:1.2}.brand small{display:block;font-size:9px;letter-spacing:1.9px;font-weight:500;opacity:.65;margin-top:5px}.brand-mark{width:37px;height:37px;border:1px solid #ffffff63;border-radius:50%;display:grid;place-items:center;position:relative}.brand-mark:before,.brand-mark:after{content:"";position:absolute;width:18px;height:25px;border:1.5px solid currentColor;border-radius:50%}.brand-mark:before{left:5px}.brand-mark:after{right:5px}.topbar{height:78px;background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:25px}.topbar .brand{color:white}.topnav{display:flex;align-items:stretch;align-self:stretch;gap:6px}.topnav button{color:#bdcadb;border:0;background:transparent;padding:0 22px;border-bottom:3px solid transparent;font-weight:600}.topnav button.active{color:white;border-bottom-color:#a5c8f6;background:#ffffff09}.topnav button:hover{background:#ffffff0c}.top-actions{display:flex;align-items:center;gap:16px;font-size:12px}.top-actions button{color:#d7e1ee;background:transparent;border:0}.avatar{width:31px;height:31px;background:#ffffff18;border:1px solid #ffffff24;border-radius:50%;display:grid;place-items:center}.container{max-width:1440px;margin:auto;padding:34px 40px 30px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.page-head p{color:var(--muted);margin:0}.head-actions,.toolbar,.button-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.button,.secondary,.danger,.quiet{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:9px 17px;border-radius:7px;font-weight:600;border:1px solid transparent;text-decoration:none;font-size:13px}.button{background:var(--blue);color:white}.button:hover{background:#102f59;text-decoration:none}.secondary{background:white;border-color:#cfd9e5;color:var(--blue)}.secondary:hover{background:#f3f6fa;text-decoration:none}.danger{background:#fff4f3;border-color:#eac5c4;color:var(--danger)}.quiet{color:var(--blue);background:transparent;padding:6px 9px;min-height:30px}.small{padding:5px 10px;min-height:30px;font-size:12px}.icon-button{border:1px solid var(--border);background:white;border-radius:6px;width:33px;height:33px;font-size:22px;color:var(--muted)}.panel,.card{background:white;border:1px solid var(--border);border-radius:10px;box-shadow:0 2px 6px #112b4c02}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 22px;border-bottom:1px solid var(--border)}.panel-head h2,.panel-head h3{margin:0}.panel-body{padding:22px}.section-gap{margin-bottom:22px}.catalog-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px}.filter-panel{align-self:start;padding:21px}.filter-panel h3{font-size:14px;margin-bottom:22px}.filter-panel .field{margin-bottom:19px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;min-width:0}.field>span{font-weight:600;color:#4b5d75}.field b{color:#ba4d42}.field input,.field select,.field textarea,.search-input{width:100%;min-height:40px;padding:9px 11px;border:1px solid #cfd8e4;border-radius:6px;background:#fff;color:#203a5a;outline-offset:1px}.field textarea{min-height:80px;resize:vertical}.field input::placeholder,.search-input::placeholder{color:#9aa7b8}.field input[readonly]{background:#f5f7fa;color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.full{grid-column:1/-1}.search-row{display:flex;gap:12px;align-items:center;margin-bottom:18px}.search-box{position:relative;max-width:460px;width:100%}.search-box:before{content:"⌕";font-size:25px;position:absolute;left:13px;top:4px;color:var(--muted)}.search-input{padding-left:41px}.result-count{margin-left:auto;white-space:nowrap;color:var(--muted);font-size:12px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{overflow:hidden;display:flex;flex-direction:column}.product-visual{height:136px;background:#edf2f8;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.product-visual img{width:100%;height:100%;object-fit:contain;background:white;padding:12px}.lens-drawing{width:85px;height:85px;border:1px solid #a8bbd2;border-radius:50%;position:relative;transform:rotate(-25deg);box-shadow:inset -7px 2px 0 #d6e2ef,8px 8px 0 #dce5f044}.lens-drawing:before{content:"";position:absolute;inset:8px;border:1px solid #b9cbdf;border-radius:50%}.lens-drawing:after{content:"";position:absolute;left:12px;top:17px;width:26px;height:13px;border-top:2px solid white;border-radius:50%;transform:rotate(-35deg)}.product-visual .badge{position:absolute;top:13px;left:13px}.product-index{position:absolute;right:16px;bottom:9px;font-size:28px;font-weight:300;letter-spacing:-1px;color:#9aacbf}.product-content{padding:18px;display:flex;flex:1;flex-direction:column}.product-content h3{font-size:15px;line-height:1.5;min-height:23px;margin-bottom:6px}.product-meta{font-size:12px;color:var(--muted);margin-bottom:20px}.product-bottom{display:flex;align-items:end;justify-content:space-between;gap:8px;margin-top:auto}.price{font-size:21px;font-weight:650;color:#173e6c;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.price small{font-size:11px;color:var(--muted);font-weight:400;letter-spacing:0}.badge{display:inline-flex;align-items:center;white-space:nowrap;gap:4px;border-radius:4px;background:#eaf0f8;color:#355f8d;font-size:11px;padding:3px 8px;font-weight:600}.badge.success{background:#e8f5ef;color:#22735b}.badge.warning{background:#fff3dd;color:#92641c}.badge.danger{background:#fae9e8;color:#a44442}.badge.muted{background:#edf0f4;color:#6d7d92}.badge.info{background:#e9f0fc;color:#3b67a0}.inventory-status{font-size:11px;color:#59768d;margin-top:7px;display:block}.empty{text-align:center;padding:65px 20px;color:var(--muted)}.empty h3{color:#3a526e;margin:12px 0 8px;font-size:16px}.empty p{max-width:420px;margin:auto;line-height:1.7;font-size:13px}.empty-symbol{font-size:38px;color:#94a9c2;font-weight:300}.loading{display:flex;justify-content:center;align-items:center;gap:12px;padding:70px 20px;color:var(--muted)}.loading span{width:20px;height:20px;border:2px solid #d9e3ef;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.notice{padding:13px 16px;background:#f0f5fb;border:1px solid #dce6f3;border-radius:7px;color:#45678c;font-size:12px;line-height:1.7}.notice.warning{background:#fff8eb;border-color:#efe0bd;color:#8c6a29}.notice.error,.form-error{background:#fff0ef;border:1px solid #eac6c3;color:#a03e38;padding:12px 15px;border-radius:6px;font-size:13px}.form-error{margin:16px 0 0}.data-error{padding:30px}.footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--border);color:#8996a7;font-size:11px;padding:20px 0;margin-top:35px}.footer a{color:#70829b}.sync{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.sync:before{content:"";width:6px;height:6px;border-radius:50%;background:#70a58c}.auth-wrap{min-height:calc(100vh - 78px);display:grid;grid-template-columns:1fr 420px;gap:80px;max-width:1120px;margin:auto;align-items:center;padding:60px 32px}.auth-intro .eyebrow{letter-spacing:3px;color:#6583a9;margin-bottom:22px}.auth-intro h1{font-size:42px;line-height:1.35;letter-spacing:-1px;margin-bottom:20px}.auth-intro p{color:#6c7f95;max-width:420px;line-height:1.9}.auth-features{display:grid;gap:18px;margin-top:35px}.auth-feature{display:flex;align-items:center;gap:13px;color:#3e5876;font-size:13px}.auth-feature span{display:grid;place-items:center;width:30px;height:30px;border:1px solid #cbd8e8;border-radius:50%;font-size:11px;color:#6986a9}.auth-card{padding:34px;box-shadow:var(--shadow)}.auth-card .field{margin-bottom:19px}.auth-card h2{font-size:24px;margin:7px 0 10px}.auth-card>p{margin-bottom:28px;color:var(--muted);font-size:13px}.auth-card .button{width:100%;margin-top:7px}.auth-foot{font-size:11px;text-align:center;color:#8c99a9;margin-top:22px}.table-wrap{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;white-space:nowrap}th{background:#f7f9fc;color:#77869a;font-weight:600;font-size:11px;padding:13px 17px;border-bottom:1px solid var(--border)}td{padding:15px 17px;border-bottom:1px solid #edf0f5;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbfd}td strong{font-weight:600;color:#243e60}.numeric{text-align:right;font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.wrap{white-space:normal;min-width:180px;max-width:360px}.table-wrap input[type=number]{width:74px;padding:7px;border:1px solid #d4deea;border-radius:5px}input[type=checkbox]{accent-color:var(--blue);width:16px;height:16px;vertical-align:middle;cursor:pointer}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:24px}.metric{padding:19px 22px;border:1px solid var(--border);border-radius:9px;background:white}.metric-label{font-size:12px;color:var(--muted);display:block;margin-bottom:10px}.metric-value{font-size:25px;font-weight:650;line-height:1.3;letter-spacing:-.7px;color:#203e65;font-variant-numeric:tabular-nums}.metric small{font-size:11px;color:#8a99ac;display:block;margin-top:7px}.tabs{display:flex;gap:8px;overflow:auto;border-bottom:1px solid var(--border);padding:0 20px}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:14px 13px;white-space:nowrap;color:var(--muted);font-size:13px}.tabs button.active{border-bottom-color:var(--blue);color:var(--blue);font-weight:600}.dialog-head{padding:23px 27px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-head h2{margin:0}.dialog-body{padding:25px 27px}dialog{border:1px solid #d9e2ee;border-radius:12px;padding:0;width:min(650px,calc(100vw - 32px));max-height:calc(100vh - 40px);color:#203a5a;background:white;box-shadow:0 30px 100px #102e4e44;overflow:auto}dialog.wide{width:min(1150px,calc(100vw - 32px))}dialog::backdrop{background:#10243e70;backdrop-filter:blur(3px)}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);padding-top:20px;margin-top:24px}.dialog-actions .left{margin-right:auto}.matrix{max-height:400px;border:1px solid var(--border);border-radius:7px}.matrix table{font-size:12px}.matrix th{position:sticky;top:0;z-index:2;min-width:90px;text-align:center;padding:10px;background:#eef3f9}.matrix th:first-child{position:sticky;left:0;z-index:3}.matrix td:first-child{position:sticky;left:0;background:#f7f9fc;font-weight:600;color:#526d8e;z-index:1}.matrix td{padding:7px;text-align:center}.matrix input[type=number]{width:65px;text-align:center;padding:7px 4px}.matrix .cell-stock{display:block;font-size:10px;color:#98a7b8;margin-top:3px}.matrix td.unavailable{background:#f5f7fa;color:#b8c1cd}.order-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:22px}.order-summary{background:#f7f9fc;border:1px solid var(--border);padding:20px;border-radius:8px;align-self:start}.summary-line{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px;font-size:12px;color:#6a7c94}.summary-line.total{border-top:1px solid var(--border);padding-top:15px;margin-top:15px;color:#263e5b;font-weight:600}.order-summary .button{width:100%;margin-top:8px}.selected-lines{max-height:240px;overflow:auto;margin:12px 0;font-size:11px}.selected-lines>div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--border)}.prescription-grid{display:grid;grid-template-columns:38px repeat(4,minmax(0,1fr));gap:10px;align-items:end;margin-bottom:20px}.eye-label{height:40px;display:grid;place-items:center;font-size:15px;font-weight:700;border:1px solid #c5d4e6;background:#f0f5fc;border-radius:6px}.checkout-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:23px;align-items:start}.address-card{border:1px solid var(--border);padding:18px;border-radius:8px;background:#fbfcfe}.order-card{margin-bottom:17px}.order-card .panel-head{font-size:12px;background:#fafbfd;border-radius:9px 9px 0 0}.order-card .panel-body{padding:0}.order-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 22px;border-top:1px solid var(--border);font-size:12px}.detail-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;color:#63768f;font-size:12px}.detail-list strong{color:#253f60;margin-left:8px;font-weight:500}#toast-region{position:fixed;right:25px;top:25px;display:grid;gap:10px;z-index:1000;max-width:min(420px,calc(100vw - 40px))}.toast{background:#173f34;color:white;padding:14px 20px;border:1px solid #2c6252;border-radius:8px;box-shadow:0 10px 35px #162b4130;font-size:13px}.toast.error{background:#8f3731;border-color:#a4524d}.admin-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:#c4d1e1;display:flex;flex-direction:column;padding:27px 18px;position:sticky;top:0;height:100vh}.sidebar .brand{font-size:17px;margin:0 6px 36px;color:white}.sidebar .brand-mark{width:32px;height:32px;flex-shrink:0}.sidebar .eyebrow{color:#587294;margin:18px 13px 8px;letter-spacing:1px;font-size:10px}.side-nav{display:grid;gap:5px}.side-nav button{border:0;background:none;text-align:left;color:#aebfd5;padding:11px 14px;border-radius:6px;display:flex;gap:13px;align-items:center;font-size:13px}.side-nav button .nav-icon{width:17px;color:#6f89ac;font-size:16px;text-align:center}.side-nav button.active{background:#26476f;color:white}.side-nav button.active .nav-icon{color:#acc8ee}.side-nav button:hover{background:#ffffff0b}.sidebar-foot{margin-top:auto;font-size:10px;line-height:1.8;padding:24px 12px 0;color:#7188a6}.sidebar-foot a{color:#a6b8d0}.admin-topbar{height:68px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:white;gap:14px}.admin-topbar .top-actions{color:#687e98}.admin-topbar .top-actions button{color:var(--blue)}.admin-topbar .avatar{background:#edf2fa;border-color:#dce5f3;color:var(--blue)}.admin-content{padding:30px;max-width:1750px;margin:auto}.admin-content h1{font-size:26px}.admin-content .page-head{margin-bottom:24px}.workspace-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-action{background:#f7f9fc;border:1px solid var(--border);border-radius:7px;padding:18px;text-align:left;color:#26476e}.quick-action b{display:block;font-size:13px;margin-bottom:6px}.quick-action span{font-size:11px;color:#7b8ba0}.section-toolbar{padding:17px 20px;display:flex;justify-content:space-between;gap:14px;align-items:center;border-bottom:1px solid var(--border)}.section-toolbar h3{margin:0}.mobile-menu{display:none}.finance-metrics{grid-template-columns:repeat(3,1fr)}.split-note{font-size:11px;color:#8998ab;line-height:1.7}.inline-checkbox{display:flex;gap:8px;align-items:center;font-size:12px;color:#62758f}.sku-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 32px;gap:8px;margin-top:9px}.sku-row input{width:100%;padding:8px;border:1px solid #d0dbe8;border-radius:5px}.sku-head{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 32px;gap:8px;font-size:11px;color:#8090a4}.row-number{font-size:11px;color:#a0aabb}.code{font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px}.prescription-detail{white-space:normal;max-width:600px;line-height:1.8;font-size:12px;padding:12px;background:#f7f9fc;border-radius:5px}.account-hero{display:flex;align-items:center;gap:20px;padding:28px}.account-hero .avatar{width:60px;height:60px;color:var(--blue);background:#e8eef7;border-color:#dbe4f0;font-size:23px}.account-hero h2{margin-bottom:3px}.payment-choice{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid var(--border);border-radius:6px;margin-bottom:10px;font-size:13px}.payment-choice:has(input:checked){border-color:#7c9bc0;background:#f1f6fc}.payment-choice input{accent-color:var(--blue)}.payment-choice small{color:#8595aa;font-size:11px;margin-left:auto}.inline-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.inline-form .field{flex:1;min-width:130px}.stack{display:grid;gap:18px}.danger-text{color:var(--danger)}
@media(min-width:1600px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.topbar{padding:0 24px}.topnav button{padding:0 15px}.container{padding:28px 24px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-layout{grid-template-columns:185px minmax(0,1fr);gap:18px}.admin-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-left:13px;padding-right:13px}.admin-content{padding:24px}.metric-grid{grid-template-columns:repeat(2,1fr)}.workspace-grid{grid-template-columns:1fr}.auth-wrap{gap:40px;grid-template-columns:1fr 380px}.order-layout{grid-template-columns:1fr}.order-summary{position:static}.selected-lines{max-height:140px}.checkout-grid{grid-template-columns:1fr 280px}}
@media(max-width:760px){body{font-size:13px}.topbar{height:auto;min-height:68px;padding:14px 18px;flex-wrap:wrap;gap:14px}.topbar .brand{font-size:17px}.topnav{order:3;flex-basis:100%;margin:0 -18px -14px;border-top:1px solid #ffffff13;justify-content:center}.topnav button{padding:13px 17px;font-size:12px}.top-actions{gap:10px}.top-actions .user-name{display:none}.container{padding:24px 16px}.page-head{align-items:flex-start;gap:15px;flex-wrap:wrap;margin-bottom:21px}h1{font-size:25px}.page-head p{font-size:12px}.head-actions{width:100%}.catalog-layout{grid-template-columns:1fr;gap:18px}.filter-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:15px}.filter-panel h3{display:none}.filter-panel .field{margin:0;font-size:11px}.filter-panel .field input,.filter-panel .field select{min-height:35px;padding:7px}.filter-panel>.quiet{grid-column:1/-1;justify-self:end}.product-grid{gap:12px}.product-visual{height:105px}.product-content{padding:13px}.product-content h3{font-size:13px}.product-meta{font-size:10px;margin-bottom:15px}.product-bottom{align-items:start;flex-direction:column;gap:10px}.product-bottom .button{width:100%}.price{font-size:19px}.product-index{font-size:23px}.lens-drawing{width:65px;height:65px}.search-row{gap:8px}.result-count{font-size:10px}.auth-wrap{display:block;padding:35px 20px;min-height:auto;max-width:500px}.auth-intro{margin-bottom:27px}.auth-intro h1{font-size:31px}.auth-intro p{font-size:13px}.auth-features{display:none}.auth-card{padding:25px}.auth-card h2{font-size:21px}.auth-intro .eyebrow{margin-bottom:13px}.footer{flex-direction:column;gap:6px;margin-top:26px;font-size:10px}.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.dialog-head{padding:20px}.dialog-body{padding:20px}dialog{max-height:calc(100dvh - 20px);width:calc(100vw - 20px)}dialog.wide{width:calc(100vw - 20px)}.prescription-grid{grid-template-columns:28px repeat(2,minmax(0,1fr));gap:10px}.prescription-grid .eye-label{grid-row:span 2;align-self:center}.prescription-grid>.field:nth-child(4){grid-column:2}.checkout-grid{grid-template-columns:1fr}.panel-head{padding:17px}.panel-body{padding:18px}.order-footer{padding:16px;flex-wrap:wrap}.metric{padding:16px}.metric-value{font-size:22px}.metric-grid{gap:12px}.admin-shell{display:block}.sidebar{position:fixed;left:-240px;top:0;width:220px;z-index:30;transition:left .2s;box-shadow:10px 0 40px #112b4c33}.sidebar.open{left:0}.admin-topbar{padding:0 17px;height:61px}.mobile-menu{display:inline-flex;border:0;background:none;font-size:22px;color:var(--blue);padding:0 9px 0 0}.admin-content{padding:23px 16px}.admin-content h1{font-size:24px}.finance-metrics{grid-template-columns:repeat(2,1fr)}.section-toolbar{padding:14px;flex-wrap:wrap}.tabs{padding:0 8px}.tabs button{padding:12px 11px;font-size:12px}.table-wrap th,.table-wrap td{padding:12px}.detail-list{grid-template-columns:1fr}.quick-actions{gap:9px}.quick-action{padding:15px}.sku-row{min-width:560px}.sku-head{min-width:560px}.sku-editor{overflow:auto}.dialog-actions{flex-wrap:wrap}.dialog-actions .left{width:100%;margin-bottom:5px}.notice{font-size:11px}.sidebar-foot{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

[hidden]{display:none!important}
/* The customer and operator follow the same six-level lens classification. */
.catalog-filter-bar{border-bottom:1px solid var(--border)}
.catalog-filter-actions{justify-content:flex-end;margin-top:12px}
.catalog-path{font-size:11px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere;margin:0 0 15px}
.catalog-name{display:block;white-space:normal;min-width:140px;max-width:260px;overflow-wrap:anywhere}
.sidebar{overflow-y:auto}.sidebar>.brand,.sidebar>.eyebrow,.sidebar>.side-nav,.sidebar-foot{flex-shrink:0}.sidebar .brand{margin-bottom:20px}.native-nav button{padding-top:9px;padding-bottom:9px}.side-nav button[hidden]{display:none}
/* CRMEB-style primary rail and adjacent submenu panel share one workspace. */
@font-face{font-family:LensCRMEBIcons;src:url('/admin/system_static/fonts/element-icons.535877f5.woff') format('woff');font-style:normal;font-weight:400;font-display:block}
.admin-shell{grid-template-columns:88px minmax(0,1fr)}
.admin-shell.workspace-shell,.admin-shell.native-shell{grid-template-columns:88px 208px minmax(0,1fr)}
.admin-shell>.sidebar{padding:10px 0 12px;width:88px;background:#262b33;color:#fff;box-shadow:none;scrollbar-width:thin;scrollbar-color:#636870 transparent}
.sidebar>.brand{justify-content:center;margin:0 0 8px;min-height:58px}.sidebar>.brand>span:last-child{display:none}
.admin-brand{cursor:default}
.brand-image,.admin-brand-image{display:block;flex-shrink:0;width:40px;height:40px;object-fit:contain;border-radius:4px}
.sidebar>.brand .admin-brand-image{width:64px;height:58px}
.sidebar>.eyebrow{display:none}.sidebar>.side-nav{gap:0}
.sidebar .side-nav button{width:100%;min-height:62px;padding:8px 3px;gap:4px;flex-direction:column;justify-content:center;border-radius:0;font-size:14px;font-weight:400;line-height:1.4;text-align:center;color:#fff}
.sidebar .side-nav button .nav-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:20px;line-height:24px;color:#fff}
.sidebar .native-rail-icon{font-family:LensCRMEBIcons!important;font-style:normal;font-weight:400;line-height:1;font-size:20px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.sidebar .side-nav button.active{background:#0057ff;color:#fff}.sidebar .side-nav button.active .nav-icon{color:#fff}
.sidebar .side-nav button:hover{background:#ffffff14}.sidebar .side-nav button.active:hover{background:#0057ff}
.sidebar-foot{padding:16px 3px 0;text-align:center;line-height:1.5}.sidebar-foot a{display:block;font-size:10px;margin:10px 0}
.native-menu-module>button{width:100%}
.native-submenu-panel{position:sticky;top:0;height:100dvh;min-height:0;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden;z-index:2}
.native-submenu-heading{height:68px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--border);font-size:17px;color:#172b47}
.native-submenu-heading button{display:none;background:none;border:0;font-size:24px;color:#6d7d92}
.native-submenu-content{min-height:0;flex:1;overflow:auto;padding:12px 0}
.native-submenu-content .native-menu-item{display:block;border:0;background:none;color:#41536c;width:100%;text-align:left;font-size:14px;padding:17px 24px;line-height:1.55;white-space:normal}
.native-submenu-content .native-menu-item:hover{background:#f4f7fc;color:#1f59d9}
.native-submenu-content .native-menu-item.active{background:#e8efff;color:#1557e5;font-weight:600;box-shadow:inset 3px 0 #1557e5}
.native-menu-group>summary{cursor:pointer;color:#41536c;font-size:14px;padding:16px 20px 16px 24px;line-height:1.55;list-style:none;display:flex;align-items:center;gap:8px}
.native-menu-group>summary::-webkit-details-marker{display:none}.native-menu-group>summary:after{content:'›';margin-left:auto;color:#8797ae}.native-menu-group[open]>summary:after{transform:rotate(90deg)}
.native-menu-group>summary:hover{background:#f7f9fc;color:#1f59d9}.native-menu-group>div{padding-left:12px}.native-menu-group>summary:focus-visible{outline:2px solid #79a8e6;outline-offset:-3px}
.nav-backdrop{display:none}
.native-shell{height:100dvh;min-height:0;overflow:hidden}.native-shell>section{display:flex;flex-direction:column;min-width:0;min-height:0;height:100dvh}
.native-shell .admin-topbar{flex-shrink:0}.native-shell .sync{display:none}
.native-content{max-width:none;padding:0;margin:0;display:flex;flex-direction:column;flex:1;min-height:0;width:100%}
.native-content>.page-head,.native-content>.footer{display:none}
.native-content>#content{display:flex;flex-direction:column;flex:1;min-height:0}
.native-content .data-error{margin:24px}.native-workspace{display:flex;flex:1;min-height:0;overflow:hidden;background:#f3f5f8;border:0;border-radius:0}
.native-workspace iframe{display:block;width:100%;height:100%;min-height:0;flex:1;border:0;background:#f3f5f8}
@media(max-width:760px){.workspace-shell .admin-topbar{padding:0 12px;gap:8px}.workspace-shell .top-actions{gap:8px}.workspace-shell .avatar,.workspace-shell .sync{display:none}.workspace-shell .admin-topbar>div:first-child{min-width:0}.workspace-shell .admin-topbar>div:first-child>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.native-content .data-error{margin:16px}}

@media(max-width:760px){
  .admin-shell,.admin-shell.workspace-shell,.admin-shell.native-shell{display:block}
  .admin-shell>.sidebar{position:fixed;left:-88px;top:0;height:100dvh;z-index:32;transition:left .18s}
  .admin-shell>.sidebar.open{left:0}
  .native-submenu-panel{position:fixed;left:88px;top:0;width:min(220px,calc(100vw - 100px));height:100dvh;z-index:31;visibility:hidden;transform:translateX(-110%);transition:transform .18s,visibility .18s;box-shadow:8px 0 24px #112b4c1a}
  .native-submenu-panel.open{visibility:visible;transform:translateX(0)}
  .native-submenu-heading{height:61px;padding:0 18px}.native-submenu-heading button{display:block}
  .native-submenu-content .native-menu-item{padding:15px 18px}
  .nav-backdrop{display:block;position:fixed;inset:0;z-index:29;border:0;background:#10243e66}
}

.footer{flex-wrap:wrap}
.footer-platform{display:grid;gap:6px;min-width:0}
.filing-links{display:flex;flex-wrap:wrap;gap:4px 12px;line-height:1.65;overflow-wrap:anywhere}
.filing-links[hidden]{display:none}
.filing-links>a,.filing-links>span{min-width:0;max-width:100%}
.auth-foot .filing-links{justify-content:center;margin-top:7px}

/* Keep wide ERP tables inside their own scroll areas. */
#erp-editor #erp-fields {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

#erp-editor #erp-fields > * {
  min-width: 0;
}

#erp-editor .table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

#erp-editor .dialog-actions {
  flex-wrap: wrap;
}

#erp-editor .dialog-actions > button,
#erp-editor .dialog-actions > span,
#erp-editor [data-pm-preview-unit] {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

#erp-editor p {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Keep related inventory fields together instead of stretching across a wide screen. */
.erp-inventory-table {
  width: 1080px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  -webkit-overflow-scrolling: touch;
}
.erp-inventory-table:focus-visible { outline: 2px solid #6e98cf; outline-offset: 2px; }
.erp-inventory-table::-webkit-scrollbar { height: 12px; }
.erp-inventory-table::-webkit-scrollbar-track { background: #edf1f6; border-radius: 6px; }
.erp-inventory-table::-webkit-scrollbar-thumb { background: #91a4bd; border: 2px solid #edf1f6; border-radius: 6px; }
.erp-inventory-table::-webkit-scrollbar-thumb:hover { background: #647f9f; }
.erp-inventory-table table { width: 1080px; min-width: 1080px; table-layout: fixed; }
.erp-inventory-table:has(.inventory-col-unit-cost) { width: 1184px; }
.erp-inventory-table table:has(.inventory-col-unit-cost) { width: 1184px; min-width: 1184px; }
.erp-inventory-table .inventory-col-warehouse { width: 148px; }
.erp-inventory-table .inventory-col-sku { width: 76px; }
.erp-inventory-table .inventory-col-product { width: 384px; }
.erp-inventory-table .inventory-col-quantity { width: 88px; }
.erp-inventory-table .inventory-col-cost { width: 120px; }
.erp-inventory-table .inventory-col-unit-cost { width: 104px; }
.erp-inventory-table .inventory-col-action { width: 104px; }
.erp-inventory-table th, .erp-inventory-table td { padding: 12px; }
.erp-inventory-table th:nth-child(n+4), .erp-inventory-table td:nth-child(n+4) { text-align: right; font-variant-numeric: tabular-nums; }
.erp-inventory-table td:nth-child(1), .erp-inventory-table td:nth-child(3) { white-space: normal; }
.inventory-warehouse-name, .inventory-warehouse-meta, .inventory-product-name, .inventory-specification {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.inventory-warehouse-meta { font-size: 10px; line-height: 1.5; }
.inventory-product-name { line-height: 1.6; }
.inventory-specification { font-size: 11px; }
.erp-inventory-toolbar { flex-wrap: wrap; justify-content: flex-start; gap: 10px; padding: 12px 0; }
.erp-inventory-toolbar > button { max-width: 100%; white-space: normal; }
.erp-inventory-pagination { flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.erp-inventory-pagination .field { flex: 0 0 112px; min-width: 0; }
