/* Responsive staff operations for tablet + mobile: waiter, cashier, kitchen, rider, admin.
   Keeps every action available; no functionality is hidden, only repositioned. */
html.camellia-staff-mode{scroll-padding-top:118px}
.camellia-staff-mode .mobile-order-top{display:none}
@media (max-width:1180px){
 .camellia-staff-mode .app-shell{padding:18px}
 .camellia-staff-mode .staff-page{padding:0}
 .camellia-staff-mode .staff-heading{gap:12px;flex-wrap:wrap}
 .camellia-staff-mode .staff-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
 .camellia-staff-mode .order-board{grid-template-columns:repeat(2,minmax(0,1fr))}
 .camellia-staff-mode .admin-sort-layout{grid-template-columns:1fr}
 .camellia-staff-mode .v9-table-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
 .camellia-staff-mode .menu-layout{grid-template-columns:minmax(0,1fr) 275px;gap:12px}
 .camellia-staff-mode .sidebar{display:none}
 .camellia-staff-mode .mobile-cats{display:flex;gap:8px;overflow:auto;white-space:nowrap;scrollbar-width:none}
 .camellia-staff-mode .product-grid{grid-template-columns:1fr}
 .camellia-staff-mode .admin-v8-toolbar{display:flex;flex-wrap:wrap;gap:9px}
 .camellia-staff-mode .admin-filter-row{display:flex;flex-wrap:wrap}
 .camellia-staff-mode .admin-table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
 .camellia-staff-mode .admin-table th,.camellia-staff-mode .admin-table td{white-space:nowrap}
 .camellia-staff-mode .modal{max-width:96vw}
 .camellia-staff-mode .v8-modal{width:96vw;max-width:96vw}
}
@media(max-width:800px){
 .camellia-staff-mode body{overflow-x:hidden}
 .camellia-staff-mode .site-header{position:sticky;top:0;z-index:60}
 .camellia-staff-mode .header-content{height:65px;padding:0 13px;gap:9px}
 .camellia-staff-mode .brand{min-width:0}
 .camellia-staff-mode .brand-letters{font-size:23px}
 .camellia-staff-mode #auth-button{display:flex;align-items:center;justify-content:center;flex:none}
 .camellia-staff-mode .mode-nav{position:sticky;top:65px;z-index:58;box-shadow:0 3px 9px #52253a10}
 .camellia-staff-mode .role-tabs{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:7px;padding:9px 12px;scrollbar-width:none}
 .camellia-staff-mode .role-tab{min-height:44px;flex:none;padding:10px 14px;scroll-snap-align:start;font-size:12px}
 .camellia-staff-mode .app-shell{padding:13px 11px 100px;max-width:none}
 .camellia-staff-mode .staff-page{padding:0}
 .camellia-staff-mode .staff-heading{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:4px 0 15px}
 .camellia-staff-mode .staff-heading h1{font-size:24px}
 .camellia-staff-mode .staff-heading p{font-size:12px;line-height:1.5}
 .camellia-staff-mode .staff-tools{display:flex;gap:8px;flex-wrap:wrap}
 .camellia-staff-mode .staff-tools button{min-height:46px;flex:1}
 .camellia-staff-mode .info-card{font-size:12px;line-height:1.5}
 .camellia-staff-mode .order-board{display:grid;grid-template-columns:1fr;gap:12px}
 .camellia-staff-mode .ticket{width:100%;padding:0;max-width:none}
 .camellia-staff-mode .ticket-head{display:flex;flex-wrap:wrap;gap:8px;padding:14px}
 .camellia-staff-mode .ticket-body{padding:12px 14px}
 .camellia-staff-mode .ticket-line{line-height:1.6;font-size:13px}
 .camellia-staff-mode .ticket-status{font-size:11px;white-space:normal}
 .camellia-staff-mode .ticket-foot{padding:10px 13px}
 .camellia-staff-mode .ticket-foot button,.camellia-staff-mode .ticket .action-btn{min-height:48px;width:100%;font-size:13px}
 .camellia-staff-mode .v9-table-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
 .camellia-staff-mode .v9-table{min-height:54px;min-width:0;font-size:13px;padding:4px 0}
 .camellia-staff-mode .v9-table small{font-size:9px;line-height:1.15;word-break:break-word}
 .camellia-staff-mode .table-status-panel{padding:13px 10px}
 .camellia-staff-mode .table-status-panel .section-top{display:flex;flex-wrap:wrap;gap:6px}
 .camellia-staff-mode .table-legend{gap:7px;line-height:1.3;font-size:10px}
 .camellia-staff-mode .table-selected-status{display:flex;align-items:flex-start;flex-direction:column;gap:7px;font-size:12px}
 .camellia-staff-mode .v9-table-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .camellia-staff-mode .v9-table-actions button{height:auto;min-height:49px;font-size:11px;white-space:normal;padding:9px 7px}
 .camellia-staff-mode .menu-layout{display:block}
 .camellia-staff-mode .sidebar{display:none}
 .camellia-staff-mode .main-menu{padding:12px;min-height:0}
 .camellia-staff-mode .menu-bar{gap:8px}
 .camellia-staff-mode .search-field{min-width:0;height:47px}
 .camellia-staff-mode .product-grid{display:grid;grid-template-columns:1fr;gap:9px}
 .camellia-staff-mode .product-card{min-height:124px}
 .camellia-staff-mode .product-content{padding:10px 12px}
 .camellia-staff-mode .product-name{font-size:13px}
 .camellia-staff-mode .product-graphic{width:110px}
 .camellia-staff-mode .mobile-cats{display:flex;gap:7px;overflow-x:auto;white-space:nowrap;scrollbar-width:none;padding:5px 0 9px}
 .camellia-staff-mode .mobile-cat{min-height:43px}
 .camellia-staff-mode .cart-panel{display:none}
 .camellia-staff-mode .mobile-cart-bar{display:block;position:fixed;left:0;right:0;bottom:0;z-index:75;padding:9px 12px calc(9px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #ecdbe5}
 .camellia-staff-mode .mobile-cart-bar .primary-btn{min-height:52px}
 .camellia-staff-mode .admin-sort-layout{display:block}
 .camellia-staff-mode .admin-v8-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .camellia-staff-mode .admin-v8-toolbar button{min-height:45px;height:auto;font-size:11px;padding:8px;white-space:normal;max-width:none}
 .camellia-staff-mode .admin-product-row{flex-wrap:wrap;gap:7px}
 .camellia-staff-mode .admin-product-main{min-width:0;width:100%}
 .camellia-staff-mode .admin-table{display:block;overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
 .camellia-staff-mode .admin-table th,.camellia-staff-mode .admin-table td{white-space:nowrap;font-size:11px}
 .camellia-staff-mode .admin-filter-row{display:flex;gap:8px}
 .camellia-staff-mode .admin-filter-row input,.camellia-staff-mode .admin-filter-row select{min-width:0;flex:1}
 .camellia-staff-mode .v8-modal{max-height:96dvh;overflow:hidden;border-radius:18px 18px 0 0}
 .camellia-staff-mode .v8-editor-scroll,.camellia-staff-mode .modal-scroll{overflow:auto;-webkit-overflow-scrolling:touch}
 .camellia-staff-mode .v8-row2,.camellia-staff-mode .admin-option-grid{grid-template-columns:1fr}
 .camellia-staff-mode .v8-group-settings{grid-template-columns:repeat(2,minmax(0,1fr))}
 .camellia-staff-mode .v8-option-row{grid-template-columns:minmax(90px,1fr) 80px 45px 32px;gap:5px}
 .camellia-staff-mode .admin-input{min-width:0;max-width:100%;font-size:16px}
 .camellia-staff-mode .sort-list-row{min-width:0}
 .camellia-staff-mode .sort-control button{min-width:41px;min-height:45px}
 .camellia-staff-mode .footer{padding:20px 12px 90px}
 .camellia-staff-mode .backdrop{align-items:flex-end;padding:0}
 .camellia-staff-mode .modal{max-height:96dvh;max-width:100%;width:100%;border-radius:20px 20px 0 0}
 .camellia-staff-mode .modal-bottom{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
 .camellia-staff-mode input,.camellia-staff-mode select,.camellia-staff-mode textarea{font-size:16px}
 .camellia-staff-mode button{touch-action:manipulation}
 .camellia-staff-mode .staff-card{max-width:100%}
}
@media(max-width:400px){
 .camellia-staff-mode .v9-table-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .camellia-staff-mode .v9-table-actions{grid-template-columns:1fr}
 .camellia-staff-mode .admin-v8-toolbar{grid-template-columns:1fr 1fr}
 .camellia-staff-mode .admin-filter-row{flex-direction:column}
 .camellia-staff-mode .table-status-panel{padding:10px 8px}
}
@media(min-width:801px) and (max-width:1024px) and (orientation:landscape){
 .camellia-staff-mode .v9-table-grid{grid-template-columns:repeat(10,minmax(0,1fr))}
 .camellia-staff-mode .order-board{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V12.1 safe install button, working staff panels and tablet controls. */
@media(max-width:800px){
 html.camellia-staff-mode,html.camellia-staff-mode body{width:100%;max-width:100%;min-width:0;overflow-x:clip}
 .camellia-staff-mode .site-header,.camellia-staff-mode .header-content,
 .camellia-staff-mode .app-shell,.camellia-staff-mode .staff-page,
 .camellia-staff-mode .staff-card,.camellia-staff-mode .menu-layout,
 .camellia-staff-mode .main-menu,.camellia-staff-mode .product-grid{max-width:100%;min-width:0;box-sizing:border-box}
 .camellia-staff-mode .brand{flex:1;min-width:0}
 .camellia-staff-mode .header-actions{gap:5px;flex:none}
 .camellia-staff-mode #install-app-button{height:39px;min-width:39px;width:39px;max-width:39px;padding:0;font-size:0;border-radius:50%;flex:none}
 .camellia-staff-mode #install-app-button::before{content:'↓';font-size:21px;line-height:39px}
 .camellia-staff-mode .header-fulfill{display:none}
 .camellia-staff-mode .admin-editor,.camellia-staff-mode .modal-scroll{min-width:0;max-width:100%;overflow-x:auto}
 .camellia-staff-mode .v9-table-grid{max-width:100%}
 .camellia-staff-mode .v9-table-actions{max-width:100%;min-width:0}
 .camellia-staff-mode .ticket,.camellia-staff-mode .ticket-body{overflow-wrap:anywhere}
 .camellia-staff-mode .admin-product-row{min-width:0}
 .camellia-staff-mode .admin-input{width:100%;max-width:100%;min-width:0}
 .camellia-staff-mode input,.camellia-staff-mode select,.camellia-staff-mode textarea{max-width:100%;min-width:0}
 .camellia-staff-mode .admin-v8-toolbar button{max-width:100%;min-width:0}
 .camellia-staff-mode #menu-section{scroll-margin-top:130px}
}
