
:root{--bg:#f5f6f3;--ink:#20382f;--muted:#7a877f;--green:#225d4e;--line:#e4e9e2;--soft:#eaf3eb;--danger:#b75041;--amber:#a57227;--font:'Segoe UI','Microsoft YaHei',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--green)}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.layout{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;width:222px;inset:0 auto 0 0;background:#173e34;color:#c4d4cb;padding:31px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;margin:0 10px 46px;color:#fff}.brand img{width:41px;height:41px;border:1px solid #436254;border-radius:12px}.brand b{font-size:23px;letter-spacing:3px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#8caf9c;margin-top:5px}.nav-label{font-size:10px;letter-spacing:2px;color:#809e8e;padding:0 15px;margin-bottom:13px}.nav{display:flex;flex-direction:column;gap:8px}.nav button{color:#b7cbbf;border:0;background:none;text-align:left;padding:14px 16px;border-radius:9px;display:flex;align-items:center;gap:12px}.nav button:hover{background:#214b40}.nav button.active{color:#e8fff1;background:#2f5a49}.nav button.active:after{content:'';margin-left:auto;width:6px;height:6px;border-radius:50%;background:#b6e6b5}.sidebar-bottom{margin-top:auto;padding-top:40px}.connection{padding:15px 11px;font-size:11px;color:#a4bcaf;line-height:1.9;border-bottom:1px solid #36574a}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#a8d2a4;margin-right:7px}.connection small{color:#7f9d8e;display:block}.profile{display:flex;align-items:center;gap:10px;padding:22px 9px 0}.avatar{background:#dfecd7;color:#355f48;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;font-weight:600}.profile small{display:block;color:#8ca798;font-size:10px;margin-top:3px}.profile button{margin-left:auto;background:none;border:0;color:#9cb5a5;padding:5px}.main{grid-column:2;padding:0 38px 34px;max-width:1740px;width:100%}.topbar{height:79px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.breadcrumb b{font-weight:500;color:#375a48}.top-tools{display:flex;align-items:center;gap:18px}.local-pill{padding:5px 10px;background:#ecefe7;border:1px solid #dce3d4;border-radius:5px;color:#637451;font-size:11px}.page-head{display:flex;justify-content:space-between;align-items:center;margin:30px 0 25px;gap:15px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:#819281;margin-bottom:8px}h1{font-size:27px;font-weight:600;letter-spacing:1px;margin:0 0 9px}h2{font-size:16px;font-weight:600;margin:0}p{line-height:1.75}p.sub{color:var(--muted);font-size:12px;margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d8e1d6;border-radius:7px;background:#fff;color:#45634f;padding:10px 16px;white-space:nowrap}.btn:hover{background:#eff5ed}.btn.primary{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 3px 8px #1f513914}.btn.primary:hover{background:#164a3c}.btn.danger{color:var(--danger);border-color:#e8c6bc}.btn.small{padding:7px 11px;font-size:12px}.btn.text{background:none;border:0;padding:5px 7px;font-size:12px}.btn .icon{width:16px;height:16px}.actions{display:flex;gap:9px;align-items:center}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:23px}.stat{background:white;border:1px solid var(--line);border-radius:11px;padding:21px 23px}.stat-head{display:flex;justify-content:space-between;color:#6f8173;font-size:12px;align-items:center}.stat-icon{background:#f1f6ee;border-radius:9px;padding:8px;color:#55794e;display:flex}.stat-num{font-family:'Segoe UI',sans-serif;font-size:36px;font-weight:600;letter-spacing:-1px;margin:12px 0 8px;line-height:1}.stat-num small{font-size:12px;font-weight:400;color:var(--muted);margin-left:9px}.stat-foot{font-size:10px;color:#8b958b}.stat.warn .stat-icon{color:#ac8039;background:#faf4e8}.stat.expired .stat-icon{color:#ae6451;background:#fbefea}.dashboard-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:22px;margin-bottom:23px}.card{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden}.card-head{display:flex;justify-content:space-between;align-items:center;padding:22px 24px 0;gap:12px}.card-head p{color:var(--muted);font-size:11px;margin:7px 0 0}.chart{display:flex;gap:12px;height:153px;align-items:flex-end;margin:20px 25px 19px;border-bottom:1px solid var(--line);padding-bottom:26px;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#f2f5ef 40px)}.bar-group{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative}.bar{width:60%;max-width:44px;background:#dce8d7;border-radius:5px 5px 0 0;min-height:3px}.bar-group:last-child .bar{background:#568564}.bar-value{font-size:10px;color:#81917e;margin-bottom:5px}.bar-label{position:absolute;bottom:-21px;font-size:10px;color:#8c968b}.legend{font-size:10px;color:#859380;white-space:nowrap}.legend:before{content:'';display:inline-block;width:7px;height:7px;background:#91b68b;border-radius:2px;margin-right:7px}.expiry-list{padding:12px 24px}.expiry-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #f0f2ed}.expiry-row:last-child{border:0}.item-icon{padding:9px;background:#f3f5ee;border-radius:8px;color:#758567;display:flex}.item-info{min-width:0;flex:1}.item-info strong{font-size:12px;font-weight:500}.item-info small{display:block;color:#96a092;font-size:10px;margin-top:5px}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:5px;background:#edf4eb;color:#628156;font-size:10px;white-space:nowrap}.badge.amber{color:#a17a30;background:#faf3e3}.badge.red{color:#ac6250;background:#faeee8}.badge.gray{color:#8b948c;background:#eff1ee}.table-header{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.table-header small{font-size:11px;color:#8c988a;margin-left:10px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:11px;color:#8c978b;font-weight:500;background:#f8faf6;border-top:1px solid #eef1eb;border-bottom:1px solid #eef1eb;padding:13px 20px}td{padding:15px 20px;border-bottom:1px solid #f0f3ed;font-size:12px;color:#576a5c}tr:last-child td{border-bottom:0}td strong{font-weight:500;color:#344f3c}td small{display:block;font-size:10px;color:#9aa493;margin-top:4px}.mono{font-family:'Consolas',monospace;color:#85917e;font-size:11px}.table-foot{border-top:1px solid var(--line);padding:13px 23px;color:#93a08e;font-size:10px;display:flex;justify-content:space-between;align-items:center}.toolbar{display:flex;gap:10px;align-items:center;padding:18px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.search{position:relative;min-width:220px;flex:1;max-width:360px}.search .icon{position:absolute;left:12px;top:11px;width:16px;height:16px;color:#94a28f}.search input{padding-left:36px!important}.toolbar input,.toolbar select{height:38px;font-size:12px}.toolbar label{font-size:11px;color:#82917b}.filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:19px}.filter{border:1px solid #e0e5dc;background:transparent;border-radius:6px;padding:7px 14px;color:#85907b;font-size:11px}.filter.active{background:#e8efdf;border-color:#dce6d2;color:#4e6e3f}.empty{padding:42px 24px;text-align:center;color:#8c9a87;font-size:12px;line-height:1.9}.empty .icon{width:32px;height:32px;margin-bottom:10px;color:#a9b6a1}.empty p{margin:3px 0 14px}.note{font-size:11px;line-height:1.7;color:#89947f;margin-top:18px;display:flex;gap:7px;align-items:center}.note .icon{width:15px;height:15px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-card{padding:25px}.settings-card h2{margin-bottom:15px}.settings-card p{color:#7a8972;font-size:12px}.settings-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #eef1ea;padding:13px 0;font-size:12px}.settings-row span{color:#8c9883}.settings-row b{font-weight:500;overflow-wrap:anywhere}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-art{background:#173e34;color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-art:after{content:'';position:absolute;width:470px;height:470px;border:1px solid #40634d;border-radius:50%;right:-180px;bottom:-200px;box-shadow:0 0 0 65px #ffffff03,0 0 0 130px #ffffff03}.auth-art .brand{margin:0}.auth-copy{max-width:380px;z-index:1}.auth-copy .eyebrow{color:#9ec09e}.auth-copy h1{font-size:42px;line-height:1.5;font-weight:400;letter-spacing:3px}.auth-copy p{font-size:13px;color:#a5bba9;line-height:2.2}.auth-meta{font-size:10px;color:#80a38a;letter-spacing:2px}.auth-panel{display:flex;align-items:center;justify-content:center;padding:40px}.auth-form{width:100%;max-width:360px}.auth-form h1{font-size:26px}.auth-form .sub{margin-bottom:27px}.auth-form .btn{width:100%;margin-top:10px}.auth-caption{font-size:10px;color:#929e89;margin-top:25px;line-height:1.9}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px}.field label{font-size:12px;color:#546b4e}.field small{font-size:10px;color:#929d88}.field input,.field select,.field textarea,input,select,textarea{width:100%;border:1px solid #dfe5d9;border-radius:6px;padding:10px 12px;color:#3f5639;background:#fff;min-width:0}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #a8c89a;outline-offset:1px}.field textarea{resize:vertical;min-height:75px}.row-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.error{color:#b25343;background:#fff0eb;border:1px solid #f1d8ce;padding:10px 12px;border-radius:6px;font-size:12px;line-height:1.7;margin-bottom:15px}.error:empty{display:none}.modal-overlay{position:fixed;inset:0;background:#10291e66;backdrop-filter:blur(3px);display:flex;justify-content:center;align-items:center;padding:25px;z-index:10}.modal{background:#fff;border-radius:14px;width:570px;max-width:100%;max-height:92vh;overflow:auto;box-shadow:0 24px 80px #112a2b33}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:24px 27px 16px}.close{background:none;border:0;font-size:24px;color:#84937b}.modal-body{padding:0 27px 26px}.modal-sub{font-size:11px;color:#8b9982;line-height:1.8;margin:0 0 20px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.checkbox{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.6;color:#967431;padding:12px;background:#faf5e8;border-radius:6px}.checkbox input{width:auto;margin-top:4px}.picker-list{max-height:160px;overflow:auto;border:1px solid var(--line);border-radius:6px;margin-top:-10px;margin-bottom:16px}.picker-option{display:block;border:0;border-bottom:1px solid #eff2ea;background:#fff;text-align:left;width:100%;padding:10px 12px;font-size:12px;color:#647b58}.picker-option:hover,.picker-option.selected{background:#edf4e7;color:#335d33}.picker-option small{color:#9aa48f;margin-left:10px}.selected-instrument{padding:12px;background:#eef5e8;border-radius:7px;font-size:12px;margin-bottom:15px}.selected-instrument small{display:block;margin-top:6px;color:#8a977f}.loading{display:grid;place-items:center;min-height:100vh;color:#6c8262}#toast{position:fixed;bottom:30px;left:calc(50% + 60px);transform:translateX(-50%);background:#1f4834;color:white;border-radius:8px;padding:13px 22px;z-index:100;font-size:12px;box-shadow:0 5px 25px #18332926;display:none}#toast.show{display:block}.audit-details{white-space:pre-wrap;word-break:break-word;font-size:11px;color:#7b8971;background:#f6f8f2;padding:14px;border-radius:7px;max-height:330px;overflow:auto}.sync-error{color:#ffd5bd!important}.banner{border:1px solid #e4d5b6;background:#fff9ed;border-radius:8px;color:#9a7b41;font-size:12px;padding:12px 16px;margin-bottom:20px}.tabs-note{font-size:11px;color:#89997d;margin-bottom:16px}@media(max-width:1050px){.sidebar{width:188px;padding:25px 14px}.layout{grid-template-columns:188px minmax(0,1fr)}.main{padding:0 24px 25px}.stat{padding:17px}.stats{gap:11px}.dashboard-grid{grid-template-columns:1fr 1fr}.brand{margin-left:4px}.brand b{font-size:21px}.top-tools>span:first-child{display:none}td,th{padding-left:15px;padding-right:15px}}@media(max-width:760px){.layout{display:block}.sidebar{position:static;width:auto;padding:16px}.brand{margin:0 0 14px}.nav{flex-direction:row;overflow:auto;gap:4px}.nav button{padding:10px;white-space:nowrap;font-size:12px}.nav-label,.sidebar-bottom{display:none}.main{padding:0 16px 25px}.stats{grid-template-columns:1fr 1fr}.dashboard-grid,.settings-grid{grid-template-columns:1fr}.topbar{height:52px}.page-head{margin-top:23px}h1{font-size:23px}.auth{grid-template-columns:1fr}.auth-art{display:none}.auth-panel{min-height:100vh}.row-fields{grid-template-columns:1fr}.top-tools{gap:8px}.page-head .actions .btn:not(.primary){display:none}#toast{left:50%;width:max-content;max-width:90vw}}

