/* Mobilanpassning av alla sidor. Loggans placering i Mer info behålls. */
@media(max-width:800px){
 html{scroll-padding-top:20px}
 body{overflow-wrap:anywhere}
 main,section,fieldset,.card,.product,.panel,.modal,.productInfoCard,.startMain,.staffBar,.topin,.brand,.body,.item .name,.saleCopy{min-width:0;max-width:100%}
 button,input,select,textarea{font-size:16px}
 button,.cartBtn,.primary,.save,.close,.productInfoClose{min-height:44px;touch-action:manipulation}
 input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%;min-width:0;min-height:44px;font-size:16px!important;box-sizing:border-box}
 button{white-space:normal;overflow-wrap:anywhere}
 .staffBar{gap:10px;padding:10px 12px}
 .staffBar label{display:block;width:100%;min-width:0}
 .staffBar select{display:block;width:100%;margin-top:6px}
 .staffBar>span{flex:1;min-width:0;overflow-wrap:anywhere}
 .staffBar>button{flex:none;min-height:44px}
 .periodPanel{padding:12px;gap:10px;max-width:100%}
 .periodPanel>label{width:100%;min-width:0}
 .periodPanel>label select{display:block;width:100%;margin-top:6px}
 .periodPanel>span{width:100%;line-height:1.5}
 .periodPanel>button{flex:1 1 145px;padding:10px;min-width:0}
 #activeKindsFieldset{min-width:0;width:100%;gap:8px 16px}
 #activeKindsFieldset legend{white-space:normal;max-width:100%;font-size:14px}
 #activeKindsFieldset label{min-height:44px;flex:1 1 105px}
 #activeKindsFieldset input[type=checkbox]{width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;flex:none}
 .authGate{min-height:100dvh;padding:14px}
 .authCard{width:100%;max-width:440px;padding:22px 18px}
 .authCard button{min-height:44px}
 .topin{flex-wrap:wrap;align-items:center!important}
 .topin .brand{flex:1 1 170px;gap:8px}
 .brand span{min-width:0;line-height:1.3}
 .topin>h1,.topin>#summary{max-width:100%;min-width:0}
 .topin>#summary{width:100%}
 .tabs{max-width:100%;flex-wrap:wrap;overflow:visible!important}
 .tabs>a,.tabs>button{min-height:44px;display:flex;align-items:center;justify-content:center;flex:1 1 135px;min-width:0;text-align:center}
 .toolbar{gap:10px}
 .toolbar>button,.toolbar>select{max-width:100%}
 .orderHead,.head,.footer,.summaryPdfHead{min-width:0;flex-wrap:wrap}
 .orderHead>div,.head>div{min-width:0;max-width:100%}
 .summaryPdfHead h4{min-width:0;flex:1 1 160px}
 .summaryPdfHead button{max-width:100%}
 .summaryArticleRow{gap:10px}
 .summaryArticleRow>span:first-child{min-width:0}
 .productGrid{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr))}
 .item{min-width:0}
 .editrow{grid-template-columns:minmax(0,1fr) 68px 44px!important;gap:7px}
 .editrow .price{display:none}
 .editrow>span:first-child{min-width:0}
 .editrow input{width:100%!important;min-width:0}
 .editrow button{width:44px;height:44px}
 .overlay{padding:8px;overscroll-behavior:contain}
 .overlay .modal{width:100%;max-width:760px;max-height:calc(100dvh - 16px);overflow:auto;padding:16px 12px;overscroll-behavior:contain}
 .modalHead{gap:10px;align-items:flex-start}
 .modalHead h2{min-width:0;flex:1}
 .close{width:44px;height:44px;flex:none}
 .modal .form{grid-template-columns:1fr}
 .allergenAdminGrid,.allergenAdminRow{grid-template-columns:1fr!important}
 .tools input,.tools select{width:100%;flex:1 1 180px;min-width:0!important}
 .item .quantity{flex:none;font-size:18px}
 .item .name{overflow-wrap:anywhere}
 .footer .next{width:100%}
 .product .qty button,.cartrow .qty button{width:44px!important;height:44px!important;min-height:44px!important}
 .product .moreInfo,.product .add{min-height:44px!important}
 .product .actions{gap:8px!important}
 #popupMinus,#popupPlus{width:44px;height:44px}
 #popupAdd{min-height:44px;max-width:100%;white-space:normal}
 .productInfoClose{width:44px;height:44px;right:8px!important;top:8px!important;z-index:10}
 .productInfoCard{max-height:94dvh!important;overflow:auto;overscroll-behavior:contain}
 .productInfoTop>div{min-width:0}
 .productInfoMetaRow,.badgeMetaRow{flex-wrap:wrap}
 .handwrittenBadge{white-space:normal!important}
 .imagePanel{max-width:100%;width:100%;height:82dvh}
 .imageClose{width:44px;height:44px}
 .zoomControls button{min-width:44px;min-height:44px}
 .tableScroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .tableScroll table{min-width:560px}
 .overviewHead{min-width:0}
 .overviewHead>div{min-width:0}
 .overviewHead img{flex:none}
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .metric{min-width:0;padding:14px 12px}
 .metric strong{font-size:22px;overflow-wrap:anywhere}
 .cartrow{min-width:0}
 .cartrow>div{min-width:0}
 .cartrow .qty{flex-wrap:wrap}
 .cartrow .remove{min-height:44px}
 .startButton,.staffLinks a{min-height:44px}
}
@media(max-width:380px){.topin .cartBtn{width:100%}.product .actions{grid-template-columns:1fr!important}.product .qty{justify-self:start!important}.popupBuy{grid-template-columns:1fr!important}.popupBuy .qty{justify-self:start}.popupBuy .add{width:100%!important}.metric strong{font-size:20px}.overviewHead img{width:58px;height:58px}}
/* Mer info centreras även på mobil; långa kort scrollar inuti dialogen. */
.productInfoModal{align-items:center!important;justify-content:center!important;padding:12px!important;box-sizing:border-box}.productInfoModal .productInfoCard{margin:0!important;max-height:calc(100dvh - 24px)!important;border-radius:18px!important;box-sizing:border-box}
