/* Phone layout, see scripts/mobile.js. body.x-mobile-view is set while the window is <= 767px wide. */

html, body {
	-webkit-text-size-adjust: 100%;
}

/* iOS zooms into inputs with a font smaller than 16px */
.x-mobile-view input.x-form-field,
.x-mobile-view textarea.x-form-field,
.x-mobile-view select {
	font-size: 16px !important;
}
/* 24px: the height of the trigger button sprites */
.x-mobile-view .x-form-text,
.x-mobile-view .x-form-field-wrap .x-form-text {
	height: 24px !important;
	line-height: 20px;
}
.x-mobile-view .x-form-field-wrap .x-form-trigger {
	height: 24px;
}

/* bigger tap targets */
.x-mobile-view .x-grid3-row td,
.x-mobile-view .x-grid3-summary-row td {
	padding-top: 6px;
	padding-bottom: 6px;
}
.x-mobile-view .x-menu-item {
	padding-top: 8px;
	padding-bottom: 8px;
}
.x-mobile-view .x-toolbar .x-btn-small .x-btn-mc em button,
.x-mobile-view .x-toolbar .x-btn-small .x-btn-mc em a {
	min-height: 24px;
}

/* native momentum scrolling inside grids, trees and panels */
.x-mobile-view .x-grid3-scroller,
.x-mobile-view .x-panel-body,
.x-mobile-view .x-window-body {
	-webkit-overflow-scrolling: touch;
}

/* toolbars too wide for the screen scroll sideways instead of being cut off */
.x-mobile-view .x-toolbar {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.x-mobile-view .x-mobile-hide {
	display: none !important;
}

/* toast messages (Ext.example.msg / msgShow) */
.x-mobile-view #msg-div,
.x-mobile-view #alert-message {
	width: calc(100% - 20px);
}

/* content wider than the screen must not zoom the page out */
html.x-mobile-view-ct,
.x-mobile-view {
	overflow: hidden;
}

/* videos and images in news fit the screen */
.x-mobile-view .x-panel-body iframe,
.x-mobile-view .x-panel-body img {
	max-width: 100%;
}

/* 2FA tab: the message uses the whole screen width */
.x-mobile-view .tfaMessage {
	width: auto;
	margin: 0 10px;
}
