:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#223a32;background:#f6f7f3;font-synthesis:none;font-size:14px;--green:#245847;--dark:#153d32;--line:#e4e8df;--muted:#727e74}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #99b28d;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #799b73;outline-offset:1px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1.1px;font-weight:550;line-height:1.2;margin-bottom:12px}h2{font-size:19px;letter-spacing:-.45px;font-weight:600;margin-bottom:8px}h3{font-size:16px;font-weight:600}p{color:var(--muted);line-height:1.65}small{display:block;color:var(--muted);font-size:11px;margin-top:5px;line-height:1.4}strong{font-weight:600}button{border:0}button,a{touch-action:manipulation}.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:11px 16px;border:1px solid #d9e0d3;border-radius:7px;background:white;color:var(--green);font-weight:550;font-size:13px;white-space:nowrap}.button:hover{background:#edf2e8}.button.primary{background:var(--green);color:white;border-color:var(--green)}.button.primary:hover{background:var(--dark)}.button.full{width:100%;justify-content:space-between;padding:14px 18px}.text-button{background:none;color:var(--green);font-size:12px;padding:8px 0;font-weight:600;white-space:nowrap}.text-button:hover{text-decoration:underline}.eyebrow{display:block;letter-spacing:1.7px;font-size:9px;color:#778774;font-weight:650;margin-bottom:15px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:26px;font-weight:600;letter-spacing:-1px}.brand>span{font-size:23px}.brand-dot{color:#9ab97b}.shell{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:30px 21px 15px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brand{margin:0 5px 33px}.business-card{display:flex;gap:11px;align-items:center;padding:14px 9px;background:#f6f7f2;border:1px solid #edf0e9;border-radius:7px;margin-bottom:30px}.business-icon{background:#e3ebdc;display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:7px;font-size:15px;color:var(--green)}.business-card strong{display:block;font-size:12px;max-width:140px;overflow-wrap:anywhere}.business-card small{font-size:10px}.nav-label{font-size:9px;color:#97a08e;letter-spacing:1.4px;padding:0 12px;margin-bottom:13px}.nav-item{display:flex;gap:13px;align-items:center;width:100%;background:none;color:#748073;padding:12px;border-radius:6px;text-align:left;font-size:12px;margin-bottom:5px}.nav-icon{font-size:19px;width:22px;text-align:center;line-height:1}.nav-item.selected{color:var(--green);background:#edf2e7;font-weight:600}.nav-item:hover{background:#f2f5ee}.sidebar-bottom{margin-top:auto;padding-top:30px}.foundation-note{border:1px solid #e7ebdf;border-radius:7px;padding:15px 12px;background:linear-gradient(140deg,#f9faf6,#f1f4e9);margin-bottom:20px}.foundation-note p{font-size:11px;margin:10px 0 0}.user-card{display:flex;gap:9px;align-items:center;border-top:1px solid var(--line);padding:18px 0 0}.avatar{width:32px;height:32px;border-radius:50%;background:#edeee8;display:grid;place-items:center;color:#5d705e}.user-card strong{font-size:11px}.user-card small{text-transform:capitalize;font-size:10px}.icon-button{margin-left:auto;color:var(--muted);background:none;font-size:21px;padding:6px}.workspace{min-width:0;display:flex;flex-direction:column}.topbar{min-height:82px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line);padding:0 38px;background:#fafbf8}.breadcrumb{font-size:11px;color:#7e887b;white-space:nowrap}.breadcrumb span{margin:0 12px;color:#c1c8bb}.search-box{margin-left:auto;display:flex;align-items:center;gap:10px;color:#929d8c}.search-box span{font-size:22px}.search-box input{border:0;background:transparent;width:180px;font-size:11px;padding:9px;color:var(--dark)}.live-label{font-size:10px;color:#798774;white-space:nowrap;display:flex;gap:6px;align-items:center}.live-label i{display:inline-block;width:6px;height:6px;background:#92ad7b;border-radius:50%}#content{padding:38px;max-width:1540px;width:100%;margin:0 auto;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:29px}.page-heading p{font-size:12px;margin:0}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:26px}.stat{padding:22px;border:1px solid var(--line);border-radius:9px;background:white}.stat>span{color:#778472;font-size:11px}.stat>strong{font-size:36px;font-weight:500;display:block;line-height:1;margin:17px 0 11px;letter-spacing:-1px}.stat small{font-size:10px}.panel,.onboarding{background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:24px;overflow:hidden}.section-top{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.section-top h2{font-size:15px;margin:0}.section-top p{font-size:11px;margin:5px 0 0}.section-top .eyebrow{margin-bottom:9px}.onboarding{background:linear-gradient(115deg,#f2f5e9,#fafbf6);border-color:#dfe6d3}.onboarding h2{font-size:19px}.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 24px 23px;gap:25px}.steps article{padding:15px 20px 0 0;border-right:1px solid #e0e6d6}.steps article:last-child{border:0}.step-number{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid #dce4cf;font-size:10px;margin-bottom:15px;color:#879377}.step-number.done{background:#dfe9d3;color:var(--green)}.steps h3{font-size:13px;margin-bottom:7px}.steps p{font-size:11px;max-width:220px;margin-bottom:8px}.badge{font-size:10px;border-radius:20px;padding:5px 9px;display:inline-flex;align-items:center;white-space:nowrap}.badge.green{background:#eaf1df;color:#5b794a}.badge.muted{background:#f0f1ed;color:#7e8578}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:9px;letter-spacing:.7px;text-transform:uppercase;background:#fafbf8;color:#8a9481;padding:13px 24px;font-weight:550;border-top:1px solid #edf0e8;border-bottom:1px solid #edf0e8;white-space:nowrap}td{padding:18px 24px;border-bottom:1px solid #f0f2ed;font-size:12px;vertical-align:middle}tr:last-child td{border-bottom:0}.product-cell{display:flex;align-items:center;gap:12px;min-width:160px}.product-cell strong{font-size:12px;overflow-wrap:anywhere}.product-mark{background:#f0f2e9;color:#8a9a77;width:35px;height:35px;border-radius:7px;display:grid;place-items:center;flex-shrink:0;font-size:10px;font-weight:500}.product-cell small{font-size:9px;letter-spacing:.5px}.numeric{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.positive{color:#5b8256}.numeric small{font-weight:400}.inline{display:inline}.tag{font-size:10px;display:inline-block;border:1px solid #e6eadf;padding:4px 7px;border-radius:4px;margin-right:4px;color:#6f7f64;white-space:nowrap}.count{margin-left:7px;border-radius:4px;background:#f0f3eb;color:#7a8b6b;font-size:10px;padding:3px 6px}.empty{text-align:center;padding:38px 24px 44px}.empty-icon{font-size:30px;color:#9ead90;margin-bottom:14px}.empty h3{font-size:15px;margin-bottom:9px}.empty p{font-size:12px;max-width:410px;margin:0 auto 20px}.note{display:flex;gap:15px;padding:17px 20px;border:1px dashed #d9e1d0;border-radius:8px;color:#8a9b7a}.note>span{font-size:22px}.note strong{font-size:12px;color:#607653}.note p{font-size:11px;margin:4px 0 0}.notice{border:1px solid #dce6d0;background:#eff4e6;color:#637852;border-radius:7px;padding:13px 17px;font-size:12px;line-height:1.6;margin-bottom:20px}.notice.warning{background:#fff5e9;color:#986626;border-color:#e9d5b6}.actions{display:flex;gap:16px;align-items:center}.location-title{display:flex;gap:14px;align-items:center}.location-symbol{display:grid;place-items:center;background:#f0f4e9;border-radius:8px;width:40px;height:40px;font-size:23px;color:#7b9263}.import-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.import-card{padding:28px}.import-card p,.import-card li{font-size:12px;line-height:1.9;color:var(--muted)}.import-card ul{padding-left:16px;margin:20px 0 28px}.import-symbol{font-size:32px;color:#8ca177;display:block;margin-bottom:26px}.import-card h2{font-size:21px}.workspace-footer{display:flex;justify-content:space-between;gap:20px;margin:0 38px;padding:21px 0;border-top:1px solid var(--line);font-size:10px;color:#a0a793}.workspace-footer span{font-size:8px;letter-spacing:1.2px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:550;margin-bottom:20px}.field input,.field select,.field textarea,.switch-label select{border:1px solid #dbe1d4;background:white;color:#354b3d;border-radius:6px;padding:12px;width:100%;min-width:0;font-size:13px;font-weight:400}.field textarea{resize:vertical;line-height:1.5;font-family:ui-monospace,monospace;font-size:12px}.field input[type=file]{font-size:11px;padding:12px}.field input[type=checkbox]{width:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.check{display:flex;align-items:center;gap:9px;font-size:12px;margin:18px 0;color:#5f7059}.check input{accent-color:var(--green);width:16px;height:16px}.fine{font-size:10px;line-height:1.7}.form-error{background:#fff0eb;border:1px solid #efd3ca;border-radius:6px;padding:12px;color:#a24b36;font-size:12px}.error-list{padding-left:20px;font-size:12px;color:#9b573b;line-height:1.7}.error-list strong{margin-right:5px}dialog{border:0;border-left:1px solid #e2e8da;padding:30px;width:min(680px,100%);height:100dvh;max-height:100dvh;margin:0 0 0 auto;max-width:100%;color:#223a32;box-shadow:-15px 0 80px #153d3220}dialog::backdrop{background:#15332a60;backdrop-filter:blur(2px)}.drawer-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.drawer-header h2{font-size:25px}.drawer-header .eyebrow{margin-bottom:10px}.close-button{font-size:28px;color:#6a795f;background:#f3f5ee;border-radius:50%;width:32px;height:32px;line-height:1}.drawer-intro{font-size:12px;margin-bottom:28px}.drawer-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:20px;border-top:1px solid var(--line);margin-top:24px}.drawer-actions button{flex-shrink:0}dialog .table-scroll{margin:15px 0}dialog th,dialog td{padding:13px;font-size:11px}dialog h3{margin-top:26px}.detail-summary{padding:18px;background:#f5f7ef;border-radius:8px}.detail-summary p{display:flex;justify-content:space-between;gap:15px;font-size:12px;margin:15px 0 0}.detail-summary strong{color:var(--dark)}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:var(--dark);color:white;padding:14px 22px;border-radius:8px;font-size:13px;box-shadow:0 5px 20px #153d3220;opacity:0;pointer-events:none;transition:.2s;z-index:10;max-width:90vw}#toast.visible{opacity:1;transform:translate(-50%,0)}.auth-layout{display:grid;grid-template-columns:45% 55%;min-height:100vh}.auth-story{background:var(--dark);color:#f3f5e9;padding:44px 56px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-story:after{content:'';position:absolute;width:500px;height:500px;border:1px solid #bdd59d18;border-radius:50%;right:-300px;bottom:-100px;box-shadow:0 0 0 50px #bdd59d05,0 0 0 100px #bdd59d05;pointer-events:none}.auth-story .eyebrow{color:#a8bb91}.auth-story h1{font-size:clamp(48px,5.5vw,82px);font-weight:450;letter-spacing:-3px;line-height:1.05;margin:30px 0}.auth-story em{font-family:Georgia,serif;font-weight:400;color:#c6d7a6}.auth-story p{color:#a7bcaa;font-size:15px;line-height:1.8}.auth-foot{letter-spacing:2px;font-size:9px;color:#a1b69a}.auth-main{display:grid;place-items:center;padding:50px 30px;background:#fbfcf8}.auth-card{max-width:390px;width:100%}.auth-card h2{font-size:30px;font-weight:550;letter-spacing:-1px;line-height:1.2}.auth-card>p{font-size:12px;margin-bottom:28px}.auth-card form{margin-top:28px}.auth-card .field{margin-bottom:18px}.auth-switch{text-align:center;font-size:12px;margin-top:20px}.auth-switch button{margin-left:4px}.auth-card>.fine{text-align:center;color:#98a28d;font-size:10px}.loading,.startup-error{padding:80px;text-align:center;color:var(--green)}.switch-label{font-size:10px;color:#7b8b71;margin:-10px 0 20px}.switch-label select{margin-top:8px;font-size:11px;padding:8px}.reason{max-width:270px;overflow-wrap:anywhere}
@media(min-width:1600px){#content{padding-top:48px}.stat{padding:28px}.page-heading{margin-bottom:36px}}
@media(max-width:1100px){.shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding:25px 15px 15px}.topbar{padding:0 25px;gap:15px}#content{padding:28px 25px}.stat-grid{gap:10px}.stat{padding:18px 14px}.live-label{display:none}th,td{padding-left:16px;padding-right:16px}.page-heading h1{font-size:27px}.steps{gap:15px}.workspace-footer{margin:0 25px}.auth-story{padding:35px}.import-card{padding:22px}.import-card .actions{flex-wrap:wrap}}
@media(max-width:760px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:18px}.sidebar .brand{margin:0 0 18px;font-size:22px}.business-card{display:none}.nav-label,.foundation-note{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:5px}.nav-item{width:auto;white-space:nowrap;padding:10px;font-size:11px;margin:0}.nav-icon{font-size:17px;width:16px}.sidebar-bottom{padding-top:12px;display:flex;justify-content:space-between;align-items:center;margin:0}.user-card{border:0;padding:0}.user-card .avatar{display:none}.user-card strong{font-size:10px}.user-card small{display:inline;font-size:9px}.sidebar-bottom .nav-item{font-size:10px}.topbar{min-height:62px;padding:0 20px;gap:10px}.breadcrumb{font-size:10px}.search-box input{width:135px;font-size:10px}.search-box span{display:none}#content{padding:28px 20px}.page-heading{align-items:flex-start;flex-direction:column;gap:18px}.page-heading h1{font-size:28px}.page-heading p{font-size:11px}.stat-grid{grid-template-columns:1fr 1fr}.stat{padding:18px}.stat>strong{font-size:30px}.steps{grid-template-columns:1fr;gap:10px}.steps article{border-right:0;border-bottom:1px solid #e0e6d6;padding:10px 0}.steps p{max-width:none}.step-number{float:left;margin-right:15px}.section-top{padding:20px}.section-top h2{font-size:14px}.onboarding h2{font-size:17px}.import-grid{grid-template-columns:1fr}.workspace-footer{margin:0 20px;font-size:9px}.workspace-footer span{display:none}.auth-layout{grid-template-columns:1fr}.auth-story{padding:25px;min-height:200px}.auth-story>div{margin-top:25px}.auth-story h1{font-size:42px;letter-spacing:-1.5px;margin:12px 0}.auth-story h1 br{display:none}.auth-story p,.auth-foot{display:none}.auth-main{padding:35px 25px}.auth-card h2{font-size:26px}dialog{padding:24px 20px}.form-grid{gap:10px}.detail-summary p{flex-direction:column;gap:4px}}

/* Purchasing extends the established workspace and drawer styles. */
.purchasing-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.badge.amber{background:#fff1d8;color:#996e29}
.compact-filter{display:flex;gap:10px;align-items:center;font-size:11px;color:var(--muted)}
.compact-filter select{border:1px solid var(--line);border-radius:6px;background:white;color:var(--dark);padding:8px;font:inherit}
.po-editor-line,.so-editor-line,.pick-plan-line,.receive-line{border:1px solid var(--line);border-radius:8px;padding:18px;margin:24px 0;min-width:0}
.po-editor-line legend,.so-editor-line legend,.pick-plan-line legend,.receive-line legend{font-size:12px;font-weight:600;padding:0 7px;color:var(--green);overflow-wrap:anywhere}
.po-editor-line .field:last-of-type,.so-editor-line .field:last-of-type,.receive-line .field:last-of-type{margin-bottom:12px}
.conversion-hint{border-radius:5px;background:#f1f5e9;padding:10px;min-height:35px}
.receipt-card{border:1px solid var(--line);border-radius:7px;padding:16px;margin-bottom:14px}
.receipt-card>strong{font-size:13px}.receipt-card>p,.order-notes{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.drawer-actions.wrap{flex-wrap:wrap;justify-content:flex-start}.overdue{color:#ac7831}
@media(max-width:760px){.purchasing-stats{grid-template-columns:1fr}.po-editor-line,.so-editor-line,.pick-plan-line,.receive-line{padding:14px}.compact-filter{flex-direction:column;align-items:flex-end;gap:5px}.sidebar nav{max-height:110px;flex-wrap:wrap;overflow-y:auto}}

/* Stock counts and movement operations. */
.inv-row{border:1px solid var(--line);border-radius:8px;padding:18px;margin:22px 0;min-width:0}
.inv-row legend{font-size:12px;font-weight:600;padding:0 7px;color:var(--green)}
.checkbox-list{max-height:320px;overflow:auto;padding:0 12px;border:1px solid var(--line);border-radius:7px;margin-bottom:20px}
.actions.wrap{flex-wrap:wrap}.sidebar nav{min-height:0;overflow-y:auto;flex:1}.sidebar-bottom{flex-shrink:0;padding-top:18px}
@media(max-width:760px){.sidebar nav{flex:initial;max-height:150px}.inv-row{padding:14px}.page-heading .actions{flex-wrap:wrap}}
.batch-reference { display: block; margin-top: 3px; }
.batch-reference > small { display: block; }

.panel-copy { padding: 0 24px; }
