*{box-sizing:border-box}body{margin:0;background:#f5f7f5;color:#17332d;font:15px system-ui,sans-serif}aside{background:#064b3b;color:#fff;padding:24px;position:fixed;width:235px;height:100vh}aside h2{color:#e8c77b;margin:0}aside small{display:block;margin:8px 0 28px}nav button{display:block;width:100%;text-align:left;background:transparent;color:#fff;margin:5px 0}button,input,select{font:inherit;padding:10px 12px;border-radius:8px;border:1px solid #cddbd4}button{cursor:pointer;background:#075b46;color:#fff;border:0;font-weight:600}nav button.active{background:#f3e8cb;color:#064b3b}main{margin-left:235px;padding:28px;max-width:1500px}header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}h1{font-size:25px;margin:0}h2{font-size:19px}.card{background:#fff;border:1px solid #dce5df;border-radius:14px;padding:20px;margin-bottom:16px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.metric{background:#e8f4ed;padding:18px;border-radius:12px}.metric strong{display:block;font-size:26px;margin-top:6px}.bar{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:16px}label{display:grid;gap:6px;font-size:13px;font-weight:600}input,select{background:#fff;max-width:100%;color:#17332d}input[type=number]{width:100px}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}td,th{padding:11px;border-bottom:1px solid #e0e8e3;text-align:left}th{background:#075b46;color:#fff}td:last-child{font-weight:600}.muted{color:#60756b;font-size:13px}.warn{background:#fff3d7;padding:12px;border-radius:8px;margin-bottom:16px}.secondary{background:#e5eee9;color:#075b46}.danger{color:#a52626}.total{font-size:21px;font-weight:700;background:#f7efd9;padding:14px;border-radius:8px;margin:15px 0}a{color:#075b46}@media(max-width:800px){aside{position:static;width:100%;height:auto;padding:14px}aside small{margin:3px 0 10px}nav{display:flex;overflow:auto;gap:5px}nav button{width:auto;white-space:nowrap}main{margin:0;padding:14px}.card{padding:13px}h1{font-size:21px}td,th{padding:8px}input[type=number]{width:75px}}@media print{aside,header,button,.warn,.bar{display:none}main{margin:0}.card{border:0}}:root{--green:#064b3b;--gold:#d2b16c;--cream:#f8f5ed}body{background:#f5f6f2}aside{background:linear-gradient(165deg,#073e32,#07513f);padding:22px 16px;width:248px;box-shadow:4px 0 24px #123c2410}aside h2{font-size:18px;letter-spacing:1px;text-align:center}aside small{text-align:center;color:#d5e6dd;line-height:1.5;padding-bottom:20px;border-bottom:1px solid #ffffff26}nav button{padding:13px 14px;font-weight:500;border-radius:10px}nav button:hover{background:#ffffff18}nav button.active{background:#f5ead0;color:#073e32;font-weight:700}main{margin-left:248px;padding:32px;max-width:none}header{padding:0 0 20px;border-bottom:1px solid #dce5df}header span{background:#eee5d0;color:#684d22;padding:8px 14px;border-radius:20px;font-size:12px;font-weight:700}h1{font-size:29px;letter-spacing:-.7px}.grid{gap:16px;margin-bottom:22px}.metric{background:#fff;border:1px solid #dde7e0;box-shadow:0 4px 16px #0a342508;padding:22px;border-radius:16px;color:#60756b}.metric strong{color:#064b3b;font-size:32px}.metric:nth-child(3){background:#fcf6e7;border-color:#eaddb9}.card{padding:24px;box-shadow:0 5px 20px #0b342508;border-radius:16px}.card h2{margin-top:0}button{min-height:42px;transition:background .15s}button:hover{filter:brightness(.95)}button:disabled{opacity:.45;cursor:not-allowed}input:focus,select:focus,button:focus-visible{outline:2px solid #c9a35a;outline-offset:2px}th{font-size:13px}td{padding:14px 11px}tbody tr:nth-child(2n){background:#f7faf8}#sync{font-size:13px;color:#176c49}#sync:before{content:"●";margin-right:7px;color:#29a36c}main>.bar{justify-content:flex-end}.brand-logo{display:block;width:128px;height:128px;object-fit:contain;margin:0 auto 16px;border-radius:50%;background:#fff}.login-logo{width:160px;height:160px}body:has(#login){background:linear-gradient(135deg,#e8eee5,#f9f5eb)}#login input,#login button{width:100%}@media(max-width:1024px)and (min-width:801px){aside{width:208px}main{margin-left:208px;padding:22px}.metric{padding:16px}}@media(max-width:800px){aside{position:static;width:100%;padding:12px 14px 8px;height:auto}aside h2{text-align:left;font-size:16px}aside small{text-align:left;margin:4px 0 8px;padding:0;border:0}aside .brand-logo{width:48px;height:48px;float:left;margin:0 12px 0 0}nav{clear:both;padding-top:8px}nav button{padding:10px 12px;font-size:13px}main{margin:0;padding:16px}header{padding-bottom:12px;margin-bottom:12px}h1{font-size:23px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{padding:14px;font-size:12px}.metric strong{font-size:25px}.card{padding:14px}.bar{gap:8px}.bar label{flex:1;min-width:120px}td{padding:10px 8px}main>.bar{justify-content:space-between}.total{font-size:18px}}@media print{aside,header,main>.bar{display:none}main{margin:0;padding:0}.card{box-shadow:none}}main,#view,.card,.grid,.scroll{min-width:0}.scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.bulk-table th:first-child,.bulk-table td:first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:2px 0 4px #17332d12}.bulk-table th:first-child{background:#075b46;color:#fff}.bulk-table input{width:76px;min-height:42px}.bulk-table select{min-width:126px}.bulk-table th small{font-weight:400;opacity:.85}input[type=date],input[type=month]{min-height:42px}button:disabled{pointer-events:none}@media(max-width:800px){body{overflow-x:hidden}nav{scrollbar-width:thin}nav button{min-height:44px}main{width:100%;max-width:100%}header span{white-space:nowrap;font-size:11px;padding:6px 9px}.bar>button{min-height:44px}#view>.card>.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid input,.grid select{width:100%;min-width:0}.metric strong{overflow-wrap:anywhere;font-size:clamp(18px,5vw,25px)}.bulk-table td:first-child{max-width:130px;overflow:hidden;text-overflow:ellipsis}.scroll table{font-size:13px}}@media print{button,.bar,aside,header{display:none!important}.scroll{overflow:visible}table{white-space:normal;font-size:10pt}th,td{padding:5px;overflow-wrap:anywhere}th{color:#17332d;background:#eee}.metric{box-shadow:none}.card{break-inside:auto}tr{break-inside:avoid}.bulk-table th:first-child,.bulk-table td:first-child{position:static}}.erp-shell{--sidebar:250px;--ink:#163b30;--accent:#c8a24d;--surface:#f6f7f3;min-height:100vh;background:var(--surface)}.erp-shell .erp-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);height:100dvh;display:flex;flex-direction:column;padding:22px 14px 14px;background:#083f34;z-index:40;overflow:hidden}.erp-brand{display:flex;align-items:center;gap:11px;padding:4px 4px 22px;border-bottom:1px solid #ffffff20}.erp-brand .brand-logo{width:46px;height:46px;flex-shrink:0;margin:0;border-radius:12px;float:none}.erp-brand h2{font-size:14px;letter-spacing:.8px;text-align:left;white-space:nowrap}.erp-brand small{font-size:11px;margin:4px 0 0;padding:0;border:0;text-align:left;white-space:nowrap}.erp-sidebar nav{flex:1;display:block;overflow-y:auto;overflow-x:hidden;padding:10px 0;scrollbar-width:thin}.nav-group{margin:12px 0 20px}.nav-heading{font-size:10px;text-transform:uppercase;letter-spacing:1.4px;color:#b5c9c0;margin:8px 12px}.erp-sidebar .nav-link{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:3px 0;min-height:43px;font-size:13px;white-space:nowrap}.nav-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:19px;width:23px;height:24px}.erp-sidebar .nav-link.active{background:#f4e6bf;color:#083f34}.side-footer{display:flex;align-items:center;gap:9px;padding:14px 10px 4px;border-top:1px solid #ffffff24;font-size:11px;color:#d9e6df;white-space:nowrap}.owner-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#82d0a5;flex-shrink:0}.erp-shell main{margin-left:var(--sidebar);padding:26px 32px 40px;max-width:none;width:auto}.erp-header{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0 0 10px;padding:0 0 16px;border-bottom:1px solid #dfe5df}.heading-wrap,.header-actions{display:flex;align-items:center;gap:12px;min-width:0}.erp-header h1{font-size:27px;line-height:1.2;margin-top:4px}.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#658075}.erp-header .owner-tag{white-space:nowrap;background:#eee6d0;color:#715a27;font-size:11px;padding:8px 12px}.erp-header .menu-toggle{width:42px;min-width:42px;padding:0;font-size:20px;background:#e8eee8;color:#173b30}.erp-header #logout{font-size:12px;white-space:nowrap}.erp-shell .sync-bar{justify-content:flex-end;margin:0 0 14px}.erp-shell .card{border:1px solid #e0e6df;box-shadow:0 3px 12px #173b3008;border-radius:18px;padding:23px}.erp-shell .metric{border:1px solid #e3e8e0;background:#fff;border-radius:14px;padding:20px;box-shadow:0 2px 9px #18382a06;font-size:12px}.erp-shell .metric strong{font-size:clamp(20px,2.5vw,30px);letter-spacing:-.6px;font-variant-numeric:tabular-nums}.erp-shell .metric:nth-child(3n){background:#fbf7ea;border-color:#ece3c9}.dashboard-intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.dashboard-intro h2{font-size:24px;letter-spacing:-.5px;margin:5px 0}.dashboard-intro p{margin:5px 0}.dashboard-emblem{font:700 22px Georgia,serif;color:#98752b;background:#f4ecd4;border:1px solid #e7d7ad;border-radius:18px;width:60px;height:60px;display:grid;place-items:center;flex-shrink:0}.quick-heading{font-size:14px!important;margin:12px 0!important}.quick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.quick-grid button{background:#f6f8f5;border:1px solid #e0e7df;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:94px;color:#164739;text-align:center;font-size:12px;line-height:1.4;border-radius:13px;padding:10px 5px}.quick-grid i{font-style:normal;font-size:21px;background:#e5eee6;width:35px;height:35px;display:grid;place-items:center;border-radius:10px}.quick-grid button:hover{background:#e9f1e9}.erp-shell th{background:#edf2ed;color:#284b3e;font-weight:700;border-bottom:1px solid #d9e4db}.erp-shell tbody tr:hover{background:#f0f5ef}.erp-shell .bulk-table th:first-child{background:#edf2ed;color:#284b3e}.erp-shell input,.erp-shell select{border:1px solid #d4ded5;border-radius:9px}.erp-shell .total{background:#f5ecd4;color:#204637;border:1px solid #e6d8ad}.mobile-bottom,.nav-backdrop{display:none}@media(min-width:801px){.erp-shell.sidebar-compact{--sidebar:76px}.sidebar-compact .brand-copy,.sidebar-compact .nav-heading,.sidebar-compact .nav-label{display:none}.sidebar-compact .erp-brand{padding:4px 0 20px;justify-content:center}.sidebar-compact .nav-link{justify-content:center;padding:10px 0}.sidebar-compact .nav-group{margin:8px 0 15px}.sidebar-compact .side-footer{justify-content:center}}@media(min-width:801px)and (max-width:1100px){.erp-shell{--sidebar:220px}.erp-shell main{padding:20px}.quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.erp-shell main{margin:0;padding:14px 12px 95px;width:100%}.erp-header{padding-bottom:12px;gap:6px}.erp-header h1{font-size:20px}.heading-wrap,.header-actions{gap:7px}.eyebrow{font-size:8px;letter-spacing:.8px}.erp-header .owner-tag{display:none}.erp-header #logout{min-height:38px;padding:8px;font-size:11px}.erp-header .menu-toggle{width:37px;min-width:37px;min-height:38px}.erp-shell .sync-bar{justify-content:flex-start;margin-bottom:12px}.erp-shell .erp-sidebar{width:min(290px,84vw);transform:translate(-105%);transition:transform .2s ease}.erp-shell.menu-open .erp-sidebar{transform:translate(0)}.erp-shell.menu-open .nav-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#102a2377;z-index:39;border-radius:0}.erp-shell .mobile-bottom{position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));bottom:0;left:0;right:0;padding:7px 6px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dce5de;z-index:30;box-shadow:0 -4px 16px #123b3010}.mobile-bottom .nav-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;background:#fff;color:#63766d;padding:5px 1px;border-radius:9px}.mobile-bottom .nav-link.active{background:#e7f0e8;color:#064b3b}.erp-shell .card{padding:14px;border-radius:14px}.erp-shell .metric{padding:13px}.erp-shell .metric strong{font-size:clamp(18px,5vw,26px)}.quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quick-grid button{min-height:83px;font-size:11px}.dashboard-intro h2{font-size:19px}.dashboard-emblem{width:46px;height:46px;font-size:18px;border-radius:12px}}@media(prefers-reduced-motion:reduce){.erp-shell *{transition:none!important}}@media print{.erp-shell .erp-sidebar,.erp-shell .mobile-bottom,.erp-shell .nav-backdrop,.erp-header,.sync-bar,.quick-grid{display:none!important}.erp-shell main{margin:0!important;padding:0!important;width:100%}.erp-shell .card{box-shadow:none;border:0;padding:8px}.erp-shell{background:#fff}}
