:root{color-scheme:light;font-family:Avenir Next,Trebuchet MS,sans-serif;line-height:1.5;font-weight:400;color:#1f1a16;background:radial-gradient(circle at top left,rgba(221,160,94,.18),transparent 28%),linear-gradient(180deg,#f7efe1,#f2e7d5 52%,#ecdfc9);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--ink: #1f1a16;--muted: #6c6259;--panel: rgba(255, 250, 242, .9);--panel-strong: rgba(255, 245, 233, .98);--border: rgba(83, 58, 31, .14);--accent: #9f4f20;--accent-deep: #7e3410;--success: #2f6c4f;--warning: #8a5f1f;--shadow: 0 18px 40px rgba(74, 43, 12, .12);--sidebar-width: 300px}*{box-sizing:border-box}html{overflow-y:scroll;scroll-behavior:smooth;scrollbar-gutter:stable}body{margin:0;min-width:320px;min-height:100vh;color:var(--ink)}a{color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}#root{min-height:100vh}.qr-management-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.85rem;align-items:end}.qr-table-toolbar-actions{display:flex;align-items:end;gap:.85rem;flex-wrap:wrap}.qr-management-selection-note{display:flex;justify-content:flex-end}.qr-bulk-print-control{display:grid;gap:.45rem;justify-items:end}.qr-bulk-print-copy{margin:0;color:var(--muted);font-size:.92rem}.qr-select-all{display:inline-flex;align-items:center;gap:.45rem}.qr-entity-modal-panel{max-width:min(980px,calc(100vw - 2rem))}.qr-entity-list-heading{align-items:center}.qr-print-modal-panel{width:min(1120px,100%)}.qr-print-modal-stack{gap:1rem}.qr-print-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1rem;border:1px solid var(--border);border-radius:20px;background:#fffaf2d1}.qr-print-toolbar-copy{display:grid;gap:.2rem;color:var(--muted)}.qr-print-toolbar-copy p{margin:0}.qr-print-toolbar-note{font-size:.92rem}.qr-print-toolbar-actions{display:flex;flex-wrap:wrap;gap:.75rem}.qr-print-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.qr-print-card{display:grid;grid-template-columns:160px minmax(0,1fr);grid-template-areas:"header header" "qr copy";gap:1rem;align-items:center;padding:1rem;border:1px solid rgba(83,58,31,.18);border-radius:18px;background:#fffaf2;break-inside:avoid}.qr-print-card-header{grid-area:header;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-bottom:.75rem;border-bottom:1px solid rgba(83,58,31,.12)}.qr-print-card-logo{width:118px;height:auto;display:block}.qr-print-card-badge{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:.3rem .7rem;border-radius:999px;background:#9f4f2014;color:var(--accent-deep);font-size:.82rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.qr-print-svg{grid-area:qr}.qr-print-svg svg{width:160px;height:160px;display:block}.qr-print-copy{grid-area:copy}.qr-print-copy h2{margin:0 0 .5rem;font-size:1.1rem}.qr-print-copy p{margin:0 0 .4rem;line-height:1.4}.qr-print-copy p:last-child{margin-bottom:0}.qr-print-path{color:var(--muted);font-size:.82rem;word-break:break-all}.mobile-companion-shell{min-height:100vh;padding:1rem;background:radial-gradient(circle at top right,rgba(221,160,94,.18),transparent 36%),linear-gradient(180deg,#f8f1e4,#f2e4cf);color:var(--ink)}.mobile-companion-shell-blocked{display:grid;place-items:center}.mobile-companion-header{display:grid;gap:.35rem;margin-bottom:1rem}.mobile-companion-header h1{margin:0;font-family:Iowan Old Style,Palatino Linotype,Book Antiqua,Georgia,serif;font-size:2.2rem;line-height:1}.mobile-companion-header p:last-child{margin:0;color:var(--muted)}.mobile-companion-main{display:grid;gap:1rem}.mobile-companion-card{display:grid;gap:1rem;padding:1rem;border:1px solid var(--border);border-radius:24px;background:#fffaf2eb;box-shadow:var(--shadow)}.mobile-companion-home-link{justify-self:start}.mobile-scan-actions{display:grid;gap:.85rem}.mobile-scan-button,.mobile-submit-button,.mobile-action-button{width:100%}.mobile-token-form,.mobile-scanner-panel{display:grid;gap:.75rem}.mobile-scanner-video{width:100%;min-height:240px;border-radius:18px;background:#20150f;object-fit:cover}.mobile-scan-summary h2{margin:.2rem 0 .35rem;font-size:1.55rem}.mobile-scan-summary p:last-child{margin-bottom:0}.mobile-inline-message{color:var(--warning)}.mobile-scan-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:0}.mobile-scan-detail-grid div{padding:.8rem;border-radius:16px;background:#9f4f200f}.mobile-scan-detail-grid dt{margin:0 0 .25rem;color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.mobile-scan-detail-grid dd{margin:0;font-weight:600}.mobile-action-grid,.mobile-more-actions-list{display:grid;gap:.75rem}.mobile-more-actions{border-top:1px solid var(--border);padding-top:.85rem}.mobile-more-actions summary{cursor:pointer;font-weight:700;color:var(--accent-deep)}.mobile-action-form{display:grid;gap:.85rem}.mobile-action-form-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.mobile-action-form-heading h3{margin:0}.mobile-confirm-panel{max-width:min(460px,calc(100vw - 2rem))}@media(max-width:700px){.mobile-scan-detail-grid{grid-template-columns:1fr}}.app-shell{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;gap:.5rem;height:100vh;padding:2rem 1.5rem;border-right:1px solid var(--border);background:linear-gradient(180deg,#462b17fa,#2e1b0ff5);color:#f9f1e6}.brand-lockup,.brand-copy{display:grid}.brand-lockup{gap:1rem}.brand-mark{display:flex;align-items:center;justify-content:center;width:min(100%,240px);padding:.9rem 1rem;border:1px solid rgba(255,255,255,.14);border-radius:24px;background:radial-gradient(circle at 65% 38%,rgba(255,181,45,.22),transparent 30%),radial-gradient(circle at 30% 72%,rgba(43,199,221,.18),transparent 34%),#ffffff0d;box-shadow:inset 0 1px #ffffff14}.brand-mark img{display:block;width:100%;max-width:188px;height:auto}.brand-copy{gap:.15rem}.brand-kicker,.section-eyebrow,.auth-label{margin:0;text-transform:uppercase;letter-spacing:.12em;font-size:.73rem;font-weight:700}.brand-copy .brand-kicker{font-size:.84rem;letter-spacing:.16em}.sidebar h1,.hero-copy>h2,.section-heading h2,.list-card h3{font-family:Iowan Old Style,Palatino Linotype,Book Antiqua,Georgia,serif}.sidebar h1{margin:.15rem 0 .45rem;font-size:2.2rem;line-height:1.05}.sidebar-copy,.auth-card p{margin:0;color:#f9f1e6c2}.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}.section-nav,.section-nav-group{display:grid;gap:.55rem}.nav-group-label{margin:.25rem 0 .2rem;color:#f9f1e69e;text-transform:uppercase;letter-spacing:.12em;font-size:.7rem;font-weight:700}.section-nav a{padding:.85rem 1rem;border-radius:14px;text-decoration:none;background:#ffffff0f;transition:transform .18s ease,background-color .18s ease}.section-nav a:hover,.section-nav a:focus-visible{background:#ffffff24;transform:translate(4px);outline:none}.section-nav a.section-nav-link-active{background:#ffb52d3d;color:#fff7df;font-weight:700;box-shadow:inset 3px 0 #ffb52df2,0 10px 24px #00000029}.section-nav a.section-nav-link-active:hover,.section-nav a.section-nav-link-active:focus-visible{background:#ffb52d4d;transform:translate(4px)}.section-nav-group-setup a{background:#dcebc21f}.section-nav-group-setup a:hover,.section-nav-group-setup a:focus-visible{background:#dcebc233}.section-nav-group-setup a.section-nav-link-active{background:#96b07057;color:#fbfff6;box-shadow:inset 3px 0 #bed894f2,0 10px 24px #00000029}.section-nav-group-setup a.section-nav-link-active:hover,.section-nav-group-setup a.section-nav-link-active:focus-visible{background:#96b0706b}.sidebar-action-button{width:100%}.auth-card,.panel,.welcome-banner,.hero-panel,.notice-card{border:1px solid var(--border);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.auth-card{display:grid;gap:.6rem;margin-top:auto;padding:1.1rem;border-radius:22px;background:#ffffff14}.main-content{display:grid;gap:1.5rem;padding:1.5rem}.main-content-signed-out{align-content:center;justify-items:center;min-height:100vh;transform:translate(calc(var(--sidebar-width) / -2))}.welcome-banner,.hero-panel{display:flex;justify-content:space-between;gap:1.5rem;align-items:end;padding:1.15rem 1.35rem;border-radius:28px}.welcome-banner{align-items:center;background:linear-gradient(120deg,#462b17f5,#743d19eb),radial-gradient(circle at top right,rgba(255,214,170,.22),transparent 36%);color:#fff7ef}.welcome-copy{max-width:42rem}.welcome-copy h2{margin:.2rem 0 .45rem;font-family:Iowan Old Style,Palatino Linotype,Book Antiqua,Georgia,serif;font-size:clamp(1.35rem,2.2vw,1.85rem);line-height:1.08}.welcome-actions{display:grid;justify-items:end;gap:.45rem;min-width:17rem;text-align:right}.welcome-actions-button{min-width:15.5rem}.welcome-actions .feedback-banner{max-width:24rem}.welcome-actions .feedback-success{background:#a8e3c32e;border:1px solid rgba(214,249,231,.34);color:#effff6}.welcome-copy p:last-child{margin:0;color:#fff7efc7}.hero-panel{background:linear-gradient(135deg,#fff6e9f2,#f3e1cde0),linear-gradient(90deg,rgba(159,79,32,.08),transparent)}.hero-copy{max-width:44rem}.hero-copy>h2{margin:.18rem 0 .55rem;font-size:clamp(1.55rem,2.65vw,2.25rem);line-height:1.05}.hero-panel .hero-copy{flex:1;max-width:none}.hero-panel .hero-copy p:last-child{max-width:none}.hero-copy p:last-child,.section-description{margin:0;max-width:42rem;color:var(--muted)}.hero-actions,.form-actions{display:flex;flex-wrap:wrap;gap:.75rem}.primary-button,.secondary-button,.ghost-button,.primary-link-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.85rem 1.2rem;border-radius:999px;border:1px solid transparent;font-weight:700;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}.primary-button,.primary-link-button{background:linear-gradient(180deg,#b75e2a 0%,var(--accent-deep) 100%);color:#fff8f0;box-shadow:0 12px 24px #7e341033}.secondary-button,.ghost-button{background:#fffaf2b3;border-color:var(--border);color:var(--ink)}.danger-button{background:#b026261c;border-color:#b0262642;color:#a11f1f}.primary-button:hover,.secondary-button:hover,.ghost-button:hover,.primary-link-button:hover,.primary-button:focus-visible,.secondary-button:focus-visible,.ghost-button:focus-visible,.primary-link-button:focus-visible{transform:translateY(-1px);outline:none}.primary-button:disabled{cursor:not-allowed;opacity:.7;transform:none}.content-grid{display:grid;gap:1.25rem}.dashboard-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem;align-items:stretch}.content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel,.notice-card{background:var(--panel);border-radius:24px}.dashboard-panel{display:grid;grid-template-rows:auto minmax(0,1fr);gap:.75rem;height:360px;min-width:0;padding:1rem;overflow:hidden}.dashboard-panel-heading{display:grid;gap:.65rem}.dashboard-panel-heading .section-heading{margin-bottom:0}.dashboard-panel-heading .section-heading h2{margin-bottom:.3rem;font-size:1.35rem;line-height:1.05}.dashboard-panel-heading .section-description{font-size:.9rem;line-height:1.35}.dashboard-panel-heading-with-control{grid-template-columns:minmax(0,1fr) minmax(9.5rem,11.5rem);align-items:start}.dashboard-filter-control{display:grid;gap:.35rem;align-self:start}.dashboard-filter-control .field-input{min-height:38px;padding:.62rem .75rem}.dashboard-custom-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem}.dashboard-filter-button{min-height:42px;padding:.65rem .9rem}.dashboard-table-shell{min-height:0;overflow:auto;border:1px solid rgba(83,58,31,.11);border-radius:10px;background:#fffcf794}.dashboard-table{width:100%;min-width:360px;border-collapse:collapse}.dashboard-table th,.dashboard-table td{padding:.58rem .62rem;border-bottom:1px solid rgba(83,58,31,.1);text-align:left;vertical-align:top}.dashboard-table th{position:sticky;top:0;z-index:1;background:#fff9f0fa;color:var(--muted);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}.dashboard-table td{font-size:.9rem}.dashboard-table td strong,.dashboard-table td span{display:block;overflow-wrap:anywhere}.dashboard-table td span{margin-top:.12rem;color:var(--muted);font-size:.8rem}.dashboard-table tbody tr:last-child td{border-bottom:0}.dashboard-table-row{cursor:pointer}.dashboard-table-row:hover,.dashboard-table-row:focus-within{background:#9f4f2012}.dashboard-row{width:100%;border:1px solid rgba(83,58,31,.11);border-radius:12px;background:#fffcf7bd;color:inherit;text-align:left;text-decoration:none}.dashboard-row-button{border-color:#533a1f1c}.dashboard-row>span{display:grid;gap:.12rem;min-width:0}.dashboard-row strong,.dashboard-row span{overflow-wrap:anywhere}.dashboard-row span span{color:var(--muted);font-size:.84rem}.dashboard-empty{color:var(--muted);padding:.85rem}.dashboard-status{display:inline-flex;width:fit-content;padding:.2rem .5rem;border-radius:999px;font-weight:700}.dashboard-status-critical{background:#8a22221f;color:#8a2222}.dashboard-status-below-threshold{background:#9f4f2024;color:var(--accent-deep)}.dashboard-status-near-threshold{background:#8a5f1f24;color:var(--warning)}.dashboard-status-healthy{background:#2f6c4f1f;color:var(--success)}.notice-card{padding:1rem 1.2rem;color:var(--warning);background:#fff7e7f2}.notice-message{margin:0}.notice-actions{display:flex;margin-top:.9rem}.signed-out-state{display:grid;width:min(100%,34rem)}.signed-out-brand{display:flex;align-items:center;justify-content:center;width:min(100%,320px);margin:0 auto 1rem;padding:1rem 1.2rem;border:1px solid rgba(159,79,32,.16);border-radius:30px;background:radial-gradient(circle at 66% 36%,rgba(255,187,56,.22),transparent 28%),radial-gradient(circle at 34% 68%,rgba(26,180,199,.16),transparent 30%),#fff9f1db;box-shadow:0 18px 34px #7e34101a}.signed-out-brand img{display:block;width:100%;max-width:240px;height:auto}.signed-out-state h2{margin:.35rem 0 .8rem;font-family:Iowan Old Style,Palatino Linotype,Book Antiqua,Georgia,serif;font-size:clamp(1.9rem,3vw,2.65rem);line-height:1.04}.signed-out-copy{margin:0;color:var(--muted);font-size:1.05rem}.signed-out-hint{display:grid;gap:.2rem;margin:.85rem 0 0;color:var(--accent-deep);font-weight:600}.signed-out-actions{display:grid;gap:.9rem;margin-top:1.2rem}.signed-out-form{gap:.85rem;padding:1.1rem}.signed-out-form .secondary-button{gap:.65rem;width:100%}.signed-out-provider-option{display:grid;gap:.75rem}.signed-out-provider-divider{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.75rem;align-items:center;color:var(--muted);font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.signed-out-provider-divider:before,.signed-out-provider-divider:after{content:"";height:1px;background:#533a1f24}.signed-out-provider-button{gap:.65rem;width:100%;background:#fffcf7d1}.signed-out-provider-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.signed-out-brewtrace-icon{border-radius:50%;background-image:url(/brewtrace-logo.png);background-position:50% 22%;background-repeat:no-repeat;background-size:238%}.panel{padding:1.4rem}.batch-management-panel{grid-column:1 / -1;overflow-anchor:none}.batch-panel-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem}.batch-panel-heading .section-heading{margin-bottom:0;max-width:none;flex:1}.batch-panel-heading .section-description{max-width:none}.batch-management-layout{display:grid;gap:1.25rem;overflow-anchor:none}.batch-admin-form{display:grid;gap:1rem;padding:1.15rem;border:1px solid rgba(83,58,31,.1);border-radius:20px;background:#fffcf7d1}.batch-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;align-items:start}.inventory-action-form-grid,.inventory-action-primary-grid{grid-template-columns:minmax(0,2.25fr) minmax(0,1fr) minmax(0,.85fr)}.inventory-action-form{grid-template-rows:auto auto minmax(0,1fr) auto;align-content:start;min-height:285px}.inventory-threshold-form{grid-template-rows:auto auto auto;min-height:0;gap:.8rem}.inventory-threshold-form .inventory-action-detail-region{display:none}.inventory-threshold-form .inventory-action-actions{align-self:start}.inventory-threshold-form .form-actions{margin-top:0}.inventory-threshold-primary-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) max-content}.inventory-action-lower-grid{display:contents}.inventory-action-detail-region{display:grid;gap:.55rem;align-content:start;min-width:0}.inventory-action-detail-region .batch-form-field-wide{min-width:0}.inventory-action-detail-placeholder{min-height:0}.inventory-action-actions{align-self:end;min-width:0}.inventory-action-actions .form-actions{margin-top:0}.inventory-management-panel{overflow-anchor:none}.vessel-form-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.95fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.1fr);gap:.85rem}.inventory-location-management-layout{align-items:start}.inventory-location-form-grid{grid-template-columns:minmax(0,1fr)}.inventory-threshold-form-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) max-content}.inventory-location-table-stack{display:grid;gap:1.25rem;min-width:0}.aging-form-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1.4fr) minmax(0,1.1fr) minmax(0,1.4fr) minmax(0,.72fr) minmax(0,.72fr)}.batch-plan-form-grid{grid-template-columns:minmax(0,.95fr) minmax(0,1.45fr) minmax(0,1.35fr) minmax(0,1fr) minmax(0,.85fr) minmax(0,1.15fr) minmax(0,.82fr) minmax(0,.62fr) minmax(0,.62fr)}.user-form-grid{grid-template-columns:minmax(0,.95fr) minmax(0,.95fr) minmax(0,.9fr) minmax(0,1.25fr) minmax(0,1fr) max-content;gap:.85rem}.vessel-form-grid .field-input{padding-left:.85rem;padding-right:.85rem}.capacity-input-group{display:grid;grid-template-columns:minmax(0,1fr) minmax(5.5rem,.36fr);gap:.5rem;min-width:0}.capacity-unit-select{min-width:0}.user-form-grid .field-input{padding-left:.85rem;padding-right:.85rem}.batch-plan-field-status,.batch-plan-field-compact,.aging-form-field-compact{min-width:0}.batch-form-field-wide{grid-column:1 / -1}.batch-form-field-checkbox{display:grid;gap:.45rem}.user-form-checkbox-field{align-self:end;justify-self:start}.batch-inline-checkbox{min-height:46px;padding:.82rem .95rem;border:1px solid rgba(83,58,31,.18);border-radius:16px;background:#fffdf8;align-items:center}.user-inline-checkbox{min-height:46px;padding:.82rem .72rem .82rem .85rem;white-space:nowrap}.field-label-placeholder{visibility:hidden}.batch-notes-input{min-height:104px}.batch-search-row{display:grid}.inventory-mode-switch{display:inline-flex;flex-wrap:wrap;gap:.5rem;padding:.35rem;border:1px solid rgba(83,58,31,.12);border-radius:18px;background:#fffaf2c2}.inventory-mode-button{min-height:40px;padding:.7rem 1rem;border:1px solid transparent;border-radius:14px;background:transparent;color:var(--muted);font-weight:700}.inventory-mode-button-active{background:linear-gradient(180deg,#b75e2a 0%,var(--accent-deep) 100%);color:#fff8f0;box-shadow:0 10px 20px #7e341029}.batch-form-toggle-row{display:flex;justify-content:flex-end;flex-shrink:0}.batch-form-toggle{min-width:174px}.records-search{display:grid;gap:.45rem}.batch-table-toolbar{display:flex;justify-content:space-between;align-items:end;gap:1rem;flex-wrap:wrap}.table-results-copy{margin:0;color:var(--muted)}.records-rows-control{display:inline-flex;align-items:center;gap:.6rem;min-width:150px;font-weight:700;white-space:nowrap}.records-table-shell{overflow:auto;overflow-anchor:none;border:1px solid rgba(83,58,31,.1);border-radius:18px;background:#fffcf7e6}.records-table{width:100%;min-width:1120px;border-collapse:separate;border-spacing:0}.records-table th,.records-table td{padding:.9rem 1rem;text-align:left;vertical-align:top;border-bottom:1px solid rgba(83,58,31,.1)}.records-table thead th{background:#ebeef1;color:#34281f;font-size:.88rem;font-weight:700;letter-spacing:.01em;white-space:nowrap}.records-table thead th:first-child{border-top-left-radius:18px}.records-table thead th:last-child{border-top-right-radius:18px}.records-table tbody tr:nth-child(2n){background:#4d3b2709}.records-table tbody tr:hover{background:#9f4f200f}.records-table tbody tr:last-child td{border-bottom:none}.records-table-row-dirty{background:#9f4f2014}.records-table-row-busy{opacity:.72}.records-table-sort{display:inline-flex;align-items:center;gap:.4rem;padding:0;border:none;background:transparent;color:inherit;font:inherit;font-weight:700}.records-table-sort:hover,.records-table-sort:focus-visible{color:var(--accent-deep);outline:none}.records-table-sort-indicator{color:var(--muted);font-size:.82rem}.records-table th[aria-sort=ascending] .records-table-sort-indicator,.records-table th[aria-sort=descending] .records-table-sort-indicator{color:var(--accent-deep)}.records-table-status .field-input{min-width:180px;min-height:40px;padding:.65rem .8rem;border-radius:12px}.records-table-note{max-width:280px;color:var(--muted)}.records-table-cell-stack{display:grid;gap:.2rem}.records-table-meta{color:var(--muted);font-size:.82rem}.quantity-breakdown{position:relative;display:inline-flex;align-items:center}.quantity-breakdown-trigger{display:inline-flex;align-items:center;gap:.4rem;min-height:30px;padding:.15rem .35rem;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-weight:700;text-align:left;cursor:help}.quantity-breakdown-trigger:hover,.quantity-breakdown-trigger:focus-visible{border-color:#9f4f2047;background:#fffaf2e6;color:var(--accent-deep);outline:none}.quantity-breakdown-icon{display:inline-grid;place-items:center;width:1.05rem;height:1.05rem;border:1px solid rgba(159,79,32,.32);border-radius:50%;color:var(--accent-deep);font-size:.7rem;font-weight:800;line-height:1}.quantity-breakdown-popover{position:fixed;left:0;top:0;z-index:300;display:grid;gap:.5rem;width:max-content;min-width:230px;max-width:320px;padding:.75rem;border:1px solid rgba(83,58,31,.16);border-radius:8px;background:#fffdf8;box-shadow:0 16px 34px #2d1f142e;color:var(--ink);font-size:.82rem;line-height:1.35;overflow-wrap:anywhere;opacity:0;pointer-events:none;transform:translateY(.25rem);transition:opacity .14s ease,transform .14s ease}.quantity-breakdown-popover-above{transform:translateY(calc(-100% + .25rem))}.quantity-breakdown-popover-below{transform:translateY(-.25rem)}.quantity-breakdown-popover-visible.quantity-breakdown-popover-above{opacity:1;transform:translateY(-100%)}.quantity-breakdown-popover-visible.quantity-breakdown-popover-below{opacity:1;transform:translateY(0)}.quantity-breakdown-lines{display:grid;gap:.25rem}.quantity-breakdown-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.8rem}.quantity-breakdown-formula{padding-top:.45rem;border-top:1px solid rgba(83,58,31,.1);color:var(--accent-deep);font-weight:800}.quantity-breakdown-note{color:var(--muted)}.batch-form-note{margin:0}.qr-entity-warning{color:var(--warning)}.qr-entity-warning-banner{margin-top:.65rem;padding:.8rem .95rem;border:1px solid rgba(159,79,32,.16);border-radius:14px;background:#9f4f2012;line-height:1.45}.qr-entity-footer{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1rem}.qr-entity-footer .form-actions{margin-right:auto}.qr-entity-helper-card{display:grid;gap:.75rem;width:min(100%,32rem);padding:.85rem 1rem;margin-left:auto;border-radius:16px;background:#9f4f200f}.qr-entity-helper-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.75rem}.company-table-copy{white-space:pre-wrap;color:var(--muted)}.company-admin-form{gap:.9rem}.company-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 1rem;align-items:start}.company-form-field{min-width:0}.company-form-textarea{min-height:96px}.company-table-edit-field{width:100%}.inventory-location-table-edit-field{min-width:180px}.company-table-edit-textarea{min-width:220px;resize:vertical}.user-table-cell{display:grid;gap:.35rem}.user-table-meta,.user-table-meta-strong{color:var(--muted)}.user-table-meta-strong{font-weight:700}.user-table-edit-field{width:100%;min-width:180px}.user-table-toggle{display:inline-grid;grid-template-columns:auto 1fr;align-items:center;gap:.5rem;min-width:180px;padding:.7rem .8rem;border:1px solid rgba(83,58,31,.12);border-radius:14px;background:#fffaf2b3}.records-table-actions{display:flex;gap:.5rem;flex-wrap:wrap}.records-pagination{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-top:.3rem}.records-pagination-summary,.records-pagination-current{margin:0;color:var(--muted);font-size:.88rem;font-weight:700}.records-pagination-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.table-action-button{min-height:38px;padding:.65rem .95rem;border-radius:14px;box-shadow:none}.records-table-empty{padding:2rem 1rem;text-align:center;color:var(--muted)}.records-subsection{display:grid;gap:.75rem}.records-subsection-heading{display:grid;gap:.25rem}.records-subsection-heading h3{margin:0;font-size:1.1rem}.records-subsection-copy{margin:0;color:var(--muted)}.inventory-form-note{margin:0}.inventory-stock-select-field{min-width:0}.inventory-stock-select{min-height:52px;font-size:.96rem;max-width:100%}.bucket-banner{display:flex;flex-direction:column;justify-content:center;gap:.25rem;min-height:112px;padding:1.15rem 1.35rem;border:1px solid var(--border);border-radius:28px;background:linear-gradient(120deg,#462b17f5,#743d19eb),radial-gradient(circle at top right,rgba(255,214,170,.22),transparent 36%);color:#fff7ef;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.bucket-banner h2{margin:.2rem 0 .45rem;font-family:Iowan Old Style,Palatino Linotype,Book Antiqua,Georgia,serif;font-size:clamp(1.6rem,3vw,2.35rem);line-height:1}.bucket-banner .section-description{max-width:none;color:#fff7efc7}.operations-divider{order:10}.operations-divider{background:linear-gradient(120deg,#462b17f5,#743d19eb),radial-gradient(circle at top right,rgba(255,214,170,.22),transparent 36%)}.batches-section{order:20}.aging-section{order:30}.inventory-section{order:40}.qr-management-section{order:45}.setup-divider{order:50}.setup-divider{background:linear-gradient(120deg,#2d4034f5,#4e5c3deb),radial-gradient(circle at top right,rgba(220,235,194,.24),transparent 36%)}.products-section{order:60}.locations-section{order:70}.vessels-section{order:80}.users-section{order:90}.products-section>.panel,.locations-section>.panel,.vessels-section>.panel,.users-section>.panel,.companies-section>.panel{border-color:#4560412e;background:linear-gradient(180deg,#fafdf4f0,#eff7e9e6),var(--panel)}.products-section>.panel .primary-button,.locations-section>.panel .primary-button,.vessels-section>.panel .primary-button,.users-section>.panel .primary-button,.companies-section>.panel .primary-button{background:linear-gradient(180deg,#6f8653,#435f43);color:#fbfff6;box-shadow:0 12px 24px #435f432e}.products-section>.panel .secondary-button,.locations-section>.panel .secondary-button,.vessels-section>.panel .secondary-button,.users-section>.panel .secondary-button,.companies-section>.panel .secondary-button,.products-section>.panel .ghost-button,.locations-section>.panel .ghost-button,.vessels-section>.panel .ghost-button,.users-section>.panel .ghost-button,.companies-section>.panel .ghost-button{background:#fafdf4c7;border-color:#45604138;color:#304434}.products-section>.panel .field-input,.locations-section>.panel .field-input,.vessels-section>.panel .field-input,.users-section>.panel .field-input,.companies-section>.panel .field-input{border-color:#45604133;background:#fdfff9e6}.products-section>.panel .records-table th,.locations-section>.panel .records-table th,.vessels-section>.panel .records-table th,.users-section>.panel .records-table th,.companies-section>.panel .records-table th{background:#eef7e7fa;color:#3e563d}.section-heading{margin-bottom:1.15rem}.section-heading h2{margin:.3rem 0 .5rem;font-size:1.55rem}.stacked-form,.list-panel{display:grid;gap:1rem}.field,.checkbox-field{display:grid;gap:.45rem}.field-label{font-weight:700}.empty-state,.supporting-copy,dt,.section-description{color:var(--muted)}.field-input{width:100%;min-height:46px;padding:.82rem .95rem;border:1px solid rgba(83,58,31,.18);border-radius:16px;background:#fffdf8;color:var(--ink)}.field-input:focus-visible,.checkbox-field input:focus-visible{outline:3px solid rgba(159,79,32,.18);outline-offset:1px;border-color:var(--accent)}.field-textarea{min-height:128px;resize:vertical}.checkbox-field{grid-template-columns:auto 1fr;align-items:start}.checkbox-field input{width:18px;height:18px;margin-top:.2rem}.feedback-banner{padding:.85rem 1rem;margin-bottom:1rem;border-radius:16px;font-weight:600}.feedback-success{background:#2f6c4f1a;color:var(--success)}.feedback-error{background:#9f20201a;color:#8a2222}.list-card{padding:1rem;border-radius:20px;background:var(--panel-strong);border:1px solid rgba(83,58,31,.09)}.list-card-header{display:flex;justify-content:space-between;align-items:start;gap:.8rem}.list-card h3{margin:0;font-size:1.35rem}.list-card p{margin:.35rem 0 0}.user-card{gap:.9rem}.user-card-controls{display:grid;gap:.85rem;margin-top:.9rem}.user-toggle{padding:.9rem 1rem;border:1px solid rgba(83,58,31,.12);border-radius:16px;background:#fffaf2b3}.user-card-actions{display:flex;justify-content:flex-start;margin-top:.3rem;gap:.75rem}.product-card-actions{display:flex;justify-content:flex-start;margin-top:.9rem;gap:.75rem}.batch-card-controls{display:grid;gap:.85rem;margin-top:.9rem}.batch-card-actions{display:flex;justify-content:flex-start;margin-top:.3rem;gap:.75rem}.aging-unit-card-controls{display:grid;gap:.85rem;margin-top:.9rem}.aging-unit-card-actions{display:flex;justify-content:flex-start;margin-top:.3rem;gap:.75rem}.aging-record-card-controls{display:grid;gap:.85rem;margin-top:.9rem}.aging-record-card-actions{display:flex;justify-content:flex-start;margin-top:.3rem;gap:.75rem}.inventory-actions{display:flex;justify-content:flex-start;gap:.75rem}.inventory-location-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.inventory-location-meta{display:flex;align-items:center;gap:.9rem;min-width:0}.inventory-location-meta h3{font-size:1.2rem;white-space:nowrap}.inventory-section,.inventory-span-two{grid-column:1 / -1}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:.85rem 0 0}.detail-grid dt,.detail-grid dd{margin:0}.detail-grid dd{font-weight:700}.modal-backdrop{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:#231b1494;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.modal-panel{width:min(720px,100%);max-height:min(90vh,860px);overflow:auto;border-radius:24px;border:1px solid rgba(83,58,31,.12);background:var(--panel-strong);box-shadow:0 28px 80px #2d1f1447;padding:1.4rem 1.4rem 1.25rem}.metrics-modal-panel,.package-run-modal-panel{width:min(1500px,100%)}.details-modal-panel{width:min(1200px,100%)}.setup-modal-panel{border-color:#45604133;background:linear-gradient(180deg,#fafdf4f7,#f0f8eaf0),var(--panel-strong)}.setup-modal-panel .modal-header{border-bottom-color:#45604124}.setup-modal-panel .primary-button{background:linear-gradient(180deg,#6f8653,#435f43);color:#fbfff6;box-shadow:0 12px 24px #435f432e}.setup-modal-panel .secondary-button,.setup-modal-panel .ghost-button{background:#fafdf4c7;border-color:#45604138;color:#304434}.setup-modal-panel .field-input{border-color:#45604133;background:#fdfff9eb}.setup-modal-panel .details-form-card,.setup-modal-panel .package-run-batch-summary{border-color:#4560411f;background:#fdfff9c7}.setup-modal-panel .records-table th{background:#eef7e7fa;color:#3e563d}.inventory-return-modal-panel{width:min(920px,100%)}.local-password-modal-panel,.threshold-modal-panel{width:min(560px,100%)}.modal-form{display:grid;gap:1rem}.inventory-return-modal-stack,.package-run-modal-stack{gap:1.25rem}.package-run-modal-summary{margin-top:.35rem}.package-run-form-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:.75rem}.local-password-modal-form{gap:1rem}.local-password-modal-fields{display:grid;gap:.85rem}.package-run-form-grid-two-column .package-run-helper,.package-run-form-grid-two-column>.package-run-form-field{grid-column:1 / -1}.package-run-form-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:.75rem}.package-run-form-fields-two-column{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem 1rem}.package-run-form-field{min-width:0}.package-run-helper{margin:0}.package-run-threshold-callout{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.7rem;min-height:46px;padding:.72rem .8rem;border:1px solid rgba(83,58,31,.14);border-radius:8px;background:#fffcf7d1}.package-run-threshold-callout span{min-width:0;color:var(--muted);font-weight:700;overflow-wrap:anywhere}.package-run-batch-summary{display:flex;flex-wrap:wrap;gap:.85rem 1.25rem;padding:.9rem 1rem;border:1px solid rgba(83,58,31,.08);border-radius:16px;background:#fffcf7e6;color:var(--muted)}.package-run-batch-summary span{white-space:nowrap}.package-run-batch-summary strong{color:var(--ink)}.inventory-return-summary{align-items:flex-start}.inventory-return-summary span{white-space:normal}.threshold-modal-form{gap:1rem}.threshold-modal-grid{display:grid;gap:.85rem}.threshold-modal-checkbox{align-items:center}.package-run-table{min-width:900px}.details-modal-summary{margin-top:.35rem}.details-form-grid .details-form-card .field{gap:.35rem}.details-form-grid .details-form-card .field-label{color:var(--muted);font-size:.82rem;font-weight:600}.details-form-grid .details-form-card .modal-readonly-value{margin:.2rem 0 0}.details-modal-notes-grid{grid-template-columns:minmax(0,1fr)}.panel-access-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem 1.1rem;padding:.78rem;border:1px solid rgba(69,96,65,.12);border-radius:8px;background:#fdfff9c7}.panel-access-option{display:grid;grid-template-columns:auto auto auto;align-items:center;justify-content:start;gap:.35rem;min-height:32px;padding:.28rem .15rem;border-radius:6px}.panel-access-option-active{color:#304434}.panel-access-option input{width:16px;height:16px;margin:0;accent-color:var(--accent)}.panel-access-option:has(input:disabled){opacity:.62}.panel-access-option-label,.panel-access-option-state{min-width:0}.panel-access-option-label{overflow:hidden;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.panel-access-option-state{color:var(--muted);font-size:.84rem}@media(max-width:700px){.panel-access-card,.package-run-form-fields-two-column,.inventory-return-form-grid{grid-template-columns:minmax(0,1fr)}}.metrics-modal-summary{margin-top:.35rem}.metrics-table{min-width:760px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:1rem;border-bottom:1px solid rgba(83,58,31,.08)}.modal-header h3{margin:.25rem 0 0}.details-modal-title-input{max-width:min(100%,340px);margin-top:.25rem;font-size:1.5rem;font-weight:700;letter-spacing:-.02em}.modal-header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.7rem}.modal-close-button{flex-shrink:0}.modal-notes{margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(83,58,31,.08)}.modal-readonly-value{margin:.35rem 0 0;font-weight:700}.modal-notes p:last-child{margin:.35rem 0 0}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}.detail-grid>div{padding:.85rem .95rem;border:1px solid rgba(83,58,31,.08);border-radius:16px;background:#fffcf7e6}.detail-grid dt{color:var(--muted);font-size:.82rem;font-weight:600}.detail-grid.details-modal-notes-grid{grid-template-columns:minmax(0,1fr)}.detail-grid dd{margin-top:.2rem}.inventory-return-form-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr)}.inventory-return-notes-card{grid-column:1 / -1}.inventory-transactions-table .transaction-type-column{width:180px}@media(min-width:1200px){html{font-size:14px}:root{--sidebar-width: 258px}.app-shell{grid-template-columns:var(--sidebar-width) minmax(0,1fr)}.sidebar{padding:1.45rem 1.05rem}.brand-lockup,.section-nav,.section-nav-group{gap:.8rem}.brand-mark{width:min(100%,176px);padding:.56rem .66rem;margin-inline:auto}.sidebar h1{font-size:1.85rem}.section-nav a{padding:.64rem .82rem}.auth-card{gap:.5rem;padding:.88rem}.main-content{gap:1.05rem;padding:1.05rem}.welcome-banner,.hero-panel{gap:1.05rem;padding:.9rem 1rem}.welcome-copy h2{font-size:clamp(1.25rem,2.2vw,1.65rem)}.hero-copy>h2{font-size:clamp(1.4rem,2.45vw,2rem)}.content-grid,.batch-management-layout,.stacked-form,.list-panel{gap:1rem}.panel,.notice-card,.list-card{padding:1rem}.bucket-banner{padding:.92rem 1rem}.bucket-banner h2{font-size:1.4rem}.section-heading{margin-bottom:.8rem}.section-heading h2{font-size:1.38rem;margin:.22rem 0 .34rem}.batch-panel-heading,.batch-admin-form,.company-admin-form,.modal-form{gap:.85rem}.batch-admin-form{padding:.9rem}.batch-form-grid,.company-form-grid,.detail-grid,.details-form-grid,.package-run-form-fields-two-column{gap:.8rem}.primary-button,.secondary-button,.ghost-button,.primary-link-button,.danger-button{min-height:38px;padding:.64rem .95rem}.table-action-button{min-height:32px;padding:.5rem .75rem;border-radius:11px}.field-input,.batch-inline-checkbox,.user-inline-checkbox,.user-toggle{min-height:39px;padding-top:.62rem;padding-bottom:.62rem}.field-input{padding-left:.78rem;padding-right:.78rem;border-radius:13px}.batch-inline-checkbox,.user-inline-checkbox{border-radius:13px}.field-textarea,.batch-notes-input,.company-form-textarea{min-height:96px}.records-table{min-width:980px}.records-table th,.records-table td{padding:.7rem .8rem}.records-table thead th,.records-table-meta,.detail-grid dt,.details-form-grid .details-form-card .field-label{font-size:.78rem}.records-table-status .field-input{min-width:148px;min-height:34px;padding:.48rem .64rem;border-radius:10px}.records-table-note{max-width:220px}.records-table-actions,.records-pagination,.records-pagination-actions,.hero-actions,.form-actions,.user-card-actions,.product-card-actions,.batch-card-actions,.aging-unit-card-actions,.aging-record-card-actions,.inventory-actions{gap:.6rem}.modal-backdrop{padding:1rem}.modal-panel{padding:1.05rem 1.05rem .95rem}.inventory-location-management-layout{grid-template-columns:minmax(320px,360px) minmax(0,1fr);gap:1rem}.inventory-location-form{align-self:start}.inventory-location-management-layout>.inventory-location-table-stack:only-child{grid-column:1 / -1}}@media(max-width:1100px){.main-content-signed-out{transform:none}.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto}.dashboard-preview-grid,.content-grid{grid-template-columns:1fr}.welcome-banner,.hero-panel{flex-direction:column;align-items:start}.welcome-actions{justify-items:start;min-width:0;width:100%;text-align:left}.batch-form-grid,.batch-plan-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-plan-field-product,.batch-plan-field-brewer,.batch-plan-field-vessel,.batch-plan-field-status{grid-column:auto}.user-form-grid,.vessel-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.company-form-grid{grid-template-columns:1fr}.batch-panel-heading{flex-direction:column;align-items:stretch}.dashboard-panel-heading{align-items:stretch}.dashboard-panel-heading-with-control{grid-template-columns:1fr}.dashboard-panel{height:340px}.modal-header{flex-direction:column;align-items:stretch}.detail-grid{grid-template-columns:1fr}.qr-print-toolbar{flex-direction:column;align-items:stretch}}@media(max-width:700px){.main-content,.sidebar{padding:1rem}.brand-mark,.signed-out-brand{width:100%}.detail-grid{grid-template-columns:1fr}.form-actions,.hero-actions,.list-card-header{flex-direction:column;align-items:stretch}.inventory-location-row,.inventory-location-meta,.inventory-actions{align-items:stretch;flex-direction:column}.batch-form-grid{grid-template-columns:1fr}.inventory-action-form,.inventory-action-detail-region,.inventory-action-detail-placeholder{min-height:0}.dashboard-panel{height:auto;min-height:320px}.dashboard-custom-filter{grid-template-columns:1fr}.qr-print-card{grid-template-columns:1fr;grid-template-areas:"header" "qr" "copy"}.qr-print-svg svg{width:min(240px,100%);height:auto;margin:0 auto}.batch-plan-form-grid{grid-template-columns:1fr}.batch-plan-field-product,.batch-plan-field-brewer,.batch-plan-field-vessel,.batch-plan-field-status{grid-column:auto}.user-form-grid,.vessel-form-grid{grid-template-columns:1fr}.batch-table-toolbar,.records-rows-control{align-items:flex-start;justify-content:flex-start}.batch-form-toggle-row{justify-content:stretch}.batch-form-toggle{width:100%}.records-table{min-width:920px}}@media print{@page{margin:.35in;size:auto}body.qr-print-mode{background:#fff}body.qr-print-mode #root{display:none!important}body.qr-print-mode .qr-print-modal-backdrop{position:static;inset:auto;z-index:auto;display:block;padding:0;background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}body.qr-print-mode .qr-print-modal-backdrop:before,body.qr-print-mode .qr-print-modal-backdrop:after{display:none!important}body.qr-print-mode .qr-print-modal-panel{width:auto;max-height:none;overflow:visible;margin:0;padding:.25in;border:none;border-radius:0;background:#fff;box-shadow:none}body.qr-print-mode .qr-print-modal-header,body.qr-print-mode .qr-print-toolbar{display:none!important}body.qr-print-mode .qr-print-grid{grid-template-columns:repeat(auto-fit,minmax(3.4in,1fr));gap:12px}body.qr-print-mode .qr-print-card{min-height:2.25in;padding:.22in;page-break-inside:avoid;break-inside:avoid;box-shadow:none}body.qr-print-mode .qr-print-card-logo{width:1.2in}body.qr-print-mode .qr-print-svg svg{width:1.45in;height:1.45in}body.qr-print-mode .qr-print-copy h2{font-size:16pt}body.qr-print-mode .qr-print-copy p{font-size:11pt}body.qr-print-mode .qr-print-path{display:none}}
