/* PTTI mobile layer: bigger, cleaner phone view for the whole site.
   Loaded last on every page; only affects screens up to 720px wide. */
@media (max-width:720px){
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:16px;line-height:1.5}
input,select,textarea{font-size:16px!important;min-height:50px;border-radius:10px!important}
textarea{min-height:110px}
button,.btn,.nav-btn,.doc-button,a.btn{min-height:46px;font-size:16px}

/* ---------- Admin app ---------- */
.appbar{height:64px!important;padding:0 14px!important}
.appbar h2{font-size:19px!important}.appbar small{font-size:12px!important}
.content{padding:14px 12px 90px!important}
.sidebar{width:290px!important}.sidebar:not(.open){left:-330px!important}
.sidebrand{font-size:18px!important}.sidebrand small{font-size:12px!important}
.sidebrand .logo{width:46px!important;height:46px!important}
.snav button,.snav a{font-size:16px!important;min-height:52px!important;padding:14px 14px!important}
.addall-submenu button{font-size:15px!important;min-height:46px!important}
.nav-icon,.addall-icon{width:38px!important;height:38px!important;min-width:38px!important}
.user-chip{min-height:46px}
.welcome{padding:22px!important}.welcome h2{font-size:24px!important}.welcome p{font-size:15px!important}
.stats{grid-template-columns:1fr 1fr!important;gap:12px!important}
.stat{min-height:112px!important;padding:18px!important}.stat small{font-size:14px!important}.stat b{font-size:28px!important}
.panel{border-radius:16px!important}
.panelhead{padding:16px!important}.panelhead h3{font-size:18px!important}
.panelbody{padding:16px!important}
.pagehead h2{font-size:24px!important}.pagehead p{font-size:14px!important}
.grid2{grid-template-columns:1fr!important;gap:0!important}
.field{margin-bottom:14px!important}
.field label{font-size:14px!important;font-weight:700!important}
.field input,.field select,.field textarea{padding:13px 14px!important}
.modalbox,.modal .modalbox{width:100%!important;max-width:100%!important;min-height:100%;max-height:100vh!important;border-radius:0!important;margin:0!important}
.modalhead{padding:16px!important}.modalhead h3{font-size:19px!important}
.toast,#toast{font-size:15px!important}

/* ---------- Tables: keep the normal table (swipe sideways), just smaller text + buttons ---------- */
.tablewrap,.student-list-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
table.table{min-width:720px}
table.table th{font-size:12px!important;padding:9px 8px!important}
table.table td{font-size:12px!important;padding:8px!important}
table.table button,table.table .btn,.tiny{min-height:0!important;font-size:11px!important;padding:5px 9px!important;border-radius:5px!important;line-height:1.2}

/* ---------- Student List (admin) ---------- */
.student-list-toolbar{grid-template-columns:1fr!important;padding:16px!important;gap:12px!important}
.student-list-toolbar label{font-size:14px!important}
.student-list-toolbar input,.student-list-toolbar select{height:50px!important}
.student-total{height:38px!important;justify-self:start;padding:0 16px!important}
.student-list-table{min-width:1450px!important}
.student-list-table th{font-size:12px!important;font-weight:700!important;padding:9px 7px!important;line-height:1.25}
.student-list-table td,.student-list-table tbody tr:nth-child(even) td{font-size:12px!important;font-weight:500!important;padding:8px 7px!important;line-height:1.4}
.student-list-table .sl-pill,.student-list-table .sl-action,.student-list-table .public-doc-permission{font-size:11px!important;font-weight:600!important;min-height:0!important;padding:5px 8px!important;border-radius:5px!important;line-height:1.2;width:auto!important;min-width:0!important;margin:0 0 4px!important}
.student-list-table .sl-action{display:block;min-width:54px!important}
.student-list-table .public-doc-permission{font-size:10px!important;max-width:104px!important}
.student-list-table .sl-photo{width:40px;height:40px}
.student-list-pagination{justify-content:flex-end!important;flex-wrap:wrap;padding:12px 0 20px!important}
.student-list-pagination button{min-width:38px;min-height:38px;font-size:14px!important;border-radius:8px!important}

/* ---------- Public pages (result, student portal, certificates, courses, login) ---------- */
.main-nav a{font-size:13px!important}
.doc-buttons{display:grid!important;grid-template-columns:1fr 1fr;gap:12px}
.doc-button{width:100%;padding:14px 10px;font-size:15px!important}
.student-document-list{gap:16px}
.terms-extra button{min-height:48px;width:100%}
h1{font-size:28px}
}
