:root{--navy: #0b2545;--navy-2: #123b66;--blue: #1d5c9e;--blue-soft: #eaf2fb;--green: #147a62;--green-soft: #e7f6f1;--orange: #c56a12;--orange-soft: #fff3e3;--red: #c63c3c;--red-soft: #fdecec;--ink: #172033;--muted: #697586;--line: #dfe6ee;--line-strong: #c8d2df;--surface: #ffffff;--canvas: #f4f7fb;--shadow: 0 10px 32px rgba(18, 43, 71, .07);--radius: 14px;color:var(--ink);font-family:Microsoft YaHei,PingFang SC,Noto Sans SC,Arial,sans-serif;font-synthesis:none;background:var(--canvas)}*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}body{background:var(--canvas);color:var(--ink);font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin-top:0}h1{font-size:27px;line-height:1.2;letter-spacing:-.4px}h2{margin-bottom:0;font-size:20px}h3{margin-bottom:4px;font-size:16px}h4{margin-bottom:10px;font-size:14px}code,.mono{font-family:Cascadia Code,Consolas,monospace}small,.small{font-size:12px}.muted{color:var(--muted)}.dim{opacity:.68}.text-link{color:var(--blue);font-weight:600}.text-link:hover{text-decoration:underline}.text-green{color:var(--green)!important}.text-red{color:var(--red)!important}.app-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:14px;color:var(--muted)}.spinner{width:26px;height:26px;border:3px solid #dbe6f4;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.15fr) minmax(420px,.85fr);background:#edf3f9}.login-visual{position:relative;display:flex;flex-direction:column;justify-content:center;overflow:hidden;padding:clamp(40px,7vw,110px);color:#fff;background:radial-gradient(circle at 86% 12%,rgba(95,178,255,.46),transparent 30%),radial-gradient(circle at 12% 90%,rgba(42,172,148,.28),transparent 30%),linear-gradient(135deg,#081c35,#0d3158 58%,#194b70)}.login-visual:after{content:"";position:absolute;right:-90px;bottom:-120px;width:440px;height:440px;border:1px solid rgba(255,255,255,.13);border-radius:50%;box-shadow:0 0 0 80px #ffffff06,0 0 0 170px #ffffff05}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:72px;font-size:16px;font-weight:700}.login-brand span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#f7fbff;color:var(--navy);font-size:20px}.login-visual h1{margin-bottom:24px;font-size:clamp(42px,5vw,68px);line-height:1.16;letter-spacing:-2px}.login-visual>p{max-width:560px;color:#ffffffb8;font-size:17px;line-height:1.8}.login-points{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}.login-points span{padding:7px 14px;border:1px solid rgba(255,255,255,.16);border-radius:999px;color:#ffffffd1;font-size:13px}.login-panel{display:grid;place-items:center;padding:36px}.login-card{width:min(430px,100%);padding:40px;border:1px solid rgba(208,217,229,.8);border-radius:22px;background:#ffffffeb;box-shadow:0 30px 70px #0b25451f;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.login-card h2{margin:8px 0;font-size:25px}.login-card form{display:grid;gap:18px;margin-top:28px}.login-help{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.7}.login-help code{color:var(--navy);font-weight:700}.shell{display:grid;grid-template-columns:226px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:20;width:226px;display:flex;flex-direction:column;padding:20px 14px 16px;color:#d8e3ef;background:linear-gradient(180deg,rgba(255,255,255,.025),transparent 24%),#0b2545}.brand{display:flex;align-items:center;gap:11px;padding:8px 8px 22px;color:#fff}.brand-mark{width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;border-radius:11px;background:#fff;color:var(--navy);font-size:18px;font-weight:800}.brand b{display:block;font-size:15px}.brand small{display:block;margin-top:2px;color:#8fa5bc;font-size:10px}.sidebar nav{display:flex;flex-direction:column;gap:2px;overflow-y:auto}.nav-group{display:flex;flex-direction:column;gap:2px}.nav-group-head{width:100%;display:flex;align-items:center;gap:11px;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:#aabdd0;cursor:pointer;font-size:13px;text-align:left}.nav-group-head:hover,.nav-group-head.open{color:#fff;background:#ffffff0b}.nav-chevron{margin-left:auto;color:#7790a8;font-size:13px;transform:rotate(-90deg);transition:transform .16s ease}.nav-group-head.open .nav-chevron{transform:rotate(0)}.nav-children{display:flex;flex-direction:column;gap:2px;padding:2px 0 4px}.nav-link{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:9px;color:#aabdd0;font-size:13px;transition:.18s ease}.nav-sub-link{min-height:32px;padding:6px 12px 6px 42px;font-size:12px}.nav-top-link{min-height:38px;margin-bottom:2px;padding:8px 12px}.nav-link:hover{color:#fff;background:#ffffff0e}.nav-link.active{color:#fff;background:#4f9ae738;box-shadow:inset 3px 0 #5da8ef}.nav-icon{width:19px;text-align:center;font-size:16px}.sidebar-foot{margin-top:auto;padding:18px 10px 4px;border-top:1px solid rgba(255,255,255,.09);color:#9db0c4;font-size:10px;line-height:1.8}.shell-main{min-width:0;grid-column:2}.topbar{position:sticky;top:0;z-index:15;height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line);background:#ffffffe6;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.page-kicker,.eyebrow{color:var(--blue);font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase}.topbar-user{display:flex;align-items:center;gap:10px}.role-chip,.soft-pill{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;background:#eef3f8;color:#536274;font-size:11px;font-weight:600}.soft-pill.blue{color:#135c9c;background:var(--blue-soft)}.soft-pill.gray{color:#667085;background:#eff2f5}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-weight:800}.username{font-weight:700}.main{padding:28px 32px 46px}.main:has(.viewport-fit-page){padding-bottom:12px}.page-stack{display:grid;gap:20px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.page-heading h1{margin:4px 0 6px}.page-heading p{margin-bottom:0;color:var(--muted)}.toolbar{display:flex;align-items:center;justify-content:flex-end;gap:9px}.toolbar.wrap{flex-wrap:wrap}.button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 14px;border:1px solid var(--line-strong);border-radius:9px;background:#fff;color:#253348;cursor:pointer;font-size:13px;font-weight:600;transition:.16s ease;white-space:nowrap}.button:hover:not(:disabled){border-color:#a8b7c9;transform:translateY(-1px);box-shadow:0 4px 12px #18314f14}.button.primary{border-color:var(--navy-2);background:var(--navy-2);color:#fff}.button.primary:hover:not(:disabled){background:#0e4e85}.button.danger{border-color:#efcaca;background:#fff8f8;color:var(--red)}.button.light{border-color:#ffffff47;background:#ffffff14;color:#fff}.button.white{border-color:#fff;background:#fff;color:var(--navy)}.button.small{min-height:30px;padding:4px 10px;font-size:12px}.button.block{width:100%;min-height:44px}.button:disabled{opacity:.46;cursor:not-allowed}.text-button,.icon-button{border:0;background:transparent;color:var(--blue);cursor:pointer;font-size:13px;font-weight:600}.text-button:hover{text-decoration:underline}.text-button.danger,.icon-button.danger{color:var(--red)}.icon-button{width:30px;height:30px;border-radius:7px;font-size:22px;font-weight:400}.icon-button:hover{background:#f0f4f8}.back-link{display:block;margin-bottom:6px;padding:0}.panel{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.panel:has(.date-range){overflow:visible}.panel:has(.date-range)>.filter-bar:first-child{border-radius:var(--radius) var(--radius) 0 0}.panel-head{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 20px;border-bottom:1px solid var(--line)}.panel-head h3,.panel-head p{margin-bottom:0}.panel-head p{margin-top:2px;font-size:12px}.tabs{display:flex;align-items:center;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line)}.tabs button{position:relative;padding:12px 16px 11px;border:0;background:transparent;color:var(--muted);cursor:pointer;font-weight:600;white-space:nowrap}.tabs button:after{content:"";position:absolute;right:12px;bottom:-1px;left:12px;height:2px;background:transparent}.tabs button.active{color:var(--navy)}.tabs button.active:after{background:var(--blue)}.tabs button small,.tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;margin-left:4px;padding:0 5px;border-radius:999px;background:#eef2f6;font-size:10px}.stat-grid{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:13px}.stat-card{min-height:130px;display:flex;flex-direction:column;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}.stat-card span{color:var(--muted);font-size:12px}.stat-card strong{margin:12px 0 4px;font-size:31px;line-height:1}.stat-card small{margin-top:auto;color:#8a95a5;font-size:10px}.stat-card.accent-blue{color:#fff;background:linear-gradient(135deg,#123b66,#1f64a7);border-color:transparent}.stat-card.accent-blue span,.stat-card.accent-blue small{color:#ffffffb8}.stat-card.accent-orange{border-top:3px solid #ea9c4b}.stat-card.accent-green{border-top:3px solid #48a78f}.stat-card.accent-red{border-top:3px solid #d85b5b}.stat-card strong small{margin-left:5px;font-size:11px;font-weight:500;opacity:.72}.inventory-stats{grid-template-columns:repeat(4,minmax(150px,1fr))}.inventory-total-card{border-top:3px solid var(--blue)}.inventory-total-card strong{color:var(--blue)}.alert.no-top-margin{margin:0}.inventory-rule-banner{width:100%;max-width:none;box-sizing:border-box}.month-stats,.consumption-stats{grid-template-columns:repeat(4,minmax(155px,1fr))}.month-balance{margin:0}.month-in-card{border-top:3px solid var(--blue)}.month-in-card strong{color:var(--blue)}.panel-inline-alert{margin:14px 18px}.consumption-metric{flex-direction:row;align-items:center;gap:13px}.consumption-metric>div:last-child{display:flex;flex-direction:column;gap:5px}.consumption-metric strong{margin:2px 0;font-size:25px}.metric-icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;border-radius:12px;background:#e8f2fd;color:#1d5c9e;font-size:20px;font-weight:800}.metric-icon.green{background:var(--green-soft);color:var(--green)}.metric-icon.orange{background:var(--orange-soft);color:var(--orange)}.metric-icon.red{background:var(--red-soft);color:var(--red)}.consumption-overview{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:16px}.consumption-trend-chart{height:280px}.category-share-list{display:grid;gap:15px;padding:20px}.category-share-row{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(100px,1.5fr) 64px;align-items:center;gap:11px;font-size:12px}.category-share-row>b{text-align:right}.forecast-toolbar{align-items:center}.forecast-summary{display:flex;align-items:center;gap:18px;min-height:36px;padding:0 4px;color:#34465b;font-size:15px}.forecast-summary b{font-size:17px}.forecast-period{padding:5px 10px;border-radius:7px;background:#edf5fd;color:var(--blue)}.forecast-need{padding:5px 10px;border:1px solid #f1cf7a;border-radius:7px;background:#fff5d9;color:#a66a00;font-weight:700}.forecast-page.viewport-fit-page{gap:10px}.forecast-page.viewport-fit-page>.forecast-result-cards{flex:1;min-height:0}.forecast-result-cards>.panel{min-height:0;overflow-y:auto}.share-track{height:8px;overflow:hidden;border-radius:999px;background:#ebf0f5}.share-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2d74b8,#6ca5d8)}.welcome-band{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border-radius:18px;background:radial-gradient(circle at 90% 20%,rgba(95,175,255,.25),transparent 30%),linear-gradient(130deg,#0a2443,#144573);color:#fff;box-shadow:0 18px 40px #0b254526}.welcome-band .eyebrow{color:#8fcbf8}.welcome-band h1{margin:5px 0 6px;font-size:26px}.welcome-band p{margin:0;color:#ffffffb3}.welcome-actions{display:flex;gap:10px}.two-column{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:18px}.summary-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--line)}.summary-strip>div{display:flex;flex-direction:column;gap:5px;padding:16px 20px;background:#fff}.summary-strip span{color:var(--muted);font-size:11px}.summary-strip b{font-size:20px}.summary-strip .orange b{color:var(--orange)}.summary-strip.compact{margin:16px 20px 0}.filter-bar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);background:#fbfcfe}.filter-bar .compact-field{flex-direction:row;align-items:center;gap:8px}.filter-bar .compact-field>span,.filter-bar .date-range>.compact-label{flex:0 0 auto;white-space:nowrap}.filter-bar .compact-field>input,.filter-bar .compact-field>select{width:148px;min-width:148px}.filter-bar .compact-field.grow>input{width:210px}.filter-bar .date-range{flex-direction:row;align-items:center;gap:8px}.filter-bar .single-date-picker{width:148px;min-width:148px}.query-clearable-field{position:relative}.query-clearable-field>input,.query-clearable-field>select{padding-right:36px}.field-clear-button{position:absolute;right:8px;top:50%;z-index:3;width:20px;height:20px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#e9eef4;color:#6f7f91;font-size:14px;line-height:1;cursor:pointer;transform:translateY(-50%)}.field-clear-button:hover{background:#dce6f1;color:#365a7c}.field-clear-button[hidden]{display:none}.field-clear-button.for-select{right:28px}.field-clear-button.for-date{right:31px}.query-reset-button{min-width:64px;color:#526477;background:#fff}.query-actions{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.query-submit-button{min-width:64px}.compact-field,.field{display:flex;flex-direction:column;gap:6px}.compact-field>span,.field>span{color:#526173;font-size:11px;font-weight:700}.compact-field.inline-field{flex-direction:row;align-items:center;gap:8px;white-space:nowrap}.compact-field.inline-field>input,.compact-field.inline-field>select{width:148px;min-width:148px}.compact-field.grow{flex:1;min-width:220px;max-width:300px}.field.full{grid-column:1 / -1}.required{margin-left:2px;color:var(--red);font-style:normal;font-weight:800}input,select,textarea{width:100%;min-height:36px;padding:7px 10px;border:1px solid #ccd6e2;border-radius:8px;outline:0;background:#fff;color:var(--ink);font-size:13px;transition:.16s ease}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:#5d94c9;box-shadow:0 0 0 3px #3578b81c}input:disabled{background:#f3f5f8;color:#7d8998}input[type=file]{padding:5px;font-size:12px}.date-placeholder-input{position:relative;display:inline-flex;align-items:center;width:148px;min-width:148px}.date-placeholder-input:not(.filled) input{color:transparent}.date-placeholder-input:not(.filled) input::-webkit-datetime-edit{color:transparent}.date-placeholder-input i{position:absolute;left:10px;color:#7b8796;font-size:12px;font-style:normal;pointer-events:none}.single-date-picker{position:relative;width:100%;display:inline-flex;align-items:center}.single-date-display{width:100%;padding-right:34px;cursor:pointer}.single-date-display.empty{color:#7b8796}.single-date-native{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none}.single-date-clear{position:absolute;right:8px;top:50%;width:20px;height:20px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#e9eef4;color:#6f7f91;font-size:14px;line-height:1;cursor:pointer;transform:translateY(-50%)}.single-date-clear:hover{background:#dce6f1;color:#365a7c}.single-date-picker.compact .single-date-display{min-height:32px;padding:4px 28px 4px 8px;font-size:11px}.single-date-picker.compact .single-date-clear{right:5px;width:18px;height:18px}.check-field{display:flex;align-items:center;gap:8px;color:#4a5969;font-size:12px}.date-range{position:relative;display:flex;flex-direction:column;gap:6px}.compact-label{color:#526173;font-size:11px;font-weight:700}.date-range-trigger{min-width:235px;height:36px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #ccd6e2;border-radius:8px;background:#fff;color:#26364b;cursor:pointer;font-size:12px}.date-range-trigger.active{border-color:#5d94c9;box-shadow:0 0 0 3px #3578b81c}.date-range-clear{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto;padding:0;border:0;border-radius:50%;background:#e9eef4;color:#6f7f91;font-size:15px;line-height:1;cursor:pointer}.date-range-clear:hover{background:#dce6f1;color:#365a7c}.date-range-trigger .calendar-icon{color:var(--blue)}.date-range-trigger .chevron{margin-left:auto;color:#7c8796}.date-range-popover{position:absolute;top:calc(100% + 7px);left:0;z-index:50;width:355px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 18px 40px #0f28462e}.date-presets{display:flex;gap:6px;margin-bottom:12px}.date-presets button{padding:5px 9px;border:0;border-radius:7px;background:#f1f5f9;color:#526173;cursor:pointer;font-size:11px}.date-range-inputs{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:7px}.date-range-inputs label{display:flex;flex-direction:column;gap:5px}.date-range-inputs label span{color:var(--muted);font-size:10px}.date-range-inputs input{min-width:0}.calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.calendar-head button{width:28px;height:28px;border:0;border-radius:7px;background:#f1f5f9;color:#405168;cursor:pointer;font-size:17px}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}.calendar-weekdays{margin-bottom:4px;color:var(--muted);font-size:10px}.calendar-days button{height:34px;border:0;border-radius:7px;background:transparent;color:#334155;cursor:pointer;font-size:11px}.calendar-days button:hover{background:#eef5fc}.calendar-days button.muted{color:#b5bec9}.calendar-days button.today{box-shadow:inset 0 0 0 1px #7aa9d5}.calendar-days button.in-range{background:#e9f2fb}.calendar-days button.selected{background:var(--blue);color:#fff}.date-selection-labels{display:flex;justify-content:space-between;gap:10px;margin-top:10px;padding:8px 10px;border-radius:8px;background:#f7f9fc;color:#4b5b6e;font-size:11px}.range-separator{padding-bottom:9px;color:var(--muted);font-size:11px}.date-range-error{margin-top:8px;color:var(--red);font-size:11px}.date-range-foot{display:flex;justify-content:flex-end;gap:12px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.check-field input{width:auto;min-height:auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}.p-20{padding:20px}.m-20{margin:20px}.table-wrap{max-width:100%;overflow-x:auto}.table-wrap:has(+.pagination){height:clamp(280px,calc(100vh - 590px),420px);overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}.table-wrap:has(+.pagination) thead th{position:sticky;top:0;z-index:2}.table-wrap:has(+.pagination)::-webkit-scrollbar{width:9px;height:9px}.table-wrap:has(+.pagination)::-webkit-scrollbar-thumb{border:2px solid #f7f9fc;border-radius:999px;background:#b8c6d6}.table-wrap:has(+.pagination)::-webkit-scrollbar-track{background:#f7f9fc}table{width:100%;border-collapse:collapse;font-size:12.5px}th{padding:10px 12px;border-bottom:1px solid var(--line);background:#f7f9fc;color:#526173;font-size:12px;font-weight:700;text-align:center;white-space:nowrap}td{padding:11px 12px;border-bottom:1px solid #edf1f5;text-align:center;vertical-align:middle}tbody tr:hover{background:#fafcfe}tbody tr:last-child td{border-bottom:0}tfoot td{border-top:1px solid var(--line);background:#f7f9fc}th.num,td.num{text-align:center;white-space:nowrap}td .small{margin-top:2px}.empty-cell,.empty-inline{padding:34px!important;color:var(--muted);text-align:center!important}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px}.empty-state.large{min-height:70vh}.empty-state b{font-size:20px}.empty-state p{color:var(--muted)}.row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;white-space:nowrap}.status-pill{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#edf1f5;color:#627183;font-size:10px;font-weight:700;white-space:nowrap}.status-pill.active,.status-pill.executed,.status-pill.normal,.status-pill.completed{color:var(--green);background:var(--green-soft)}.status-pill.draft,.status-pill.counting,.status-pill.pending,.status-pill.pending_confirm,.status-pill.expiring{color:var(--orange);background:var(--orange-soft)}.status-pill.reversed,.status-pill.disabled,.status-pill.low,.status-pill.expired{color:var(--red);background:var(--red-soft)}.status-pill.high{color:#6751b5;background:#f0edff}.alert{padding:11px 14px;border:1px solid #d5e3f2;border-radius:10px;background:#f2f8fe;color:#315577;font-size:12.5px}.alert.error{border-color:#f1caca;background:#fff5f5;color:#9c3030}.alert.success{border-color:#c6e7dc;background:#f0fbf7;color:#17684f}.alert.warning{border-color:#f1d6b4;background:#fff8ee;color:#8e581c}.alert.info{margin:14px 18px}.loading-panel,.loading-inline{display:flex;align-items:center;justify-content:center;padding:48px 18px;color:var(--muted)}.loading-panel{min-height:220px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.loading-inline{padding:28px}.inline-loading{padding:9px 14px;border-radius:8px;background:#edf5fd;color:#416580;font-size:11px}.query-spacer{flex:1}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;height:54px;padding:0 18px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.page-size-select{display:inline-flex;align-items:center;gap:5px}.page-size-select select{width:68px;min-height:30px;padding:3px 6px;font-size:11px}.viewport-fit-page{height:calc(100vh - 116px);display:flex;flex-direction:column;overflow:hidden}.viewport-fit-page>*{flex:none}.viewport-fit-page>.viewport-list-panel,.viewport-fit-page>.role-management-layout,.viewport-fit-page>.dictionary-layout{flex:1;min-height:0}.viewport-fit-page>.monthly-screen-section{flex:1;min-height:0;display:flex;flex-direction:column;gap:20px}.monthly-screen-section>.stat-grid{flex:none}.monthly-screen-section>.viewport-list-panel{flex:1;min-height:0}.viewport-list-panel{display:flex;flex-direction:column;min-height:0}.viewport-list-panel>.table-wrap{flex:1;min-height:0;height:auto}.viewport-list-panel>.pagination{flex:none}.viewport-fit-page .dictionary-layout>.panel,.viewport-fit-page .role-editor{display:flex;flex-direction:column;min-height:0}.viewport-fit-page .dictionary-layout>.panel>.table-wrap{flex:1;min-height:0;overflow:auto}.viewport-fit-page .role-management-layout{grid-template-rows:minmax(0,1fr);align-items:stretch;min-height:0;overflow:hidden}.viewport-fit-page .role-directory{min-height:0;overflow-y:auto}.viewport-fit-page .role-editor{overflow:hidden}.viewport-fit-page .permission-editor-grid{flex:1;min-height:0;overflow-y:auto}.viewport-fit-page .dictionary-layout{flex:1;height:auto;grid-template-rows:minmax(0,1fr);min-height:0;overflow:hidden}.viewport-fit-page .register-panel .register-paper{flex:1;min-height:0;display:flex;flex-direction:column}.viewport-fit-page .register-panel .register-table-wrap{flex:1;min-height:0;overflow:auto}.viewport-fit-page .register-panel .register-table-wrap thead th{position:sticky;top:0;z-index:2}.alert-list{padding:8px 20px}.alert-list-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf1f5}.alert-list-row b{color:var(--orange);font-size:17px}.alert-list-row.danger b{color:var(--red)}.alert-list-row.muted-row{border-bottom:0}.shortcut-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:14px 18px 20px}.shortcut-grid a{display:flex;flex-direction:column;padding:11px;border:1px solid var(--line);border-radius:9px;background:#fbfcfe}.shortcut-grid a:hover{border-color:#b8cce0;background:#f6fafe}.shortcut-grid span{margin-top:2px;color:var(--muted);font-size:10px}.detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line)}.detail-grid>div{display:flex;flex-direction:column;gap:4px;padding:15px 18px;background:#fff}.detail-grid span{color:var(--muted);font-size:10px}.note-block{margin:16px 20px 20px;padding:12px 14px;border-left:3px solid var(--blue);background:#f7fafc;color:#4c5b6d;white-space:pre-wrap}.attachment-list{display:flex;flex-wrap:wrap;gap:8px;padding:18px 20px}.attachment-item{padding:7px 11px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe;color:var(--blue);cursor:pointer}.modal-mask{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;background:#07162880;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal{width:min(620px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 30px 90px #0000003d}.modal.wide{width:min(920px,100%)}.modal.small{width:min(420px,100%)}.modal-head,.modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}.modal-head h3{margin:2px 0 0}.modal-body{overflow-y:auto;padding:20px}.modal-foot{justify-content:flex-end;border-top:1px solid var(--line);border-bottom:0;background:#fafbfd}.import-result{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.result-summary{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:12px;color:#4d5b6d}.error-row{padding:6px 0;border-bottom:1px dashed #ebd3d3;color:#9d3434;font-size:12px}.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.report-card{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;min-height:150px;padding:20px;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}.report-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--blue)}.report-card.green:before{background:var(--green)}.report-card.orange:before{background:var(--orange)}.report-card.red:before{background:var(--red)}.report-card.purple:before{background:#7b61b3}.report-card.amber:before{background:#d79a29}.report-card.slate:before{background:#52677d}.report-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:11px;background:var(--blue-soft);color:var(--blue);font-size:20px}.report-card h3{margin:2px 0 6px}.report-card p{margin:0;color:var(--muted);font-size:12px}.report-actions{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;margin-top:auto}.alert-tab-row{display:flex;flex-wrap:wrap;gap:8px}.alert-tab-row button{padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);cursor:pointer}.alert-tab-row .alert-type-low{border-color:#e8b4b4;background:#fff3f3;color:#a33d3d}.alert-tab-row .alert-type-high{border-color:#efc89a;background:#fff8ee;color:#99611d}.alert-tab-row .alert-type-expiring{border-color:#ecd687;background:#fffaeb;color:#8b6b10}.alert-tab-row .alert-type-expired{border-color:#c48787;background:#fce9e9;color:#8f2222}.alert-tab-row .alert-type-stagnant{border-color:#b9c5d2;background:#f1f4f7;color:#526477}.alert-tab-row button.active{box-shadow:inset 0 0 0 1px currentColor;filter:saturate(1.15)}.alert-tab-row b{margin-left:4px}.trend-chart{height:330px;padding:12px}.trend-labels{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;padding:0 24px 22px}.trend-labels span{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted);font-size:10px}.manual-dot{display:inline-block;margin-left:5px;padding:1px 5px;border-radius:999px;background:var(--orange-soft);color:var(--orange);font-size:9px;vertical-align:middle}.count-input{width:96px;margin-left:auto;text-align:right}.unit-mode{min-height:27px;margin-top:5px;padding:2px 6px;font-size:10px}.role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.role-card{padding-bottom:16px}.role-management-layout{display:grid;grid-template-columns:260px minmax(0,1fr);align-items:start;gap:16px}.role-directory{position:sticky;top:16px;padding-bottom:10px;overflow:hidden}.role-selector{width:calc(100% - 20px);display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 10px;padding:12px;border:1px solid transparent;border-radius:10px;background:transparent;color:#435267;text-align:left;cursor:pointer}.role-selector span{display:flex;flex-direction:column;gap:3px}.role-selector small{color:var(--muted);font-size:10px}.role-selector strong{min-width:30px;padding:3px 7px;border-radius:999px;background:#eef2f7;color:#657386;font-size:10px;text-align:center}.role-selector:hover,.role-selector.active{border-color:#c8d9e9;background:#edf5fd}.role-selector.active b{color:var(--blue)}.role-editor{overflow:hidden}.permission-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px;background:#f7f9fc}.permission-group-card{min-height:122px;max-height:220px;display:flex;flex-direction:column;padding:13px;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#fff}.permission-group-title{display:flex;align-items:center;gap:7px;min-height:26px;margin-bottom:7px;padding-bottom:8px;border-bottom:1px solid #edf1f5;color:#314257}.permission-group-scroll{flex:1;min-height:0;overflow-y:auto;padding-right:3px}.permission-group-scroll::-webkit-scrollbar{width:7px}.permission-group-scroll::-webkit-scrollbar-thumb{border-radius:999px;background:#b8c6d6}.permission-icon{width:22px;height:22px;display:inline-grid;place-items:center;border-radius:6px;background:#eaf2fb;color:var(--blue);font-size:12px}.permission-group-card .check-field{min-height:25px;font-size:11px}.permission-group-card .permission-child{margin-left:6px}.permission-actions-card{border-color:#dce6f1;background:#fbfdff}.log-table{table-layout:fixed}.log-table th:nth-child(6),.log-table td:nth-child(6){width:240px}.log-detail-text{display:-webkit-box;overflow:hidden;color:#445266;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}.month-action-head{align-items:flex-start}.month-action-toolbar{flex-wrap:wrap;justify-content:flex-end}.month-close-actions{display:inline-flex;align-items:center;gap:8px;margin-right:18px}.month-close-status{padding:5px 11px;font-size:12px}.menu-config-editor{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px}.menu-config-list{max-height:460px;overflow-y:auto;padding-right:5px}.menu-config-list button{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#425166;text-align:left;cursor:pointer}.menu-config-list button:hover,.menu-config-list button.active{border-color:#d5e2ef;background:#edf5fd}.menu-config-list small{color:var(--muted);font-size:10px}.menu-config-form{align-content:start;padding:16px;border:1px solid var(--line);border-radius:11px;background:#f9fbfd}.dictionary-layout{display:grid;grid-template-columns:minmax(360px,.8fr) minmax(0,1.4fr);gap:16px}.template-list{display:grid;gap:14px;padding:18px}.template-card{padding:18px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe}.template-head,.template-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.stocktake-stats{grid-template-columns:repeat(4,minmax(150px,1fr))}.report-paper{padding:24px;background:#fff}.report-paper-title{margin-bottom:7px;font-size:22px;font-weight:700;text-align:center}.report-paper-meta,.report-summary-line{display:flex;flex-wrap:wrap;justify-content:center;gap:22px;color:var(--muted);font-size:12px}.report-paper-meta .report-status{padding:2px 8px;border-radius:999px;background:#eaf2fb;color:var(--blue);font-size:11px;font-weight:700}.report-summary-line{justify-content:space-between;margin:20px 0;padding:13px 16px;border-radius:9px;background:#f4f8fb}.report-summary-line b{color:var(--ink)}.alert-table{table-layout:fixed}.alert-table th,.alert-table td{overflow-wrap:anywhere}.inventory-stock-table .operation-col{min-width:96px;text-align:center}.inventory-stock-table td.operation-col .row-actions{align-items:center;justify-content:center;gap:8px}.report-analysis{margin-bottom:16px;padding:12px 15px;border-left:3px solid var(--blue);background:#f8fafc;color:#4e5d6f;font-size:12px;line-height:1.8}.report-signatures{display:flex;justify-content:space-between;gap:20px;margin-top:32px;color:#4b596b;font-size:12px}.register-paper{padding:26px;background:#fff}.register-paper h2{margin-bottom:7px;font-size:21px;text-align:center}.register-subtitle,.register-meta{color:var(--muted);font-size:12px;text-align:center}.register-meta{display:flex;justify-content:space-between;margin:15px 0;text-align:left}.register-table-wrap{border:1px solid #9aa7b6}.register-table th,.register-table td{border-right:1px solid #b8c2ce;border-bottom:1px solid #b8c2ce;font-size:11px}.register-table th{color:#334155;background:#f1f4f7;font-size:12px;text-align:center}.register-signatures{display:flex;justify-content:space-between;margin-top:28px;color:#4c5a6d;font-size:12px}.register-note{margin-top:20px;color:#7b8796;font-size:10px}.template-head h4{margin-bottom:3px}.required-headers{margin:13px 0}.required-headers>span{display:block;margin-bottom:7px;color:var(--muted);font-size:11px}.required-headers div{display:flex;flex-wrap:wrap;gap:6px}.required-headers code{padding:3px 7px;border-radius:6px;background:#eef2f7;color:#4c5a6c;font-size:10px}.template-actions{flex-wrap:wrap;justify-content:flex-start;margin-top:12px}.selected-row{background:var(--blue-soft)}@media(max-width:1000px){.dictionary-layout,.role-management-layout{grid-template-columns:1fr}.role-directory{position:static}.menu-config-editor{grid-template-columns:1fr}}.permission-group{padding:14px 20px 0}.permission-group .check-field{margin:8px 0}@media(max-width:1200px){.stat-grid{grid-template-columns:repeat(3,minmax(140px,1fr))}.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-column,.consumption-overview{grid-template-columns:1fr}.permission-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.shell{display:block}.sidebar{position:static;width:auto}.sidebar nav{flex-direction:row;flex-wrap:wrap}.sidebar-foot{display:none}.shell-main{grid-column:auto}.main{padding:20px 16px 36px}.viewport-fit-page{height:auto;overflow:visible}.table-wrap:has(+.pagination){height:min(420px,60vh)}.topbar{height:66px;padding:0 16px}.role-chip{display:none}.page-heading,.welcome-band{flex-direction:column;align-items:flex-start}.toolbar{flex-wrap:wrap;justify-content:flex-start}.filter-bar{flex-wrap:wrap}.compact-field.grow{min-width:100%;max-width:none}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.role-grid,.login-page{grid-template-columns:1fr}.login-visual{min-height:300px;padding:36px}.login-brand{margin-bottom:30px}.login-visual h1{font-size:38px}.login-panel{padding:22px 16px 40px}}@media(max-width:640px){.stat-grid,.report-grid,.form-grid,.detail-grid{grid-template-columns:1fr}.sidebar nav{display:grid;grid-template-columns:repeat(2,1fr)}.nav-link{padding:7px 9px}.page-heading h1{font-size:24px}.login-visual{min-height:260px}.login-visual h1{font-size:32px}.login-visual>p{font-size:14px}.login-card{padding:26px 22px}.modal-mask{padding:10px}}@media print{.sidebar,.topbar,.page-heading .toolbar,.tabs,.filter-bar,.pagination{display:none!important}.shell,.shell-main{display:block}.main{padding:0}.panel{border:0;box-shadow:none}}
