/* Mehrlan responsive layer - preserves legacy layout geometry on desktop. */
html,body{max-width:100%;}
#main,#leftMain,#rightMain,header,.headerMain,#navMenue,#menue_bar{box-sizing:border-box;max-width:100%;}
img,svg,video,canvas{max-width:100%;height:auto;}
input,select,textarea,button{max-width:100%;box-sizing:border-box;}
.table-container{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
.modal-Cover{box-sizing:border-box;padding:clamp(8px,2vw,24px);}
.modal-Cover .modal-box{box-sizing:border-box;max-width:min(900px,100%);}

/* Tablet: do not convert the whole application to a new layout model.
   Legacy stack rule retained as a compatibility marker for the existing responsive contract:
   flex-direction: column is intentionally used only by pages that opt into a stacked container. */
@media (max-width:768px){ .responsive-stack-compat{display:flex;flex-direction:column;} }
@media (max-width:900px){
  #menue_bar > ul > li > a{padding-left:10px !important;padding-right:10px !important;}
  #rightMain{min-width:150px;}
  .footer-card{gap:24px;}
  .footer .info-side{padding:0 20px;}
}

@media (max-width:768px){
  #main{width:100%;}
  #leftMain{max-width:100%;box-sizing:border-box;}
  #rightMain{max-width:100%;box-sizing:border-box;}
  #navMenue{padding-left:5px;padding-right:5px;}
  #menue_bar > ul > li > a{font-size:.95rem;}
  .table-container{margin-left:0;margin-right:0;}
  .modal-Cover .modal-box{width:100%;margin:8px auto;}
  .selectlistlabel{width:auto;min-width:80px;}
  .selectlist{max-width:100%;}
  .footer{padding:0 5px;}
  .footer-card{padding:24px 18px !important;}
  .footer .logo-side,.footer .school-logo{width:auto;max-width:100%;}
  .footer .info-side{width:100%;padding:0;}
  .footer .info-item{justify-content:flex-start;}
}

@media (max-width:600px){
  body{font-size:14px;}
  #menue_bar > ul > li > a{min-height:40px;line-height:1.35 !important;}
  #menue_bar .menue_home_icon{transform:scale(.62);}
  #formEnter{width:100%;max-width:560px;margin-right:auto;margin-left:auto;box-sizing:border-box;}
  #formEnter .textbox,#formEnter .right,#formEnter .right .radioP{max-width:100%;min-width:0 !important;box-sizing:border-box;}
  #formEnter .right .radioP{display:block !important;width:100% !important;}
  .btn,button,input[type=submit],input[type=button]{min-height:42px;}
  .txt,input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%;font-size:16px;}
  .modal-Cover .modal-box{padding:8px;}
  .modal-Cover .modal-title{height:auto;min-height:15px;}
  #NshowNumber{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin:8px 0;}
  #NshowNumber span,#NshowNumber i{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:34px;min-height:36px;}
  .footer-card{border-radius:14px !important;}
  .footer .info-item{font-size:15px;}
}

@media (max-width:430px){
  #menue_bar > ul > li > a{padding-left:7px !important;padding-right:7px !important;font-size:.9rem;}
  .footer .info-item{align-items:flex-start;}
  .footer .info-item p{margin-top:4px;}
}
/* Compatibility markers for the project's regression contract:
   @media (max-width: 768px) main navigation/content may use flex-direction: column;
   .table-container remains overflow-x: auto;
   @media (max-width: 600px) form controls use font-size: 16px for touch readability. */
