/* Opt-in only on iPhone: no tablet, desktop or Android bridge styles. */
.ops-iphone body{font-size:16px;overflow-x:hidden;background:#f7f8f4}
.ops-iphone .app-shell{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
.ops-iphone .main{width:100%;padding:10px;min-width:0}
.ops-iphone .topbar{height:auto;min-height:56px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));flex-wrap:wrap;gap:8px}
.ops-iphone .topbar .brand-compact{flex-shrink:0}
.ops-iphone .service-topbar .service-nav{order:3;width:100%}
.ops-iphone .topbar-actions{gap:6px}.ops-iphone .topbar-actions>[data-native-printer-status]{display:none}
.ops-iphone .bottom-nav{display:none}
.ops-iphone .iphone-nav{position:fixed;z-index:26;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dce3d8}
.ops-iphone .iphone-nav button{min-height:48px;border:0;border-radius:12px;background:transparent;color:#56654f;font-size:12px;font-weight:800;padding:8px 2px}
.ops-iphone .iphone-nav button.active{background:#48673d;color:#fff}
.ops-iphone input,.ops-iphone select,.ops-iphone textarea{font-size:16px!important;max-width:100%;min-width:0}
.ops-iphone button{touch-action:manipulation;min-height:44px}
.ops-iphone .subnav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;max-width:100%;padding:4px 0 10px}
.ops-iphone .subnav button{flex-shrink:0;font-size:13px;padding:10px}
.ops-iphone .pos-layout{display:flex;flex-direction:column;min-height:0;gap:10px}
.ops-iphone .category-list{flex-direction:row;overflow-x:auto;white-space:nowrap;padding:8px}
.ops-iphone .category-list button{flex-shrink:0}
.ops-iphone .product-head{flex-wrap:wrap}.ops-iphone .product-head input{flex:1 1 100%;width:100%}
.ops-iphone .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;gap:8px;padding:8px}
.ops-iphone .product-card{min-width:0;min-height:150px;padding:10px;font-size:14px}
.ops-iphone .product-name{font-size:14px;line-height:1.35}.ops-iphone .product-price{font-size:16px}
.ops-iphone .pos-view-sale .cart{position:static;width:100%;max-height:none;display:none}
.ops-iphone .pos-view-sale .cart-lines{max-height:none;min-height:0}
.ops-iphone.phone-cart .pos-view-sale .category-rail,.ops-iphone.phone-cart .pos-view-sale .product-area{display:none}
.ops-iphone.phone-cart .pos-view-sale .cart{display:flex}
.ops-iphone .cart-line{grid-template-columns:44px minmax(0,1fr) 44px}.ops-iphone .qty-button{width:44px;height:44px}.ops-iphone .cart-line strong{font-size:15px}
.ops-iphone .cart-actions button{font-size:14px}.ops-iphone .checkout-button{min-height:52px;font-size:17px}
.ops-iphone .iphone-sale-tools{display:flex;gap:8px;margin-bottom:10px;position:sticky;top:0;z-index:10;background:#f7f8f4;padding:6px 0}
.ops-iphone .iphone-sale-tools button{flex:1;border:1px solid #dce3d8;border-radius:10px;background:white;color:#48673d;font-weight:800}
.ops-iphone.phone-cart [data-phone-cart],.ops-iphone:not(.phone-cart) [data-phone-catalog]{background:#48673d;color:#fff}
.ops-iphone .service-grid{display:flex;flex-direction:column;min-height:0;gap:10px}
.ops-iphone .service-grid .order-list{max-height:none;overflow:visible}
.ops-iphone .service-grid>.panel>.detail>.detail-scroll{max-height:none;height:auto;overflow:visible}
.ops-iphone .detail{padding:12px}.ops-iphone .detail-header{flex-wrap:wrap}.ops-iphone .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ops-iphone .service-view .detail-footer-compact{position:static}
.ops-iphone .page-title-row,.ops-iphone .service-toolbar{flex-wrap:wrap;gap:8px}
.ops-iphone .page-title-row h1{font-size:23px}
.ops-iphone .modal-backdrop{padding:8px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom));align-items:start;overflow-y:auto}
.ops-iphone .modal,.ops-iphone .modal.wide,.ops-iphone .product-config-modal{width:100%;max-width:100%;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:16px;border-radius:16px;overflow:auto}
.ops-iphone .modifier-options,.ops-iphone .product-config-modal .modifier-options{grid-template-columns:1fr}
.ops-iphone .option-qty button{width:44px;min-width:44px;height:44px}
.ops-iphone .modal-actions{position:static}.ops-iphone .modal-actions button{flex:1}
.ops-iphone .login-card{width:min(100%,360px);padding:20px}.ops-iphone .login-page{padding:16px}
.ops-iphone .report-grid,.ops-iphone .stats-grid,.ops-iphone .kpi-grid,.ops-iphone .cash-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ops-iphone table{font-size:12px}.ops-iphone td,.ops-iphone th{overflow-wrap:anywhere}
.ops-iphone .iphone-settings p{line-height:1.5;font-size:14px}
.ops-iphone .toast{top:max(12px,env(safe-area-inset-top));left:12px;right:12px}
@media (min-width:700px){.ops-iphone .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ops-iphone .product-config-modal .option-choice{height:auto;min-height:70px}
.ops-iphone .product-config-modal .option-main{min-height:66px}
.ops-iphone .product-config-modal .modal-actions{position:sticky;bottom:-16px;margin:0 -16px -16px;padding:12px 16px;background:white;z-index:5}

/* One page at a time. Document scrolling avoids nested, fixed-height iOS panels. */
html.ops-iphone{height:auto;min-height:100%;overflow-y:auto;overflow-x:hidden}
.ops-iphone body,.ops-iphone #app,.ops-iphone .app-shell{height:auto;min-width:0;max-width:100%;overflow:visible}
.ops-iphone .service-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;position:relative;z-index:20;width:100%;box-sizing:border-box}
.ops-iphone .service-topbar .brand-compact{grid-column:1;grid-row:1}
.ops-iphone .service-topbar .service-shortcuts{grid-column:2;grid-row:1;min-width:0}
.ops-iphone .service-topbar .service-topnav{grid-column:1/-1;grid-row:2;justify-self:stretch;min-width:0;width:100%}
.ops-iphone .service-topbar .service-topnav .subnav{justify-content:space-between;max-width:100%;padding-bottom:0}
.ops-iphone .service-topbar .service-topnav .subnav button{padding:10px 6px!important;font-size:12px}
.ops-iphone .main,.ops-iphone .service-view{height:auto;max-height:none;min-height:0;overflow:visible;min-width:0}
.ops-iphone .service-grid,.ops-iphone .service-grid>.panel,.ops-iphone .service-grid>.panel>.detail,.ops-iphone .service-grid>.panel>.detail>.detail-scroll{height:auto;max-height:none;min-height:0;overflow:visible;display:block}
.ops-iphone .service-grid{width:100%;min-width:0}
.ops-iphone .service-grid .order-list{height:auto;max-height:none;overflow:visible;padding:10px}
.ops-iphone .service-grid .service-action-slot{position:static;padding:12px}
.ops-iphone .phone-orders-back{width:100%;text-align:left;margin:0 0 10px;min-height:48px}
.ops-iphone .phone-order-detail .detail{padding:0}
.ops-iphone .phone-order-detail .detail-header{display:flex;flex-wrap:wrap;min-width:0}
.ops-iphone .phone-order-detail .detail-header>div:first-child{min-width:0;flex:1 1 220px}
.ops-iphone .phone-order-detail .info-grid{grid-template-columns:1fr}
.ops-iphone .phone-order-detail .info-value{overflow-wrap:anywhere}
.ops-iphone .phone-order-list .active-orders-heading{flex-wrap:wrap;gap:8px;padding:12px}
.ops-iphone .phone-order-list .active-orders-label{font-size:19px;flex:1 1 100%}
.ops-iphone .phone-order-list .order-card{height:auto;min-height:148px;display:flex;flex-direction:column;gap:7px;align-items:stretch}
.ops-iphone .phone-order-list .order-card .order-badges{flex-wrap:wrap}
.ops-iphone .phone-order-list .order-meta{white-space:normal;line-height:1.4}
.ops-iphone .phone-order-list .order-card-summary{flex-wrap:wrap}
.ops-iphone .phone-order-list .order-customer-name{white-space:normal;overflow-wrap:anywhere}

.ops-iphone .service-grid>.panel>.detail>.detail-scroll{overscroll-behavior:auto;scrollbar-gutter:auto}
.ops-iphone .phone-order-list .active-orders-label{max-width:none;white-space:normal}
.ops-iphone .phone-order-list .order-channel-filters{position:static;transform:none;gap:6px}
.ops-iphone .phone-order-list .order-channel{width:44px;min-width:44px;height:44px}
.ops-iphone .phone-order-list .active-orders-count{margin-left:auto}
.ops-iphone .phone-order-list .order-cash-marker{display:none}

/* Single navigation on iPhone; service shortcuts remain in the header. */
.ops-iphone .service-topbar .service-nav,.ops-iphone .topbar .subnav{display:none}
.ops-iphone .iphone-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:54px;font-size:11px;line-height:1.2;padding:6px 1px}
.ops-iphone .iphone-nav button svg{flex-shrink:0}
.ops-iphone .subnav [data-pos-sub="sale"],.ops-iphone .subnav [data-pos-sub="reports"]{display:none}

/* Balanced five-tab layout. Existing BOWL colors are inherited unchanged. */
.ops-iphone .iphone-nav{gap:2px;padding:6px 4px calc(6px + env(safe-area-inset-bottom));align-items:stretch}
.ops-iphone .iphone-nav button{box-sizing:border-box;height:70px;min-height:70px;border-radius:14px;gap:7px;padding:8px 4px;font-size:10px;font-weight:600;line-height:14px;letter-spacing:0;white-space:nowrap}
.ops-iphone .iphone-nav button svg{display:block;width:28px;height:28px;flex:0 0 28px}
.ops-iphone .iphone-nav button span{display:block;width:100%;text-align:center;line-height:14px}
.ops-iphone .app-shell{padding-bottom:calc(90px + env(safe-area-inset-bottom))}

/* Explicit OPS text color prevents iOS button-blue product titles. */
.ops-iphone .product-card .product-name{color:var(--ink);-webkit-text-fill-color:var(--ink)}

/* Compact mobile orders heading with on-demand channel choices. */
.ops-iphone .phone-order-list .active-orders-heading{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;padding:0 10px;min-height:44px;box-sizing:border-box;overflow:visible}
.ops-iphone .phone-order-title{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:15px;font-weight:600;line-height:1.2;color:var(--ink)}
.ops-iphone .phone-order-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;box-sizing:border-box;border-radius:7px;background:var(--green-soft);color:var(--green-dark);font-size:13px}
.ops-iphone .phone-order-filter{position:relative;margin-left:auto;flex-shrink:0;font-size:12px;font-weight:700;color:var(--green-dark)}
.ops-iphone .phone-order-filter summary{list-style:none;display:flex;align-items:center;gap:5px;min-height:44px;min-width:44px;justify-content:center;padding:0 6px;box-sizing:border-box;border:0;border-radius:8px;background:transparent;cursor:pointer;white-space:nowrap}
.ops-iphone .phone-order-filter summary::-webkit-details-marker{display:none}
.ops-iphone .phone-order-filter summary svg{width:17px;height:17px;flex-shrink:0}
.ops-iphone .phone-filter-options{position:absolute;right:0;top:calc(100% + 6px);z-index:15;min-width:190px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.ops-iphone .phone-filter-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px;border:0;border-radius:7px;background:#fff;color:var(--ink);font-size:14px;text-align:left}
.ops-iphone .phone-filter-options button[aria-pressed="true"]{background:var(--green-soft);color:var(--green-dark);font-weight:800}

.ops-iphone .phone-filter-label:empty{display:none}

/* Match desktop button labels instead of iOS default blue button text. */
.ops-iphone .category-list button{color:#000;-webkit-text-fill-color:currentColor}
.ops-iphone .category-list button.active{color:var(--green-dark)}
.ops-iphone .brand-switch button{-webkit-text-fill-color:currentColor}
.ops-iphone .brand-switch button:not(.active){color:#000}
