/* Inventory and personal notifications share readable controls on every screen. */
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ops-page{width:100%;max-width:1560px;margin:auto}
.app-sidebar{overflow-y:auto;overscroll-behavior:contain}
.app-sidebar>.app-brand,.app-sidebar>nav,.app-sidebar>.sidebar-user{flex-shrink:0}
.ops-page .module-hero h1{font-size:clamp(34px,4vw,62px);line-height:1.08;letter-spacing:-1.7px;overflow-wrap:normal;word-break:normal;hyphens:none}
.ops-page .module-stats{min-width:0;flex-shrink:0}
.ops-page .module-stats:has(>span:only-child){grid-template-columns:1fr}
.ops-page .module-stats small{font-size:10px;letter-spacing:.2px}
.ops-panel{min-width:0;margin-bottom:22px;padding:26px;border:1px solid #d5d8da;border-radius:22px;background:#fff;box-shadow:0 8px 28px #080a0b0a}
.ops-panel h2{margin:0 0 18px;font:500 29px/1.15 var(--serif)}
.ops-panel .section-title{gap:18px;flex-wrap:wrap}
.ops-panel .section-title h2{margin:0}
.ops-panel .muted{font-size:13px;line-height:1.65}
.ops-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);align-items:start;gap:22px}
.ops-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;margin:18px 0 0}
.ops-wide{grid-column:1/-1}
.ops-form label,.ops-month label{display:block;min-width:0;color:#3d4348;font-size:12px;font-weight:700}
.ops-form input:not([type=hidden]):not([type=checkbox]),.ops-form select,.ops-form textarea,.ops-month input,.ops-search input{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:48px;margin-top:7px;padding:11px 12px;border:1px solid #c7ccd0;border-radius:10px;background:#fafafa;color:#17191b;font:400 15px/1.45 var(--sans);outline:none}
.ops-form textarea{resize:vertical}
.ops-form :is(input,select,textarea):focus-visible,.ops-search input:focus-visible,.ops-month input:focus-visible{outline:2px solid #333;outline-offset:2px}
.ops-form .button{margin:0;min-width:0;white-space:normal;text-align:center}
.ops-toggle{display:flex!important;align-items:center;gap:12px;min-height:48px;padding:10px 12px;border:1px solid #e0e3e5;border-radius:10px;background:#f8f9f9;cursor:pointer}
.ops-toggle input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;margin:0;accent-color:#202326}
.ops-toggle span{font-size:14px;font-weight:650}
.ops-form>.muted{margin:0}
.ops-accordion>summary{padding:12px 28px 12px 0;min-height:46px;color:#2e3439;font-size:14px;font-weight:700;cursor:pointer;overflow-wrap:break-word}
.ops-accordion[open]>summary{margin-bottom:6px}
.ops-panel.ops-accordion{padding-block:14px}
.ops-accordion .ops-form{margin-bottom:10px}
.batch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:16px}
.batch-card{min-width:0;padding:22px;border:1px solid #d9dde0;border-radius:17px;background:linear-gradient(160deg,#fff,#f8f9fa)}
.batch-card h3,.notice-card h3{margin:14px 0 7px;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.batch-card>p{margin:0;color:#697177;font-size:12px;overflow-wrap:anywhere}
.batch-quantity{display:block;margin:21px 0 18px;font-size:28px;font-weight:600;line-height:1.2}
.batch-quantity small{display:block;margin-top:4px;color:#7c8287;font-size:11px;font-weight:400}
.batch-card>.ops-accordion{border-top:1px solid #dce0e3}
.ops-badge{display:inline-block;max-width:100%;padding:5px 9px;border-radius:8px;font-size:11px;font-weight:700;line-height:1.5}
.ops-badge.expired{background:#fce8e8;color:#9f3232}.ops-badge.soon{background:#fff1d7;color:#855614}.ops-badge.fresh{background:#e8f2ec;color:#286346}.ops-badge.unknown{background:#eceff1;color:#59656c}
.ops-empty{padding:25px 12px;color:#687177;text-align:center;font-size:14px}
.ops-search{flex:0 1 320px;min-width:0;max-width:100%}.ops-search input{margin:0}
.ops-month{display:flex;align-items:flex-end;gap:10px;max-width:100%;margin:0}.ops-month label{min-width:0;flex:1}.ops-month .button{flex-shrink:0}
.ops-money{display:block;margin-top:14px;font-size:30px;font-weight:600}.ops-money small{font-size:12px;color:#737d83;font-weight:400}
.ops-report>div{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #e0e4e6}.ops-report>div:last-child{border:0}.ops-report>div>span{min-width:0}.ops-report strong{font-size:14px;overflow-wrap:anywhere}.ops-report small{display:block;margin-top:5px;font-size:12px;color:#667179;overflow-wrap:anywhere}.ops-report b{flex-shrink:0;font-size:13px}
.notice-list{display:grid;gap:13px}.notice-card{min-width:0;padding:20px;border:1px solid #d7dde0;border-radius:15px;background:#f8f9fa}.notice-card.read{background:#fff}.notice-card p{margin:9px 0;color:#4a555d;line-height:1.65;font-size:14px;overflow-wrap:anywhere}.notice-card>small{color:#747e86;font-size:11px}.notice-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}.notice-actions form{margin:0}
.push-device{margin-top:26px;padding-top:18px;border-top:1px solid #d9dfe2}.push-device h3{font-size:17px}.push-device>p{font-size:13px;line-height:1.6;color:#4e5b64}.push-device .button{display:flex;width:100%;margin-top:10px;white-space:normal;text-align:center}
.notice-count{display:grid;place-items:center;min-width:22px;height:22px;margin-left:auto;padding:0 4px;border-radius:7px;background:#e3e8eb;color:#20272c;font-size:11px}
.mobile-notices{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #40474c;border-radius:10px;background:#252a2e;color:#fff;text-decoration:none}.mobile-notices svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mobile-notices i{position:absolute;right:8px;top:7px;width:7px;height:7px;border-radius:50%;background:#ffb981}
.receipt-with-expiry{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.receipt-with-expiry .receipt-product,.receipt-with-expiry .receipt-help{grid-column:1/-1}.receipt-with-expiry .receipt-help{color:#6a767d;font-size:12px}.receipt-with-expiry label{min-width:0;position:relative}.receipt-with-expiry input{width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:46px}.receipt-with-expiry input[type=date]{padding-right:8px}

/* Keep installation controls within the viewport and clear of the order button. */
.pwa-help-dialog{box-sizing:border-box;position:fixed;inset:0;width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:fit-content;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;overflow-y:auto;overscroll-behavior:contain}
.pwa-help-card{padding:28px 24px}.pwa-help-card h2{font-size:30px;line-height:1.15;overflow-wrap:normal;hyphens:none}.pwa-help-card li{padding-left:44px;font-size:14px;overflow-wrap:break-word}.pwa-help-close{width:44px;height:44px;top:12px;right:12px}.pwa-help-card>.primary{min-height:48px}
.pwa-install{grid-template-columns:48px minmax(0,1fr) 44px;grid-template-areas:'icon copy close' 'action action action';gap:10px 12px;padding:14px;width:min(440px,calc(100vw - 24px));max-width:calc(100vw - 24px);right:12px;bottom:calc(12px + env(safe-area-inset-bottom));border-radius:18px}
.pwa-install>img{grid-area:icon;width:48px;height:48px}.pwa-install>span{grid-area:copy;min-width:0;align-self:center}.pwa-install strong{font-size:14px;line-height:1.4}.pwa-install small{font-size:12px;line-height:1.5}.pwa-install .pwa-guide{font-size:12px;min-height:30px;text-align:left}
.pwa-install>button:not(.pwa-dismiss){grid-area:action;justify-self:stretch;width:100%;min-height:44px;padding:10px 14px;font-size:14px}.pwa-install .pwa-dismiss{grid-area:close;align-self:start;width:44px;height:44px;font-size:26px}
.has-install-banner .app-content{padding-bottom:calc(var(--install-space,200px) + env(safe-area-inset-bottom))}.has-install-banner .auth-panel{padding-bottom:calc(var(--install-space,200px) + 30px)}
@media(max-width:1100px){.ops-columns{grid-template-columns:1fr}.ops-page .module-hero{align-items:stretch}.receipt-with-expiry{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .ops-panel{padding:20px 16px;border-radius:17px;margin-bottom:16px}.ops-panel h2{font-size:25px}.ops-page .module-hero{padding:24px 19px}.ops-page .module-hero h1{font-size:36px;letter-spacing:-1.2px}.ops-page .module-stats{grid-template-columns:1fr;gap:0}.ops-page .module-stats span{display:flex;align-items:center;gap:14px;min-height:50px;border-right:0;border-bottom:1px solid #ffffff1f}.ops-page .module-stats span:last-child{border-bottom:0}.ops-page .module-stats b{font-size:24px}.ops-page .module-stats small{font-size:12px}
  .ops-form{gap:14px 10px}.ops-columns{gap:0}.batch-card{padding:18px 14px}.ops-form input:not([type=hidden]):not([type=checkbox]),.ops-form textarea,.ops-form select,.ops-month input,.ops-search input{font-size:16px}.ops-search{flex-basis:100%}.ops-report>div{gap:12px}.ops-month{width:100%}.ops-report>div b{max-width:40%;text-align:right;overflow-wrap:anywhere}.receipt-with-expiry{grid-template-columns:repeat(2,minmax(0,1fr))!important}.receipt-with-expiry input{font-size:16px}.receipt-with-expiry label{grid-column:auto}.mobile-header-actions{gap:6px;flex-shrink:0}.mobile-header .mobile-brand{min-width:0;gap:7px}.mobile-brand span{font-size:15px}.mobile-header{padding-inline:12px}.mobile-header-actions>button{min-width:40px;width:40px;height:44px}
  .app-sidebar nav a{min-height:46px;line-height:1.45}.pwa-help-card>img{width:58px;height:58px;margin-bottom:17px}
}
@media(max-width:380px){.ops-form{grid-template-columns:1fr}.ops-wide{grid-column:auto}.ops-page .module-hero h1{font-size:31px}.receipt-with-expiry{grid-template-columns:1fr!important}.pwa-help-card{padding:24px 19px}.pwa-help-card h2{font-size:27px}.pwa-install{gap:8px}.mobile-header .mobile-brand img{width:32px}.ops-report>div{flex-wrap:wrap}.ops-report>div b{max-width:100%;text-align:left}}
@media(max-height:520px){.pwa-help-card>img{display:none}.pwa-help-card{padding:22px}.pwa-help-card h2{font-size:26px;margin-bottom:12px}.pwa-help-card ol{gap:6px;margin-bottom:14px}.pwa-install{max-height:calc(100dvh - 24px);overflow-y:auto}}
@media print{.ops-form,.push-device,.pwa-install,.pwa-help-dialog,.notice-actions{display:none!important}}

/* Decorative lettering must not enlarge the mobile layout viewport. */
@media(max-width:760px){
  .auth-page .auth-panel:after{display:none}
  .auth-page .auth-card input{font-size:16px}
  .ops-page .module-stats span{flex-direction:row;justify-content:flex-start}
  .ops-page .module-stats small{margin-top:0;text-transform:none}
  .receipt-with-expiry,.notice-preferences{scroll-margin-top:82px}
  .batch-card{scroll-margin-top:82px}
}
@media(max-width:440px){.receipt-with-expiry{grid-template-columns:1fr!important}}
