.inventory-page{box-sizing:border-box;width:100%;max-width:700px;margin:0 auto;padding:20px 18px 36px;color:var(--ink,#19171c)}
.inventory-page *{box-sizing:border-box}.inventory-intro{padding:6px 2px 22px}.inventory-kicker{color:var(--brand,#5a1718);font-size:11px;font-weight:750;letter-spacing:.11em;text-transform:uppercase}.inventory-intro h2{margin:9px 0;color:var(--brand,#5a1718);font-size:26px;letter-spacing:-.035em}.inventory-intro p,.inventory-detail>p{margin:0;color:var(--muted,#77717b);font-size:13px;line-height:1.5}
.inventory-toolbar,.inventory-controls,.inventory-actions,.inventory-section-heading,.inventory-figures{display:flex;align-items:end;gap:10px}.inventory-toolbar,.inventory-controls{margin-bottom:12px}.inventory-toolbar label,.inventory-controls label,.inventory-editor label{display:grid;gap:5px;min-width:0;flex:1;font-size:12px;font-weight:650;color:var(--brand,#5a1718)}
.inventory-page input,.inventory-page select,.inventory-page textarea{width:100%;min-width:0;padding:11px 12px;border:1px solid rgba(90,23,24,.2);border-radius:11px;background:#fff;color:var(--ink,#19171c);font:inherit;font-size:14px}.inventory-page textarea{min-height:78px;resize:vertical}.inventory-page button{min-height:42px;padding:9px 13px;border:1px solid rgba(90,23,24,.17);border-radius:11px;background:#fff;color:var(--brand,#5a1718);font:inherit;font-size:13px;font-weight:650;cursor:pointer}.inventory-page button:disabled{opacity:.5;cursor:default}.inventory-page button:focus-visible,.inventory-page input:focus-visible,.inventory-page select:focus-visible,.inventory-page textarea:focus-visible{outline:3px solid #a8333b;outline-offset:2px}.inventory-page .inventory-primary{background:var(--brand,#5a1718);color:white}.inventory-actions{align-items:center;flex-wrap:wrap;margin:15px 0}.inventory-actions [aria-pressed=true]{background:#f9e9ea;border-color:#9c353b}
.inventory-list{list-style:none;margin:0;padding:0;border:1px solid rgba(90,23,24,.12);border-radius:17px;overflow:hidden;background:#fff}.inventory-list li+li{border-top:1px solid rgba(90,23,24,.09)}.inventory-list button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:72px;text-align:left;border:0;border-radius:0;padding:13px 15px;color:var(--ink,#19171c)}.inventory-list button>span{display:grid;gap:4px;min-width:0}.inventory-list strong{font-size:14px}.inventory-list small{color:var(--muted,#77717b);font-size:11px}.inventory-amount{text-align:right;white-space:nowrap}.inventory-list .inventory-low{color:#a12c34;font-weight:700}.inventory-message{padding:17px;border:1px solid rgba(90,23,24,.1);border-radius:14px;background:#fff;color:var(--muted,#77717b);font-size:13px}.inventory-error{background:#fff2f2;color:#8c1720}
.inventory-detail,.inventory-editor{margin-top:20px;padding:18px;border:1px solid rgba(90,23,24,.13);border-radius:18px;background:linear-gradient(145deg,#fff,#fff9fa)}.inventory-section-heading{align-items:center;justify-content:space-between;margin-bottom:10px}.inventory-section-heading h3{margin:0;color:var(--brand,#5a1718);font-size:18px}.inventory-figures{margin:17px 0;align-items:stretch}.inventory-figures>div{display:grid;gap:5px;flex:1;padding:12px;border-radius:12px;background:#f7f1f2}.inventory-figures span{font-size:11px;color:var(--muted,#77717b)}.inventory-figures strong{font-size:15px}.inventory-detail h4{margin:22px 0 10px;color:var(--brand,#5a1718)}.inventory-history{margin:0;padding-left:20px}.inventory-history li{padding:9px 0;border-bottom:1px solid rgba(90,23,24,.08);font-size:13px}.inventory-history small{display:block;margin-top:3px;color:var(--muted,#77717b)}.inventory-history p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}.inventory-editor form{display:grid;gap:13px}.inventory-editor form>button{justify-self:start}
.inventory-home{max-width:640px;min-height:calc(100dvh - var(--fixed-topbar-height,74px));padding:20px 20px calc(112px + var(--safe-bottom,0px));background:#ecdee1;color:#30282b}
.inventory-home-venue{display:flex;justify-content:flex-end;margin:0 0 14px}
.inventory-home-venue-control{display:flex;align-items:center;justify-content:flex-end;gap:10px;max-width:100%}
.inventory-home-venue-control>span{color:#786a70;font-size:12px;font-weight:650}
.inventory-page .inventory-home-venue-control select{min-height:42px;padding:8px 10px;background:#f9f3f4;color:#511d22}
.inventory-home-sections ul{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.inventory-page .inventory-home-sections .inventory-preview-link{display:flex;align-items:center;gap:13px;width:100%;min-height:70px;padding:11px 13px;border:1px solid #dfcdd1;border-radius:17px;background:#f9f3f4;color:#30282b;text-align:left;font-size:inherit}
.inventory-page .inventory-home-sections .inventory-preview-link:hover{background:#fff9fa}
.inventory-home .inventory-icon{display:grid;place-items:center;flex:0 0 43px;height:43px;border-radius:13px;background:#e7d3d7;color:#6a2429}
.inventory-home .inventory-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.inventory-home .inventory-preview-copy{display:grid;gap:4px;flex:1;min-width:0}
.inventory-home .inventory-preview-copy strong{font-size:15px;font-weight:700;line-height:1.2}
.inventory-home .inventory-preview-copy small{color:#786a70;font-size:12px;line-height:1.35}
.inventory-home .inventory-chevron{flex:none;color:#85282d;font-size:24px;line-height:1}
.inventory-home-recent{margin-top:18px}
.inventory-home-recent-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 8px}
.inventory-home-recent-heading h3{margin:0;color:#511d22;font-size:15px;font-weight:700}
.inventory-page .inventory-home-recent-heading button{min-height:36px;padding:4px 2px;border:0;background:transparent;color:#786a70;font-size:12px;font-weight:600}
.inventory-home-recent-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.inventory-page .inventory-home-recent-list button,.inventory-page .inventory-home-recent-delivery{display:flex;align-items:center;gap:10px;width:100%;min-height:63px;padding:10px 12px;border:1px solid #dfcdd1;border-radius:15px;background:#f9f3f4;color:#30282b;text-align:left}
.inventory-home-recent-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:11px;background:#e7d3d7;color:#6a2429}
.inventory-home-recent-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.inventory-home-recent-copy{display:grid;gap:3px;flex:1;min-width:0}
.inventory-home-recent-copy strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-home-recent-copy small{color:#786a70;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-home-recent-value{flex:none;color:#511d22;font-size:13px;font-weight:700;white-space:nowrap}
.inventory-home-empty{display:flex;align-items:center;min-height:63px;margin:0;padding:10px 12px;border:1px solid #dfcdd1;border-radius:15px;background:#f9f3f4;color:#786a70;font-size:12px}
.inventory-home-alert{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;padding:10px 12px;border-radius:14px;background:#e7d3d7;color:#511d22;font-size:12px}
.inventory-page .inventory-home-alert button{flex:none;background:#f9f3f4}
.inventory-page .inventory-back{margin:0 0 15px;padding:0;min-height:30px;border:0;background:transparent;font-size:13px}
@media(max-width:480px){.inventory-page{padding:18px 14px 28px}.inventory-intro h2{font-size:24px}.inventory-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.inventory-actions button{flex:1}.inventory-figures strong{font-size:13px}}
@media(max-width:360px){.inventory-home{padding-inline:14px}.inventory-page .inventory-home-sections .inventory-preview-link{gap:9px}.inventory-home-venue-control{max-width:58%}}

/* Stock table and product-detail presentation; the fixed application header is unchanged. */
.inventory-stock{max-width:820px;padding-bottom:calc(110px + var(--safe-bottom,0px))}
.inventory-stock-toolbar{display:grid;grid-template-columns:44px minmax(0,1fr) minmax(0,auto);align-items:center;gap:12px;margin:0 0 14px;padding:14px;border:1px solid #dfcdd1;border-radius:22px;background:linear-gradient(135deg,#f8f1f3,#fffafb);box-shadow:0 12px 28px rgba(69,22,28,.06)}
.inventory-stock-toolbar h2{min-width:0;margin:0;color:var(--brand,#5a1718);font-size:18px;line-height:1.2;letter-spacing:-.025em}
.inventory-page .inventory-stock-back{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:14px;background:#f0e5e8;color:#5a1718;font-size:28px;line-height:1}
.inventory-stock-venue{display:block;min-width:0;max-width:112px}.inventory-page .inventory-stock-venue select{max-width:112px;min-height:43px;padding:8px 25px 8px 9px;border-radius:13px;background:#fffafb;color:#5a1718;font-size:12px;font-weight:750;text-overflow:ellipsis}.inventory-stock-venue-name{display:block;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5a1718;font-size:13px;font-weight:750}
.inventory-stock-legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin:12px 2px 0;color:#6f6268;font-size:11px;font-weight:650}.inventory-stock-legend span{display:inline-flex;align-items:center;gap:6px}.inventory-legend-dot{display:inline-block;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px #fffafb}.inventory-legend-low{background:#e6b748}.inventory-legend-critical{background:#bd6056}
.inventory-stock-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}.inventory-page .inventory-stock-bottom [data-inv-attention]{min-height:43px;padding:9px 14px;border-radius:13px}.inventory-page .inventory-stock-bottom [data-inv-attention][aria-pressed=true]{background:#f9e9ea;border-color:#9c353b}.inventory-page .inventory-stock-add{display:grid;place-items:center;flex:none;width:46px;height:46px;min-height:46px;padding:0;border:0;border-radius:15px;background:linear-gradient(135deg,#9a3536,#5a1718);color:white;font-size:29px;font-weight:450;line-height:1;box-shadow:0 7px 16px rgba(90,23,24,.2)}
.inventory-stock-error{display:flex;align-items:center;gap:10px;margin-bottom:12px}.inventory-stock-error .inventory-message{flex:1;margin:0}.inventory-stock-error button{flex:none}
.inventory-table-scroll{max-height:min(60dvh,590px);overflow-x:auto;overflow-y:auto;overscroll-behavior-x:none;overscroll-behavior-inline:none;overscroll-behavior-y:auto;touch-action:pan-x pan-y;border:1px solid #decbd0;border-radius:16px;background:#fffafb;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.inventory-table-scroll::-webkit-scrollbar{display:none;width:0;height:0}
.inventory-stock-table{width:1130px;table-layout:fixed;border-spacing:0;border-collapse:separate;color:#282126}
.inventory-stock-table th,.inventory-stock-table td{height:60px;padding:9px 11px;border-bottom:1px solid #e7d9dd;text-align:left;vertical-align:middle;overflow-wrap:anywhere;font-size:13px}
.inventory-stock-table thead th{position:sticky;top:0;z-index:3;height:44px;background:#f1e6e9;color:#695a60;font-size:11px;font-weight:750;letter-spacing:.055em;text-transform:uppercase}
.inventory-stock-table th:first-child{position:sticky;left:0;z-index:2;width:145px;box-shadow:1px 0 0 #decbd0;background:#fffafb;color:#21191d}
.inventory-stock-table thead th:first-child{z-index:4;background:#f1e6e9}
.inventory-stock-table th:nth-child(2){width:90px}.inventory-stock-table th:nth-child(3){width:145px}.inventory-stock-table th:nth-child(4){width:88px}.inventory-stock-table th:nth-child(5){width:115px}.inventory-stock-table th:nth-child(6){width:120px}.inventory-stock-table th:nth-child(7){width:190px}.inventory-stock-table th:nth-child(8){width:145px}.inventory-stock-table th:nth-child(9){width:75px}
.inventory-stock-table-all{width:1250px}.inventory-stock-table-all th:nth-child(2){width:120px}.inventory-stock-table-all th:nth-child(3){width:90px}.inventory-stock-table-all th:nth-child(4){width:145px}.inventory-stock-table-all th:nth-child(5){width:88px}.inventory-stock-table-all th:nth-child(6){width:115px}.inventory-stock-table-all th:nth-child(7){width:120px}.inventory-stock-table-all th:nth-child(8){width:190px}.inventory-stock-table-all th:nth-child(9){width:145px}.inventory-stock-table-all th:nth-child(10){width:75px}.inventory-venue-cell{color:#6d5057;font-weight:650}
.inventory-stock-table tbody tr:last-child>*{border-bottom:0}
.inventory-stock-table .inventory-number{color:#572127;font-weight:750;font-variant-numeric:tabular-nums}
.inventory-stock-table button{min-height:42px;padding:4px;border:0;border-radius:7px;background:transparent;text-align:left;color:#20171b;font-size:13px;font-weight:700}
.inventory-stock-table td:last-child button{display:grid;place-items:center;width:42px;border:1px solid #d8c4c9;background:#fff;color:#7a262b;font-size:18px}
.inventory-stock-table .inventory-row-low>*{background:#fff5dd}
.inventory-stock-table .inventory-row-critical>*{background:#fae8e3}
.inventory-stock-table .inventory-row-low>th:first-child{background:#fff5dd}
.inventory-stock-table .inventory-row-critical>th:first-child{background:#fae8e3}
.inventory-expiry{display:inline-block;margin-top:3px;padding:2px 6px;border-radius:6px;background:#eee7f7;color:#644687;font-size:10px;font-weight:750;white-space:nowrap}
.inventory-detail{scroll-margin-top:calc(var(--fixed-topbar-height,74px) + 16px)}
.inventory-detail .inventory-section-heading{align-items:start}
.inventory-detail .inventory-section-heading h3{margin:5px 0 0;font-size:20px}
.inventory-detail-total{display:grid;gap:4px;margin:16px 0;padding:14px;border-radius:14px;background:#f1e4e7;color:#531c23}
.inventory-detail-total strong{font-size:18px}.inventory-detail-total span{font-size:12px;color:#71646a}
.inventory-detail h4{margin:17px 0 9px;color:#571e24;font-size:14px}
.inventory-batches{list-style:none;margin:0;padding:0}
.inventory-batches li{padding:11px 0;border-bottom:1px solid #e4d4d8}
.inventory-batches li>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.inventory-batches strong{font-size:13px}.inventory-batches li span{color:#592027;font-size:13px;font-weight:700;white-space:nowrap}
.inventory-batches small{display:block;margin-top:4px;color:#74676d;font-size:11px;line-height:1.4}
.inventory-use-first{margin:13px 0 0;padding:9px 11px;border-radius:10px;background:#eee7f7;color:#644687;font-size:12px}
.inventory-legacy-note{margin:14px 0;color:#73666c;font-size:12px;line-height:1.45}
.inventory-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.inventory-detail-actions button:first-child{background:#8d3037;color:white}
.inventory-manager-note{padding:11px;border-radius:10px;background:#f2e8ea;font-size:12px}
.inventory-detail-history{margin-top:15px}
.inventory-editor-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}
.inventory-editor-grid>label,.inventory-picklist>label{display:grid;gap:5px;min-width:0}
.inventory-editor-grid .inventory-editor-wide{grid-column:1/-1}
.inventory-editor-grid .inventory-picklist{display:grid;gap:8px;min-width:0}
.inventory-editor-grid [hidden]{display:none!important}
.inventory-editor-note{color:#591e25;font-size:12px;font-weight:700}
.inventory-editor-help{margin:0;color:#786c71;font-size:11px;line-height:1.4}
.inventory-unit-conversion{display:grid;gap:10px;padding:13px;border:1px solid #dfcdd1;border-radius:14px;background:#f7eef0;color:#591e25}
.inventory-unit-conversion[hidden]{display:none!important}
.inventory-unit-conversion>strong{font-size:13px}.inventory-unit-conversion>p{margin:0;color:#76696e;font-size:11px;line-height:1.45}
.inventory-unit-ratio{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;align-items:end;gap:7px;font-size:12px}
.inventory-unit-ratio>span{padding-bottom:12px;white-space:nowrap}.inventory-unit-ratio label{min-width:0}
.inventory-unit-confirm{display:flex!important;align-items:center;gap:9px;font-size:12px!important}.inventory-unit-confirm input{width:auto;min-width:18px}
.inventory-editor-grid>button{justify-self:start}
.inventory-editor-overlay{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:calc(18px + env(safe-area-inset-top,0px)) 16px calc(18px + env(safe-area-inset-bottom,0px));background:rgba(27,13,18,.48);overscroll-behavior:contain}
.inventory-editor-overlay .inventory-editor{width:min(100%,520px);max-height:calc(100dvh - 36px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:0;margin:0;padding:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e1cdd2;border-radius:22px;background:#fffafb;box-shadow:0 24px 80px rgba(37,8,14,.24)}
.inventory-editor-overlay .inventory-section-heading{flex:none;align-items:center;margin:0;padding:16px 18px;border-bottom:1px solid #eadce0;background:#f7eef0}
.inventory-editor-overlay .inventory-section-heading h3{font-size:20px}
.inventory-editor-overlay .inventory-section-heading button{min-height:38px}
.inventory-editor-overlay .inventory-editor form{min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px 18px calc(22px + env(safe-area-inset-bottom,0px))}
.inventory-detail-overlay{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:calc(18px + env(safe-area-inset-top,0px)) 16px calc(18px + env(safe-area-inset-bottom,0px));background:rgba(27,13,18,.48);overscroll-behavior:contain}
.inventory-detail-overlay .inventory-detail{width:min(100%,520px);max-height:calc(100dvh - 36px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:0;margin:0;padding:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e1cdd2;border-radius:22px;background:#fffafb;box-shadow:0 24px 80px rgba(37,8,14,.24)}
.inventory-detail-overlay .inventory-section-heading{flex:none;align-items:center;margin:0;padding:16px 18px;border-bottom:1px solid #eadce0;background:#f7eef0}
.inventory-detail-body{min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px 18px calc(22px + env(safe-area-inset-bottom,0px))}
.inventory-detail-body>p{margin:0;color:var(--muted,#77717b);font-size:13px;line-height:1.5}
.inventory-detail-overlay .inventory-detail:focus,.inventory-editor-overlay .inventory-editor:focus{outline:none}
@media(max-width:480px){.inventory-editor-overlay{padding-inline:12px}.inventory-editor-overlay .inventory-editor{max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}}
@media(max-width:480px){.inventory-detail-overlay{padding-inline:12px}.inventory-detail-overlay .inventory-detail{max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}}
@media(max-width:480px){.inventory-stock-table th:first-child{width:128px}.inventory-stock-table{width:1110px}.inventory-stock{padding-inline:13px}.inventory-editor-grid{gap:10px!important}}
@media(max-width:360px){.inventory-stock-toolbar{grid-template-columns:38px minmax(0,1fr) minmax(0,97px);gap:8px;padding:11px}.inventory-page .inventory-stock-back{width:38px;height:38px;min-height:38px}.inventory-stock-toolbar h2{font-size:16px}.inventory-stock-venue,.inventory-stock-venue-name,.inventory-page .inventory-stock-venue select{max-width:97px}}
