:root{color-scheme:light;--background:#f6f7f3;--foreground:#1b2923;--card:#fff;--primary:#143f36;--primary-foreground:#fff;--muted:#edf2eb;--muted-foreground:#55675e;--border:#dce5dc;--ring:#477763;--radius:12px;--side:236px;--shadow:0 1px 2px #182f2110}
body{background:var(--background);color:var(--foreground);font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
a{color:var(--primary)}button,select{touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.sidebar{width:var(--side);background:#fbfcf9;color:var(--foreground);border-right:1px solid var(--border);height:100dvh;padding:17px 14px;gap:14px}
.logo,.shell-brand{display:flex;align-items:center;gap:11px;justify-content:flex-start;border:0;background:transparent;padding:8px}
.logo img,.shell-brand img{width:40px;height:40px;display:block}
.brand-title{color:var(--foreground);font-size:17px;font-weight:750;letter-spacing:.04em;display:block}
.brand-sub{color:var(--muted-foreground);font-size:11px;display:block;margin-top:3px}
.nav{padding:4px 0;display:flex;flex-direction:column;gap:4px}
.nav a{margin:0;min-height:43px;gap:11px;padding:9px 12px;color:var(--muted-foreground);font-size:14px;border-radius:8px}
.nav a svg,.mobile-nav svg,.topbar svg{width:18px;height:18px;flex:none}
.nav a:hover,.nav a.active{color:var(--primary);background:#e5eee6}
.side-foot{padding:13px 3px 0;border-color:var(--border)}
.side-foot label{color:var(--muted-foreground);font-size:12px}
.side-foot select,.side-foot button{background:#fff;color:var(--foreground);border:1px solid var(--border);min-height:38px;font-size:13px;border-radius:8px}
.side-foot button:hover{background:var(--muted);color:var(--primary);border-color:var(--border)}
.topbar{position:sticky;top:0;z-index:45;margin-left:var(--side);height:63px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px;background:#fcfdfaf5;border-bottom:1px solid var(--border)}
.topbar strong{font-size:14px}.topbar .shell-brand,.mobile-nav,.mobile-sheet{display:none}
.shell-user{display:flex;gap:8px;align-items:center;color:var(--muted-foreground);font-size:13px}.shell-user .avatar{display:grid;place-items:center;background:#dfece2;color:var(--primary);font-weight:750;min-width:30px;height:30px;border-radius:50%}
.app{display:block}.main{margin-left:var(--side);padding:26px 28px 60px;max-width:1820px}.main #view{max-width:1440px;margin:auto}
.page-head{align-items:center;margin-bottom:22px;gap:16px}.page-head h1{font-size:30px;letter-spacing:-.03em;line-height:1.25}.page-head p{font-size:13px;color:var(--muted-foreground);margin-top:7px;line-height:1.5}
.card,.kpi,.wo-card,.warn-row,.map-wrap,.tbl-wrap{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.card{padding:19px}.kpi{padding:17px;min-width:0}.kpi .k{color:var(--muted-foreground);font-size:13px;font-weight:600}.kpi .v{font-size:27px;letter-spacing:-.035em;color:var(--primary)!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.kpi .s,.muted{color:var(--muted-foreground);font-size:12px}
.kpi::before{content:"";display:block;width:22px;height:4px;border-radius:3px;background:#78a791;margin-bottom:12px}.kpi:nth-child(2)::before{background:#b89558}.kpi:nth-child(3)::before{background:#64817c}
.grid4{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dashboard-charts .card{min-width:0}
.chart{height:172px;background:repeating-linear-gradient(to top,transparent 0,transparent 32px,#edf1ed 33px,#edf1ed 34px);margin:13px 0 8px;scrollbar-width:thin}.bar.b1{background:#376e59}.bar.b2{background:#b89459}.bar.b3{background:#72938f}.legend span:nth-child(1) i{background:#376e59!important}.legend span:nth-child(2) i{background:#b89459!important}.bar-x{color:#566962}
.wo-card{border-left-width:3px;padding:14px 16px}.wo-card:hover{transform:none;background:#fbfdfb}.wo-sub{color:var(--muted-foreground)}
.btn,.sc-button,.tabs button{display:inline-flex;justify-content:center;align-items:center;gap:6px;background:#fff;color:var(--foreground);border:1px solid var(--border);border-radius:8px;min-height:39px;padding:7px 12px;font:600 13px/1.25 inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.btn:hover,.sc-button:hover,.tabs button:hover{background:var(--muted);color:var(--primary)}.btn.primary,.sc-default,.tabs button.on{background:var(--primary);color:var(--primary-foreground);border-color:var(--primary)}.btn.primary:hover,.sc-default:hover{background:#285748;color:#fff}.btn.sm{min-height:34px}.btn.ghost,.sc-ghost{border-color:transparent;background:transparent}.btn:disabled,.sc-button:disabled{opacity:.55;cursor:default}
.field>span{color:var(--foreground);font-weight:620;font-size:13px}.field input,.field select,.field textarea{border-color:var(--border);border-radius:8px;min-height:40px;color:var(--foreground)}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--ring);box-shadow:0 0 0 3px #47776322}.field textarea{resize:vertical}
th{background:#f0f4ef;color:#41584d;font-size:12px}td{border-color:#edf1ed}tr:hover td{background:#f8fbf7}.empty{color:var(--muted-foreground);padding:36px 14px}.tabs{gap:6px}
.modal-mask{background:#15281eb0;backdrop-filter:blur(3px)}.modal{border-radius:16px;overflow:hidden;box-shadow:0 20px 56px #10281e3d}.modal-head,.modal-foot{padding:15px 19px;border-color:var(--border)}.modal-head h3{font-size:18px}.modal-head .x{width:40px;height:40px;border-radius:8px;color:var(--foreground)}.modal-head .x:hover{background:var(--muted)}.modal-body{padding:18px;overscroll-behavior:contain}.modal-foot:empty{display:none}.quote-row{background:#f4f7f2;border-color:var(--border);border-radius:10px}.quote-result,#saveStatus{color:var(--primary);background:#e5f0e7}
.picker{background:#f7faf6;border:1px dashed #a9bdae;border-radius:10px;padding:12px;min-width:0}.picker-main{display:flex;align-items:center;gap:9px}.picker-content{min-width:0;flex:1;display:grid;gap:4px;font-size:12px;color:var(--muted-foreground)}.picker-content strong{font-size:13px;color:var(--foreground)}.picker-icon{display:grid;place-items:center;width:33px;height:33px;flex:none;border-radius:9px;background:#e6efe6;color:var(--primary)}.picker-files{list-style:none;display:grid;gap:5px;margin-top:10px}.picker-files li{display:flex;gap:7px;align-items:center;padding:3px 5px 3px 7px;border-radius:7px;background:#fff}.picker-files li>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-files small{flex:none;color:var(--muted-foreground)}.picker-files .sc-button{min-height:34px;min-width:34px;padding:4px}
.login-mask{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);background:#f8faf5;overflow:auto}
.login-brand{min-height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:42px clamp(24px,6vw,88px);background:radial-gradient(ellipse at 80% 65%,#275a48 0,transparent 55%),#102f28;color:#f3ebdb;position:relative;overflow:hidden}
.login-brand img{width:58px;height:58px;border:1px solid #86a69480;border-radius:15px}.login-brand .brand-title{color:#f3ebdb}.login-brand .brand-sub{color:#c7d8c9}
.login-brand .mesh{position:absolute;width:min(42vw,660px);height:min(42vw,660px);border:1px solid #b5c9b938;border-radius:50%;right:-10%;bottom:-26%;box-shadow:0 0 0 48px #b5c9b920,0 0 0 96px #b5c9b916,0 0 0 144px #b5c9b90d;pointer-events:none}
.login-brand .shell-brand{position:relative;z-index:1;padding:0}.login-hero{position:relative;z-index:1;margin:60px 0 15vh}.login-hero h1{font-size:clamp(38px,5vw,76px);font-weight:650;line-height:1.16;letter-spacing:-.04em}.login-hero p{margin:18px 0 0;color:#cbdfce;font-size:15px;line-height:1.65}
.login-area{display:flex;align-items:center;justify-content:center;padding:28px}.login-box{width:min(100%,425px);border-radius:16px;border:1px solid var(--border);box-shadow:var(--shadow);padding:36px;background:#fff}.login-box h2{font-size:26px;letter-spacing:-.02em}.login-box p{font-size:13px;color:var(--muted-foreground);margin:7px 0 24px}.login-box input{margin:0;border:1px solid var(--border);color:var(--foreground);font-size:16px}.login-box button{background:var(--primary);margin:0;min-height:44px}.login-box button:hover{background:#285748}.login-box .login-err{margin:0 0 7px}
@media(max-width:980px){.dashboard-charts{grid-template-columns:1fr}.main,.topbar{padding-left:18px;padding-right:18px}.kpi .v{font-size:22px}}
@media(max-width:760px){
.sidebar{display:none}.topbar{height:56px;margin:0;padding:0 13px}.topbar #sectionName{display:none}.topbar .shell-brand{display:flex;padding:0}.topbar .shell-brand img{height:33px;width:33px}.topbar .brand-sub{display:none}
.main{margin:0;padding:17px 12px calc(88px + env(safe-area-inset-bottom))}.page-head{gap:10px;align-items:start;margin-bottom:14px}.page-head h1{font-size:24px}.page-head p{font-size:12px;margin-top:5px}.page-head>div:first-child{min-width:0}
.grid4{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.card,.kpi{padding:12px}.kpi .v{font-size:21px}.kpi::before{margin-bottom:8px}.chart{height:145px}.btn,.btn.sm,.sc-button,.tabs button{min-height:42px}
.mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);bottom:0;left:0;right:0;z-index:70;padding:5px 5px calc(5px + env(safe-area-inset-bottom));background:#fcfdfa;border-top:1px solid var(--border)}
.mobile-nav button{display:grid;justify-items:center;align-content:center;gap:4px;min-height:49px;background:none;border:0;color:var(--muted-foreground);font-size:11px;font-weight:650;border-radius:8px}.mobile-nav button.active,.mobile-nav button[aria-expanded=true]{background:#e5eee6;color:var(--primary)}
.mobile-sheet:not([hidden]){display:block;position:fixed;z-index:75;inset:0;background:#15281e88}.mobile-sheet-content{position:absolute;left:0;right:0;bottom:0;max-height:82dvh;overflow:auto;background:#fff;padding:16px 14px calc(16px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0}.mobile-sheet-head{display:flex;justify-content:space-between;align-items:center;font-size:17px;margin-bottom:10px}.mobile-sheet-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-sheet-links button{justify-content:flex-start}.mobile-sheet .field{margin-top:14px}
.modal-mask{align-items:flex-end;padding:0}.modal,.modal.wide{width:100%;max-height:94dvh;border-radius:16px 16px 0 0}.modal-body{padding:13px}.modal-head,.modal-foot{padding:10px 13px}.modal-foot{padding-bottom:calc(10px + env(safe-area-inset-bottom));gap:6px}.modal-foot .btn{max-width:100%;white-space:normal}.modal-head h3{font-size:16px}
.field input,.field select,.field textarea{font-size:16px;min-height:43px}.wo-actions{justify-content:flex-start}.wo-card{padding:12px}.detail-grid>div{min-width:0;overflow-wrap:anywhere}.detail-grid{gap:8px}
.tbl-wrap.mobile-cards{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}.mobile-cards table,.mobile-cards tbody{display:block;width:100%}.mobile-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.mobile-cards tr{display:grid;gap:6px;margin:0 0 9px;padding:10px 11px;background:#fff;border:1px solid var(--border);border-radius:10px}.mobile-cards td{display:grid;grid-template-columns:minmax(70px,.73fr) minmax(0,1.5fr);align-items:start;gap:8px;padding:0;border:0;white-space:normal;overflow-wrap:anywhere}.mobile-cards td::before{content:attr(data-label);font-size:12px;color:var(--muted-foreground)}.mobile-cards td[colspan]{display:block;padding:12px}.mobile-cards td[colspan]::before{display:none}.mobile-cards td[data-label="操作"]{display:block;border-top:1px solid #edf1ed;padding-top:7px}.mobile-cards td[data-label="操作"]::before{display:none}
.login-mask{display:block}.login-brand{min-height:0;padding:24px 18px}.login-brand img{width:44px;height:44px}.login-hero{margin:22px 0 8px}.login-hero h1{font-size:29px}.login-hero p{font-size:12px;margin-top:7px}.login-area{padding:16px 13px}.login-box{padding:21px;width:min(100%,425px)}.login-box h2{font-size:23px}
}
@media(max-width:400px){.picker-main{flex-wrap:wrap}.picker-main .sc-button{width:100%}.picker-icon{width:30px;height:30px}.quote-row .grid2>.field:has(textarea){grid-column:1/-1}}

/* Shared navigation and list density */
.list-warehouse{width:180px;margin-bottom:0}
:root{--background:#f5f6f8;--foreground:#202938;--primary:#25364c;--muted:#edf0f5;--muted-foreground:#546174;--border:#dfe4eb;--ring:#5d7290}
.sidebar,.topbar{background:#fcfdfe}.nav a:hover,.nav a.active{background:#e9edf4}
.shell-user .avatar{background:#e9edf4}
.kpi::before,.kpi:nth-child(2)::before,.kpi:nth-child(3)::before{height:3px;width:17px;background:#7f91aa}
.bar.b1,.legend span:nth-child(1) i{background:#465e80!important}
.bar.b2,.bar.b3,.legend span:nth-child(2) i{background:#a3afbd!important}
th{background:#f0f2f7;color:#48566a}
.picker{background:#f7f9fc;border-color:#b5c1d0}.picker-icon{background:#e9eef5}
@media(max-width:760px){
  .topbar{height:52px}.topbar .shell-brand img{width:29px;height:29px}.topbar .brand-title{font-size:15px}
  .mobile-nav{background:#fcfdfe;padding-top:3px}.mobile-nav button.active,.mobile-nav button[aria-expanded=true]{background:transparent}
  .mobile-nav button.active svg,.mobile-nav button[aria-expanded=true] svg{stroke:#263b58}
  .mobile-nav button.active::after,.mobile-nav button[aria-expanded=true]::after{content:"";width:10px;height:2px;border-radius:2px;background:#7186a2}
  .mobile-nav button:not(.active):not([aria-expanded=true])::after{content:"";height:2px}
  .mobile-nav svg{width:17px;height:17px}
  .mobile-sheet-content{padding:12px 16px max(14px,env(safe-area-inset-bottom));border-radius:16px 16px 0 0}
  .mobile-sheet-content::before{content:"";display:block;width:29px;height:3px;background:#cbd3df;border-radius:4px;margin:0 auto 6px}
  .mobile-sheet-head{margin-bottom:4px}.sheet-close{border-color:transparent;color:var(--muted-foreground)}
  .mobile-sheet-links{display:flex;flex-direction:column;gap:0}
  .mobile-sheet-links button{border:0;border-radius:0;border-bottom:1px solid #edf0f5;background:transparent;justify-content:flex-start;min-height:44px;padding:8px 7px;gap:11px;font-size:14px}
  .mobile-sheet-links button::after{content:"";width:6px;height:6px;transform:rotate(-45deg);border-right:1px solid #8995a6;border-bottom:1px solid #8995a6;margin-left:auto;margin-right:6px}
  .mobile-sheet-links button svg{width:17px;height:17px;flex:none;color:#536783}
  .mobile-sheet-content>.row{margin-top:12px}.mobile-sheet-content>.row .btn{border-color:transparent;background:#f0f3f7}
  .list-warehouse{width:min(180px,100%)}
}

/* Lucide symbols share a single stroke and fixed inline dimensions. */
.icon-sprite{position:absolute;overflow:hidden;pointer-events:none}
.ui-icon{display:inline-block;width:16px;height:16px;flex:none;vertical-align:-.18em;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.btn .ui-icon,.file-chip .ui-icon{width:15px;height:15px}.modal-head .x{display:grid;place-items:center}.modal-head .x .ui-icon{width:19px;height:19px}
.side-foot button{display:flex;align-items:center;justify-content:center;gap:7px}
.sn-hint .ui-icon{vertical-align:middle;margin-right:3px}
.list-filters .field{margin-bottom:0}.list-query{flex:1;min-width:180px}
.wo-card{border-left:1px solid var(--border);box-shadow:none;min-width:0}
.wo-card:hover{background:#f9fbfe;box-shadow:var(--shadow)}
.wo-top{gap:5px 8px;margin-bottom:9px}.wo-code{font-size:12px;font-weight:600;color:var(--muted-foreground);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.wo-device{color:var(--foreground);font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.wo-serial{display:block;font-size:12px;color:var(--muted-foreground);margin-top:3px;font-variant-numeric:tabular-nums}
.wo-sub{gap:4px 12px;margin-top:7px;color:var(--muted-foreground);line-height:1.5}.wo-sub small{font-size:inherit;color:#697689;margin-right:5px}
.wo-sub .wo-client{font-weight:650;color:#34445b}
.wo-actions:empty{display:none}
.badge.gray{background:#f0f2f6;color:#586477}
.modal>form{display:flex;flex-direction:column;min-height:0}.modal>form .modal-body{min-height:0}
.btn.primary:hover,.sc-default:hover,.login-box button:hover{background:#374f6c}
.quote-row{background:#f6f8fb}.quote-result,#saveStatus{background:#eaf0f7}
@media(max-width:760px){
  .list-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:start}
  .list-filters>.field{width:100%!important;min-width:0!important}
  .list-filters>.list-query{grid-column:1/-1}
  .list-filters select{min-width:0;text-overflow:ellipsis}
  .wo-card{padding:13px 12px}
  .wo-card .wo-top .badge{font-size:11px}
  .wo-sub .wo-client{width:100%;font-size:13px}
  .wo-actions{padding-top:8px;margin-top:9px;border-top:1px solid #edf0f5}
  .detail-grid{gap:0;background:#f8f9fc;border:1px solid var(--border);border-radius:10px;padding:3px 10px}
  .detail-grid>div{padding:8px 5px;line-height:1.45}
  .detail-grid label{color:var(--muted-foreground)}
}

.status-badge{display:inline-flex;align-items:center;gap:5px;background:#eef2f7;color:#43536a}.status-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--status-color);flex:none}
.mobile-sheet-links button .ui-icon{width:17px;height:17px}
.picker svg{stroke-width:1.65}

.point-picker{border:1px solid var(--border);border-radius:10px;padding:10px;margin:8px 0}
#pointPanel{margin-top:12px}.point-picker #pointQuery{min-width:0}
#pointMap{height:260px;border-radius:9px;background:#edf0f4;z-index:0}
#pointResults{display:grid;gap:6px;list-style:none;margin:6px 0}
.point-result{display:flex;align-items:start;flex-direction:column;width:100%;white-space:normal;text-align:left}
.point-result small{color:var(--muted-foreground)}
.leaflet-container .maplibregl-map{height:100%;width:100%}

.field select:not([hidden]){
  appearance:none;padding-right:32px;background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23546174' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center;
}
.search-select,.search-select-host{min-width:0;width:100%}
.search-select-trigger,.search-select-input{
  width:100%;min-height:42px;display:flex;align-items:center;gap:8px;
  border:1px solid var(--border);border-radius:8px;background:white;color:var(--foreground);
}
.search-select-trigger{justify-content:space-between;text-align:left;padding:7px 10px;font:inherit;cursor:pointer}
.search-select-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-select svg{flex:none;color:var(--muted-foreground)}
.search-select-placeholder{color:var(--muted-foreground)}
.search-select-input{padding-left:10px}
.search-select-input:focus-within{border-color:var(--ring);box-shadow:0 0 0 2px #5d729022}
.field .search-select-input input{flex:1;width:0;min-width:0;border:0;box-shadow:none;outline:0;padding:5px 0;background:transparent}
.search-select-input button{display:grid;place-items:center;align-self:stretch;width:38px;border:0;background:none;cursor:pointer}
.search-select-options{list-style:none;border:1px solid var(--border);border-radius:8px;margin-top:5px;padding:4px;max-height:184px;overflow:auto;overscroll-behavior:contain;background:#fff;box-shadow:var(--shadow)}
.search-select-options li{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:38px;padding:7px 8px;border-radius:5px;overflow-wrap:anywhere;cursor:pointer}
.search-select-options li.active,.search-select-options li:hover{background:#edf1f7}
.search-select-options .search-select-empty{color:var(--muted-foreground);cursor:default}
.search-select-clear{border:0;background:none;color:var(--muted-foreground);padding:8px;cursor:pointer;text-decoration:underline}
@media(max-width:760px){.search-select-trigger,.search-select-input{min-height:44px}.search-select-options li{min-height:42px}}

.detail-grid .sf-track{display:table;margin-top:5px}
@media(max-width:760px){.detail-grid .sf-track{min-height:36px}}
.sf-web-tracking{display:block;width:100%;height: min(55dvh,480px);min-height:235px;border:1px solid var(--border);border-radius:10px;background:#fff}
