body.admin-page #productsTab>.section-title{display:flex!important;flex-direction:column;align-items:stretch!important;gap:8px;margin:0 0 8px!important}
body.admin-page #productsTab>.section-title>.row{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
body.admin-page #productsTab>.section-title .btn{min-height:42px;margin:0;padding:8px!important;font-size:15px!important}
body.admin-page #productsTab>.section-title .btn-gold{background:#174b34;color:white;border-color:#174b34}
body.admin-page #productsTab #quantityDiscountSettings{margin:0 0 8px!important;border:1px solid #cdddcf;border-radius:9px;background:#edf5e9}
body.admin-page #productsTab #quantityDiscountSettings>summary{padding:10px 12px!important;font-size:15px;min-height:42px;box-sizing:border-box}
body.admin-page #productsTab .product-tools{display:flex;flex-direction:column;gap:8px;margin:0 0 8px!important}
body.admin-page #productsTab .admin-search-row{display:flex;gap:8px;margin:0!important}
body.admin-page #productsTab .admin-search-row input{flex:1;min-width:0;margin:0!important;height:42px;padding:8px 10px!important;font-size:16px!important}
body.admin-page #productsTab .admin-search-row button{margin:0;min-height:42px;padding:8px!important;white-space:nowrap}
body.admin-page #productsTab .admin-products-table{display:none!important}
body.admin-page #productsTab>#adminProductsMobile{display:grid!important;grid-template-columns:1fr;gap:8px!important}
body.admin-page #productsTab .compact-product{display:grid;grid-template-columns:66px minmax(0,1fr) auto;gap:4px 7px;padding:10px;border:1px solid #cfded5;border-radius:11px;background:white;min-width:0}
.compact-product-image{grid-column:1;grid-row:1/5;width:66px;height:80px;object-fit:cover;border-radius:7px}
.compact-product-title{grid-column:2;display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-width:0;font-size:16px;line-height:1.3;color:#173e2b;overflow-wrap:anywhere}
.compact-category{font-size:10px;padding:2px 5px;background:#2e7048;color:white;border-radius:5px}
.compact-price{grid-column:3;grid-row:1;font-size:17px;color:#234f9b;white-space:nowrap}
.compact-unit{grid-column:2/4;font-size:12px;color:#5e6f64;line-height:1.4}
.compact-options{grid-column:2/4;background:#edf1e9;border-radius:5px;padding:3px 5px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.compact-options>span{font-weight:700;margin-right:5px}
.compact-stock{grid-column:2/4;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px;font-size:13px}
.compact-stock>div{display:flex;gap:4px}
body.admin-page #productsTab .compact-product button{box-sizing:border-box;min-height:36px;min-width:32px;padding:4px 7px;margin:0;border:1px solid #98b49e;border-radius:6px;background:white;color:#214c33;font-size:13px;font-weight:700;line-height:1.3;cursor:pointer;white-space:nowrap}
body.admin-page #productsTab .compact-product-actions{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:5px;margin-top:4px}
body.admin-page #productsTab .compact-product-actions .compact-delete{color:#b52c2c;border-color:#d6a5a5}
body.admin-page #productsTab .compact-product-actions .compact-sale{display:flex;align-items:center;gap:4px;border:0;padding:0;background:transparent}
.compact-sale>span{display:inline-block;width:28px;height:17px;border-radius:12px;background:#247044;position:relative}
.compact-sale>span:after{content:'';position:absolute;right:2px;top:2px;width:13px;height:13px;border-radius:50%;background:white}
.compact-sale.is-soldout>span{background:#a9afb1}.compact-sale.is-soldout>span:after{left:2px;right:auto}
@media(min-width:850px){body.admin-page #productsTab>#adminProductsMobile{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:370px){body.admin-page #productsTab .compact-product{grid-template-columns:50px minmax(0,1fr) auto;padding:8px;gap:4px}.compact-product-image{width:50px;height:66px}.compact-product-title{font-size:14px}.compact-price{font-size:15px}body.admin-page #productsTab .compact-product-actions{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:3px}body.admin-page #productsTab .compact-product button{font-size:12px;padding:4px;min-width:28px}.compact-sale>span{width:23px}}

/* Product toolbar: compact single-row categories, shared on phone and desktop. */
body.admin-page #productsTab>.section-title{gap:6px!important;padding:0!important}
body.admin-page #productsTab>.section-title>span{font-size:13px!important;line-height:1.4!important;margin:0!important}
body.admin-page #productsTab #productCountLabel{font-size:13px!important;color:#62756a;font-weight:600}
body.admin-page #productsTab>.section-title>.row{width:100%!important;gap:8px!important;margin:0!important}
body.admin-page #productsTab>.section-title .btn{height:44px!important;min-height:44px!important;border-radius:9px!important;line-height:1.2!important}
body.admin-page #productsTab .category-order-open-btn{background:#fff!important;border:1px solid #a6bcae!important;color:#234b36!important}
body.admin-page #productsTab>.section-title .btn-gold{background:#174b34!important;color:#fff!important;border:1px solid #174b34!important}
body.admin-page #productsTab #quantityDiscountSettings{padding:0!important}
body.admin-page #productsTab #quantityDiscountSettings>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;height:44px!important;min-height:44px!important;padding:0 12px!important;font-size:14px!important;line-height:1.3!important;list-style:none!important}
body.admin-page #productsTab #quantityDiscountSettings>summary::-webkit-details-marker{display:none}
body.admin-page #productsTab #quantityDiscountSettings>summary::after{content:'›';font-size:22px;transform:rotate(0deg)}
body.admin-page #productsTab #quantityDiscountSettings[open]>summary::after{transform:rotate(90deg)}
body.admin-page #productsTab .product-tools{display:flex!important;gap:8px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;margin:0 0 12px!important}
body.admin-page #productsTab #adminProductCats{display:flex!important;flex-flow:row nowrap!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:0!important;margin:0!important;width:100%!important;min-width:0!important;scrollbar-width:thin}
body.admin-page #productsTab #adminProductCats .chip{flex:1 0 auto!important;width:auto!important;min-width:52px!important;height:38px!important;min-height:38px!important;padding:7px 12px!important;margin:0!important;border:1px solid #cedbd3!important;border-radius:20px!important;background:#fff!important;color:#365843!important;font-size:14px!important;line-height:1.2!important;white-space:nowrap!important}
body.admin-page #productsTab #adminProductCats .chip.on{background:#214f38!important;color:#fff!important;border-color:#214f38!important}
body.admin-page #productsTab .admin-search-row{display:grid!important;grid-template-columns:76px minmax(0,1fr) 60px!important;gap:6px!important;width:100%!important;padding:0!important}
body.admin-page #productsTab .admin-search-row input{grid-column:auto!important;width:100%!important;box-sizing:border-box!important;height:44px!important;min-height:44px!important;border:1px solid #cdd9d1!important;border-radius:9px!important;background:#fff!important;font-size:16px!important}
body.admin-page #productsTab .admin-search-row button{width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:6px!important;border:1px solid #cdd9d1!important;border-radius:9px!important;background:#fff!important;color:#365843!important;font-size:14px!important}

/* Category manager: single-line actions and readable category counts. */
body.admin-page #categoryOrderModal .category-order-sheet{padding:0!important;background:#f7f9f6!important}
body.admin-page #categoryOrderModal .category-manager-header{padding:12px 14px!important;margin:0!important;background:#174b34!important;color:white!important;gap:10px!important}
body.admin-page #categoryOrderModal .category-manager-header h2{margin:0!important;color:white!important;font-size:20px!important}
body.admin-page #categoryOrderModal .category-manager-header button{min-height:44px!important;padding:6px 12px!important;border:1px solid #91b09d!important;border-radius:9px!important;background:transparent!important;color:white!important;font-size:15px!important}
body.admin-page #categoryOrderModal .category-manager-content{max-width:720px;margin:0 auto;padding:12px!important}
body.admin-page #categoryOrderModal #categoryManagerCount{font-size:14px;font-weight:700;color:#33533d;margin:0 0 10px!important}
body.admin-page #categoryOrderModal .category-add-row{display:grid!important;grid-template-columns:minmax(0,1fr) 64px!important;gap:8px!important;margin:0 0 12px!important}
body.admin-page #categoryOrderModal .category-add-row input{min-width:0!important;width:100%!important;box-sizing:border-box!important;height:44px!important;min-height:44px!important;font-size:16px!important;padding:8px 10px!important;margin:0!important;border-radius:9px!important}
body.admin-page #categoryOrderModal .category-add-row button{width:100%!important;height:44px!important;min-height:44px!important;padding:6px!important;margin:0!important;background:#174b34!important;color:#fff!important;border-radius:9px!important;font-size:15px!important}
body.admin-page #categoryOrderModal .category-order-manager{gap:8px!important;margin:0!important}
body.admin-page #categoryOrderModal .category-order-item{display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;padding:8px!important;border:1px solid #d4ded6!important;border-radius:10px!important;background:#fff!important}
body.admin-page #categoryOrderModal .category-list-label{display:flex;align-items:center;gap:5px;flex:1;min-width:0;color:#193c2a}
body.admin-page #categoryOrderModal .category-list-position{font-size:11px;color:#718679;flex-shrink:0}
body.admin-page #categoryOrderModal .category-list-label b{font-size:16px;line-height:1.35;overflow-wrap:anywhere}
body.admin-page #categoryOrderModal .category-list-label small{font-size:11px;white-space:nowrap;background:#edf3e9;border-radius:12px;padding:3px 5px}
body.admin-page #categoryOrderModal .category-order-actions{display:flex!important;width:auto!important;flex:0 0 auto!important;flex-wrap:nowrap!important;gap:4px!important}
body.admin-page #categoryOrderModal .category-order-actions button{display:grid!important;place-items:center!important;width:36px!important;min-width:36px!important;height:42px!important;min-height:42px!important;padding:6px!important;margin:0!important;border-radius:7px!important;border:1px solid #b6cbb9!important;background:#fff!important;color:#235339!important;font-size:22px!important;line-height:1!important}
body.admin-page #categoryOrderModal .category-order-actions button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.admin-page #categoryOrderModal .category-order-actions .category-delete-btn{color:#b52c2c!important;border-color:#ddb2b2!important}
body.admin-page #categoryOrderModal .category-order-actions button:disabled{opacity:.3!important;background:#f0f1f0!important}
body.admin-page #categoryOrderModal .category-manager-help{padding:12px;margin:12px 0 0!important;border-radius:10px;background:#eaf1e4;text-align:center;color:#3c5844;font-size:13px;line-height:1.6}
body.admin-page #categoryOrderModal .category-manager-help small{font-size:11px}

/* Keep category names left aligned; legacy mobile action alignment must not affect labels. */
body.admin-page #categoryOrderModal .category-order-item{padding:5px 8px!important;gap:8px!important}
body.admin-page #categoryOrderModal .category-list-label{justify-content:flex-start!important;width:auto!important;text-align:left!important;margin:0!important;flex:1 1 0!important;gap:5px!important}
body.admin-page #categoryOrderModal .category-list-label b{margin:0!important}
body.admin-page #categoryOrderModal .category-order-manager{gap:6px!important}
body.admin-page #categoryOrderModal .category-manager-content{padding:10px 12px!important}
body.admin-page #categoryOrderModal #categoryManagerCount{margin-bottom:8px!important}
body.admin-page #categoryOrderModal .category-add-row{margin-bottom:8px!important}
body.admin-page #categoryOrderModal .category-manager-help{padding:7px 8px!important;margin-top:8px!important;font-size:12px!important;line-height:1.5!important}

/* Three preparation stages, separate future reservations, no date search. */
body.admin-page #opsDashboard.preparation-hub .ops-date{display:none!important}
body.admin-page #opsDashboard.preparation-hub{padding:8px 0!important;gap:8px!important}
body.admin-page #opsDashboard.preparation-hub #opsCounts{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
body.admin-page #opsDashboard.preparation-hub .ops-state{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;min-height:62px!important;padding:10px 14px!important;gap:12px!important;border-radius:10px!important}
body.admin-page #opsDashboard.preparation-hub .ops-state>span{flex:1;text-align:left;font-size:17px!important}
body.admin-page #opsDashboard.preparation-hub .ops-state>b{font-size:22px!important;margin:0!important}
body.admin-page #opsDashboard.preparation-hub .ops-state::after{content:'›';font-size:24px}
body.admin-page #opsDashboard.preparation-hub .ops-state[data-bucket=prepared]{background:#fff2d8!important;color:#88601f!important}
body.admin-page #opsDashboard.preparation-hub #opsReserved{display:block;width:100%;min-height:46px;padding:10px 12px!important;margin:0!important;background:#eeebf7;color:#594a78;border:1px solid #d9d1e9;border-radius:10px;font-size:15px!important;font-weight:700;text-align:left}
body.admin-page #opsDashboard.preparation-hub .ops-tools{margin:0!important}
/* Ledger lookup errors can have longer labels than the normal link action. */
body.admin-page #productsTab .compact-product-actions [data-product-ledger]{white-space:nowrap;min-width:0;font-size:12px;padding:4px;}

/* Secondary product actions expand beneath the existing compact action row. */
body.admin-page #productsTab .compact-more-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding-top:5px}
body.admin-page #productsTab .compact-more-actions[hidden]{display:none!important}
body.admin-page #productsTab .compact-more-toggle[aria-expanded="true"]{background:#edf1e9}
body.admin-page #productsTab .compact-more-toggle span{display:inline-block;margin-left:2px}
body.admin-page #productsTab .compact-more-toggle:focus-visible{outline:2px solid #234f9b;outline-offset:2px}

/* Hidden products filter stays immediately before the product search field. */
body.admin-page #productsTab .admin-search-row #adminHiddenProductsFilter[aria-pressed="true"]{background:#214f38!important;color:#fff!important;border-color:#214f38!important}
