/* Stage 33 (phones only): every menu item stays visible. Before, the main panel menu (about 17 items) and the
   owner/customer portal tabs scrolled sideways (and Settings/Import were wider than the screen) without any hint, so «تطبیق هوشمند», «تنظیمات», «فرصت‌های امروز»,
   «لایسنس / خروج» or the portal «پیام‌ها» were out of view. The panel header scrolls away on phones so the wrapped
   menu does not cover the page. Added by the server; AYANDEGAN_MOBILE_WRAP_MENUS=0 restores the previous layout. */
@media(max-width:720px){
 .site-header{position:relative;top:auto}
 .main-nav{flex-wrap:wrap;overflow:visible;justify-content:flex-start;row-gap:6px}
 .main-nav button,.main-nav a{padding:7px 10px!important;margin:0!important}
 .portal-tabs{flex-wrap:wrap;overflow:visible}
 .portal-tabs button{padding:10px 16px}
 /* long option texts (agency match rules in Settings, import encoding) made the page wider than the phone */
 select{max-width:100%}
 .field,fieldset,label{min-width:0}
 .field:has(> select){grid-template-columns:minmax(0,1fr)}
 .field > select{width:100%}
}
/* Stage 33-D (phones): a long record name in a <select> inside a fieldset label (criteria/records pages) widened the page. */
@media(max-width:720px){fieldset label{min-width:0;max-width:100%}fieldset label>select{width:100%;min-width:0}}
