@charset "UTF-8";
:root{--bg:#f5f7f8;--paper:#fff;--ink:#1d3030;--muted:#84918f;--line:#e9eeee;--green:#176b58;--deep:#114f43;--mint:#eaf5ef;--orange:#c58a31;--red:#c65c52;--radius:14px;--shadow:0 2px 6px #223b3203;font-family:Inter,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);font-size:14px;line-height:1.55}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button{color:inherit}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button span[data-icon]{display:inline-flex}button:focus-visible,a:focus-visible{outline:3px solid #6ab79f;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.4;letter-spacing:-.8px;font-weight:650}h2{font-size:19px;font-weight:650}h3{font-size:16px;font-weight:650}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:1.8px;text-transform:uppercase;color:var(--green);font-weight:650}.app-shell{display:flex;min-height:100vh}.sidebar{width:236px;background:white;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:31px 20px 0;display:flex;flex-direction:column;z-index:30}.brand{display:flex;gap:11px;align-items:center;font-size:22px;font-weight:700;letter-spacing:1px;line-height:1.2}.brand-mark{width:43px;height:43px;display:grid;place-items:center;background:var(--green);color:white;border-radius:12px;font-size:24px;font-weight:600;box-shadow:0 4px 8px #176b5818}.brand small{display:block;font-size:8px;letter-spacing:1.7px;margin-top:7px;color:#899693;font-weight:550}.workspace-label{display:flex;align-items:center;gap:7px;margin:33px 1px 22px;font-size:11px;color:#607670}.workspace-dot,.connection i{width:6px;height:6px;border-radius:50%;background:#4b9e7b}.tag{font-size:9px;color:#468b6a;padding:1px 6px;background:#eff7f1;border-radius:4px;margin-left:auto}.nav-caption{font-size:10px;color:#a3ada9;padding:12px 14px 9px;letter-spacing:1px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;border:0;background:none;padding:13px 14px;border-radius:8px;text-align:left;font-size:13px;color:#6e7d77;margin-bottom:5px;transition:.15s}.nav-item:hover{background:#f6f8f6;color:var(--green)}.nav-item.active{background:#eaf3ee;color:var(--green);font-weight:650}.nav-item.active:before{content:"";position:absolute;left:0;height:25px;width:3px;background:var(--green);border-radius:0 3px 3px 0}.nav-count{margin-left:auto;font-size:10px;background:#dcebe2;padding:0 6px;border-radius:4px}.sidebar-note{margin-top:auto;margin-bottom:22px;background:#f6f9f6;border:1px solid #e9f0e9;border-radius:10px;padding:16px 14px;color:#698573}.sidebar-note>span{display:block;margin-bottom:9px;color:#68937b}.sidebar-note b{font-size:11px;font-weight:600}.sidebar-note p{font-size:10px;line-height:1.9;color:#94a094;margin-top:6px}.profile{display:flex;gap:10px;align-items:center;padding:19px 1px;border-top:1px solid var(--line)}.avatar{background:#e2eee6;color:#37745b;display:inline-grid;place-items:center;width:35px;height:35px;border-radius:10px;font-size:14px;font-weight:600;flex-shrink:0}.profile b{font-size:12px}.profile small{display:block;color:#9aa59e;font-size:10px}.profile .icon-btn{margin-left:auto}.icon-btn{border:0;background:none;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;color:#8c9b94;padding:6px}.icon-btn:hover{color:var(--green);background:#f0f5f1}.main-shell{margin-left:236px;flex:1;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);padding:0 36px;background:#ffffffcf;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{display:flex;align-items:center;gap:14px;font-size:11px;color:#9ba59f}.breadcrumb b{font-weight:500;color:#596c63}.crumb-slash{color:#c6cec8}.topbar-right{display:flex;gap:15px;align-items:center;font-size:10px;color:#8a9a90}.connection{display:flex;align-items:center;gap:7px}.connection.offline{color:var(--red)}.connection.offline i{background:var(--red)}.top-divider{height:14px;width:1px;background:var(--line)}main{max-width:1600px;margin:auto;padding:32px 36px;min-height:calc(100vh - 130px)}footer{font-size:10px;color:#a6b1aa;padding:12px 36px 22px}footer>span{margin:0 6px}.footer-right{float:right}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.page-heading p{color:#8a9890;font-size:12px;margin-top:8px}.page-heading .eyebrow{font-size:9px;display:block;margin-bottom:7px;color:#8b9f91;letter-spacing:2px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn{border:1px solid transparent;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;min-height:39px;font-size:12px;white-space:nowrap;transition:background .15s}.btn svg{width:16px;height:16px}.primary{background:var(--green);color:white;box-shadow:0 2px 3px #114f430c}.primary:hover{background:var(--deep)}.secondary{background:white;border-color:#dfe7e1;color:#647b6c}.secondary:hover{background:#f2f7f3}.danger{color:#b95148;background:#fff4f2;border:1px solid #f0d4cf}.danger:hover{background:#ffe9e5}.text-btn{border:0;background:none;padding:5px 0;color:var(--green);font-size:11px;display:inline-flex;align-items:center;gap:6px}.text-btn svg{width:14px;height:14px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.stat-card{border:1px solid var(--line);background:white;border-radius:var(--radius);padding:21px 22px;box-shadow:var(--shadow)}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8a9990}.stat-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:8px;color:#518b6c;background:#f0f6f1}.stat-card.alert .stat-icon{color:#c3944b;background:#fbf4e8}.stat-number{font-size:29px;letter-spacing:-.8px;font-weight:650;line-height:1.3;margin:13px 0 12px;font-variant-numeric:tabular-nums;color:#253c2e}.stat-number small{font-size:11px;font-weight:400;color:#a0aaa3;letter-spacing:0;margin-left:5px}.stat-card p{font-size:10px;color:#a0aaa3;display:flex;gap:5px;align-items:center}.stat-card.alert .stat-number{color:#bb8735}.stat-card p .dot{width:5px;height:5px;background:#77ab89;border-radius:50%}.stat-card.alert p .dot{background:#d4ac63}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-heading{padding:21px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2{font-size:14px}.panel-heading p{color:#9da99f;font-size:10px;margin-top:4px}.panel-heading h2 .count{font-size:10px;font-weight:400;margin-left:8px;background:#f0f4f1;color:#8da293;padding:2px 6px;border-radius:5px}.table-toolbar{display:flex;justify-content:space-between;gap:12px;padding:0 24px 17px;flex-wrap:wrap}.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.search-field{display:flex;gap:8px;align-items:center;min-width:180px;position:relative}.search-field svg{position:absolute;left:11px;top:10px;color:#a4b0a8;width:15px;height:15px;pointer-events:none}.search-field input{padding-left:33px!important;width:230px}.table-toolbar input,.table-toolbar select{font-size:10px;min-height:35px;border:1px solid #e4eae5;border-radius:6px;background:white;color:#64796b;max-width:100%}.table-toolbar select{padding:6px 26px 6px 10px}.table-toolbar .search-field input{background:#fafcfb}.tabs{display:flex;align-items:center;gap:3px;border-bottom:1px solid var(--line);padding:0 24px;margin-bottom:17px}.tab{border:0;background:none;color:#9aa69d;font-size:11px;position:relative;padding:10px 14px 13px}.tab:first-child{padding-left:0;margin-right:8px}.tab.active{color:var(--green);font-weight:600}.tab.active:after{content:"";position:absolute;bottom:-1px;height:2px;left:0;right:0;background:var(--green)}.tab .pill{font-size:9px;background:#f6efe1;color:#b28b43;border-radius:4px;padding:1px 5px;margin-left:5px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}th{font-size:10px;color:#99a69d;font-weight:500;background:#fafcfb;padding:12px 17px;border-top:1px solid #f0f3f0;border-bottom:1px solid #edf1ed}th:first-child,td:first-child{padding-left:24px}th:last-child,td:last-child{padding-right:24px}td{padding:17px;font-size:11px;color:#718175;border-bottom:1px solid #f0f3f0}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfb}.material-name{display:flex;gap:11px;align-items:center}.material-thumb{height:34px;width:34px;flex-shrink:0;border:1px solid #e7eee7;border-radius:8px;background:#f2f6ef;color:#8a9c75;display:grid;place-items:center}.material-thumb.metal{background:#eff3f6;border-color:#e1e7ed;color:#8396a4}.material-thumb.plastic{background:#f2f0fa;border-color:#e9e5f2;color:#9b8caf}.material-thumb.pack{background:#faf4e9;border-color:#f0e8d7;color:#b59a6a}.material-name b{display:block;font-weight:550;color:#3c5343;font-size:11px}.material-name small{display:block;font-size:9px;color:#a2ada4;margin-top:3px}.mono{font-family:"Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums}.qty{font-weight:600;color:#3c5744;font-size:12px}.qty.low{color:#be9042}.qty small{font-weight:400;color:#9baa9e;margin-left:3px;font-size:9px}.badge{border-radius:5px;display:inline-flex;gap:5px;align-items:center;padding:3px 7px;font-size:9px;background:#eef6ef;color:#6c9774;white-space:nowrap}.badge:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.badge.warn{background:#fcf5e8;color:#bb934b}.badge.red{background:#fceeea;color:#bd7968}.badge.gray{background:#f0f3f2;color:#93a196}.row-actions{display:flex;gap:12px}.row-actions button{border:0;background:none;font-size:10px;color:var(--green);padding:3px}.row-actions button:hover{text-decoration:underline}.row-actions button.edit{color:#95a699}.table-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:13px 24px;font-size:10px;color:#a0ada2}.pagination{display:flex;align-items:center;gap:8px}.pagination button{border:1px solid var(--line);background:white;border-radius:5px;min-width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;color:#87a18d}.pagination button.current{background:var(--green);color:white;border-color:var(--green)}.pagination svg{width:13px;height:13px}.side-stack{display:grid;gap:21px}.side-panel .panel-heading{padding:20px 19px 15px}.side-panel h2{display:flex;align-items:center;gap:7px;font-size:12px}.side-panel h2 svg{width:15px;height:15px;color:#bc974c}.alert-list{padding:0 19px}.alert-item{padding:13px 0;border-bottom:1px solid #f1f3f0;display:block;width:100%;text-align:left;background:none;border-right:0;border-left:0;border-top:0}.alert-item:last-child{border-bottom:0}.alert-item:hover .alert-title{color:var(--green)}.alert-title{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:550;color:#64765f}.alert-title small{font-size:9px;font-weight:400;color:#b29558}.alert-desc{font-size:9px;color:#a1ad9e;display:flex;justify-content:space-between;margin:7px 0}.progress-track{height:4px;background:#f3f2e9;border-radius:3px;overflow:hidden}.progress-bar{height:100%;background:#d8be82;border-radius:3px;width:0}.side-bottom{margin:0 19px;padding:12px 0 15px;border-top:1px solid #edf1ea;text-align:center}.activity-list{padding:0 20px 5px}.activity{position:relative;display:flex;gap:10px;padding:12px 0}.activity:not(:last-child):after{content:"";position:absolute;left:11px;top:38px;bottom:-8px;width:1px;background:#edf2ed}.activity .avatar{width:25px;height:25px;border-radius:50%;font-size:9px;background:#ecf3ed;color:#78967b}.activity-main{min-width:0;flex:1;font-size:10px;color:#8b9c89}.activity-main b{color:#5e765b;font-weight:550}.activity-main p{font-size:10px;color:#a1ada0;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-time{font-size:8px;color:#b0b8ac;margin-top:5px}.positive{color:#4d9870}.negative{color:#bc8b53}.quick-banner{margin-top:22px;background:#edf4ee;border:1px solid #e1ebe1;border-radius:11px;display:flex;align-items:center;gap:12px;padding:15px 21px;color:#7d9c80}.quick-banner svg{width:22px;height:22px}.quick-banner b{font-size:11px;color:#607e64;font-weight:500}.quick-banner p{font-size:10px;color:#8fa391;margin-top:3px}.quick-banner .text-btn{margin-left:auto;white-space:nowrap;color:#6d9071}.empty-state{padding:55px 20px;text-align:center;white-space:normal}.empty-state svg{width:37px;height:37px;color:#c1d0c2;margin-bottom:12px}.empty-state h3{font-size:14px;color:#7d9381}.empty-state p{font-size:11px;color:#a6b3a7;margin:7px auto 15px;max-width:310px}.empty-small{font-size:11px;color:#9cae9c;text-align:center;padding:30px 16px}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:22px}.category-list{padding:0 24px 20px}.category-row{margin:15px 0}.category-title{display:flex;justify-content:space-between;font-size:11px;color:#6d866f;margin-bottom:8px}.category-title small{color:#a3b09e;font-size:10px}.category-row .progress-track{height:7px;background:#f0f4ee}.category-row .progress-bar{background:#80a18a}.report-note{font-size:11px;padding:0 24px 20px;color:#9ca99b}.report-summary{padding:7px 24px 24px;display:grid;gap:19px}.report-summary>div{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#859880;padding-bottom:16px;border-bottom:1px solid #eef2eb}.report-summary b{font-size:20px;color:#597759;font-weight:550}.member-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.member-card{padding:23px}.member-card .member-top{display:flex;align-items:center;gap:12px;margin-bottom:20px}.member-card h3{font-size:14px}.member-card p{font-size:10px;color:#9fac9e;margin:5px 0}.member-card .member-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px}.member-card .avatar{width:42px;height:42px}.role-hint{font-size:11px;color:#8fa28f;line-height:1.9;padding:18px 22px;background:#edf4ee;border-radius:10px;margin-top:22px}.event-reason{max-width:220px;overflow:hidden;text-overflow:ellipsis}.event-actor{display:flex;gap:7px;align-items:center;color:#526f55}.event-actor .avatar{width:24px;height:24px;font-size:9px;border-radius:50%}.date-filter{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.date-filter input{width:145px;min-height:36px;font-size:11px;padding:7px 10px}.date-filter span{font-size:11px;color:#9fac9f}.subtle-note{padding:13px 24px;font-size:10px;color:#a0afa2;border-top:1px solid var(--line);background:#fcfdfb}.initial-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;font-size:12px;color:#93a697}.full{width:100%}input,select,textarea{border:1px solid #dfe7e0;border-radius:7px;padding:10px 12px;color:#3c5743;background:white;min-width:0;outline:none}input:focus,select:focus,textarea:focus{border-color:#73a68b;box-shadow:0 0 0 3px #3688630c}input::placeholder,textarea::placeholder{color:#b2bdb4;font-size:12px}label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#6e876f}textarea{resize:vertical;min-height:78px}.check-row{flex-direction:row;align-items:center;font-size:11px;line-height:1.7;gap:9px}.check-row input{width:14px;height:14px;accent-color:var(--green)}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.auth-story{background:#125c50;position:relative;min-height:100vh;padding:46px 60px;color:white;overflow:hidden}.auth-story .brand-mark{background:#ffffff1e;box-shadow:none;border:1px solid #ffffff33}.auth-story .brand small{color:#a8c7ba}.story-copy{position:relative;z-index:1;margin-top:100px}.story-copy .eyebrow{color:#91c7af;font-size:11px;letter-spacing:3px}.story-copy h1{font-size:42px;line-height:1.5;letter-spacing:1px;margin:17px 0 21px;font-weight:550}.story-copy p{color:#a8cbbd;font-size:13px;line-height:2}.story-tags{display:flex;gap:10px;margin-top:30px}.story-tags span{border:1px solid #ffffff26;border-radius:5px;color:#c9ded2;padding:5px 11px;font-size:10px}.story-foot{position:absolute;left:60px;bottom:32px;font-size:10px;letter-spacing:1px;color:#8bb6a3}.story-art{position:relative;height:225px;max-width:410px;opacity:.9;margin-top:34px}.box{position:absolute;width:100px;height:100px;transform:rotate(-30deg) skewX(30deg);border:1px solid #8db49c60;background:#629e7d20}.box:before{content:"";position:absolute;left:0;top:100%;width:100px;height:50px;background:#54836935;transform-origin:top;transform:skewX(-45deg);border:1px solid #8db49c60}.box:after{content:"";position:absolute;left:-50px;top:25px;width:50px;height:100px;background:#87ae8130;transform:skewY(-45deg);border:1px solid #8db49c60}.box-a{left:90px;top:40px}.box-b{left:215px;top:100px}.box-c{left:85px;top:160px;width:70px;height:70px;opacity:.6}.box-c:before{width:70px;height:30px}.box-c:after{width:30px;height:70px;left:-30px;top:15px}.art-label{position:absolute;top:143px;left:57px;backdrop-filter:blur(12px);background:#194f43c9;border:1px solid #8db49c60;border-radius:7px;padding:10px 14px;font-size:10px;display:flex;align-items:center;gap:8px;transform:rotate(-3deg)}.art-label i{width:6px;height:6px;background:#9bcda8;border-radius:50%}.auth-panel{display:flex;align-items:center;justify-content:center;padding:40px}.auth-card{max-width:350px;width:100%}.mini-logo{font-size:10px;color:#9fac9e;letter-spacing:1px;margin-bottom:27px}.auth-card h2{font-size:29px;font-weight:600;letter-spacing:0;margin-bottom:8px}.auth-card>p.muted{font-size:12px;margin-bottom:34px}.auth-card label{margin-bottom:20px;font-size:12px}.auth-card input{padding:12px 13px;font-size:13px}.auth-card .btn{padding:13px 18px;margin-top:3px}.auth-card .btn span{margin-left:auto}.auth-note{font-size:10px;color:#a5b2a5;line-height:1.9;text-align:center;margin-top:26px}.form-error{color:#bd6c5f;font-size:11px;line-height:1.8;min-height:5px;margin:7px 0 14px}dialog{border:1px solid #e1e9df;box-shadow:0 25px 90px #182f3440;border-radius:16px;padding:0;width:560px;max-width:calc(100vw - 32px);max-height:90vh;color:var(--ink)}dialog::backdrop{background:#233e3959;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 27px;border-bottom:1px solid var(--line)}.modal-heading h2{font-size:20px;margin-top:4px}.modal-heading .eyebrow{font-size:9px;letter-spacing:1px}.modal-form{padding:24px 27px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .span-2{grid-column:1/-1}.modal-form input,.modal-form select,.modal-form textarea{width:100%;font-size:12px}.modal-form label{font-size:11px}.modal-actions{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);display:flex;gap:9px;justify-content:flex-end}.modal-actions .danger{margin-right:auto}.form-hint{font-size:10px;color:#99aa99;line-height:1.8;margin-top:14px}.stock-preview{display:flex;justify-content:space-between;align-items:center;background:#f4f8f2;border:1px solid #e6eee2;padding:17px;border-radius:9px;margin-bottom:20px;font-size:12px;color:#829d7a}.stock-preview b{font-size:23px;color:#477647;font-weight:550}.stock-preview small{display:block;font-size:10px;margin-top:3px;color:#a1b09a}.adjust-tabs{display:flex;gap:8px;margin-bottom:20px}.adjust-tabs button{flex:1;padding:10px;border:1px solid #e3ebe0;color:#8a9e81;background:white;border-radius:7px;font-size:12px}.adjust-tabs button.active{color:var(--green);background:#eef5eb;border-color:#8aae80}.adjust-after{font-size:11px;padding:12px 0;color:#92a48a}.adjust-after b{color:#477647;margin-left:8px}.adjust-after.invalid b{color:var(--red)}.toast-region{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:100;display:flex;flex-direction:column;gap:10px;max-width:90vw;pointer-events:none}.toast{box-shadow:0 6px 30px #23352c26;background:#234e3f;color:white;border-radius:9px;padding:13px 22px;font-size:12px;animation:toast-in .2s ease}.toast.error{background:#9a584d}.detail-card{padding:24px 27px}.detail-card .detail-list{display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-list dt{font-size:10px;color:#9daf99}.detail-list dd{margin:5px 0 0;font-size:12px;color:#607d59;overflow-wrap:anywhere}.detail-card h3{margin:25px 0 12px;font-size:13px}.detail-card pre{font:11px/1.9 inherit;background:#f7f9f5;border-radius:8px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere}.mobile-only{display:none}@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.content-grid>div,.panel{min-width:0}
.mobile-nav,.drawer-shade{display:none}.install-entry.full{margin-top:24px}.network-notice{background:#fff4dd;color:#94703c;padding:13px 36px;font-size:12px;line-height:1.8}.install-identity{display:flex;align-items:center;gap:15px;margin-bottom:24px}.install-identity img{border-radius:15px}.install-identity h3{margin:0;font-size:20px}.install-identity p{font-size:12px;color:#8b9f91;margin-top:4px}.install-warning{background:#fff6e8;border:1px solid #f0dfbc;padding:13px;border-radius:8px;color:#9a7b40;font-size:12px;line-height:1.8;margin:12px 0}.install-success{color:var(--green);background:var(--mint);padding:12px;border-radius:8px;font-size:12px}.install-guide ol{padding-left:21px;color:#617e68;font-size:13px;line-height:1.9}.install-guide li{margin-bottom:12px}
@media(min-width:1600px){.content-grid{grid-template-columns:minmax(0,1fr) 340px}td{padding:20px}.stat-card{padding:24px}}
@media(max-width:1200px){.sidebar{width:210px;padding-left:16px;padding-right:16px}.main-shell{margin-left:210px}main{padding:26px 24px}.topbar{padding:0 24px}.content-grid{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.stat-card{padding:17px}.stats-grid{gap:12px}.stat-number{font-size:25px}.panel-heading,.table-toolbar{padding-left:18px;padding-right:18px}.search-field input{width:180px}.auth-story{padding:40px}.story-copy h1{font-size:34px}.story-foot{left:40px}}
@media(max-width:1020px){.content-grid{grid-template-columns:1fr}.side-stack{grid-template-columns:1fr 1fr}.sidebar-note{display:none}.profile{margin-top:auto}.member-grid{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}.topbar-right #today-label,.top-divider{display:none}.auth-story{padding:35px}.story-copy{margin-top:70px}.story-copy h1{font-size:30px}.story-art{transform:scale(.8);transform-origin:left top}.auth-panel{padding:35px}.story-foot{left:35px}.report-grid{grid-template-columns:1fr}}
@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:236px;box-shadow:15px 0 50px #193e2e19}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.mobile-only{display:inline-flex}.topbar{height:60px;padding:0 17px}.breadcrumb{gap:9px;font-size:10px}.topbar-right{gap:8px}.connection{font-size:9px}main{padding:22px 16px}.page-heading{gap:14px;align-items:flex-start;flex-wrap:wrap;margin-bottom:20px}.page-heading h1{font-size:25px}.page-heading p{font-size:11px;max-width:300px}.actions{gap:7px}.btn{font-size:11px;padding:9px 12px;min-height:36px}.stats-grid{gap:10px;margin-bottom:17px}.stat-card{padding:15px}.stat-number{font-size:25px;margin:10px 0 9px}.stat-card p{font-size:9px}.stat-icon{width:26px;height:26px}.stat-icon svg{width:17px;height:17px}.stat-top{font-size:10px}.side-stack{grid-template-columns:1fr}.table-toolbar{padding-left:16px;padding-right:16px}.table-toolbar input{font-size:11px}.table-toolbar .search-field{width:100%}.search-field input{width:100%}.table-toolbar>.filters{width:100%}.table-toolbar>.filters select{flex:1}.table-toolbar select{font-size:10px}.table-toolbar{gap:10px}.panel-heading{padding:18px 16px}.panel-heading h2{font-size:13px}th:first-child,td:first-child{padding-left:16px}td{padding:15px 12px}th{padding:11px 12px}footer{padding:15px 17px;font-size:9px}.footer-right{display:none}.quick-banner{padding:14px}.quick-banner p{line-height:1.8;max-width:230px}.quick-banner .text-btn{font-size:10px}.quick-banner>svg{display:none}.member-grid{grid-template-columns:1fr}.date-filter{gap:6px}.date-filter input{width:132px}.auth-screen{display:block}.auth-story{min-height:auto;padding:25px;background:#125c50}.auth-story .brand{font-size:20px}.story-copy{margin-top:36px}.story-copy h1{font-size:28px;margin:10px 0}.story-copy p,.story-tags,.story-art,.story-foot{display:none}.story-copy .eyebrow{font-size:10px}.auth-panel{padding:36px 27px 50px}.auth-card{max-width:400px}.auth-card h2{font-size:25px}.auth-card>p.muted{margin-bottom:24px}.mini-logo{display:none}.modal-heading{padding:20px}.modal-form,.detail-card{padding:20px}.form-grid{gap:15px}.modal-heading h2{font-size:18px}.table-bottom{padding:12px 16px}.report-grid{gap:16px}.detail-card .detail-list{grid-template-columns:1fr 1fr}.toast{font-size:11px;padding:12px 15px}.auth-card input{font-size:16px}.modal-form input,.modal-form select,.modal-form textarea{font-size:16px}.modal-form label{font-size:11px}}
@media print{.sidebar,.topbar,footer,.actions,.table-toolbar,.date-filter,.row-actions,.quick-banner,.pagination{display:none!important}.main-shell{margin:0}main{padding:0}.panel,.stat-card{break-inside:avoid;box-shadow:none}.stats-grid{grid-template-columns:repeat(4,1fr)}body{background:white}.content-grid{display:block}.side-stack{margin-top:20px}.table-scroll{overflow:visible}table{white-space:normal}.page-heading{margin-bottom:20px}}
@media(max-width:700px){
 .main-shell{padding-bottom:calc(74px + env(safe-area-inset-bottom))}.topbar{position:sticky;top:0;z-index:15;height:calc(60px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);background:#fff}.sidebar{padding-top:calc(24px + env(safe-area-inset-top));padding-bottom:env(safe-area-inset-bottom);max-height:100dvh;z-index:41}.sidebar nav{overflow-y:auto;min-height:0}.sidebar .workspace-label{margin-top:23px;margin-bottom:10px}.sidebar .profile{flex-shrink:0}.drawer-shade:not([hidden]){display:block;position:fixed;inset:0;z-index:40;border:0;background:#183e3659;backdrop-filter:blur(2px)}
 .mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;z-index:25;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid #e3eae5;padding:8px 6px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #1c483205}.mobile-nav button{min-height:48px;background:none;border:0;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#93a59a;font-size:10px}.mobile-nav button>span[data-icon]{display:flex}.mobile-nav button.active{color:var(--green);background:#edf5ef;font-weight:650}.mobile-nav svg{width:22px;height:22px}.network-notice{padding:12px 17px;font-size:11px}.toast-region{bottom:calc(90px + env(safe-area-inset-bottom))}
 table.mobile-cards{white-space:normal;background:#f5f8f5;display:block;padding:12px}table.mobile-cards thead{display:none}table.mobile-cards tbody{display:grid;gap:12px}table.mobile-cards tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;background:#fff;border:1px solid #e5ede5;border-radius:11px;padding:15px}table.mobile-cards td{display:block;padding:0!important;border:0!important;min-width:0;font-size:12px;overflow-wrap:anywhere}table.mobile-cards td:not(:first-child):not(:last-child):before{content:attr(data-label);display:block;font-size:10px;color:#9eada1;margin-bottom:5px}table.mobile-cards td:first-child{grid-column:1/-1;padding-bottom:10px!important;border-bottom:1px solid #eef2ee!important}table.mobile-cards td:last-child{grid-column:1/-1;padding-top:9px!important}.material-name b{font-size:13px;line-height:1.6}.material-name small{font-size:10px;line-height:1.7}.material-thumb{width:38px;height:38px}.qty{font-size:16px}.badge{font-size:10px}.row-actions{display:flex;gap:10px}.row-actions button{min-height:42px;border:1px solid #dce9dc;background:#edf5eb;color:var(--green);border-radius:7px;flex:1;font-size:12px}.row-actions button.edit{background:white;color:#749078}.inventory-panel .table-bottom{background:white}
 table.history-cards td:first-child{font-size:11px;color:#8a9e8b}table.history-cards td:nth-child(2){grid-column:1/-1}table.history-cards td:nth-child(8){grid-column:1/-1;max-width:none;white-space:normal}.history-cards .event-actor{font-size:12px}.history-cards td:last-child .text-btn{min-height:38px;font-size:12px}.history-cards .qty{font-size:13px}dialog{max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin-top:auto;margin-bottom:calc(14px + env(safe-area-inset-bottom))}.modal-actions .btn{min-height:44px}.auth-screen{padding-bottom:env(safe-area-inset-bottom)}.form-grid input,.form-grid select{min-height:44px}
}
@media print{.mobile-nav,.drawer-shade,.network-notice{display:none!important}}

/* Larger desktop text, with the available width devoted to stock information. */
@media screen and (min-width:701px){
 :root{font-size:16px;--muted:#657b70}
 h1{font-size:30px}h2{font-size:22px}h3{font-size:19px}
 .sidebar{width:220px;padding:24px 14px 0}.main-shell{margin-left:220px}
 .brand{font-size:25px}.brand small{font-size:10px}.workspace-label{font-size:13px;margin:24px 0 14px}.tag{font-size:11px}
 .nav-caption{font-size:12px;padding:10px 12px 7px}.nav-item{font-size:16px;gap:10px;padding:12px;min-height:48px}.nav-count{font-size:12px}
 .sidebar-note{padding:12px;margin-bottom:14px}.sidebar-note b{font-size:13px}.sidebar-note p{font-size:12px;color:#667e6b}
 .profile{padding:16px 0}.profile b{font-size:15px}.profile small{font-size:13px;color:#657b70}
 .topbar{height:64px;padding:0 22px}.breadcrumb{font-size:14px}.topbar-right{font-size:13px;gap:12px}
 main{max-width:none;width:100%;margin:0;padding:22px;min-height:calc(100vh - 112px)}footer{font-size:12px;padding:10px 22px 16px;color:#718575}
 .page-heading{margin-bottom:18px;gap:16px}.page-heading p{font-size:15px;margin-top:5px;color:#657b70}.page-heading .eyebrow{font-size:11px;margin-bottom:4px}
 .btn{font-size:15px;min-height:44px;padding:10px 15px}.btn svg{width:19px;height:19px}.text-btn{font-size:14px}.icon-btn{min-width:36px;min-height:36px}
 .stats-grid{gap:14px;margin-bottom:18px;grid-template-columns:repeat(4,minmax(0,1fr))}.stat-card{padding:17px 20px}.stat-top{font-size:15px;color:#657b70}
 .stat-number{font-size:36px;margin:8px 0;line-height:1.25}.stat-number small{font-size:14px;color:#718575}.stat-card p{font-size:13px;color:#718575}.stat-icon{width:34px;height:34px}
 .content-grid{gap:18px;grid-template-columns:minmax(0,1fr) 320px}.side-stack{gap:18px}
 .panel-heading{padding:18px 20px}.panel-heading h2{font-size:20px}.panel-heading p{font-size:13px;color:#718575}.panel-heading h2 .count{font-size:13px}
 .table-toolbar{padding:0 20px 14px;gap:10px}.table-toolbar input,.table-toolbar select{font-size:14px;min-height:42px;color:#526f5d}.search-field input{width:260px}.search-field svg{top:13px;width:17px;height:17px}
 .tabs{padding:0 20px;margin-bottom:14px}.tab{font-size:15px;padding:11px 14px}.tab .pill{font-size:12px}
 th{font-size:14px;color:#647b6c;font-weight:600;padding:12px}td{font-size:15px;padding:14px 12px;color:#526b59;line-height:1.6}
 th:first-child,td:first-child{padding-left:20px}th:last-child,td:last-child{padding-right:20px}
 .inventory-panel table{white-space:normal}.inventory-panel th{white-space:nowrap}.material-name{gap:10px;min-width:150px}.material-thumb{width:40px;height:40px}
 .material-name b{font-size:16px;font-weight:600;overflow-wrap:anywhere}.material-name small{font-size:13px;color:#718575;overflow-wrap:anywhere}
 .qty{font-size:20px;white-space:nowrap}.qty small{font-size:14px;color:#718575}.badge{font-size:13px;padding:4px 8px}
 td>small.muted{font-size:13px}.row-actions{gap:6px;flex-wrap:wrap;min-width:150px}.row-actions button{font-size:14px;padding:6px 8px;min-height:36px;border:1px solid #dfebe1;border-radius:6px;background:#f2f8f3;white-space:nowrap}
 .row-actions button.edit{color:#526f5b;background:#fff}.table-bottom{font-size:13px;padding:12px 20px;color:#718575}.pagination button{font-size:13px;min-width:34px;height:34px}
 .side-panel .panel-heading{padding:17px 18px 12px}.side-panel h2{font-size:18px}.alert-title{font-size:15px;gap:8px;flex-wrap:wrap}.alert-title small{font-size:12px}.alert-desc{font-size:13px;color:#718575;gap:8px;flex-wrap:wrap}.alert-item{padding:12px 0}
 .activity-main{font-size:14px}.activity-main p{font-size:13px;color:#718575}.activity-time{font-size:12px;color:#718575}.activity .avatar{width:30px;height:30px;font-size:12px}.activity:not(:last-child):after{left:14px;top:43px}
 .quick-banner{margin-top:18px;padding:14px 18px}.quick-banner b{font-size:15px}.quick-banner p{font-size:13px;color:#6b826e}.empty-state h3{font-size:18px}.empty-state p,.empty-small{font-size:14px}
 .report-grid{gap:18px;margin-bottom:18px}.category-title{font-size:15px}.category-title small{font-size:13px}.report-note,.role-hint{font-size:14px;color:#657b70}
 .report-summary>div{font-size:16px}.report-summary b{font-size:25px}.member-card h3{font-size:18px}.member-card p{font-size:14px;color:#718575}
 .date-filter input{width:175px;min-height:42px;font-size:14px}.date-filter span,.subtle-note{font-size:13px;color:#718575}.event-actor .avatar{width:30px;height:30px;font-size:12px}
 dialog{width:680px}.modal-heading{padding:20px 26px}.modal-heading h2{font-size:24px}.modal-heading .eyebrow{font-size:12px}.modal-form,.detail-card{padding:22px 26px}
 label,.modal-form label{font-size:15px}.modal-form input,.modal-form select,.modal-form textarea{font-size:16px;min-height:44px}input::placeholder,textarea::placeholder{font-size:14px}
 .form-hint,.form-error{font-size:14px;color:#657b70}.form-error{color:#ad4d40}.stock-preview{font-size:16px}.stock-preview small{font-size:13px;color:#718575}.stock-preview b{font-size:30px}
 .adjust-tabs button{font-size:15px;min-height:44px}.adjust-after{font-size:15px}.detail-list dt{font-size:14px;color:#718575}.detail-list dd{font-size:16px}.detail-card h3{font-size:18px}.toast{font-size:15px}
 .auth-card{max-width:430px}.auth-card h2{font-size:32px}.auth-card>p.muted,.auth-card label{font-size:16px}.auth-card input{font-size:17px;min-height:48px}.auth-note,.mini-logo{font-size:14px}.story-copy p{font-size:16px}.story-tags span{font-size:13px}
}
@media screen and (min-width:701px) and (max-width:1439px){
 .content-grid{grid-template-columns:minmax(0,1fr)}.side-stack{grid-template-columns:1fr 1fr}.sidebar-note{display:none}.profile{margin-top:auto}
 .report-grid{grid-template-columns:minmax(0,1fr)}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{padding:14px 18px}
}
@media screen and (min-width:701px) and (max-width:1100px){
 .sidebar{width:200px}.main-shell{margin-left:200px}main{padding:18px}.topbar{padding:0 18px}.page-heading{flex-wrap:wrap}.side-stack{grid-template-columns:minmax(0,1fr)}
 .inventory-panel table{min-width:840px}.topbar-right #today-label{display:none}
}
@media screen and (min-width:1200px) and (max-width:1439px){
 .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stat-card{padding:14px 16px}.stat-number{font-size:32px}
}
.row-actions button.delete-material{color:#ae4f43;background:#fff4f2;border:1px solid #edd2cc}
#delete-form .modal-actions .danger{margin-right:0}

.connection.paused{color:#9a701d}.connection.paused i{background:#ba8b2f}

.workspace-switch{font-size:13px;color:#176b58;white-space:nowrap;padding:6px 10px;background:#ecf4ee;border-radius:7px}.auth-workspace-switch{display:inline-block;margin-bottom:24px;color:#176b58;font-size:14px}@media(max-width:700px){.workspace-switch{font-size:11px;padding:5px 7px}.topbar-right{gap:7px}}
