@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700;800&family=Figtree:wght@400;500;600;700;800&display=swap');
:root{--green:#0E4A3A;--deep:#0A3A2D;--ink:#12241E;--muted:#4B6057;--cream:#F5F2E9;--field:#E9E6DC;--mint:#C6E9D0;--yellow:#F6D75E;--coral:#F26A4B;--line:#DEDFD4;--white:#FFFDF7;--shadow:0 12px 40px #12241e12;--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Figtree,Arial,sans-serif;font-size:14px;line-height:1.45}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #35906A;outline-offset:3px}h1,h2,h3,.display,.tile-code{font-family:'Bricolage Grotesque',Arial,sans-serif;letter-spacing:-.6px}h1{font-size:30px;line-height:1.13;margin:5px 0 10px}h2{font-size:23px;line-height:1.2;margin:4px 0 12px}h3{font-size:18px;margin:0}p{margin:0 0 12px}svg{width:22px;height:22px;display:block;flex-shrink:0}small{font-size:11px}button{color:var(--ink)}[hidden]{display:none!important}.app-header{position:sticky;top:0;z-index:20;background:var(--cream);border-bottom:1px solid #dedfd480;padding-top:env(safe-area-inset-top,0px)}.header-inner{height:76px;max-width:1100px;padding:0 24px;display:flex;gap:14px;align-items:center;margin:auto}.brand{display:flex;gap:9px;align-items:center;font-family:'Bricolage Grotesque',Arial;font-weight:800;font-size:18px;letter-spacing:-.6px}.brand img{width:37px;height:37px}.brand small{display:block;letter-spacing:2.2px;font-family:Figtree,Arial;font-size:8px;color:var(--muted);margin-top:-2px}.store-indicator{display:flex;gap:7px;align-items:center;margin-left:auto;font-size:12px;font-weight:600}.store-indicator>span{width:6px;height:6px;background:#35906A;border-radius:50%}.icon-button{width:42px;height:42px;display:grid;place-items:center;background:var(--field);border-radius:14px;flex-shrink:0}main{max-width:1100px;padding:24px 24px calc(115px + var(--safe-bottom));margin:auto;min-height:calc(100dvh - 76px)}.page-title{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:22px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.7px;color:var(--muted);text-transform:uppercase}.subtle{color:var(--muted);font-size:13px}.page-title p{margin:0}.date-chip{font-size:11px;white-space:nowrap;border:1px solid var(--line);padding:7px 12px;border-radius:20px}.hero{background:var(--green);color:var(--white);border-radius:28px;padding:25px 26px;position:relative;overflow:hidden;margin-bottom:20px}.hero:after{content:'';position:absolute;width:180px;height:180px;border:34px solid #c6e9d00d;border-radius:50%;right:-75px;top:-75px;pointer-events:none}.hero .eyebrow{color:#c6e9d0aa}.hero h1{font-size:32px;max-width:350px;margin-top:9px}.hero p{color:#dae7d9;font-size:12px;margin:0}.hero-stats{display:flex;align-items:end;gap:24px;margin-top:24px}.hero-stat{display:flex;flex-direction:column}.hero-stat strong{font-size:32px;line-height:1.05;font-family:'Bricolage Grotesque',Arial}.hero-stat span{font-size:11px;color:#c6e9d0c9;margin-top:5px}.hero-stat.attention strong{color:var(--yellow)}.hero .hero-arrow{position:absolute;right:24px;bottom:24px;background:var(--yellow);width:45px;height:45px;display:grid;place-items:center;border-radius:16px;color:var(--ink)}.summary-line{display:flex;gap:8px;align-items:center;font-size:12px;margin:16px 0 20px}.status-dot{width:6px;height:6px;border-radius:50%;background:#35906A;display:inline-block}.status-dot.urgent{background:#DA5436}.summary-line>a{margin-left:auto;text-decoration:underline;font-weight:600}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-heading h2{font-size:20px;margin:0}.section-heading>span{font-size:11px;color:var(--muted)}.text-button{background:none;padding:7px 0;font-size:12px;font-weight:700;color:var(--green);display:flex;align-items:center;gap:4px}.text-button svg{width:15px;height:15px}.chips{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:3px 2px 9px;margin:0 -2px 9px}.chips::-webkit-scrollbar{display:none}.chip{white-space:nowrap;border:1px solid var(--line);border-radius:25px;padding:9px 14px;background:transparent;font-weight:600;font-size:12px;min-height:38px}.chip.active{background:var(--green);border-color:var(--green);color:var(--white)}.chip .chip-count{margin-left:5px;opacity:.65}.stock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.stock-tile{text-align:left;background:var(--white);padding:14px 12px 12px;border-radius:19px;border:1px solid var(--line);min-width:0;position:relative;transition:transform .15s,box-shadow .15s}.stock-tile:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.tile-top{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-bottom:12px}.tile-code{display:grid;place-items:center;min-width:48px;height:34px;border-radius:10px;font-weight:800;font-size:19px;letter-spacing:-.7px}.tile-count{font-size:12px;font-weight:800;display:flex;align-items:baseline;gap:2px}.tile-count small{font-size:9px;font-weight:500;color:var(--muted)}.tile-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600;margin-bottom:9px}.tile-expiry{border-top:1px solid var(--line);padding-top:8px;font-size:11px;color:var(--muted);display:flex;align-items:center;gap:4px;white-space:nowrap}.tile-expiry strong{font-size:11px;color:var(--ink)}.stock-tile.expired{border-color:#DA543677}.stock-tile.urgent{border-color:#9B7D0066}.stock-tile.expired .tile-expiry,.stock-tile.expired .tile-expiry strong{color:#B3422B}.stock-tile.urgent .status-dot{background:#9B7D00}.bottom-nav{position:fixed;bottom:calc(14px + var(--safe-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 28px);max-width:520px;display:flex;gap:3px;background:var(--white);border:1px solid var(--line);border-radius:25px;padding:7px;z-index:30;box-shadow:0 12px 40px #0a3a2d29}.bottom-nav a{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:56px;border-radius:18px;font-size:10px;font-weight:600;text-align:center;white-space:nowrap}.bottom-nav a svg{width:21px;height:21px}.bottom-nav a[aria-current=page]{background:var(--green);color:var(--white)}.search-box{display:flex;align-items:center;gap:10px;background:var(--white);border:1px solid var(--line);border-radius:17px;padding:0 14px;margin-bottom:12px}.search-box svg{width:18px;height:18px;color:var(--muted)}.search-box input{background:none;border:0;outline:none;min-height:47px;min-width:0;width:100%;font-size:13px;color:var(--ink)}.filter-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}.field>span,.field>label{font-weight:600;font-size:12px}.field input,.field select,.filter-row select{border:1px solid var(--line);background:var(--white);border-radius:14px;min-height:46px;padding:11px 12px;width:100%;min-width:0;color:var(--ink)}.filter-row label{font-size:11px;color:var(--muted)}.filter-row select{display:block;margin-top:5px;font-size:12px}.product-list{display:flex;flex-direction:column;gap:8px}.product-row{display:flex;align-items:center;gap:12px;background:var(--white);border:1px solid var(--line);border-radius:19px;padding:14px;width:100%;text-align:left;min-width:0}.category-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex-shrink:0}.category-icon img{width:23px;height:23px}.row-content{min-width:0;flex:1}.row-content strong{display:block;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-content small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.row-content .expiry-text{display:block;font-size:11px;margin-top:6px;color:var(--muted)}.row-content .expiry-text.expired{color:#B3422B}.row-content .expiry-text.urgent{color:#806500}.row-end{text-align:right;display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700}.row-end svg{width:17px;height:17px;color:var(--muted)}.quantity-badge{font-size:13px;border-radius:11px;padding:5px 9px;background:var(--field);min-width:31px;text-align:center}.item-counter{font-size:11px;color:var(--muted);margin:6px 0 14px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:16px;min-height:48px;padding:12px 18px;font-size:13px;font-weight:700}.primary{color:var(--white);background:var(--green)}.secondary{background:var(--field);color:var(--ink)}.danger{background:#DA5436;color:white}.primary svg,.secondary svg,.danger svg{width:19px;height:19px}.full-width{width:100%}.sheet,.menu-dialog{background:var(--cream);color:var(--ink);border:0;padding:24px;border-radius:28px;max-height:calc(100dvh - 32px);width:min(520px,calc(100vw - 28px));overflow:auto;box-shadow:var(--shadow)}dialog::backdrop{background:#0a251ed1;backdrop-filter:blur(3px)}.sheet-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;margin-bottom:22px}.sheet-heading h2{font-size:24px;margin:5px 0 0}.sheet-heading .eyebrow{font-size:9px}.sheet-footer{display:flex;gap:9px;margin-top:23px;position:sticky;bottom:-24px;background:var(--cream);padding:12px 0}.sheet-footer>*{flex:1}.sheet-subtitle{font-size:12px;color:var(--muted);margin-top:-10px;margin-bottom:18px}.detail-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.detail-stat{background:var(--white);border-radius:17px;border:1px solid var(--line);padding:14px}.detail-stat strong{display:block;font-size:22px;font-family:'Bricolage Grotesque',Arial}.detail-stat span{font-size:11px;color:var(--muted)}.detail-labels{display:flex;flex-direction:column;gap:8px;max-height:230px;overflow:auto}.detail-label{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--white);border-radius:13px;padding:12px}.detail-label strong{font-size:12px}.detail-label small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.status-pill{font-size:10px;white-space:nowrap;display:inline-flex;align-items:center;border-radius:15px;padding:5px 8px;background:var(--mint)}.status-pill.expired{background:#FFE0D6;color:#9E3220}.status-pill.urgent{background:#F9ECA9;color:#6E5700}.stepper{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:10px 0 20px;padding:10px;background:var(--white);border:1px solid var(--line);border-radius:19px}.stepper button{width:48px;height:48px;background:var(--field);border-radius:13px;font-size:24px}.stepper input{width:95px;border:0;text-align:center;font-size:28px;font-weight:800;background:transparent;color:var(--ink);padding:0;appearance:textfield}.stepper input::-webkit-inner-spin-button{appearance:none}.quantity-heading{font-size:12px;color:var(--muted)}.info-box{border-radius:16px;padding:14px;background:#C6E9D055;font-size:12px;line-height:1.6;margin-bottom:16px}.info-box strong{display:block}.choice-card{border-radius:18px;padding:18px;background:var(--white);border:1px solid var(--line);margin-bottom:16px}.choice-card strong{font-size:19px}.choice-card p{font-size:12px;color:var(--muted);margin:5px 0 0}.empty-state{text-align:center;padding:36px 18px;background:var(--white);border:1px dashed var(--line);border-radius:23px}.empty-state h3{margin:10px 0}.empty-state p{color:var(--muted);font-size:12px}.empty-state>svg{margin:auto;width:30px;height:30px;color:var(--muted)}.toast{position:fixed;z-index:100;bottom:calc(100px + var(--safe-bottom));left:50%;transform:translateX(-50%);background:var(--ink);color:var(--white);border-radius:15px;padding:13px 18px;max-width:calc(100vw - 32px);width:max-content;font-size:12px;box-shadow:var(--shadow)}.drawer-links{display:flex;flex-direction:column;gap:6px}.drawer-links a{display:flex;gap:14px;align-items:center;border-radius:15px;padding:14px;background:var(--white);font-weight:600}.drawer-links a:last-child{margin-top:13px}.operator-card{display:flex;gap:12px;align-items:center;padding:20px 0 0;margin-top:20px;border-top:1px solid var(--line)}.avatar{border-radius:50%;background:var(--yellow);display:grid;place-items:center;width:40px;height:40px;font-size:12px;font-weight:800}.operator-card strong{display:block;font-size:13px}.operator-card small{color:var(--muted);font-size:11px}.settings-card{background:var(--white);border-radius:22px;border:1px solid var(--line);padding:20px;margin-bottom:16px}.settings-card h2{font-size:18px;margin-bottom:18px}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-top:1px solid var(--line);font-size:12px}.settings-row:first-of-type{border:0}.settings-row span{color:var(--muted)}.settings-card .field input{background:var(--cream)}.small-note{font-size:11px;color:var(--muted);line-height:1.65;margin-top:14px}.print-toolbar{display:flex;gap:10px;margin-bottom:24px;flex-wrap:wrap}.print-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}.label-paper{background:white;border-radius:14px;padding:0;box-shadow:var(--shadow);aspect-ratio:5/3;overflow:hidden}.label-paper svg{width:100%;height:auto;display:block;aspect-ratio:5/3;font-family:Arial,Helvetica,sans-serif}.print-caption{font-size:11px;color:var(--muted);text-align:center;margin-top:9px}.success-header{display:flex;gap:13px;align-items:center;background:var(--mint);border-radius:20px;padding:18px;margin-bottom:20px}.success-header>svg{width:28px;height:28px}.success-header strong{display:block;font-size:14px}.success-header small{color:var(--muted);font-size:11px}.recent-activity{margin-top:26px}.recent-activity .activity-row{display:flex;gap:11px;align-items:center;padding:12px 0;border-top:1px solid var(--line);font-size:12px}.activity-row .activity-icon{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:var(--field)}.activity-row .activity-icon svg{width:16px;height:16px}.activity-row small{display:block;color:var(--muted);font-size:10px}.activity-row time{margin-left:auto;color:var(--muted);font-size:10px}#print-root{display:none}@media(min-width:850px){.dashboard-top{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.dashboard-top .hero{margin:0}.dashboard-summary{display:flex;flex-direction:column;justify-content:space-between;background:var(--white);border:1px solid var(--line);border-radius:28px;padding:25px}.dashboard-summary h2{font-size:25px}.dashboard-top{margin-bottom:26px}.dashboard-summary .summary-line{margin:12px 0}.dashboard-summary .primary{align-self:flex-start}.operational-layout{max-width:780px;margin:auto}.stock-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.settings-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-layout .settings-card{margin:0}}@media(max-width:600px){.header-inner{height:69px;padding:0 18px;gap:10px}.brand{font-size:17px}.brand img{width:34px;height:34px}.store-indicator{font-size:10px}main{padding:20px 16px calc(115px + var(--safe-bottom))}.hero{padding:23px 22px;border-radius:25px}.hero h1{font-size:29px}.hero-stats{gap:22px;margin-top:22px}.hero-stat strong{font-size:29px}.hero-arrow{right:22px!important;bottom:24px!important}.dashboard-summary>h2,.dashboard-summary>.primary{display:none}.dashboard-summary .summary-line{margin-top:0}.stock-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stock-tile{padding:12px 9px 10px;border-radius:17px}.tile-code{font-size:17px;min-width:43px;height:33px}.tile-count{font-size:12px}.tile-count small{display:none}.tile-name{font-size:11px}.tile-expiry{gap:3px;font-size:10px;flex-wrap:wrap}.tile-expiry strong{font-size:10px}.tile-top{margin-bottom:10px}.page-title{margin-bottom:18px}h1{font-size:28px}.page-title .date-chip{display:none}.sheet{position:fixed;inset:auto 0 0;max-height:calc(100dvh - 24px);width:100%;margin:0;border-radius:28px 28px 0 0;padding:24px 20px calc(20px + var(--safe-bottom))}.sheet:before{content:'';display:block;width:34px;height:4px;border-radius:3px;background:#c2ccc2;margin:-10px auto 20px}.sheet-footer{bottom:calc(-20px - var(--safe-bottom));padding:12px 0 calc(4px + var(--safe-bottom))}.menu-dialog{position:fixed;inset:12px 12px auto auto;width:calc(100% - 24px);max-width:370px;margin:0;padding:24px}.print-grid{grid-template-columns:1fr}.print-toolbar .primary,.print-toolbar .secondary{flex:1}.row-content strong{font-size:13px}.product-row{padding:13px}.bottom-nav a{font-size:9px}.recent-activity{margin-top:25px}.detail-labels{max-height:210px}.settings-card{padding:19px}}@media(max-width:350px){.store-indicator{display:none}.tile-code{min-width:38px;font-size:16px}.stock-grid{gap:6px}.tile-count{font-size:11px}.hero-stat span{font-size:10px}.hero h1{font-size:27px}.tile-expiry{font-size:9px}.tile-expiry strong{font-size:9px}.bottom-nav{width:calc(100% - 18px)}.bottom-nav a{font-size:8px}}
@page{size:50mm 30mm;margin:0}@media print{html,body{width:50mm!important;margin:0!important;padding:0!important;background:white!important}body>*{display:none!important}body>#print-root{display:block!important;width:50mm!important;position:static!important;margin:0!important;padding:0!important}#print-root .label-paper{display:block!important;width:50mm!important;height:30mm!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;border-radius:0!important;break-after:page;page-break-after:always;break-inside:avoid;overflow:hidden!important}#print-root .label-paper:last-child{break-after:auto;page-break-after:auto}#print-root svg{display:block!important;width:50mm!important;height:30mm!important;max-width:none!important;margin:0!important;padding:0!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}
@media(max-width:600px){.hero .hero-arrow{display:none}.dashboard-summary>div:first-child{display:none}.dashboard-summary .summary-line{margin:3px 0 22px}.hero-stats{justify-content:space-between;gap:12px}.hero-stat span{white-space:nowrap;font-size:10px}}
@media(max-width:850px){html{scrollbar-width:none}::-webkit-scrollbar{width:0;height:0}}
@media(max-width:600px){.hero-stat{flex:1;min-width:0}.hero-stat span{white-space:normal;line-height:1.3}.hero-stat strong{font-size:28px}.section-heading h2{font-size:19px}}
@media(max-width:350px){.header-inner>.icon-button{margin-left:auto}.hero{padding:22px 19px}.hero-stat span{font-size:9px}}

.menu-dialog{position:fixed;inset:12px 12px auto auto;max-width:370px;margin:0}
