:root{--navy:#122333;--navy-soft:#203447;--green:#138663;--green-dark:#086649;--green-soft:#e9f6ef;--text:#20323f;--muted:#73828c;--line:#e5e9eb;--bg:#f5f7f8;--orange:#c17b17;--red:#be4b4b;--radius:14px;--shadow:0 3px 18px #12233305}*{box-sizing:border-box}body{margin:0;font:1rem/1.55 "Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:9px;background:var(--green);color:white;padding:10px 17px;font-weight:600;cursor:pointer;white-space:nowrap;min-height:40px}button:hover,.button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:not-allowed}.secondary{background:white;color:var(--text);border-color:var(--line)}.small{padding:6px 11px;min-height:32px;font-size:0.75rem}.link{padding:0;background:none;color:var(--green);min-height:auto;border:0}.danger-text{color:var(--red)}input,select,textarea{width:100%;border:1px solid #dce2e5;border-radius:8px;padding:10px 12px;background:#fff;color:var(--text);min-height:42px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #13866312}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--green)}input[type=file]{padding:8px}h1,h2,h3,p{margin-top:0}h1{font-size:1.8125rem;letter-spacing:-.8px;line-height:1.2;margin-bottom:8px}h2{font-size:1.125rem;letter-spacing:-.25px;margin-bottom:16px}h3{font-size:0.9375rem}p:last-child{margin-bottom:0}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:1.7px;font-size:0.75rem;font-weight:700;color:var(--green);margin-bottom:9px}.app-shell{display:flex;min-height:100vh}.sidebar{width:236px;position:fixed;inset:0 auto 0 0;background:var(--navy);color:#b8c5cd;display:flex;flex-direction:column;z-index:30;transition:transform .2s}.brand{display:flex;align-items:center;gap:11px;padding:28px 22px 20px;color:#fff;font-size:1.0625rem;font-weight:650;line-height:1.3}.brand small{display:block;font-size:0.75rem;font-weight:500;letter-spacing:1.9px;margin-top:5px;color:#9aabb8}.brand-icon{font-family:Georgia,serif;display:grid;place-items:center;position:relative;flex-shrink:0;width:40px;height:44px;border-radius:12px;background:#1e9470;font-size:2.6875rem;font-weight:bold;line-height:1}.brand-icon span{font-family:Arial;color:#cbe5a0;font-size:1.5625rem;position:absolute;right:4px;top:9px}.store-status{margin:0 16px 18px;padding:10px;border:1px solid #314251;border-radius:8px;display:flex;align-items:center;gap:8px;font-size:0.75rem}.status-dot{width:6px;height:6px;background:#75d6a8;border-radius:50%}.sidebar nav{overflow-y:auto;padding:0 12px;scrollbar-width:thin;flex:1}.nav-group{margin-bottom:8px}.nav-group summary{font-size:0.75rem;text-transform:uppercase;letter-spacing:1.5px;padding:11px;cursor:pointer;list-style:none;display:flex;justify-content:space-between;color:#849aa9}.nav-group summary::-webkit-details-marker{display:none}.nav-link{display:flex;align-items:center;gap:11px;font-size:0.75rem;padding:10px 14px;border-radius:7px;margin-bottom:2px}.nav-link:hover{background:#ffffff08;color:#fff}.nav-link.active{background:#1e4e49;color:#9fe8c8}.nav-dot{width:5px;height:5px;border:1px solid #758f9d;border-radius:2px}.active .nav-dot{background:#8fe0bb;border-color:#8fe0bb}.sidebar-bottom{padding:15px 22px;border-top:1px solid #2a3b48;margin-top:10px;font-size:0.75rem;color:#8498a6}.logout-button{margin-top:8px;background:none;padding:0;color:#c6d3da;font-size:0.75rem}.main-shell{margin-left:236px;width:calc(100% - 236px);display:flex;flex-direction:column;min-height:100vh}.topbar{min-height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:0 32px;position:sticky;top:0;z-index:20}.icon-button{background:transparent;color:var(--muted);padding:6px;font-size:1.125rem;min-height:32px}.global-search{position:relative;display:flex;align-items:center;flex:1;max-width:430px;gap:8px}.global-search>span{font-size:1.625rem;color:#95a3ab}.global-search input{border:0;background:transparent;font-size:0.75rem}.top-date{margin-left:auto;color:var(--muted);font-size:0.75rem;white-space:nowrap}.notification{border:1px solid var(--line);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;color:var(--green)}.user-chip{display:flex;align-items:center;gap:10px;font-size:0.75rem;font-weight:600;line-height:1.4}.user-chip small{display:block;font-weight:400;color:var(--muted);font-size:0.75rem}.avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#ecf3ed;color:var(--green);font-size:0.9375rem}.content{padding:30px 32px;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-heading p.muted{font-size:0.75rem}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px;box-shadow:var(--shadow);margin-bottom:22px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-heading h2{margin:0}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.actions form{margin:0}.text-link{color:var(--green);font-size:0.75rem;font-weight:600}.badge{font-size:0.75rem;padding:4px 8px;display:inline-block;border-radius:6px;line-height:1.4;white-space:nowrap}.green{background:#eaf6ef;color:#22805b}.orange{background:#fff4e3;color:#ac711d}.red,.danger{background:#fff0ee;color:#b64940}.gray{background:#f0f2f4;color:#7b8b95}.navy{background:#2c4254;color:#a6c1ce;font-size:0.75rem;margin-left:auto}.filters{display:flex;gap:10px;margin-bottom:18px;align-items:center;flex-wrap:wrap}.filters input{flex:1;min-width:150px;max-width:300px}.filters select{width:auto;min-width:130px}.filters label{font-size:0.75rem;color:var(--muted)}.table-card{padding:0;overflow:hidden}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:0.75rem;text-align:left}th{font-size:0.75rem;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);background:#fafbfc;font-weight:600;white-space:nowrap}th,td{padding:15px 20px;border-bottom:1px solid #edf0f1}td{vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfd}.empty{text-align:center;padding:50px;color:var(--muted)}.pagination{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-top:1px solid var(--line);font-size:0.75rem;color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}.field{display:flex;flex-direction:column;gap:7px;font-size:0.75rem}.field>span{font-weight:600}.field em{color:var(--red);font-style:normal}.field small{color:var(--muted)}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}.detail-grid dt{font-size:0.75rem;color:var(--muted);margin-bottom:5px}.detail-grid dd{margin:0;font-size:0.8125rem;overflow-wrap:anywhere}.image-preview{max-width:120px;max-height:100px;object-fit:contain;border-radius:8px}.notice{padding:14px 18px;border-radius:9px;background:var(--green-soft);color:var(--green-dark);font-size:0.75rem;margin-bottom:20px}.notice.danger{background:#fff0ee;color:#af443e}.notice.warning{background:#fff4e3;color:#9a691d}.app-footer{display:flex;justify-content:space-between;padding:15px 32px;font-size:0.75rem;color:#8b9aa4;border-top:1px solid var(--line)}dialog{border:0;border-radius:18px;padding:28px;max-width:470px;width:90%;box-shadow:0 20px 80px #0003;color:var(--text)}dialog::backdrop{background:#11233299;backdrop-filter:blur(2px)}.modal-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#fff2db;color:#aa7526;font-size:1.375rem;margin-bottom:20px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;padding:13px 22px;border-radius:10px;z-index:100;box-shadow:0 8px 30px #0002;max-width:90%}.search-results{position:absolute;top:45px;left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 15px 40px #12233318;max-height:340px;overflow:auto}.search-results a{display:block;padding:12px 15px;border-bottom:1px solid var(--line);font-size:0.75rem}.search-results a small{display:block;color:var(--muted);font-size:0.75rem}.search-results a:hover{background:var(--green-soft)}.standalone{max-width:550px;margin:12vh auto}.auth-page{display:grid;grid-template-columns:1.05fr 1fr;min-height:100vh;background:#fff}.auth-story{background:var(--navy);padding:9vw 7vw;display:flex;flex-direction:column;justify-content:center;color:#fff;position:relative;overflow:hidden}.auth-story::after{content:"";width:480px;height:480px;position:absolute;right:-250px;bottom:-140px;border:70px solid #1b3a43;border-radius:50%;pointer-events:none}.auth-story .brand{padding:0;margin-bottom:70px}.auth-story h1{font-size:2.9375rem;line-height:1.15;letter-spacing:-2px;max-width:420px;margin-bottom:25px}.auth-story h1 span{color:#83d4b3}.auth-story p{color:#aabfc8;max-width:340px;font-size:0.875rem}.auth-story .eyebrow{color:#8bd4b5}.auth-main{display:flex;align-items:center;justify-content:center;padding:45px}.auth-form{width:360px}.auth-form .field{margin-top:20px}.auth-form h1{font-size:1.75rem;margin-bottom:12px}.auth-form button{width:100%;margin-top:26px}.auth-footnote{font-size:0.75rem;color:#99a4ac;margin-top:35px}.split-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:22px}.tabs a{padding:8px 13px;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:0.75rem}.tabs a.active{background:var(--green);color:white;border-color:var(--green)}.nowrap{white-space:nowrap}.align-right{text-align:right}.number{font-variant-numeric:tabular-nums}.mobile-only{display:none}pre{white-space:pre-wrap;overflow-wrap:anywhere}canvas{max-width:100%}
@media(min-width:1051px){body.sidebar-collapsed .sidebar{transform:translateX(-100%)}body.sidebar-collapsed .main-shell{margin-left:0;width:100%}}@media(max-width:1200px){.top-date{display:none}.topbar{padding:0 22px}.content{padding:24px}.detail-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:1050px){.sidebar{transform:translateX(-100%)}body.sidebar-open .sidebar{transform:translateX(0)}.main-shell{margin-left:0;width:100%}.split-grid{grid-template-columns:1fr}.user-chip>span:last-child{display:none}}@media(max-width:680px){.content{padding:20px 14px}.topbar{padding:0 14px;gap:10px;min-height:64px}.form-grid,.detail-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading h1{font-size:1.5rem}.page-heading>.button{padding:9px 11px;font-size:0.75rem}.filters>*{flex:1}.card{padding:18px}.table-card{padding:0}.auth-page{grid-template-columns:1fr}.auth-story{display:none}.auth-main{min-height:100vh;padding:28px}.global-search input{font-size:0.75rem}.app-footer{padding:15px}.pagination{gap:10px}.mobile-only{display:block}}

.settings-note{font-size:0.75rem;margin-top:20px}.purchase-items-heading{margin-top:28px}.barcode-label-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10mm;padding:10mm;max-width:210mm;margin:auto;background:white}.barcode-label{text-align:center;padding:4mm;border:1px dashed #ddd;break-inside:avoid;font-size:0.75rem}.barcode-label .barcode{height:40px;width:100%;margin:8px 0}.barcode-label small{display:block;margin-top:6px}

.notification{position:relative}.notification sup{position:absolute;top:-6px;right:-7px;background:#c47923;color:white;border:2px solid white;min-width:17px;height:17px;border-radius:9px;font-size:0.75rem;display:grid;place-items:center;padding:0 3px}

.settings-page-heading{flex-wrap:wrap}.settings-section{scroll-margin-top:100px}
