@layer properties;:root{--bg: #d8d9d7;--surface: #f3f4ef;--surface-alt: #e3e8e2;--text: #101716;--muted: #4e5a57;--primary: #2e6f63;--primary-dark: #25594f;--danger: #9d2f3a;--warning: #9b6b1d;--border: #9aa49f;--shadow: none;--radius: 0}*{box-sizing:border-box}html,body{margin:0;min-height:100%;scroll-behavior:smooth;background:var(--bg);color:var(--text);font-family:Tahoma,Segoe UI,sans-serif;font-size:12px;line-height:1.25}body{min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}input,select,textarea{width:100%;border:1px solid var(--border);border-radius:0;padding:.28rem .4rem;background:#fff;color:var(--text)}textarea{resize:vertical}.auth-page,.page{padding:.65rem}.auth-page{min-height:100vh;display:grid;place-items:center}.auth-card,.card{background:var(--surface);border:1px solid var(--border);border-radius:0;box-shadow:var(--shadow)}.auth-card{width:min(520px,100%);padding:1rem}.card{padding:.8rem}.narrow-card{max-width:720px}.center-page{min-height:calc(100vh - 4rem);display:grid;place-items:center}.center-card{max-width:480px;text-align:center}.shell{display:block;min-height:100vh;position:relative}.sidebar{position:fixed;top:0;left:0;bottom:0;width:min(260px,82vw);padding:.65rem;background:#d9ddd7;color:#0f1715;border-right:1px solid #99a39d;display:flex;flex-direction:column;gap:.9rem;transform:translate(-100%);transition:transform .2s ease;z-index:30;overflow-y:auto;box-shadow:0 0 0 1px #99a39d,0 8px 20px #00000029}.sidebar-backdrop{display:block;position:fixed;inset:0;border:0;background:#08100e59;z-index:20}.shell.sidebar-open .sidebar{transform:translate(0)}.brand{display:flex;gap:.5rem;align-items:center}.brand h1,.page-header h1,.auth-card h1,.topbar h2{margin:0}.brand p,.muted,.cell-meta{color:var(--muted)}.brand-badge{width:30px;height:30px;border-radius:0;display:grid;place-items:center;background:#2f6f63;color:#f4f9f8;font-weight:700;font-size:11px}.menu{display:flex;flex-direction:column;gap:.15rem}.menu-link{padding:.35rem .45rem;border-radius:0;color:#18221f;border:1px solid transparent}.menu-link.active,.menu-link:hover{background:#edf1ec;border-color:#a3aca7}.sidebar-footer{margin-top:auto}.status-chip{display:inline-flex;padding:.2rem .4rem;border-radius:0;background:#edf1ec;color:#23302d;border:1px solid #a3aca7}.main-content{display:flex;flex-direction:column}.topbar{padding:.4rem .6rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:#2f6f63;color:#f7fffd;border-bottom:1px solid #234c45}.topbar-left{display:flex;align-items:center;gap:.6rem}.sidebar-toggle{display:inline-flex;align-items:center;border:1px solid #8ec3b8;background:#f7fffd;color:#204841;padding:.25rem .5rem;cursor:pointer}.content{padding:.5rem}.page-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.5rem}.toolbar,.section-header,.topbar-actions,.pager,.action-row{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.toolbar{margin-bottom:.5rem}.grid{display:grid;gap:.55rem}.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.full-span{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:.2rem;margin-bottom:.55rem}.field span,.eyebrow{font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.button{border:1px solid #1f4b44;border-radius:0;padding:.34rem .62rem;cursor:pointer;transition:background .1s ease;font-size:12px;line-height:1.2}.button:hover{transform:none}.button.primary{background:var(--primary);color:#fff}.button.primary:hover{background:var(--primary-dark)}.button.ghost{background:#e4e9e4;color:var(--text);border-color:#95a09b}.button.danger{background:var(--danger);color:#fff}.button.small{padding:.2rem .4rem;font-size:11px}.full-width{width:100%}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:.35rem .4rem;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}.pill-list{display:flex;gap:.5rem;flex-wrap:wrap}.pill,.badge{display:inline-flex;align-items:center;border-radius:0;padding:.15rem .3rem;font-size:.68rem;font-weight:600}.pill{background:#0f6e5a14;color:var(--primary)}.pill.subtle{background:#1f365614;color:#2d4d73}.badge{background:var(--surface-alt);color:var(--text)}.badge.success{background:#0f6e5a1f;color:var(--primary-dark)}.badge.warn{background:#d18c221f;color:var(--warning)}.badge.danger{background:#b43f521f;color:var(--danger)}.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}.checkbox-item{display:flex;gap:.7rem;align-items:center;background:var(--surface-alt);padding:.4rem .45rem;border-radius:0;border:1px solid var(--border)}.checkbox-item input{width:auto}.override-list{display:flex;flex-direction:column;gap:.85rem}.override-row{display:grid;grid-template-columns:2fr 1fr 2fr auto;gap:.75rem}.matrix{padding:1rem 0;border-top:1px solid var(--border)}.detail-list{display:grid;gap:.85rem}.detail-list div{display:flex;justify-content:space-between;gap:1rem}.detail-list dt{color:var(--muted)}.form-error{color:var(--danger)}.form-success{color:var(--primary)}.empty-state{color:var(--muted)}.auth-links{margin-top:1rem}.marg-page{padding:.35rem}.marg-window{border:1px solid #89948e;background:#ecefeb}.marg-window-title{padding:.2rem .45rem;background:linear-gradient(180deg,#e6edf8,#c8d4e6);border-bottom:1px solid #95a4b8;font-size:11px;color:#27384b}.marg-window-menu{padding:.2rem .45rem;border-bottom:1px solid #99a39d;background:#f8f8f6;color:#35403b}.marg-window-menu-link{color:inherit;text-decoration:none}.marg-window-menu-link:hover{text-decoration:underline}.marg-window-menu-separator{display:inline-block;padding:0 .2rem}.marg-window-toolbar{display:flex;justify-content:space-between;gap:.5rem;flex-wrap:wrap;padding:.3rem .45rem;border-bottom:1px solid #95a09b;background:#2f6f63;color:#f6fffd}.marg-window-toolbar-left,.marg-window-toolbar-right{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem}.marg-window-label{opacity:.85}.marg-window-value{padding:.08rem .25rem;border:1px solid rgba(255,255,255,.28);background:#ffffff14;font-weight:600}.marg-window-content{display:grid;grid-template-columns:minmax(0,1fr);gap:.35rem;padding:.5rem}.marg-window-content-single{grid-template-columns:minmax(0,1fr)}.marg-main-panel{border:1px solid #9ca5a0;background:#fdfdfc}.marg-mini-button{display:inline-flex;align-items:center;justify-content:center;padding:.2rem .45rem;border:1px solid #1f4b44;background:#3e7d71;color:#fff;line-height:1.2}.marg-mini-button:hover{background:#336a60}.marg-mini-button-block{display:flex;margin-top:.3rem}.marg-alert{margin:.4rem;padding:.2rem .35rem;border:1px solid #9da7a1;background:#edf1ec}.marg-alert-error{border-color:#ba6974;background:#faecef;color:#8e2f3a}.marg-product-form{background:#fbfcfa}.marg-form-band{border-bottom:1px solid #a7b0ab;padding:.35rem .45rem}.marg-form-band-tag{display:inline-block;margin-bottom:.28rem;padding:.08rem .28rem;border:1px solid #8e9893;background:#2e6f63;color:#f7fffd;font-size:10px;font-weight:700;letter-spacing:.04em}.marg-form-band-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.28rem}.marg-form-band-fields div{display:grid;grid-template-columns:auto 1fr;gap:.2rem;align-items:center;border:1px solid #b6bdb8;background:#f3f6f2;padding:.12rem .24rem;font-size:10px}.marg-form-band-fields span{color:#3a4642}.marg-form-band-fields strong{justify-self:end;color:#172320}.marg-form-block{border-bottom:1px solid #a7b0ab;padding:.45rem}.marg-form-block-last{border-bottom:0}.marg-form-block-title{margin-bottom:.35rem;padding:.14rem .28rem;border:1px solid #9ca5a0;background:#dbe2dc;font-size:11px;font-weight:700;letter-spacing:.04em;color:#25322e}.marg-row-matrix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.marg-row-column{border:1px solid #bcc4bf;background:#f7f9f6;padding:.28rem;display:grid;gap:.16rem}.marg-entry-row{display:grid;grid-template-columns:112px 10px minmax(0,1fr);gap:.22rem;align-items:center;min-height:24px;font-size:11px}.marg-entry-row-wide{grid-template-columns:112px 10px minmax(0,1fr);margin-top:.3rem}.marg-entry-name{color:#2f3c38}.marg-entry-colon{text-align:center;color:#4c5955}.marg-inline-check{display:inline-flex;align-items:center;gap:.24rem;color:#1b2825}.marg-inline-check input{width:auto;margin:0}.marg-control{border:1px solid #98a29d;background:#fff;color:#101716;padding:.2rem .3rem;min-height:24px}.marg-control:focus{outline:1px solid #4c7e74;outline-offset:0}.marg-control-invalid{border-color:#bf6a75;background:#fff9fa}.marg-entry-error{font-size:10px;color:#9a2f3a}.marg-more-options-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.25rem}.marg-entry-flag{display:flex;align-items:center;gap:.35rem;min-height:24px;padding:.16rem .2rem;border:1px solid #bac1bd;background:#f2f5f1}.marg-entry-flag input{width:auto;margin:0}.marg-readonly-value{min-height:22px;border:1px solid #a8b1ac;background:#edf1ec;color:#1f2b27;padding:.1rem .24rem;display:flex;align-items:center}.marg-flag-value{margin-left:auto;font-size:10px;color:#24312d}.marg-audit-grid{margin-top:.28rem}.marg-bottom-strip{display:flex;justify-content:space-between;gap:.4rem;align-items:center;flex-wrap:wrap;border-top:1px solid #a7b0ab;background:#e8ece7;padding:.3rem .4rem}.marg-bottom-meta{display:flex;gap:.5rem;flex-wrap:wrap;color:#25322f}.marg-bottom-actions{display:inline-flex;gap:.28rem;align-items:center}.marg-list-filter-matrix{gap:.3rem}.marg-list-filter-matrix .marg-row-column{padding:.22rem;gap:.12rem}.marg-list-filter-matrix .marg-entry-row{min-height:22px}.marg-list-filter-matrix .marg-control{min-height:22px;padding:.1rem .22rem}.marg-list-filter-footer{margin-top:.28rem;display:flex;justify-content:space-between;align-items:center;gap:.35rem;flex-wrap:wrap;border:1px solid #bcc4bf;background:#f7f9f6;padding:.16rem .24rem}.marg-list-results-block{padding-top:.3rem}.marg-bottom-strip-tight{border-top:1px solid #a7b0ab;background:#e8ece7;margin-top:0}.marg-empty-bar{margin:.35rem;border:1px dashed #aab3ae;background:#f9faf8;color:#44514d;padding:.35rem}.marg-product-table-wrap{padding:.35rem}.marg-product-table{width:100%;border-collapse:collapse;background:#fbfcfa}.marg-product-table th,.marg-product-table td{border:1px solid #b7c0ba;padding:.2rem .3rem;vertical-align:top;line-height:1.3;color:#1f2a27}.marg-product-table th{background:#d6ddd7;color:#263532;font-size:10px;letter-spacing:.05em}.marg-product-table tbody tr:nth-child(odd){background:#f8faf7}.marg-product-table tbody tr:hover{background:#eef4ef}.marg-cell-main{font-weight:700}.marg-cell-sub{color:#4a5753}.marg-cell-chip{display:inline-block;margin-top:.12rem;padding:.02rem .18rem;border:1px solid #bac2bd;background:#edf2ee;font-size:10px}.marg-action-set{display:flex;flex-wrap:wrap;gap:.16rem}.marg-action-button{border:1px solid #8b9690;background:#f2f5f2;color:#23302d;font-size:10px;padding:.1rem .25rem;line-height:1.2;cursor:pointer}.marg-action-button:hover{background:#e7ece8}.marg-action-button-good{border-color:#5e8d66;background:#e8f2ea;color:#2c6137}.marg-action-button-warn{border-color:#9c7d47;background:#f5eee1;color:#6d5429}.marg-status-group{display:flex;flex-wrap:wrap;gap:.14rem}.marg-status-chip{display:inline-flex;align-items:center;justify-content:center;border:1px solid #9ca5a0;background:#edf1ec;color:#2e3b37;font-size:10px;padding:.02rem .2rem;letter-spacing:.04em}.marg-status-chip-good{border-color:#5f8f67;background:#e9f3eb;color:#2f6438}.marg-status-chip-warn{border-color:#aa8350;background:#f7efe2;color:#70552a}.marg-status-chip-info{border-color:#5f8397;background:#e9f0f4;color:#2c5266}.marg-status-chip-muted{border-color:#8e9994;background:#edf1ee;color:#3c4a46}.opening-line-grid{overflow-x:auto}.opening-product-cell{min-width:230px;position:relative}.opening-product-suggestions{position:absolute;z-index:4;left:0;right:0;border:1px solid #8e9b95;background:#fdfefd;max-height:170px;overflow-y:auto}.opening-product-option{width:100%;border:0;border-bottom:1px solid #e0e6e2;background:transparent;text-align:left;padding:.25rem .3rem;cursor:pointer}.opening-product-option:hover{background:#ebf2ee}.stock-summary-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.3rem}.stock-summary-card{border:1px solid #b4beb8;background:#f5f8f5;padding:.35rem}.stock-summary-card h4{margin:0;font-size:10px;letter-spacing:.05em;color:#33403c}.stock-summary-card p{margin:.18rem 0 0;font-size:14px;font-weight:700;color:#1d2926}@media(max-width:980px){.sidebar{padding-bottom:.75rem}.two-columns,.override-row{grid-template-columns:1fr}.topbar,.content,.page,.auth-page{padding:.5rem}.marg-window-content,.marg-form-band-fields,.marg-row-matrix,.marg-more-options-grid,.marg-list-filter-matrix,.stock-summary-cards{grid-template-columns:1fr}.marg-entry-row,.marg-entry-row-wide{grid-template-columns:92px 10px minmax(0,1fr)}}.visible{visibility:visible}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.flex-wrap{flex-wrap:wrap}.border{border-style:var(--tw-border-style);border-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease, ease);transition-duration:var(--tw-duration, 0s)}@property --tw-rotate-x{syntax: "*"; inherits: false;}@property --tw-rotate-y{syntax: "*"; inherits: false;}@property --tw-rotate-z{syntax: "*"; inherits: false;}@property --tw-skew-x{syntax: "*"; inherits: false;}@property --tw-skew-y{syntax: "*"; inherits: false;}@property --tw-border-style{syntax: "*"; inherits: false; initial-value: solid;}@property --tw-blur{syntax: "*"; inherits: false;}@property --tw-brightness{syntax: "*"; inherits: false;}@property --tw-contrast{syntax: "*"; inherits: false;}@property --tw-grayscale{syntax: "*"; inherits: false;}@property --tw-hue-rotate{syntax: "*"; inherits: false;}@property --tw-invert{syntax: "*"; inherits: false;}@property --tw-opacity{syntax: "*"; inherits: false;}@property --tw-saturate{syntax: "*"; inherits: false;}@property --tw-sepia{syntax: "*"; inherits: false;}@property --tw-drop-shadow{syntax: "*"; inherits: false;}@property --tw-drop-shadow-color{syntax: "*"; inherits: false;}@property --tw-drop-shadow-alpha{syntax: "<percentage>"; inherits: false; initial-value: 100%;}@property --tw-drop-shadow-size{syntax: "*"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x: initial;--tw-rotate-y: initial;--tw-rotate-z: initial;--tw-skew-x: initial;--tw-skew-y: initial;--tw-border-style: solid;--tw-blur: initial;--tw-brightness: initial;--tw-contrast: initial;--tw-grayscale: initial;--tw-hue-rotate: initial;--tw-invert: initial;--tw-opacity: initial;--tw-saturate: initial;--tw-sepia: initial;--tw-drop-shadow: initial;--tw-drop-shadow-color: initial;--tw-drop-shadow-alpha: 100%;--tw-drop-shadow-size: initial}}}
