:root{color:#202c20;background:#f5f3ea;font-family:system-ui,-apple-system,sans-serif;font-size:16px}*{box-sizing:border-box}body{padding-bottom:calc(77px + env(safe-area-inset-bottom));margin:0}header{color:#202c20;padding:calc(7px + env(safe-area-inset-top)) 18px 7px;background:#f5f3ea;border-bottom:1px solid #dedacb;justify-content:space-between;align-items:center;display:flex}header strong{letter-spacing:.04em;font-size:21px}header strong span{color:#b5d753}header small{color:#596633;margin-top:3px;font-size:12px;display:block}main{max-width:850px;margin:auto;padding:18px 16px}h1{margin:0 0 17px;font-size:26px}h2{margin:0 0 13px;font-size:19px}h3{margin:0 0 8px;font-size:16px}.card{background:#fff;border:1px solid #dedacb;border-radius:14px;margin:0 0 14px;padding:17px;box-shadow:0 2px 12px #202c2009}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.stat{background:#fff;border:1px solid #dedacb;border-radius:12px;padding:15px}.stat b{margin-top:7px;font-size:22px;display:block}.muted{color:#65715e;font-size:13px}.row{border-top:1px solid #e5e3d8;justify-content:space-between;align-items:center;gap:10px;padding:13px 0;display:flex}.row:first-child{border-top:0}.row>div{min-width:0}.row strong{overflow-wrap:anywhere;display:block}.row small{color:#65715e;margin-top:3px;display:block}.actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;display:flex}button,.button{color:#202c20;cursor:pointer;background:#afcf52;border:0;border-radius:9px;min-height:42px;padding:11px 14px;font:600 14px system-ui}button.secondary,.button.secondary{background:#edf1e4}button.danger{color:#9b3930;background:#fceae6}button:disabled{opacity:.45}input,select,textarea{width:100%;font:inherit;color:#202c20;background:#fff;border:1px solid #cdd1c4;border-radius:9px;min-height:43px;padding:11px}label{margin:12px 0;font-size:14px;font-weight:600;display:block}label input,label select,label textarea{margin-top:6px;display:block}label.inline{align-items:center;gap:10px;display:flex}label.inline input{width:auto;min-height:auto}form button{margin-top:8px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;display:grid}.full{grid-column:1/-1}.bad{color:#a8433a}.good{color:#455d25}#notice{background:#e6efd4;border-radius:9px;margin-bottom:12px;padding:12px;display:none}#notice.error{background:#fceae6}nav{scrollbar-width:none;padding:8px 3px calc(8px + env(safe-area-inset-bottom));z-index:2;background:#fff;border-top:1px solid #dedacb;justify-content:flex-start;display:flex;position:fixed;bottom:0;left:0;right:0;overflow-x:auto}nav button{color:#58634c;background:0 0;flex:0 0 74px;max-width:110px;min-height:48px;padding:6px 2px;font-size:11px}nav button.active{color:#202c20;background:#e6efd4}nav span{font-size:19px;display:block}details summary{cursor:pointer;padding:6px 0;font-weight:600}.hint{color:#596653;line-height:1.5}.pill{background:#e7efd9;border-radius:99px;padding:4px 9px;font-size:12px}.pill.bad{background:#fceae6}@media (min-width:700px){.stats{grid-template-columns:repeat(4,1fr)}main{padding:28px}nav{border:1px solid #dedacb;border-radius:16px;width:550px;padding:7px;bottom:16px;left:auto;right:20px;box-shadow:0 10px 30px #0002}.grid{grid-template-columns:repeat(3,1fr)}}.brand{align-items:center;gap:12px;display:flex}.brand img{object-fit:contain;width:68px;height:100px;display:block}.brand small{font-size:14px;font-weight:600}.brand img+small{max-width:140px}#refresh{background:#e6efd4}.customer-picker{position:relative}.customer-suggestions{background:#fff;border:1px solid #cdd6ba;border-radius:10px;overflow:hidden;box-shadow:0 8px 20px #202c201c}.customer-option{text-align:left;color:#202c20;background:#fff;border-bottom:1px solid #edf0e6;border-radius:0;width:100%;min-height:44px;padding:10px 12px;display:block}.customer-option:hover,.customer-option:focus{background:#e6efd4}.customer-option small{color:#596653}.app-header{background:#f7f8f1;border-bottom-color:#dfe6d2;grid-template-columns:minmax(66px,1fr) auto minmax(66px,1fr);gap:10px;min-height:92px;display:grid}.app-header .brand{justify-self:start}.app-header .brand img{width:56px;height:76px}.app-header .header-title{text-align:center;letter-spacing:.01em;color:#274324;justify-self:center;font-size:clamp(16px,2.5vw,23px);line-height:1.15}.app-header #refresh{background:#e7efd9;border:1px solid #cadbb5;justify-self:end}main h1{color:#274324;letter-spacing:-.025em}.stats{margin-bottom:20px}.stat{color:#344333;background:#fff;border:1px solid #e1e6d9;min-height:120px;font-weight:600;box-shadow:0 4px 14px #2737230b}.stat-heading{align-items:center;gap:8px;line-height:1.2;display:flex}.stat-icon{color:#4f752d;background:#ebf2df;border-radius:9px;flex:none;width:29px;height:29px;padding:5px}.stat b{color:#294329;overflow-wrap:anywhere;font-size:clamp(19px,2.5vw,25px);line-height:1.2}.stat small{color:#596653;margin-top:5px;font-weight:400;display:block}.due-stat .stat-icon{color:#9b6c20;background:#faf0d9}.inventory-stat .stat-icon{color:#456d44;background:#e8f1e4}.bank-stat .stat-icon{color:#52684a;background:#e9eee5}#view>.card{border-color:#e4e7d9;box-shadow:0 5px 20px #2438140b}#view>.card h2{color:#36542d}.stock-card{border-top:3px solid #d5b46f!important}.stock-card h2{color:#655027!important}.recent-card{border-top:3px solid #a8c77c!important}.pill.bad{color:#9b3930;font-weight:700}.row b{color:#36542d}button:hover:not(:disabled){filter:brightness(.96)}:is(button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible){outline-offset:2px;outline:3px solid #7ca548}@media (max-width:480px){.app-header{grid-template-columns:47px minmax(0,1fr) 75px;gap:5px;min-height:72px;padding-left:10px;padding-right:10px}.app-header .brand img{width:42px;height:58px}.app-header .header-title{font-size:15px}.app-header #refresh{min-height:38px;padding:8px;font-size:12px}.stat{min-height:112px;padding:12px}.stat-heading{gap:6px;font-size:13px}.stat-icon{width:26px;height:26px;padding:4px}}.purchase-total{color:#2d4c29;background:#eef4e4;border-radius:10px;margin:12px 0 0;padding:14px;font-weight:700}.purchase-edit{background:#f7f9f3;border:1px solid #dce6d1;border-radius:12px;margin:8px 0 18px;padding:14px}.purchase-edit .actions{justify-content:flex-end}.purchase-edit .actions button{margin:0}.quote-group{border-top:1px solid #e5e9dc;margin-top:18px;padding-top:8px}.quote-group h3{color:#34552d}.quote-group h3 small{color:#65715e;font-weight:400}.quote-row .actions{align-items:center}.quote-row .actions b{color:#34552d}@media (max-width:520px){.quote-row{flex-direction:column;align-items:flex-start}.quote-row .actions{justify-content:flex-start}}nav{justify-content:safe center;gap:3px;padding-left:8px;padding-right:8px;scroll-padding-inline:12px}nav button{white-space:nowrap;flex:1 0 78px;max-width:none;font-size:11px}@media (min-width:700px){nav{justify-content:space-between;gap:2px;width:min(1100px,100vw - 32px);max-width:calc(100vw - 32px);padding:8px;bottom:16px;left:50%;right:auto;transform:translate(-50%)}nav button{flex:1 0 82px;max-width:none;font-size:clamp(10px,1.1vw,12px)}}nav .nav-icon{justify-content:center;align-items:center;height:26px;margin-bottom:2px;display:flex}nav .nav-icon svg{width:23px;height:23px;display:block}nav button.active .nav-icon svg{stroke-width:2.2px}
