/* iForest Kedah (permithutan) - phone layout fixes (screens under 768px), 2026-11-19
   Loaded by index.php only when $mobileFixMode allows it (off | preview | on).
   Rollback: /root/loginui/backup/permithutan_20261119_1914_mobile/rollback.sh */
@media (max-width: 767.98px) {
	/* tabular input components marked by js/mobile_fix.js (e.g. the participant list): one block per row, each field labelled */
	table.flcTabular.mt-stack,
	table.flcTabular.mt-stack > thead,
	table.flcTabular.mt-stack > tbody { display: block; width: 100% !important; }
	table.flcTabular.mt-stack tr { display: block; }
	table.flcTabular.mt-stack > thead th { display: block; border: 0; }
	table.flcTabular.mt-stack > thead > tr.mt-colhead { display: none; }
	table.flcTabular.mt-stack > tbody > tr { margin: 10px 0; padding: 10px 12px; border: 1px solid #DEE2E6; border-radius: 8px; background: #FFFFFF; }
	table.flcTabular.mt-stack > tbody > tr:empty { display: none; }
	table.flcTabular.mt-stack > tbody > tr > td { display: block; width: auto !important; padding: 4px 0; border: 0; }
	table.flcTabular.mt-stack > tbody > tr > td:first-child { font-weight: 700; }
	table.flcTabular.mt-stack > tbody > tr > td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font-weight: 600; font-size: 13px; color: #495057; }
	table.flcTabular.mt-stack .form-control { width: 100% !important; }
	/* 16px text in fields: iPhone does not zoom in when a field is tapped */
	input.form-control, select.form-control, textarea.form-control { font-size: 16px; }
}
