.mobile-cell-label{display:none}@media(max-width:680px){.table-scroll.mobile-table{overflow:visible}.mobile-table>table{position:relative;display:block;min-width:0}.mobile-table>table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mobile-table>table>tbody{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.mobile-table>table>tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:12px;border:1px solid var(--line);border-radius:8px}.mobile-table>table>tbody>tr>td{min-width:0;padding:0;border:0;background:transparent;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.mobile-table>table>tbody>tr>.mobile-cell-wide{grid-column:1 / -1}.mobile-table>table>tbody>.table-empty-row{display:block;padding:18px 10px}.mobile-table .mobile-cell-label{display:block;margin-bottom:2px;color:var(--muted);font-size:12px;font-weight:500}.mobile-table .cell-caption{margin-top:2px}.mobile-table .table-link{display:inline-flex;align-items:center;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.mobile-table .expand-button{min-width:44px;padding-inline:8px;border-radius:6px;background:#eef3ed}.mobile-table .expand-button svg{flex:none}.document-table>table>tbody>tr:not(.table-empty-row){row-gap:8px;padding-top:6px}.document-table>table>tbody>tr:not(.table-empty-row)>td:last-child{grid-area:1 / 2;align-self:center;justify-self:end}.mobile-table>table>tbody>.inventory-row-open{border-bottom-right-radius:0;border-bottom-left-radius:0}.mobile-table>table>tbody>.expanded-row{grid-template-columns:minmax(0,1fr);margin-top:-10px;border-top:0;border-top-left-radius:0;border-top-right-radius:0;background:#f6f8f4}.mobile-table.lot-table>table>tbody>tr{background:#fff}.dialog .icon-button{min-width:44px;min-height:44px}}.mail-settings{display:grid;gap:16px}.mail-panel{min-width:0;margin-bottom:16px;padding:18px}.mail-settings .mail-panel{margin-bottom:0}.mail-panel h2{display:flex;align-items:center;gap:8px}.mail-note,.mail-meta{color:var(--muted);font-size:13px;line-height:1.6}.mail-note{margin:0}.mail-account{margin-bottom:20px}.mail-account dd{overflow-wrap:anywhere}.mail-actions{flex-wrap:wrap}.mail-config{display:grid;grid-template-columns:minmax(0,420px) auto;align-items:end;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.mail-config>.mail-note{grid-column:1 / -1}.mail-config>.button{justify-self:start}.mail-notice{margin:0;color:var(--green-dark);font-size:14px}.mail-empty{margin:14px 0 0;color:var(--muted);font-size:14px}.mail-notifications,.mail-outbox{margin:0;padding:0;list-style:none}.mail-notifications>li{padding:16px 0;border-top:1px solid var(--line)}.mail-notifications>li:first-child{padding-top:0;border-top:0}.mail-notifications>li:last-child{padding-bottom:0}.mail-message-head{display:flex;align-items:start;gap:12px}.mail-message-head h3{flex:1;min-width:0;margin:0;font-size:15px;line-height:1.6;overflow-wrap:anywhere}.mail-message-head .status{flex:none}.mail-meta{margin:5px 0;overflow-wrap:anywhere}.mail-text{margin:9px 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.mail-outbox>li{display:flex;align-items:start;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.mail-outbox>li:first-child{padding-top:0;border-top:0}.mail-outbox>li:last-child{padding-bottom:0}.mail-outbox>li>div{flex:1;min-width:0}.mail-outbox strong{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.mail-outbox .status{flex:none}@media(max-width:520px){.mail-panel{padding:14px}.mail-account{gap:14px}.mail-actions .button{flex:1 1 140px}.mail-config{grid-template-columns:minmax(0,1fr)}.mail-message-head,.mail-outbox>li{gap:8px}}.document-form{color:#142e26}.document-form-heading,.document-lines-heading,.document-line-heading,.document-form-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.document-form-heading{margin-bottom:20px}.document-form-heading h1,.document-lines-heading h2,.document-line-heading h3{margin:0;color:#142e26}.document-form-heading h1{font-size:clamp(1.55rem,3vw,2.05rem);line-height:1.2;letter-spacing:-.035em}.document-form-heading p,.document-form-note{margin:7px 0 0;color:#5c6a62;font-size:.875rem;line-height:1.55}.document-form-body{display:grid;gap:16px;min-width:0;margin:0;padding:0;border:0}.document-form-panel{min-width:0;padding:clamp(14px,2.4vw,23px);border:1px solid #dedfd5;border-radius:10px;background:#fff}.document-field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:15px 14px}.document-form .document-field{display:grid;align-content:start;gap:6px;min-width:0;margin:0;color:#223e34;font-size:.875rem}.document-field>span{font-weight:600}.document-field em{color:#a13f30;font-weight:600;font-style:normal}.document-field small{color:#5c6a62;font-size:.75rem;line-height:1.45}.document-field-wide{grid-column:1 / -1}.document-material-entry{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.dialog.document-item-dialog{width:min(calc(100% - 24px),620px);max-height:calc(100dvh - 24px);overflow:auto}.document-identity,.document-quantity{display:contents}.document-form .document-field>.document-select{min-width:0;font-weight:400}.document-select-value{display:none}.document-form .document-field :is(input,select,textarea){width:100%;min-width:0;min-height:38px;box-sizing:border-box;padding:8px 10px;border:1px solid #d8ded6;border-radius:6px;background:#fff;color:#142e26;font:inherit;line-height:1.25}.document-form .document-field textarea{min-height:62px;resize:vertical}.document-form .document-field :is(input,textarea)::placeholder{color:#637269}.document-form .document-field :is(input[readonly],select:disabled){background:#f5f4ee;color:#5c6a62}.document-form :is(input,select,textarea,button,summary):focus-visible{outline:2px solid #246a53;outline-offset:2px}.document-optional{margin-top:14px}.document-optional summary{width:fit-content;color:#246a53;font-size:.82rem;font-weight:600;cursor:pointer}.document-optional .document-field-grid{margin-top:11px}.document-source-lot{margin-top:12px}.document-source-lot>.document-field{width:min(100%,380px)}.document-lines-heading h2{font-size:1.05rem}.document-line-heading h3{font-size:.9rem}.document-line{margin-top:13px;padding:13px 14px 14px;border:1px solid #e1e2d8;border-radius:8px;background:#fbfbf8}.document-line-heading{margin-bottom:11px}.document-form .button{min-height:38px;padding:7px 13px;border-radius:6px;font-size:.875rem;line-height:1.25;white-space:nowrap}.document-form .button.primary{border:1px solid #246a53;background:#246a53;color:#fff}.document-form .button.secondary{border:1px solid #daddd2;background:#fff;color:#223e34}.document-form .button:disabled{opacity:.6;cursor:wait}.document-text-button{padding:3px 0;border:0;background:transparent;color:#246a53;font:inherit;font-size:.82rem;font-weight:600;cursor:pointer}.document-text-button:hover{text-decoration:underline}.document-remove{color:#a13f30}.document-form-actions{justify-content:flex-end}.document-form-error,.document-source-error{margin:0;padding:10px 13px;border:1px solid #e6cec6;border-radius:6px;background:#fff5f1;color:#823a2e;font-size:.875rem;line-height:1.5}.document-source-error{display:flex;grid-column:1 / -1;align-items:center;justify-content:space-between;gap:12px}@media(max-width:520px){.document-form-heading{align-items:flex-start}.document-form .document-field-grid{grid-template-columns:minmax(0,1fr)}.document-identity{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,112px),1fr));gap:10px}.document-quantity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.document-form .document-field :is(input,select,textarea){min-height:44px;font-size:1rem}.document-form input[type=date]::-webkit-date-and-time-value{min-height:1.25em;text-align:start}.document-select.has-selection{display:grid;grid-template-columns:minmax(0,1fr)}.document-select.has-selection>*,.document-select.has-selection:after{grid-area:1 / 1}.document-form .document-field .document-select.has-selection>select{height:100%;appearance:none;color:transparent}.document-select.has-selection option{color:#142e26}.document-select.has-selection:after{content:"";align-self:center;justify-self:end;width:7px;height:7px;margin:-4px 14px 0 0;border-right:1.5px solid #246a53;border-bottom:1.5px solid #246a53;transform:rotate(45deg);pointer-events:none}.document-select-value{display:block;align-self:center;min-width:0;padding:9px 32px 9px 11px;color:#142e26;font-size:1rem;line-height:1.35;overflow-wrap:anywhere;pointer-events:none}.document-form .button,.document-form .document-text-button{min-height:44px}.document-form .document-text-button{padding-inline:9px}.document-form .document-optional summary{min-height:44px;padding-block:12px;line-height:20px}.document-line{scroll-margin-block-start:12px}.document-form-actions .button{flex:1}}.purchase-detail,.purchase-fields{display:grid;gap:15px}.purchase-fields{min-width:0;margin:0;padding:0;border:0}.purchase-panel{min-width:0;padding:clamp(13px,2.2vw,21px);overflow-wrap:anywhere}.purchase-panel>:is(h2,.field){margin-bottom:12px}.purchase-product-fields{position:relative;background:#f8faf7;border:1px solid var(--line);border-radius:8px;padding:13px}.purchase-product-fields+.purchase-product-fields{margin-top:10px}.purchase-product-fields .fields-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1.1fr) minmax(80px,.63fr) minmax(80px,.63fr);gap:12px}.purchase-wide{grid-column:1 / -1}.purchase-remove{margin:8px 0 0 auto;display:flex;min-height:36px;color:#873622}.purchase-remove:hover:not(:disabled){background:#faeee8}.purchase-submit{margin-top:0}.purchase-cell-note,.purchase-note{color:var(--muted);font-size:13px;line-height:1.5}.purchase-cell-note{display:block;margin-top:3px}.purchase-note{margin:0 0 8px}.purchase-summary{margin-bottom:0}.purchase-summary dd{overflow-wrap:anywhere;white-space:pre-wrap}.purchase-alert{padding:9px 12px;margin:12px 0;background:#fff1d8;color:#814812;border-radius:7px}.purchase-qr-fields .field>span{display:flex;align-items:center;gap:6px}.purchase-qr-fields input[type=file]{max-width:100%}.purchase-qr-fields+.purchase-peer-pay-fields{margin-top:12px}.purchase-qr{margin:10px 0}.purchase-qr img{display:block;background:#fff;border:1px solid var(--line);border-radius:9px;max-width:min(100%,320px);max-height:360px;width:auto;height:auto;object-fit:contain}.purchase-qr figcaption{margin-top:8px}.purchase-copy{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.purchase-copy .purchase-note{margin-bottom:0}.purchase-copy .field{width:100%}.purchase-products,.purchase-receipts{list-style:none;padding:0;margin:0}.purchase-product{border-top:1px solid var(--line);padding-top:12px}.purchase-product+.purchase-product{margin-top:13px}.purchase-product h3{margin:0 0 5px;line-height:1.3;font-size:16px}.purchase-product-main{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.purchase-product-actions,.purchase-delivery{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.purchase-external{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;min-height:36px}.purchase-receipts{background:#f6f9f4;padding:9px 12px;border-radius:7px;font-size:13px;line-height:1.6}.purchase-receipts li+li{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}.purchase-receipts .purchase-note{margin-bottom:0}.purchase-delivery{justify-content:flex-start;margin-top:4px}.purchase-dialog{width:min(640px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto}.purchase-stock-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.purchase-check{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.55;margin:3px 0}.purchase-check input{width:17px;height:17px;flex:none;margin:2px 0 0;accent-color:var(--green)}.purchase-history summary{cursor:pointer;font-weight:650}.purchase-history ol{display:grid;gap:10px;margin:12px 0 0;padding-left:22px}.purchase-history li>:is(p,span){margin:2px 0 0;display:block;color:var(--muted);font-size:13px;white-space:pre-wrap}@media(max-width:680px){.purchase-panel .purchase-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:12px}.purchase-purpose{grid-column:1 / -1}.purchase-product-fields .fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-product-fields .field:nth-child(-n+2){grid-column:1 / -1}.purchase-product-main{flex-direction:column;gap:3px}.purchase-product-actions{justify-content:flex-start}.purchase-receipts{margin-top:7px}}@media(max-width:420px){.purchase-stock-choice{grid-template-columns:minmax(0,1fr)}.purchase-stock-choice .button{justify-self:start}.purchase-panel .filters{margin-bottom:12px}}.people-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}.people-email{overflow-wrap:anywhere;white-space:normal}.people-dialog .fields-grid{grid-template-columns:minmax(0,1fr)}:root{color-scheme:light;font-family:Inter,PingFang SC,Microsoft YaHei,Noto Sans CJK SC,system-ui,sans-serif;color:#162420;background:#f4f3ed;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;font-size:15px;--ink: #162420;--muted: #5e6862;--line: #e3e7e0;--surface: #fff;--canvas: #f4f3ed;--forest: #142e26;--green: #246a53;--green-dark: #1b543f;--green-pale: #eaf3ea;--radius: 11px}*{box-sizing:border-box}body{margin:0;min-width:300px}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.62}a{color:inherit;text-decoration:none}strong,b{font-weight:650}h1,h2,h3,p{margin-top:0}h1,h2,h3{color:#11221d;letter-spacing:-.025em}h1{font-size:clamp(26px,2.65vw,40px);line-height:1.16;margin-bottom:0;font-weight:750}h2{font-size:21px;line-height:1.3;margin-bottom:0}:focus-visible{outline:2px solid #328967;outline-offset:3px}::selection{color:#142e26;background:#cde4d2}.app-shell{min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;display:flex;flex-direction:column;background:var(--forest);color:#f3faf6;padding:0 10px 8px;z-index:5}.brand-link{display:block;margin:0 10px;border-bottom:1px solid #527064}.brand{display:flex;align-items:center;gap:13px;white-space:nowrap;font-size:25px;font-weight:680;letter-spacing:-.045em}.brand-logo{width:38px;height:38px;flex:none;display:block}.sidebar .brand{min-height:94px;padding:0 12px}.sidebar nav{display:flex;flex-direction:column;gap:5px;margin-top:24px}.sidebar nav a{display:flex;align-items:center;gap:15px;padding:0 21px;min-height:54px;border-radius:9px;font-size:17px;font-weight:560;color:#edf5f0;transition:color .15s ease,background-color .15s ease;white-space:nowrap}.sidebar nav a:hover{background:#244638}.sidebar nav a.active{background:#386953;color:#fff}.sidebar :focus-visible{outline-color:#a8d3bd}.sidebar-user{margin:auto 10px 0;padding:14px 9px 8px;border-top:1px solid #527064;display:grid;gap:9px}.sidebar-user-identity{min-width:0;display:flex;gap:10px;align-items:center}.sidebar-user-identity>svg{flex:none}.sidebar-user-name{min-width:0;flex:1}.sidebar-user-name>*{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user-name span{font-size:12px;color:#bed0c5;margin-top:2px}.sidebar-user-actions{display:flex;gap:6px;align-items:center}.change-password{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;border:1px solid #527064;border-radius:7px;background:transparent;color:inherit;font-size:13px;font-weight:620;white-space:nowrap}.change-password,.logout{min-width:44px;min-height:44px}.logout,.icon-button{display:inline-grid;place-items:center;border:0;padding:7px;background:transparent;color:inherit;border-radius:6px}.change-password:hover,.logout:hover{background:#345b48}.icon-button:hover{background:#edf2eb}.main-content{margin-left:240px;min-width:0;min-height:100dvh;padding:28px 28px 40px;max-width:1700px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:48px;margin-bottom:28px}.page-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:flex-end}.button{min-height:42px;padding:0 16px;border-radius:8px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;color:var(--green-dark);background:transparent;font-weight:630;line-height:1.25;font-size:14px;transition:background .15s ease,border .15s ease}.button.primary{color:#fff;background:var(--green);border-color:var(--green)}.button.primary:not(:disabled):hover{background:var(--green-dark);border-color:var(--green-dark)}.button.secondary{border-color:#477765;background:#fff}.button.secondary:not(:disabled):hover{background:#edf5eb}.button svg{flex:none}.page-title .button{min-height:47px;padding-inline:16px}.back-link{display:inline-flex;gap:5px;align-items:center;color:var(--green-dark);font-size:13px;margin-bottom:10px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px #20302608}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.stat{display:grid;overflow:hidden;position:relative;min-height:126px;padding:17px 18px;gap:5px;align-content:center;transition:border-color .15s ease,background-color .15s ease}.stat:hover{border-color:#b4cabe;background:#fdfffd}.stat>strong{font-size:39px;line-height:1.06;font-weight:730;font-variant-numeric:tabular-nums;letter-spacing:-.055em}.stat>span:last-child{color:#46534d;font-size:16px;font-weight:510}.stat-icon{position:absolute;right:15px;top:15px;width:44px;height:44px;display:grid;place-items:center;border-radius:9px;background:var(--green-pale);color:var(--green-dark)}.stat-icon.alert{color:#a95a06;background:#fcf1dc}.restock-panel{padding:17px;margin-bottom:20px}.restock-panel .plain-link{display:inline-flex;align-items:center;min-height:32px;white-space:nowrap}.restock-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:8px;margin:0;padding:0;list-style:none}.restock-item{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px;padding:11px 12px;border-radius:8px;background:#fcf1dc;overflow-wrap:anywhere}.restock-code{display:block;margin-top:3px;color:var(--muted);font-size:12px}.restock-quantities{text-align:right;font-size:13px;color:#68552f;font-variant-numeric:tabular-nums}.restock-quantities>div+div{margin-top:3px}.restock-quantities strong{color:#894a12}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.89fr) minmax(238px,1fr);gap:16px;margin-bottom:20px}.dashboard-columns.simple{display:block}.activity-panel,.tasks-panel,.recent-panel{min-width:0;padding:17px 17px 19px}.activity-panel,.tasks-panel{min-height:304px}.dashboard-columns.simple .tasks-panel{min-height:0}.chart-legend{display:flex;gap:15px;font-size:12px;color:#495650;white-space:nowrap}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{width:11px;height:11px;border-radius:3px}.legend-in{background:var(--green)}.legend-out{background:#aacaad}.activity-chart{display:grid;grid-template-columns:27px minmax(0,1fr);gap:8px;padding:10px 3px 6px 0}.chart-axis{display:flex;flex-direction:column;justify-content:space-between;height:216px;color:#56645d;text-align:right;font-size:12px;font-variant-numeric:tabular-nums;transform:translateY(-7px)}.chart-area{position:relative;min-width:0}.chart-lines{position:absolute;inset:0 0 auto;height:202px;display:flex;flex-direction:column;justify-content:space-between;border-left:1px solid #dfe5df}.chart-lines i{display:block;border-top:1px solid #dfe5df}.chart-groups{position:relative;display:grid;grid-template-columns:repeat(var(--point-count),minmax(0,1fr))}.chart-group{min-width:0;text-align:center;font-size:12px;color:#43514a}.chart-group>span{display:block;margin-top:10px;white-space:nowrap}.chart-bars{height:202px;display:flex;align-items:end;justify-content:center;padding:0 9%;gap:1px}.chart-bars i{height:var(--bar-height);width:41%;max-width:42px;border-radius:4px 4px 0 0}.task-link{display:grid;grid-template-columns:25px minmax(0,1fr) auto 17px;align-items:center;gap:12px;min-height:64px;padding:8px 4px;border-bottom:1px solid var(--line);font-size:15px;font-weight:550}.task-link:hover{background:#f8faf6}.task-icon{color:var(--green-dark)}.task-count{min-width:28px;padding:3px 6px;text-align:center;background:#eef1ed;color:#546258;border-radius:7px;font-variant-numeric:tabular-nums}.task-count.has-count{background:#fff1d7;color:#7f410a}.recent-panel .panel-heading{margin-bottom:14px}.plain-link,.table-link{color:var(--green-dark);font-weight:620}.plain-link{font-size:13px}.plain-link:hover,.table-link:hover,.back-link:hover{text-decoration:underline;text-underline-offset:3px}.table-scroll{overflow:auto;max-width:100%;border-radius:6px}.table-scroll table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}th,td{border-bottom:1px solid #e6ebe5;padding:10px 13px}th{white-space:nowrap;background:#e9eee7;color:#1d3028;font-weight:660}td{vertical-align:middle}tbody tr:hover>td{background:#fbfcfa}.tabular,.quantity-cell{font-variant-numeric:tabular-nums;white-space:nowrap}.quantity-cell{font-weight:650}.quantity-cell small{color:var(--muted);font-weight:500}.status-group{display:flex;flex-wrap:wrap;gap:4px}.status,.level-tag{display:inline-block;border-radius:7px;padding:3px 8px;font-size:12px;font-weight:650;line-height:1.45;white-space:nowrap}.status.success{background:#dfeddc;color:#245639}.status.warning{background:#fff1d8;color:#894a12}.status.danger{background:#fae6e0;color:#8c3023}.status.muted,.level-tag{background:#edf1eb;color:#56615a}.level-tag{margin-left:2px;padding-inline:6px}.inline-status{margin-left:7px}.cell-caption{color:var(--muted);font-size:12px;margin-top:4px}.empty{padding:25px;color:var(--muted);text-align:center}.data-panel,.detail-panel,.settings-form{padding:18px;min-width:0;margin-bottom:16px}.filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:16px}.filters .button{min-height:40px}.filters .field{min-width:117px}.filters .field:first-child{flex:1 1 195px;max-width:330px}.filters .field input[type=date]{min-width:124px}.result-count{color:var(--muted);font-size:13px;margin-bottom:10px}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:620;min-width:0}.field input:not([type=checkbox]),.field select,.field textarea{box-sizing:border-box;width:100%;min-height:40px;padding:8px 10px;border-radius:7px;border:1px solid #ced8cd;background:#fff;color:var(--ink);font-size:14px;font-weight:450}.field input::placeholder,.field textarea::placeholder{color:#707b74;opacity:1}.field textarea{resize:vertical}.field :is(input,select,textarea):focus{outline:2px solid #70a98b;outline-offset:1px}.search-control{display:flex;align-items:center;position:relative}.search-control svg{color:var(--muted);position:absolute;left:10px;pointer-events:none}.field .search-control input{padding-left:34px}.reset-filters{align-self:center}.table-link{padding:0;border:0;background:none;font-size:inherit}.expand-button{display:inline-flex;align-items:center;gap:4px}.expand-button .rotated{transform:rotate(180deg)}.expanded-row td{background:#f6f8f4}.lot-table{margin:3px 0}.lot-table table{font-size:13px}.lot-table td{background:#fff}.title-code{display:block;margin-top:8px;font-size:14px;color:var(--muted);letter-spacing:0;font-weight:550}.detail-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:20px 16px;margin:18px 0 0}.detail-fields dt{font-size:13px;font-weight:620;color:var(--muted)}.detail-fields dd{margin:5px 0 0;overflow-wrap:anywhere}.fields-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:14px}.item-code-note{margin:14px 0 8px;color:var(--muted);font-size:14px}.item-code-note strong{color:var(--ink);overflow-wrap:anywhere}.item-advanced summary{width:fit-content;min-height:44px;padding-block:12px;color:var(--green-dark);font-size:14px;font-weight:620;cursor:pointer}.item-advanced .fields-grid{margin-top:8px}.item-advanced .field small{color:var(--muted);font-weight:450}.item-expiry-note{margin:8px 0 0}.check-fields{display:flex;flex-wrap:wrap;column-gap:22px;row-gap:8px;margin-top:16px;font-size:14px}.material-photo{margin:14px 0 8px}.material-photo>img{width:min(100%,180px);height:120px;border:1px solid var(--line);border-radius:8px;object-fit:contain;background:var(--panel)}.material-photo-actions,.material-cell{display:flex;align-items:center;gap:8px}.material-photo-actions{flex-wrap:wrap}.material-thumbnail{display:inline-flex;flex:none;margin-block:2px}.material-thumbnail img{width:52px;height:52px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}.check-fields input{accent-color:var(--green)}.action-row{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px}.settings-tabs{display:flex;gap:3px;flex-wrap:wrap;margin:0 0 16px;padding:3px;width:fit-content;background:#e6ebe2;border-radius:9px}.settings-tabs a{border-radius:7px;padding:8px 15px;color:var(--muted);font-weight:650;font-size:14px}.settings-tabs a[aria-current]{color:var(--green-dark);background:#fff;box-shadow:0 1px 3px #24312412}.settings-form p{color:var(--muted);font-size:14px;line-height:1.55}.settings-form form>.field+.field{margin-top:13px}.department-list{display:flex;gap:8px;flex-wrap:wrap}.role-editor{display:flex;align-items:center;gap:8px}.role-editor .field{min-width:110px}.role-editor .button{min-height:40px}.dialog{width:min(calc(100% - 36px),455px);padding:21px;color:var(--ink);box-shadow:0 8px 36px #08281925}.dialog::backdrop{background:#152b23a0}.dialog p{color:var(--muted);line-height:1.55}.password-dialog p{overflow-wrap:anywhere}.error-box{display:flex;align-items:start;gap:8px;margin:10px 0;padding:10px 12px;border:1px solid #ebcbc0;border-radius:7px;background:#fff2ed;color:#85382b;font-size:14px}.error-box svg{flex:none;margin-top:1px}.notice{position:fixed;bottom:20px;right:20px;z-index:12;padding:11px 17px;border-radius:8px;color:#fff;background:#164d38;font-size:14px;box-shadow:0 3px 14px #132d2328}.loading{display:flex;justify-content:center;align-items:center;gap:8px;min-height:90px;color:var(--muted);font-size:14px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.boot-screen,.login-page{min-height:100dvh;display:grid;place-content:center;width:100%;padding:18px}.login-container{width:min(100%,440px)}.login-brand{color:var(--green-dark);margin:0 0 18px}.login-panel{padding:26px}.login-panel h1{font-size:27px;margin-bottom:18px}.login-status{margin:0 0 14px;padding:9px 12px;border-radius:7px;background:var(--green-pale);color:var(--green-dark);font-size:14px}.login-panel .field{margin-bottom:13px}.login-remember{display:flex;align-items:center;gap:8px;width:fit-content;min-height:44px;font-size:14px;cursor:pointer}.login-remember input{accent-color:var(--green)}.login-panel .button{width:100%;margin-top:3px}.demo-info{margin-top:18px;border-top:1px solid var(--line);padding-top:14px;font-size:12px;color:var(--muted)}.demo-info p{margin:5px 0;line-height:1.65}.demo-info code{color:var(--green-dark);font-size:.95em;white-space:nowrap}@media(min-width:1420px){.sidebar{width:245px}.sidebar .brand{min-height:99px;font-size:27px}.sidebar nav{margin-top:28px}.sidebar nav a{font-size:18px}.main-content{margin-left:245px;padding:27px 26px 38px 30px}.page-title{margin-bottom:34px;min-height:47px}.page-title .button{min-height:49px;padding-inline:22px;font-size:17px}.page-title .button.primary{min-width:155px}.stats-grid{margin-bottom:22px;gap:17px}.stat{min-height:131px;padding-left:23px}.stat>strong{font-size:42px}.stat>span:last-child{font-size:17px}.stat-icon{top:15px;right:17px;width:48px;height:48px}.dashboard-columns{gap:18px}.activity-panel,.tasks-panel{min-height:327px}.activity-panel,.tasks-panel,.recent-panel{padding:17px 19px 19px}h2{font-size:23px}.task-link{min-height:72px;font-size:16px}.chart-axis{height:225px}.chart-lines,.chart-bars{height:211px}.recent-panel .table-scroll table{font-size:15px}.recent-panel th:first-child{width:23%}.recent-panel th,.recent-panel td{padding-block:12px}}@media(max-width:1120px){.sidebar{width:194px}.sidebar .brand{font-size:22px;padding-inline:7px}.sidebar nav a{padding-inline:16px;font-size:15px}.main-content{margin-left:194px;padding-inline:22px}.stat-icon{width:36px;height:36px;right:10px;top:11px}.stat-icon svg{width:20px;height:20px}.stats-grid{gap:10px}.stat{padding-inline:11px}.dashboard-columns{gap:12px}}@media(max-width:870px){.sidebar{width:70px;padding-inline:7px}.sidebar .brand{min-height:69px;padding-inline:0}.sidebar .brand>span,.sidebar nav a>span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.brand-link{margin:0}.brand{justify-content:center}.sidebar nav{margin-top:17px}.sidebar nav a{display:grid;place-items:center;min-height:45px;padding:0}.sidebar-user{margin-inline:0;padding-inline:0}.sidebar-user-identity>svg,.change-password svg{display:none}.sidebar-user-name{text-align:center;font-size:12px}.sidebar-user-name span{font-size:10px}.sidebar-user-actions{flex-direction:column;gap:3px}.change-password{width:100%;padding-inline:2px;font-size:11px}.main-content{margin-left:70px;padding-inline:16px}}@media(min-width:681px)and (max-height:600px){.sidebar nav{min-height:0;overflow:auto;scrollbar-width:thin}.sidebar nav a,.sidebar-user{flex-shrink:0}.sidebar nav a:focus-visible{outline-offset:-3px}}@media(max-width:680px){:root{--mobile-nav-height: calc(60px + env(safe-area-inset-bottom, 0px)) ;scroll-padding-bottom:calc(var(--mobile-nav-height) + 12px)}.sidebar{position:relative;width:auto;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;padding:max(6px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left))}.sidebar .brand{min-height:44px;padding:0 3px;font-size:19px;gap:8px;justify-content:flex-start}.sidebar .brand svg{width:26px;height:26px}.sidebar .brand>span,.sidebar nav a>span{position:static;width:auto;height:auto;clip-path:none;overflow:visible}.brand-link{border:0}.sidebar nav{position:fixed;inset:auto 0 0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;min-height:var(--mobile-nav-height);margin:0;padding:5px max(7px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom,0px)) max(7px,env(safe-area-inset-left));background:var(--forest);border-top:1px solid #375749}.sidebar nav a{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:48px;padding:3px 2px;font-size:11px;line-height:1.25}.sidebar nav a svg{width:19px;height:19px}.sidebar-user{grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:0;margin:0;gap:6px;border:0}.sidebar-user-name{text-align:right}.sidebar-user-actions{flex-direction:row}.change-password{width:auto;padding-inline:7px;font-size:12px}.icon-button{min-width:44px;min-height:44px}.main-content{margin-left:0;padding:20px max(12px,env(safe-area-inset-right)) calc(24px + var(--mobile-nav-height)) max(12px,env(safe-area-inset-left))}.page-title{flex-wrap:wrap;margin-bottom:19px;align-items:start}.button,.page-title .button,.filters .button,.role-editor .button{min-height:44px}.page-title .button{padding-inline:11px;font-size:13px;gap:5px}.page-title .button svg{width:14px}.page-actions{justify-content:flex-start;gap:6px}.back-link{min-height:44px;margin-bottom:4px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:12px;gap:8px}.stat{min-height:83px}.stat>strong{font-size:30px}.stat>span:last-child{font-size:14px}.stat-icon{width:32px;height:32px}.stat-icon svg{width:17px;height:17px}.restock-panel{padding:3px 12px 12px;margin-bottom:12px}.restock-panel .panel-heading{margin-bottom:3px}.restock-panel .plain-link{min-height:44px}.dashboard-columns{display:block;margin-bottom:12px}.activity-panel{margin-bottom:12px;min-height:230px}.tasks-panel{min-height:auto}.activity-panel,.tasks-panel,.recent-panel,.data-panel,.detail-panel,.settings-form{padding:13px}h2{font-size:17px}.chart-legend{font-size:10px;gap:7px}.chart-axis{height:154px}.chart-lines,.chart-bars{height:140px}.task-link{min-height:48px}.filters{gap:8px}.filters .field{flex:1 1 125px;min-width:0}.filters .field:first-child{flex:1 0 100%;max-width:none}.field input:not([type=checkbox]),.field select,.field textarea{min-height:44px;font-size:16px}.login-page{grid-template-columns:minmax(0,440px);padding:18px max(14px,env(safe-area-inset-right)) 18px max(14px,env(safe-area-inset-left))}.login-panel{padding:20px}.settings-tabs a{display:inline-flex;align-items:center;min-height:44px}.role-editor .field{flex:1;min-width:0}.dialog{max-height:calc(100dvh - 36px);overflow:auto}.notice{bottom:calc(var(--mobile-nav-height) + 8px);right:12px;max-width:calc(100% - 24px)}th,td{padding:9px 10px}.table-scroll table{font-size:13px}}@media(max-width:360px){.sidebar .brand{font-size:17px;gap:5px}.sidebar .brand svg{width:23px;height:23px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
