/* Responsive layer for seluruh modul Info Guru */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,canvas{max-width:100%;height:auto}
input,select,textarea,button{max-width:100%}
.tablewrap,.table-responsive,[class*="table-wrap"]{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
table{max-width:100%}

/* Desktop: gunakan ruang layar yang tersedia, bukan ukuran ponsel yang diperbesar */
@media (min-width: 900px){
  .wrap,.mobile-shell,.bottomin{max-width:1180px!important}
  .top>*,.topbar,.bar{max-width:1180px;margin-left:auto;margin-right:auto}
  .card{padding:18px!important}
  .menu{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .structure{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .summary{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .services{grid-template-columns:repeat(7,minmax(0,1fr))!important}
}

/* Tablet */
@media (min-width: 601px) and (max-width: 899px){
  .wrap,.mobile-shell{max-width:860px!important}
}

/* HP: semua komponen mengikuti lebar layar */
@media (max-width:600px){
  body{width:100%;min-width:0!important}
  .wrap,.mobile-shell{width:100%!important;max-width:none!important;padding-left:10px!important;padding-right:10px!important}
  .card{width:100%;min-width:0!important}
  .menu,.structure,.summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .services{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .topbar,.bar,.history-title{flex-wrap:wrap}
  .tabs{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .student,.lesson,.exam,.result{min-width:0!important}
  .student b,.lesson b,.name b{overflow-wrap:anywhere}
  .row{min-width:0!important;width:100%!important}
}

@media (max-width:420px){
  .menu,.structure,.summary{grid-template-columns:1fr 1fr!important}
  .services{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .history-times{grid-template-columns:1fr 1fr!important}
  .counts{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

@media (max-width:340px){
  .services{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .stats{grid-template-columns:1fr!important}
}
