/*
 * UGestor CSS Design System v2 — componentes migrados progressivamente.
 *
 * Esta primeira camada reproduz literalmente o contrato existente de campos
 * de Produtos. Ela e carregada apos ugestor.css para coexistir com o legado;
 * White Label continua sendo a ultima camada da cascata.
 */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls input[type="text"],
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls input[type="text"],
body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls input[type="password"],
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls input[type="password"],
body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls select,
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls select,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls textarea,
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls textarea {
	box-sizing: border-box !important;
	min-height: 35px !important;
	min-height: var(--ug-control-height-web) !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 6px 8px !important;
	border: 1px solid #bfd0df !important;
	border-color: var(--ug-color-border-control) !important;
	border-radius: 3px !important;
	border-radius: var(--ug-radius-control) !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
	background-image: none !important;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
	box-shadow: inset 0 1px 2px rgba(16, 33, 61, .05) !important;
	box-shadow: var(--ug-shadow-control-inset) !important;
	font: inherit !important;
	line-height: 21px !important;
}

/* Ordem de producao: acabamento exclusivo das abas operacionais. Mantem a
 * arvore RichFaces e restringe densidade, grades e rolagem ao formulario OP. */
body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-tab-panel,
body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-accounting-panel {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-tab-results {
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0;
	margin: 0;
	padding: 0;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-tab-results > .app-query-table-scroll,
body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-ggf-panel > .rich-stglpanel-body > .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-tab-table {
	width: 100% !important;
	min-width: 760px;
	margin: 0 !important;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-service-panel .app-production-order-tab-table {
	min-width: 560px;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-tab-panel .rich-stglpanel-body {
	padding: 16px;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-management-content {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 4px 0;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-management-content textarea {
	box-sizing: border-box;
	width: 100% !important;
	min-height: 220px;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-accounting-panel > div {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-accounting-panel fieldset {
	margin: 0 0 12px;
	padding: 16px;
	border: 1px solid var(--ug-color-tab-border);
	border-radius: var(--ug-radius-panel);
	background: var(--ug-color-surface);
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-tab-panel .rich-stglpanel-body,
	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-accounting-panel fieldset {
		padding: 12px;
	}

	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-management-content textarea {
		min-height: 180px;
	}

	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-tab-table {
		min-width: 620px;
	}
}

/* Ordem de producao: fechamento responsivo exclusivo dos quatro trechos
 * operacionais refatorados nesta microtarefa. */
@media screen and (max-width: 1199px) {
	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-accounting-panel {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-item-panel .rich-stglpanel-body,
	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-accounting-panel {
		padding: 12px;
	}

	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-item-search,
	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-items-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-item-search .rich-decorate,
	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-item-search .app-autocomplete-control,
	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-items-toolbar input[type="submit"] {
		width: 100% !important;
	}

	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-items-toolbar .app-production-order-items-total {
		margin-left: 0;
	}

	body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-items-table {
		min-width: 760px;
	}

	body.ug-theme-v2 .app-production-product-components-modal {
		width: calc(100vw - 16px) !important;
		max-width: calc(100vw - 16px) !important;
	}

	body.ug-theme-v2 .app-production-product-components-modal .rich-mpnl-header {
		min-height: 56px;
		padding: 15px 52px 15px 16px !important;
		font-size: 16px;
	}

	body.ug-theme-v2 .app-production-product-components-modal .app-form-modal-content {
		max-height: calc(100vh - 146px);
		max-height: calc(100dvh - 146px);
		padding: 14px 16px 0;
	}

	body.ug-theme-v2 .app-production-product-components-modal .app-production-product-components-modal-summary {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
		min-height: 0;
	}

	body.ug-theme-v2 .app-production-product-components-modal .app-form-modal-actions {
		width: calc(100% + 32px);
		margin: 14px -16px 0;
		padding: 12px 16px;
	}

	body.ug-theme-v2 .app-production-product-components-modal .app-form-modal-actions > span,
	body.ug-theme-v2 .app-production-product-components-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2 .app-production-product-components-modal .app-form-modal-actions input {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
		min-height: 44px !important;
	}
}

/* Ordem de produção: composição visual dos dados, situação e item sem alterar
 * a árvore RichFaces, os bindings ou os fluxos Ajax existentes. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-shell .app-production-order-overview,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-shell .app-production-order-overview {
	box-sizing: border-box;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-shell .app-production-order-overview > tbody > tr,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-shell .app-production-order-overview > tbody > tr {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
	gap: 12px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-shell .app-production-order-overview > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-shell .app-production-order-overview > tbody > tr > td {
	box-sizing: border-box;
	display: block;
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--ug-color-tab-border);
	border-radius: var(--ug-radius-panel);
	background: var(--ug-color-surface);
	vertical-align: top;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-card-title,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-card-title {
	display: block;
	margin: 0 0 14px;
	color: var(--ug-color-ink);
	font-size: 15px;
	font-weight: 700;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-shell fieldset,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-shell fieldset {
	box-sizing: border-box;
	min-width: 0;
	border-color: var(--ug-color-tab-border);
	border-radius: var(--ug-radius-control);
	background: var(--ug-color-surface);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-shell fieldset > legend,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-shell fieldset > legend {
	padding: 0 6px;
	color: var(--ug-color-tab-active);
	font-size: 15px;
	font-weight: 700;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-options,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-options {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 12px 0;
	padding: 10px 12px;
	border: 1px solid var(--ug-color-border-warm);
	border-radius: var(--ug-radius-control);
	background: var(--ug-color-surface-context);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-status-card,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-status-card {
	margin: 12px 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-status-card > fieldset,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-status-card > fieldset {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-color: var(--ug-color-border-warm);
	background: var(--ug-color-surface-context);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-status-card .rich-decorate,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-status-card .rich-decorate {
	margin-right: auto;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-status-card input[type="submit"],
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-status-card input[type="submit"] {
	min-width: 108px;
	min-height: 36px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-item-panel,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-item-panel {
	border-color: var(--ug-color-tab-border);
	border-radius: var(--ug-radius-panel);
	background: var(--ug-color-surface);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-item-editor,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-item-editor {
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-item-editor > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-item-editor > tbody > tr > td {
	vertical-align: top;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-product-summary,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-product-summary {
	border: 1px solid var(--ug-color-border-warm);
	border-radius: var(--ug-radius-panel);
	background: linear-gradient(135deg, #ffffff 0%, #fff8f5 100%);
	box-shadow: var(--ug-shadow-panel);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-item-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-item-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
}

body.ug-theme-v2 .conteudo .app-production-order-inline-warning,
body.ug-theme-v2 .conteudo .app-production-order-stock-insufficient {
	color: #b42318;
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-production-order-stock-available {
	color: var(--ug-color-ink);
}

body.ug-theme-v2 .conteudo .app-production-order-hidden-state,
body.ug-theme-v2 .conteudo .app-autocomplete-loading {
	display: none;
}

body.ug-theme-v2 .conteudo .app-autocomplete-loading {
	width: 20px;
	height: 20px;
}

body.ug-theme-v2 .conteudo .app-production-order-field {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

body.ug-theme-v2 .conteudo .app-production-order-refresh {
	cursor: pointer;
}

body.ug-theme-v2 .conteudo .app-production-order-empty-state {
	color: var(--ug-color-text-muted);
	font-style: italic;
}

body.ug-theme-v2 .conteudo .app-production-order-lot-code {
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-production-order-management-output {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow-wrap: anywhere;
}

body.ug-theme-v2 .app-production-order-modal-cell-baseline {
	vertical-align: baseline;
}

body.ug-theme-v2 .conteudo .app-payable-settlement-cell-center {
	text-align: center;
}

body.ug-theme-v2 .conteudo .app-payable-settlement-action-icon {
	box-sizing: border-box;
	padding: 1px;
}

body.ug-theme-v2 .conteudo .app-payable-settlement-inline-action {
	box-sizing: border-box;
	margin-right: 4px;
}

body.ug-theme-v2 .conteudo .app-query-cell-left {
	text-align: left;
}

body.ug-theme-v2 .conteudo .app-query-cell-center,
body.ug-theme-v2 .conteudo .app-query-actions-column,
body.ug-theme-v2 .conteudo .app-query-selection-column {
	text-align: center;
}

body.ug-theme-v2 .conteudo .app-query-cell-right {
	text-align: right;
}

body.ug-theme-v2 .conteudo .app-query-cell-nowrap {
	white-space: nowrap;
}

body.ug-theme-v2 .conteudo .app-status-badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 2px 9px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

body.ug-theme-v2 .conteudo .app-status-badge-success {
	border-color: #a7d7c0;
	background: #e8f5ee;
	color: #18794e;
}

body.ug-theme-v2 .conteudo .app-status-badge-info {
	border-color: #a9c8eb;
	background: #eaf3fc;
	color: #15599a;
}

body.ug-theme-v2 .conteudo .app-status-badge-warning {
	border-color: #e8cc85;
	background: #fff7df;
	color: #805d00;
}

body.ug-theme-v2 .conteudo .app-status-badge-danger {
	border-color: #e5b0b0;
	background: #fdecec;
	color: #a52424;
}

body.ug-theme-v2 .conteudo .app-status-badge-neutral {
	border-color: #cbd3dc;
	background: #f2f4f7;
	color: #4b5563;
}

body.ug-theme-v2 .conteudo .app-stock-period-company-name {
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-stock-period-date-finalized {
	color: var(--ug-color-text);
}

body.ug-theme-v2 .conteudo .app-stock-period-date-open {
	color: #15599a;
}

body.ug-theme-v2 .conteudo .app-financial-period-account-name {
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-period-date-finalized {
	color: var(--ug-color-text);
}

body.ug-theme-v2 .conteudo .app-period-date-processed {
	color: var(--ug-color-text-muted);
}

body.ug-theme-v2 .conteudo .app-period-date-open {
	color: #15599a;
}

body.ug-theme-v2 .conteudo .app-query-inline-action {
	box-sizing: border-box;
	margin-right: 4px;
}

body.ug-theme-v2 .conteudo .app-maintenance-inline-action {
	box-sizing: border-box;
	margin-left: 10px;
}

body.ug-theme-v2 .conteudo .app-maintenance-section-results {
	margin-top: 20px;
}

body.ug-theme-v2 .conteudo .app-maintenance-inline-warning {
	color: #b42318;
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-query-empty-state {
	color: var(--ug-color-text-muted);
	font-style: italic;
}

body.ug-theme-v2 .conteudo .app-expense-forecast-item-editor {
	box-sizing: border-box;
	width: 310px;
	max-width: 100%;
}

body.ug-theme-v2 .conteudo .app-sales-forecast-item-editor {
	box-sizing: border-box;
	width: 500px;
	max-width: 100%;
}

body.ug-theme-v2 .conteudo .app-maintenance-refresh-control {
	cursor: pointer;
}

body.ug-theme-v2 .conteudo .app-expense-forecast-layout,
body.ug-theme-v2 .conteudo .app-sales-forecast-layout {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body.ug-theme-v2 .conteudo .app-remittance-status {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

body.ug-theme-v2 .conteudo .app-remittance-status-success {
	color: #18794e;
}

body.ug-theme-v2 .conteudo .app-remittance-status-danger {
	color: #c62828;
}

body.ug-theme-v2 .conteudo .app-remittance-status-pending {
	color: #1565c0;
}

body.ug-theme-v2 .conteudo .app-remittance-status-muted {
	color: #667085;
}

body.ug-theme-v2 .conteudo .app-return-origin,
body.ug-theme-v2 .conteudo .app-return-flag,
body.ug-theme-v2 .conteudo .app-return-status {
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-return-file-reference {
	font-size: 10px;
}

body.ug-theme-v2 .conteudo .app-return-status-icon {
	font-size: 1.1em;
}

body.ug-theme-v2 .conteudo .app-return-flag-success,
body.ug-theme-v2 .conteudo .app-return-status-success {
	color: #18794e;
}

body.ug-theme-v2 .conteudo .app-return-status-danger {
	color: #c62828;
}

body.ug-theme-v2 .conteudo .app-return-status-warning {
	color: #b45309;
}

body.ug-theme-v2 .conteudo .app-return-status-info {
	color: #1565c0;
}

body.ug-theme-v2 .conteudo .app-return-status-previous {
	color: #e65100;
}

body.ug-theme-v2 .conteudo .app-return-status-corrected {
	color: #6a1b9a;
}

body.ug-theme-v2 .conteudo .app-return-flag-muted,
body.ug-theme-v2 .conteudo .app-return-status-neutral {
	color: #667085;
}

body.ug-theme-v2 .conteudo td.app-return-row-success {
	background-color: #e8f5e9;
}

body.ug-theme-v2 .conteudo td.app-return-row-danger {
	background-color: #fce4ec;
}

body.ug-theme-v2 .conteudo td.app-return-row-previous {
	background-color: #fff3e0;
}

body.ug-theme-v2 .conteudo td.app-return-row-corrected {
	background-color: #f3e5f5;
}

body.ug-theme-v2 .conteudo td.app-return-row-warning {
	background-color: #fff8e1;
}

body.ug-theme-v2 .conteudo .app-payable-status {
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-payable-status-danger {
	color: #c62828;
}

body.ug-theme-v2 .conteudo .app-payable-status-success {
	color: #18794e;
}

body.ug-theme-v2 .conteudo .app-payable-status-partial {
	color: #667085;
}

body.ug-theme-v2 .conteudo .app-receivable-retained-taxes {
	display: block;
	margin-top: 4px;
	color: #c62828;
	font-size: 10px;
	font-style: italic;
}

body.ug-theme-v2 .conteudo .app-receivable-retained-tax {
	display: inline-block;
	margin-right: 6px;
	white-space: nowrap;
}

body.ug-theme-v2 .conteudo .app-receivable-status {
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-receivable-status-danger {
	color: #c62828;
}

body.ug-theme-v2 .conteudo .app-receivable-status-success {
	color: #18794e;
}

body.ug-theme-v2 .conteudo .app-receivable-status-partial {
	color: #667085;
}

body.ug-theme-v2 .conteudo .app-receivable-title-tooltip-grid {
	width: min(400px, calc(100vw - 48px));
	max-width: 100%;
}

body.ug-theme-v2 .conteudo .app-receivable-tooltip-gap {
	display: block;
	min-height: 15px;
}

body.ug-theme-v2 .conteudo .app-payment-return-upload-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	min-width: 0;
}

body.ug-theme-v2 .conteudo .app-payment-return-upload-file {
	min-width: 0;
	overflow-wrap: anywhere;
}

body.ug-theme-v2 .conteudo .app-payable-settlement-value {
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-payable-settlement-status-alert {
	color: #c62828;
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-payable-settlement-results {
	width: 100%;
}

body.ug-theme-v2 .conteudo .app-payable-settlement-balance-summary {
	font-size: 14px;
}

body.ug-theme-v2 .conteudo .app-payable-settlement-balance-value {
	color: #164ea6;
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-payable-event-settlement-form .col1,
body.ug-theme-v2 .conteudo .app-payable-event-settlement-form .col2 {
	box-sizing: border-box;
	padding: 0;
	border: 0;
}

body.ug-theme-v2 .conteudo .app-payable-event-settlement-form .col2 {
	text-align: right;
}

body.ug-theme-v2 .conteudo .app-payable-event-settlement-history {
	max-width: 100%;
	overflow-wrap: anywhere;
}

body.ug-theme-v2 .conteudo .app-payable-event-settlement-inline-actions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 8px;
}

/* Ordem de producao: abas Itens, Composicao e Contabil. As regras ficam
 * restritas ao contexto da OP e apenas reorganizam componentes ja existentes. */
body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-item-panel .rich-stglpanel-body {
	padding: 14px 16px;
	background: var(--ug-color-surface);
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-item-search {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	margin: 0;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-item-search .rich-decorate,
body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-item-search .app-autocomplete-control {
	flex: 1 1 520px;
	min-width: 0;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-item-editor-wrapper {
	margin-top: 12px;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-item-editor-wrapper:empty {
	display: none;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-items-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin: 12px 0;
	padding: 8px 10px;
	border: 1px solid var(--ug-color-tab-border);
	border-radius: var(--ug-radius-control);
	background: var(--ug-color-surface-context);
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-items-toolbar .app-production-order-items-total {
	margin-left: auto;
	color: var(--ug-color-ink);
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-items-results {
	margin-top: 0;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-items-table {
	min-width: 880px;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-composition-product-header {
	padding: 14px 16px !important;
	background: linear-gradient(90deg, #eef9fb 0%, #ffffff 100%) !important;
	color: var(--ug-color-ink) !important;
	font-size: 14px;
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-composition-table .rich-table-footer,
body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-composition-table .rich-table-footercell {
	background: #eef8f8 !important;
	color: var(--ug-color-ink) !important;
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-composition-summary {
	display: flex;
	align-items: center;
	min-height: 42px;
	margin-top: 12px;
	padding: 8px 12px;
	border-top: 1px solid var(--ug-color-tab-border);
	color: var(--ug-color-ink);
	font-weight: 700;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-accounting-panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--ug-color-tab-border);
	border-radius: var(--ug-radius-panel);
	background: var(--ug-color-surface);
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-accounting-section,
body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-accounting-fieldset {
	box-sizing: border-box;
	min-width: 0;
	margin: 0 !important;
}

body.ug-theme-v2 .conteudo .app-production-order-entry-tabs .app-production-order-accounting-fieldset {
	height: 100%;
	padding: 14px !important;
	border: 1px solid var(--ug-color-tab-border) !important;
	border-radius: var(--ug-radius-panel) !important;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%) !important;
}

body.ug-theme-v2 .app-production-product-components-modal {
	box-sizing: border-box;
	width: min(1120px, calc(100vw - 32px)) !important;
	max-width: calc(100vw - 32px) !important;
}

body.ug-theme-v2 .app-production-product-components-modal .rich-mpnl-content {
	box-sizing: border-box;
	max-height: calc(100vh - 32px);
	border: 1px solid #d7e0ea;
	border-radius: 10px;
	background: var(--ug-color-surface);
	overflow: hidden;
}

body.ug-theme-v2 .app-production-product-components-modal .rich-mpnl-header {
	min-height: 58px;
	padding: 17px 22px !important;
	border: 0 !important;
	background: #092552 !important;
	color: #ffffff !important;
	font-size: 18px;
	font-weight: 700;
}

body.ug-theme-v2 .app-production-product-components-modal .rich-mpnl-controls {
	top: 12px !important;
	right: 14px !important;
}

body.ug-theme-v2 .app-production-product-components-modal .app-modal-close-button {
	border-color: rgba(255, 255, 255, .55);
	background: rgba(255, 255, 255, .08);
	color: #ffffff;
}

body.ug-theme-v2 .app-production-product-components-modal .app-form-modal-content {
	max-height: calc(100vh - 170px);
	padding: 18px 22px 0;
	overflow: auto;
}

body.ug-theme-v2 .app-production-product-components-modal .app-form-modal-panel {
	margin: 0;
	border: 0;
	box-shadow: none;
}

body.ug-theme-v2 .app-production-product-components-modal .app-query-table-scroll {
	max-height: min(52vh, 560px);
	overflow: auto;
}

body.ug-theme-v2 .app-production-product-components-modal .rich-table-headercell,
body.ug-theme-v2 .app-production-product-components-modal .rich-table-subheadercell {
	padding: 10px !important;
	background: #f5f8fb !important;
	color: var(--ug-color-ink) !important;
	font-weight: 700;
}

body.ug-theme-v2 .app-production-product-components-modal .rich-table-cell {
	padding: 10px !important;
	border-color: var(--ug-color-tab-border) !important;
}

body.ug-theme-v2 .app-production-product-components-modal .app-production-product-components-modal-summary {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 50px;
	margin-top: 14px;
	padding: 10px 14px;
	border: 1px solid var(--ug-color-tab-border);
	border-radius: var(--ug-radius-control);
	background: #f8fbfc;
	color: var(--ug-color-ink);
	font-weight: 700;
}

body.ug-theme-v2 .app-production-product-components-modal .app-production-product-components-stock-warning {
	margin-left: 0;
	color: #c52d2d;
	font-weight: 700;
}

body.ug-theme-v2 .app-production-product-components-modal .app-form-modal-actions {
	margin: 18px -22px 0;
	padding: 14px 22px;
	border-top: 1px solid var(--ug-color-tab-border);
	background: var(--ug-color-surface);
}

@media screen and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-shell .app-production-order-overview > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-shell .app-production-order-overview > tbody > tr {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-shell .app-production-order-overview > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-shell .app-production-order-overview > tbody > tr > td {
		padding: 14px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-status-card > fieldset,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-status-card > fieldset {
		align-items: stretch;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-status-card .rich-decorate,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-status-card .rich-decorate,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-status-card input[type="submit"],
	body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-status-card input[type="submit"] {
		width: 100%;
		margin-right: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-item-actions,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-item-actions {
		flex-direction: column;
	}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-item-actions input[type="submit"],
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-item-actions input[type="submit"] {
		width: 100%;
		min-height: 44px;
	}
}

/* Ordem de producao: as abas internas reutilizam a mesma superficie, ritmo e
 * grade responsiva do formulario principal sem alterar os includes legados. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-tabpanel-content,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-tabpanel-content {
	box-sizing: border-box;
	background: var(--ug-color-surface);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel {
	box-sizing: border-box;
	margin: 0;
	border: 1px solid var(--ug-color-tab-border);
	border-radius: var(--ug-radius-panel);
	background: var(--ug-color-surface);
	box-shadow: var(--ug-shadow-panel);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel-header,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel-header {
	box-sizing: border-box;
	min-height: 46px;
	padding: 13px 16px;
	border-bottom: 1px solid var(--ug-color-tab-border);
	background: var(--ug-color-surface-context);
	color: var(--ug-color-ink);
	font-weight: 700;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel-body,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel-body {
	box-sizing: border-box;
	padding: 16px;
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel-body > div,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel-body > div {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel-body table.rich-table,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel-body table.rich-table {
	box-sizing: border-box;
	width: 100% !important;
	min-width: 720px;
	margin: 0;
	border-color: var(--ug-color-tab-border);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel-body .rich-table-headercell,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel-body .rich-table-headercell,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel-body .rich-table-subheadercell,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel-body .rich-table-subheadercell {
	padding: 10px 12px !important;
	border-color: var(--ug-color-tab-border) !important;
	background: var(--ug-color-surface-context) !important;
	color: var(--ug-color-ink) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel-body .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel-body .rich-table-cell {
	padding: 10px 12px !important;
	border-color: var(--ug-color-tab-border) !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel-body .rich-table-footer,
body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel-body .rich-table-footer {
	background: var(--ug-color-surface-context);
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel-header,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel-header {
		min-height: 44px;
		padding: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel-body,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel-body {
		padding: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-production-order-entry-tabs .rich-stglpanel-body table.rich-table,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-production-order-entry-tabs .rich-stglpanel-body table.rich-table {
		min-width: 620px;
	}
}

/* Configuracao de departamentos: seletor e checklist preservam leitura no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-area-access-configuration-form .app-access-configuration-fields,
	body.ug-theme-v2.app-theme-ruby .app-area-access-configuration-form .app-access-configuration-fields,
	body.ug-theme-v2.app-theme-ugestor .app-area-access-configuration-form .app-access-configuration-options,
	body.ug-theme-v2.app-theme-ruby .app-area-access-configuration-form .app-access-configuration-options {
		box-sizing: border-box;
		min-width: 0;
	}
	body.ug-theme-v2.app-theme-ugestor .app-area-access-configuration-form .app-access-configuration-checklist > tbody,
	body.ug-theme-v2.app-theme-ruby .app-area-access-configuration-form .app-access-configuration-checklist > tbody {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	body.ug-theme-v2.app-theme-ugestor .app-area-access-configuration-form .app-maintenance-actions input,
	body.ug-theme-v2.app-theme-ruby .app-area-access-configuration-form .app-maintenance-actions input {
		min-height: 44px !important;
	}
}

/* Drawer Smartphone fiel ao mockup: marca e contexto reais sao deslocados
 * temporariamente para a superficie do drawer pelo normalizador compartilhado. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-main-navigation,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-main-navigation {
		width: calc(100vw - 18px);
		max-width: 440px;
		padding-bottom: env(safe-area-inset-bottom);
		background: #ffffff;
		background: var(--ug-color-surface);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-header,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-header {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 116px;
		padding: 16px 84px 12px 22px;
		border: 0;
		background: #ffffff;
		background: var(--ug-color-surface);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-brand-slot,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-brand-slot {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-brand-slot .app-header-brand,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-brand-slot .app-header-brand,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-brand-slot .app-header-brand-link,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-brand-slot .app-header-brand-link {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		margin: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-brand-slot .app-header-logo,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-brand-slot .app-header-logo {
		display: block;
		width: auto;
		max-width: min(250px, 60vw);
		max-height: 76px;
		margin: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-title,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-title {
		display: none;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-close,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-close {
		position: absolute;
		top: 20px;
		right: 18px;
		z-index: 1;
		width: 58px;
		height: 58px;
		min-width: 58px;
		min-height: 58px;
		padding: 0;
		border: 1px solid #dce4ee;
		border-color: var(--ug-color-shell-action-border);
		border-radius: 16px;
		background: #ffffff;
		background: var(--ug-color-surface);
		color: #10213d;
		color: var(--ug-color-ink);
		font-size: 28px;
		box-shadow: 0 4px 12px rgba(16, 33, 61, .09);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot {
		display: block;
		padding: 0 16px 14px;
		background: #ffffff;
		background: var(--ug-color-surface);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-context,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-context,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-context form,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-context form {
		display: block !important;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-identity-card,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-identity-card {
		box-sizing: border-box;
		width: 100%;
		margin: 0;
		padding: 20px 22px;
		border: 1px solid #f0d4c8;
		border-color: var(--ug-color-border-warm);
		border-radius: 18px;
		background: #ffffff;
		background: var(--ug-color-surface);
		box-shadow: 0 8px 22px rgba(13, 67, 90, .05);
		text-align: left;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-meta,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-meta,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-meta > tbody,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-meta > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-meta > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-meta > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-meta > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-meta > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-user,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-user,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-establishment,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-establishment {
		display: block;
		margin: 0;
		padding: 0 0 16px;
		color: #10213d;
		color: var(--ug-color-ink);
		text-align: left;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-establishment,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-establishment {
		padding: 18px 0 0;
		border-top: 1px solid #dce5ef;
		border-top-color: var(--ug-color-shell-drawer-divider);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .prop,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .prop {
		display: block;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .name,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .name {
		display: block;
		color: #66758a !important;
		color: var(--ug-color-shell-label) !important;
		font-size: 12px !important;
		font-weight: bold;
		letter-spacing: .08em;
		line-height: 1.3;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .value,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .value {
		display: block;
		margin-top: 5px;
		color: #10213d !important;
		color: var(--ug-color-ink) !important;
		font-size: 18px !important;
		font-weight: 700;
		line-height: 1.3;
		white-space: normal !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-establishment-value,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-establishment-value {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 58px;
		gap: 12px;
		align-items: center;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-establishment-value > span:first-child,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-establishment-value > span:first-child {
		min-width: 0;
		overflow: visible;
		text-overflow: clip;
		white-space: normal;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot input[type="image"] {
		box-sizing: border-box;
		width: 58px;
		height: 58px;
		padding: 10px;
		border: 1px solid #dce4ee;
		border-color: var(--ug-color-shell-action-border);
		border-radius: 14px;
		background: #ffffff;
		background: var(--ug-color-surface);
		box-shadow: 0 4px 12px rgba(16, 33, 61, .09);
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #MenuHorizontal .app-main-toolbar,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #MenuHorizontal .app-main-toolbar,
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #MenuHorizontal.app-main-navigation .app-main-toolbar,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #MenuHorizontal.app-main-navigation .app-main-toolbar {
		padding-top: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar > tbody > tr > td.rich-toolbar-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar > tbody > tr > td.rich-toolbar-item {
		margin: 0 16px;
		border-bottom: 1px solid #e7edf3 !important;
		border-bottom-color: var(--ug-color-shell-drawer-subitem-border) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-toolbar-logout,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-toolbar-logout,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-control-panel-trigger,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-control-panel-trigger {
		min-height: 72px;
		padding: 16px 20px !important;
		font-size: 20px !important;
		font-weight: 700;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item > i,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item > i,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item > i > span,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item > i > span {
		font-size: 20px !important;
		font-family: Arial, Helvetica, sans-serif !important;
		font-weight: 700 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-home,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-home {
		border-bottom: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-home > .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-home > .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-home.app-navigation-active > .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-home.app-navigation-active > .rich-menu-item {
		background: transparent !important;
		box-shadow: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-home.app-navigation-active > .rich-menu-item *,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-home.app-navigation-active > .rich-menu-item * {
		color: #e64a19 !important;
		color: var(--ug-color-accent) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open {
		margin-top: 8px;
		margin-bottom: 8px;
		border: 1px solid #f0d4c8 !important;
		border-color: var(--ug-color-border-warm) !important;
		border-radius: 16px;
		background: #fff8f4;
		background: var(--ug-color-shell-navigation-active-surface);
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label {
		box-shadow: inset 5px 0 0 #ff5a1f !important;
		box-shadow: inset 5px 0 0 var(--ug-color-accent) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group {
		min-height: 68px;
		padding: 16px 20px 16px 30px !important;
		font-size: 19px !important;
		font-weight: 600;
	}
}

/* Configuracao de modulos: seletor e checklist reutilizam a grade Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-module-access-configuration-form .app-access-configuration-fields,
	body.ug-theme-v2.app-theme-ruby .app-module-access-configuration-form .app-access-configuration-fields,
	body.ug-theme-v2.app-theme-ugestor .app-module-access-configuration-form .app-access-configuration-options,
	body.ug-theme-v2.app-theme-ruby .app-module-access-configuration-form .app-access-configuration-options {
		box-sizing: border-box;
		min-width: 0;
	}
	body.ug-theme-v2.app-theme-ugestor .app-module-access-configuration-form .app-access-configuration-checklist > tbody,
	body.ug-theme-v2.app-theme-ruby .app-module-access-configuration-form .app-access-configuration-checklist > tbody {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	body.ug-theme-v2.app-theme-ugestor .app-module-access-configuration-form .app-module-access-actions input,
	body.ug-theme-v2.app-theme-ruby .app-module-access-configuration-form .app-module-access-actions input {
		min-height: 44px !important;
	}
}

/* Inclusao de usuario: modal, campos e acoes preservam leitura no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-user-existing-confirmation-modal,
	body.ug-theme-v2.app-theme-ruby .app-user-existing-confirmation-modal {
		box-sizing: border-box;
		width: 520px !important;
		max-width: calc(100vw - 48px) !important;
		max-height: calc(100vh - 48px) !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-user-existing-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-user-existing-confirmation-modal-content {
		box-sizing: border-box;
		max-height: calc(100vh - 136px);
		overflow-y: auto;
	}
	body.ug-theme-v2.app-theme-ugestor .app-user-existing-confirmation-message,
	body.ug-theme-v2.app-theme-ruby .app-user-existing-confirmation-message {
		overflow-wrap: anywhere;
	}
	body.ug-theme-v2.app-theme-ugestor .app-user-existing-confirmation-actions input,
	body.ug-theme-v2.app-theme-ruby .app-user-existing-confirmation-actions input {
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal {
		box-sizing: border-box;
		width: 640px !important;
		max-width: calc(100vw - 48px) !important;
		max-height: calc(100vh - 48px) !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal-content {
		box-sizing: border-box;
		max-height: calc(100vh - 136px);
		overflow-y: auto;
	}
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-grid,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-grid {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-grid .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-grid .app-query-table {
		min-width: 560px;
	}
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-actions input {
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-create-modal,
	body.ug-theme-v2.app-theme-ruby .app-user-create-modal { box-sizing: border-box; width: 680px !important; max-width: calc(100vw - 48px) !important; max-height: calc(100vh - 48px) !important; }
	body.ug-theme-v2.app-theme-ugestor .app-user-create-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-user-create-modal .app-form-modal-content { max-height: calc(100vh - 136px); overflow-y: auto; }
}

/* Exclusão de acessos: o modal e o fieldset permanecem dentro do Smartphone;
 * somente o grid denso usa rolagem horizontal própria. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mp-container,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mp-container,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mp-content-table,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mp-content-table {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mp-container,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mp-container,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mpnl-shadow {
		left: 0 !important;
		right: auto !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mp-content-table,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mp-content-table {
		table-layout: fixed;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mp-content-table > tbody,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mp-content-table > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mp-content-table > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mp-content-table > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mp-content-table > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mp-content-table > tbody > tr > td,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mpnl-body {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal .rich-mpnl-body {
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-form,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-form,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-fieldset,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-fieldset,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-description,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-description,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-description .prop,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-description .prop,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-description .value,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-description .value,
	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-grid,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-grid {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-access-removal-grid,
	body.ug-theme-v2.app-theme-ruby .app-user-access-removal-grid {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Selecao de entidade compradora: grade e acoes permanecem acessiveis no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-modal,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-modal {
		box-sizing: border-box;
		width: 640px !important;
		max-width: calc(100vw - 48px) !important;
		max-height: calc(100vh - 48px) !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-modal .app-selection-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-modal .app-selection-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-modal .app-selection-modal-form,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-modal .app-selection-modal-form {
		box-sizing: border-box;
		max-height: calc(100vh - 136px);
	}
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-modal .app-entity-buyer-selection-body,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-modal .app-entity-buyer-selection-body {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-modal .app-selection-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-modal .app-selection-modal-grid {
		min-width: 560px;
	}
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-modal .app-selection-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-modal .app-selection-modal-actions input {
		min-height: 44px !important;
	}

	/* Regras RTS Retencao: pares Codigo/Descricao rolam no proprio painel. */
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-rules-popup,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-rules-popup,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-rules-panel,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-rules-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-rules-section,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-rules-section {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-rules-panel,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-rules-panel {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor table.app-rts-retention-rules-grid,
	body.ug-theme-v2.app-theme-ruby table.app-rts-retention-rules-grid {
		min-width: 680px;
	}

	/* Regras RCS: grade de legenda preserva leitura no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-rcs-rules-panel,
	body.ug-theme-v2.app-theme-ruby .app-rcs-rules-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	body.ug-theme-v2.app-theme-ugestor table.app-rcs-rules-grid,
	body.ug-theme-v2.app-theme-ruby table.app-rcs-rules-grid { min-width: 680px; }
}

/* Clonagem de RCS: modal preserva leitura no Tablet sem alterar campos ou Ajax. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal,
	body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal {
		box-sizing: border-box;
		width: 640px !important;
		max-width: calc(100vw - 48px) !important;
		max-height: calc(100vh - 48px) !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal .app-form-modal-content {
		max-height: calc(100vh - 136px);
		overflow-y: auto;
	}
}

/* Consulta de RCS de saida: filtro, abas e confirmacao preservam largura
 * util no Tablet sem alterar pesquisa, paginacao, acoes ou dados. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-query-tabs,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-query-tabs {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-filter-fields input,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-filter-fields select {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-range-fields {
		flex-wrap: wrap;
		gap: 8px;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 48px) !important;
		max-height: calc(100vh - 48px) !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-deletion-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-deletion-actions input {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-maintenance .app-asset-item-mapping-fields,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-maintenance .app-asset-item-mapping-fields { box-sizing: border-box; max-width: 100%; }
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-maintenance .app-asset-item-mapping-selected-results,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-maintenance .app-asset-item-mapping-selected-results { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-maintenance .app-asset-item-mapping-selected-table,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-maintenance .app-asset-item-mapping-selected-table { min-width: 680px; }
}

/* De-para de bens: filtro e relacao mestre/detalhe preservam leitura e
 * rolagem local no Smartphone sem alterar consulta ou paginacao. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-query .app-query-filter-panel .name,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-query .app-query-filter-panel .name,
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-query .app-query-filter-panel .value,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-query .app-query-filter-panel .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-query .app-asset-item-mapping-results,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-query .app-asset-item-mapping-results { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-query .app-asset-item-mapping-table,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-query .app-asset-item-mapping-table { min-width: 780px; }
}

/* Selecao de entidade compradora: filtro e grade preservam toque e rolagem
 * local no Smartphone sem alterar selecao ou callbacks Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-buyer-entity-selection-modal .app-form-modal-scroll,
	body.ug-theme-v2.app-theme-ruby .app-buyer-entity-selection-modal .app-form-modal-scroll {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor .app-buyer-entity-selection-modal .app-compact-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-buyer-entity-selection-modal .app-compact-modal-grid { min-width: 560px; }
	body.ug-theme-v2.app-theme-ugestor .app-buyer-entity-selection-modal input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-buyer-entity-selection-modal input[type="text"] { box-sizing: border-box; width: 100% !important; min-height: 44px; }
}

/* Rateio financeiro contabil: percentual e grade preservam toque e rolagem
 * local no Smartphone sem alterar totais, arvore ou callbacks. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-financial-allocation-modal .app-financial-allocation-entry,
	body.ug-theme-v2.app-theme-ruby .app-financial-allocation-modal .app-financial-allocation-entry {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-allocation-modal .app-financial-allocation-list,
	body.ug-theme-v2.app-theme-ruby .app-financial-allocation-modal .app-financial-allocation-list {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-allocation-modal .app-compact-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-financial-allocation-modal .app-compact-modal-grid {
		min-width: 640px;
	}
}

/* Selecao financeira contabil: arvore e resumo preservam largura util e
 * rolagem local no Smartphone sem alterar carga sob demanda ou callbacks. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-accounting-selection-modal .app-form-modal-scroll,
	body.ug-theme-v2.app-theme-ruby .app-accounting-selection-modal .app-form-modal-scroll {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounting-selection-modal .app-form-modal-summary,
	body.ug-theme-v2.app-theme-ruby .app-accounting-selection-modal .app-form-modal-summary {
		box-sizing: border-box;
		max-width: 100%;
		overflow-wrap: break-word;
	}
}

/* Selecao de conta bancaria por entidade: grade e seletores preservam toque e
 * rolagem local no Smartphone sem alterar callback ou carregamento. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-bank-account-selection-modal .app-form-modal-scroll,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-selection-modal .app-form-modal-scroll {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-account-selection-modal .app-compact-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-selection-modal .app-compact-modal-grid {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-account-selection-modal input[type="checkbox"],
	body.ug-theme-v2.app-theme-ruby .app-bank-account-selection-modal input[type="checkbox"] {
		min-width: 24px;
		min-height: 24px;
	}
}

/* Forma de pagamento: campos, calendario e acoes preservam largura util e
 * toque no Smartphone sem alterar calculos, PIX, bindings ou Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-form-modal-panel,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-form-modal-panel,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-form-modal-fields,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-form-modal-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal select,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}
}

/* Duplicatas de pagamento: grade e controles preservam toque e rolagem local
 * no Smartphone sem alterar calculos, calendario, bindings ou Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-purchase-duplicates-modal-scroll,
	body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-purchase-duplicates-modal-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-purchase-duplicates-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-purchase-duplicates-modal-grid {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-compact-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-compact-modal-grid {
		min-width: 760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal input[type="text"] {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}
}

/* Recuperacao de senha: login e acoes preservam largura util e toque no
 * Tablet sem alterar cancelamento client-side ou Ajax. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-password-recovery-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-password-recovery-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-password-recovery-modal .app-form-modal-panel,
	body.ug-theme-v2.app-theme-ruby .app-password-recovery-modal .app-form-modal-panel {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-password-recovery-modal input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-password-recovery-modal input[type="text"] {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-password-recovery-modal .app-form-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-password-recovery-modal .app-form-modal-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}
}

/* Recuperacao de senha: login e acoes preservam largura util e toque no
 * Smartphone sem alterar cancelamento client-side ou Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-password-recovery-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-password-recovery-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-password-recovery-modal .app-form-modal-panel,
	body.ug-theme-v2.app-theme-ruby .app-password-recovery-modal .app-form-modal-panel {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-password-recovery-modal input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-password-recovery-modal input[type="text"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-password-recovery-modal .app-form-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-password-recovery-modal .app-form-modal-actions {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
}

/* Aviso legado: mensagem e fechamento preservam largura util e toque no
 * Tablet sem alterar a limpeza contextual ou Ajax. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-legacy-error-popup-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-legacy-error-popup-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		max-width: 100%;
		padding: 20px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-legacy-error-popup-modal .app-confirmation-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-legacy-error-popup-modal .app-confirmation-modal-actions .app-button {
		box-sizing: border-box;
		min-height: 44px;
	}
}

/* Aviso legado: mensagem e fechamento preservam largura util e toque no
 * Smartphone sem alterar a limpeza contextual ou Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-legacy-error-popup-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-legacy-error-popup-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		max-width: 100%;
		padding: 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-legacy-error-popup-modal .app-confirmation-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-legacy-error-popup-modal .app-confirmation-modal-actions .app-button {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Erro global: conteudo e detalhes preservam leitura e rolagem no Tablet
 * sem alterar protocolo, fechamento, dados ou ciclo Ajax. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-error-modal-v2 .erroModalContent,
	body.ug-theme-v2.app-theme-ruby .app-error-modal-v2 .erroModalContent {
		box-sizing: border-box;
		max-width: 100%;
		max-height: calc(100vh - 160px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-error-modal-v2 .erroInfoGrid,
	body.ug-theme-v2.app-theme-ruby .app-error-modal-v2 .erroInfoGrid,
	body.ug-theme-v2.app-theme-ugestor .app-error-modal-v2 .erroStackBox,
	body.ug-theme-v2.app-theme-ruby .app-error-modal-v2 .erroStackBox {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
	}
}

/* Erro global: conteudo e detalhes preservam leitura e rolagem no Smartphone
 * sem alterar protocolo, fechamento, dados ou ciclo Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-error-modal-v2 .erroModalContent,
	body.ug-theme-v2.app-theme-ruby .app-error-modal-v2 .erroModalContent {
		box-sizing: border-box;
		max-width: 100%;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-error-modal-v2 .erroInfoGrid,
	body.ug-theme-v2.app-theme-ruby .app-error-modal-v2 .erroInfoGrid,
	body.ug-theme-v2.app-theme-ugestor .app-error-modal-v2 .erroStackBox,
	body.ug-theme-v2.app-theme-ruby .app-error-modal-v2 .erroStackBox {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
	}
}

/* Painel de controle: campos e acoes preservam largura util e toque no
 * Tablet sem alterar a troca obrigatoria de senha ou Ajax. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-control-panel-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-control-panel-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-control-panel-modal .app-form-modal-fields,
	body.ug-theme-v2.app-theme-ruby .app-control-panel-modal .app-form-modal-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-control-panel-modal input[type="password"],
	body.ug-theme-v2.app-theme-ruby .app-control-panel-modal input[type="password"] {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-control-panel-modal .app-form-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-control-panel-modal .app-form-modal-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-control-panel-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-control-panel-modal .app-form-modal-actions .app-button {
		box-sizing: border-box;
		min-height: 44px;
	}
}

/* Painel de controle: campos e acoes preservam largura util e toque no
 * Smartphone sem alterar a troca obrigatoria de senha ou Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-control-panel-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-control-panel-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-control-panel-modal .app-form-modal-fields,
	body.ug-theme-v2.app-theme-ruby .app-control-panel-modal .app-form-modal-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-control-panel-modal .app-form-modal-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-control-panel-modal .app-form-modal-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-control-panel-modal .app-form-modal-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-control-panel-modal .app-form-modal-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-control-panel-modal input[type="password"],
	body.ug-theme-v2.app-theme-ruby .app-control-panel-modal input[type="password"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-control-panel-modal .app-form-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-control-panel-modal .app-form-modal-actions {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
}

/* Confirmacao de documento: mensagem e acoes preservam largura util e toque no
 * Smartphone sem alterar fechamento condicional ou ciclo Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-document-confirmation-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-document-confirmation-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		max-width: 100%;
		padding: 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-confirmation-modal .app-confirmation-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-document-confirmation-modal .app-confirmation-modal-actions {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-confirmation-modal .app-confirmation-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-document-confirmation-modal .app-confirmation-modal-actions .app-button {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Confirmacao de lancamento previo: conteudo e acoes preservam largura util e
 * toque no Tablet sem alterar fechamento condicional ou Ajax. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-document-preview-confirmation-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-document-preview-confirmation-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-document-confirmation-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-document-confirmation-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		max-width: 100%;
		padding: 20px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-preview-confirmation-modal .app-confirmation-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-document-preview-confirmation-modal .app-confirmation-modal-actions,
	body.ug-theme-v2.app-theme-ugestor .app-document-confirmation-modal .app-confirmation-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-document-confirmation-modal .app-confirmation-modal-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-preview-confirmation-modal .app-confirmation-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-document-preview-confirmation-modal .app-confirmation-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ugestor .app-document-confirmation-modal .app-confirmation-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-document-confirmation-modal .app-confirmation-modal-actions .app-button {
		box-sizing: border-box;
		min-height: 44px;
	}
}

/* Confirmacao de lancamento previo: conteudo e acoes preservam largura util e
 * toque no Smartphone sem alterar fechamento condicional ou Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-document-preview-confirmation-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-document-preview-confirmation-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-document-confirmation-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-document-confirmation-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		max-width: 100%;
		padding: 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-preview-confirmation-modal .app-confirmation-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-document-preview-confirmation-modal .app-confirmation-modal-actions,
	body.ug-theme-v2.app-theme-ugestor .app-document-confirmation-modal .app-confirmation-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-document-confirmation-modal .app-confirmation-modal-actions {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-preview-confirmation-modal .app-confirmation-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-document-preview-confirmation-modal .app-confirmation-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ugestor .app-document-confirmation-modal .app-confirmation-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-document-confirmation-modal .app-confirmation-modal-actions .app-button {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Shell sem menu: cabecalho institucional e conteudo preservam largura util
 * no Tablet sem alterar suporte, estabelecimento ou navegacao. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-without-menu-layout .body,
	body.ug-theme-v2.app-without-menu-layout .conteudo,
	body.ug-theme-v2.app-without-menu-layout .app-header-modern,
	body.ug-theme-v2.app-without-menu-layout .app-header-modern-layout {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-without-menu-layout .conteudo {
		margin-right: 0;
		padding-right: 20px;
		padding-left: 20px;
	}
}

/* Shell sem menu: cabecalho institucional e conteudo preservam largura util
 * no Smartphone sem alterar suporte, estabelecimento ou navegacao. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-without-menu-layout .body,
	body.ug-theme-v2.app-without-menu-layout .conteudo,
	body.ug-theme-v2.app-without-menu-layout .app-header-modern,
	body.ug-theme-v2.app-without-menu-layout .app-header-modern-layout {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-without-menu-layout .conteudo {
		margin-right: 0;
		padding-right: 12px;
		padding-left: 12px;
	}
}

/* Portal externo de fornecedor: shell e conteudo preservam area util no
 * Tablet sem alterar identidade White Label, includes ou fluxo. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-external-supplier-v2,
	body.ug-theme-v2.app-external-supplier-v2 .app-external-supplier-shell {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-external-supplier-v2 .app-external-supplier-shell {
		padding-right: 20px;
		padding-left: 20px;
		overflow-x: hidden;
	}

	body.ug-theme-v2.app-external-supplier-v2 .app-external-supplier-shell > .app-footer {
		margin-right: -20px;
		margin-left: -20px;
	}
}

/* Portal externo de fornecedor: shell e conteudo preservam area util no
 * Smartphone sem alterar identidade, includes ou fluxo do portal. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-external-supplier-v2,
	body.ug-theme-v2.app-external-supplier-v2 .app-external-supplier-shell {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-external-supplier-v2 .app-external-supplier-shell {
		padding-right: 12px;
		padding-left: 12px;
		overflow-x: hidden;
	}

	body.ug-theme-v2.app-external-supplier-v2 .app-external-supplier-shell > .app-footer {
		margin-right: -12px;
		margin-left: -12px;
	}
}

/* Shell externo: Tablet preserva identidade White Label e largura util sem
 * criar rolagem lateral no corpo da pagina. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-external-layout-v2 .body,
	body.ug-theme-v2.app-external-layout-v2 .conteudo,
	body.ug-theme-v2.app-external-layout-v2 .app-external-corporate-header,
	body.ug-theme-v2.app-external-layout-v2 .app-external-corporate-header-layout {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-external-layout-v2 .conteudo {
		margin-right: 0;
		padding-right: 20px;
		padding-left: 20px;
	}

	body.ug-theme-v2.app-external-layout-v2 .app-external-corporate-header-link,
	body.ug-theme-v2.app-external-layout-v2 .app-header-logo-corporate {
		display: block;
		max-width: 100%;
		height: auto;
	}
}

/* Shell externo: cabecalho, conteudo e rodape preservam largura util no
 * Smartphone sem alterar identidade White Label, navegacao ou includes. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-external-layout-v2 .body,
	body.ug-theme-v2.app-external-layout-v2 .conteudo,
	body.ug-theme-v2.app-external-layout-v2 .app-external-corporate-header,
	body.ug-theme-v2.app-external-layout-v2 .app-external-corporate-header-layout {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-external-layout-v2 .conteudo {
		margin-right: 0;
		padding-right: 12px;
		padding-left: 12px;
	}

	body.ug-theme-v2.app-external-layout-v2 .app-external-corporate-header-link,
	body.ug-theme-v2.app-external-layout-v2 .app-header-logo-corporate {
		display: block;
		max-width: 100%;
		height: auto;
	}
}

/* Servicos prestados: filtro e resultado preservam leitura no Smartphone sem
 * alterar calendario, autocompletes, totalizadores ou consulta. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-service-provided-query .app-service-provided-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-query .app-service-provided-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-service-provided-query .app-service-provided-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-query .app-service-provided-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-service-provided-query .app-service-provided-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-query .app-service-provided-period-controls {
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 6px;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-service-provided-query input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-service-provided-query input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-service-provided-query select,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-query select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-service-provided-query .app-service-provided-results,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-query .app-service-provided-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-service-provided-query .app-service-provided-table,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-query .app-service-provided-table {
		min-width: 860px;
	}
}

/* Saida de produto: filtros, selecoes auxiliares e resultado preservam leitura
 * no Smartphone sem alterar grupos, autocompletes, totalizadores ou consulta. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-output-query .app-product-output-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-product-output-query .app-product-output-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-product-output-query .app-product-output-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-product-output-query .app-product-output-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-output-query .app-product-output-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-product-output-query .app-product-output-period-controls {
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 6px;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-output-query input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-product-output-query input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-product-output-query select,
	body.ug-theme-v2.app-theme-ruby .app-product-output-query select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-output-query .app-product-output-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-product-output-query .app-product-output-selection-results,
	body.ug-theme-v2.app-theme-ugestor .app-product-output-query .app-product-output-results,
	body.ug-theme-v2.app-theme-ruby .app-product-output-query .app-product-output-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-output-query .app-product-output-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-product-output-query .app-product-output-selection-table {
		min-width: 640px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-output-query .app-product-output-table,
	body.ug-theme-v2.app-theme-ruby .app-product-output-query .app-product-output-table {
		min-width: 900px;
	}
}

/* Receita por forma de recebimento: periodo, representante e resultado
 * preservam toque e leitura no Smartphone sem alterar filtros ou consulta. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-query .app-receipt-summary-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-query .app-receipt-summary-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-query .app-receipt-summary-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-query .app-receipt-summary-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-query .app-receipt-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-query .app-receipt-summary-period-controls {
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 6px;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-query .app-receipt-summary-period-controls input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-query .app-receipt-summary-period-controls input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-query .app-receipt-summary-representative input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-query .app-receipt-summary-representative input[type="text"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-query .app-receipt-summary-results,
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-query .app-receipt-summary-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-query .app-receipt-summary-table,
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-query .app-receipt-summary-table {
		min-width: 520px;
	}
}

/* Receita por forma de recebimento: resultado, totalizador e retorno preservam
 * leitura e toque no Smartphone sem alterar consulta ou paginacao. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-receipt-detail-query .app-receipt-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-receipt-detail-query .app-receipt-detail-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-detail-query .app-receipt-detail-table,
	body.ug-theme-v2.app-theme-ruby .app-receipt-detail-query .app-receipt-detail-table {
		min-width: 520px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-detail-query .app-receipt-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-receipt-detail-query .app-receipt-detail-actions {
		display: flex;
		justify-content: stretch;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-detail-query .app-receipt-detail-actions input,
	body.ug-theme-v2.app-theme-ruby .app-receipt-detail-query .app-receipt-detail-actions input {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Compra por forma de pagamento: periodo e resultado preservam toque e leitura
 * no Smartphone sem alterar filtros, totalizadores ou paginacao. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-payment-summary-query .app-payment-summary-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-payment-summary-query .app-payment-summary-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-payment-summary-query .app-payment-summary-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-payment-summary-query .app-payment-summary-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-summary-query .app-payment-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-payment-summary-query .app-payment-summary-period-controls {
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 6px;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-summary-query .app-payment-summary-period-controls input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-payment-summary-query .app-payment-summary-period-controls input[type="text"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-summary-query .app-payment-summary-results,
	body.ug-theme-v2.app-theme-ruby .app-payment-summary-query .app-payment-summary-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-summary-query .app-payment-summary-table,
	body.ug-theme-v2.app-theme-ruby .app-payment-summary-query .app-payment-summary-table {
		min-width: 520px;
	}
}

/* Detalhe por forma de pagamento: resultado, paginador e retorno preservam
 * toque e rolagem local no Smartphone sem alterar consulta ou navegação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-payment-detail-query .app-payment-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-payment-detail-query .app-payment-detail-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-detail-query .app-payment-detail-table,
	body.ug-theme-v2.app-theme-ruby .app-payment-detail-query .app-payment-detail-table {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-detail-query .app-payment-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-payment-detail-query .app-payment-detail-actions {
		box-sizing: border-box;
		display: flex;
		justify-content: flex-end;
		width: 100%;
		margin-top: 12px;
	}
}

/* Resumo da folha: filtro, centro de custo e tabelas preservam toque e
 * rolagem local no Smartphone sem alterar cálculos ou geração. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-query .app-payroll-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-query .app-payroll-summary-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-query .app-payroll-summary-cost-center,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-query .app-payroll-summary-cost-center,
	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-query .app-payroll-summary-results,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-query .app-payroll-summary-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-query .name,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-query .value,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-query .app-payroll-summary-cost-center-tree,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-query .app-payroll-summary-cost-center-tree {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-query .app-payroll-summary-results,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-query .app-payroll-summary-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-query .app-payroll-summary-table,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-query .app-payroll-summary-table {
		min-width: 680px;
	}
}

/* Requisição de estoque: filtro, ordenação e grade preservam toque e rolagem
 * local no Smartphone sem alterar consulta, exportação ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-query .app-stock-requisition-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-query .app-stock-requisition-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-query .app-stock-requisition-ordering,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-query .app-stock-requisition-ordering,
	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-query .app-stock-requisition-results,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-query .app-stock-requisition-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-query .name,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-query .value,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-query .app-stock-requisition-results,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-query .app-stock-requisition-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-query .app-stock-requisition-table,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-query .app-stock-requisition-table {
		min-width: 760px;
	}
}

/* Rentabilidade de produto: filtros, autocomplete e ordenação preservam a
 * coluna útil no Smartphone sem alterar consulta ou seleção de grupos. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-profitability-query .app-product-profitability-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-product-profitability-query .app-product-profitability-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-product-profitability-query .app-product-profitability-ordering,
	body.ug-theme-v2.app-theme-ruby .app-product-profitability-query .app-product-profitability-ordering {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-profitability-query .name,
	body.ug-theme-v2.app-theme-ruby .app-product-profitability-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-product-profitability-query .value,
	body.ug-theme-v2.app-theme-ruby .app-product-profitability-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-profitability-query .app-control-options td,
	body.ug-theme-v2.app-theme-ruby .app-product-profitability-query .app-control-options td {
		min-height: 44px;
		padding: 8px 12px 8px 0;
		vertical-align: middle;
	}
}

/* Produto vendido: filtros, seleções e grade preservam toque e rolagem local
 * no Smartphone sem alterar consulta, exportação ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-sold-product-query .app-sold-product-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-query .app-sold-product-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sold-product-query .app-sold-product-results,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-query .app-sold-product-results,
	body.ug-theme-v2.app-theme-ugestor .app-sold-product-query .app-sold-product-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-query .app-sold-product-selection-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sold-product-query .name,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-sold-product-query .value,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sold-product-query .app-sold-product-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-query .app-sold-product-selection-table,
	body.ug-theme-v2.app-theme-ugestor .app-sold-product-query .app-sold-product-table,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-query .app-sold-product-table {
		min-width: 760px;
	}
}

/* Produto solicitado: filtros, seleções e grade preservam toque e rolagem
 * local no Smartphone sem alterar consulta, exportação ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-order-detail-query .app-order-detail-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-query .app-order-detail-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-order-detail-query .app-order-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-query .app-order-detail-results,
	body.ug-theme-v2.app-theme-ugestor .app-order-detail-query .app-order-detail-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-query .app-order-detail-selection-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-order-detail-query .name,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-order-detail-query .value,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-order-detail-query .app-order-detail-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-query .app-order-detail-selection-table,
	body.ug-theme-v2.app-theme-ugestor .app-order-detail-query .app-order-detail-table,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-query .app-order-detail-table {
		min-width: 760px;
	}
}

/* Produto solicitado agrupado: filtros, seleções e grade preservam toque e
 * rolagem local no Smartphone sem alterar consulta, exportação ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-requested-product-query .app-requested-product-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-query .app-requested-product-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-requested-product-query .app-requested-product-results,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-query .app-requested-product-results,
	body.ug-theme-v2.app-theme-ugestor .app-requested-product-query .app-requested-product-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-query .app-requested-product-selection-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-requested-product-query .name,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-requested-product-query .value,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-requested-product-query .app-requested-product-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-query .app-requested-product-selection-table,
	body.ug-theme-v2.app-theme-ugestor .app-requested-product-query .app-requested-product-table,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-query .app-requested-product-table {
		min-width: 760px;
	}
}

body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-selected-panel,
body.ug-theme-v2.app-theme-ruby .app-invoiced-product-selected-panel {
	box-sizing: border-box;
	table-layout: fixed;
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-selected-panel > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .app-invoiced-product-selected-panel > tbody > tr > td,
body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-selected-panel .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-invoiced-product-selected-panel .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-requested-product-selected-panel,
body.ug-theme-v2.app-theme-ruby .app-requested-product-selected-panel,
body.ug-theme-v2.app-theme-ugestor .app-order-detail-selected-panel,
body.ug-theme-v2.app-theme-ruby .app-order-detail-selected-panel,
body.ug-theme-v2.app-theme-ugestor .app-sold-product-selected-panel,
body.ug-theme-v2.app-theme-ruby .app-sold-product-selected-panel {
	box-sizing: border-box;
	table-layout: fixed;
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-requested-product-selected-panel > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .app-requested-product-selected-panel > tbody > tr > td,
body.ug-theme-v2.app-theme-ugestor .app-requested-product-selected-panel .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-requested-product-selected-panel .app-query-table-scroll,
body.ug-theme-v2.app-theme-ugestor .app-order-detail-selected-panel > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .app-order-detail-selected-panel > tbody > tr > td,
body.ug-theme-v2.app-theme-ugestor .app-order-detail-selected-panel .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-order-detail-selected-panel .app-query-table-scroll,
body.ug-theme-v2.app-theme-ugestor .app-sold-product-selected-panel > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .app-sold-product-selected-panel > tbody > tr > td,
body.ug-theme-v2.app-theme-ugestor .app-sold-product-selected-panel .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-sold-product-selected-panel .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* Produto faturado: filtros, seleções e grade preservam toque e rolagem local
 * no Smartphone sem alterar consulta, exportação ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-query .app-invoiced-product-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-query .app-invoiced-product-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-query .app-invoiced-product-results,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-query .app-invoiced-product-results,
	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-query .app-invoiced-product-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-query .app-invoiced-product-selection-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-query .name,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-query .value,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-query .app-invoiced-product-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-query .app-invoiced-product-selection-table,
	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-query .app-invoiced-product-table,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-query .app-invoiced-product-table {
		min-width: 760px;
	}
}

/* Produto comprado: filtros, autocompletes e grade preservam toque e rolagem
 * local no Smartphone sem alterar consulta, exportação ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-purchased-product-query .app-purchased-product-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-purchased-product-query .app-purchased-product-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-purchased-product-query .app-purchased-product-results,
	body.ug-theme-v2.app-theme-ruby .app-purchased-product-query .app-purchased-product-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchased-product-query .name,
	body.ug-theme-v2.app-theme-ruby .app-purchased-product-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-purchased-product-query .value,
	body.ug-theme-v2.app-theme-ruby .app-purchased-product-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchased-product-query .app-purchased-product-results,
	body.ug-theme-v2.app-theme-ruby .app-purchased-product-query .app-purchased-product-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchased-product-query .app-purchased-product-table,
	body.ug-theme-v2.app-theme-ruby .app-purchased-product-query .app-purchased-product-table {
		min-width: 760px;
	}
}

/* Composição de produto: filtros, autocompletes e grade preservam toque e
 * rolagem local no Smartphone sem alterar consulta, exportação ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-composition-query .app-production-composition-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-production-composition-query .app-production-composition-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-production-composition-query .app-production-composition-results,
	body.ug-theme-v2.app-theme-ruby .app-production-composition-query .app-production-composition-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-composition-query .name,
	body.ug-theme-v2.app-theme-ruby .app-production-composition-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-production-composition-query .value,
	body.ug-theme-v2.app-theme-ruby .app-production-composition-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-composition-query .app-production-composition-results,
	body.ug-theme-v2.app-theme-ruby .app-production-composition-query .app-production-composition-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-composition-query .app-production-composition-table,
	body.ug-theme-v2.app-theme-ruby .app-production-composition-query .app-production-composition-table {
		min-width: 760px;
	}
}

/* Previsão de receita por vendedor: filtros e autocomplete preservam a coluna
 * útil no Smartphone sem alterar geração, permissões ou seleções. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-representative-forecast-query .app-sales-representative-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-representative-forecast-query .app-sales-representative-forecast-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-representative-forecast-query .name,
	body.ug-theme-v2.app-theme-ruby .app-sales-representative-forecast-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-sales-representative-forecast-query .value,
	body.ug-theme-v2.app-theme-ruby .app-sales-representative-forecast-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-representative-forecast-query .app-sales-representative-forecast-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-sales-representative-forecast-query .app-sales-representative-forecast-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-sales-representative-forecast-query .app-sales-representative-forecast-date-range,
	body.ug-theme-v2.app-theme-ruby .app-sales-representative-forecast-query .app-sales-representative-forecast-date-range {
		display: block;
		max-width: 100%;
	}
}

/* Previsão de receita por item: filtros e autocompletes preservam a coluna
 * útil no Smartphone sem alterar geração, permissões ou seleções. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-query .app-sales-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-query .app-sales-forecast-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-query .name,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-query .value,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-query .app-sales-forecast-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-query .app-sales-forecast-period-controls {
		display: block;
		max-width: 100%;
	}
}

/* Entradas e saídas financeiras: filtros extensos preservam a coluna útil no
 * Smartphone sem alterar geração, permissões, seleções ou Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-financial-flow-forecast-query .app-financial-flow-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-financial-flow-forecast-query .app-financial-flow-forecast-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-flow-forecast-query .name,
	body.ug-theme-v2.app-theme-ruby .app-financial-flow-forecast-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-financial-flow-forecast-query .value,
	body.ug-theme-v2.app-theme-ruby .app-financial-flow-forecast-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-flow-forecast-query .app-financial-flow-forecast-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-financial-flow-forecast-query .app-financial-flow-forecast-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-financial-flow-forecast-query .app-financial-flow-forecast-date-range,
	body.ug-theme-v2.app-theme-ruby .app-financial-flow-forecast-query .app-financial-flow-forecast-date-range {
		display: block;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-flow-forecast-query select,
	body.ug-theme-v2.app-theme-ruby .app-financial-flow-forecast-query select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}
}

/* DRE projetada: período, seletores e ações preservam a coluna útil no
 * Smartphone sem alterar geração, permissões ou seleções. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-projected-income-statement-query .app-projected-income-statement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-projected-income-statement-query .app-projected-income-statement-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-projected-income-statement-query .name,
	body.ug-theme-v2.app-theme-ruby .app-projected-income-statement-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-projected-income-statement-query .value,
	body.ug-theme-v2.app-theme-ruby .app-projected-income-statement-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-projected-income-statement-query .app-projected-income-statement-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-projected-income-statement-query .app-projected-income-statement-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-projected-income-statement-query .app-projected-income-statement-date-range,
	body.ug-theme-v2.app-theme-ruby .app-projected-income-statement-query .app-projected-income-statement-date-range {
		display: block;
		max-width: 100%;
	}
}

/* DFC projetada: período, seletores e ações preservam a coluna útil no
 * Smartphone sem alterar geração, permissões ou seleções. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-projected-cash-flow-query .app-projected-cash-flow-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-projected-cash-flow-query .app-projected-cash-flow-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-projected-cash-flow-query .name,
	body.ug-theme-v2.app-theme-ruby .app-projected-cash-flow-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-projected-cash-flow-query .value,
	body.ug-theme-v2.app-theme-ruby .app-projected-cash-flow-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-projected-cash-flow-query .app-projected-cash-flow-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-projected-cash-flow-query .app-projected-cash-flow-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-projected-cash-flow-query .app-projected-cash-flow-date-range,
	body.ug-theme-v2.app-theme-ruby .app-projected-cash-flow-query .app-projected-cash-flow-date-range {
		display: block;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-projected-cash-flow-query select,
	body.ug-theme-v2.app-theme-ruby .app-projected-cash-flow-query select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}
}

/* DFC mensal: o tabPanel de detalhes não pode usar a largura mínima da grade
 * interna como largura do documento. A grade continua rolando no resultado. */
body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-tabs,
body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-tabs,
body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-tabs > .rich-tabpanel,
body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-tabs > .rich-tabpanel,
body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-tabs .rich-tabpanel-content-position,
body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-tabs .rich-tabpanel-content-position {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-tabs,
body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-tabs,
body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-tabs > .rich-tabpanel,
body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-tabs > .rich-tabpanel,
body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-tabs .rich-tabpanel-content-position,
body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-tabs .rich-tabpanel-content-position,
body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-tabs .rich-tabpanel-content,
body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-tabs .rich-tabpanel-content {
	overflow-x: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-tabs > .rich-tabpanel,
body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-tabs > .rich-tabpanel,
body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-tabs .rich-tabpanel-content-position,
body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-tabs .rich-tabpanel-content-position {
	table-layout: fixed;
}

body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-tabs .rich-tabpanel-content,
body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-tabs .rich-tabpanel-content {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}

/* Filtro DFC mensal: campos, calendários e seletores preservam a coluna útil
 * no Smartphone sem alterar geração, permissões ou seleções. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-query .app-monthly-cash-flow-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-query .app-monthly-cash-flow-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-query .name,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-query .value,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-query .app-monthly-cash-flow-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-query .app-monthly-cash-flow-period-controls {
		align-items: stretch;
		flex-direction: column;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-query select,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-query select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}
}

/* DFC mensal: resumos e detalhamentos preservam rolagem local e leitura no
 * Smartphone sem alterar cálculos, paginação ou Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-query .app-monthly-cash-flow-results,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-query .app-monthly-cash-flow-results,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-query .app-monthly-cash-flow-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-query .app-monthly-cash-flow-detail-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-query .app-monthly-cash-flow-summary-panel,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-query .app-monthly-cash-flow-summary-panel {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-query .app-monthly-cash-flow-summary-table,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-query .app-monthly-cash-flow-summary-table,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-query .app-monthly-cash-flow-table,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-query .app-monthly-cash-flow-table {
		min-width: 900px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-query .app-monthly-cash-flow-detail-table,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-query .app-monthly-cash-flow-detail-table {
		min-width: 720px;
	}
}

/* DFC diário: filtros, resumos e detalhamentos preservam rolagem local e
 * leitura no Smartphone sem alterar cálculos, paginação ou Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-query .app-daily-cash-flow-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-query .app-daily-cash-flow-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-query .app-daily-cash-flow-results,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-query .app-daily-cash-flow-results,
	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-query .app-daily-cash-flow-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-query .app-daily-cash-flow-detail-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-query .name,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-query .value,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-query .app-daily-cash-flow-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-query .app-daily-cash-flow-period-controls {
		display: block;
	}

	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-query .app-daily-cash-flow-results,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-query .app-daily-cash-flow-results,
	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-query .app-daily-cash-flow-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-query .app-daily-cash-flow-detail-results {
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-query .app-daily-cash-flow-summary-table,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-query .app-daily-cash-flow-summary-table {
		min-width: 860px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-query .app-daily-cash-flow-detail-table,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-query .app-daily-cash-flow-detail-table {
		min-width: 720px;
	}
}

/* Previsão de custo/despesa: campos e ações preservam uma coluna útil no
 * Smartphone sem alterar filtros, seleções ou geração de arquivos. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-budget-forecast-query .app-budget-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-budget-forecast-query .app-budget-forecast-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-budget-forecast-query .name,
	body.ug-theme-v2.app-theme-ruby .app-budget-forecast-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-budget-forecast-query .value,
	body.ug-theme-v2.app-theme-ruby .app-budget-forecast-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-budget-forecast-query .name,
	body.ug-theme-v2.app-theme-ruby .app-budget-forecast-query .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-budget-forecast-query .app-budget-forecast-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-budget-forecast-query .app-budget-forecast-period-controls {
		display: block;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-budget-forecast-query select,
	body.ug-theme-v2.app-theme-ruby .app-budget-forecast-query select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}
}

/* Extrato operacional: filtro, totalizadores, grade e paginador preservam
 * leitura e rolagem local no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-query .app-advance-statement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-query .app-advance-statement-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-query .app-advance-statement-results,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-query .app-advance-statement-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-query .app-advance-statement-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-query .app-advance-statement-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-query .app-advance-statement-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-query .app-advance-statement-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-query .app-advance-statement-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-query .app-advance-statement-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-query .app-advance-statement-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-query .app-advance-statement-period-controls {
		align-items: stretch;
		flex-direction: column;
	}

	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-query .app-advance-statement-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-query .app-advance-statement-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-query .app-advance-statement-table,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-query .app-advance-statement-table {
		min-width: 720px;
	}
}

/* Relatório operacional de caixa: filtro, totalizadores, grade e paginador
 * preservam leitura e rolagem local no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-query .app-cash-operational-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-query .app-cash-operational-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-query .app-cash-operational-results,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-query .app-cash-operational-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-query .app-cash-operational-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-query .app-cash-operational-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-query .app-cash-operational-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-query .app-cash-operational-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-query .app-cash-operational-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-query .app-cash-operational-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-query .app-cash-operational-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-query .app-cash-operational-period-controls {
		align-items: stretch;
		flex-direction: column;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-query .app-cash-operational-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-query .app-cash-operational-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-query .app-cash-operational-table,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-query .app-cash-operational-table {
		min-width: 720px;
	}
}

/* Relatório operacional bancário: filtro, totalizadores, grade e paginador
 * preservam leitura e rolagem local no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-query .app-bank-operational-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-query .app-bank-operational-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-query .app-bank-operational-results,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-query .app-bank-operational-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-query .app-bank-operational-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-query .app-bank-operational-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-query .app-bank-operational-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-query .app-bank-operational-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-query .app-bank-operational-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-query .app-bank-operational-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-query .app-bank-operational-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-query .app-bank-operational-period-controls {
		align-items: stretch;
		flex-direction: column;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-query .app-bank-operational-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-query .app-bank-operational-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-query .app-bank-operational-table,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-query .app-bank-operational-table {
		min-width: 760px;
	}
}

/* Movimento de estoque: filtros extensos conservam leitura e toque no
 * Smartphone sem alterar seleção, Ajax ou geração do relatório. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-stock-movement-query .app-query-filter-grid,
	body.ug-theme-v2.app-theme-ruby .app-stock-movement-query .app-query-filter-grid,
	body.ug-theme-v2.app-theme-ugestor .app-stock-movement-query .app-stock-movement-ordering,
	body.ug-theme-v2.app-theme-ruby .app-stock-movement-query .app-stock-movement-ordering {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-movement-query .name,
	body.ug-theme-v2.app-theme-ruby .app-stock-movement-query .name,
	body.ug-theme-v2.app-theme-ugestor .app-stock-movement-query .value,
	body.ug-theme-v2.app-theme-ruby .app-stock-movement-query .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-movement-query .name,
	body.ug-theme-v2.app-theme-ruby .app-stock-movement-query .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-movement-query .app-stock-movement-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-stock-movement-query .app-stock-movement-period-controls {
		align-items: stretch;
		flex-direction: column;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-movement-query .app-control-options,
	body.ug-theme-v2.app-theme-ruby .app-stock-movement-query .app-control-options {
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-movement-query .app-control-options td,
	body.ug-theme-v2.app-theme-ruby .app-stock-movement-query .app-control-options td {
		box-sizing: border-box;
		min-height: 44px;
		padding: 8px 12px 8px 0;
		vertical-align: middle;
	}
}

/* Detalhe de receita por produto: resumo, retorno e grade permanecem legíveis
 * no Smartphone sem alterar cálculo, filtros ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-profit-product-revenue-detail-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-product-revenue-detail-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-product-revenue-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-product-revenue-detail .app-report-detail-actions {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-product-revenue-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-product-revenue-detail .app-report-detail-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-product-revenue-detail .app-report-detail-actions input,
	body.ug-theme-v2.app-theme-ruby .app-profit-product-revenue-detail .app-report-detail-actions input {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-product-revenue-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ruby .app-profit-product-revenue-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ugestor .app-profit-product-revenue-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-product-revenue-detail-results .app-query-table-scroll {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-product-revenue-detail-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-profit-product-revenue-detail-results .app-query-table {
		min-width: 760px;
	}
}

/* Detalhe de receita por serviço: resumo, abas e grades permanecem legíveis no
 * Smartphone sem alterar cálculo, filtros ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-profit-service-revenue-detail-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-service-revenue-detail-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-service-revenue-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-service-revenue-detail .app-report-detail-actions {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-service-revenue-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-service-revenue-detail .app-report-detail-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-service-revenue-detail .app-report-detail-actions input,
	body.ug-theme-v2.app-theme-ruby .app-profit-service-revenue-detail .app-report-detail-actions input {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-service-revenue-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ruby .app-profit-service-revenue-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ugestor .app-profit-service-revenue-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-service-revenue-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-profit-service-revenue-detail-results .app-report-detail-tabs,
	body.ug-theme-v2.app-theme-ruby .app-profit-service-revenue-detail-results .app-report-detail-tabs {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-service-revenue-detail-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-profit-service-revenue-detail-results .app-query-table {
		min-width: 760px;
	}
}

/* DRE: filtro mensal, ações e matriz mantêm leitura e rolagem no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-query .app-page-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-query .app-page-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-results,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-filter-fields select {
		width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-query .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-query .app-filter-export-actions {
		display: flex;
		justify-content: flex-start;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-results .app-query-table-scroll {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-matrix,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-matrix {
		min-width: 1390px !important;
	}
}

/* Balanço patrimonial: quatro seletores de período quebram sem corte no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-balance-sheet-query .app-page-heading,
	body.ug-theme-v2.app-theme-ruby .app-balance-sheet-query .app-page-heading,
	body.ug-theme-v2.app-theme-ugestor .app-balance-sheet-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-balance-sheet-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-balance-sheet-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-balance-sheet-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-balance-sheet-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-balance-sheet-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-balance-sheet-period-controls select,
	body.ug-theme-v2.app-theme-ruby .app-balance-sheet-period-controls select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Carga e volume: filtro extenso e grade mantêm leitura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-load-volume-query .app-page-heading,
	body.ug-theme-v2.app-theme-ruby .app-load-volume-query .app-page-heading,
	body.ug-theme-v2.app-theme-ugestor .app-load-volume-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-load-volume-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-load-volume-results,
	body.ug-theme-v2.app-theme-ruby .app-load-volume-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-load-volume-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-load-volume-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-load-volume-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-load-volume-filter-fields input,
	body.ug-theme-v2.app-theme-ugestor .app-load-volume-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-load-volume-filter-fields select {
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-load-volume-results,
	body.ug-theme-v2.app-theme-ruby .app-load-volume-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-load-volume-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-load-volume-results .app-query-table {
		min-width: 860px;
	}
}

/* Comissão: filtros, totalizadores e grade preservam a largura útil no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-commission-query,
	body.ug-theme-v2.app-theme-ruby .app-sales-commission-query,
	body.ug-theme-v2.app-theme-ugestor .app-sales-commission-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-commission-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sales-commission-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-commission-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-commission-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-commission-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-commission-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-sales-commission-filter-fields input {
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-commission-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-commission-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-commission-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-sales-commission-results .app-query-table {
		min-width: 860px;
	}
}

/* Composição de produto: seleção e resultados mantêm leitura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-composition-query,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-query,
	body.ug-theme-v2.app-theme-ugestor .app-product-composition-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-selection-results,
	body.ug-theme-v2.app-theme-ugestor .app-product-composition-results,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-composition-input,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-input {
		width: 100% !important;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-composition-types,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-types {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-composition-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-selection-results,
	body.ug-theme-v2.app-theme-ugestor .app-product-composition-results,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-composition-selection-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-selection-results .app-query-table,
	body.ug-theme-v2.app-theme-ugestor .app-product-composition-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-results .app-query-table {
		min-width: 760px;
	}
}

/* Contas a pagar: filtro financeiro e grade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-accounts-payable-query,
	body.ug-theme-v2.app-theme-ruby .app-accounts-payable-query,
	body.ug-theme-v2.app-theme-ugestor .app-accounts-payable-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-accounts-payable-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-accounts-payable-results,
	body.ug-theme-v2.app-theme-ruby .app-accounts-payable-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounts-payable-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-accounts-payable-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounts-payable-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-accounts-payable-filter-fields input {
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounts-payable-results,
	body.ug-theme-v2.app-theme-ruby .app-accounts-payable-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounts-payable-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-accounts-payable-results .app-query-table {
		min-width: 760px;
	}
}

/* Contas a receber: filtro financeiro e grade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-accounts-receivable-query,
	body.ug-theme-v2.app-theme-ruby .app-accounts-receivable-query,
	body.ug-theme-v2.app-theme-ugestor .app-accounts-receivable-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-accounts-receivable-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-accounts-receivable-results,
	body.ug-theme-v2.app-theme-ruby .app-accounts-receivable-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounts-receivable-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-accounts-receivable-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounts-receivable-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-accounts-receivable-filter-fields input {
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounts-receivable-results,
	body.ug-theme-v2.app-theme-ruby .app-accounts-receivable-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounts-receivable-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-accounts-receivable-results .app-query-table {
		min-width: 760px;
	}
}

/* Custo mensal: filtros de produto e grupos preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-query,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-query,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-filter-fields > table,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-filter-fields > table,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-filter-fields fieldset,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-filter-fields fieldset {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-filter-fields > table,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-filter-fields > table,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-filter-fields fieldset {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-filter-fields select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}
}

/* Depreciação: período, grupo e bem reorganizam-se sem corte no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-depreciation-query,
	body.ug-theme-v2.app-theme-ruby .app-depreciation-query,
	body.ug-theme-v2.app-theme-ugestor .app-depreciation-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-depreciation-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-depreciation-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-depreciation-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-depreciation-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-depreciation-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-depreciation-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-depreciation-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Estoque por característica: filtros e seleções múltiplas cabem no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-stock-characteristics-query,
	body.ug-theme-v2.app-theme-ruby .app-stock-characteristics-query,
	body.ug-theme-v2.app-theme-ugestor .app-stock-characteristics-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-stock-characteristics-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-stock-characteristics-selection-grid,
	body.ug-theme-v2.app-theme-ruby .app-stock-characteristics-selection-grid {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-characteristics-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-stock-characteristics-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-stock-characteristics-selection-grid,
	body.ug-theme-v2.app-theme-ruby .app-stock-characteristics-selection-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-characteristics-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-stock-characteristics-period-controls {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-characteristics-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-stock-characteristics-filter-fields input[type="text"] {
		max-width: 100%;
		min-height: 44px;
	}
}

/* Estoque ideal: período e seleção de grupos não ampliam o Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-stock-ideal-query,
	body.ug-theme-v2.app-theme-ruby .app-stock-ideal-query,
	body.ug-theme-v2.app-theme-ugestor .app-stock-ideal-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-stock-ideal-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-stock-ideal-selection-grid,
	body.ug-theme-v2.app-theme-ruby .app-stock-ideal-selection-grid {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-ideal-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-stock-ideal-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-stock-ideal-selection-grid,
	body.ug-theme-v2.app-theme-ruby .app-stock-ideal-selection-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-ideal-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-stock-ideal-period-controls {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-ideal-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-stock-ideal-filter-fields input[type="text"] {
		max-width: 100%;
		min-height: 44px;
	}
}

/* Faturamento: filtros, ações e grade ficam contidos no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-query,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-query,
	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-report-actions,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-report-actions {
		display: flex;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-period-controls {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-results .app-query-table {
		min-width: 760px;
	}
}

/* Kardex: filtros, ações e colunas densas permanecem no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-kardex-query,
	body.ug-theme-v2.app-theme-ruby .app-kardex-query,
	body.ug-theme-v2.app-theme-ugestor .app-kardex-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-kardex-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-kardex-results,
	body.ug-theme-v2.app-theme-ruby .app-kardex-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-kardex-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-kardex-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-kardex-report-actions,
	body.ug-theme-v2.app-theme-ruby .app-kardex-report-actions {
		display: flex;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-kardex-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-kardex-period-controls {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-kardex-results,
	body.ug-theme-v2.app-theme-ruby .app-kardex-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-kardex-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-kardex-results .app-query-table {
		min-width: 1420px;
	}
}

/* COFINS sintético: período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-cofins-summary-query,
	body.ug-theme-v2.app-theme-ruby .app-cofins-summary-query,
	body.ug-theme-v2.app-theme-ugestor .app-cofins-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cofins-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cofins-summary-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-cofins-summary-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-summary-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-cofins-summary-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* ICMS sintético: período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-icms-summary-query,
	body.ug-theme-v2.app-theme-ruby .app-icms-summary-query,
	body.ug-theme-v2.app-theme-ugestor .app-icms-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-icms-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-icms-summary-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-icms-summary-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-summary-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-icms-summary-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* IPI sintético: período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-ipi-summary-query,
	body.ug-theme-v2.app-theme-ruby .app-ipi-summary-query,
	body.ug-theme-v2.app-theme-ugestor .app-ipi-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-ipi-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-ipi-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-ipi-summary-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-ipi-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-ipi-summary-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-ipi-summary-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-ipi-summary-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* IRPJ/CSLL sintético: período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-irpj-csll-summary-query,
	body.ug-theme-v2.app-theme-ruby .app-irpj-csll-summary-query,
	body.ug-theme-v2.app-theme-ugestor .app-irpj-csll-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-irpj-csll-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-irpj-csll-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-irpj-csll-summary-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-irpj-csll-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-irpj-csll-summary-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-irpj-csll-summary-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-irpj-csll-summary-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* ISS analítico: período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-iss-analysis-query,
	body.ug-theme-v2.app-theme-ruby .app-iss-analysis-query,
	body.ug-theme-v2.app-theme-ugestor .app-iss-analysis-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-iss-analysis-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-iss-analysis-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-iss-analysis-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-iss-analysis-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-iss-analysis-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-iss-analysis-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-iss-analysis-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* ISS sintético: período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-iss-summary-query,
	body.ug-theme-v2.app-theme-ruby .app-iss-summary-query,
	body.ug-theme-v2.app-theme-ugestor .app-iss-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-iss-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-iss-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-iss-summary-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-iss-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-iss-summary-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-iss-summary-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-iss-summary-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* PIS sintético: período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-pis-summary-query,
	body.ug-theme-v2.app-theme-ruby .app-pis-summary-query,
	body.ug-theme-v2.app-theme-ugestor .app-pis-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-pis-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-pis-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-pis-summary-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-pis-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-pis-summary-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-pis-summary-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-pis-summary-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Entrada PIS/COFINS: período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-cofins-entry-query,
	body.ug-theme-v2.app-theme-ruby .app-cofins-entry-query,
	body.ug-theme-v2.app-theme-ugestor .app-cofins-entry-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cofins-entry-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-entry-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cofins-entry-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-entry-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-cofins-entry-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-entry-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-cofins-entry-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Saída PIS/COFINS: período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-cofins-output-query,
	body.ug-theme-v2.app-theme-ruby .app-cofins-output-query,
	body.ug-theme-v2.app-theme-ugestor .app-cofins-output-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cofins-output-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-output-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cofins-output-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-output-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-cofins-output-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-output-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-cofins-output-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Entrada ICMS/IPI: período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-icms-entry-query,
	body.ug-theme-v2.app-theme-ruby .app-icms-entry-query,
	body.ug-theme-v2.app-theme-ugestor .app-icms-entry-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-icms-entry-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-entry-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-icms-entry-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-entry-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-icms-entry-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-entry-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-icms-entry-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Saída ICMS/IPI: período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-icms-output-query,
	body.ug-theme-v2.app-theme-ruby .app-icms-output-query,
	body.ug-theme-v2.app-theme-ugestor .app-icms-output-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-icms-output-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-output-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-icms-output-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-output-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-icms-output-period-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-output-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-icms-output-filter-fields select {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Retenção fiscal: nota, período e entidade preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-withholding-query,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-withholding-query,
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-withholding-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-withholding-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-withholding-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-withholding-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-withholding-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-withholding-period-controls {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-withholding-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-withholding-filter-fields input,
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-withholding-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-withholding-filter-fields select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}
}

/* Movimento bancário: filtros e dois resumos preservam a largura no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-query,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-query,
	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-results,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-filter-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-result-columns,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-result-columns {
		display: block;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-result-column,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-result-column {
		box-sizing: border-box;
		float: none;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin-left: 0;
		margin-bottom: 16px;
		padding-left: 0;
		padding-right: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-results .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-results .app-query-table {
		min-width: 620px;
	}
}

/* Movimento de caixa: resumos ficam empilhados no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-cash-movement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cash-movement-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-cash-movement-results,
	body.ug-theme-v2.app-theme-ruby .app-cash-movement-results { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
	body.ug-theme-v2.app-theme-ugestor .app-cash-movement-result-columns,
	body.ug-theme-v2.app-theme-ruby .app-cash-movement-result-columns { display:block; }
	body.ug-theme-v2.app-theme-ugestor .app-cash-movement-result-column,
	body.ug-theme-v2.app-theme-ruby .app-cash-movement-result-column {
		box-sizing:border-box;
		float:none;
		width:100%;
		max-width:100%;
		min-width:0;
		margin-left:0;
		margin-bottom:16px;
		padding-left:0;
		padding-right:0;
	}
	body.ug-theme-v2.app-theme-ugestor .app-cash-movement-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-cash-movement-results .app-query-table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
	body.ug-theme-v2.app-theme-ugestor .app-cash-movement-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-cash-movement-results .app-query-table { min-width:620px; }
}

/* Detalhe de receita e lucro: resumo, retorno e grade permanecem legíveis no
 * Smartphone sem alterar cálculo, filtros ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-profit-revenue-detail-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-revenue-detail-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-revenue-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-revenue-detail .app-report-detail-actions {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-revenue-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-revenue-detail .app-report-detail-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-revenue-detail .app-report-detail-actions input,
	body.ug-theme-v2.app-theme-ruby .app-profit-revenue-detail .app-report-detail-actions input {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-revenue-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ruby .app-profit-revenue-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ugestor .app-profit-revenue-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-revenue-detail-results .app-query-table-scroll {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-revenue-detail-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-profit-revenue-detail-results .app-query-table {
		min-width: 760px;
	}
}

/* Detalhe de imposto sobre lucro: resumo, retorno e grade permanecem legíveis
 * no Smartphone sem alterar cálculo, filtros ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-profit-tax-detail-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-tax-detail-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-tax-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-tax-detail .app-report-detail-actions {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-tax-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-tax-detail .app-report-detail-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-tax-detail .app-report-detail-actions input,
	body.ug-theme-v2.app-theme-ruby .app-profit-tax-detail .app-report-detail-actions input {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-tax-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ruby .app-profit-tax-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ugestor .app-profit-tax-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-tax-detail-results .app-query-table-scroll {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-tax-detail-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-profit-tax-detail-results .app-query-table {
		min-width: 760px;
	}
}

/* Detalhe financeiro: resumo, abas e grades permanecem legíveis no Smartphone
 * sem alterar cálculo, filtros ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-profit-financial-detail-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-financial-detail-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-financial-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-financial-detail .app-report-detail-actions {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-financial-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-financial-detail .app-report-detail-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-financial-detail .app-report-detail-actions input,
	body.ug-theme-v2.app-theme-ruby .app-profit-financial-detail .app-report-detail-actions input {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-financial-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ruby .app-profit-financial-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ugestor .app-profit-financial-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-financial-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-profit-financial-detail-results .app-report-detail-tabs,
	body.ug-theme-v2.app-theme-ruby .app-profit-financial-detail-results .app-report-detail-tabs {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-financial-detail-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-profit-financial-detail-results .app-query-table {
		min-width: 760px;
	}
}

/* Detalhe de despesa: resumo, retorno e grade permanecem legíveis no
 * Smartphone sem alterar cálculo, filtros ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-profit-expense-detail-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-expense-detail-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-expense-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-expense-detail .app-report-detail-actions {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-expense-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-expense-detail .app-report-detail-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-expense-detail .app-report-detail-actions input,
	body.ug-theme-v2.app-theme-ruby .app-profit-expense-detail .app-report-detail-actions input {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-expense-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ruby .app-profit-expense-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ugestor .app-profit-expense-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-expense-detail-results .app-query-table-scroll {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-expense-detail-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-profit-expense-detail-results .app-query-table {
		min-width: 760px;
	}
}

/* Detalhe de outros custos: resumo, abas e grades permanecem legíveis no
 * Smartphone sem alterar cálculo, filtros ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-profit-other-cost-detail-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-other-cost-detail-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-other-cost-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-other-cost-detail .app-report-detail-actions {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-other-cost-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-other-cost-detail .app-report-detail-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-other-cost-detail .app-report-detail-actions input,
	body.ug-theme-v2.app-theme-ruby .app-profit-other-cost-detail .app-report-detail-actions input {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-other-cost-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ruby .app-profit-other-cost-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ugestor .app-profit-other-cost-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-other-cost-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-profit-other-cost-detail-results .app-report-detail-tabs,
	body.ug-theme-v2.app-theme-ruby .app-profit-other-cost-detail-results .app-report-detail-tabs {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-other-cost-detail-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-profit-other-cost-detail-results .app-query-table {
		min-width: 760px;
	}
}

/* Detalhe de custo de mercadoria: resumo, retorno e grade permanecem legíveis
 * no Smartphone sem alterar cálculo, filtros ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-profit-mercadoria-detail-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-mercadoria-detail-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-mercadoria-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-mercadoria-detail .app-report-detail-actions {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-mercadoria-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-mercadoria-detail .app-report-detail-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-mercadoria-detail .app-report-detail-actions input,
	body.ug-theme-v2.app-theme-ruby .app-profit-mercadoria-detail .app-report-detail-actions input {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-mercadoria-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ruby .app-profit-mercadoria-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ugestor .app-profit-mercadoria-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-mercadoria-detail-results .app-query-table-scroll {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-mercadoria-detail-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-profit-mercadoria-detail-results .app-query-table {
		min-width: 760px;
	}
}

/* Detalhe de custo de material: resumo, abas e grades permanecem legíveis no
 * Smartphone sem alterar cálculo, filtros ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-profit-material-detail-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-material-detail-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-material-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-material-detail .app-report-detail-actions {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-material-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-material-detail .app-report-detail-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-material-detail .app-report-detail-actions input,
	body.ug-theme-v2.app-theme-ruby .app-profit-material-detail .app-report-detail-actions input {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-material-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ruby .app-profit-material-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ugestor .app-profit-material-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-material-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-profit-material-detail-results .app-report-detail-tabs,
	body.ug-theme-v2.app-theme-ruby .app-profit-material-detail-results .app-report-detail-tabs {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-material-detail-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-profit-material-detail-results .app-query-table {
		min-width: 760px;
	}
}

/* Detalhe de custo/gasto: resumo, retorno e grade permanecem legíveis no
 * Smartphone sem alterar cálculo, filtros ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-profit-cost-detail-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-cost-detail-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-cost-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-cost-detail .app-report-detail-actions {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-cost-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-cost-detail .app-report-detail-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-cost-detail .app-report-detail-actions input,
	body.ug-theme-v2.app-theme-ruby .app-profit-cost-detail .app-report-detail-actions input {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-cost-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ruby .app-profit-cost-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ugestor .app-profit-cost-detail-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-cost-detail-results .app-query-table-scroll {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-profit-cost-detail-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-profit-cost-detail-results .app-query-table {
		min-width: 760px;
	}
}

/* Custo mensal: seleção de grupos permanece íntegra no Smartphone, sem
 * alterar filtro, seleção, Ajax ou geração do relatório. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .app-selection-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .app-selection-modal-content {
		box-sizing: border-box;
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .app-selection-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .app-selection-modal-grid,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .app-query-table-scroll {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .app-query-table {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .app-selection-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .app-selection-modal-actions input {
		min-height: 44px !important;
	}
}

/* Consulta de RCS de processo: filtro, abas e tabela preservam a área útil
 * no Smartphone sem alterar pesquisa, paginação, ações ou dados. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-query-tabs,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-query-tabs {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-filter-fields input,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-filter-fields select {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-range-fields {
		flex-wrap: wrap;
		gap: 8px;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 48px) !important;
		max-height: calc(100vh - 48px) !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-deletion-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-deletion-actions input {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-filter-fields input,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-filter-fields select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-range-fields {
		display: flex !important;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-range-field,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-range-field {
		box-sizing: border-box;
		margin-right: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-range-field input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-range-field input {
		width: 88px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-query-tabs,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-query-tabs,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-table-scroll {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-table-scroll {
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-table,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-table {
		min-width: 620px;
	}
}

/* Consulta de RCS de saída: filtro, abas e tabela preservam a área útil no
 * Smartphone sem alterar pesquisa, paginação, ações ou dados. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-filter-fields input,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-filter-fields select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-range-fields {
		display: flex !important;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-range-field,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-range-field {
		box-sizing: border-box;
		margin-right: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-range-field input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-range-field input {
		width: 88px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-query-tabs,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-query-tabs,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-table-scroll {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-table-scroll {
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-exit-table,
	body.ug-theme-v2.app-theme-ruby .app-rcs-exit-table {
		min-width: 620px;
	}
}

/* Consulta de Empresas: filtro, situação e grade preservam leitura e toque no
 * Smartphone sem alterar permissões, ações ou paginação. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-filter-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-company-entity-filter-fields input[type="text"] {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-status-filter,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-status-filter {
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-table,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-table {
		min-width: 620px;
	}
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-company-entity-row-actions input[type="image"] {
		box-sizing: content-box !important;
		padding: 12px !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 48px) !important;
		max-height: calc(100vh - 48px) !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-deletion-actions input,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-deletion-actions input {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-company-entity-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-company-entity-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-company-entity-filter-fields input[type="text"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-company-entity-status-filter,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-status-filter {
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-company-entity-status-filter td,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-status-filter td {
		padding: 6px 10px 6px 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-company-entity-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-company-entity-table,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-table {
		min-width: 620px;
	}
}

/* Consulta de Legendas RTS: filtro e grade preservam leitura no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-query-results,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-query-results {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-query-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-query-form .produto-page-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-table {
		min-width: 680px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-query-results .app-query-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-query-results .app-query-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}
}

/* Consulta de Legendas RTS: filtro e grade preservam leitura e rolagem no
 * Smartphone sem alterar pesquisa, ações ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-filter-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-filter-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-filter-fields input[type="text"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-table {
		min-width: 680px;
	}
}

/* Consulta RTS Entrada: filtro, abas e grades preservam leitura no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-query-results,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-query-results,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-query-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-query-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields select,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-query-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-query-form .produto-page-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-range-fields {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-query-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-query-results .app-query-table {
		min-width: 760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-query-results .app-query-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-query-results .app-query-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}
}

/* Consulta RTS Entrada: filtro, abas e grades preservam leitura e rolagem no
 * Smartphone sem alterar pesquisa, exportação, ações ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-filter-fields select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-range-fields {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-range-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-range-fields input[type="text"] {
		width: 88px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-query-results .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-query-results .app-query-table {
		min-width: 760px;
	}
}

/* Consulta RTS Saída: filtro, abas e grades preservam leitura no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-query-results,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-query-results,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-query-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-query-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields select,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-query-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-query-form .produto-page-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-range-fields {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-query-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-query-results .app-query-table {
		min-width: 760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-query-results .app-query-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-query-results .app-query-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}
}

/* Consulta RTS Saída: filtro, abas e grades preservam leitura e rolagem no
 * Smartphone sem alterar pesquisa, exportação, ações ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-filter-fields select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-range-fields {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-range-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-range-fields input[type="text"] {
		width: 88px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-query-results .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-query-results .app-query-table {
		min-width: 760px;
	}
}

/* Consulta de Tributação Frente de Loja: filtro, grade e confirmação
 * preservam largura útil e toque no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-query-form,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-query-form,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-query-results,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-query-results {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-table,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-table {
		min-width: 840px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-query-results .app-query-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-query-results .app-query-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ugestor .app-deletion-confirmation-modal .app-confirmation-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-deletion-confirmation-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Tributação Frente de Loja: campos, seletores e listas locais preservam
 * largura útil e rolagem no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-main-layout,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-main-layout,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-main-layout > tbody,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-main-layout > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-main-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-main-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-main-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-main-layout > tbody > tr > td {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-main-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-main-layout > tbody > tr > td {
		display: block;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-controls,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-controls,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-rate-fields,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-rate-fields {
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-maintenance-form input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-maintenance-form input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-maintenance-form select,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-maintenance-form select,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-maintenance-form .app-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-maintenance-form .app-page-actions input {
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-local-results,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-local-results {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-local-table,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-local-table {
		min-width: 620px;
	}
}

/* Tributação Frente de Loja: campos, seletores e listas locais preservam
 * leitura e rolagem no Smartphone sem alterar regras fiscais ou Ajax. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-main-layout,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-main-layout,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-main-layout > tbody,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-main-layout > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-main-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-main-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-main-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-main-layout > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-controls,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-controls,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-rate-fields,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-rate-fields {
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-maintenance-form .name,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-maintenance-form .name,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-maintenance-form .value,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-maintenance-form .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-maintenance-form .name,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-maintenance-form .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-maintenance-form input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-maintenance-form input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-maintenance-form select,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-maintenance-form select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-local-results,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-local-results {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-local-table,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-local-table {
		min-width: 480px;
	}
}

/* Alíquotas ICMS Geral: matriz entre UFs mantém colunas e rolagem local no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-icms-rate-maintenance-form,
	body.ug-theme-v2.app-theme-ruby .app-icms-rate-maintenance-form,
	body.ug-theme-v2.app-theme-ugestor .app-icms-rate-matrix-scroll,
	body.ug-theme-v2.app-theme-ruby .app-icms-rate-matrix-scroll {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-rate-matrix-scroll,
	body.ug-theme-v2.app-theme-ruby .app-icms-rate-matrix-scroll {
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-rate-matrix,
	body.ug-theme-v2.app-theme-ruby .app-icms-rate-matrix,
	body.ug-theme-v2.app-theme-ugestor .app-icms-rate-matrix-table,
	body.ug-theme-v2.app-theme-ruby .app-icms-rate-matrix-table {
		min-width: 1100px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-rate-matrix input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-icms-rate-matrix input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-icms-rate-maintenance-form .app-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-icms-rate-maintenance-form .app-page-actions input {
		min-height: 44px !important;
	}
}

/* Alíquotas ICMS Geral: matriz entre UFs mantém colunas e rolagem local no
 * Smartphone sem alterar conversão, iterações ou gravação em lote. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-icms-rate-matrix-scroll,
	body.ug-theme-v2.app-theme-ruby .app-icms-rate-matrix-scroll {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-rate-matrix,
	body.ug-theme-v2.app-theme-ruby .app-icms-rate-matrix,
	body.ug-theme-v2.app-theme-ugestor .app-icms-rate-matrix-table,
	body.ug-theme-v2.app-theme-ruby .app-icms-rate-matrix-table {
		min-width: 1100px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-rate-matrix input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-icms-rate-matrix input[type="text"] {
		min-height: 44px;
	}
}

/* Consulta de Tributação Frente de Loja: filtro e grade preservam leitura e
 * rolagem no Smartphone sem alterar regras fiscais, ações ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-filter-fields select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-storefront-tax-table,
	body.ug-theme-v2.app-theme-ruby .app-storefront-tax-table {
		min-width: 840px;
	}
}

/* Cadastro de PDVs: painel, abas, campos e grades internas preservam leitura
 * e toque no Smartphone sem alterar vínculos, regras ou persistência. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-tabs,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-tabs {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}
	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-panel > .rich-panel-body,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-panel > .rich-panel-body,
	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-form .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-form .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-actions input,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-actions input {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-tabs,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-tabs {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-panel > .rich-panel-body,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-panel > .rich-panel-body,
	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-tabs .rich-tabpanel-content {
		padding: 12px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-form .name,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-form .name,
	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-form .value,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-form .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-form .name,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-form .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-pdv-maintenance-form .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-pdv-maintenance-form .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Consulta de PDVs: filtro, calendários e grade preservam leitura e rolagem
 * no Smartphone sem alterar consulta, ações ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-pdv-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-pdv-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-pdv-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-pdv-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-pdv-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-pdv-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-pdv-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-pdv-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-pdv-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-pdv-filter-fields select,
	body.ug-theme-v2.app-theme-ugestor .app-pdv-filter-fields .rich-calendar-input,
	body.ug-theme-v2.app-theme-ruby .app-pdv-filter-fields .rich-calendar-input {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-pdv-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-pdv-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-pdv-table,
	body.ug-theme-v2.app-theme-ruby .app-pdv-table {
		min-width: 820px;
	}
}

/* Configuração de Módulos: seletor e checklist preservam leitura e toque no
 * Smartphone sem alterar ações, permissões ou carregamento. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-access-configuration-fields,
	body.ug-theme-v2.app-theme-ruby .app-access-configuration-fields,
	body.ug-theme-v2.app-theme-ugestor .app-access-configuration-options,
	body.ug-theme-v2.app-theme-ruby .app-access-configuration-options {
		padding: 14px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-access-configuration-selector .name,
	body.ug-theme-v2.app-theme-ruby .app-access-configuration-selector .name,
	body.ug-theme-v2.app-theme-ugestor .app-access-configuration-selector .value,
	body.ug-theme-v2.app-theme-ruby .app-access-configuration-selector .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-access-configuration-selector .name,
	body.ug-theme-v2.app-theme-ruby .app-access-configuration-selector .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-access-configuration-selector select,
	body.ug-theme-v2.app-theme-ruby .app-access-configuration-selector select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-access-configuration-checklist > tbody,
	body.ug-theme-v2.app-theme-ruby .app-access-configuration-checklist > tbody {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-access-configuration-checklist > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-access-configuration-checklist > tbody > tr > td {
		min-height: 44px;
	}
}

/* Consulta de PDVs: filtro, calendario, grade e confirmacao preservam
 * leitura, rolagem local e toque no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-pdv-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-pdv-filter-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}
	body.ug-theme-v2.app-theme-ugestor .app-pdv-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-pdv-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-pdv-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-pdv-filter-fields select {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-pdv-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-pdv-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor .app-pdv-table,
	body.ug-theme-v2.app-theme-ruby .app-pdv-table {
		min-width: 860px;
	}
	body.ug-theme-v2.app-theme-ugestor .app-pdv-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-pdv-row-actions input[type="image"] {
		box-sizing: content-box !important;
		padding: 12px !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-pdv-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-pdv-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 48px) !important;
		max-height: calc(100vh - 48px) !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-pdv-deletion-actions input,
	body.ug-theme-v2.app-theme-ruby .app-pdv-deletion-actions input {
		min-height: 44px !important;
	}
}

/* Cadastro de Empresas: painel, abas, campos e grades internas preservam
 * leitura e toque no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-tabs,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-tabs {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-panel > .rich-panel-body,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-panel > .rich-panel-body,
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-form fieldset,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-form fieldset {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-form .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-form .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-actions input,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-actions input {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-tabs,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-tabs {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-panel > .rich-panel-body,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-panel > .rich-panel-body,
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-tabs .rich-tabpanel-content {
		padding: 12px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-form fieldset,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-form fieldset {
		box-sizing: border-box;
		max-width: 100%;
		padding: 13px 12px 15px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-form .name,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-form .name,
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-form .name_sem_width,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-form .name_sem_width,
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-form .value,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-form .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-form .name,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-form .name,
	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-form .name_sem_width,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-form .name_sem_width {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-company-entity-maintenance-form .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-company-entity-maintenance-form .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Manutenção de RCS de processo: campos, quadrantes e grades locais mantêm
 * leitura, rolagem e toque no Smartphone sem alterar cálculos ou Ajax. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-basic-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-section,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-section,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-quadrants {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-basic-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-basic-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-section input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-section input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-section select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-section select,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-quadrants input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-quadrants select {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-results,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-results,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-table,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-table,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants .rich-table,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-quadrants .rich-table {
		min-width: 720px;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-section-action,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-section-action {
		min-height: 44px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-basic-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-basic-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-basic-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-basic-fields .value,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-section .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-section .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-section .value,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-section .value,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-quadrants .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants .value,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-quadrants .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-basic-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-basic-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-section .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-section .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-quadrants .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-basic-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-basic-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-section input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-section input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-section select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-section select,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-quadrants input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-quadrants select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-section-action,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-section-action {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-results,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-results,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-operation-table,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-operation-table,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-process-maintenance-quadrants .rich-table,
	body.ug-theme-v2.app-theme-ruby .app-rcs-process-maintenance-quadrants .rich-table {
		min-width: 720px;
	}
}

/* Clonagem de RCS de Entrada: formulário preserva leitura e toque no Smartphone. */
body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal-content,
body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal,
	body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal .app-form-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal .app-rcs-clone-code-input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal .app-rcs-clone-code-input,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal .app-rcs-clone-name-input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal .app-rcs-clone-name-input {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-clone-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-clone-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Inclusão de usuário: formulário preserva leitura e toque no Smartphone. */
body.ug-theme-v2.app-theme-ugestor .app-user-create-modal-messages,
body.ug-theme-v2.app-theme-ruby .app-user-create-modal-messages,
body.ug-theme-v2.app-theme-ugestor .app-user-create-modal-panel,
body.ug-theme-v2.app-theme-ruby .app-user-create-modal-panel,
body.ug-theme-v2.app-theme-ugestor .app-user-create-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-user-create-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-user-create-modal,
	body.ug-theme-v2.app-theme-ruby .app-user-create-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-create-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-user-create-modal .app-form-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-create-modal .app-user-create-person-select,
	body.ug-theme-v2.app-theme-ruby .app-user-create-modal .app-user-create-person-select,
	body.ug-theme-v2.app-theme-ugestor .app-user-create-modal .app-user-create-login-input,
	body.ug-theme-v2.app-theme-ruby .app-user-create-modal .app-user-create-login-input,
	body.ug-theme-v2.app-theme-ugestor .app-user-create-modal .app-user-create-password-input,
	body.ug-theme-v2.app-theme-ruby .app-user-create-modal .app-user-create-password-input {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-create-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-user-create-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Seleção de entidade compradora: grade e ações cabem no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-modal,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-modal { width: calc(100vw - 24px) !important; max-width: calc(100vw - 24px) !important; left: 50% !important; transform: translateX(-50%); }
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-modal-content { max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); overflow-y: auto; }
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-grid,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-grid { overflow-x: auto; }
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-grid table,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-grid table { min-width: 620px; }
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-action,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-action,
	body.ug-theme-v2.app-theme-ugestor .app-entity-buyer-selection-actions input,
	body.ug-theme-v2.app-theme-ruby .app-entity-buyer-selection-actions input { min-height: 44px !important; }
}

/* Regras RCS: grade de legenda preserva leitura no Smartphone. */
body.ug-theme-v2.app-theme-ugestor .app-rcs-rules-popup,
body.ug-theme-v2.app-theme-ruby .app-rcs-rules-popup,
body.ug-theme-v2.app-theme-ugestor .app-rcs-rules-panel,
body.ug-theme-v2.app-theme-ruby .app-rcs-rules-panel,
body.ug-theme-v2.app-theme-ugestor .app-rcs-rules-section,
body.ug-theme-v2.app-theme-ruby .app-rcs-rules-section {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-rules-panel,
	body.ug-theme-v2.app-theme-ruby .app-rcs-rules-panel {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor table.app-rcs-rules-grid,
	body.ug-theme-v2.app-theme-ruby table.app-rcs-rules-grid {
		min-width: 560px;
	}
}

/* Lançamentos financeiros: entradas em azul e saídas em vermelho em todos os viewports. */
body.ug-theme-v2.app-theme-ugestor .app-financial-event-query-table .app-financial-value-entry,
body.ug-theme-v2.app-theme-ruby .app-financial-event-query-table .app-financial-value-entry {
	color: var(--ug-color-financial-entry) !important;
	font-variant-numeric: tabular-nums;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-event-query-table .app-financial-value-exit,
body.ug-theme-v2.app-theme-ruby .app-financial-event-query-table .app-financial-value-exit {
	color: var(--ug-color-financial-exit) !important;
	font-variant-numeric: tabular-nums;
}

/* Baixa de título a pagar por evento: a estrutura legada de duas colunas deve
 * empilhar no Smartphone para que cada grade role dentro do próprio painel. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-payable-event-settlement-columns,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-payable-event-settlement-columns,
	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-payable-event-settlement-columns > tbody,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-payable-event-settlement-columns > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-payable-event-settlement-columns > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-payable-event-settlement-columns > tbody > tr {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-payable-event-settlement-columns > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-payable-event-settlement-columns > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-payable-event-settlement-section,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-payable-event-settlement-section,
	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-query-results,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-query-results,
	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-payable-event-settlement-section .app-control,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-payable-event-settlement-section .app-control {
		box-sizing: border-box;
		max-width: 100%;
	}
}

/* Baixa de título a receber por evento: preserva a mesma contenção da baixa a
 * pagar, empilhando as duas colunas legadas antes das grades no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-receivable-event-settlement-columns,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-receivable-event-settlement-columns,
	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-receivable-event-settlement-columns > tbody,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-receivable-event-settlement-columns > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-receivable-event-settlement-columns > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-receivable-event-settlement-columns > tbody > tr {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-receivable-event-settlement-columns > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-receivable-event-settlement-columns > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-receivable-event-settlement-section,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-receivable-event-settlement-section,
	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-query-results,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-query-results,
	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-receivable-event-settlement-section .app-control,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-receivable-event-settlement-section .app-control {
		box-sizing: border-box;
		max-width: 100%;
	}
}

/* Baixa de título de Receita: impede que a distribuição financeira da segunda
 * coluna amplie o documento no Smartphone. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns,
	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns > tbody,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns > tbody > tr {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-section,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-section,
	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-query-results,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-query-results,
	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-section .app-control,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-section .app-control {
		box-sizing: border-box;
		max-width: 100%;
	}
}

/* Baixa de título: a grade legada de duas colunas deve permanecer legível no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-file-list-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-file-list-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-file-list-grid,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-file-list-grid {
		min-width: 680px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-file-list-grid .app-content-panel,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-file-list-grid .app-content-panel {
		box-sizing: border-box;
		min-height: 148px;
	}

	/* Consulta de Contrato: a tabela comercial extensa rola no seu contêiner. */
	body.ug-theme-v2.app-theme-ugestor .app-contract-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-contract-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-query-table,
	body.ug-theme-v2.app-theme-ruby .app-contract-query-table {
		min-width: 1080px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-query-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-contract-query-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	/* Manutenção de Contrato: abas e grades internas não ampliam o Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-contract-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-contract-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-contract-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-contract-maintenance-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-maintenance-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-contract-maintenance-tabs .rich-tab-header {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-maintenance-tabs .app-query-results,
	body.ug-theme-v2.app-theme-ruby .app-contract-maintenance-tabs .app-query-results {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-maintenance-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-contract-maintenance-tabs .app-query-table {
		min-width: 760px;
	}

	/* Processar Imposto: o intervalo fiscal permanece legível no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-tax-processing-panel,
	body.ug-theme-v2.app-theme-ruby .app-tax-processing-panel {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-processing-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-tax-processing-form .app-query-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-processing-form .app-query-date-range input,
	body.ug-theme-v2.app-theme-ruby .app-tax-processing-form .app-query-date-range input {
		max-width: 128px;
	}

	/* Consulta de Ordem de Distribuição: filtros e grade não escapam do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-query-results,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-query-results,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-query-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-query-table,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-query-table {
		min-width: 1040px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	/* Manutenção de Ordem de Distribuição: composição e documentos cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-document-layout,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-document-layout,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-document-results,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-document-results {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-maintenance-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-maintenance-tabs .rich-tab-header {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-document-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-document-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-maintenance-tabs .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-maintenance-tabs .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-document-table,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-document-table {
		min-width: 920px;
	}

	/* Consulta de Baixa Patrimonial: intervalo e filtros permanecem fluidos no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-asset-decommission-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-asset-decommission-filter-fields {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-decommission-date-range,
	body.ug-theme-v2.app-theme-ruby .app-asset-decommission-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	/* Manutenção de Bens Adquiridos: abas e painéis internos preservam o Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-asset-acquired-form-panel,
	body.ug-theme-v2.app-theme-ruby .app-asset-acquired-form-panel,
	body.ug-theme-v2.app-theme-ugestor .app-asset-acquired-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-asset-acquired-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-acquired-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-asset-acquired-tabs .rich-tab-header {
		min-height: 44px;
	}

	/* Manutenção de Baixa Patrimonial: seleção e abas mantêm a largura útil. */
	body.ug-theme-v2.app-theme-ugestor .app-asset-decommission-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-asset-decommission-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-asset-decommission-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-asset-decommission-maintenance-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-decommission-maintenance-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-asset-decommission-maintenance-tabs .rich-tab-header {
		min-height: 44px;
	}

	/* Lista de Períodos: grade e operações por ícone preservam o toque no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-stock-period-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-stock-period-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-period-table,
	body.ug-theme-v2.app-theme-ruby .app-stock-period-table {
		min-width: 540px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-period-row-actions > span,
	body.ug-theme-v2.app-theme-ruby .app-stock-period-row-actions > span {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}

	/* Lista de Períodos por empresa: totais e ações continuam legíveis no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-stock-period-company-table,
	body.ug-theme-v2.app-theme-ruby .app-stock-period-company-table {
		min-width: 1080px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-period-operational-actions .fa-stack,
	body.ug-theme-v2.app-theme-ruby .app-stock-period-operational-actions .fa-stack {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0;
	}

	/* Lista de Períodos Financeiros: grade ampla e operações cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-financial-period-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-financial-period-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-period-table,
	body.ug-theme-v2.app-theme-ruby .app-financial-period-table {
		min-width: 1260px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-period-operational-actions .fa-stack,
	body.ug-theme-v2.app-theme-ruby .app-financial-period-operational-actions .fa-stack {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
		height: 44px;
		margin: 0;
	}

	/* Lista de Períodos Patrimoniais: grade e operações por ícone no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-asset-period-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-asset-period-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-period-table,
	body.ug-theme-v2.app-theme-ruby .app-asset-period-table {
		min-width: 540px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-period-row-actions > span,
	body.ug-theme-v2.app-theme-ruby .app-asset-period-row-actions > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}

	/* Consulta de Previsão de Custo/Despesa: filtro e ações cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-results,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-results,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-table,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-table {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	/* Consulta de Previsão de Venda: filtro, grade e ações no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-results,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-table,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-table {
		min-width: 720px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	/* Manutenção de Previsão de Custo/Despesa: abas e grades internas no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-layout,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-layout,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-maintenance-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-maintenance-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-maintenance-tabs .rich-tab-header {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-entry-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-entry-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-maintenance-tabs .app-query-results,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-maintenance-tabs .app-query-results {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-entry-table,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-entry-table,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-maintenance-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-maintenance-tabs .app-query-table {
		min-width: 720px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-entry-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-entry-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	/* Manutenção de Previsão de Venda: abas e grades internas no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-layout,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-layout,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-maintenance-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-maintenance-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-maintenance-tabs .rich-tab-header {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-entry-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-entry-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-maintenance-tabs .app-query-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-maintenance-tabs .app-query-results {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-entry-table,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-entry-table,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-maintenance-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-maintenance-tabs .app-query-table {
		min-width: 720px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-entry-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-entry-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	/* Balancete: período e aviso contábil preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-trial-balance-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-trial-balance-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-trial-balance-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-trial-balance-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-trial-balance-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-trial-balance-form .app-query-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	/* DCTF Web: período e aviso permanecem legíveis no espaço útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-dctf-web-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-dctf-web-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-dctf-web-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-dctf-web-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-dctf-web-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-dctf-web-form .app-query-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	/* ECF: período e confirmação contábil não excedem o contêiner no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-ecf-generation-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-ecf-generation-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-ecf-generation-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-ecf-generation-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-ecf-generation-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-ecf-generation-form .app-query-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	/* Livro Diário: filtros de período e aviso contábil adaptados ao Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-daily-ledger-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-daily-ledger-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-daily-ledger-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-daily-ledger-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-daily-ledger-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-daily-ledger-form .app-query-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	/* Livro Razão: filtro de período e aviso seguem o contêiner do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-general-ledger-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-general-ledger-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-general-ledger-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-general-ledger-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-general-ledger-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-general-ledger-form .app-query-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	/* SPED Contábil: o período e o aviso respeitam o espaço útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-sped-accounting-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sped-accounting-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sped-accounting-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sped-accounting-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sped-accounting-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-sped-accounting-form .app-query-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	/* SPED ICMS: período e aviso acompanham a largura disponível no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-sped-icms-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sped-icms-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sped-icms-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sped-icms-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sped-icms-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-sped-icms-form .app-query-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	/* SPED PIS/COFINS: período e aviso preservam a largura do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-sped-pis-cofins-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sped-pis-cofins-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sped-pis-cofins-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sped-pis-cofins-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sped-pis-cofins-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-sped-pis-cofins-form .app-query-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	/* Custo mensal: seleção de grupos usa toda a área útil no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .app-selection-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .app-selection-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .app-selection-modal-form,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .app-selection-modal-form {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 0;
}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .app-selection-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .app-selection-modal-content {
	max-height: calc(100vh - 108px);
}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .app-selection-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .app-selection-modal-grid {
	flex: 1 1 auto;
	min-height: 160px;
	overflow: auto;
}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-modal .app-selection-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-modal .app-selection-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

	/* Detalhe de custo/gasto: resumo, retorno e grade ocupam o Tablet sem corte. */
	body.ug-theme-v2.app-theme-ugestor .app-profit-detail-heading,
	body.ug-theme-v2.app-theme-ruby .app-profit-detail-heading,
	body.ug-theme-v2.app-theme-ugestor .app-profit-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-detail .app-report-detail-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

	body.ug-theme-v2.app-theme-ugestor .app-profit-detail .app-report-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-profit-detail .app-report-detail-actions {
	justify-content: flex-end;
}

	body.ug-theme-v2.app-theme-ugestor .app-profit-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ruby .app-profit-detail .app-report-detail-summary,
	body.ug-theme-v2.app-theme-ugestor .app-profit-detail .app-report-detail-summary-table,
	body.ug-theme-v2.app-theme-ruby .app-profit-detail .app-report-detail-summary-table,
	body.ug-theme-v2.app-theme-ugestor .app-profit-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-profit-detail-results {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
}

	/* DRE: filtro e matriz mensal mantêm leitura e rolagem horizontal no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-results,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-results {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-results .app-query-table-scroll {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

	body.ug-theme-v2.app-theme-ugestor .app-profit-statement-matrix,
	body.ug-theme-v2.app-theme-ruby .app-profit-statement-matrix {
	min-width: 1120px !important;
}

	/* Balanço patrimonial: os quatro seletores de período quebram sem corte. */
	body.ug-theme-v2.app-theme-ugestor .app-balance-sheet-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-balance-sheet-filter-fields {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

	body.ug-theme-v2.app-theme-ugestor .app-balance-sheet-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-balance-sheet-period-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

	/* Peso e volume: filtro extenso e grade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-load-volume-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-load-volume-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-load-volume-results,
	body.ug-theme-v2.app-theme-ruby .app-load-volume-results {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

	body.ug-theme-v2.app-theme-ugestor .app-load-volume-results,
	body.ug-theme-v2.app-theme-ruby .app-load-volume-results {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

	/* Comissão: filtros, totalizadores e grade preservam a largura útil no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-sales-commission-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-commission-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sales-commission-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-commission-results {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

	body.ug-theme-v2.app-theme-ugestor .app-sales-commission-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-commission-results {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

	/* Composição: seleção, listas intermediárias e resultado preservam o Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-product-composition-input,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-input {
	box-sizing: border-box;
	max-width: 100%;
}

	body.ug-theme-v2.app-theme-ugestor .app-product-composition-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-selection-results,
	body.ug-theme-v2.app-theme-ugestor .app-product-composition-results,
	body.ug-theme-v2.app-theme-ruby .app-product-composition-results {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

	/* Contas a pagar: filtro e grade financeira preservam a largura no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-accounts-payable-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-accounts-payable-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-accounts-payable-results,
	body.ug-theme-v2.app-theme-ruby .app-accounts-payable-results {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

	body.ug-theme-v2.app-theme-ugestor .app-accounts-payable-results,
	body.ug-theme-v2.app-theme-ruby .app-accounts-payable-results {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

	/* Contas a receber: filtro e grade financeira preservam a largura no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-accounts-receivable-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-accounts-receivable-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-accounts-receivable-results,
	body.ug-theme-v2.app-theme-ruby .app-accounts-receivable-results {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

	body.ug-theme-v2.app-theme-ugestor .app-accounts-receivable-results,
	body.ug-theme-v2.app-theme-ruby .app-accounts-receivable-results {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-tabs .rich-tab-header {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-query-table,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-query-table {
		min-width: 1120px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-query-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-query-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-entry-form .app-commission-table-entry-fields,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-entry-form .app-commission-table-entry-fields {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-entry-form .app-commission-table-entry-fields fieldset,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-entry-form .app-commission-table-entry-fields fieldset {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-entry-form .app-commission-table-entry-fields table,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-entry-form .app-commission-table-entry-fields table {
		min-width: 640px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-entry-form .app-commission-table-entry-fields input,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-entry-form .app-commission-table-entry-fields input {
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-event-entry-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-entry-tabs .rich-tab-header {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-event-entry-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-entry-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-generation-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-generation-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-generation-table,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-generation-table {
		min-width: 900px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-generation-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-generation-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-remittance-generation-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-payment-remittance-generation-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-remittance-generation-table,
	body.ug-theme-v2.app-theme-ruby .app-payment-remittance-generation-table {
		min-width: 1540px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-remittance-generation-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-payment-remittance-generation-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-query-table,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-query-table {
		min-width: 860px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-event-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-event-query-table,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-query-table {
		min-width: 980px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-event-query-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-query-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-return-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receipt-return-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-return-query-table,
	body.ug-theme-v2.app-theme-ruby .app-receipt-return-query-table {
		min-width: 1640px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-return-query-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-receipt-return-query-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-query-table,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-query-table {
		min-width: 980px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-query-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-query-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receivable-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-query-table,
	body.ug-theme-v2.app-theme-ruby .app-receivable-query-table {
		min-width: 1760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-query-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-receivable-query-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-return-query-form .app-payment-return-upload-section,
	body.ug-theme-v2.app-theme-ruby .app-payment-return-query-form .app-payment-return-upload-section {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-return-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-payment-return-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-return-query-table,
	body.ug-theme-v2.app-theme-ruby .app-payment-return-query-table {
		min-width: 680px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-return-query-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-payment-return-query-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-remittance-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-payment-remittance-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-remittance-query-table,
	body.ug-theme-v2.app-theme-ruby .app-payment-remittance-query-table {
		min-width: 820px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-remittance-query-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-payment-remittance-query-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-payable-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-query-table,
	body.ug-theme-v2.app-theme-ruby .app-payable-query-table {
		min-width: 1540px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-query-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-payable-query-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns {
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-columns > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-section,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-section {
		box-sizing: border-box;
		margin: 0 0 16px;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-section .app-control,
	body.ug-theme-v2.app-theme-ruby .app-receivable-revenue-settlement-form .app-receivable-revenue-settlement-section .app-control {
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-receivable-event-settlement-columns,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-receivable-event-settlement-columns {
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-receivable-event-settlement-columns > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-receivable-event-settlement-columns > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-receivable-event-settlement-section,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-receivable-event-settlement-section {
		box-sizing: border-box;
		margin: 0 0 16px;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-event-settlement-form .app-receivable-event-settlement-section .app-control,
	body.ug-theme-v2.app-theme-ruby .app-receivable-event-settlement-form .app-receivable-event-settlement-section .app-control {
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-payable-event-settlement-columns,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-payable-event-settlement-columns {
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-payable-event-settlement-columns > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-payable-event-settlement-columns > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-payable-event-settlement-section,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-payable-event-settlement-section {
		box-sizing: border-box;
		margin: 0 0 16px;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-event-settlement-form .app-payable-event-settlement-section .app-control,
	body.ug-theme-v2.app-theme-ruby .app-payable-event-settlement-form .app-payable-event-settlement-section .app-control {
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-settlement-form .app-payable-settlement-columns,
	body.ug-theme-v2.app-theme-ruby .app-payable-settlement-form .app-payable-settlement-columns {
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-settlement-form .app-payable-settlement-columns > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-payable-settlement-form .app-payable-settlement-columns > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-settlement-form .app-payable-settlement-section,
	body.ug-theme-v2.app-theme-ruby .app-payable-settlement-form .app-payable-settlement-section {
		box-sizing: border-box;
		margin: 0 0 16px;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payable-settlement-form .app-payable-settlement-section .app-control,
	body.ug-theme-v2.app-theme-ruby .app-payable-settlement-form .app-payable-settlement-section .app-control {
		max-width: 100%;
	}

	/* Custo mensal: filtros de produto e grupos usam toda a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-filter-fields > table,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-filter-fields > table,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-filter-fields fieldset,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-filter-fields fieldset {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cost-filter-fields > table,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cost-filter-fields > table {
		table-layout: fixed;
	}

	/* Depreciação: período, grupo e bem reorganizam-se sem corte no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-depreciation-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-depreciation-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-depreciation-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-depreciation-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* Estoque por característica: filtros e seleções múltiplas cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-stock-characteristics-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-stock-characteristics-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-stock-characteristics-selection-grid,
	body.ug-theme-v2.app-theme-ruby .app-stock-characteristics-selection-grid {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-characteristics-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-stock-characteristics-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* Estoque ideal: período e seleção de grupos não ampliam o Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-stock-ideal-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-stock-ideal-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-stock-ideal-selection-grid,
	body.ug-theme-v2.app-theme-ruby .app-stock-ideal-selection-grid {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-ideal-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-stock-ideal-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* Movimento de estoque: período, classificações e ordenação cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-stock-movement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-stock-movement-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-stock-movement-filter-fields fieldset,
	body.ug-theme-v2.app-theme-ruby .app-stock-movement-filter-fields fieldset {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-movement-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-stock-movement-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* Faturamento: filtros, ações e grade ficam contidos no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-report-actions,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-report-actions {
		display: flex;
		justify-content: flex-end;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-revenue-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-sales-revenue-results .app-query-table {
		min-width: 760px;
	}

	/* Kardex: filtros, ações e colunas densas permanecem no contêiner do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-kardex-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-kardex-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-kardex-results,
	body.ug-theme-v2.app-theme-ruby .app-kardex-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-kardex-report-actions,
	body.ug-theme-v2.app-theme-ruby .app-kardex-report-actions {
		display: flex;
		justify-content: flex-end;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-kardex-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-kardex-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-kardex-results,
	body.ug-theme-v2.app-theme-ruby .app-kardex-results {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-kardex-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-kardex-results .app-query-table {
		min-width: 1420px;
	}

	/* COFINS sintético: período e entidade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-cofins-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cofins-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-cofins-summary-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* ICMS sintético: período e entidade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-icms-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-icms-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-icms-summary-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* IPI sintético: período e entidade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-ipi-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-ipi-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-ipi-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-ipi-summary-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* IRPJ/CSLL sintético: período e entidade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-irpj-csll-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-irpj-csll-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-irpj-csll-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-irpj-csll-summary-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* ISS analítico: período e entidade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-iss-analysis-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-iss-analysis-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-iss-analysis-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-iss-analysis-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* ISS sintético: período e entidade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-iss-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-iss-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-iss-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-iss-summary-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* PIS sintético: período e entidade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-pis-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-pis-summary-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-pis-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-pis-summary-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* Entrada PIS/COFINS: período e entidade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-cofins-entry-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cofins-entry-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-entry-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-cofins-entry-period-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

	/* Saída PIS/COFINS: período e entidade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-cofins-output-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cofins-output-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cofins-output-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-cofins-output-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* Entrada ICMS/IPI: período e entidade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-icms-entry-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-icms-entry-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-entry-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-icms-entry-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* Saída ICMS/IPI: período e entidade preservam a largura útil do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-icms-output-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-icms-output-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-icms-output-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-icms-output-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* Retenção fiscal: nota, período e entidade preservam a largura do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-withholding-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-withholding-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-withholding-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-withholding-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* Movimento bancário: filtros e dois resumos preservam a largura do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-results,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-result-columns,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-result-columns {
		display: flex;
		flex-wrap: wrap;
		gap: 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-movement-result-column,
	body.ug-theme-v2.app-theme-ruby .app-bank-movement-result-column {
		box-sizing: border-box;
		float: none;
		flex: 1 1 320px;
		min-width: 0;
		margin-left: 0;
		padding-left: 0;
		padding-right: 0;
	}

	/* Operacional financeiro de banco: filtros e grade extensa cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-results,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-results,
	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-operational-table,
	body.ug-theme-v2.app-theme-ruby .app-bank-operational-table {
		min-width: 980px;
	}

	/* Operacional financeiro de caixa: filtros e grade extensa cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-results,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-results,
	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cash-operational-table,
	body.ug-theme-v2.app-theme-ruby .app-cash-operational-table {
		min-width: 920px;
	}

	/* Extrato de adiantamento: filtros, totais e tabela cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-results,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-results,
	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-advance-statement-table,
	body.ug-theme-v2.app-theme-ruby .app-advance-statement-table {
		min-width: 960px;
	}

	/* Previsão de custo/despesa: seletores extensos e período não ampliam o Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-budget-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-budget-forecast-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-budget-forecast-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-budget-forecast-period-controls {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	/* DFC diária: filtros e tabelas de projeção preservam rolagem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-results,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-results,
	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-detail-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-period-controls {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-summary-table,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-summary-table {
		min-width: 1080px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-daily-cash-flow-detail-table,
	body.ug-theme-v2.app-theme-ruby .app-daily-cash-flow-detail-table {
		min-width: 840px;
	}

	/* DFC mensal: matrizes anuais rolam no resultado, sem ampliar o Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-results,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-results,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	/* O legado fixa 111% inline; este escopo o contém somente nesta matriz. */
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-summary-panel,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-summary-panel {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-summary-table,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-summary-table,
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-table,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-table {
		min-width: 2800px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-detail-table,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-detail-table {
		min-width: 920px;
	}

	/* Filtro da DFC mensal: árvore e opções não ampliam o Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-monthly-cash-flow-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-monthly-cash-flow-period-controls {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	/* DFC projetada: período, opções e árvore de centro de custo cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-projected-cash-flow-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-projected-cash-flow-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-projected-cash-flow-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-projected-cash-flow-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-projected-cash-flow-date-range,
	body.ug-theme-v2.app-theme-ruby .app-projected-cash-flow-date-range {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	/* DRE projetada: período e árvore de centro de custo cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-projected-income-statement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-projected-income-statement-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-projected-income-statement-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-projected-income-statement-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-projected-income-statement-date-range,
	body.ug-theme-v2.app-theme-ruby .app-projected-income-statement-date-range {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	/* Entradas e saídas: filtro extenso permanece contido no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-financial-flow-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-financial-flow-forecast-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-flow-forecast-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-financial-flow-forecast-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-financial-flow-forecast-date-range,
	body.ug-theme-v2.app-theme-ruby .app-financial-flow-forecast-date-range {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	/* Previsão de receita: filtros, autocompletes e árvores cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-period-controls {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	/* Previsão por vendedor: período, autocomplete e árvore cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-sales-representative-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-representative-forecast-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-representative-forecast-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-sales-representative-forecast-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-sales-representative-forecast-date-range,
	body.ug-theme-v2.app-theme-ruby .app-sales-representative-forecast-date-range {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	/* Composição de produção: filtro e grade extensa ficam contidos no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-production-composition-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-production-composition-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-production-composition-results,
	body.ug-theme-v2.app-theme-ruby .app-production-composition-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-composition-results,
	body.ug-theme-v2.app-theme-ruby .app-production-composition-results {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-composition-table,
	body.ug-theme-v2.app-theme-ruby .app-production-composition-table {
		min-width: 1680px;
	}

	/* Produto comprado: filtro e grade de compras ficam contidos no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-purchased-product-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-purchased-product-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-purchased-product-results,
	body.ug-theme-v2.app-theme-ruby .app-purchased-product-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchased-product-results,
	body.ug-theme-v2.app-theme-ruby .app-purchased-product-results {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchased-product-table,
	body.ug-theme-v2.app-theme-ruby .app-purchased-product-table {
		min-width: 1440px;
	}

	/* Produto faturado: seleção auxiliar e grade de resultados cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-results,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-results,
	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-selection-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-results,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-results,
	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-selection-results {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-selector .name,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-selector .name,
	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-selector .value,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-selector .value {
		box-sizing: border-box;
		display: block;
		float: none;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-selection-table {
		min-width: 760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoiced-product-table,
	body.ug-theme-v2.app-theme-ruby .app-invoiced-product-table {
		min-width: 1780px;
	}

	/* Produto agrupado por pedido: seleção e resultado ficam contidos no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-requested-product-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-requested-product-results,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-results,
	body.ug-theme-v2.app-theme-ugestor .app-requested-product-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-selection-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-requested-product-results,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-results,
	body.ug-theme-v2.app-theme-ugestor .app-requested-product-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-selection-results {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-requested-product-selector .name,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-selector .name,
	body.ug-theme-v2.app-theme-ugestor .app-requested-product-selector .value,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-selector .value {
		box-sizing: border-box;
		display: block;
		float: none;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-requested-product-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-selection-table {
		min-width: 760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-requested-product-table,
	body.ug-theme-v2.app-theme-ruby .app-requested-product-table {
		min-width: 1640px;
	}

	/* Detalhamento de pedido: seleção e resultado ficam contidos no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-order-detail-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-order-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-results,
	body.ug-theme-v2.app-theme-ugestor .app-order-detail-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-selection-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-order-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-results,
	body.ug-theme-v2.app-theme-ugestor .app-order-detail-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-selection-results {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-order-detail-product-selector .name,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-product-selector .name,
	body.ug-theme-v2.app-theme-ugestor .app-order-detail-product-selector .value,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-product-selector .value {
		box-sizing: border-box;
		display: block;
		float: none;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-order-detail-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-selection-table {
		min-width: 760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-order-detail-table,
	body.ug-theme-v2.app-theme-ruby .app-order-detail-table {
		min-width: 1720px;
	}

	/* Produto vendido: seleção auxiliar e resultado ficam contidos no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-sold-product-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sold-product-results,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-results,
	body.ug-theme-v2.app-theme-ugestor .app-sold-product-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-selection-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sold-product-results,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-results,
	body.ug-theme-v2.app-theme-ugestor .app-sold-product-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-selection-results {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sold-product-selector .name,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-selector .name,
	body.ug-theme-v2.app-theme-ugestor .app-sold-product-selector .value,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-selector .value {
		box-sizing: border-box;
		display: block;
		float: none;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sold-product-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-selection-table {
		min-width: 760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sold-product-table,
	body.ug-theme-v2.app-theme-ruby .app-sold-product-table {
		min-width: 1640px;
	}

	/* Rentabilidade: filtros e ordenação não ampliam o Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-product-profitability-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-product-profitability-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-product-profitability-filter-fields fieldset,
	body.ug-theme-v2.app-theme-ruby .app-product-profitability-filter-fields fieldset {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	/* Requisição de estoque: filtros, ordenação e grade cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-filter-fields fieldset,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-filter-fields fieldset,
	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-results,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-results,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-results {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-requisition-table,
	body.ug-theme-v2.app-theme-ruby .app-stock-requisition-table {
		min-width: 1240px;
	}

	/* Resumo da folha: seletor de centro de custo e resumos não excedem o Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-cost-center,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-cost-center,
	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-results,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payroll-summary-cost-center-tree,
	body.ug-theme-v2.app-theme-ruby .app-payroll-summary-cost-center-tree {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	/* Compra por forma de pagamento: resultado e retorno permanecem alinhados no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-payment-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-payment-detail-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-detail-table,
	body.ug-theme-v2.app-theme-ruby .app-payment-detail-table {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-payment-detail-actions {
		display: flex;
		justify-content: flex-end;
		width: 100%;
	}

	/* Compra por forma de pagamento: período e resultado paginado preservam a leitura no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-payment-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-payment-summary-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-payment-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-payment-summary-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-payment-summary-results,
	body.ug-theme-v2.app-theme-ruby .app-payment-summary-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-summary-results,
	body.ug-theme-v2.app-theme-ruby .app-payment-summary-results {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-summary-table,
	body.ug-theme-v2.app-theme-ruby .app-payment-summary-table {
		min-width: 740px;
	}

	/* Receita por forma de recebimento: resultado e retorno permanecem alinhados no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-receipt-detail-results,
	body.ug-theme-v2.app-theme-ruby .app-receipt-detail-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-detail-table,
	body.ug-theme-v2.app-theme-ruby .app-receipt-detail-table {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-detail-actions,
	body.ug-theme-v2.app-theme-ruby .app-receipt-detail-actions {
		display: flex;
		justify-content: flex-end;
		width: 100%;
	}

	/* Receita por forma de recebimento: período, representante e grade cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-representative,
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-representative,
	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-results,
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-results,
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-results {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-summary-table,
	body.ug-theme-v2.app-theme-ruby .app-receipt-summary-table {
		min-width: 740px;
	}

	/* Saída de produto: filtros, seleções auxiliares e grade detalhada cabem no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-product-output-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-product-output-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-product-output-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-product-output-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-product-output-representative,
	body.ug-theme-v2.app-theme-ruby .app-product-output-representative,
	body.ug-theme-v2.app-theme-ugestor .app-product-output-customer,
	body.ug-theme-v2.app-theme-ruby .app-product-output-customer,
	body.ug-theme-v2.app-theme-ugestor .app-product-output-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-product-output-selection-results,
	body.ug-theme-v2.app-theme-ugestor .app-product-output-results,
	body.ug-theme-v2.app-theme-ruby .app-product-output-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-output-selection-results,
	body.ug-theme-v2.app-theme-ruby .app-product-output-selection-results,
	body.ug-theme-v2.app-theme-ugestor .app-product-output-results,
	body.ug-theme-v2.app-theme-ruby .app-product-output-results {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-output-selector .name,
	body.ug-theme-v2.app-theme-ruby .app-product-output-selector .name,
	body.ug-theme-v2.app-theme-ugestor .app-product-output-selector .value,
	body.ug-theme-v2.app-theme-ruby .app-product-output-selector .value {
		box-sizing: border-box;
		display: block;
		float: none;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-output-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-product-output-selection-table {
		min-width: 940px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-output-table,
	body.ug-theme-v2.app-theme-ruby .app-product-output-table {
		min-width: 1360px;
	}

	/* Serviços prestados: filtros e grade detalhada preservam a leitura no Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-service-provided-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-service-provided-period-controls,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-period-controls,
	body.ug-theme-v2.app-theme-ugestor .app-service-provided-customer,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-customer,
	body.ug-theme-v2.app-theme-ugestor .app-service-provided-representative,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-representative,
	body.ug-theme-v2.app-theme-ugestor .app-service-provided-results,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-service-provided-results,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-results {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-service-provided-table,
	body.ug-theme-v2.app-theme-ruby .app-service-provided-table {
		min-width: 1500px;
	}

	/* Movimento de caixa: filtro e dois resumos preservam a largura do Tablet. */
	body.ug-theme-v2.app-theme-ugestor .app-cash-movement-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-cash-movement-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-cash-movement-results,
	body.ug-theme-v2.app-theme-ruby .app-cash-movement-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cash-movement-result-columns,
	body.ug-theme-v2.app-theme-ruby .app-cash-movement-result-columns {
		display: flex;
		flex-wrap: wrap;
		gap: 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cash-movement-result-column,
	body.ug-theme-v2.app-theme-ruby .app-cash-movement-result-column {
		box-sizing: border-box;
		float: none;
		flex: 1 1 320px;
		min-width: 0;
		margin-left: 0;
		padding-left: 0;
		padding-right: 0;
	}
}

/* Confirmação externa de cotação: mantém a mensagem centralizada no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quotation-sent-status,
	body.ug-theme-v2.app-theme-ruby .app-quotation-sent-status,
	body.ug-theme-v2.app-theme-ugestor .app-quotation-unavailable-status,
	body.ug-theme-v2.app-theme-ruby .app-quotation-unavailable-status {
		box-sizing: border-box;
		min-height: calc(100vh - 96px);
		min-height: calc(100dvh - 96px);
		padding: 32px 24px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-sent-status .app-quotation-sent-status-card,
	body.ug-theme-v2.app-theme-ruby .app-quotation-sent-status .app-quotation-sent-status-card,
	body.ug-theme-v2.app-theme-ugestor .app-quotation-unavailable-status .app-quotation-unavailable-status-card,
	body.ug-theme-v2.app-theme-ruby .app-quotation-unavailable-status .app-quotation-unavailable-status-card {
		box-sizing: border-box;
		width: 100%;
		max-width: 720px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Consulta de cotações: cabeçalho, filtro e grade permanecem íntegros no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quotation-query .app-page-heading,
	body.ug-theme-v2.app-theme-ruby .app-quotation-query .app-page-heading {
		align-items: flex-start;
		gap: 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-query .app-page-actions,
	body.ug-theme-v2.app-theme-ruby .app-quotation-query .app-page-actions {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-query .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-quotation-query .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-query .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-quotation-query .app-query-table {
		min-width: 1080px;
	}
}

/* Análise de cotações: filtro operacional e grade comparativa cabem no
 * Tablet, mantendo a rolagem no resultado. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-cotacao-analysis-query .app-page-heading,
	body.ug-theme-v2.app-theme-ruby .app-cotacao-analysis-query .app-page-heading {
		align-items: flex-start;
		gap: 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cotacao-analysis-query .app-page-actions,
	body.ug-theme-v2.app-theme-ruby .app-cotacao-analysis-query .app-page-actions {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cotacao-analysis-query .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-cotacao-analysis-query .app-filter-export-actions {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cotacao-analysis-query .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-cotacao-analysis-query .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-cotacao-analysis-query .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-cotacao-analysis-query .app-query-table {
		min-width: 1080px;
	}
}

/* Consulta de compras: preserva filtro extenso, grade e paginador no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-purchase-query .app-page-heading,
	body.ug-theme-v2.app-theme-ruby .app-purchase-query .app-page-heading {
		align-items: flex-start;
		gap: 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-query .app-page-actions,
	body.ug-theme-v2.app-theme-ruby .app-purchase-query .app-page-actions {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-query .app-query-filter-grid,
	body.ug-theme-v2.app-theme-ruby .app-purchase-query .app-query-filter-grid {
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-query .app-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-purchase-query .app-query-results .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-query .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-purchase-query .app-query-table {
		min-width: 920px;
	}
}

/* Reprovação de requisição de cotação: preserva resumo, observação e ações
 * em uma área rolável no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal .app-quote-rejection-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal .app-quote-rejection-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal,
	body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal .app-quote-rejection-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal .app-quote-rejection-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal .app-quote-rejection-modal-fields textarea,
	body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal .app-quote-rejection-modal-fields textarea,
	body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal .app-quote-rejection-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal .app-quote-rejection-modal-actions .app-button {
		box-sizing: border-box;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal .app-quote-rejection-modal-fields textarea,
	body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal .app-quote-rejection-modal-fields textarea {
		width: 100%;
	}
}

/* Centro de custo da requisição: árvore e ações ficam contidas no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal .app-quotation-cost-center-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal .app-quotation-cost-center-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal,
	body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal .app-quotation-cost-center-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal .app-quotation-cost-center-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal .app-quotation-cost-center-modal-tabs,
	body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal .app-quotation-cost-center-modal-tabs {
		min-width: 0;
		overflow-x: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal .app-quotation-cost-center-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal .app-quotation-cost-center-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Gerenciar produto da cotação: abas e listas internas permanecem utilizáveis
 * no Tablet, sem tocar nos includes nem nos seus fluxos Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-quotation-product-manager-modal .app-quotation-product-manager-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quotation-product-manager-modal .app-quotation-product-manager-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quotation-product-manager-modal,
	body.ug-theme-v2.app-theme-ruby .app-quotation-product-manager-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-product-manager-modal .app-quotation-product-manager-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quotation-product-manager-modal .app-quotation-product-manager-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-product-manager-modal .app-quotation-product-manager-modal-tabs,
	body.ug-theme-v2.app-theme-ruby .app-quotation-product-manager-modal .app-quotation-product-manager-modal-tabs {
		min-width: 0;
		overflow-x: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-product-manager-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quotation-product-manager-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quotation-product-manager-modal .app-quotation-product-manager-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-quotation-product-manager-modal .app-quotation-product-manager-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Exclusão de requisição de cotação: confirmação permanece contida no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-quotation-request-delete-modal .app-quotation-request-delete-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quotation-request-delete-modal .app-quotation-request-delete-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-delete-modal,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-delete-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-delete-modal .app-quotation-request-delete-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-delete-modal .app-quotation-request-delete-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-delete-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-delete-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-delete-modal .app-quotation-request-delete-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-delete-modal .app-quotation-request-delete-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Estorno de requisição de cotação: usa o mesmo contrato de confirmação no
 * Tablet sem modificar a operação legada. */
body.ug-theme-v2.app-theme-ugestor .app-quotation-request-reversal-modal .app-quotation-request-reversal-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quotation-request-reversal-modal .app-quotation-request-reversal-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-reversal-modal,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-reversal-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-reversal-modal .app-quotation-request-reversal-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-reversal-modal .app-quotation-request-reversal-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-reversal-modal .app-quotation-request-reversal-modal-fields textarea,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-reversal-modal .app-quotation-request-reversal-modal-fields textarea,
	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-reversal-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-reversal-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-reversal-modal .app-quotation-request-reversal-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-reversal-modal .app-quotation-request-reversal-modal-actions .app-button {
		box-sizing: border-box;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-reversal-modal .app-quotation-request-reversal-modal-fields textarea,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-reversal-modal .app-quotation-request-reversal-modal-fields textarea {
		width: 100%;
	}
}

/* Aprovação de requisição de cotação: mantém confirmação e observação
 * legíveis e acionáveis no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-quotation-request-approval-modal .app-quotation-request-approval-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quotation-request-approval-modal .app-quotation-request-approval-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-approval-modal,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-approval-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-approval-modal .app-quotation-request-approval-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-approval-modal .app-quotation-request-approval-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-approval-modal .app-quotation-request-approval-modal-fields textarea,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-approval-modal .app-quotation-request-approval-modal-fields textarea,
	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-approval-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-approval-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-approval-modal .app-quotation-request-approval-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-approval-modal .app-quotation-request-approval-modal-actions .app-button {
		box-sizing: border-box;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-request-approval-modal .app-quotation-request-approval-modal-fields textarea,
	body.ug-theme-v2.app-theme-ruby .app-quotation-request-approval-modal .app-quotation-request-approval-modal-fields textarea {
		width: 100%;
	}
}

/* Forma de Recebimento da Receita: contem valores, vencimentos e
 * parcelamento no Tablet sem alterar os bindings financeiros legados. */
body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-revenue-receipt-modal-content,
body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-revenue-receipt-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-revenue-receipt-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-revenue-receipt-modal-actions .app-button {
	min-height: 44px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
		max-height: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-revenue-receipt-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-revenue-receipt-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-revenue-receipt-modal-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-revenue-receipt-modal-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-revenue-receipt-modal-fields select,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-revenue-receipt-modal-fields select,
	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-modal-close-button {
		min-height: 44px !important;
	}
}

/* Editar Valores do Item: resumo, campos de cálculo e ações respeitam o
 * viewport Tablet, sem alterar máscaras, cálculos ou confirmações Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-quote-item-value-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quote-item-value-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-quote-item-value-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-quote-item-value-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quote-item-value-modal,
	body.ug-theme-v2.app-theme-ruby .app-quote-item-value-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-item-value-modal .app-quote-item-value-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quote-item-value-modal .app-quote-item-value-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-item-value-modal .app-quote-item-value-modal-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-quote-item-value-modal .app-quote-item-value-modal-fields input[type="text"] {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-item-value-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quote-item-value-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quote-item-value-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-quote-item-value-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Consulta de Itens de Despesa: as cinco abas mantem as tabelas RichFaces
 * preservadas e confinam sua rolagem no resultado, inclusive no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-expense-item-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-expense-item-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-expense-item-query-tabs,
body.ug-theme-v2.app-theme-ruby .app-expense-item-query-tabs {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-expense-item-query-tabs .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-expense-item-query-tabs .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-expense-item-query-tabs .app-query-table,
body.ug-theme-v2.app-theme-ruby .app-expense-item-query-tabs .app-query-table {
	min-width: 840px;
}

body.ug-theme-v2.app-theme-ugestor .app-expense-item-query-tabs .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-expense-item-query-tabs .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-expense-item-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-expense-item-filter-fields {
		max-width: none;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-item-query-tabs .rich-tabhdr-cell,
	body.ug-theme-v2.app-theme-ruby .app-expense-item-query-tabs .rich-tabhdr-cell {
		white-space: nowrap;
	}
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls input[type="text"]:focus,
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls input[type="text"]:focus,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls input[type="password"]:focus,
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls input[type="password"]:focus,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls select:focus,
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls select:focus,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls textarea:focus,
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls textarea:focus {
	border-color: #0d8ea5 !important;
	border-color: var(--ug-color-focus) !important;
	outline: 0 !important;
	box-shadow: 0 0 0 2px rgba(13, 142, 165, .14) !important;
	box-shadow: var(--ug-shadow-focus) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls input[disabled],
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls input[disabled],
body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls input[readonly],
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls input[readonly],
body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls select[disabled],
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls select[disabled],
body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls textarea[disabled],
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls textarea[disabled],
body.ug-theme-v2.app-theme-ugestor .conteudo .app-standard-controls textarea[readonly],
body.ug-theme-v2.app-theme-ruby .conteudo .app-standard-controls textarea[readonly] {
	border-color: #d7e0e8 !important;
	border-color: var(--ug-color-border-disabled) !important;
	background: #f3f6f9 !important;
	background: var(--ug-color-surface-disabled) !important;
	color: #6c7d91 !important;
	color: var(--ug-color-text-disabled) !important;
}

/* Tipografia literal do cabecalho de manutencao da baseline Produtos. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-eyebrow,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-eyebrow {
	display: block;
	margin: 0 0 4px !important;
	color: #e94a16 !important;
	color: var(--ug-color-accent-strong) !important;
	font-size: 11px !important;
	font-weight: bold;
	letter-spacing: .08em;
	line-height: 1.35;
	text-transform: uppercase;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-heading h2,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-heading h2 {
	margin: 0 0 5px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
	font-size: 25px !important;
	font-weight: bold;
	line-height: 1.18;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-heading p,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-heading p {
	max-width: 760px;
	margin: 0 !important;
	color: #58708d !important;
	color: var(--ug-color-text-muted) !important;
	font-size: 13px !important;
	line-height: 1.45;
}

/* Acoes principais existentes na extremidade direita do cabecalho. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-actions {
	position: static !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	z-index: 2;
	display: flex !important;
	flex: 0 0 auto;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 10px !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: right !important;
	transform: none !important;
	white-space: nowrap;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-actions input[type="submit"],
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-actions input[type="submit"],
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-actions input[type="button"],
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-actions input[type="button"] {
	box-sizing: border-box;
	min-width: 112px !important;
	min-height: 36px !important;
	margin: 0 !important;
	padding: 8px 17px !important;
	border-radius: 3px !important;
	border-radius: var(--ug-radius-control) !important;
	font-size: 13px !important;
	font-weight: bold;
	letter-spacing: .01em;
	white-space: nowrap;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions .app-action-primary,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions .app-action-primary,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions .produto-action-primary,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions .produto-action-primary {
	border-color: #e94a16 !important;
	border-color: var(--ug-color-accent-strong) !important;
	background: #ff5a1f !important;
	background: var(--ug-color-accent) !important;
	background-image: none !important;
	color: #ffffff !important;
	color: var(--ug-color-surface) !important;
	box-shadow: 0 4px 10px rgba(233, 74, 22, .18);
	box-shadow: var(--ug-shadow-action-primary);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions .app-action-primary:hover,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions .app-action-primary:hover,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions .produto-action-primary:hover,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions .produto-action-primary:hover {
	border-color: #cf3810 !important;
	border-color: var(--ug-color-accent-hover) !important;
	background: #e94a16 !important;
	background: var(--ug-color-accent-strong) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions .app-action-secondary,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions .app-action-secondary,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions .app-action-auxiliary,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions .app-action-auxiliary,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions .produto-action-secondary,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions .produto-action-secondary {
	border-color: #cbd8e8 !important;
	border-color: var(--ug-color-border-action-secondary) !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
	background-image: none !important;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions .app-action-secondary:hover,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions .app-action-secondary:hover,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions .app-action-auxiliary:hover,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions .app-action-auxiliary:hover,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions .produto-action-secondary:hover,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions .produto-action-secondary:hover {
	border-color: #ff9a77 !important;
	border-color: var(--ug-color-border-action-hover) !important;
	background: #fff4ef !important;
	background: var(--ug-color-surface-action-hover) !important;
	color: #e94a16 !important;
	color: var(--ug-color-accent-strong) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions input[type="submit"]:focus,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions input[type="submit"]:focus,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-actions input[type="button"]:focus,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-actions input[type="button"]:focus {
	border-color: #19b8da !important;
	border-color: var(--ug-color-focus-action) !important;
	box-shadow: 0 0 0 3px rgba(25, 201, 232, .18) !important;
	box-shadow: var(--ug-shadow-focus-action) !important;
	outline: 0;
}

@media screen and (max-width: 850px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-actions,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-actions {
		justify-content: flex-end !important;
		width: 100% !important;
		margin: 14px 0 0 !important;
		white-space: normal;
	}
}

@media screen and (max-width: 480px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-actions input[type="button"],
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-actions input[type="button"] {
		flex: 1 1 100%;
		width: 100% !important;
	}
}

/* Variante literal de Produtos: estrutura distinta do cabecalho generico. */
body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading,
body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading {
	border-color: #f0d4c8 !important;
	border-color: var(--ug-color-border-warm) !important;
	border-left-color: #ff5a1f !important;
	border-left-color: var(--ug-color-accent) !important;
	background: linear-gradient(110deg, #ffffff 0%, #fffaf7 68%, #fff1ea 100%) !important;
	background: var(--ug-gradient-page-heading) !important;
	box-shadow: 0 8px 22px rgba(8, 20, 47, .07) !important;
	box-shadow: var(--ug-shadow-page-heading) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading h2,
body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading h2 {
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading p,
body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading p {
	color: #58708d !important;
	color: var(--ug-color-text-muted) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading.produto-page-heading-com-acoes,
body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading.produto-page-heading-com-acoes {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 0 !important;
	padding-top: 16px !important;
	padding-right: 24px !important;
	padding-bottom: 16px !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading-content,
body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading-content {
	position: relative;
	z-index: 1;
	min-width: 0;
	flex: 1 1 auto;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading-content h2,
body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading-content h2 {
	margin-bottom: 4px !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading-content p,
body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading-content p {
	margin-bottom: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading.produto-page-heading-com-acoes .produto-page-actions:not(.app-maintenance-actions),
body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading.produto-page-heading-com-acoes .produto-page-actions:not(.app-maintenance-actions) {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	z-index: 1;
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	width: auto !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: right;
	transform: none !important;
	white-space: nowrap;
}

@media screen and (max-width: 760px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading.produto-page-heading-com-acoes,
	body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading.produto-page-heading-com-acoes {
		display: block;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading.produto-page-heading-com-acoes .produto-page-actions:not(.app-maintenance-actions),
	body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading.produto-page-heading-com-acoes .produto-page-actions:not(.app-maintenance-actions) {
		justify-content: flex-end;
		flex-wrap: wrap;
		margin-top: 14px !important;
		white-space: normal;
	}
}

/* Modal global de processamento, sobre drawer e demais camadas responsivas. */
body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxDiv,
body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxDiv {
	z-index: 2000000000 !important;
}

body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxCDiv,
body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxCDiv {
	z-index: 2000000001 !important;
}

body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBox .rich-mpnl-content,
body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBox .rich-mpnl-content {
	border: 1px solid #f0d4c8 !important;
	border-color: var(--ug-color-modal-elevated-border) !important;
	border-radius: 10px !important;
	box-shadow: 0 24px 56px rgba(8, 20, 47, .28) !important;
	box-shadow: var(--ug-shadow-modal-elevated) !important;
	overflow: hidden;
}

body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBox .rich-mpnl-header,
body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBox .rich-mpnl-header {
	border: 0 !important;
	background: #08142f !important;
	background: var(--ug-color-modal-processing-header) !important;
	background-image: none !important;
	color: #ffffff !important;
	color: var(--ug-color-surface) !important;
}

body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .rich-mpnl-body,
body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .rich-mpnl-body {
	padding: 0 !important;
}

/* O CDiv global recebe overflow:auto pela ponte responsiva. No loading, cujo
 * conteúdo é deliberadamente curto, isso fazia o RichFaces expor barras
 * vertical e horizontal dentro do cartão. A caixa continua centralizada,
 * porém sem rolagem artificial. */
body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxCDiv,
body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxCDiv,
body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer,
body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer {
	overflow: hidden !important;
}

body.ug-theme-v2.app-theme-ugestor .app-ajax-loading-content,
body.ug-theme-v2.app-theme-ruby .app-ajax-loading-content {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 22px 24px;
	background: #ffffff;
	background: var(--ug-color-surface);
}

body.ug-theme-v2.app-theme-ugestor .app-ajax-loading-copy,
body.ug-theme-v2.app-theme-ruby .app-ajax-loading-copy {
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	text-align: left;
}

body.ug-theme-v2.app-theme-ugestor .app-ajax-loading-icon,
body.ug-theme-v2.app-theme-ruby .app-ajax-loading-icon {
	color: #19b8da !important;
	color: var(--ug-color-modal-processing-icon) !important;
	font-size: 32px;
}

body.ug-theme-v2.app-theme-ugestor .app-ajax-loading-title,
body.ug-theme-v2.app-theme-ruby .app-ajax-loading-title,
body.ug-theme-v2.app-theme-ugestor .app-ajax-loading-description,
body.ug-theme-v2.app-theme-ruby .app-ajax-loading-description {
	display: block;
}

body.ug-theme-v2.app-theme-ugestor .app-ajax-loading-title,
body.ug-theme-v2.app-theme-ruby .app-ajax-loading-title {
	margin-bottom: 4px;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
	font-size: 15px;
	font-weight: bold;
}

body.ug-theme-v2.app-theme-ugestor .app-ajax-loading-description,
body.ug-theme-v2.app-theme-ruby .app-ajax-loading-description {
	color: #627d88;
	color: var(--ug-color-modal-processing-description);
	font-size: 12px;
	line-height: 1.4;
}

@media screen and (min-width: 768px) {
	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .app-ajax-loading-content,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .app-ajax-loading-content {
		width: 350px;
		min-width: 350px;
	}
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .app-ajax-loading-content,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .app-ajax-loading-content {
		box-sizing: border-box;
		max-width: calc(100vw - 48px);
		min-width: 0;
	}
}

@media screen and (max-width: 760px) {
	body.ug-theme-v2.app-theme-ugestor .app-ajax-loading-content,
	body.ug-theme-v2.app-theme-ruby .app-ajax-loading-content {
		width: 100%;
		min-width: 0;
		padding: 18px;
	}

	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxCDiv,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxCDiv,
	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .rich-mpnl-content {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		min-width: 0 !important;
		max-width: calc(100vw - 24px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxCDiv,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxCDiv {
		left: 50% !important;
		transform: translateX(-50%);
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxDiv,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxDiv {
		position: fixed !important;
		inset: 0 !important;
		width: auto !important;
		height: auto !important;
		z-index: 2000000000 !important;
	}

	/* RichFaces posiciona o painel visível em CDiv; o Container somente
	 * agrupa as camadas. Centralizar o Container não altera a posição final. */
	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxCDiv,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxCDiv {
		position: fixed !important;
		box-sizing: border-box;
		width: calc(100vw - 32px) !important;
		max-width: 360px !important;
		min-width: 0 !important;
		left: 50% !important;
		/* O CDiv e a caixa posicionada pelo RichFaces. A translacao vertical
		 * considera a caixa interna dele e cortava o painel no topo; usa-se a
		 * metade do viewport com altura visual conhecida do loading. */
		top: calc(50vh - 110px) !important;
		top: calc(50dvh - 110px) !important;
		bottom: auto !important;
		right: auto !important;
		margin: 0 !important;
		-webkit-transform: translateX(-50%) !important;
		transform: translateX(-50%) !important;
		z-index: 2000000001 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContentTable,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContentTable,
	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContentDiv,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContentDiv,
	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .rich-mpnl-content {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .rich-mpnl-body {
		box-sizing: border-box;
		width: 100% !important;
		padding: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .app-ajax-loading-content,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .app-ajax-loading-content {
		display: flex;
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0;
		min-height: 196px;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 16px;
		padding: 28px 24px;
		text-align: center;
	}

	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .app-ajax-loading-icon,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .app-ajax-loading-icon {
		position: static;
		flex: 0 0 auto;
		width: 48px;
		font-size: 48px;
		line-height: 1;
	}

	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .app-ajax-loading-copy,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .app-ajax-loading-copy {
		flex: 1 1 auto;
		min-width: 0;
		text-align: center;
	}

	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .app-ajax-loading-title,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .app-ajax-loading-title {
		margin-bottom: 8px;
		font-size: 18px;
		line-height: 1.3;
	}

	body.ug-theme-v2.app-theme-ugestor #ajaxLoadingModalBoxContainer .app-ajax-loading-description,
	body.ug-theme-v2.app-theme-ruby #ajaxLoadingModalBoxContainer .app-ajax-loading-description {
		font-size: 14px;
		line-height: 1.45;
	}
}

/* Pessoa: no Tablet estreito e no Smartphone, os dois blocos financeiros
 * deixam de disputar a mesma linha. As grades densas continuam usando a
 * rolagem local de app-query-results, sem ampliar o documento. */
@media screen and (max-width: 1024px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-form-panel table.app-person-financial-layout,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-form-panel table.app-person-financial-layout,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-form-panel table.app-person-financial-layout > tbody,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-form-panel table.app-person-financial-layout > tbody,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-form-panel table.app-person-financial-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-form-panel table.app-person-financial-layout > tbody > tr {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-form-panel table.app-person-financial-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-form-panel table.app-person-financial-layout > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ug-theme-v2.app-theme-ugestor .app-ajax-loading-icon,
	body.ug-theme-v2.app-theme-ruby .app-ajax-loading-icon {
		animation: none !important;
	}
}

/* Configurações de réplica: abas, rolagem interna e ações acessíveis. */
body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal-content,
body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal-content {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	min-height: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .app-entity-replication-modal-content,
body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .app-entity-replication-modal-content {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .rich-mp-content-table,
body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .rich-mp-content-table {
	width: 100% !important;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal .rich-mp-content-table,
body.ug-theme-v2.app-theme-ruby .app-replication-modal .rich-mp-content-table {
	width: 100% !important;
}

/* O RichFaces calcula a tabela interna pelo menor campo quando o painel usa
 * autosized. O shell responsivo ja define a largura final do modal; a tabela
 * deve ocupar essa area para nao comprimir formularios e confirmacoes. */
body.ug-theme-v2.app-theme-ugestor .app-responsive-modal .rich-mp-content-table,
body.ug-theme-v2.app-theme-ruby .app-responsive-modal .rich-mp-content-table {
	width: 100% !important;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-settings-actions,
body.ug-theme-v2.app-theme-ruby .app-replication-settings-actions {
	flex: 0 0 auto;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .rich-mpnl-body {
		box-sizing: border-box;
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .app-tabbed-selection-scroll,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .app-tabbed-selection-scroll {
		box-sizing: border-box;
		height: 300px;
		max-height: calc(100vh - 260px);
		max-height: calc(100dvh - 260px);
		padding-right: 6px;
		overflow-x: auto;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .app-tabbed-selection-pane,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .app-tabbed-selection-pane {
		height: auto;
		min-height: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .rich-tab-header {
		padding: 13px 12px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .app-tabbed-selection-touch-action,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .app-tabbed-selection-touch-action {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .app-tabbed-selection-icon-target,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .app-tabbed-selection-icon-target {
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		min-width: 44px;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .app-tabbed-selection-icon-action,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .app-tabbed-selection-icon-action {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-actions input[type="button"],
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-actions input[type="button"] {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .app-modal-close-button {
		width: 44px;
		height: 44px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .app-entity-replication-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .app-entity-replication-modal-content {
		flex: 1 1 auto;
		min-height: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .rich-tab-header {
		box-sizing: border-box;
		min-height: 44px;
		padding: 13px 10px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .app-tabbed-selection-touch-action,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .app-tabbed-selection-touch-action {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .app-tabbed-selection-icon-target,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .app-tabbed-selection-icon-target {
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		min-width: 44px;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-modal .app-tabbed-selection-icon-action,
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-modal .app-tabbed-selection-icon-action {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ugestor .app-replication-settings-actions input[type="button"],
	body.ug-theme-v2.app-theme-ruby .app-replication-settings-actions input[type="button"] {
		min-height: 44px;
	}
}

/* Modal de detalhes da Forma de Pagamento: corpo variável e ação fixa. */
body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal .app-form-modal-actions input {
	border-color: #cbd8e8 !important;
	border-color: var(--ug-color-border-action-secondary) !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
	background-image: none !important;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal .app-form-modal-actions input:hover,
body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal .app-form-modal-actions input:hover {
	border-color: #ff9a77 !important;
	border-color: var(--ug-color-border-action-hover) !important;
	background: #fff4ef !important;
	background: var(--ug-color-surface-action-hover) !important;
	color: #e94a16 !important;
	color: var(--ug-color-accent-strong) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-form,
body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-form {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal-content,
body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal-content {
	flex: 1 1 auto;
	min-height: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-actions,
body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-actions {
	flex: 0 0 auto;
}

body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal .app-financial-form-modal-fields .value,
body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal .app-financial-form-modal-fields .value {
	white-space: normal !important;
	overflow-wrap: anywhere;
}

@media screen and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
		max-height: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal .rich-mpnl-body {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		max-height: calc(100vh - 72px);
		max-height: calc(100dvh - 72px);
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-form,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-form {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal-content {
		max-height: none;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal .app-modal-close-button {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-actions input[type="button"],
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-actions input[type="button"] {
		min-height: 44px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-modal,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-modal {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ugestor .app-payment-method-detail-actions input[type="button"],
	body.ug-theme-v2.app-theme-ruby .app-payment-method-detail-actions input[type="button"] {
		width: 100%;
	}
}

/* Notificacao global: mensagens, fechamento e limites de viewport. */
body.ug-theme-v2.app-theme-ugestor .app-message-modal .rich-mpnl-content,
body.ug-theme-v2.app-theme-ruby .app-message-modal .rich-mpnl-content {
	border: 1px solid #f0d4c8 !important;
	border-color: var(--ug-color-modal-elevated-border) !important;
	border-radius: 10px !important;
	box-shadow: 0 24px 56px rgba(8, 20, 47, .28) !important;
	box-shadow: var(--ug-shadow-modal-elevated) !important;
	overflow: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-message-modal .rich-mpnl-header,
body.ug-theme-v2.app-theme-ruby .app-message-modal .rich-mpnl-header {
	border: 0 !important;
	background: #08142f !important;
	background: var(--ug-color-modal-processing-header) !important;
	background-image: none !important;
	color: #ffffff !important;
	color: var(--ug-color-surface) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-message-modal-title,
body.ug-theme-v2.app-theme-ruby .app-message-modal-title {
	display: flex;
	align-items: center;
	gap: 9px;
}

body.ug-theme-v2.app-theme-ugestor .app-message-modal-title-icon,
body.ug-theme-v2.app-theme-ruby .app-message-modal-title-icon {
	display: inline-block;
	width: 22px;
	height: 22px;
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 50%;
	color: #ffffff;
	color: var(--ug-color-surface);
	font-size: 13px;
	font-weight: bold;
	line-height: 22px;
	text-align: center;
}

body.ug-theme-v2.app-theme-ugestor .app-message-modal-content,
body.ug-theme-v2.app-theme-ruby .app-message-modal-content {
	padding: 18px 20px 8px;
	background: #ffffff;
	background: var(--ug-color-surface);
}

body.ug-theme-v2.app-theme-ugestor .app-message-modal .errormsg,
body.ug-theme-v2.app-theme-ruby .app-message-modal .errormsg,
body.ug-theme-v2.app-theme-ugestor .app-message-modal .warnmsg,
body.ug-theme-v2.app-theme-ruby .app-message-modal .warnmsg,
body.ug-theme-v2.app-theme-ugestor .app-message-modal .infomsg,
body.ug-theme-v2.app-theme-ruby .app-message-modal .infomsg {
	box-sizing: border-box;
	display: block;
	max-width: 100%;
	margin: 0 0 10px;
	padding: 12px 14px 12px 42px;
	border: 1px solid #b9e8f2;
	border-color: var(--ug-color-modal-message-info-border);
	border-left: 4px solid #19b8da;
	border-left-color: var(--ug-color-modal-processing-icon);
	border-radius: 6px;
	background: #effcff;
	background: var(--ug-color-modal-message-info-surface);
	color: #163d62;
	color: var(--ug-color-modal-message-info-text);
	line-height: 1.45;
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: break-word;
}

body.ug-theme-v2.app-theme-ugestor .app-message-modal .warnmsg,
body.ug-theme-v2.app-theme-ruby .app-message-modal .warnmsg {
	border-color: #f0d39f;
	border-color: var(--ug-color-modal-message-warn-border);
	border-left-color: #c27a05;
	border-left-color: var(--ug-color-modal-message-warn-accent);
	background: #fff9ed;
	background: var(--ug-color-modal-message-warn-surface);
	color: #6a4600;
	color: var(--ug-color-modal-message-warn-text);
}

body.ug-theme-v2.app-theme-ugestor .app-message-modal .errormsg,
body.ug-theme-v2.app-theme-ruby .app-message-modal .errormsg {
	border-color: #edc5c2;
	border-color: var(--ug-color-modal-message-error-border);
	border-left-color: #c9352b;
	border-left-color: var(--ug-color-modal-message-error-accent);
	background: #fff6f5;
	background: var(--ug-color-modal-message-error-surface);
	color: #6e231f;
	color: var(--ug-color-modal-message-error-text);
}

body.ug-theme-v2.app-theme-ugestor .app-message-modal-actions,
body.ug-theme-v2.app-theme-ruby .app-message-modal-actions {
	padding: 14px 20px 18px;
	border-top: 1px solid #e2ebee;
	border-top-color: var(--ug-color-modal-message-actions-border);
	background: #fbfdfe;
	text-align: right;
}

body.ug-theme-v2.app-theme-ugestor .app-message-modal-close,
body.ug-theme-v2.app-theme-ruby .app-message-modal-close {
	min-width: 112px;
	min-height: 36px;
	padding: 8px 16px !important;
	border: 1px solid #e94a16 !important;
	border-color: var(--ug-color-accent-strong) !important;
	border-radius: 5px !important;
	background: #ff5a1f !important;
	background: var(--ug-color-accent) !important;
	background-image: none !important;
	color: #ffffff !important;
	color: var(--ug-color-surface) !important;
	font-weight: bold;
}

@media screen and (max-width: 760px) {
	body.ug-theme-v2.app-theme-ugestor .app-message-modal,
	body.ug-theme-v2.app-theme-ruby .app-message-modal {
		max-width: calc(100vw - 24px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-message-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-message-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-message-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-message-modal-actions {
		padding-right: 14px;
		padding-left: 14px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-message-modal,
	body.ug-theme-v2.app-theme-ruby .app-message-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		left: 50% !important;
		top: 50% !important;
		right: auto !important;
		transform: translate(-50%, -50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-message-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-message-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-message-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-message-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-message-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-message-modal .rich-mpnl-content {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-message-modal .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ruby .app-message-modal .rich-mpnl-body {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		max-height: calc(100vh - 88px);
		max-height: calc(100dvh - 88px);
		padding: 0 !important;
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-message-modal .app-message-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-message-modal .app-message-modal-content {
		flex: 1 1 auto;
		box-sizing: border-box;
		min-height: 0;
		max-height: calc(100vh - 190px);
		max-height: calc(100dvh - 190px);
		padding: 18px 16px 8px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-message-modal .app-message-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-message-modal .app-message-modal-actions {
		flex: 0 0 auto;
		padding: 14px 16px 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-message-modal .app-message-modal-close,
	body.ug-theme-v2.app-theme-ruby .app-message-modal .app-message-modal-close,
	body.ug-theme-v2.app-theme-ugestor .app-message-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-message-modal .app-modal-close-button {
		box-sizing: border-box;
		width: 44px;
		height: 44px;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-message-modal .app-message-modal-close,
	body.ug-theme-v2.app-theme-ruby .app-message-modal .app-message-modal-close {
		width: 100%;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading,
	body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		padding: 18px !important;
		border-radius: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-heading-com-acoes > .produto-page-actions:not(.app-maintenance-actions),
	body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-heading-com-acoes > .produto-page-actions:not(.app-maintenance-actions) {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		gap: 8px !important;
		width: 100% !important;
		margin-top: 14px !important;
	}

body.ug-theme-v2.app-theme-ugestor .conteudo .produto-page-actions:not(.app-maintenance-actions) input,
body.ug-theme-v2.app-theme-ruby .conteudo .produto-page-actions:not(.app-maintenance-actions) input {
		box-sizing: border-box;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
	}
}

/* Base RichFaces confirmada: painel, cabecalho e corpo de modal. */
body.ug-theme-v2.app-theme-ugestor .conteudo .rich-mpnl-content,
body.ug-theme-v2.app-theme-ruby .conteudo .rich-mpnl-content {
	border: 1px solid #c9dce3 !important;
	border-color: var(--ug-color-modal-border) !important;
	border-radius: 7px;
	box-shadow: 0 18px 42px rgba(12, 43, 54, .28);
	box-shadow: var(--ug-shadow-modal);
	overflow: hidden;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .rich-mpnl-header,
body.ug-theme-v2.app-theme-ruby .conteudo .rich-mpnl-header {
	padding: 12px 16px !important;
	border: 0 !important;
	background-image: none !important;
	color: #ffffff !important;
	color: var(--ug-color-surface) !important;
	font-size: 14px;
	font-weight: bold;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .rich-mpnl-header {
	background-color: #087f8c !important;
	background-color: var(--ug-color-modal-header-ugestor) !important;
}

body.ug-theme-v2.app-theme-ruby .conteudo .rich-mpnl-header {
	background-color: #a02214 !important;
	background-color: var(--ug-color-modal-header-ruby) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .rich-mpnl-body,
body.ug-theme-v2.app-theme-ruby .conteudo .rich-mpnl-body {
	padding: 20px !important;
	background: #ffffff;
	background: var(--ug-color-surface);
}

@media screen and (max-width: 760px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ruby .conteudo .rich-mpnl-body {
		padding: 14px !important;
	}
}

/* Navegacao de primeiro nivel do drawer; a arvore RichFaces permanece unica. */
@media screen and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-main-navigation .app-main-toolbar,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-main-navigation .app-main-toolbar {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0;
		padding: 8px 0;
		border: 0;
		border-radius: 0;
		background: #ffffff;
		background: var(--ug-color-surface);
		box-shadow: none;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-surface,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-surface,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-surface > tbody,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-surface > tbody,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-surface > tbody > tr,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-surface > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-surface > tbody > tr > td.rich-toolbar-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-surface > tbody > tr > td.rich-toolbar-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-surface .rich-toolbar-group,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-surface .rich-toolbar-group,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-surface .app-toolbar-actions,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-surface .app-toolbar-actions {
		background: #ffffff !important;
		background: var(--ug-color-surface) !important;
		background-image: none !important;
		color: #10213d !important;
		color: var(--ug-color-ink) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar > tbody,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar > tbody,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar > tbody > tr,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar > tbody > tr > td.rich-toolbar-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar > tbody > tr > td.rich-toolbar-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .rich-toolbar-group,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .rich-toolbar-group {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar > tbody > tr > td.rich-toolbar-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar > tbody > tr > td.rich-toolbar-item {
		height: auto !important;
		padding: 0 !important;
		border: 0 !important;
		border-bottom: 1px solid #e5ebf2 !important;
		border-bottom-color: var(--ug-color-shell-drawer-item-border) !important;
		box-shadow: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-toolbar-logout,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-toolbar-logout,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-control-panel-trigger,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-control-panel-trigger {
		box-sizing: border-box;
		display: flex !important;
		align-items: center;
		width: 100% !important;
		min-width: 44px;
		min-height: 44px;
		margin: 0 !important;
		padding: 11px 16px !important;
		border-radius: 0 !important;
		background: transparent !important;
		color: #10213d !important;
		color: var(--ug-color-ink) !important;
		font-size: 14px !important;
		line-height: 20px !important;
		text-align: left;
		text-decoration: none;
		text-shadow: none !important;
		box-shadow: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item *,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item *,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label *,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label * {
		background: transparent !important;
		color: #10213d !important;
		color: var(--ug-color-ink) !important;
		text-shadow: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item:hover,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item:hover,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item:focus,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item:focus,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label:hover,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label:hover,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label:focus,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label:focus,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item.app-navigation-active > .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item.app-navigation-active > .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item.app-navigation-active > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item.app-navigation-active > .rich-ddmenu-label {
		background: #fff1ea !important;
		background: var(--ug-color-shell-navigation-active-surface) !important;
		color: #c73c0b !important;
		color: var(--ug-color-shell-navigation-active-text) !important;
		box-shadow: inset 4px 0 0 #ff5a1f !important;
		box-shadow: inset 4px 0 0 var(--ug-color-accent) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item.app-navigation-active > .rich-menu-item *,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item.app-navigation-active > .rich-menu-item *,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item.app-navigation-active > .rich-ddmenu-label *,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item.app-navigation-active > .rich-ddmenu-label * {
		color: #c73c0b !important;
		color: var(--ug-color-shell-navigation-active-text) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-control-panel-trigger:hover,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-control-panel-trigger:hover,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-control-panel-trigger:focus,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-control-panel-trigger:focus {
		background: #fff1ea !important;
		background: var(--ug-color-shell-navigation-active-surface) !important;
		color: #c73c0b !important;
		color: var(--ug-color-shell-navigation-active-text) !important;
		box-shadow: inset 4px 0 0 #ff5a1f !important;
		box-shadow: inset 4px 0 0 var(--ug-color-accent) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-control-panel-trigger:hover *,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-control-panel-trigger:hover *,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-control-panel-trigger:focus *,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-control-panel-trigger:focus * {
		color: #c73c0b !important;
		color: var(--ug-color-shell-navigation-active-text) !important;
	}
}

/* Itens internos e estados do acordeao RichFaces no drawer responsivo. */
@media screen and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group {
		position: relative !important;
		float: none !important;
		box-sizing: border-box;
		display: flex !important;
		align-items: center;
		gap: 10px;
		width: 100% !important;
		min-width: 0 !important;
		min-height: 44px;
		padding: 11px 16px 11px 24px !important;
		border-bottom: 1px solid #e7edf3;
		border-bottom-color: var(--ug-color-shell-drawer-subitem-border);
		background: #f8fafc !important;
		background: var(--ug-color-shell-card-surface) !important;
		color: #10213d !important;
		color: var(--ug-color-ink) !important;
		white-space: normal !important;
		word-break: normal;
		overflow-wrap: anywhere;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-item-label,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-item-label,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group-label,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group-label {
		box-sizing: border-box;
		flex: 1 1 auto;
		min-width: 0;
		white-space: normal !important;
		word-break: normal;
		overflow-wrap: anywhere;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-item-icon,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-item-icon,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group-icon,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group-icon {
		box-sizing: border-box;
		flex: 0 0 20px;
		width: 20px !important;
		text-align: center;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group-expand,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group-expand {
		display: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-group-list > .rich-menu-list-bg,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-group-list > .rich-menu-list-bg {
		border-left: 3px solid #dce5ef;
		border-left-color: var(--ug-color-shell-drawer-divider);
		background: #ffffff !important;
		background: var(--ug-color-surface) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-group-list .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-group-list .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-group-list .rich-menu-group,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-group-list .rich-menu-group {
		padding-left: 32px !important;
		background: #ffffff !important;
		background: var(--ug-color-surface) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-group-list .app-responsive-navigation-group-list .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-group-list .app-responsive-navigation-group-list .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-group-list .app-responsive-navigation-group-list .rich-menu-group,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-group-list .app-responsive-navigation-group-list .rich-menu-group {
		padding-left: 40px !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group {
		cursor: pointer;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section > .rich-ddmenu-label::after,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section > .rich-ddmenu-label::after,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group::after,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group::after {
		margin-left: auto;
		padding-left: 12px;
		color: #51647d;
		color: var(--ug-color-shell-navigation-indicator);
		font-family: Arial, Helvetica, sans-serif;
		font-size: 18px;
		font-weight: 700;
		content: "+";
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label::after,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label::after,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group.app-responsive-navigation-group-open::after,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group.app-responsive-navigation-group-open::after {
		color: #c73c0b;
		color: var(--ug-color-shell-navigation-active-text);
		content: "\2212";
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group.app-responsive-navigation-group-open,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group.app-responsive-navigation-group-open,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-item:hover,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-item:hover,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-item:focus,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-item:focus,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group:hover,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group:hover,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group:focus,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group:focus,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-item-hover,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-item-hover,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group-hover,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group-hover {
		background: #fff1ea !important;
		background: var(--ug-color-shell-navigation-active-surface) !important;
		color: #c73c0b !important;
		color: var(--ug-color-shell-navigation-active-text) !important;
		box-shadow: inset 4px 0 0 #ff5a1f !important;
		box-shadow: inset 4px 0 0 var(--ug-color-accent) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label *,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label *,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group.app-responsive-navigation-group-open *,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group.app-responsive-navigation-group-open * {
		color: #c73c0b !important;
		color: var(--ug-color-shell-navigation-active-text) !important;
	}
}

/* Listas ancoradas do RichFaces: visibilidade e superficie do acordeao. */
@media screen and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section-list:not(.app-responsive-navigation-list-open),
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section-list:not(.app-responsive-navigation-list-open),
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-group-list:not(.app-responsive-navigation-list-open),
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-group-list:not(.app-responsive-navigation-list-open) {
		display: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-managed-list,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-managed-list {
		position: static !important;
		top: auto !important;
		left: auto !important;
		float: none !important;
		clear: both !important;
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		margin: 0 !important;
		overflow: visible !important;
		visibility: hidden !important;
		transform: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-managed-list .rich-menu-list-strut,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-managed-list .rich-menu-list-strut,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-managed-list .underneath_iframe,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-managed-list .underneath_iframe {
		display: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section-list.app-responsive-navigation-list-open,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section-list.app-responsive-navigation-list-open,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-group-list.app-responsive-navigation-list-open,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-group-list.app-responsive-navigation-list-open {
		position: static !important;
		top: auto !important;
		left: auto !important;
		z-index: auto !important;
		display: block !important;
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		margin: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: #f8fafc !important;
		background: var(--ug-color-shell-card-surface) !important;
		box-shadow: none !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-list-open,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-list-open,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-list-open > .rich-menu-list-bg,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-list-open > .rich-menu-list-bg {
		float: none !important;
		clear: both !important;
		overflow: visible !important;
		transform: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-list-open > .rich-menu-list-bg,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-list-open > .rich-menu-list-bg {
		position: static !important;
		display: block !important;
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0 !important;
		background: #f8fafc !important;
		background: var(--ug-color-shell-card-surface) !important;
	}
}

/* Cabecalho Smartphone: o contexto unico integra visualmente o drawer aberto. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-smartphone-app-bar,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-smartphone-app-bar {
		min-height: 76px;
		padding: env(safe-area-inset-top) 58px 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-smartphone-app-bar .app-header-modern-layout,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-smartphone-app-bar .app-header-modern-layout,
	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-smartphone-app-bar .app-header-modern-layout > tbody,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-smartphone-app-bar .app-header-modern-layout > tbody,
	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-smartphone-app-bar .app-header-modern-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-smartphone-app-bar .app-header-modern-layout > tbody > tr {
		display: block !important;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-smartphone-app-bar .app-header-modern-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-smartphone-app-bar .app-header-modern-layout > tbody > tr > td {
		display: block !important;
		width: 100% !important;
		padding: 10px 0 !important;
		text-align: center !important;
	}

	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-smartphone-app-bar .app-header-modern-layout > tbody > tr > td + td,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-smartphone-app-bar .app-header-modern-layout > tbody > tr > td + td {
		width: 0 !important;
		height: 0 !important;
		padding: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-smartphone-app-bar .app-header-brand,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-smartphone-app-bar .app-header-brand,
	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-smartphone-app-bar .app-header-brand-link,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-smartphone-app-bar .app-header-brand-link {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 54px;
		margin: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-smartphone-app-bar .app-header-logo,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-smartphone-app-bar .app-header-logo {
		width: auto;
		max-width: min(172px, 58vw);
		max-height: 48px;
		margin: 0 auto;
	}

	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-smartphone-app-bar .app-header-context,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-smartphone-app-bar .app-header-context {
		display: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-context,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-context {
		position: fixed;
		top: calc(64px + env(safe-area-inset-top));
		left: 0;
		z-index: 10001;
		box-sizing: border-box;
		display: block !important;
		width: 88vw !important;
		max-width: 360px !important;
		height: 132px;
		margin: 0 !important;
		padding: 12px 16px !important;
		overflow-x: hidden;
		overflow-y: auto;
		border: 0 !important;
		border-bottom: 1px solid #dce5ef !important;
		border-bottom-color: var(--ug-color-shell-drawer-divider) !important;
		border-radius: 0 !important;
		background: #f8fafc !important;
		background: var(--ug-color-shell-card-surface) !important;
		box-shadow: none !important;
		text-align: left !important;
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-context form,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-context form,
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-identity-card,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-identity-card,
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-meta,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-meta,
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-meta > tbody,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-meta > tbody,
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-meta > tbody > tr,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-meta > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-meta > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-meta > tbody > tr > td {
		box-sizing: border-box;
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: left !important;
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-user,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-user,
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-establishment,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-establishment {
		box-sizing: border-box;
		display: block;
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 0 0 8px;
		color: #10213d !important;
		color: var(--ug-color-ink) !important;
		font-size: 11px;
		line-height: 1.35;
		text-align: left !important;
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-establishment,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-establishment {
		padding: 8px 0 0;
		border-top: 1px solid #dce5ef;
		border-top-color: var(--ug-color-shell-drawer-divider);
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-establishment-value,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-establishment-value {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 44px;
		gap: 8px;
		align-items: center;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-user *,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-user *,
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-establishment *,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-establishment * {
		color: #10213d !important;
		color: var(--ug-color-ink) !important;
	}
}

/* Acoes do cabecalho gerico, inclusive as inseridas pelo normalizador JSF. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading.app-page-heading-auto,
body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading.app-page-heading-auto {
	min-height: 0 !important;
	margin-top: 14px;
	margin-bottom: 10px;
	padding-top: 14px;
	padding-bottom: 14px;
}

@media screen and (min-width: 851px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading.app-page-heading-com-acoes,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading.app-page-heading-com-acoes {
		display: flex !important;
		align-items: center !important;
		width: 100%;
		min-height: 0 !important;
		padding-right: 24px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-heading-content,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-heading-content {
		flex: 1 1 0;
		width: auto !important;
		max-width: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions {
		position: static !important;
		top: auto !important;
		right: auto !important;
		bottom: auto !important;
		left: auto !important;
		display: flex !important;
		flex: 0 0 auto;
		align-items: center;
		justify-content: flex-end !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 0 0 auto !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		text-align: right !important;
		transform: none !important;
		white-space: nowrap;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions > *,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions > * {
		flex: 0 0 auto;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions-grid,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions-grid {
		position: static !important;
		flex: 0 1 auto;
		width: auto !important;
		max-width: 100%;
		margin: 0 0 0 auto !important;
		text-align: right !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions-grid > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions-grid > tbody > tr > td {
		text-align: right !important;
	}
}

@media screen and (max-width: 850px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading.app-page-heading-com-acoes,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading.app-page-heading-com-acoes {
		display: block;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions {
		position: static !important;
		display: flex !important;
		justify-content: flex-end !important;
		width: 100% !important;
		margin: 14px 0 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		transform: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions-grid,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions-grid {
		width: 100% !important;
		margin: 14px 0 0 !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		gap: 8px !important;
		width: 100% !important;
		margin-top: 14px !important;
	}

	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading.app-page-heading-com-acoes > .app-page-actions {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		gap: 8px !important;
		width: 100% !important;
		margin-top: 14px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-actions input,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-actions input {
		box-sizing: border-box;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
	}
}

/* Shell Desktop: cabecalho unico de marca, usuario e estabelecimento. */
@media screen and (min-width: 1200px) {
body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header.app-header-modern,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header.app-header-modern {
	box-sizing: border-box;
	width: 100%;
	margin: 6px 0 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid #dfe5ee;
	border-color: var(--ug-color-shell-border);
	border-radius: 12px;
	background: #ffffff;
	background: var(--ug-color-surface);
	box-shadow: 0 10px 28px rgba(8, 20, 47, .08);
	box-shadow: var(--ug-shadow-shell-header);
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header.app-header-modern.app-header-with-menu,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header.app-header-modern.app-header-with-menu {
	border-radius: 12px 12px 0 0;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-modern-layout,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-modern-layout,
body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-modern-layout > tbody,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-modern-layout > tbody,
body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-modern-layout > tbody > tr,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-modern-layout > tbody > tr {
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-modern-layout > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-modern-layout > tbody > tr > td {
	padding: 6px 18px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-modern-layout > tbody > tr > td + td,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-modern-layout > tbody > tr > td + td {
	border-left: 0;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-brand,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-brand {
	display: flex;
	align-items: center;
	min-height: 0;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-brand-link,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-brand-link {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-logo,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-logo {
	display: block;
	width: auto;
	max-width: 205px;
	max-height: 48px;
	margin: 0;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-context,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-context {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 0;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-identity-card,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-identity-card {
	box-sizing: border-box;
	width: 590px;
	max-width: 100%;
	margin-left: auto;
	padding: 4px 8px;
	border: 1px solid #e3e9f1;
	border-color: var(--ug-color-shell-card-border);
	border-left: 3px solid #ff5a1f;
	border-left-color: var(--ug-color-accent);
	border-radius: 8px;
	background: #f8fafc;
	background: var(--ug-color-shell-card-surface);
	box-shadow: 0 2px 7px rgba(16, 33, 61, .04);
	box-shadow: var(--ug-shadow-shell-card);
	text-align: left;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-meta,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-meta {
	width: 100%;
	margin: 0;
	color: #56657a;
	font-size: 11px;
	line-height: 1.35 !important;
	text-align: left;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-meta td,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-meta td {
	padding: 0 !important;
	line-height: 1.35 !important;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-meta .name,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-meta .name,
body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-meta .value,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-meta .value {
	font-size: 11px;
	line-height: 1.35 !important;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-meta .name,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-meta .name {
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
	font-weight: bold;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-user,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-user {
	margin: 0;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-support-slot,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-support-slot {
	display: inline-block;
	margin-right: 8px;
	line-height: normal;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-user .prop,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-user .prop {
	display: block;
	margin: 0;
	padding: 0 0 4px;
	border: 0;
	background: transparent;
	box-shadow: none;
	text-align: left;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-user .name,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-user .name,
body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-user .value,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-user .value {
	display: block;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-user .name,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-user .name,
body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment .name,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment .name {
	color: #758298 !important;
	color: var(--ug-color-shell-label) !important;
	font-size: 8px;
	font-weight: bold;
	letter-spacing: .08em;
	line-height: 1.2 !important;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-user .value,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-user .value {
	margin-top: 1px;
	color: #243b5a;
	color: var(--ug-color-shell-value);
	font-size: 11px;
	font-weight: 600;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment {
	display: block;
	width: 100%;
	max-width: none;
	margin: 3px 0 0;
	white-space: nowrap;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment [id$="entidadeSelectDiv"],
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment [id$="entidadeSelectDiv"],
body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment [id$="entidadeSelectDiv"] > tbody,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment [id$="entidadeSelectDiv"] > tbody,
body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment [id$="entidadeSelectDiv"] > tbody > tr,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment [id$="entidadeSelectDiv"] > tbody > tr,
body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment [id$="entidadeSelectDiv"] > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment [id$="entidadeSelectDiv"] > tbody > tr > td {
	box-sizing: border-box;
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment > tbody > tr > td {
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment .prop,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment .prop {
	display: block;
	margin: 0;
	padding: 5px 0 0;
	border: 0;
	border-top: 1px solid #e3e9f1;
	border-top-color: var(--ug-color-shell-card-border);
	background: transparent;
	box-shadow: none;
	text-align: left;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment .value,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment .value {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 1px;
	color: #223b5c;
	color: var(--ug-color-shell-establishment-value);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.35 !important;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment-value,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment-value {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment-value > span:first-child,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment-value > span:first-child {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment .app-header-establishment-value input[type="image"],
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment .app-header-establishment-value input[type="image"] {
	box-sizing: content-box;
	flex: 0 0 auto;
	display: block;
	width: 16px;
	height: 16px;
	padding: 4px;
	border: 1px solid #dce4ee;
	border-color: var(--ug-color-shell-action-border);
	border-radius: 7px;
	background: #ffffff;
	background: var(--ug-color-surface);
	box-shadow: 0 2px 6px rgba(16, 33, 61, .05);
	box-shadow: var(--ug-shadow-shell-action);
	cursor: pointer;
}

body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment .app-header-establishment-value input[type="image"]:hover,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment .app-header-establishment-value input[type="image"]:hover,
body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-header-modern .app-header-establishment .app-header-establishment-value input[type="image"]:focus,
body.ug-theme-v2.app-theme-ruby #nomesDiv.app-header-modern .app-header-establishment .app-header-establishment-value input[type="image"]:focus {
	border-color: #ffb496;
	border-color: var(--ug-color-shell-action-hover-border);
	box-shadow: 0 0 0 3px rgba(255, 90, 31, .12);
	box-shadow: var(--ug-shadow-shell-action-focus);
	}
}

/* Shell Tablet: mesmo cabecalho e dados, sem duplicar formulario ou menu. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-tablet-app-bar,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-tablet-app-bar {
		position: relative;
		min-height: 72px;
		padding-top: env(safe-area-inset-top) !important;
		padding-right: 66px !important;
	}

	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-tablet-app-bar .app-header-modern-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-tablet-app-bar .app-header-modern-layout > tbody > tr > td {
		box-sizing: border-box;
		padding: 10px 14px !important;
	}

	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-tablet-app-bar .app-header-logo,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-tablet-app-bar .app-header-logo {
		max-width: 168px;
		max-height: 42px;
	}

	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-tablet-app-bar .app-header-context,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-tablet-app-bar .app-header-context,
	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-tablet-app-bar .app-header-identity-card,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-tablet-app-bar .app-header-identity-card,
	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-tablet-app-bar .app-header-establishment,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-tablet-app-bar .app-header-establishment {
		box-sizing: border-box;
		width: 100%;
		max-width: none;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-tablet-app-bar .app-header-establishment,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-tablet-app-bar .app-header-establishment,
	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-tablet-app-bar .app-header-establishment-value,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-tablet-app-bar .app-header-establishment-value,
	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-tablet-app-bar .app-header-establishment-value span,
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-tablet-app-bar .app-header-establishment-value span {
		overflow: visible !important;
		white-space: normal !important;
		word-break: normal;
		overflow-wrap: anywhere;
		text-overflow: clip;
	}

	body.ug-theme-v2.app-theme-ugestor #nomesDiv.app-tablet-app-bar .app-header-establishment-value input[type="image"],
	body.ug-theme-v2.app-theme-ruby #nomesDiv.app-tablet-app-bar .app-header-establishment-value input[type="image"] {
		box-sizing: border-box;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		padding: 12px;
	}
}

/* Shell responsivo: gatilho, backdrop e estrutura unica do drawer. */
@media screen and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open {
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-trigger,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-trigger,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-close,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-close {
		box-sizing: border-box;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		border: 1px solid #cfd9e6;
		border-color: var(--ug-color-shell-drawer-trigger-border);
		border-radius: 10px;
		background: #ffffff;
		background: var(--ug-color-surface);
		color: #10213d;
		color: var(--ug-color-ink);
		cursor: pointer;
		font-size: 19px;
		line-height: 1;
		box-shadow: 0 4px 12px rgba(16, 33, 61, .1);
		box-shadow: var(--ug-shadow-shell-drawer-trigger);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-trigger,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-trigger {
		position: absolute;
		top: calc(50% + (env(safe-area-inset-top) / 2));
		right: 12px;
		z-index: 3;
		transform: translateY(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-trigger:hover,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-trigger:hover,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-trigger:focus,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-trigger:focus,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-close:hover,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-close:hover,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-close:focus,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-close:focus {
		border-color: #ff5a1f;
		border-color: var(--ug-color-accent);
		outline: 0;
		box-shadow: 0 0 0 3px rgba(255, 90, 31, .16);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-backdrop,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-backdrop {
		position: fixed;
		inset: 0;
		z-index: 9998;
		display: block;
		width: 100%;
		height: 100%;
		padding: 0;
		border: 0;
		background: rgba(5, 16, 38, .54);
		background: var(--ug-color-shell-drawer-backdrop);
		opacity: 0;
		pointer-events: none;
		transition: opacity .2s ease;
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open .app-responsive-navigation-backdrop,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open .app-responsive-navigation-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-main-navigation,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-main-navigation {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 9999;
		box-sizing: border-box;
		width: 360px;
		max-width: calc(100vw - 24px);
		height: 100vh;
		height: 100dvh;
		margin: 0;
		padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
		overflow-x: hidden;
		overflow-y: auto;
		border-radius: 0;
		background: #ffffff;
		background: var(--ug-color-surface);
		box-shadow: 18px 0 42px rgba(5, 16, 38, .24);
		box-shadow: var(--ug-shadow-shell-drawer);
		transform: translateX(-105%);
		transition: transform .22s ease;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #MenuHorizontal.app-main-navigation,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #MenuHorizontal.app-main-navigation {
		transform: translateX(0);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-header,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-header {
		position: sticky;
		top: 0;
		z-index: 4;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 64px;
		padding: 10px 14px;
		border-bottom: 3px solid #ff5a1f;
		border-bottom-color: var(--ug-color-accent);
		background: #10213d;
		background: var(--ug-color-shell-drawer-header);
		color: #ffffff;
		color: var(--ug-color-surface);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-title,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-title {
		font-family: Arial, Helvetica, sans-serif;
		font-size: 16px;
		font-weight: bold;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-close,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-close {
		border-color: rgba(255, 255, 255, .34);
		background: rgba(255, 255, 255, .08);
		color: #ffffff;
		color: var(--ug-color-surface);
		box-shadow: none;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-main-navigation,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-main-navigation {
		width: 88vw;
		max-width: 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-backdrop,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-backdrop,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-main-navigation,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-main-navigation {
		transition: none;
	}
}

/* Rodape compartilhado dos templates autenticados e externos. */
body.ug-theme-v2.app-theme-ugestor .app-footer,
body.ug-theme-v2.app-theme-ruby .app-footer {
	clear: both;
	flex: 0 0 auto;
	margin: auto 0 0;
	font-family: Arial, Helvetica, sans-serif;
}

body.ug-theme-v2.app-theme-ugestor .app-footer-copyright,
body.ug-theme-v2.app-theme-ruby .app-footer-copyright {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 8px 0;
	color: #6d6b7d;
	color: var(--ug-color-footer-text);
	font-size: 13px;
	line-height: 1.35;
}

body.ug-theme-v2.app-theme-ugestor .app-footer-version,
body.ug-theme-v2.app-theme-ruby .app-footer-version {
	flex: 0 0 auto;
	color: #78879a;
	color: var(--ug-color-footer-version);
	font-size: 11px;
	line-height: 1.35;
	text-align: right;
	white-space: nowrap;
}

body.ug-theme-v2.app-theme-ugestor .app-footer-version-label,
body.ug-theme-v2.app-theme-ruby .app-footer-version-label {
	margin-right: 4px;
	color: #596a80;
	color: var(--ug-color-footer-label);
	font-size: 9px;
	font-weight: bold;
	letter-spacing: .07em;
}

body.ug-theme-v2.app-theme-ugestor .app-footer-environment,
body.ug-theme-v2.app-theme-ruby .app-footer-environment {
	box-sizing: border-box;
	width: 100%;
	padding: 4px 12px;
	color: #ffffff;
	color: var(--ug-color-surface);
	font-size: 14px;
	font-weight: bold;
	line-height: 1.25;
	text-align: center;
}

@media screen and (max-width: 760px) {
	body.ug-theme-v2.app-theme-ugestor .app-footer-copyright,
	body.ug-theme-v2.app-theme-ruby .app-footer-copyright {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	body.ug-theme-v2.app-theme-ugestor .app-footer-version,
	body.ug-theme-v2.app-theme-ruby .app-footer-version {
		margin-left: auto;
	}
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-footer.app-tablet-footer,
	body.ug-theme-v2.app-theme-ruby .app-footer.app-tablet-footer {
		padding-bottom: calc(8px + env(safe-area-inset-bottom));
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-footer.app-smartphone-footer,
	body.ug-theme-v2.app-theme-ruby .app-footer.app-smartphone-footer {
		padding-bottom: calc(10px + env(safe-area-inset-bottom));
	}

	body.ug-theme-v2.app-theme-ugestor .app-footer.app-smartphone-footer .app-footer-copyright,
	body.ug-theme-v2.app-theme-ruby .app-footer.app-smartphone-footer .app-footer-copyright {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
		padding: 10px 4px;
		font-size: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-footer.app-smartphone-footer .app-footer-version,
	body.ug-theme-v2.app-theme-ruby .app-footer.app-smartphone-footer .app-footer-version {
		display: block;
		box-sizing: border-box;
		width: 100%;
		margin: 0 auto;
		text-align: center;
		white-space: normal;
	}
}

/* Painel principal da manutencao; abas RichFaces permanecem em outra etapa. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-panel,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-panel {
	box-sizing: border-box;
	width: 100%;
	margin: 12px 0 14px !important;
	border: 1px solid #f0d4c8 !important;
	border-color: var(--ug-color-border-warm) !important;
	border-radius: 7px !important;
	border-radius: var(--ug-radius-panel) !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
	box-shadow: 0 7px 18px rgba(13, 67, 90, .055) !important;
	box-shadow: var(--ug-shadow-panel) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-panel > .rich-panel-header,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-panel > .rich-panel-header {
	display: none !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-panel > .rich-panel-body,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-panel > .rich-panel-body {
	box-sizing: border-box;
	padding: 18px !important;
	padding: var(--ug-space-5) !important;
	border-radius: 7px !important;
	border-radius: var(--ug-radius-panel) !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-panel-tabbed > .rich-panel-body,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-panel-tabbed > .rich-panel-body,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-panel-simple > .rich-panel-body,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-panel-simple > .rich-panel-body {
	padding: 18px !important;
	padding: var(--ug-space-5) !important;
}

@media screen and (max-width: 850px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-panel > .rich-panel-body,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-panel > .rich-panel-body {
		padding: 14px !important;
	}
}

/* DOM RichFaces confirmado em Produtos: tabPanel principal e seu conteudo. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs {
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	table-layout: fixed;
	margin: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tabpanel-content-position,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tabpanel-content-position,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tabpanel-content,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tabpanel-content {
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tabpanel-content-position,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tabpanel-content-position {
	table-layout: fixed;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tabpanel-content,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tabpanel-content {
	box-sizing: border-box;
	min-height: 188px;
	padding: 16px !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
}

@media screen and (max-width: 850px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tabpanel-content {
		padding: 14px !important;
	}
}

/* Colunas de rotulo e valor emitidas pelo template layout/edit.xhtml. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .name,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .name {
	box-sizing: border-box;
	width: 185px !important;
	color: #33434c;
	color: var(--ug-color-label);
	font-size: 12px;
	font-weight: bold;
	line-height: 1.35;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .value,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .value {
	box-sizing: border-box;
	min-height: 27px;
	line-height: 1.5;
}

@media screen and (max-width: 850px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .name,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .name,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .value,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .name,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .name {
		padding: 5px 0 3px;
	}
}

/* Faixa contextual de acoes operacionais abaixo do cabecalho. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-context-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-context-actions {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	margin: 0 0 12px;
	padding: 8px 12px;
	border: 1px solid #f0d4c8;
	border-color: var(--ug-color-border-warm);
	border-radius: 7px;
	border-radius: var(--ug-radius-panel);
	background: #fffaf7;
	background: var(--ug-color-surface-context);
}

@media screen and (max-width: 850px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-context-actions,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-context-actions {
		justify-content: flex-start;
		padding: 8px;
	}
}

/* Rodape de paginação comum, emitido por layout/fragments/pagerFooter.xhtml. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pagination,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pagination {
	box-sizing: border-box;
	width: 100%;
	margin-top: -1px;
	border: 1px solid #f0d4c8;
	border-color: var(--ug-color-border-warm);
	border-top: 3px solid #ff5a1f;
	border-top-color: var(--ug-color-accent);
	border-radius: 0 0 7px 7px;
	border-radius: 0 0 var(--ug-radius-panel) var(--ug-radius-panel);
	background: #ffffff;
	background: var(--ug-color-surface);
	box-shadow: 0 7px 18px rgba(8, 20, 47, .07);
	box-shadow: var(--ug-shadow-pager);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-tabpanel-content > .app-query-pagination,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-tabpanel-content > .app-query-pagination {
	margin-top: -1px !important;
	border: 1px solid #f0d4c8 !important;
	border-color: var(--ug-color-border-warm) !important;
	border-top: 3px solid #ff5a1f !important;
	border-top-color: var(--ug-color-accent) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 9px;
	min-height: 58px;
	padding: 10px 14px;
	color: #415672;
	color: var(--ug-color-pager-text);
	font-size: 12px;
	white-space: normal;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager .pager-summary,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager .pager-summary {
	margin: 0 auto 0 0;
	padding: 8px 12px;
	border-left: 3px solid #ff5a1f;
	border-left-color: var(--ug-color-accent);
	border-radius: 4px;
	background: #fff4ef;
	background: var(--ug-color-surface-action-hover);
	color: #10213d;
	color: var(--ug-color-ink);
	font-size: 12px;
	font-weight: bold;
	line-height: 1.25;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager .pager-size-row,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager .pager-size-row,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager .pager-navigation,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager .pager-navigation {
	display: flex;
	align-items: center;
	gap: 8px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager .pager-size-label,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager .pager-size-label {
	font-weight: bold;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager .pager-page-indicator,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager .pager-page-indicator {
	display: none;
}

@media screen and (max-width: 980px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager .pager-summary,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager .pager-summary {
		box-sizing: border-box;
		width: 100%;
		margin-right: 0;
	}
}

@media screen and (max-width: 560px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager {
		gap: 7px;
		padding: 10px;
	}
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager select.pager-size-selector,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager select.pager-size-selector {
	box-sizing: border-box;
	width: 70px;
	min-width: 70px;
	height: 34px;
	margin: 0 3px;
	padding: 4px 8px;
	border: 1px solid #b9c8da;
	border-color: var(--ug-color-pager-control-border);
	border-radius: 4px;
	background: #ffffff;
	background: var(--ug-color-surface);
	color: #10213d;
	color: var(--ug-color-ink);
	font-size: 12px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager select.pager-size-selector:hover,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager select.pager-size-selector:hover {
	border-color: #ff9a77;
	border-color: var(--ug-color-border-action-hover);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager select.pager-size-selector:focus,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager select.pager-size-selector:focus {
	border-color: #19b8da !important;
	border-color: var(--ug-color-focus-action) !important;
	box-shadow: 0 0 0 3px rgba(25, 201, 232, .18) !important;
	box-shadow: var(--ug-shadow-focus-action) !important;
	outline: 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-button,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-button {
	box-sizing: border-box;
	width: auto !important;
	min-width: 82px !important;
	height: 34px !important;
	min-height: 34px !important;
	margin: 0 !important;
	padding: 6px 12px !important;
	border: 1px solid #10213d !important;
	border-color: var(--ug-color-ink) !important;
	border-radius: 4px !important;
	background: #10213d !important;
	background: var(--ug-color-ink) !important;
	background-image: none !important;
	color: #ffffff !important;
	color: var(--ug-color-surface) !important;
	font-size: 11px;
	font-weight: bold;
	line-height: 1;
	text-shadow: none;
	box-shadow: 0 3px 8px rgba(8, 20, 47, .12);
	box-shadow: var(--ug-shadow-pager-button);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-button:hover,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-button:hover {
	border-color: #e94a16 !important;
	border-color: var(--ug-color-accent-strong) !important;
	background: #ff5a1f !important;
	background: var(--ug-color-accent) !important;
	box-shadow: 0 4px 10px rgba(233, 74, 22, .18);
	box-shadow: var(--ug-shadow-action-primary);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-button:focus,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-button:focus {
	outline: 2px solid #19b8da !important;
	outline: 2px solid var(--ug-color-focus-action) !important;
	outline-offset: 2px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-button[disabled],
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-button[disabled] {
	cursor: not-allowed;
	border-color: #d7dfeb !important;
	border-color: var(--ug-color-pager-disabled-border) !important;
	background: #eef2f6 !important;
	background: var(--ug-color-pager-disabled-surface) !important;
	color: #8b98aa !important;
	color: var(--ug-color-pager-disabled-text) !important;
	box-shadow: none;
	opacity: 1;
}

/* Smartphone: cinco alvos em uma linha e icones locais do paginador. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager {
		display: flex;
		box-sizing: border-box;
		flex-direction: column;
		align-items: center;
		justify-content: stretch;
		gap: 8px;
		width: 100%;
		min-height: 0;
		padding: 12px;
		white-space: normal;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager .pager-summary,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager .pager-summary {
		box-sizing: border-box;
		width: 100%;
		margin: 0;
		padding: 10px 12px;
		text-align: center;
		white-space: normal;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager .pager-size-row,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager .pager-size-row {
		display: flex;
		box-sizing: border-box;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager .pager-size-label,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager .pager-size-label {
		min-width: 0;
		font-size: 14px;
		font-weight: bold;
		line-height: 1.3;
		text-align: left;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager select.pager-size-selector,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager select.pager-size-selector {
		box-sizing: border-box;
		width: 88px !important;
		min-width: 88px !important;
		height: 44px !important;
		margin: 0 !important;
		padding: 8px 12px;
		font-size: 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager .pager-navigation,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager .pager-navigation {
		display: grid;
		box-sizing: border-box;
		grid-template-columns: repeat(5, minmax(44px, 1fr));
		align-items: stretch;
		gap: 8px;
		width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager .pager-page-indicator,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager .pager-page-indicator {
		display: flex;
		box-sizing: border-box;
		align-items: center;
		justify-content: center;
		min-width: 0;
		height: 48px;
		border: 1px solid #008fa6;
		border-color: var(--ug-color-pager-indicator-border);
		border-radius: 6px;
		background: #009bb5;
		background: var(--ug-color-pager-indicator);
		color: #ffffff;
		color: var(--ug-color-surface);
		font-size: 15px;
		font-weight: bold;
		line-height: 1;
		white-space: nowrap;
		box-shadow: 0 4px 10px rgba(0, 143, 166, .16);
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-button,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-button {
		box-sizing: border-box;
		width: 100% !important;
		max-width: none !important;
		min-width: 44px !important;
		height: 48px !important;
		min-height: 48px !important;
		margin: 0 !important;
		padding: 0 !important;
		border-color: #c7d4e2 !important;
		border-color: var(--ug-color-pager-mobile-border) !important;
		background-color: #ffffff !important;
		background-color: var(--ug-color-surface) !important;
		background-position: center !important;
		background-repeat: no-repeat !important;
		background-size: 22px 22px !important;
		color: transparent !important;
		font-size: 0 !important;
		white-space: nowrap;
		box-shadow: 0 3px 8px rgba(8, 20, 47, .08);
		box-shadow: var(--ug-shadow-pager-button-mobile);
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-first,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-first {
		background-image: url('../img/pagination/pager-first.svg') !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-previous,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-previous {
		background-image: url('../img/pagination/pager-previous.svg') !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-next,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-next {
		background-image: url('../img/pagination/pager-next.svg') !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-last,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-last {
		background-image: url('../img/pagination/pager-last.svg') !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-button:hover,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-button:hover {
		border-color: #19b8da !important;
		border-color: var(--ug-color-focus-action) !important;
		background-color: #effbfe !important;
		background-color: var(--ug-color-pager-mobile-hover) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-button:active,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-button:active {
		transform: translateY(1px);
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-pager input.pager-button[disabled],
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-pager input.pager-button[disabled] {
		border-color: #d7dfeb !important;
		border-color: var(--ug-color-pager-disabled-border) !important;
		background-color: #eef2f6 !important;
		background-color: var(--ug-color-pager-disabled-surface) !important;
		filter: grayscale(1);
		opacity: .55;
	}
}

/* RichFaces simpleTogglePanel usado pelo filtro único de Produtos. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel {
	box-sizing: border-box !important;
	width: 100% !important;
	margin: 12px 0 14px !important;
	padding: 0 !important;
	border: 1px solid #f0d4c8 !important;
	border-color: var(--ug-color-border-warm) !important;
	border-radius: 7px !important;
	border-radius: var(--ug-radius-panel) !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
	background-image: none !important;
	box-shadow: 0 7px 18px rgba(8, 20, 47, .06) !important;
	box-shadow: var(--ug-shadow-query-filter) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel > .rich-panel-header,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel > .rich-panel-header,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel > .rich-stglpanel-header,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel > .rich-stglpanel-header {
	box-sizing: border-box !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 13px 18px !important;
	border: 0 !important;
	border-left: 5px solid #ff5a1f !important;
	border-left-color: var(--ug-color-accent) !important;
	border-bottom: 1px solid #f0d4c8 !important;
	border-bottom-color: var(--ug-color-border-warm) !important;
	border-radius: 7px 7px 0 0 !important;
	border-radius: var(--ug-radius-panel) var(--ug-radius-panel) 0 0 !important;
	background: #fff8f5 !important;
	background: var(--ug-color-surface-warm) !important;
	background-image: none !important;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
	font-size: 13px !important;
	font-weight: bold !important;
	line-height: 21px !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .rich-stglpnl-marker,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .rich-stglpnl-marker {
	box-sizing: border-box !important;
	width: 28px !important;
	height: 28px !important;
	margin: -4px -5px -4px 0 !important;
	padding: 0 !important;
	border: 1px solid #c9d6e5 !important;
	border-color: var(--ug-color-filter-marker-border) !important;
	border-radius: 5px !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
	font-size: 0 !important;
	line-height: 26px !important;
	text-align: center !important;
	box-shadow: 0 2px 5px rgba(8, 20, 47, .08) !important;
	box-shadow: var(--ug-shadow-filter-marker) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .rich-stglpnl-marker::before,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .rich-stglpnl-marker::before {
	display: inline-block;
	color: inherit;
	font-family: Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 24px;
	vertical-align: top;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .rich-stglpnl-marker[id$="_switch_on"]::before,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .rich-stglpnl-marker[id$="_switch_on"]::before {
	content: "\2212";
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .rich-stglpnl-marker[id$="_switch_off"]::before,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .rich-stglpnl-marker[id$="_switch_off"]::before {
	content: "+";
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel > .rich-stglpanel-header:hover .rich-stglpnl-marker,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel > .rich-stglpanel-header:hover .rich-stglpnl-marker {
	border-color: #ff5a1f !important;
	border-color: var(--ug-color-accent) !important;
	background: #fff3ed !important;
	background: var(--ug-color-filter-marker-hover-surface) !important;
	color: #d93d00 !important;
	color: var(--ug-color-filter-marker-hover) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel > .rich-panel-body,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel > .rich-panel-body,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel > .rich-stglpanel-body,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel > .rich-stglpanel-body {
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 18px 22px !important;
	border: 0 !important;
	border-radius: 0 0 7px 7px !important;
	border-radius: 0 0 var(--ug-radius-panel) var(--ug-radius-panel) !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
	background-image: none !important;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel > .rich-panel-header,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel > .rich-panel-header,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel > .rich-stglpanel-header,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel > .rich-stglpanel-header {
		min-height: 56px !important;
		padding-top: 14px !important;
		padding-bottom: 14px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .rich-stglpnl-marker,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .rich-stglpnl-marker {
		width: 44px !important;
		height: 44px !important;
		margin: -8px -7px -8px 0 !important;
		line-height: 42px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .rich-stglpnl-marker::before,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .rich-stglpnl-marker::before {
		line-height: 40px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel > .rich-panel-body,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel > .rich-panel-body,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel > .rich-stglpanel-body,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel > .rich-stglpanel-body {
		padding: 14px !important;
	}
}

/* Rodape persistente de acoes do filtro; o JS apenas controla o estado. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-actions {
	box-sizing: border-box;
	clear: both;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 4px !important;
	width: auto !important;
	min-height: 48px !important;
	margin: 10px -22px -18px !important;
	padding: 8px 18px !important;
	border: 0 !important;
	border-left: 5px solid #ff5a1f !important;
	border-left-color: var(--ug-color-accent) !important;
	border-top: 1px solid #f0d4c8 !important;
	border-top-color: var(--ug-color-border-warm) !important;
	border-radius: 0 0 7px 7px !important;
	border-radius: 0 0 var(--ug-radius-panel) var(--ug-radius-panel) !important;
	background: #fff8f5 !important;
	background: var(--ug-color-surface-warm) !important;
	background-image: none !important;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
	line-height: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-actions.app-filter-without-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-actions.app-filter-without-actions {
	display: none !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel.app-filter-collapsed-with-actions > .rich-stglpanel-body,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel.app-filter-collapsed-with-actions > .rich-stglpanel-body {
	display: block !important;
	padding: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel.app-filter-collapsed-with-actions .app-filter-hidden-when-collapsed,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel.app-filter-collapsed-with-actions .app-filter-hidden-when-collapsed {
	display: none !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel.app-filter-collapsed-with-actions .app-filter-footer-carrier,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel.app-filter-collapsed-with-actions .app-filter-footer-carrier {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel.app-filter-collapsed-with-actions .app-filter-export-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel.app-filter-collapsed-with-actions .app-filter-export-actions {
	display: flex !important;
	margin: 0 !important;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-actions {
		margin-right: -14px !important;
		margin-bottom: -14px !important;
		margin-left: -14px !important;
		padding-right: 12px !important;
		padding-left: 12px !important;
	}
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-query-filter-grid,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-query-filter-grid {
	box-sizing: border-box;
	width: auto !important;
	max-width: 1120px;
	margin: 0 !important;
	border-collapse: collapse;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-query-filter-grid > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-query-filter-grid > tbody > tr > td {
	box-sizing: border-box;
	padding: 3px 22px 3px 0 !important;
	vertical-align: top !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-query-date-range,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-query-date-range {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 35px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-actions > a,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-actions > a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 30px !important;
	height: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-actions > a > img,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-actions > a > img {
	display: block !important;
	width: 24px !important;
	height: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-actions.app-filter-operational-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-actions.app-filter-operational-actions {
	justify-content: flex-start !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-context-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-context-actions,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-prefilter-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-prefilter-actions,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-status-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-status-actions,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-group,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-group {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap;
	gap: 4px !important;
	line-height: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-prefilter-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-prefilter-actions,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-status-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-status-actions {
	justify-content: flex-start !important;
	margin: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-group,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-group {
	justify-content: flex-end !important;
	margin-left: auto !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel img.app-filter-action-icon,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel img.app-filter-action-icon {
	box-sizing: border-box;
	display: block !important;
	width: 30px !important;
	height: 30px !important;
	margin: 0 !important;
	padding: 3px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	object-fit: contain;
	cursor: pointer;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-group .app-filter-action-link,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-group .app-filter-action-link {
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 30px !important;
	height: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	line-height: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-group .app-filter-action-link img.app-filter-action-icon,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-group .app-filter-action-link img.app-filter-action-icon {
	width: 24px !important;
	height: 24px !important;
	padding: 0 !important;
}

@media screen and (max-width: 620px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-query-filter-grid,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-query-filter-grid,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-query-filter-grid > tbody,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-query-filter-grid > tbody,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-query-filter-grid > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-query-filter-grid > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-query-filter-grid > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-query-filter-grid > tbody > tr > td {
		display: block;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-query-filter-grid > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-query-filter-grid > tbody > tr > td {
		padding-right: 0 !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-actions > a,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-actions > a,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel .app-filter-export-group .app-filter-action-link,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel .app-filter-export-group .app-filter-action-link,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-panel img.app-filter-action-icon,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-panel img.app-filter-action-icon {
		box-sizing: border-box !important;
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		min-height: 44px !important;
	}
}

/* Faixa RichFaces de Produtos: preserva o DOM original e os eventos Ajax. */

/* Faixa RichFaces de Produtos: preserva o DOM original e os eventos Ajax. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs {
	border: 1px solid #d3e0e5;
	border-color: var(--ug-color-tab-border);
	border-radius: 6px;
	border-radius: var(--ug-radius-tab-panel);
	background: #f8fbfc;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tab-header,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tab-header {
	margin: 0 2px 0 0;
	padding: 10px 14px !important;
	border: 0 !important;
	border-right: 1px solid #d3e0e5 !important;
	border-right-color: var(--ug-color-tab-border) !important;
	border-bottom: 1px solid #d3e0e5 !important;
	border-bottom-color: var(--ug-color-tab-border) !important;
	background: #f2f6f8 !important;
	background: var(--ug-color-tab-surface) !important;
	color: #345563 !important;
	color: var(--ug-color-tab-text) !important;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.2;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tab-active,
body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tab-active {
	position: relative;
	margin-bottom: -1px;
	border-top: 3px solid #0094a7 !important;
	border-top-color: var(--ug-color-tab-active-border) !important;
	border-bottom-color: #ffffff !important;
	border-bottom-color: var(--ug-color-surface) !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
	color: #006f7f !important;
	color: var(--ug-color-tab-active) !important;
	box-shadow: none !important;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs {
		width: 100% !important;
		max-width: 100%;
		table-layout: fixed;
		overflow: visible;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs > tbody > tr > .rich-tab-bottom-line,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs > tbody > tr > .rich-tab-bottom-line {
		box-sizing: border-box;
		display: block;
		width: auto !important;
		max-width: 100%;
		min-width: 0;
		padding: 0;
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-maintenance-tabs .app-responsive-tab-strip,
	body.ug-theme-v2.app-theme-ruby .app-maintenance-tabs .app-responsive-tab-strip {
		box-sizing: border-box;
		position: relative;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x;
		scrollbar-width: thin;
		scrollbar-color: #9bb6c0 #edf3f5;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-form-panel table.rich-table:not(.app-query-table),
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-form-panel table.rich-table:not(.app-query-table) {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-width: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-maintenance-tabs .app-responsive-tab-strip::-webkit-scrollbar,
	body.ug-theme-v2.app-theme-ruby .app-maintenance-tabs .app-responsive-tab-strip::-webkit-scrollbar {
		height: 4px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-maintenance-tabs .app-responsive-tab-strip::-webkit-scrollbar-track,
	body.ug-theme-v2.app-theme-ruby .app-maintenance-tabs .app-responsive-tab-strip::-webkit-scrollbar-track {
		background: #edf3f5;
		background: var(--ug-color-tab-scroll-track);
	}

	body.ug-theme-v2.app-theme-ugestor .app-maintenance-tabs .app-responsive-tab-strip::-webkit-scrollbar-thumb,
	body.ug-theme-v2.app-theme-ruby .app-maintenance-tabs .app-responsive-tab-strip::-webkit-scrollbar-thumb {
		border-radius: 6px;
		border-radius: var(--ug-radius-tab-panel);
		background: #9bb6c0;
		background: var(--ug-color-tab-scroll-thumb);
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-maintenance-form .app-maintenance-tabs .rich-tab-header {
		box-sizing: border-box;
		height: 44px;
		min-height: 44px;
		padding: 0 16px !important;
		font-size: 14px;
		line-height: 1.25;
		white-space: nowrap;
	}

	body.ug-theme-v2.app-theme-ugestor .app-maintenance-tabs .app-responsive-tab-strip .rich-tab-active,
	body.ug-theme-v2.app-theme-ruby .app-maintenance-tabs .app-responsive-tab-strip .rich-tab-active {
		border-top-color: #ff4b12 !important;
		border-top-color: var(--ug-color-tab-active-mobile) !important;
		color: #e9470f !important;
		color: var(--ug-color-tab-active-mobile-text) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-maintenance-tabs .app-responsive-tab-strip .rich-tab-header:focus,
	body.ug-theme-v2.app-theme-ruby .app-maintenance-tabs .app-responsive-tab-strip .rich-tab-header:focus {
		position: relative;
		z-index: 1;
		outline: 2px solid #0d8ea5;
		outline: 2px solid var(--ug-color-focus);
		outline-offset: -3px;
	}
}

/* Grid de resultados RichFaces da consulta de Produtos, sem alterar o DOM. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 100%;
	margin-top: 14px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-tabpanel-content,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-tabpanel-content {
	padding: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-tabpanel-content > div,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-tabpanel-content > div {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	border: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-tabpanel-content > br,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-tabpanel-content > br {
	display: none;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: visible;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table {
	margin: 0 !important;
	border-color: #d7dfeb !important;
	border-color: var(--ug-color-grid-border) !important;
	border-radius: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: #ffffff;
	background: var(--ug-color-surface);
	box-shadow: none;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-headercell,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-headercell,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-subheadercell,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-subheadercell {
	padding: 11px 12px !important;
	border-color: #263758 !important;
	border-color: var(--ug-color-grid-header-border) !important;
	border-bottom: 3px solid #ff5a1f !important;
	border-bottom-color: var(--ug-color-accent) !important;
	background: #10213d !important;
	background: var(--ug-color-ink) !important;
	background-image: none !important;
	color: #ffffff !important;
	color: var(--ug-color-surface) !important;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: .01em;
	line-height: 1.25;
	text-shadow: none;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-headercell:first-child,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-headercell:first-child,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-subheadercell:first-child,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-subheadercell:first-child {
	border-top-left-radius: 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-headercell:last-child,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-headercell:last-child,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-subheadercell:last-child,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-subheadercell:last-child {
	border-top-right-radius: 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-headercell a,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-headercell a,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-headercell span,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-headercell span,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-subheadercell a,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-subheadercell a,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-subheadercell span,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-subheadercell span {
	color: #ffffff !important;
	color: var(--ug-color-surface) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-headercell img,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-headercell img,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-subheadercell img,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-subheadercell img {
	filter: brightness(0) invert(1);
	opacity: .82;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-cell {
	padding: 9px 12px !important;
	border-color: #f5e3dc !important;
	border-color: var(--ug-color-grid-cell-border) !important;
	color: #263b58 !important;
	color: var(--ug-color-grid-cell-text) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-table-row:nth-child(even),
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-table-row:nth-child(even) {
	background: #fffaf8 !important;
	background: var(--ug-color-grid-row-even) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-row-actions,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-row-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 58px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-row-actions input[type="image"] {
	box-sizing: content-box;
	display: block;
	margin: 0 !important;
	padding: 2px !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-totals,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-totals {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 24px;
	width: 100%;
	color: #ffffff;
	color: var(--ug-color-surface);
	text-align: left;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-total-item,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-total-item {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	min-width: 150px;
	color: #ffffff;
	color: var(--ug-color-surface);
	white-space: nowrap;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-total-label,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-total-label {
	color: rgba(255, 255, 255, .78) !important;
	color: var(--ug-color-grid-total-label) !important;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .02em;
}

/* Períodos financeiros: a descrição da conta pertence ao corpo da grade,
 * não ao total do cabeçalho, portanto mantém o contraste das células. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-financial-period-results .rich-table-cell .app-query-total-label,
body.ug-theme-v2.app-theme-ruby .conteudo .app-financial-period-results .rich-table-cell .app-query-total-label {
	color: #263b58 !important;
	color: var(--ug-color-grid-cell-text) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-total-value,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-total-value {
	color: #ffffff !important;
	color: var(--ug-color-surface) !important;
	font-size: 12px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

@media screen and (max-width: 720px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-totals,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-totals {
		align-items: stretch;
		flex-direction: column;
		gap: 5px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-total-item,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-total-item {
		justify-content: space-between;
		width: 100%;
		min-width: 0;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: visible;
		-webkit-overflow-scrolling: touch;
		scrollbar-gutter: stable;
		overscroll-behavior-x: contain;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-table-scroll > table.rich-table,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-table-scroll > table.rich-table {
		display: table !important;
		width: auto !important;
		max-width: none !important;
		overflow: visible !important;
	}
}

/* Abas de consulta de Produtos; o normalizador existente preserva o DOM RichFaces. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs.rich-tabpanel,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs.rich-tabpanel {
	margin-top: 14px;
	border: 1px solid #d3e0e5;
	border-color: var(--ug-color-tab-border);
	border-radius: 6px;
	border-radius: var(--ug-radius-tab-panel);
	background: #f8fbfc;
	background: var(--ug-color-tab-panel);
	box-shadow: 0 6px 16px rgba(23, 63, 75, .05);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs .rich-tab-header,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs .rich-tab-header {
	margin: 0 2px 0 0;
	padding: 10px 14px !important;
	border: 0 !important;
	border-right: 1px solid #f0d4c8 !important;
	border-right-color: var(--ug-color-border-warm) !important;
	border-bottom: 1px solid #f0d4c8 !important;
	border-bottom-color: var(--ug-color-border-warm) !important;
	background: #fffaf7 !important;
	background: var(--ug-color-surface-context) !important;
	background-image: none !important;
	color: #415672 !important;
	color: var(--ug-color-pager-text) !important;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.2;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs .rich-tab-active,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs .rich-tab-active {
	position: relative;
	margin-bottom: -1px;
	border-top: 3px solid #ff5a1f !important;
	border-top-color: var(--ug-color-accent) !important;
	border-bottom-color: #ffffff !important;
	border-bottom-color: var(--ug-color-surface) !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
	color: #e94a16 !important;
	color: var(--ug-color-accent-strong) !important;
	box-shadow: none !important;
}

/* Acao compacta reutilizada para remover um filtro selecionado. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-clear,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-clear {
	box-sizing: content-box;
	width: 16px;
	height: 16px;
	margin: 0 5px 0 0 !important;
	padding: 6px !important;
	border: 1px solid #cbd8e8;
	border-color: var(--ug-color-border-action-secondary);
	border-radius: 5px;
	background: #ffffff;
	background: var(--ug-color-surface);
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-filter-clear:hover,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-filter-clear:hover {
	border-color: #ff9a77;
	border-color: var(--ug-color-border-action-hover);
	background: #fff4ef;
	background: var(--ug-color-surface-action-hover);
}

/* Marcador contextual de cabeçalhos de página e da baseline Produtos. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-eyebrow,
body.ug-theme-v2.app-theme-ruby .conteudo .app-page-eyebrow {
	display: block;
	margin-bottom: 7px;
	color: #e94a16 !important;
	color: var(--ug-color-accent-strong) !important;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* Superficie e tipografia do cabecalho contextual criado pelo normalizador. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading,
body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading {
	box-sizing: border-box;
	position: relative;
	min-height: 92px;
	margin: 16px 0 14px;
	padding: 19px 24px 18px;
	overflow: hidden;
	border: 1px solid #f0d4c8;
	border-color: var(--ug-color-border-warm);
	border-left: 5px solid #ff5a1f;
	border-left-color: var(--ug-color-accent);
	border-radius: 4px;
	background: linear-gradient(110deg, #ffffff 0%, #fffaf7 68%, #fff1ea 100%) !important;
	background: var(--ug-gradient-page-heading) !important;
	box-shadow: 0 8px 22px rgba(8, 20, 47, .07) !important;
	box-shadow: var(--ug-shadow-page-heading) !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading::after,
body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading::after {
	position: absolute;
	width: 176px;
	height: 176px;
	top: -104px;
	right: -72px;
	border: 1px solid rgba(255, 90, 31, .16) !important;
	border-color: var(--ug-color-page-heading-decoration-border) !important;
	border-radius: 50%;
	background: rgba(255, 90, 31, .06) !important;
	background: var(--ug-color-page-heading-decoration-surface) !important;
	content: "";
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading h2,
body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading h2 {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
	font-size: 31px;
	font-weight: bold;
	line-height: 1.16;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading p,
body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading p {
	position: relative;
	z-index: 1;
	max-width: 780px;
	margin: 7px 0 0;
	color: #58708d !important;
	color: var(--ug-color-text-muted) !important;
	font-size: 16px;
	line-height: 1.45;
}

@media screen and (max-width: 850px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading h2,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading h2 {
		font-size: 25px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading p,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading p {
		font-size: 14px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		padding: 18px !important;
		border-radius: 8px;
	}
}

@media screen and (max-width: 480px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading {
		padding: 15px !important;
	}

	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading {
		padding: 15px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-page-heading h2,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-page-heading h2 {
		font-size: 23px !important;
	}
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-tabpanel-content-position,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-tabpanel-content-position {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	table-layout: fixed;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-tabpanel-content,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-tabpanel-content,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-results .rich-tabpanel-content,
body.ug-theme-v2.app-theme-ruby .conteudo .app-query-results .rich-tabpanel-content {
	overflow: hidden;
}

@media screen and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-report-detail-tabs.rich-tabpanel,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-report-detail-tabs.rich-tabpanel {
		display: table !important;
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		table-layout: fixed;
		overflow: visible !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs > tbody > tr:first-child,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs > tbody > tr:first-child,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-report-detail-tabs > tbody > tr:first-child,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-report-detail-tabs > tbody > tr:first-child,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs .rich-tabpanel-header-position-top,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs .rich-tabpanel-header-position-top,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-report-detail-tabs .rich-tabpanel-header-position-top,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-report-detail-tabs .rich-tabpanel-header-position-top {
		display: block;
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs.rich-tabpanel,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs.rich-tabpanel {
		display: table !important;
		width: 100% !important;
		max-width: 100% !important;
		table-layout: fixed;
		overflow: visible !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs .app-responsive-tab-strip,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs .app-responsive-tab-strip {
		position: relative;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x;
		scrollbar-width: thin;
		scrollbar-color: #9bb6c0 #edf3f5;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs .app-responsive-tab-strip::-webkit-scrollbar,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs .app-responsive-tab-strip::-webkit-scrollbar {
		height: 4px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs .app-responsive-tab-strip::-webkit-scrollbar-track,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs .app-responsive-tab-strip::-webkit-scrollbar-track {
		background: #edf3f5;
		background: var(--ug-color-tab-scroll-track);
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs .app-responsive-tab-strip::-webkit-scrollbar-thumb,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs .app-responsive-tab-strip::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: #9bb6c0;
		background: var(--ug-color-tab-scroll-thumb);
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs .app-responsive-tab-strip > table,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs .app-responsive-tab-strip > table {
		width: max-content !important;
		min-width: 100%;
		table-layout: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs .rich-tab-header {
		box-sizing: border-box;
		height: 44px;
		min-height: 44px;
		padding: 0 16px !important;
		font-size: 14px;
		line-height: 1.25;
		white-space: nowrap;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs .app-responsive-tab-strip .rich-tab-active,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs .app-responsive-tab-strip .rich-tab-active {
		border-top-color: #ff4b12 !important;
		border-top-color: var(--ug-color-tab-active-mobile) !important;
		color: #e9470f !important;
		color: var(--ug-color-tab-active-mobile-text) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-query-tabs .app-responsive-tab-strip .rich-tab-header:focus,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-query-tabs .app-responsive-tab-strip .rich-tab-header:focus {
		position: relative;
		z-index: 1;
		outline: 2px solid #0094a7;
		outline: 2px solid var(--ug-color-tab-active-border);
		outline-offset: -3px;
	}
}

/* Consulta de Pessoas: adapta somente os agrupamentos que nao existem na
 * baseline generica de Produtos, preservando tabelas e tabs RichFaces. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-filter-fields,
body.ug-theme-v2.app-theme-ruby .conteudo .app-person-filter-fields {
	box-sizing: border-box;
	width: 100%;
	max-width: 920px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-filter-fields .name,
body.ug-theme-v2.app-theme-ruby .conteudo .app-person-filter-fields .name {
	box-sizing: border-box;
	width: 220px;
	padding-right: 12px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-filter-fields .value,
body.ug-theme-v2.app-theme-ruby .conteudo .app-person-filter-fields .value {
	box-sizing: border-box;
	width: calc(100% - 220px);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-query-results,
body.ug-theme-v2.app-theme-ruby .conteudo .app-person-query-results,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-query-tabs,
body.ug-theme-v2.app-theme-ruby .conteudo .app-person-query-tabs {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-query-results .app-person-table-scroll,
body.ug-theme-v2.app-theme-ruby .conteudo .app-person-query-results .app-person-table-scroll {
	border: 0;
	border-radius: 0;
}

@media screen and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-query-tabs .rich-tabpanel-content-position,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-query-tabs .rich-tabpanel-content-position {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		table-layout: fixed;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-query-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-query-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-query-tabs .app-person-table-scroll,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-query-tabs .app-person-table-scroll {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-query-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-query-tabs .rich-tabpanel-content {
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-query-results .app-person-table-scroll,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-query-results .app-person-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-filter-fields .value {
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-registration-types,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-registration-types,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-type-options,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-type-options {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-registration-types td,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-registration-types td,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-type-options td,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-type-options td {
		box-sizing: border-box;
		display: inline-flex;
		align-items: center;
		width: calc(50% - 4px);
		min-width: 0;
		min-height: 44px;
		margin: 0 4px 8px 0 !important;
		padding: 8px !important;
		border: 1px solid #bfd0df;
		border-color: var(--ug-color-border-control);
		border-radius: 6px;
		background: #ffffff;
		background: var(--ug-color-surface);
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-registration-types input[type="checkbox"],
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-registration-types input[type="checkbox"],
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-type-options input[type="radio"],
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-type-options input[type="radio"] {
		box-sizing: content-box;
		flex: 0 0 auto;
		margin: 0 8px 0 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-registration-types label,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-registration-types label,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-type-options label,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-type-options label {
		min-width: 0;
		margin: 0 !important;
		line-height: 1.3;
		white-space: normal;
		overflow-wrap: anywhere;
		cursor: pointer;
	}
}

@media screen and (min-width: 390px) and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-registration-types td,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-registration-types td,
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-person-type-options td,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-person-type-options td {
		width: calc(33.333% - 6px);
	}
}

/* Replicacao de Bem: especializacao visual compartilhada pelas duas etapas,
 * sem alterar o fluxo Ajax, os dados ou a selecao existente. */
body.ug-theme-v2.app-theme-ugestor .app-replication-modal .rich-mpnl-content,
body.ug-theme-v2.app-theme-ruby .app-replication-modal .rich-mpnl-content {
	border-color: #cbd8e8 !important;
	border-color: var(--ug-color-border-action-secondary) !important;
	box-shadow: 0 24px 56px rgba(8, 20, 47, .28) !important;
	box-shadow: var(--ug-shadow-modal-elevated) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal .rich-mpnl-header,
body.ug-theme-v2.app-theme-ruby .app-replication-modal .rich-mpnl-header {
	border-bottom: 3px solid #ff5a1f !important;
	border-bottom-color: var(--ug-color-accent) !important;
	background: #10213d !important;
	background: var(--ug-color-ink) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal .rich-mpnl-body,
body.ug-theme-v2.app-theme-ruby .app-replication-modal .rich-mpnl-body {
	box-sizing: border-box;
	padding: 16px !important;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-content,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-replication-modal-form,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-form {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-prompt,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-prompt {
	margin: 0 0 14px;
	color: #10213d;
	color: var(--ug-color-ink);
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-replication-modal-grid,
body.ug-theme-v2.app-theme-ruby .conteudo .app-replication-modal-grid {
	box-sizing: border-box;
	justify-content: flex-start;
	width: 100%;
	height: 300px;
	overflow: auto;
	border: 1px solid #bfd0df;
	border-color: var(--ug-color-border-control);
	border-radius: 6px;
	background: #ffffff;
	background: var(--ug-color-surface);
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-grid .rich-table,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-grid .rich-table {
	width: 100%;
	border: 0 !important;
	border-collapse: collapse;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-grid .rich-table-headercell,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-grid .rich-table-headercell,
body.ug-theme-v2.app-theme-ugestor .app-replication-modal-grid .rich-table-subheadercell,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-grid .rich-table-subheadercell {
	padding: 8px 7px !important;
	border: 0 !important;
	border-right: 1px solid rgba(255, 255, 255, .14) !important;
	border-bottom: 3px solid #ff5a1f !important;
	border-bottom-color: var(--ug-color-accent) !important;
	background: #10213d !important;
	background: var(--ug-color-ink) !important;
	background-image: none !important;
	color: #ffffff !important;
	font-size: 12px;
	font-weight: bold;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-grid .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-grid .rich-table-cell {
	padding: 8px 7px !important;
	border-color: #d7dfeb !important;
	border-color: var(--ug-color-grid-border) !important;
	color: #10213d;
	color: var(--ug-color-ink);
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-actions,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-actions > span,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-actions > span {
	display: block;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-actions input[type="submit"],
body.ug-theme-v2.app-theme-ruby .app-replication-modal-actions input[type="submit"],
body.ug-theme-v2.app-theme-ugestor .app-replication-modal-actions input[type="button"],
body.ug-theme-v2.app-theme-ruby .app-replication-modal-actions input[type="button"] {
	min-width: 96px !important;
	min-height: 36px;
	margin: 0 !important;
	border-radius: 5px;
	background-image: none !important;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-primary input,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-primary input {
	border-color: #e94a16 !important;
	border-color: var(--ug-color-accent-strong) !important;
	background: #ff5a1f !important;
	background: var(--ug-color-accent) !important;
	color: #ffffff !important;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-primary input:hover,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-primary input:hover {
	border-color: #cf3810 !important;
	border-color: var(--ug-color-accent-hover) !important;
	background: #e94a16 !important;
	background: var(--ug-color-accent-strong) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-secondary input,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-secondary input {
	border-color: #cbd8e8 !important;
	border-color: var(--ug-color-border-action-secondary) !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-secondary input:hover,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-secondary input:hover {
	border-color: #ff9a77 !important;
	border-color: var(--ug-color-border-action-hover) !important;
	background: #fff4ef !important;
	background: var(--ug-color-surface-action-hover) !important;
	color: #e94a16 !important;
	color: var(--ug-color-accent-strong) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-replication-modal-actions input:focus,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-actions input:focus,
body.ug-theme-v2.app-theme-ugestor .app-replication-modal-grid input:focus,
body.ug-theme-v2.app-theme-ruby .app-replication-modal-grid input:focus {
	outline: 2px solid #19b8da !important;
	outline: 2px solid var(--ug-color-focus-action) !important;
	outline-offset: 2px;
}

@media screen and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-replication-modal,
	body.ug-theme-v2.app-theme-ruby .app-replication-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-replication-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-replication-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-replication-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-replication-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-replication-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
		max-height: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-modal-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ruby .app-replication-modal-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ugestor .app-replication-modal-actions input[type="button"],
	body.ug-theme-v2.app-theme-ruby .app-replication-modal-actions input[type="button"] {
		min-height: 44px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-replication-modal,
	body.ug-theme-v2.app-theme-ruby .app-replication-modal {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-modal .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ruby .app-replication-modal .rich-mpnl-body {
		box-sizing: border-box;
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-modal .app-replication-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-replication-modal .app-replication-modal-content {
		box-sizing: border-box;
		max-height: calc(100vh - 176px);
		max-height: calc(100dvh - 176px);
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-replication-modal-grid {
		height: 240px;
		max-height: calc(100vh - 310px);
		max-height: calc(100dvh - 310px);
		min-height: 120px;
	}
}

@media screen and (max-width: 520px) {
	body.ug-theme-v2.app-theme-ugestor .app-replication-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-replication-modal-actions {
		align-items: stretch;
		flex-direction: column;
	}

	body.ug-theme-v2.app-theme-ugestor .app-replication-modal-actions > span,
	body.ug-theme-v2.app-theme-ruby .app-replication-modal-actions > span,
	body.ug-theme-v2.app-theme-ugestor .app-replication-modal-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ruby .app-replication-modal-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ugestor .app-replication-modal-actions input[type="button"],
	body.ug-theme-v2.app-theme-ruby .app-replication-modal-actions input[type="button"] {
		width: 100%;
	}
}

/* Quantidade de Produto no padrao de producao/venda: formulario compacto
 * preservado, com alvos e geometria adequados por viewport. */
body.ug-theme-v2.app-theme-ugestor .app-product-quantity-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-product-quantity-modal-fields {
	padding: 4px 0 2px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-quantity-control,
body.ug-theme-v2.app-theme-ruby .app-product-quantity-control {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-quantity-modal .app-control-quantity,
body.ug-theme-v2.app-theme-ruby .app-product-quantity-modal .app-control-quantity {
	min-height: 44px;
	padding: 7px 9px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-quantity-unit,
body.ug-theme-v2.app-theme-ruby .app-product-quantity-unit {
	color: #58708d;
	color: var(--ug-color-text-muted);
	font-size: 13px;
	font-weight: bold;
	white-space: nowrap;
}

body.ug-theme-v2.app-theme-ugestor .app-product-quantity-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-product-quantity-modal .app-form-modal-actions input {
	min-height: 44px;
}

/* O autosized do RichFaces ignora a largura declarada quando o campo ainda
 * esta vazio; aplica a largura ao CDiv efetivo sem tocar nos callbacks. */
body.ug-theme-v2.app-theme-ugestor .app-product-quantity-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-product-quantity-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
	box-sizing: border-box !important;
	width: 380px !important;
	max-width: calc(100vw - 48px) !important;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-quantity-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-product-quantity-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-quantity-modal,
	body.ug-theme-v2.app-theme-ruby .app-product-quantity-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-quantity-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-product-quantity-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-product-quantity-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-product-quantity-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-product-quantity-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-product-quantity-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-quantity-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-product-quantity-modal .app-modal-close-button {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}
}

/* Confirmacoes operacionais: componente reutilizado em Cadastros, com a mesma
 * composicao, foco e quebra responsiva em todos os consumidores. */
body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .rich-mpnl-content,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .rich-mpnl-content {
	border-color: #cbd8e8 !important;
	border-color: var(--ug-color-border-action-secondary) !important;
	box-shadow: 0 18px 42px rgba(12, 43, 54, .28) !important;
	box-shadow: var(--ug-shadow-modal) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .rich-mpnl-header,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .rich-mpnl-header {
	border-bottom: 3px solid #ff5a1f !important;
	border-bottom-color: var(--ug-color-accent) !important;
	background: #10213d !important;
	background: var(--ug-color-ink) !important;
}

/* RichFaces reduz modais autosized ao conteudo minimo. A largura fica no
 * wrapper real gerado no cliente, preservando o XHTML e os bindings legados. */
body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
	box-sizing: border-box !important;
	width: 420px !important;
	max-width: calc(100vw - 48px) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal-content,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal-content {
	text-align: center;
}

body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal-message,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal-message {
	display: block;
	color: #10213d;
	color: var(--ug-color-ink);
	font-size: 14px;
	line-height: 1.45;
}

body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal-actions,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-actions span,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-actions span {
	display: inline-flex;
	align-items: stretch;
}

body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-actions input[type="submit"],
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-actions input[type="submit"],
body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-actions input[type="button"],
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-actions input[type="button"] {
	min-width: 88px !important;
	min-height: 36px;
	margin: 0 !important;
	border-radius: 5px;
	background-image: none !important;
}

body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-primary input,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-primary input {
	border-color: #e94a16 !important;
	border-color: var(--ug-color-accent-strong) !important;
	background: #ff5a1f !important;
	background: var(--ug-color-accent) !important;
	color: #ffffff !important;
}

body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-primary input:hover,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-primary input:hover {
	border-color: #cf3810 !important;
	border-color: var(--ug-color-accent-hover) !important;
	background: #e94a16 !important;
	background: var(--ug-color-accent-strong) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-secondary input,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-secondary input {
	border-color: #cbd8e8 !important;
	border-color: var(--ug-color-border-action-secondary) !important;
	background: #ffffff !important;
	background: var(--ug-color-surface) !important;
	color: #10213d !important;
	color: var(--ug-color-ink) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-secondary input:hover,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-secondary input:hover {
	border-color: #ff9a77 !important;
	border-color: var(--ug-color-border-action-hover) !important;
	background: #fff4ef !important;
	background: var(--ug-color-surface-action-hover) !important;
	color: #e94a16 !important;
	color: var(--ug-color-accent-strong) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-actions input:focus,
body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-actions input:focus {
	outline: 2px solid #19b8da !important;
	outline: 2px solid var(--ug-color-focus-action) !important;
	outline-offset: 2px;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal,
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-actions input[type="button"],
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-actions input[type="button"] {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-modal-close-button {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}
}

@media screen and (max-width: 420px) {
	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-actions {
		align-items: stretch;
		flex-direction: column;
	}

	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-actions span,
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-actions span,
	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-actions input[type="submit"],
	body.ug-theme-v2.app-theme-ugestor .app-confirmation-modal .app-confirmation-modal-actions input[type="button"],
	body.ug-theme-v2.app-theme-ruby .app-confirmation-modal .app-confirmation-modal-actions input[type="button"] {
		width: 100%;
	}
}

/* Duplicacao de Produto: formulario de duas colunas do legado mantido com
 * controles e acoes tocaveis sem modificar validacao, permissao ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-product-duplicate-modal .app-form-modal-fields input[type="text"],
body.ug-theme-v2.app-theme-ruby .app-product-duplicate-modal .app-form-modal-fields input[type="text"],
body.ug-theme-v2.app-theme-ugestor .app-product-duplicate-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-product-duplicate-modal .app-form-modal-actions input {
	min-height: 44px !important;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-duplicate-modal,
	body.ug-theme-v2.app-theme-ruby .app-product-duplicate-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-duplicate-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-product-duplicate-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-product-duplicate-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-product-duplicate-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-product-duplicate-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-product-duplicate-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-duplicate-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-product-duplicate-modal .app-modal-close-button {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}
}

/* Confirmacao de exclusao: destaque semantico compartilhado para a entidade
 * afetada, mantendo a acao e os dados resolvidos pelo servidor. */
body.ug-theme-v2.app-theme-ugestor .app-deletion-confirmation-modal-content,
body.ug-theme-v2.app-theme-ruby .app-deletion-confirmation-modal-content {
	padding-top: 2px;
}

body.ug-theme-v2.app-theme-ugestor .app-deletion-confirmation-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-deletion-confirmation-modal-entity {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid #f0d4c8;
	border-color: var(--ug-color-border-warm);
	border-left: 4px solid #ff5a1f;
	border-left-color: var(--ug-color-accent);
	border-radius: 5px;
	background: #fff8f5;
	background: var(--ug-color-surface-warm);
	color: #10213d;
	color: var(--ug-color-ink);
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
	text-align: left;
	word-break: break-word;
}

/* Preco de Produto: conserva o calendario transversal e ajusta somente a
 * composicao do formulario e das acoes por viewport. */
body.ug-theme-v2.app-theme-ugestor .app-product-price-modal .app-form-modal-fields input[type="text"],
body.ug-theme-v2.app-theme-ruby .app-product-price-modal .app-form-modal-fields input[type="text"] {
	width: 170px;
	max-width: calc(100% - 28px);
}

body.ug-theme-v2.app-theme-ugestor .app-product-price-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-product-price-modal .app-form-modal-actions input {
	min-height: 44px !important;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-price-modal,
	body.ug-theme-v2.app-theme-ruby .app-product-price-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-price-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-product-price-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-product-price-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-product-price-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-product-price-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-product-price-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-price-modal .app-modal-close-button,
body.ug-theme-v2.app-theme-ruby .app-product-price-modal .app-modal-close-button {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}
}

/* Associacao de Produtos: o grid permanece no seu proprio contêiner e o
 * paginador compartilhado conserva as acoes acessiveis por viewport. */
body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-selection-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-selection-modal-grid {
	box-sizing: border-box;
	min-width: 0;
	overflow: auto;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-selection-modal-grid table,
body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-selection-modal-grid table {
	min-width: 680px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-selection-modal-check-target,
body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-selection-modal-check-target,
body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-modal-close-button,
body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-modal-close-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 44px;
	min-height: 44px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-selection-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-selection-modal-actions input {
	min-height: 44px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
		max-height: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal .rich-mpnl-body,
	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-selection-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-selection-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-selection-modal-form,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-selection-modal-form {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-selection-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-selection-modal-content {
		max-height: calc(100vh - 108px);
		max-height: calc(100dvh - 108px);
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-selection-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-selection-modal-grid {
		flex: 1 1 auto;
		min-height: 160px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-selection-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-selection-modal-actions {
		display: flex;
		align-items: stretch;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-selection-modal-actions > span,
	body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-selection-modal-actions > span,
	body.ug-theme-v2.app-theme-ugestor .app-product-association-modal .app-selection-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-product-association-modal .app-selection-modal-actions input {
		box-sizing: border-box;
		width: 100%;
	}
}

/* Consulta de Grupo de Produto: filtros, resultado e ações reutilizam a
 * composição de Produtos, mantendo a rolagem apenas no wrapper da tabela. */
body.ug-theme-v2.app-theme-ugestor .app-product-group-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-product-group-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-product-group-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-group-table-scroll {
	box-sizing: border-box;
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-product-group-filter-fields .name,
body.ug-theme-v2.app-theme-ruby .app-product-group-filter-fields .name {
	box-sizing: border-box;
	width: 205px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-group-filter-fields .value,
body.ug-theme-v2.app-theme-ruby .app-product-group-filter-fields .value {
	box-sizing: border-box;
	width: calc(100% - 205px);
}

body.ug-theme-v2.app-theme-ugestor .app-product-group-filter-fields input[type="text"],
body.ug-theme-v2.app-theme-ruby .app-product-group-filter-fields input[type="text"] {
	box-sizing: border-box;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-product-group-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-group-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-product-group-table,
body.ug-theme-v2.app-theme-ruby .app-product-group-table {
	min-width: 560px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-group-row-actions,
body.ug-theme-v2.app-theme-ruby .app-product-group-row-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-group-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-product-group-row-actions input[type="image"] {
	box-sizing: content-box;
	width: 20px;
	height: 20px;
	padding: 8px;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-group-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-product-group-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-product-group-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-product-group-filter-fields .value {
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-group-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-product-group-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-group-filter-fields input[type="text"],
body.ug-theme-v2.app-theme-ruby .app-product-group-filter-fields input[type="text"] {
		width: 100% !important;
		min-height: 44px;
	}
}

/* Consulta de Associacoes de Produtos: a selecao preserva o autocomplete
 * global e limita a rolagem horizontal ao resultado da consulta. */
body.ug-theme-v2.app-theme-ugestor .app-product-association-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-product-association-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-product-association-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-association-table-scroll {
	box-sizing: border-box;
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-filter-fields .name,
body.ug-theme-v2.app-theme-ruby .app-product-association-filter-fields .name {
	box-sizing: border-box;
	width: 205px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-filter-fields .value,
body.ug-theme-v2.app-theme-ruby .app-product-association-filter-fields .value {
	box-sizing: border-box;
	width: calc(100% - 205px);
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-selected-product .app-product-association-product-name,
body.ug-theme-v2.app-theme-ruby .app-product-association-selected-product .app-product-association-product-name,
body.ug-theme-v2.app-theme-ugestor .app-product-association-selected-product .app-product-association-product-details,
body.ug-theme-v2.app-theme-ruby .app-product-association-selected-product .app-product-association-product-details {
	display: inline-block;
	max-width: calc(100% - 44px);
	overflow-wrap: anywhere;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-product-name,
body.ug-theme-v2.app-theme-ruby .app-product-association-product-name {
	font-weight: bold;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-association-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-table,
body.ug-theme-v2.app-theme-ruby .app-product-association-table {
	min-width: 560px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-row-actions,
body.ug-theme-v2.app-theme-ruby .app-product-association-row-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-product-association-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ugestor .app-product-association-selected-product .app-query-filter-clear,
body.ug-theme-v2.app-theme-ruby .app-product-association-selected-product .app-query-filter-clear {
	box-sizing: content-box;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-deletion-details,
body.ug-theme-v2.app-theme-ruby .app-product-association-deletion-details {
	display: block;
	margin-top: 5px;
	overflow-wrap: anywhere;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-association-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-product-association-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-product-association-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-product-association-filter-fields .value {
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-association-filter-fields .name,
body.ug-theme-v2.app-theme-ruby .app-product-association-filter-fields .name {
		padding: 5px 0 3px;
	}
}

/* Consulta de Subgrupos de Produto: especializa somente os dados adicionais
 * do grupo-pai, mantendo o autocomplete sob o contrato transversal. */
body.ug-theme-v2.app-theme-ugestor .app-product-subgroup-table,
body.ug-theme-v2.app-theme-ruby .app-product-subgroup-table {
	min-width: 900px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-subgroup-parent-value,
body.ug-theme-v2.app-theme-ruby .app-product-subgroup-parent-value {
	display: inline-block;
	max-width: calc(100% - 44px);
	overflow-wrap: anywhere;
}

body.ug-theme-v2.app-theme-ugestor .app-product-subgroup-filter-clear,
body.ug-theme-v2.app-theme-ruby .app-product-subgroup-filter-clear {
	box-sizing: content-box;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

body.ug-theme-v2.app-theme-ugestor .app-product-subgroup-deletion-entity,
body.ug-theme-v2.app-theme-ruby .app-product-subgroup-deletion-entity {
	box-sizing: border-box;
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-product-subgroup-deletion-entity .app-deletion-confirmation-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-product-subgroup-deletion-entity .app-deletion-confirmation-modal-entity {
	margin-top: 9px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-subgroup-deletion-parent-label,
body.ug-theme-v2.app-theme-ruby .app-product-subgroup-deletion-parent-label {
	display: inline-block;
	margin: 8px 5px 0 12px;
	font-weight: bold;
}

body.ug-theme-v2.app-theme-ugestor .app-product-subgroup-deletion-parent,
body.ug-theme-v2.app-theme-ruby .app-product-subgroup-deletion-parent {
	overflow-wrap: anywhere;
}

/* Agrupadores de Menu: as tres abas reutilizam o formulario canonico e
 * mantem as listas internas rolaveis sem alterar seus bindings. */
body.ug-theme-v2.app-theme-ugestor .app-product-aggregator-fields,
body.ug-theme-v2.app-theme-ruby .app-product-aggregator-fields,
body.ug-theme-v2.app-theme-ugestor .app-product-aggregator-results,
body.ug-theme-v2.app-theme-ruby .app-product-aggregator-results {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-product-aggregator-results,
body.ug-theme-v2.app-theme-ruby .app-product-aggregator-results {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-product-aggregator-table,
body.ug-theme-v2.app-theme-ruby .app-product-aggregator-table {
	min-width: 680px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-aggregator-inline-actions,
body.ug-theme-v2.app-theme-ruby .app-product-aggregator-inline-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-aggregator-icon-action,
body.ug-theme-v2.app-theme-ruby .app-product-aggregator-icon-action {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-aggregator-inline-actions > *,
body.ug-theme-v2.app-theme-ruby .app-product-aggregator-inline-actions > * {
		min-height: 44px;
	}
}

/* Manutencao de Associacoes: o produto selecionado e a lista vinculada usam
 * a mesma leitura da consulta, sem especializar o autocomplete compartilhado. */
body.ug-theme-v2.app-theme-ugestor .app-product-association-linked-results,
body.ug-theme-v2.app-theme-ruby .app-product-association-linked-results,
body.ug-theme-v2.app-theme-ugestor .app-product-association-linked-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-association-linked-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-linked-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-association-linked-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-linked-table,
body.ug-theme-v2.app-theme-ruby .app-product-association-linked-table {
	min-width: 620px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-linked-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-product-association-linked-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-linked-empty,
body.ug-theme-v2.app-theme-ruby .app-product-association-linked-empty {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 14px;
	overflow-wrap: anywhere;
}

body.ug-theme-v2.app-theme-ugestor .app-product-association-row-actions a,
body.ug-theme-v2.app-theme-ruby .app-product-association-row-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: content-box;
	width: 20px;
	height: 20px;
	padding: 12px;
}

/* Item GGF e Grupo de Produto: preserva o autocomplete global, com campos e
 * ações contidos no modal responsivo. */
body.ug-theme-v2.app-theme-ugestor .app-ggf-product-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-ggf-product-modal .app-form-modal-actions input {
	min-height: 44px !important;
}

body.ug-theme-v2.app-theme-ugestor .app-ggf-product-remove-target,
body.ug-theme-v2.app-theme-ruby .app-ggf-product-remove-target {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 44px;
	min-height: 44px;
}

body.ug-theme-v2.app-theme-ugestor .app-ggf-product-remove-action,
body.ug-theme-v2.app-theme-ruby .app-ggf-product-remove-action {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-ggf-product-modal,
	body.ug-theme-v2.app-theme-ruby .app-ggf-product-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-ggf-product-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-ggf-product-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-ggf-product-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-ggf-product-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-ggf-product-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-ggf-product-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-ggf-product-modal .app-form-modal-fields select,
	body.ug-theme-v2.app-theme-ruby .app-ggf-product-modal .app-form-modal-fields select,
	body.ug-theme-v2.app-theme-ugestor .app-ggf-product-modal .app-form-modal-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-ggf-product-modal .app-form-modal-fields input[type="text"] {
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-ggf-product-modal .app-modal-close-button,
body.ug-theme-v2.app-theme-ruby .app-ggf-product-modal .app-modal-close-button {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}
}

/* Vinculo ou clonagem de Contrato: o autocomplete permanece no fluxo do
 * formulario, com geometria limitada no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .app-contract-link-modal-content,
body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .app-contract-link-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
		max-height: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .app-form-modal-inline-fields,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .app-form-modal-inline-fields {
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .app-form-modal-actions input {
		min-width: 44px;
		min-height: 44px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .app-contract-link-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .app-contract-link-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .app-form-modal-inline-fields,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .app-form-modal-inline-fields {
		width: 100%;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ugestor .app-contract-link-modal .app-modal-row-action,
	body.ug-theme-v2.app-theme-ruby .app-contract-link-modal .app-modal-row-action {
		min-width: 44px;
		min-height: 44px;
	}
}

/* Pagamento de Projeto: o formulario financeiro permanece no modal e somente
 * seu conteudo variavel rola nos viewports menores. */
/* Formas financeiras de Contrato reutilizam a mesma composicao sem duplicar bindings. */
body.ug-theme-v2.app-theme-ugestor .app-contract-financial-modal .app-financial-form-modal-content,
body.ug-theme-v2.app-theme-ruby .app-contract-financial-modal .app-financial-form-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-contract-financial-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-contract-financial-modal .app-form-modal-actions input {
	min-height: 44px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-contract-financial-modal,
	body.ug-theme-v2.app-theme-ruby .app-contract-financial-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-financial-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-contract-financial-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-contract-financial-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-contract-financial-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-contract-financial-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-contract-financial-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
		max-height: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-financial-modal .app-form-modal-scroll,
	body.ug-theme-v2.app-theme-ruby .app-contract-financial-modal .app-form-modal-scroll {
		max-height: calc(100vh - 176px);
		max-height: calc(100dvh - 176px);
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal .app-financial-form-modal-content,
body.ug-theme-v2.app-theme-ruby .app-project-payment-modal .app-financial-form-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-project-payment-modal .app-form-modal-actions input {
	min-height: 44px !important;
}

/* Geração de pedido por cotação: o corpo varia com o histórico; o modal não
 * pode depender da altura fixa do RichFaces nem ser comprimido pelo autosized. */
body.ug-theme-v2.app-theme-ugestor .app-quotation-order-generation-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-quotation-order-generation-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
	box-sizing: border-box !important;
	width: 620px !important;
	max-width: calc(100vw - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-quotation-order-generation-modal .app-form-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quotation-order-generation-modal .app-form-modal-content {
	max-height: calc(100dvh - 132px);
	overflow-x: hidden;
	overflow-y: auto;
}

body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-project-payment-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
	box-sizing: border-box !important;
	width: 560px !important;
	max-width: calc(100vw - 48px) !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal,
	body.ug-theme-v2.app-theme-ruby .app-project-payment-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-project-payment-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-project-payment-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-project-payment-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
		max-height: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal .app-financial-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-project-payment-modal .app-financial-form-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-quotation-order-generation-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-quotation-order-generation-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-project-payment-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal,
	body.ug-theme-v2.app-theme-ruby .app-project-payment-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal .app-financial-form-modal-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-project-payment-modal .app-financial-form-modal-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal .app-financial-form-modal-fields select,
	body.ug-theme-v2.app-theme-ruby .app-project-payment-modal .app-financial-form-modal-fields select {
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-project-payment-modal .app-modal-close-button,
body.ug-theme-v2.app-theme-ruby .app-project-payment-modal .app-modal-close-button {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}
}

/* Recebimento de Projeto: contrato visual equivalente ao pagamento, sem
 * duplicar as regras financeiras, de calendario ou parcelamento. */
body.ug-theme-v2.app-theme-ugestor .app-project-receipt-modal .app-financial-form-modal-content,
body.ug-theme-v2.app-theme-ruby .app-project-receipt-modal .app-financial-form-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-project-receipt-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-project-receipt-modal .app-form-modal-actions input {
	min-height: 44px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-project-receipt-modal,
	body.ug-theme-v2.app-theme-ruby .app-project-receipt-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-project-receipt-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-project-receipt-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-project-receipt-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-project-receipt-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-project-receipt-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-project-receipt-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
		max-height: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-project-receipt-modal .app-financial-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-project-receipt-modal .app-financial-form-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-project-receipt-modal,
	body.ug-theme-v2.app-theme-ruby .app-project-receipt-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-project-receipt-modal .app-financial-form-modal-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-project-receipt-modal .app-financial-form-modal-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-project-receipt-modal .app-financial-form-modal-fields select,
	body.ug-theme-v2.app-theme-ruby .app-project-receipt-modal .app-financial-form-modal-fields select {
		min-height: 44px !important;
	}

body.ug-theme-v2.app-theme-ugestor .app-project-receipt-modal .app-modal-close-button,
body.ug-theme-v2.app-theme-ruby .app-project-receipt-modal .app-modal-close-button {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}
}

/* Consulta de Contas Bancarias: mantem a tabela legada em sua propria area
 * rolavel e deixa as acoes e confirmacao utilizaveis nos tres viewports. */
body.ug-theme-v2.app-theme-ugestor .app-bank-account-query-results,
body.ug-theme-v2.app-theme-ruby .app-bank-account-query-results,
body.ug-theme-v2.app-theme-ugestor .app-bank-account-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-bank-account-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-bank-account-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-bank-account-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-bank-account-query-results .app-query-table,
body.ug-theme-v2.app-theme-ruby .app-bank-account-query-results .app-query-table {
	min-width: 760px;
}

body.ug-theme-v2.app-theme-ugestor .app-bank-account-query-results .app-query-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-bank-account-query-results .app-query-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-bank-account-query-results .app-query-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-bank-account-query-results .app-query-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-bank-account-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-deletion-modal {
	box-sizing: border-box;
	max-width: calc(100vw - 32px) !important;
	max-height: calc(100vh - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-bank-account-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-deletion-modal {
	box-sizing: border-box;
	width: calc(100vw - 24px) !important;
	max-width: calc(100vw - 24px) !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-account-deletion-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-deletion-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-bank-account-deletion-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-deletion-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-bank-account-deletion-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-deletion-modal .rich-mpnl-content {
	box-sizing: border-box;
	max-width: 100% !important;
	}

body.ug-theme-v2.app-theme-ugestor .app-bank-account-deletion-modal .app-modal-close-button,
body.ug-theme-v2.app-theme-ruby .app-bank-account-deletion-modal .app-modal-close-button {
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	}
}

/* Forma de Pagamento por Entidade: a matriz de bandeiras reduz a densidade no
 * Tablet; editor, contas e grid associado preservam os bindings existentes. */
body.ug-theme-v2.app-theme-ugestor .app-entity-payment-form-panel .app-payment-method-associated-fieldset,
body.ug-theme-v2.app-theme-ruby .app-entity-payment-form-panel .app-payment-method-associated-fieldset,
body.ug-theme-v2.app-theme-ugestor .app-entity-receipt-form-panel .app-payment-method-associated-fieldset,
body.ug-theme-v2.app-theme-ruby .app-entity-receipt-form-panel .app-payment-method-associated-fieldset,
body.ug-theme-v2.app-theme-ugestor .app-entity-payment-form-panel .app-payment-method-results,
body.ug-theme-v2.app-theme-ruby .app-entity-payment-form-panel .app-payment-method-results,
body.ug-theme-v2.app-theme-ugestor .app-entity-receipt-form-panel .app-payment-method-results,
body.ug-theme-v2.app-theme-ruby .app-entity-receipt-form-panel .app-payment-method-results {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-entity-payment-form-panel .app-payment-method-selector,
	body.ug-theme-v2.app-theme-ruby .app-entity-payment-form-panel .app-payment-method-selector,
	body.ug-theme-v2.app-theme-ugestor .app-entity-payment-form-panel .app-payment-method-selector > tbody,
	body.ug-theme-v2.app-theme-ruby .app-entity-payment-form-panel .app-payment-method-selector > tbody {
	display: block;
	width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-entity-payment-form-panel .app-payment-method-selector > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-entity-payment-form-panel .app-payment-method-selector > tbody > tr {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-entity-payment-form-panel .app-payment-method-selector > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-entity-payment-form-panel .app-payment-method-selector > tbody > tr > td {
	display: block;
	width: auto !important;
	}
}

body.ug-theme-v2.app-theme-ugestor .app-entity-payment-form-panel .app-payment-method-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-entity-payment-form-panel .app-payment-method-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-entity-payment-form-panel .app-payment-method-results .app-payment-method-table,
body.ug-theme-v2.app-theme-ruby .app-entity-payment-form-panel .app-payment-method-results .app-payment-method-table {
	min-width: 640px;
}

body.ug-theme-v2.app-theme-ugestor .app-entity-payment-form-panel .app-payment-method-results .app-query-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-entity-payment-form-panel .app-payment-method-results .app-query-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

/* Forma de Recebimento por Entidade: o Tablet reduz a matriz de bandeiras sem
 * comprimir as configuracoes de antecipacao, taxas e parcelamento. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-entity-receipt-form-panel .app-payment-method-selector,
	body.ug-theme-v2.app-theme-ruby .app-entity-receipt-form-panel .app-payment-method-selector,
	body.ug-theme-v2.app-theme-ugestor .app-entity-receipt-form-panel .app-payment-method-selector > tbody,
	body.ug-theme-v2.app-theme-ruby .app-entity-receipt-form-panel .app-payment-method-selector > tbody {
	display: block;
	width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-entity-receipt-form-panel .app-payment-method-selector > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-entity-receipt-form-panel .app-payment-method-selector > tbody > tr {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-entity-receipt-form-panel .app-payment-method-selector > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-entity-receipt-form-panel .app-payment-method-selector > tbody > tr > td {
	display: block;
	width: auto !important;
	}
}

body.ug-theme-v2.app-theme-ugestor .app-entity-receipt-form-panel .app-payment-method-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-entity-receipt-form-panel .app-payment-method-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-entity-receipt-form-panel .app-payment-method-results .app-payment-method-table,
body.ug-theme-v2.app-theme-ruby .app-entity-receipt-form-panel .app-payment-method-results .app-payment-method-table {
	min-width: 680px;
}

body.ug-theme-v2.app-theme-ugestor .app-entity-receipt-form-panel .app-payment-method-results .app-query-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-entity-receipt-form-panel .app-payment-method-results .app-query-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ugestor .app-entity-receipt-form-panel .app-receipt-installment-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-entity-receipt-form-panel .app-receipt-installment-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

/* Antecipacao de recebiveis: a consulta conserva todas as colunas financeiras
 * navegaveis por rolagem no Tablet, sem comprimir valores ou selecao em lote. */
body.ug-theme-v2.app-theme-ugestor .app-anticipation-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-anticipation-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-anticipation-query-table,
body.ug-theme-v2.app-theme-ruby .app-anticipation-query-table {
	min-width: 1120px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-anticipation-query-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-anticipation-query-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-anticipation-query-results .app-query-total-item,
	body.ug-theme-v2.app-theme-ruby .app-anticipation-query-results .app-query-total-item {
		min-height: 44px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-anticipation-query-form .app-filter-export-actions,
	body.ug-theme-v2.app-theme-ruby .app-anticipation-query-form .app-filter-export-actions {
		margin-top: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-anticipation-query-form .app-filter-export-group,
	body.ug-theme-v2.app-theme-ruby .app-anticipation-query-form .app-filter-export-group,
	body.ug-theme-v2.app-theme-ugestor .app-anticipation-query-form .app-filter-export-group input,
	body.ug-theme-v2.app-theme-ruby .app-anticipation-query-form .app-filter-export-group input {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-anticipation-query-results .app-query-total-item,
	body.ug-theme-v2.app-theme-ruby .app-anticipation-query-results .app-query-total-item {
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
	}
}

/* Lancamentos contabeis: a tabela continua legivel no Tablet por rolagem
 * horizontal, preservando acoes e paginacao do RichFaces. */
body.ug-theme-v2.app-theme-ugestor .app-accounting-launch-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-accounting-launch-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-accounting-launch-query-table,
body.ug-theme-v2.app-theme-ruby .app-accounting-launch-query-table {
	min-width: 760px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-accounting-launch-query-results .app-query-row-actions,
	body.ug-theme-v2.app-theme-ruby .app-accounting-launch-query-results .app-query-row-actions {
		min-width: 44px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-accounting-launch-query-results .app-query-row-actions,
	body.ug-theme-v2.app-theme-ruby .app-accounting-launch-query-results .app-query-row-actions {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 132px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounting-launch-query-results .app-query-row-actions input,
	body.ug-theme-v2.app-theme-ruby .app-accounting-launch-query-results .app-query-row-actions input {
		box-sizing: content-box;
		min-width: 20px;
		min-height: 20px;
		padding: 12px;
	}
}

/* Integracao contabil: a previa conserva as colunas do arquivo no Tablet,
 * com rolagem horizontal no wrapper ja existente. */
body.ug-theme-v2.app-theme-ugestor .app-accounting-integration-preview .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-accounting-integration-preview .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-accounting-integration-preview-table,
body.ug-theme-v2.app-theme-ruby .app-accounting-integration-preview-table {
	min-width: 1120px;
}

/* Ordem de producao: a grade extensa preserva documentos, lotes e acoes no
 * Tablet por rolagem horizontal, sem colapsar os comandos operacionais. */
body.ug-theme-v2.app-theme-ugestor .app-production-order-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-production-order-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-production-order-query-table,
body.ug-theme-v2.app-theme-ruby .app-production-order-query-table {
	min-width: 1240px;
}

/* Contas a receber: no Smartphone a grade financeira continua rolável e os
 * comandos por título preservam a área mínima de toque. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-receivable-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receivable-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-query-table,
	body.ug-theme-v2.app-theme-ruby .app-receivable-query-table {
		min-width: 1760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-query-results .app-query-row-actions,
	body.ug-theme-v2.app-theme-ruby .app-receivable-query-results .app-query-row-actions {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receivable-query-results .app-query-row-actions input,
	body.ug-theme-v2.app-theme-ruby .app-receivable-query-results .app-query-row-actions input {
		box-sizing: content-box;
		min-width: 20px;
		min-height: 20px;
		padding: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-return-query-form .app-receipt-return-upload-section,
	body.ug-theme-v2.app-theme-ruby .app-receipt-return-query-form .app-receipt-return-upload-section,
	body.ug-theme-v2.app-theme-ugestor .app-receipt-return-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receipt-return-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-return-query-table,
	body.ug-theme-v2.app-theme-ruby .app-receipt-return-query-table {
		min-width: 1640px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-return-query-form .app-query-row-actions input,
	body.ug-theme-v2.app-theme-ruby .app-receipt-return-query-form .app-query-row-actions input {
		box-sizing: border-box;
		min-height: 44px;
		padding: 10px 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-event-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-event-query-table,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-query-table {
		min-width: 980px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-event-query-results .app-query-row-actions input,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-query-results .app-query-row-actions input {
		box-sizing: content-box;
		min-width: 20px;
		min-height: 20px;
		padding: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-query-table,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-query-table {
		min-width: 860px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-query-results .app-query-row-actions input,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-query-results .app-query-row-actions input {
		box-sizing: content-box;
		min-width: 20px;
		min-height: 20px;
		padding: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-remittance-generation-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-payment-remittance-generation-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-remittance-generation-table,
	body.ug-theme-v2.app-theme-ruby .app-payment-remittance-generation-table {
		min-width: 1540px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-remittance-generation-results .app-query-row-actions input,
	body.ug-theme-v2.app-theme-ruby .app-payment-remittance-generation-results .app-query-row-actions input {
		box-sizing: content-box;
		min-width: 20px;
		min-height: 20px;
		padding: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-generation-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-generation-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-generation-table,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-generation-table {
		min-width: 900px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-generation-results input[type="checkbox"],
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-generation-results input[type="checkbox"] {
		box-sizing: content-box;
		width: 20px;
		height: 20px;
		padding: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-event-entry-panel,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-entry-panel,
	body.ug-theme-v2.app-theme-ugestor .app-financial-event-entry-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-entry-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-event-entry-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-entry-tabs .rich-tab-header {
		min-height: 44px;
		padding: 12px 10px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-event-entry-form fieldset,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-entry-form fieldset,
	body.ug-theme-v2.app-theme-ugestor .app-financial-event-entry-form .app-control,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-entry-form .app-control,
body.ug-theme-v2.app-theme-ugestor .app-financial-event-entry-history,
body.ug-theme-v2.app-theme-ruby .app-financial-event-entry-history {
	box-sizing: border-box;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-entry-panel,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-entry-panel,
	body.ug-theme-v2.app-theme-ugestor .app-commission-table-entry-form .app-commission-table-entry-fields,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-entry-form .app-commission-table-entry-fields,
	body.ug-theme-v2.app-theme-ugestor .app-commission-table-entry-form .app-commission-table-entry-fields fieldset,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-entry-form .app-commission-table-entry-fields fieldset {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-entry-form .app-commission-table-entry-fields,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-entry-form .app-commission-table-entry-fields {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-commission-table-entry-form .app-commission-table-entry-fields table,
	body.ug-theme-v2.app-theme-ruby .app-commission-table-entry-form .app-commission-table-entry-fields table {
		min-width: 640px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-query-table,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-query-table {
		min-width: 1120px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-query-results .app-query-row-actions input,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-query-results .app-query-row-actions input {
		box-sizing: content-box;
		min-width: 20px;
		min-height: 20px;
		padding: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-panel,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-panel,
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-tabs .rich-tab-header {
		min-height: 44px;
		padding: 12px 10px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-form fieldset,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-form fieldset,
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-form .app-control,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-form .app-control,
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-entry-history,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-entry-history {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-file-list-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-file-list-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-file-list-grid,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-file-list-grid {
		min-width: 680px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-file-list-grid .app-content-panel,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-file-list-grid .app-content-panel {
		box-sizing: border-box;
		min-height: 148px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-file-list-grid a,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-file-list-grid a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: content-box;
		min-width: 20px;
		min-height: 20px;
		padding: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-contract-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-query-table,
	body.ug-theme-v2.app-theme-ruby .app-contract-query-table {
		min-width: 1080px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-query-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-contract-query-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-contract-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-contract-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-contract-maintenance-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-maintenance-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-contract-maintenance-tabs .rich-tab-header {
		min-height: 44px;
		padding: 12px 10px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-maintenance-tabs .app-query-results,
	body.ug-theme-v2.app-theme-ruby .app-contract-maintenance-tabs .app-query-results {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-contract-maintenance-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-contract-maintenance-tabs .app-query-table {
		min-width: 760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-processing-panel,
	body.ug-theme-v2.app-theme-ruby .app-tax-processing-panel {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-processing-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-tax-processing-form .app-query-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-processing-form .app-query-date-range input,
	body.ug-theme-v2.app-theme-ruby .app-tax-processing-form .app-query-date-range input {
		box-sizing: border-box;
		max-width: 128px;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-query-results,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-query-results,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-query-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-query-table,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-query-table {
		min-width: 1040px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-document-layout,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-document-layout,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-document-results,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-document-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-maintenance-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-maintenance-tabs .rich-tab-header {
		min-height: 44px;
		padding: 12px 10px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-document-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-document-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-maintenance-tabs .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-maintenance-tabs .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-distribution-order-document-table,
	body.ug-theme-v2.app-theme-ruby .app-distribution-order-document-table {
		min-width: 920px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-decommission-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-asset-decommission-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-decommission-date-range,
	body.ug-theme-v2.app-theme-ruby .app-asset-decommission-date-range {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-decommission-date-range input,
	body.ug-theme-v2.app-theme-ruby .app-asset-decommission-date-range input {
		box-sizing: border-box;
		max-width: 128px;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-query-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-asset-query-filter-fields {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-acquired-form-panel,
	body.ug-theme-v2.app-theme-ruby .app-asset-acquired-form-panel,
	body.ug-theme-v2.app-theme-ugestor .app-asset-acquired-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-asset-acquired-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-acquired-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-asset-acquired-tabs .rich-tab-header {
		min-height: 44px;
		padding: 12px 10px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-decommission-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-asset-decommission-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-asset-decommission-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-asset-decommission-maintenance-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-decommission-maintenance-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-asset-decommission-maintenance-tabs .rich-tab-header {
		min-height: 44px;
		padding: 12px 10px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-period-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-stock-period-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-period-table,
	body.ug-theme-v2.app-theme-ruby .app-stock-period-table {
		min-width: 540px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-period-row-actions > span,
	body.ug-theme-v2.app-theme-ruby .app-stock-period-row-actions > span {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-period-company-table,
	body.ug-theme-v2.app-theme-ruby .app-stock-period-company-table {
		min-width: 1080px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-period-operational-actions .fa-stack,
	body.ug-theme-v2.app-theme-ruby .app-stock-period-operational-actions .fa-stack {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-period-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-financial-period-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-period-table,
	body.ug-theme-v2.app-theme-ruby .app-financial-period-table {
		min-width: 1260px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-period-operational-actions .fa-stack,
	body.ug-theme-v2.app-theme-ruby .app-financial-period-operational-actions .fa-stack {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
	margin: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-period-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-asset-period-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-period-table,
	body.ug-theme-v2.app-theme-ruby .app-asset-period-table {
		min-width: 540px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-period-row-actions > span,
	body.ug-theme-v2.app-theme-ruby .app-asset-period-row-actions > span {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
	min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-results,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-results,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-table,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-table {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	/* Consulta de Previsão de Venda: filtro e grade preservam leitura no Smartphone. */
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-results,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-table,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-table {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	/* Manutenção de Previsão de Custo/Despesa: abas e grades internas no Smartphone. */
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-layout,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-layout,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-tabs-container,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-tabs-container,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-maintenance-panel fieldset,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-maintenance-panel fieldset {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-maintenance-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-maintenance-tabs .rich-tab-header {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-entry-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-entry-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-maintenance-tabs .app-query-results,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-maintenance-tabs .app-query-results {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-entry-table,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-entry-table,
	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-maintenance-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-maintenance-tabs .app-query-table {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-expense-forecast-entry-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-expense-forecast-entry-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	/* Manutenção de Previsão de Venda: abas e grades internas no Smartphone. */
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-layout,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-layout,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-tabs-container,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-tabs-container,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-maintenance-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-maintenance-panel fieldset,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-maintenance-panel fieldset {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-maintenance-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-maintenance-tabs .rich-tab-header {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-entry-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-entry-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-maintenance-tabs .app-query-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-maintenance-tabs .app-query-results {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-entry-table,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-entry-table,
	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-maintenance-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-maintenance-tabs .app-query-table {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-forecast-entry-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-sales-forecast-entry-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}

	/* Balancete: período e aviso contábil ocupam a largura útil do Smartphone. */
	body.ug-theme-v2.app-theme-ugestor .app-trial-balance-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-trial-balance-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-trial-balance-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-trial-balance-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-trial-balance-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-trial-balance-form .app-query-date-range {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-trial-balance-form .app-query-date-range .rich-calendar-exterior,
	body.ug-theme-v2.app-theme-ruby .app-trial-balance-form .app-query-date-range .rich-calendar-exterior {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	/* DCTF Web: período e aviso contábil ocupam a largura útil do Smartphone. */
	body.ug-theme-v2.app-theme-ugestor .app-dctf-web-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-dctf-web-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-dctf-web-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-dctf-web-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-dctf-web-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-dctf-web-form .app-query-date-range {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-dctf-web-form .app-query-date-range .rich-calendar-exterior,
	body.ug-theme-v2.app-theme-ruby .app-dctf-web-form .app-query-date-range .rich-calendar-exterior {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	/* ECF: período e aviso contábil ocupam a largura útil do Smartphone. */
	body.ug-theme-v2.app-theme-ugestor .app-ecf-generation-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-ecf-generation-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-ecf-generation-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-ecf-generation-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-ecf-generation-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-ecf-generation-form .app-query-date-range {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-ecf-generation-form .app-query-date-range .rich-calendar-exterior,
	body.ug-theme-v2.app-theme-ruby .app-ecf-generation-form .app-query-date-range .rich-calendar-exterior {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	/* Livro Diário: período e aviso contábil ocupam a largura útil do Smartphone. */
	body.ug-theme-v2.app-theme-ugestor .app-daily-ledger-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-daily-ledger-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-daily-ledger-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-daily-ledger-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-daily-ledger-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-daily-ledger-form .app-query-date-range {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-daily-ledger-form .app-query-date-range .rich-calendar-exterior,
	body.ug-theme-v2.app-theme-ruby .app-daily-ledger-form .app-query-date-range .rich-calendar-exterior {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	/* Livro Razão: período e aviso contábil ocupam a largura útil do Smartphone. */
	body.ug-theme-v2.app-theme-ugestor .app-general-ledger-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-general-ledger-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-general-ledger-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-general-ledger-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-general-ledger-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-general-ledger-form .app-query-date-range {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-general-ledger-form .app-query-date-range .rich-calendar-exterior,
	body.ug-theme-v2.app-theme-ruby .app-general-ledger-form .app-query-date-range .rich-calendar-exterior {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	/* SPED Contábil: período e aviso contábil ocupam a largura útil do Smartphone. */
	body.ug-theme-v2.app-theme-ugestor .app-sped-accounting-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sped-accounting-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sped-accounting-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sped-accounting-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sped-accounting-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-sped-accounting-form .app-query-date-range {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sped-accounting-form .app-query-date-range .rich-calendar-exterior,
	body.ug-theme-v2.app-theme-ruby .app-sped-accounting-form .app-query-date-range .rich-calendar-exterior {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	/* SPED ICMS: período e aviso contábil ocupam a largura útil do Smartphone. */
	body.ug-theme-v2.app-theme-ugestor .app-sped-icms-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sped-icms-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sped-icms-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sped-icms-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sped-icms-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-sped-icms-form .app-query-date-range {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sped-icms-form .app-query-date-range .rich-calendar-exterior,
	body.ug-theme-v2.app-theme-ruby .app-sped-icms-form .app-query-date-range .rich-calendar-exterior {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	/* SPED PIS/COFINS: período e aviso contábil ocupam a largura útil do Smartphone. */
	body.ug-theme-v2.app-theme-ugestor .app-sped-pis-cofins-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-sped-pis-cofins-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-sped-pis-cofins-modal .app-confirmation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sped-pis-cofins-modal .app-confirmation-modal-content {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sped-pis-cofins-form .app-query-date-range,
	body.ug-theme-v2.app-theme-ruby .app-sped-pis-cofins-form .app-query-date-range {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sped-pis-cofins-form .app-query-date-range .rich-calendar-exterior,
	body.ug-theme-v2.app-theme-ruby .app-sped-pis-cofins-form .app-query-date-range .rich-calendar-exterior {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-query-results .app-query-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-query-table,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-query-table {
		min-width: 980px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-query-results .app-query-row-actions,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-query-results .app-query-row-actions {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 132px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-query-results .app-query-row-actions a,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-query-results .app-query-row-actions a,
	body.ug-theme-v2.app-theme-ugestor .app-receipt-remittance-query-results .app-query-row-actions input,
	body.ug-theme-v2.app-theme-ruby .app-receipt-remittance-query-results .app-query-row-actions input {
		box-sizing: content-box;
		min-width: 20px;
		min-height: 20px;
		padding: 12px;
	}
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-order-query-results .app-query-row-actions,
	body.ug-theme-v2.app-theme-ruby .app-production-order-query-results .app-query-row-actions {
		min-width: 176px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-order-query-results .app-query-row-actions,
	body.ug-theme-v2.app-theme-ruby .app-production-order-query-results .app-query-row-actions {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 176px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-order-query-results .app-query-row-actions input,
	body.ug-theme-v2.app-theme-ruby .app-production-order-query-results .app-query-row-actions input {
		box-sizing: content-box;
		min-width: 20px;
		min-height: 20px;
		padding: 12px;
	}
}

/* Ordem de producao: as abas operacionais mantem alvos de toque e as grades
 * internas rolam no Tablet, sem alterar composicao ou apontamentos. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-order-entry-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-production-order-entry-tabs .rich-tab-header {
		min-height: 44px;
		padding: 12px 10px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-order-entry-tabs .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-production-order-entry-tabs .app-query-table-scroll {
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-order-entry-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-production-order-entry-tabs .app-query-table {
		min-width: 720px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-order-entry-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-production-order-entry-tabs .rich-tab-header {
		min-height: 44px;
		padding: 12px 10px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-order-entry-tabs .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-production-order-entry-tabs .app-query-table-scroll {
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-order-entry-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-production-order-entry-tabs .app-query-table {
		min-width: 720px;
	}
}

/* Manutencao de estoque: as abas e grades dos tres dominios permanecem
 * navegaveis no Tablet sem mudar entradas, saldos ou contas. */
body.ug-theme-v2.app-theme-ugestor .app-stock-entry-form .app-stock-entry-metric,
body.ug-theme-v2.app-theme-ruby .app-stock-entry-form .app-stock-entry-metric {
	color: #2c7e0e;
	font-size: 0.9em;
	font-weight: 700;
	font-style: italic;
}

body.ug-theme-v2.app-theme-ugestor .app-stock-entry-form .app-stock-entry-nowrap,
body.ug-theme-v2.app-theme-ruby .app-stock-entry-form .app-stock-entry-nowrap,
body.ug-theme-v2.app-theme-ugestor .app-stock-entry-form .app-stock-entry-refresh,
body.ug-theme-v2.app-theme-ruby .app-stock-entry-form .app-stock-entry-refresh {
	white-space: nowrap;
}

body.ug-theme-v2.app-theme-ugestor .app-stock-entry-form .app-stock-entry-refresh,
body.ug-theme-v2.app-theme-ruby .app-stock-entry-form .app-stock-entry-refresh {
	cursor: pointer;
}

body.ug-theme-v2.app-theme-ugestor .app-stock-entry-form .app-stock-entry-value-negative,
body.ug-theme-v2.app-theme-ruby .app-stock-entry-form .app-stock-entry-value-negative {
	color: #b42318;
}

body.ug-theme-v2.app-theme-ugestor .app-stock-entry-form .app-stock-entry-lot-code,
body.ug-theme-v2.app-theme-ruby .app-stock-entry-form .app-stock-entry-lot-code {
	font-weight: 700;
}

body.ug-theme-v2.app-theme-ugestor .app-stock-entry-form .app-stock-entry-export-icon,
body.ug-theme-v2.app-theme-ruby .app-stock-entry-form .app-stock-entry-export-icon,
body.ug-theme-v2.app-theme-ugestor .app-stock-entry-form .app-stock-entry-export-link,
body.ug-theme-v2.app-theme-ruby .app-stock-entry-form .app-stock-entry-export-link {
	padding: 0 2px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-stock-entry-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-stock-entry-tabs .rich-tab-header {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-entry-tabs .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-stock-entry-tabs .app-query-table-scroll {
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-entry-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-stock-entry-tabs .app-query-table {
		min-width: 680px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-stock-entry-tabs .rich-tab-header,
	body.ug-theme-v2.app-theme-ruby .app-stock-entry-tabs .rich-tab-header {
		min-height: 44px;
		padding: 12px 10px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-entry-tabs .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-stock-entry-tabs .app-query-table-scroll {
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-stock-entry-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-stock-entry-tabs .app-query-table {
		min-width: 680px;
	}
}

/* Lancamento contabil: as colunas Debito e Credito passam ao fluxo vertical
 * no Tablet; tabelas internas permanecem rolaveis, sem mudar bindings. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-accounting-entry-tabs .coluna50PercenteTop,
	body.ug-theme-v2.app-theme-ruby .app-accounting-entry-tabs .coluna50PercenteTop {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounting-entry-tabs .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-accounting-entry-tabs .app-query-table-scroll {
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounting-entry-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-accounting-entry-tabs .app-query-table {
		min-width: 640px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-accounting-entry-tabs .coluna50PercenteTop,
	body.ug-theme-v2.app-theme-ruby .app-accounting-entry-tabs .coluna50PercenteTop {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounting-entry-tabs .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-accounting-entry-tabs .app-query-table-scroll {
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounting-entry-tabs .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-accounting-entry-tabs .app-query-table {
		min-width: 640px;
	}
}

/* Consulta de Bens: as cinco abas usam as estruturas RichFaces existentes;
 * somente as grades e a confirmacao recebem a camada v2 por viewport. */
body.ug-theme-v2.app-theme-ugestor .app-asset-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-asset-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-query-results .app-query-table,
body.ug-theme-v2.app-theme-ruby .app-asset-query-results .app-query-table {
	min-width: 820px;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-query-results .app-query-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-asset-query-results .app-query-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-query-results .app-query-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-asset-query-results .app-query-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-asset-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-asset-deletion-modal {
	box-sizing: border-box;
	max-width: calc(100vw - 32px) !important;
	max-height: calc(100vh - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-asset-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-asset-deletion-modal {
	box-sizing: border-box;
	width: calc(100vw - 24px) !important;
	max-width: calc(100vw - 24px) !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-deletion-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-asset-deletion-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-asset-deletion-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-asset-deletion-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-asset-deletion-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-asset-deletion-modal .rich-mpnl-content {
	box-sizing: border-box;
	max-width: 100% !important;
	}

body.ug-theme-v2.app-theme-ugestor .app-asset-deletion-modal .app-modal-close-button,
body.ug-theme-v2.app-theme-ruby .app-asset-deletion-modal .app-modal-close-button {
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	}
}

/* Consulta de Grupos de Bens: resultado compacto, acoes acessiveis e modal
 * de exclusao preservado nas dimensoes de Tablet e Smartphone. */
body.ug-theme-v2.app-theme-ugestor .app-asset-group-query-results,
body.ug-theme-v2.app-theme-ruby .app-asset-group-query-results,
body.ug-theme-v2.app-theme-ugestor .app-asset-group-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-asset-group-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-group-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-asset-group-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-group-query-results .app-query-table,
body.ug-theme-v2.app-theme-ruby .app-asset-group-query-results .app-query-table {
	min-width: 520px;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-group-query-results .app-query-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-asset-group-query-results .app-query-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-group-query-results .app-query-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-asset-group-query-results .app-query-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-asset-group-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-asset-group-deletion-modal {
	box-sizing: border-box;
	max-width: calc(100vw - 32px) !important;
	max-height: calc(100vh - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-asset-group-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-asset-group-deletion-modal {
	box-sizing: border-box;
	width: calc(100vw - 24px) !important;
	max-width: calc(100vw - 24px) !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-group-deletion-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-asset-group-deletion-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-asset-group-deletion-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-asset-group-deletion-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-asset-group-deletion-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-asset-group-deletion-modal .rich-mpnl-content {
	box-sizing: border-box;
	max-width: 100% !important;
	}

body.ug-theme-v2.app-theme-ugestor .app-asset-group-deletion-modal .app-modal-close-button,
body.ug-theme-v2.app-theme-ruby .app-asset-group-deletion-modal .app-modal-close-button {
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	}
}

/* Manutencao de Bens: as abas mantem o DOM RichFaces; as grades internas se
 * redistribuem em duas colunas no Tablet sem alterar os componentes JSF. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-business-layout,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-business-layout,
	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-contract-layout,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-contract-layout,
	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-accounting-layout,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-accounting-layout,
	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-business-layout > tbody,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-business-layout > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-contract-layout > tbody,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-contract-layout > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-accounting-layout > tbody,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-accounting-layout > tbody {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-business-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-business-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-contract-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-contract-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-accounting-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-accounting-layout > tbody > tr {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 14px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-business-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-business-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-contract-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-contract-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-accounting-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-accounting-layout > tbody > tr > td {
	display: block;
	box-sizing: border-box;
	width: auto !important;
	padding-right: 0;
	}
}

body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-allocation-list,
body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-allocation-list {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-cost-center-tree,
body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-cost-center-tree {
	box-sizing: border-box;
	width: 100%;
	max-width: 300px;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-technical-specification,
body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-technical-specification {
	box-sizing: border-box;
	width: 100%;
	max-width: 350px;
	overflow-wrap: anywhere;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-history-output,
body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-history-output {
	box-sizing: border-box;
	width: 100%;
	max-width: 350px;
	overflow-wrap: anywhere;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-retired-warning,
body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-retired-warning,
body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-open-period-warning,
body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-open-period-warning {
	color: #c62828;
	font-weight: 700;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-fieldset,
body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-fieldset,
body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-form-section,
body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-form-section,
body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-query-results,
body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-query-results {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-asset-association-table,
body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-asset-association-table {
	min-width: 620px;
}

body.ug-theme-v2.app-theme-ugestor .app-asset-form-panel .app-query-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-asset-form-panel .app-query-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

/* Consulta UUID de Bens: a relacao mestre/detalhe preserva a tabela RichFaces
 * e passa a manter rolagem confinada e espacamento consistente no v2. */
body.ug-theme-v2.app-theme-ugestor .app-uuid-query-results,
body.ug-theme-v2.app-theme-ruby .app-uuid-query-results,
body.ug-theme-v2.app-theme-ugestor .app-uuid-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-uuid-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-uuid-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-uuid-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-uuid-query-results .app-uuid-master-table,
body.ug-theme-v2.app-theme-ruby .app-uuid-query-results .app-uuid-master-table {
	min-width: 720px;
}

body.ug-theme-v2.app-theme-ugestor .app-uuid-query-results .app-uuid-master-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-uuid-query-results .app-uuid-master-table .rich-table-cell,
body.ug-theme-v2.app-theme-ugestor .app-uuid-query-results .app-uuid-detail-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-uuid-query-results .app-uuid-detail-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-uuid-query-results .app-query-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-uuid-query-results .app-query-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

/* Manutencao UUID de Bens: no Tablet, o seletor ganha espaco util sem mudar
 * a pesquisa, as sugestoes ou os vinculos mantidos pela Action. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-uuid-form-panel .app-uuid-option-row .app-uuid-field-label,
	body.ug-theme-v2.app-theme-ruby .app-uuid-form-panel .app-uuid-option-row .app-uuid-field-label {
	flex-basis: 220px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-uuid-form-panel .app-uuid-search-control,
	body.ug-theme-v2.app-theme-ruby .app-uuid-form-panel .app-uuid-search-control {
	flex: 1 1 auto;
	min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-uuid-form-panel .app-uuid-search-control input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-uuid-form-panel .app-uuid-search-control input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	}
}

body.ug-theme-v2.app-theme-ugestor .app-uuid-form-panel .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-uuid-form-panel .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-uuid-form-panel .app-uuid-form-grid,
body.ug-theme-v2.app-theme-ruby .app-uuid-form-panel .app-uuid-form-grid {
	min-width: 720px;
}

body.ug-theme-v2.app-theme-ugestor .app-uuid-form-panel .app-query-row-actions a,
body.ug-theme-v2.app-theme-ruby .app-uuid-form-panel .app-query-row-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: content-box;
	width: 20px;
	height: 20px;
	padding: 12px;
}

/* Consulta de Desenhos: campos, resultado e confirmacao ficam contidos por
 * viewport sem alterar a grade, os filtros ou os comandos RichFaces. */
body.ug-theme-v2.app-theme-ugestor .app-drawing-query-results,
body.ug-theme-v2.app-theme-ruby .app-drawing-query-results,
body.ug-theme-v2.app-theme-ugestor .app-drawing-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-drawing-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-drawing-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-drawing-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-drawing-query-results .app-query-table,
body.ug-theme-v2.app-theme-ruby .app-drawing-query-results .app-query-table {
	min-width: 520px;
}

body.ug-theme-v2.app-theme-ugestor .app-drawing-query-results .app-query-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-drawing-query-results .app-query-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-drawing-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-drawing-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-drawing-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-drawing-deletion-modal {
	box-sizing: border-box;
	max-width: calc(100vw - 32px) !important;
	max-height: calc(100vh - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-drawing-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-drawing-deletion-modal {
	box-sizing: border-box;
	width: calc(100vw - 24px) !important;
	max-width: calc(100vw - 24px) !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-drawing-deletion-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-drawing-deletion-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-drawing-deletion-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-drawing-deletion-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-drawing-deletion-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-drawing-deletion-modal .rich-mpnl-content {
	box-sizing: border-box;
	max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-drawing-deletion-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-drawing-deletion-modal .app-modal-close-button {
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	}
}

/* Consulta de Acoes da Venda: filtro, grade e confirmacao adotam a camada v2
 * sem modificar a paginacao, a consulta ou os comandos Ajax existentes. */
body.ug-theme-v2.app-theme-ugestor .app-negative-sale-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-negative-sale-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-negative-sale-query-results,
body.ug-theme-v2.app-theme-ruby .app-negative-sale-query-results,
body.ug-theme-v2.app-theme-ugestor .app-negative-sale-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-negative-sale-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-negative-sale-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-negative-sale-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-negative-sale-table,
body.ug-theme-v2.app-theme-ruby .app-negative-sale-table {
	min-width: 760px;
}

body.ug-theme-v2.app-theme-ugestor .app-negative-sale-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-negative-sale-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-negative-sale-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-negative-sale-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-negative-sale-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-negative-sale-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}
}

/* Consulta de Padroes de Producao e Venda: cada aba continua no DOM
 * RichFaces e ganha rolagem confinada para suas grades e composicoes. */
body.ug-theme-v2.app-theme-ugestor .app-ppv-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-ppv-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-ppv-query-results,
body.ug-theme-v2.app-theme-ruby .app-ppv-query-results,
body.ug-theme-v2.app-theme-ugestor .app-ppv-query-tabs,
body.ug-theme-v2.app-theme-ruby .app-ppv-query-tabs {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-ppv-query-tabs .rich-tabpanel-content,
body.ug-theme-v2.app-theme-ruby .app-ppv-query-tabs .rich-tabpanel-content {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-ppv-table,
body.ug-theme-v2.app-theme-ruby .app-ppv-table {
	min-width: 760px;
}

body.ug-theme-v2.app-theme-ugestor .app-ppv-nested-table,
body.ug-theme-v2.app-theme-ruby .app-ppv-nested-table {
	min-width: 360px;
}

body.ug-theme-v2.app-theme-ugestor .app-ppv-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-ppv-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-ppv-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-ppv-filter-fields {
		max-width: none;
	}

	body.ug-theme-v2.app-theme-ugestor .app-ppv-query-tabs .rich-tabhdr-cell,
	body.ug-theme-v2.app-theme-ruby .app-ppv-query-tabs .rich-tabhdr-cell {
		white-space: nowrap;
	}
}

/* Manutencao PPV: os editores de pecas e servicos preservam suas abas e
 * a semantica JSF; somente as grades extensas ganham rolagem confinada. */
body.ug-theme-v2.app-theme-ugestor .app-ppv-form-panel,
body.ug-theme-v2.app-theme-ruby .app-ppv-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-ppv-product-workspace,
body.ug-theme-v2.app-theme-ruby .app-ppv-product-workspace,
body.ug-theme-v2.app-theme-ugestor .app-ppv-service-workspace,
body.ug-theme-v2.app-theme-ruby .app-ppv-service-workspace,
body.ug-theme-v2.app-theme-ugestor .app-ppv-form-results,
body.ug-theme-v2.app-theme-ruby .app-ppv-form-results {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-ppv-form-results,
body.ug-theme-v2.app-theme-ruby .app-ppv-form-results,
body.ug-theme-v2.app-theme-ugestor .app-ppv-linked-services-results,
body.ug-theme-v2.app-theme-ruby .app-ppv-linked-services-results {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-ppv-product-table,
body.ug-theme-v2.app-theme-ruby .app-ppv-product-table {
	min-width: 1120px;
}

body.ug-theme-v2.app-theme-ugestor .app-ppv-service-table,
body.ug-theme-v2.app-theme-ruby .app-ppv-service-table {
	min-width: 760px;
}

body.ug-theme-v2.app-theme-ugestor .app-ppv-form-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-ppv-form-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-ppv-product-editor-layout > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-ppv-product-editor-layout > tbody > tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(260px, .4fr);
		gap: 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-ppv-product-editor-layout > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-ppv-product-editor-layout > tbody > tr > td {
		box-sizing: border-box;
		width: auto !important;
		padding-right: 0;
	}
}

/* Grupos de Pessoa: filtro, grade e formulario simples compartilham a
 * mesma geometria v2 sem alterar a consulta, os comandos ou o modal. */
body.ug-theme-v2.app-theme-ugestor .app-person-group-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-person-group-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-person-group-query-results,
body.ug-theme-v2.app-theme-ruby .app-person-group-query-results,
body.ug-theme-v2.app-theme-ugestor .app-person-group-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-person-group-table-scroll,
body.ug-theme-v2.app-theme-ugestor .app-person-group-form-panel,
body.ug-theme-v2.app-theme-ruby .app-person-group-form-panel {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-person-group-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-person-group-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-person-group-table,
body.ug-theme-v2.app-theme-ruby .app-person-group-table {
	min-width: 640px;
}

body.ug-theme-v2.app-theme-ugestor .app-person-group-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-person-group-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-person-group-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-person-group-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-person-group-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-person-group-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}
}

/* Consulta de Tabelas de Preco: calendario continua transversal; a camada
 * v2 contem filtro, grid e confirmacao sem alterar valores ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-price-table-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-price-table-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-price-table-query-results,
body.ug-theme-v2.app-theme-ruby .app-price-table-query-results,
body.ug-theme-v2.app-theme-ugestor .app-price-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-price-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-price-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-price-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-price-table-table,
body.ug-theme-v2.app-theme-ruby .app-price-table-table {
	min-width: 820px;
}

body.ug-theme-v2.app-theme-ugestor .app-price-table-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-price-table-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-price-table-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-price-table-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-price-table-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-price-table-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}
}

/* Consulta de Status da Venda: filtro, grade e confirmacao usam a mesma
 * contencao v2 sem alterar permissao, comandos ou ciclo Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sale-status-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-sale-status-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-sale-status-query-results,
body.ug-theme-v2.app-theme-ruby .app-sale-status-query-results,
body.ug-theme-v2.app-theme-ugestor .app-sale-status-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-sale-status-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-sale-status-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-sale-status-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-sale-status-table,
body.ug-theme-v2.app-theme-ruby .app-sale-status-table {
	min-width: 640px;
}

body.ug-theme-v2.app-theme-ugestor .app-sale-status-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-sale-status-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-sale-status-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-sale-status-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sale-status-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-sale-status-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}
}

/* Manutencao de Status da Venda: painel simples preserva os campos e os
 * estados de inclusao, edicao e visualizacao sob a geometria v2. */
body.ug-theme-v2.app-theme-ugestor .app-sale-status-form-panel,
body.ug-theme-v2.app-theme-ruby .app-sale-status-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-sale-status-form-fields,
body.ug-theme-v2.app-theme-ruby .app-sale-status-form-fields {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sale-status-form-fields,
	body.ug-theme-v2.app-theme-ruby .app-sale-status-form-fields {
		max-width: 720px;
	}
}

/* Tipos de Producao: ambientes, etapas, formatos e linhas reutilizam filtro,
 * grade, painel e confirmacao v2 sem mudar os controles RichFaces. */
body.ug-theme-v2.app-theme-ugestor .app-production-type-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-production-type-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-production-type-query-results,
body.ug-theme-v2.app-theme-ruby .app-production-type-query-results,
body.ug-theme-v2.app-theme-ugestor .app-production-type-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-production-type-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ugestor .app-production-type-form-panel,
body.ug-theme-v2.app-theme-ruby .app-production-type-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-production-type-form-fields,
body.ug-theme-v2.app-theme-ruby .app-production-type-form-fields {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-production-type-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-production-type-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-production-type-table,
body.ug-theme-v2.app-theme-ruby .app-production-type-table {
	min-width: 640px;
}

body.ug-theme-v2.app-theme-ugestor .app-production-type-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-production-type-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-production-type-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-production-type-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

body.ug-theme-v2.app-theme-ugestor .app-production-appropriation-query-results .app-production-type-table,
body.ug-theme-v2.app-theme-ruby .app-production-appropriation-query-results .app-production-type-table {
	min-width: 1040px;
}

body.ug-theme-v2.app-theme-ugestor .app-production-ggf-query-results .app-production-type-table,
body.ug-theme-v2.app-theme-ruby .app-production-ggf-query-results .app-production-type-table {
	min-width: 940px;
}

body.ug-theme-v2.app-theme-ugestor .app-production-ggf-items-table,
body.ug-theme-v2.app-theme-ruby .app-production-ggf-items-table {
	min-width: 550px;
}

/* Unidade de Producao Padrao: abas e grades mestre/composicao conservam o
 * DOM RichFaces, com rolagem confinada para Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-production-unit-query-results,
body.ug-theme-v2.app-theme-ruby .app-production-unit-query-results,
body.ug-theme-v2.app-theme-ugestor .app-production-unit-tabs,
body.ug-theme-v2.app-theme-ruby .app-production-unit-tabs,
body.ug-theme-v2.app-theme-ugestor .app-production-unit-tabs .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-production-unit-tabs .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-production-unit-tabs .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-production-unit-tabs .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-production-unit-table,
body.ug-theme-v2.app-theme-ruby .app-production-unit-table {
	min-width: 860px;
}

body.ug-theme-v2.app-theme-ugestor .app-production-unit-composition-items-table,
body.ug-theme-v2.app-theme-ruby .app-production-unit-composition-items-table {
	min-width: 620px;
}

body.ug-theme-v2.app-theme-ugestor .app-production-unit-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-production-unit-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-production-unit-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-production-unit-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

body.ug-theme-v2.app-theme-ugestor .app-production-unit-form-panel,
body.ug-theme-v2.app-theme-ruby .app-production-unit-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-production-unit-form-tabs,
body.ug-theme-v2.app-theme-ruby .app-production-unit-form-tabs,
body.ug-theme-v2.app-theme-ugestor .app-production-unit-form-fields,
body.ug-theme-v2.app-theme-ruby .app-production-unit-form-fields,
body.ug-theme-v2.app-theme-ugestor .app-production-unit-composition-list,
body.ug-theme-v2.app-theme-ruby .app-production-unit-composition-list,
body.ug-theme-v2.app-theme-ugestor .app-production-unit-composition-list .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-production-unit-composition-list .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-production-unit-composition-list .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-production-unit-composition-list .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-production-unit-composition-edit-table,
body.ug-theme-v2.app-theme-ruby .app-production-unit-composition-edit-table {
	min-width: 720px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-unit-form-fields,
	body.ug-theme-v2.app-theme-ruby .app-production-unit-form-fields {
		max-width: 860px;
	}
}

/* Caracteristicas padrao: filtro, grade e confirmacao seguem a mesma camada
 * v2 sem alterar as permissoes nem os comandos existentes. */
body.ug-theme-v2.app-theme-ugestor .app-characteristic-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-characteristic-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-characteristic-query-results,
body.ug-theme-v2.app-theme-ruby .app-characteristic-query-results,
body.ug-theme-v2.app-theme-ugestor .app-characteristic-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-characteristic-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-characteristic-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-characteristic-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-characteristic-table,
body.ug-theme-v2.app-theme-ruby .app-characteristic-table {
	min-width: 720px;
}

body.ug-theme-v2.app-theme-ugestor .app-characteristic-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-characteristic-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-characteristic-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-characteristic-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

body.ug-theme-v2.app-theme-ugestor .app-characteristic-form-panel,
body.ug-theme-v2.app-theme-ruby .app-characteristic-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-characteristic-form-fields,
body.ug-theme-v2.app-theme-ruby .app-characteristic-form-fields,
body.ug-theme-v2.app-theme-ugestor .app-characteristic-edit-results,
body.ug-theme-v2.app-theme-ruby .app-characteristic-edit-results,
body.ug-theme-v2.app-theme-ugestor .app-characteristic-edit-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-characteristic-edit-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-characteristic-edit-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-characteristic-edit-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-characteristic-remove-action,
body.ug-theme-v2.app-theme-ruby .app-characteristic-remove-action {
	display: inline-block;
	min-width: 44px;
	min-height: 44px;
	line-height: 44px;
	text-align: center;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-characteristic-form-fields,
	body.ug-theme-v2.app-theme-ruby .app-characteristic-form-fields {
		max-width: 720px;
	}
}

/* Caracteristicas por grupo: fieldsets, listas editaveis e acoes mantem a
 * colecao integral e ganham contencao v2 no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-characteristic-group-form-panel,
body.ug-theme-v2.app-theme-ruby .app-characteristic-group-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-characteristic-group-form-fields,
body.ug-theme-v2.app-theme-ruby .app-characteristic-group-form-fields,
body.ug-theme-v2.app-theme-ugestor .app-characteristic-group-edit-results,
body.ug-theme-v2.app-theme-ruby .app-characteristic-group-edit-results,
body.ug-theme-v2.app-theme-ugestor .app-characteristic-group-edit-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-characteristic-group-edit-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-characteristic-group-edit-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-characteristic-group-edit-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-characteristic-group-table,
body.ug-theme-v2.app-theme-ruby .app-characteristic-group-table {
	min-width: 560px;
}

body.ug-theme-v2.app-theme-ugestor .app-characteristic-group-remove-action,
body.ug-theme-v2.app-theme-ruby .app-characteristic-group-remove-action {
	display: inline-block;
	min-width: 44px;
	min-height: 44px;
	line-height: 44px;
	text-align: center;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-characteristic-group-form-fields,
	body.ug-theme-v2.app-theme-ruby .app-characteristic-group-form-fields {
		max-width: 860px;
	}
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-type-form-fields,
	body.ug-theme-v2.app-theme-ruby .app-production-type-form-fields {
		max-width: 720px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-environment-type-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-production-environment-type-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}
}

/* Consulta de Historico Padrao: periodo, grade e acoes preservam o DOM
 * RichFaces e mantem a rolagem no resultado durante a migracao v2. */
body.ug-theme-v2.app-theme-ugestor .app-standard-history-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-standard-history-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-standard-history-query-results,
body.ug-theme-v2.app-theme-ruby .app-standard-history-query-results,
body.ug-theme-v2.app-theme-ugestor .app-standard-history-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-standard-history-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-history-date-range,
body.ug-theme-v2.app-theme-ruby .app-standard-history-date-range {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-history-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-standard-history-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-history-table,
body.ug-theme-v2.app-theme-ruby .app-standard-history-table {
	min-width: 900px;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-history-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-standard-history-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-history-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-standard-history-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-standard-history-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-standard-history-filter-fields {
		max-width: 860px;
	}
}

/* Consulta de Legendas do Historico Padrao: os filtros adicionais e a grade
 * mantem a mesma contencao v2, sem tocar nos calendarios ou no Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-query-results,
body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-query-results,
body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-date-range,
body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-date-range {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-table,
body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-table {
	min-width: 880px;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-filter-fields {
		max-width: 860px;
	}
}

/* Manutencao de Historico Padrao: painel e campos seguem o contrato de
 * formularios v2, preservando os estados de inclusao, edicao e visualizacao. */
body.ug-theme-v2.app-theme-ugestor .app-standard-history-form-panel,
body.ug-theme-v2.app-theme-ruby .app-standard-history-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-standard-history-form-fields,
body.ug-theme-v2.app-theme-ruby .app-standard-history-form-fields {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-history-form-fields textarea,
body.ug-theme-v2.app-theme-ruby .app-standard-history-form-fields textarea {
	min-height: 112px !important;
	resize: vertical;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-standard-history-form-fields,
	body.ug-theme-v2.app-theme-ruby .app-standard-history-form-fields {
		max-width: 760px;
	}
}

/* Manutencao de Legenda do Historico Padrao: o painel simples permanece
 * legivel no Tablet sem modificar bindings, permissoes ou comandos Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-form-panel,
body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-form-fields,
body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-form-fields {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-standard-history-legend-form-fields,
	body.ug-theme-v2.app-theme-ruby .app-standard-history-legend-form-fields {
		max-width: 760px;
	}
}

/* Consulta de Lancamento Contabil Padrao: opcoes, periodo e grade mantem o
 * resultado rolavel no Tablet, sem alterar filtros, paginacao ou exclusao. */
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-query-results,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-query-results,
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-entry-date-range,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-date-range {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-entry-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-entry-table,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-table {
	min-width: 820px;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-entry-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-entry-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-standard-entry-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-standard-entry-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-standard-entry-filter-fields {
		max-width: 860px;
	}
}

/* Manutencao de Lancamento Contabil Padrao: abas, colunas e grades internas
 * recebem contencao v2 sem converter as tabelas JSF/RichFaces em Grid. */
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-form-panel,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-form-tabs,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-form-tabs,
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-basic-tab,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-basic-tab,
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-items-editor,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-items-editor,
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-column,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-column,
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-edit-results,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-edit-results,
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-edit-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-edit-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-entry-column fieldset,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-column fieldset,
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-items-editor fieldset,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-items-editor fieldset {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-entry-edit-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-edit-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-entry-edit-table,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-edit-table {
	min-width: 440px;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-entry-items-table,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-items-table {
	min-width: 860px;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-entry-remove-action,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-remove-action,
body.ug-theme-v2.app-theme-ugestor .app-standard-entry-remove-image,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-remove-image {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

body.ug-theme-v2.app-theme-ugestor .app-standard-entry-remove-image,
body.ug-theme-v2.app-theme-ruby .app-standard-entry-remove-image {
	display: inline-block;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-standard-entry-basic-tab,
	body.ug-theme-v2.app-theme-ruby .app-standard-entry-basic-tab {
		max-width: 860px;
	}
}

/* Consulta de Plano de Contas: filtros e grade conservam a densidade de
 * Produtos com rolagem restrita ao resultado no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-results,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-results,
body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-fields {
	max-width: none !important;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-table,
body.ug-theme-v2.app-theme-ruby .app-account-plan-table {
	min-width: 680px;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-account-plan-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-grid,
body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-grid {
	display: block;
	width: 100% !important;
	max-width: none !important;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-grid > tbody,
body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-grid > tbody {
	display: block;
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-grid > tbody > tr,
body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-grid > tbody > tr {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 18px;
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-grid > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-grid > tbody > tr > td {
	display: block;
	box-sizing: border-box;
	width: auto !important;
	min-width: 0;
	padding: 3px 0 7px !important;
	vertical-align: top;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-field,
body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-field {
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-field > label,
body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-field > label {
	min-height: 18px;
	color: var(--ug-color-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-account-plan-filter-field input[type="text"],
body.ug-theme-v2.app-theme-ruby .conteudo .app-account-plan-filter-field input[type="text"],
body.ug-theme-v2.app-theme-ugestor .conteudo .app-account-plan-filter-field select,
body.ug-theme-v2.app-theme-ruby .conteudo .app-account-plan-filter-field select,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-account-plan-filter-field .rich-calendar-input,
body.ug-theme-v2.app-theme-ruby .conteudo .app-account-plan-filter-field .rich-calendar-input {
	box-sizing: border-box;
	width: 100% !important;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-field > span[id$="Popup"],
body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-field > span[id$="Popup"] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 28px;
	align-items: center;
	gap: 6px;
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-display .app-control-options,
body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-display .app-control-options {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 35px;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-result-summary,
body.ug-theme-v2.app-theme-ruby .app-account-plan-result-summary {
	margin: 0 0 10px;
	color: var(--ug-color-text-muted);
	font-size: 12px;
	font-weight: 600;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-shell,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-shell {
	--account-plan-columns: 260px 320px 110px 145px 145px 130px 110px 110px 115px 80px 115px;
	box-sizing: border-box;
	width: 100%;
	max-height: 680px;
	padding: 0;
	overflow: auto;
	border: 1px solid var(--ug-color-tab-border);
	border-radius: var(--ug-radius-panel);
	background: var(--ug-color-surface);
	box-shadow: 0 8px 22px rgba(16, 33, 61, 0.06);
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-tree,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-tree {
	box-sizing: border-box;
	width: max-content !important;
	min-width: 100% !important;
	max-height: none !important;
	padding: 7px 16px 14px 12px;
	overflow: visible !important;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-grid,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-grid {
	display: grid;
	grid-template-columns: var(--account-plan-columns);
	gap: 12px;
	align-items: center;
	box-sizing: border-box;
	width: max-content;
	min-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-header,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-header {
	position: sticky;
	top: 0;
	z-index: 3;
	width: max-content;
	min-width: 100%;
	padding: 12px 16px 12px 56px;
	border-bottom: 2px solid var(--ug-color-accent);
	background: #10213d !important;
	background: var(--ug-color-ink) !important;
	background-image: none !important;
	color: #fff !important;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: uppercase;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-header > span,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-header > span {
	color: #fff !important;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-column,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-column {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 28px;
	padding-right: 10px;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-column-resizer,
body.ug-theme-v2.app-theme-ruby .app-account-plan-column-resizer {
	position: absolute;
	top: -12px;
	right: -6px;
	bottom: -12px;
	z-index: 5;
	display: block;
	width: 12px;
	cursor: col-resize;
	touch-action: none;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-column-resizer::after,
body.ug-theme-v2.app-theme-ruby .app-account-plan-column-resizer::after {
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 5px;
	width: 2px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.34);
	content: "";
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-column-resizer:hover::after,
body.ug-theme-v2.app-theme-ruby .app-account-plan-column-resizer:hover::after,
body.ug-theme-v2.app-theme-ugestor .app-account-plan-column-resizer:focus::after,
body.ug-theme-v2.app-theme-ruby .app-account-plan-column-resizer:focus::after,
body.ug-theme-v2.app-theme-ugestor .app-account-plan-resizing .app-account-plan-column-resizer::after,
body.ug-theme-v2.app-theme-ruby .app-account-plan-resizing .app-account-plan-column-resizer::after {
	background: #ff8a5c;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-column-resizer:focus,
body.ug-theme-v2.app-theme-ruby .app-account-plan-column-resizer:focus {
	outline: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-resizing,
body.ug-theme-v2.app-theme-ruby .app-account-plan-resizing,
body.ug-theme-v2.app-theme-ugestor .app-account-plan-resizing *,
body.ug-theme-v2.app-theme-ruby .app-account-plan-resizing * {
	cursor: col-resize !important;
	user-select: none !important;
}

/* O recuo nativo do RichFaces desloca a linha inteira a cada nível e quebra
 * o alinhamento das colunas. A hierarquia fica concentrada na coluna Número. */
body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-tree .rich-tree-node-children,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-tree .rich-tree-node-children {
	margin-left: 0 !important;
	padding-left: 0 !important;
	background-image: none !important;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-hierarchy-cell,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-hierarchy-cell {
	--account-plan-tree-depth: 0;
	position: relative;
	box-sizing: border-box;
	padding-left: calc(var(--account-plan-tree-depth) * 24px);
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-tree .rich-tree-node-children .rich-tree-node-children .app-account-plan-tree-code,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-tree .rich-tree-node-children .rich-tree-node-children .app-account-plan-tree-code {
	--account-plan-tree-depth: 2;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-tree .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .app-account-plan-tree-code,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-tree .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .app-account-plan-tree-code {
	--account-plan-tree-depth: 3;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-tree .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .app-account-plan-tree-code,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-tree .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .app-account-plan-tree-code {
	--account-plan-tree-depth: 4;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-tree .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .app-account-plan-tree-code,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-tree .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .app-account-plan-tree-code {
	--account-plan-tree-depth: 5;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-tree .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .app-account-plan-tree-code,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-tree .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .rich-tree-node-children .app-account-plan-tree-code {
	--account-plan-tree-depth: 6;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-tree .rich-tree-node-children .app-account-plan-tree-hierarchy-cell,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-tree .rich-tree-node-children .app-account-plan-tree-hierarchy-cell {
	--account-plan-tree-depth: 1;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-query-tree .rich-tree-node-children .app-account-plan-tree-hierarchy-cell::before,
body.ug-theme-v2.app-theme-ruby .app-account-plan-query-tree .rich-tree-node-children .app-account-plan-tree-hierarchy-cell::before {
	position: absolute;
	top: -12px;
	left: calc((var(--account-plan-tree-depth) - 1) * 24px + 7px);
	box-sizing: border-box;
	width: 14px;
	height: 31px;
	border-bottom: 1px solid #f2a486;
	border-left: 1px solid #f2a486;
	border-radius: 0 0 0 4px;
	content: "";
	pointer-events: none;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-node,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-node {
	min-height: 38px;
	padding: 5px 6px;
	border-bottom: 1px solid rgba(216, 225, 235, 0.72);
	background: linear-gradient(90deg, rgba(255, 247, 243, 0.34), rgba(255, 255, 255, 0) 38%);
	white-space: nowrap;
	color: var(--ug-color-ink);
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-node:hover,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-node:hover {
	background: #fff8f5;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-code,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-code {
	color: var(--ug-color-accent-strong);
	font-weight: 700;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-description,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-description {
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-badge,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-badge,
body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-status,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-status {
	justify-self: start;
	padding: 3px 7px;
	border: 1px solid var(--ug-color-border-warm);
	border-radius: var(--ug-radius-control);
	background: var(--ug-color-surface-context);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-meta,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-meta {
	color: var(--ug-color-text-muted);
	font-size: 11px;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-status,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-status {
	color: var(--ug-color-accent-strong);
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-boolean,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-boolean {
	justify-self: start;
	min-width: 32px;
	padding: 3px 7px;
	border: 1px solid var(--ug-color-tab-border);
	border-radius: 999px;
	background: var(--ug-color-surface-soft);
	color: var(--ug-color-text-muted);
	font-size: 10px;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-boolean-positive,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-boolean-positive {
	border-color: #b8dec8;
	background: #effaf3;
	color: #247a46;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-boolean-negative,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-boolean-negative {
	border-color: #ead0c5;
	background: #fff7f3;
	color: #a64b2a;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-date,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-date {
	color: var(--ug-color-text-muted);
	font-variant-numeric: tabular-nums;
	font-size: 11px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-fields {
		max-width: none;
	}

	body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-grid > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-grid > tbody > tr {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-grid > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-grid > tbody > tr > td {
		width: auto !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-account-plan-filter-grid > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-account-plan-filter-grid > tbody > tr {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-shell,
	body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-shell {
		max-height: 560px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-node,
	body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-node {
		min-height: 44px;
	}
}

/* Manutencao de Plano de Contas: abas, campos e hierarquia continuam no DOM
 * RichFaces, com leitura e acoes de toque consistentes no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-account-plan-form-panel,
body.ug-theme-v2.app-theme-ruby .app-account-plan-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-account-plan-tabs,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tabs,
body.ug-theme-v2.app-theme-ugestor .app-account-plan-form-fields,
body.ug-theme-v2.app-theme-ruby .app-account-plan-form-fields,
body.ug-theme-v2.app-theme-ugestor .app-account-plan-hierarchy-panel,
body.ug-theme-v2.app-theme-ruby .app-account-plan-hierarchy-panel,
body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-form-fields fieldset,
body.ug-theme-v2.app-theme-ruby .app-account-plan-form-fields fieldset {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree {
	max-height: 460px;
	overflow: auto;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-search-action,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-search-action,
body.ug-theme-v2.app-theme-ugestor .app-account-plan-reference-remove-action,
body.ug-theme-v2.app-theme-ruby .app-account-plan-reference-remove-action {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

body.ug-theme-v2.app-theme-ugestor .app-account-plan-tree-search-action,
body.ug-theme-v2.app-theme-ruby .app-account-plan-tree-search-action {
	display: inline-block;
	vertical-align: middle;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-account-plan-form-fields,
	body.ug-theme-v2.app-theme-ruby .app-account-plan-form-fields,
	body.ug-theme-v2.app-theme-ugestor .app-account-plan-hierarchy-panel,
	body.ug-theme-v2.app-theme-ruby .app-account-plan-hierarchy-panel {
		max-width: 900px;
	}
}

/* Plano de Contas Referenciais: resultado de importacao, upload e arvore
 * permanecem nos componentes RichFaces, com contencao v2 para Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-reference-account-form-panel,
body.ug-theme-v2.app-theme-ruby .app-reference-account-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-reference-account-form-fields,
body.ug-theme-v2.app-theme-ruby .app-reference-account-form-fields,
body.ug-theme-v2.app-theme-ugestor .app-reference-account-hierarchy-panel,
body.ug-theme-v2.app-theme-ruby .app-reference-account-hierarchy-panel,
body.ug-theme-v2.app-theme-ugestor .app-reference-account-upload-result,
body.ug-theme-v2.app-theme-ruby .app-reference-account-upload-result,
body.ug-theme-v2.app-theme-ugestor .app-reference-account-upload,
body.ug-theme-v2.app-theme-ruby .app-reference-account-upload,
body.ug-theme-v2.app-theme-ugestor .app-reference-account-upload-status,
body.ug-theme-v2.app-theme-ruby .app-reference-account-upload-status,
body.ug-theme-v2.app-theme-ugestor .app-reference-account-tree,
body.ug-theme-v2.app-theme-ruby .app-reference-account-tree {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-reference-account-upload input,
body.ug-theme-v2.app-theme-ruby .app-reference-account-upload input,
body.ug-theme-v2.app-theme-ugestor .app-reference-account-upload button,
body.ug-theme-v2.app-theme-ruby .app-reference-account-upload button,
body.ug-theme-v2.app-theme-ugestor .app-reference-account-upload .rich-fileupload-button-border,
body.ug-theme-v2.app-theme-ruby .app-reference-account-upload .rich-fileupload-button-border {
	box-sizing: border-box;
	min-height: 44px;
}

body.ug-theme-v2.app-theme-ugestor .app-reference-account-tree,
body.ug-theme-v2.app-theme-ruby .app-reference-account-tree {
	max-height: 460px;
	overflow: auto;
}

body.ug-theme-v2.app-theme-ugestor .app-reference-account-tree-search-action,
body.ug-theme-v2.app-theme-ruby .app-reference-account-tree-search-action {
	box-sizing: content-box !important;
	display: inline-block;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
	vertical-align: middle;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-reference-account-form-fields,
	body.ug-theme-v2.app-theme-ruby .app-reference-account-form-fields,
	body.ug-theme-v2.app-theme-ugestor .app-reference-account-hierarchy-panel,
	body.ug-theme-v2.app-theme-ruby .app-reference-account-hierarchy-panel {
		max-width: 900px;
	}
}

/* Consulta de Indices de Reajuste: filtro, grade e acoes ficam contidos na
 * camada v2, mantendo permissões, paginação e confirmação existentes. */
body.ug-theme-v2.app-theme-ugestor .app-contract-index-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-contract-index-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-contract-index-query-results,
body.ug-theme-v2.app-theme-ruby .app-contract-index-query-results,
body.ug-theme-v2.app-theme-ugestor .app-contract-index-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-contract-index-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-contract-index-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-contract-index-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-contract-index-table,
body.ug-theme-v2.app-theme-ruby .app-contract-index-table {
	min-width: 520px;
}

body.ug-theme-v2.app-theme-ugestor .app-contract-index-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-contract-index-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-contract-index-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-contract-index-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-contract-index-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-contract-index-filter-fields {
		max-width: 760px;
	}
}

/* Manutencao de Indice de Reajuste: painel simples e campo preservam os
 * estados de inclusao, alteracao e visualizacao no contrato v2. */
body.ug-theme-v2.app-theme-ugestor .app-contract-index-form-panel,
body.ug-theme-v2.app-theme-ruby .app-contract-index-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-contract-index-form-fields,
body.ug-theme-v2.app-theme-ruby .app-contract-index-form-fields {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-contract-index-form-fields,
	body.ug-theme-v2.app-theme-ruby .app-contract-index-form-fields {
		max-width: 760px;
	}
}

/* Consulta De/Para de Itens de Produto: exportacoes e grades mestre/aninhada
 * permanecem funcionais, com rolagem confinada no resultado. */
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-query-results,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-query-results,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-table,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-table {
	min-width: 1050px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-origin-table,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-origin-table {
	min-width: 520px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-export-actions .app-filter-action-icon,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-export-actions .app-filter-action-icon,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-export-actions .app-filter-action-icon,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-export-actions .app-filter-action-icon {
	display: inline-block;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-filter-fields {
		max-width: 860px;
	}
}

/* Manutencao De/Para de Itens de Produto: destino, origem e listas internas
 * ganham contencao v2 sem alterar autocomplete, selecao ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-form-panel,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-form-layout,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-form-layout,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-destination-fields,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-destination-fields,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-origin-panel,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-origin-panel,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-origin-fields,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-origin-fields,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-selected-results,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-selected-results,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-suggestion-results,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-suggestion-results,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-suggestion-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-suggestion-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-suggestion-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-suggestion-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-selected-table,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-selected-table {
	min-width: 580px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-suggestion-table,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-suggestion-table {
	min-width: 880px;
}

body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-form-row-actions a,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-form-row-actions a,
body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-search-action,
body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-search-action {
	box-sizing: content-box !important;
	display: inline-block;
	min-width: 20px;
	min-height: 20px;
	padding: 12px !important;
	vertical-align: middle;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-destination-fields,
	body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-destination-fields,
	body.ug-theme-v2.app-theme-ugestor .app-product-item-mapping-origin-fields,
	body.ug-theme-v2.app-theme-ruby .app-product-item-mapping-origin-fields {
		max-width: 860px;
	}
}

/* Consulta De/Para de Itens de Servico: grade mestre e origem aninhada usam
 * a mesma contencao v2, preservando paginação e permissões. */
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-query-results,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-query-results,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-table,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-table {
	min-width: 1050px;
}

body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-origin-table,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-origin-table {
	min-width: 520px;
}

body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-filter-fields {
		max-width: 860px;
	}
}

/* Manutencao De/Para de Itens de Servico: destino, origem e listas seguem a
 * contencao v2 sem alterar autocomplete, selecao ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-form-panel,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-form-layout,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-form-layout,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-destination-fields,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-destination-fields,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-origin-panel,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-origin-panel,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-origin-fields,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-origin-fields,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-selected-results,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-selected-results,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-suggestion-results,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-suggestion-results,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-suggestion-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-suggestion-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-suggestion-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-suggestion-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-selected-table,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-selected-table {
	min-width: 580px;
}

body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-suggestion-table,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-suggestion-table {
	min-width: 880px;
}

body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-form-row-actions a,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-form-row-actions a,
body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-search-action,
body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-search-action {
	box-sizing: content-box !important;
	display: inline-block;
	min-width: 20px;
	min-height: 20px;
	padding: 12px !important;
	vertical-align: middle;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-destination-fields,
	body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-destination-fields,
	body.ug-theme-v2.app-theme-ugestor .app-service-item-mapping-origin-fields,
	body.ug-theme-v2.app-theme-ruby .app-service-item-mapping-origin-fields {
		max-width: 860px;
	}
}

/* Consulta de Eventos Financeiros por Conta: a grade detalhada preserva as
 * regras de ajuste e permanece rolavel apenas dentro do resultado. */
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-query-results,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-query-results,
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-table,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-table {
	min-width: 1180px;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-account-filter-fields {
		max-width: 760px;
	}
}

/* Manutencao de Eventos Financeiros por Conta: abas, selecao e grupos
 * contabeis mantem o DOM RichFaces e a regra financeira intactos. */
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-form-panel,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-event-fields,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-event-fields,
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-tabs,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-tabs,
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-tree,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-tree,
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-selection-fields,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-selection-fields,
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-selected-results,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-selected-results,
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-ledger-fields,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-ledger-fields,
body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-ledger-layout,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-ledger-layout {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-tree,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-tree {
	max-height: 420px;
	overflow: auto;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-selected-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-selected-table,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-selected-table {
	min-width: 620px;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-ledger-fields fieldset,
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-ledger-fields fieldset {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-form-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-financial-event-account-form-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-event-fields,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-account-event-fields,
	body.ug-theme-v2.app-theme-ugestor .app-financial-event-account-selection-fields,
	body.ug-theme-v2.app-theme-ruby .app-financial-event-account-selection-fields {
		max-width: 860px;
	}
}

/* Consulta de Tipos de Operacao por Conta: filtro, grade e acoes preservam
 * as contas vinculadas com rolagem confinada no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-operation-account-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-operation-account-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-operation-account-query-results,
body.ug-theme-v2.app-theme-ruby .app-operation-account-query-results,
body.ug-theme-v2.app-theme-ugestor .app-operation-account-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-operation-account-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-operation-account-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-operation-account-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-operation-account-table,
body.ug-theme-v2.app-theme-ruby .app-operation-account-table {
	min-width: 900px;
}

body.ug-theme-v2.app-theme-ugestor .app-operation-account-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-operation-account-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-operation-account-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-operation-account-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-operation-account-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-operation-account-filter-fields {
		max-width: 760px;
	}
}

/* Manutencao de Tipos de Operacao por Conta: aba, arvore e lista selecionada
 * seguem a camada v2 sem modificar percentuais, totais ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-operation-account-form-panel,
body.ug-theme-v2.app-theme-ruby .app-operation-account-form-panel,
body.ug-theme-v2.app-theme-ugestor .app-operation-account-type-fields,
body.ug-theme-v2.app-theme-ruby .app-operation-account-type-fields,
body.ug-theme-v2.app-theme-ugestor .app-operation-account-tabs,
body.ug-theme-v2.app-theme-ruby .app-operation-account-tabs,
body.ug-theme-v2.app-theme-ugestor .app-operation-account-tree,
body.ug-theme-v2.app-theme-ruby .app-operation-account-tree,
body.ug-theme-v2.app-theme-ugestor .app-operation-account-selection-fields,
body.ug-theme-v2.app-theme-ruby .app-operation-account-selection-fields,
body.ug-theme-v2.app-theme-ugestor .app-operation-account-selected-results,
body.ug-theme-v2.app-theme-ruby .app-operation-account-selected-results,
body.ug-theme-v2.app-theme-ugestor .app-operation-account-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-operation-account-selected-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-operation-account-tree,
body.ug-theme-v2.app-theme-ruby .app-operation-account-tree {
	max-height: 420px;
	overflow: auto;
}

body.ug-theme-v2.app-theme-ugestor .app-operation-account-selected-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-operation-account-selected-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-operation-account-selected-table,
body.ug-theme-v2.app-theme-ruby .app-operation-account-selected-table {
	min-width: 560px;
}

body.ug-theme-v2.app-theme-ugestor .app-operation-account-form-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-operation-account-form-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-operation-account-type-fields,
	body.ug-theme-v2.app-theme-ruby .app-operation-account-type-fields,
	body.ug-theme-v2.app-theme-ugestor .app-operation-account-selection-fields,
	body.ug-theme-v2.app-theme-ruby .app-operation-account-selection-fields {
		max-width: 860px;
	}
}

/* Consulta de Projetos: grade ampla preserva vínculos e valores com rolagem
 * confinada ao resultado no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-project-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-project-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-project-query-results,
body.ug-theme-v2.app-theme-ruby .app-project-query-results,
body.ug-theme-v2.app-theme-ugestor .app-project-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-project-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-project-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-project-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-project-table,
body.ug-theme-v2.app-theme-ruby .app-project-table {
	min-width: 1400px;
}

body.ug-theme-v2.app-theme-ugestor .app-project-table .rich-table-cell,
body.ug-theme-v2.app-theme-ruby .app-project-table .rich-table-cell {
	padding: 10px 12px !important;
	vertical-align: middle;
}

body.ug-theme-v2.app-theme-ugestor .app-project-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-project-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-project-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-project-filter-fields {
		max-width: 760px;
	}
}

/* Manutenção de Projeto: árvores e grades preservam a operação densa no
 * Tablet, mantendo a rolagem dentro do respectivo bloco. */
body.ug-theme-v2.app-theme-ugestor .app-project-form-fields,
body.ug-theme-v2.app-theme-ruby .app-project-form-fields,
body.ug-theme-v2.app-theme-ugestor .app-project-negotiation-fields,
body.ug-theme-v2.app-theme-ruby .app-project-negotiation-fields,
body.ug-theme-v2.app-theme-ugestor .app-project-management-fields,
body.ug-theme-v2.app-theme-ruby .app-project-management-fields,
body.ug-theme-v2.app-theme-ugestor .app-project-selection-fields,
body.ug-theme-v2.app-theme-ruby .app-project-selection-fields,
body.ug-theme-v2.app-theme-ugestor .app-project-financial-section,
body.ug-theme-v2.app-theme-ruby .app-project-financial-section,
body.ug-theme-v2.app-theme-ugestor .app-project-accounting-fields,
body.ug-theme-v2.app-theme-ruby .app-project-accounting-fields,
body.ug-theme-v2.app-theme-ugestor .app-project-item-section,
body.ug-theme-v2.app-theme-ruby .app-project-item-section,
body.ug-theme-v2.app-theme-ugestor .app-project-payment-options,
body.ug-theme-v2.app-theme-ruby .app-project-payment-options,
body.ug-theme-v2.app-theme-ugestor .app-project-grid-scroll,
body.ug-theme-v2.app-theme-ruby .app-project-grid-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-project-grid-scroll,
body.ug-theme-v2.app-theme-ruby .app-project-grid-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-project-grid-scroll .rich-table,
body.ug-theme-v2.app-theme-ruby .app-project-grid-scroll .rich-table {
	min-width: 560px;
}

body.ug-theme-v2.app-theme-ugestor .app-project-product-results .rich-table,
body.ug-theme-v2.app-theme-ruby .app-project-product-results .rich-table {
	min-width: 1480px;
}

body.ug-theme-v2.app-theme-ugestor .app-project-service-results .rich-table,
body.ug-theme-v2.app-theme-ruby .app-project-service-results .rich-table {
	min-width: 900px;
}

body.ug-theme-v2.app-theme-ugestor .app-project-tree,
body.ug-theme-v2.app-theme-ruby .app-project-tree {
	max-height: 420px;
	overflow: auto;
}

body.ug-theme-v2.app-theme-ugestor .app-project-item-editor,
body.ug-theme-v2.app-theme-ruby .app-project-item-editor,
body.ug-theme-v2.app-theme-ugestor .app-project-financial-fieldset,
body.ug-theme-v2.app-theme-ruby .app-project-financial-fieldset,
body.ug-theme-v2.app-theme-ugestor .app-project-accounting-fieldset,
body.ug-theme-v2.app-theme-ruby .app-project-accounting-fieldset {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-project-item-editor,
	body.ug-theme-v2.app-theme-ruby .app-project-item-editor {
		max-width: 700px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-project-options-grid,
	body.ug-theme-v2.app-theme-ruby .app-project-options-grid {
		max-width: 100%;
	}
}

/* Consulta de Rotas: filtro e resultado preservam a largura útil no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-route-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-route-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-route-query-results,
body.ug-theme-v2.app-theme-ruby .app-route-query-results,
body.ug-theme-v2.app-theme-ugestor .app-route-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-route-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-route-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-route-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-route-table,
body.ug-theme-v2.app-theme-ruby .app-route-table {
	min-width: 560px;
}

body.ug-theme-v2.app-theme-ugestor .app-route-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-route-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-route-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-route-filter-fields {
		max-width: 920px;
	}
}

/* Manutenção de Rota: cliente e lista auxiliar mantêm campos e grade dentro
 * do painel no Tablet, sem alterar a coleção ou seus comandos. */
body.ug-theme-v2.app-theme-ugestor .app-route-form-fields,
body.ug-theme-v2.app-theme-ruby .app-route-form-fields,
body.ug-theme-v2.app-theme-ugestor .app-route-client-fields,
body.ug-theme-v2.app-theme-ruby .app-route-client-fields,
body.ug-theme-v2.app-theme-ugestor .app-route-client-results,
body.ug-theme-v2.app-theme-ruby .app-route-client-results,
body.ug-theme-v2.app-theme-ugestor .app-route-client-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-route-client-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ugestor .app-route-client-fieldset,
body.ug-theme-v2.app-theme-ruby .app-route-client-fieldset,
body.ug-theme-v2.app-theme-ugestor .app-route-client-list-fieldset,
body.ug-theme-v2.app-theme-ruby .app-route-client-list-fieldset {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-route-client-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-route-client-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-route-client-table,
body.ug-theme-v2.app-theme-ruby .app-route-client-table {
	min-width: 680px;
}

body.ug-theme-v2.app-theme-ugestor .app-route-form-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-route-form-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-route-form-fields,
	body.ug-theme-v2.app-theme-ruby .app-route-form-fields,
	body.ug-theme-v2.app-theme-ugestor .app-route-client-fields,
	body.ug-theme-v2.app-theme-ruby .app-route-client-fields {
		max-width: 920px;
	}
}

/* Consulta de Veículos: filtros extensos e resultado mantêm a rolagem no
 * contêiner próprio no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-vehicle-filter-fields,
body.ug-theme-v2.app-theme-ruby .app-vehicle-filter-fields,
body.ug-theme-v2.app-theme-ugestor .app-vehicle-query-results,
body.ug-theme-v2.app-theme-ruby .app-vehicle-query-results,
body.ug-theme-v2.app-theme-ugestor .app-vehicle-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-vehicle-query-results .app-query-table-scroll {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-vehicle-query-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-vehicle-query-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-vehicle-table,
body.ug-theme-v2.app-theme-ruby .app-vehicle-table {
	min-width: 860px;
}

body.ug-theme-v2.app-theme-ugestor .app-vehicle-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-vehicle-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-vehicle-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-vehicle-filter-fields {
		max-width: 920px;
	}
}

/* Manutenção de Veículo: campos, árvore financeira e grade interna ocupam o
 * painel útil no Tablet sem alterar seleções ou totais existentes. */
body.ug-theme-v2.app-theme-ugestor .app-vehicle-basic-fields,
body.ug-theme-v2.app-theme-ruby .app-vehicle-basic-fields,
body.ug-theme-v2.app-theme-ugestor .app-vehicle-owner-fields,
body.ug-theme-v2.app-theme-ruby .app-vehicle-owner-fields,
body.ug-theme-v2.app-theme-ugestor .app-vehicle-financial-fields,
body.ug-theme-v2.app-theme-ruby .app-vehicle-financial-fields,
body.ug-theme-v2.app-theme-ugestor .app-vehicle-financial-results,
body.ug-theme-v2.app-theme-ruby .app-vehicle-financial-results,
body.ug-theme-v2.app-theme-ugestor .app-vehicle-financial-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-vehicle-financial-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ugestor .app-vehicle-accounting-fields,
body.ug-theme-v2.app-theme-ruby .app-vehicle-accounting-fields,
body.ug-theme-v2.app-theme-ugestor .app-vehicle-accounting-fieldset,
body.ug-theme-v2.app-theme-ruby .app-vehicle-accounting-fieldset {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-vehicle-financial-tree,
body.ug-theme-v2.app-theme-ruby .app-vehicle-financial-tree {
	max-height: 420px;
	overflow: auto;
}

body.ug-theme-v2.app-theme-ugestor .app-vehicle-financial-results .app-query-table-scroll,
body.ug-theme-v2.app-theme-ruby .app-vehicle-financial-results .app-query-table-scroll {
	overflow-x: auto;
	overflow-y: hidden;
}

body.ug-theme-v2.app-theme-ugestor .app-vehicle-financial-table,
body.ug-theme-v2.app-theme-ruby .app-vehicle-financial-table {
	min-width: 560px;
}

body.ug-theme-v2.app-theme-ugestor .app-vehicle-form-row-actions input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-vehicle-form-row-actions input[type="image"] {
	box-sizing: content-box !important;
	width: 20px !important;
	height: 20px !important;
	padding: 12px !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-vehicle-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-vehicle-basic-fields,
	body.ug-theme-v2.app-theme-ugestor .app-vehicle-owner-fields,
	body.ug-theme-v2.app-theme-ruby .app-vehicle-owner-fields,
	body.ug-theme-v2.app-theme-ugestor .app-vehicle-financial-fields,
	body.ug-theme-v2.app-theme-ruby .app-vehicle-financial-fields {
		max-width: 920px;
	}
}

/* Duplicatas da Compra: a grade integral permanece confinada ao modal no
 * Tablet, sem truncar vencimentos, valores ou ações de edição. */
body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-purchase-duplicates-modal-panel,
body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-purchase-duplicates-modal-panel,
body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-purchase-duplicates-modal-panel .rich-panel-body,
body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-purchase-duplicates-modal-panel .rich-panel-body,
body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal-content,
body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal-content {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal-scroll,
body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal-scroll {
	width: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal-grid {
	min-width: 720px;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-purchase-duplicate-title-control,
body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-purchase-duplicate-title-control,
body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-purchase-duplicate-barcode-control,
body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-purchase-duplicate-barcode-control {
	box-sizing: border-box;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal,
	body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-purchase-duplicates-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-purchase-duplicates-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-purchase-duplicates-modal-scroll,
	body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-purchase-duplicates-modal-scroll {
		max-height: calc(100vh - 280px);
		max-height: calc(100dvh - 280px);
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-modal-row-action,
	body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-modal-row-action {
		box-sizing: border-box !important;
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-duplicates-modal .app-modal-row-action,
	body.ug-theme-v2.app-theme-ruby .app-purchase-duplicates-modal .app-modal-row-action {
		padding: 12px !important;
	}
}

/* Forma de Pagamento da Compra: campos financeiros e vencimentos permanecem
 * acessíveis dentro do modal no Tablet. */
body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-purchase-payment-modal-content,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-purchase-payment-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-purchase-payment-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-purchase-payment-modal-fields,
body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-form-modal-inline-fields,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-form-modal-inline-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

/* Forma de pagamento: o CDiv do RichFaces e a caixa visual efetiva. A grade
 * financeira fica estável para boleto, dinheiro, cartão, PIX e transferência,
 * sem alterar os bindings, condições rendered ou os callbacks Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
	position: fixed !important;
	box-sizing: border-box !important;
	/* O XHTML legado deste fluxo declara 750px. A redução para 560px
	 * comprimia as duas colunas condicionais de entrada e vencimento. */
	width: 750px !important;
	max-width: calc(100vw - 48px) !important;
	max-height: calc(100vh - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
	left: 50% !important;
	top: 50% !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	-webkit-transform: translate(-50%, -50%) !important;
	transform: translate(-50%, -50%) !important;
}

/* Formas de recebimento tambem usam o CDiv efetivo do RichFaces. Sem esta
 * camada, a largura calculada pelo autosized podia crescer ate a viewport em
 * monitores largos. Mantem uma caixa compacta, centralizada e com margem sem
 * interferir nos valores, parcelamento ou callbacks existentes. */
body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-sales-order-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
	position: fixed !important;
	box-sizing: border-box !important;
	width: 640px !important;
	max-width: calc(100vw - 48px) !important;
	max-height: calc(100vh - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
	left: 50% !important;
	top: 50% !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	-webkit-transform: translate(-50%, -50%) !important;
	transform: translate(-50%, -50%) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-purchase-payment-modal-content,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-purchase-payment-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-revenue-receipt-modal-content,
body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-revenue-receipt-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-receipt-modal .app-sales-order-receipt-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-receipt-modal .app-sales-order-receipt-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal .app-invoice-order-receipt-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal .app-invoice-order-receipt-modal-content {
	box-sizing: border-box;
	max-height: calc(100vh - 136px);
	max-height: calc(100dvh - 136px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-payment-amount-input,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-payment-amount-input,
body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-payment-entry-amount-input,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-payment-entry-amount-input {
	box-sizing: border-box;
	width: 260px !important;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-form-modal-inline-fields .name,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-form-modal-inline-fields .name,
body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-form-modal-inline-fields .value,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-form-modal-inline-fields .value {
	box-sizing: border-box;
	display: block;
	float: none;
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-form-modal-inline-fields .name,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-form-modal-inline-fields .name {
	padding: 5px 0 3px;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-payment-entry-due-date input[type="text"],
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-payment-entry-due-date input[type="text"] {
	box-sizing: border-box;
	width: calc(100% - 32px) !important;
	max-width: calc(100% - 28px);
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-payment-pix-type-input,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-payment-pix-type-input {
	box-sizing: border-box;
	width: 260px !important;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-payment-pix-key-input,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-payment-pix-key-input {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-payment-installments-input,
body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-payment-installments-input {
	box-sizing: border-box;
	width: 160px !important;
	max-width: 100%;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-purchase-payment-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-purchase-payment-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-revenue-receipt-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-revenue-receipt-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-receipt-modal .app-sales-order-receipt-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-receipt-modal .app-sales-order-receipt-modal-content,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal .app-invoice-order-receipt-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal .app-invoice-order-receipt-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-payment-amount-input,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-payment-amount-input,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-payment-entry-amount-input,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-payment-entry-amount-input,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-payment-pix-type-input,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-payment-pix-type-input,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-payment-pix-key-input,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-payment-pix-key-input,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal-fields .app-payment-installments-input,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal-fields .app-payment-installments-input {
		width: 100% !important;
	}
}

/* Seleção de contas bancárias: a grade permanece na rolagem local do modal
 * no Tablet, sem limitar a seleção individual ou em lote. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-bank-account-selection-modal,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-selection-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-account-selection-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-selection-modal .app-form-modal-content {
		box-sizing: border-box;
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-account-selection-modal .app-form-modal-scroll,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-selection-modal .app-form-modal-scroll {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-account-selection-modal .app-compact-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-selection-modal .app-compact-modal-grid {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-bank-account-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-bank-account-selection-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-bank-account-selection-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Seleção financeira contábil: árvore, resumo e listas mantêm rolagem local
 * no Tablet sem antecipar a carga sob demanda da instância do modal. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-accounting-selection-modal,
	body.ug-theme-v2.app-theme-ruby .app-accounting-selection-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounting-selection-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-accounting-selection-modal .app-form-modal-content {
		box-sizing: border-box;
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounting-selection-modal .app-form-modal-scroll,
	body.ug-theme-v2.app-theme-ruby .app-accounting-selection-modal .app-form-modal-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-accounting-selection-modal .app-form-modal-summary,
	body.ug-theme-v2.app-theme-ruby .app-accounting-selection-modal .app-form-modal-summary,
	body.ug-theme-v2.app-theme-ugestor .app-accounting-selection-modal .app-form-modal-fields,
	body.ug-theme-v2.app-theme-ruby .app-accounting-selection-modal .app-form-modal-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounting-selection-modal .app-form-modal-scroll,
	body.ug-theme-v2.app-theme-ruby .app-accounting-selection-modal .app-form-modal-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-accounting-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-accounting-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-accounting-selection-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-accounting-selection-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Rateio financeiro contábil: percentual e grade preservam leitura e rolagem
 * local no Tablet sem alterar totais, árvore ou callbacks. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-financial-allocation-modal .app-financial-allocation-entry,
	body.ug-theme-v2.app-theme-ruby .app-financial-allocation-modal .app-financial-allocation-entry {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-allocation-modal .app-financial-allocation-list,
	body.ug-theme-v2.app-theme-ruby .app-financial-allocation-modal .app-financial-allocation-list {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-allocation-modal .app-compact-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-financial-allocation-modal .app-compact-modal-grid {
		min-width: 640px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-allocation-modal .app-inline-primary-action,
	body.ug-theme-v2.app-theme-ruby .app-financial-allocation-modal .app-inline-primary-action {
		min-height: 44px !important;
	}
}

/* Seleção de entidade compradora: filtro, grade e ação preservam largura útil
 * e rolagem local no Tablet, sem alterar seleção ou callbacks Ajax. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-buyer-entity-selection-modal,
	body.ug-theme-v2.app-theme-ruby .app-buyer-entity-selection-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-buyer-entity-selection-modal .app-form-modal-fields,
	body.ug-theme-v2.app-theme-ruby .app-buyer-entity-selection-modal .app-form-modal-fields,
	body.ug-theme-v2.app-theme-ugestor .app-buyer-entity-selection-modal .app-form-modal-scroll,
	body.ug-theme-v2.app-theme-ruby .app-buyer-entity-selection-modal .app-form-modal-scroll {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-buyer-entity-selection-modal .app-form-modal-scroll,
	body.ug-theme-v2.app-theme-ruby .app-buyer-entity-selection-modal .app-form-modal-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-buyer-entity-selection-modal .app-compact-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-buyer-entity-selection-modal .app-compact-modal-grid {
		min-width: 560px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-buyer-entity-selection-modal input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-buyer-entity-selection-modal input[type="text"] {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-buyer-entity-selection-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-buyer-entity-selection-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Seleção de formas de pagamento: lista, seleção total e ações preservam
 * leitura, toque e rolagem local no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-payment-method-selection-modal,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-selection-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-selection-modal .app-payment-method-selection-content,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-selection-modal .app-payment-method-selection-content,
	body.ug-theme-v2.app-theme-ugestor .app-payment-method-selection-modal .app-selection-modal-form,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-selection-modal .app-selection-modal-form {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		min-height: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-selection-modal .app-payment-method-selection-content,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-selection-modal .app-payment-method-selection-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-selection-modal .app-payment-method-selection-grid,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-selection-modal .app-payment-method-selection-grid {
		box-sizing: border-box;
		flex: 1 1 auto;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-selection-modal .app-payment-method-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-selection-modal .app-payment-method-selection-table {
		min-width: 560px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-payment-method-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-payment-method-selection-modal .app-selection-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-payment-method-selection-modal .app-selection-modal-actions input {
		min-height: 44px !important;
	}
}

/* Seleção de formas de recebimento: lista, seleção total e ações preservam
 * leitura, toque e rolagem local no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-receipt-method-selection-modal,
	body.ug-theme-v2.app-theme-ruby .app-receipt-method-selection-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-method-selection-modal .app-receipt-method-selection-content,
	body.ug-theme-v2.app-theme-ruby .app-receipt-method-selection-modal .app-receipt-method-selection-content,
	body.ug-theme-v2.app-theme-ugestor .app-receipt-method-selection-modal .app-selection-modal-form,
	body.ug-theme-v2.app-theme-ruby .app-receipt-method-selection-modal .app-selection-modal-form {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		min-height: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-method-selection-modal .app-receipt-method-selection-content,
	body.ug-theme-v2.app-theme-ruby .app-receipt-method-selection-modal .app-receipt-method-selection-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-method-selection-modal .app-receipt-method-selection-grid,
	body.ug-theme-v2.app-theme-ruby .app-receipt-method-selection-modal .app-receipt-method-selection-grid {
		box-sizing: border-box;
		flex: 1 1 auto;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-method-selection-modal .app-receipt-method-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-receipt-method-selection-modal .app-receipt-method-selection-table {
		min-width: 560px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-receipt-method-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-receipt-method-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-receipt-method-selection-modal .app-selection-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-receipt-method-selection-modal .app-selection-modal-actions input {
		min-height: 44px !important;
	}
}

/* Seleção de estabelecimentos: cabeçalho e ações permanecem acessíveis e a
 * lista rola somente no próprio painel do modal no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-establishment-selection-modal,
	body.ug-theme-v2.app-theme-ruby .app-establishment-selection-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-establishment-selection-modal .app-establishment-selection-content,
	body.ug-theme-v2.app-theme-ruby .app-establishment-selection-modal .app-establishment-selection-content,
	body.ug-theme-v2.app-theme-ugestor .app-establishment-selection-modal .app-selection-modal-form,
	body.ug-theme-v2.app-theme-ruby .app-establishment-selection-modal .app-selection-modal-form {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		min-height: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-establishment-selection-modal .app-establishment-selection-content,
	body.ug-theme-v2.app-theme-ruby .app-establishment-selection-modal .app-establishment-selection-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
	}

	body.ug-theme-v2.app-theme-ugestor .app-establishment-selection-modal .app-establishment-selection-list,
	body.ug-theme-v2.app-theme-ruby .app-establishment-selection-modal .app-establishment-selection-list {
		box-sizing: border-box;
		flex: 1 1 auto;
		min-width: 0;
		max-width: 100%;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-establishment-selection-modal .app-establishment-selection-all,
	body.ug-theme-v2.app-theme-ruby .app-establishment-selection-modal .app-establishment-selection-all,
	body.ug-theme-v2.app-theme-ugestor .app-establishment-selection-modal .app-establishment-selection-checkbox,
	body.ug-theme-v2.app-theme-ruby .app-establishment-selection-modal .app-establishment-selection-checkbox,
	body.ug-theme-v2.app-theme-ugestor .app-establishment-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-establishment-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-establishment-selection-modal .app-selection-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-establishment-selection-modal .app-selection-modal-actions input {
		min-width: 44px;
		min-height: 44px !important;
	}
}

/* Seleção de grupos de produtos: lista, seleção total e ações preservam
 * leitura, toque e rolagem local no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-product-group-selection-modal,
	body.ug-theme-v2.app-theme-ruby .app-product-group-selection-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-group-selection-modal .app-product-group-selection-content,
	body.ug-theme-v2.app-theme-ruby .app-product-group-selection-modal .app-product-group-selection-content,
	body.ug-theme-v2.app-theme-ugestor .app-product-group-selection-modal .app-selection-modal-form,
	body.ug-theme-v2.app-theme-ruby .app-product-group-selection-modal .app-selection-modal-form {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		min-height: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-group-selection-modal .app-product-group-selection-content,
	body.ug-theme-v2.app-theme-ruby .app-product-group-selection-modal .app-product-group-selection-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-group-selection-modal .app-product-group-selection-grid,
	body.ug-theme-v2.app-theme-ruby .app-product-group-selection-modal .app-product-group-selection-grid {
		box-sizing: border-box;
		flex: 1 1 auto;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-group-selection-modal .app-product-group-selection-table,
	body.ug-theme-v2.app-theme-ruby .app-product-group-selection-modal .app-product-group-selection-table {
		min-width: 560px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-product-group-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-product-group-selection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-product-group-selection-modal .app-selection-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-product-group-selection-modal .app-selection-modal-actions input {
		min-height: 44px !important;
	}
}

/* Validação de alçada: credenciais e ações preservam leitura, foco e toque no
 * Tablet, sem alterar a autorização nem o fluxo Ajax em duas etapas. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-clearance-validation-modal,
	body.ug-theme-v2.app-theme-ruby .app-clearance-validation-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-clearance-validation-modal .app-clearance-validation-content,
	body.ug-theme-v2.app-theme-ruby .app-clearance-validation-modal .app-clearance-validation-content {
		box-sizing: border-box;
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-clearance-validation-modal .app-clearance-validation-fields,
	body.ug-theme-v2.app-theme-ruby .app-clearance-validation-modal .app-clearance-validation-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-clearance-validation-modal .app-clearance-validation-fields input,
	body.ug-theme-v2.app-theme-ruby .app-clearance-validation-modal .app-clearance-validation-fields input {
		box-sizing: border-box;
		min-height: 44px;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-clearance-validation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-clearance-validation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-clearance-validation-modal .app-clearance-validation-actions input,
	body.ug-theme-v2.app-theme-ruby .app-clearance-validation-modal .app-clearance-validation-actions input {
		min-height: 44px !important;
	}
}

/* Callback de autenticação integrada: o estado de processamento preserva
 * identidade White Label e área útil no Tablet, sem dados no navegador. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-ecosystem-auth-callback,
	body.ug-theme-v2.app-theme-ruby .app-ecosystem-auth-callback {
		box-sizing: border-box;
		min-height: calc(100vh - 176px);
		min-height: calc(100dvh - 176px);
		padding: 32px 24px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-ecosystem-auth-callback .app-ecosystem-auth-callback-card,
	body.ug-theme-v2.app-theme-ruby .app-ecosystem-auth-callback .app-ecosystem-auth-callback-card {
		box-sizing: border-box;
		width: 100%;
		max-width: 560px;
		padding: 32px;
	}
}

/* De/Para de itens de bem: relação mestre-detalhe preserva rolagem local e
 * ações acessíveis no Tablet, sem alterar paginação ou consultas carregadas. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-query,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-query,
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-results,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-table,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-table {
		min-width: 1180px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-origin-table,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-origin-table {
		min-width: 600px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-results .app-query-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-results .app-query-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}
}

/* Manutenção de De/Para de itens de bem: campos, autocomplete e itens já
 * selecionados preservam largura útil e toque no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-maintenance,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-maintenance,
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-maintenance .app-asset-item-mapping-fields,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-maintenance .app-asset-item-mapping-fields,
	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-maintenance .app-asset-item-mapping-selected-results,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-maintenance .app-asset-item-mapping-selected-results {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-maintenance .app-asset-item-mapping-selected-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-maintenance .app-asset-item-mapping-selected-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-maintenance .app-asset-item-mapping-selected-table,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-maintenance .app-asset-item-mapping-selected-table {
		min-width: 680px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-asset-item-mapping-maintenance .app-query-row-actions a,
	body.ug-theme-v2.app-theme-ruby .app-asset-item-mapping-maintenance .app-query-row-actions a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-purchase-payment-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-purchase-payment-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-purchase-payment-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-purchase-payment-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-form-modal-inline-fields,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-form-modal-inline-fields {
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-payment-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-purchase-payment-modal .app-form-modal-actions input {
		min-width: 44px;
		min-height: 44px !important;
	}
}

/* Forma de Recebimento: o fluxo financeiro preserva leitura, rolagem e ações
 * alcançáveis no Smartphone. */
body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-revenue-receipt-modal-content,
body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-revenue-receipt-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-revenue-receipt-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-revenue-receipt-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-revenue-receipt-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-revenue-receipt-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-revenue-receipt-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-revenue-receipt-modal .app-form-modal-actions input {
		min-width: 44px;
		min-height: 44px !important;
	}
}

/* Agrupar Cotações: abas e duas grades de seleção ficam navegáveis por toque
 * no Tablet, sem duplicar dados ou alterar os comandos Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-quote-grouping-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quote-grouping-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-quote-grouping-grid,
body.ug-theme-v2.app-theme-ruby .app-quote-grouping-grid {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-quote-grouping-grid,
body.ug-theme-v2.app-theme-ruby .app-quote-grouping-grid {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-quote-grouping-grid .rich-table,
body.ug-theme-v2.app-theme-ruby .app-quote-grouping-grid .rich-table {
	min-width: 640px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quote-grouping-modal,
	body.ug-theme-v2.app-theme-ruby .app-quote-grouping-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-grouping-modal .app-quote-grouping-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quote-grouping-modal .app-quote-grouping-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-grouping-modal .app-selection-modal-check-column input[type="checkbox"],
	body.ug-theme-v2.app-theme-ruby .app-quote-grouping-modal .app-selection-modal-check-column input[type="checkbox"] {
		box-sizing: content-box;
		width: 20px;
		height: 20px;
		padding: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-grouping-modal .app-selection-modal-pagination a,
	body.ug-theme-v2.app-theme-ruby .app-quote-grouping-modal .app-selection-modal-pagination a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}
}

/* Anular Item da Cotação: texto e ações mantêm leitura e toque confortáveis
 * no Tablet, preservando validação e confirmação existentes. */
body.ug-theme-v2.app-theme-ugestor .app-quote-annulment-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quote-annulment-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-quote-annulment-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-quote-annulment-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-quote-annulment-modal .app-control-textarea,
body.ug-theme-v2.app-theme-ruby .app-quote-annulment-modal .app-control-textarea {
	box-sizing: border-box;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quote-annulment-modal,
	body.ug-theme-v2.app-theme-ruby .app-quote-annulment-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-annulment-modal .app-quote-annulment-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quote-annulment-modal .app-quote-annulment-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-annulment-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quote-annulment-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quote-annulment-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-quote-annulment-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Enviar E-mail ao Fornecedor: observação e ações permanecem acessíveis no
 * Tablet, preservando o envio e seu ciclo Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-quote-supplier-email-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quote-supplier-email-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-quote-supplier-email-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-quote-supplier-email-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-quote-supplier-email-modal .app-control-textarea,
body.ug-theme-v2.app-theme-ruby .app-quote-supplier-email-modal .app-control-textarea {
	box-sizing: border-box;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quote-supplier-email-modal,
	body.ug-theme-v2.app-theme-ruby .app-quote-supplier-email-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-supplier-email-modal .app-quote-supplier-email-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quote-supplier-email-modal .app-quote-supplier-email-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-supplier-email-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quote-supplier-email-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quote-supplier-email-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-quote-supplier-email-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Replicar Dados do Pedido: confirmação curta permanece integralmente visível
 * e acionável no Tablet, sem interferir no ciclo Ajax existente. */
body.ug-theme-v2.app-theme-ugestor .app-quote-order-replication-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quote-order-replication-modal-content {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quote-order-replication-modal,
	body.ug-theme-v2.app-theme-ruby .app-quote-order-replication-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-order-replication-modal .app-quote-order-replication-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quote-order-replication-modal .app-quote-order-replication-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-order-replication-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quote-order-replication-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quote-order-replication-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-quote-order-replication-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Estornar Cotação: resumo, observação e ações permanecem acessíveis no
 * Tablet, preservando a reversão e seu ciclo Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-quote-reversal-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quote-reversal-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-quote-reversal-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-quote-reversal-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-quote-reversal-modal .app-control-textarea,
body.ug-theme-v2.app-theme-ruby .app-quote-reversal-modal .app-control-textarea {
	box-sizing: border-box;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quote-reversal-modal,
	body.ug-theme-v2.app-theme-ruby .app-quote-reversal-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-reversal-modal .app-quote-reversal-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quote-reversal-modal .app-quote-reversal-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-reversal-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quote-reversal-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quote-reversal-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-quote-reversal-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Excluir Cotação: identificação, confirmação e ações permanecem legíveis e
 * acessíveis no Tablet, sem alterar permissão ou exclusão Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-quote-deletion-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quote-deletion-modal-content {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quote-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-quote-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-deletion-modal .app-quote-deletion-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quote-deletion-modal .app-quote-deletion-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-deletion-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quote-deletion-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quote-deletion-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-quote-deletion-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Centro de custo da Cotação: árvore e grade interna rolam no próprio modal
 * no Tablet, preservando percentual, total e operações Ajax existentes. */
body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal-fields,
body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal-grid {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal-tree,
body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal-tree {
	max-height: 280px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal-grid {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal-grid .rich-table,
body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal-grid .rich-table {
	min-width: 560px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal,
	body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal .app-quotation-cost-center-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal .app-quotation-cost-center-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal .app-modal-row-action input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal .app-modal-row-action input[type="image"] {
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quotation-cost-center-modal .app-modal-row-action input[type="image"],
body.ug-theme-v2.app-theme-ruby .app-quotation-cost-center-modal .app-modal-row-action input[type="image"] {
		box-sizing: content-box;
		width: 20px;
		height: 20px;
		padding: 12px;
	}
}

/* Reprovar Cotação: resumo, observação e ações permanecem acessíveis no
 * Tablet, preservando a reprovação e o ciclo Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal .app-control-textarea,
body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal .app-control-textarea {
	box-sizing: border-box;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal,
	body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal .app-quote-rejection-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal .app-quote-rejection-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quote-rejection-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-quote-rejection-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Últimos Produtos Comprados: grade de consulta e fechamento mantêm leitura
 * e toque no Tablet, sem alterar a consulta histórica existente. */
body.ug-theme-v2.app-theme-ugestor .app-quote-last-purchase-modal-content,
body.ug-theme-v2.app-theme-ruby .app-quote-last-purchase-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-quote-last-purchase-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-quote-last-purchase-modal-grid {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-quote-last-purchase-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-quote-last-purchase-modal-grid {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-quote-last-purchase-modal-table,
body.ug-theme-v2.app-theme-ruby .app-quote-last-purchase-modal-table {
	min-width: 560px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-quote-last-purchase-modal,
	body.ug-theme-v2.app-theme-ruby .app-quote-last-purchase-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-last-purchase-modal .app-quote-last-purchase-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-quote-last-purchase-modal .app-quote-last-purchase-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-quote-last-purchase-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-quote-last-purchase-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-quote-last-purchase-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-quote-last-purchase-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ugestor .app-quote-last-purchase-modal .app-quote-last-purchase-modal-pagination a,
body.ug-theme-v2.app-theme-ruby .app-quote-last-purchase-modal .app-quote-last-purchase-modal-pagination a {
		min-height: 44px !important;
	}
}

/* Cancelar Manifesto: identificação, motivo e ações permanecem acessíveis no
 * Tablet, preservando o cancelamento fiscal e o ciclo Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-cancel-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-cancel-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-cancel-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-cancel-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-cancel-modal .app-control-textarea,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-cancel-modal .app-control-textarea {
	box-sizing: border-box;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-cancel-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-cancel-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-cancel-modal .app-invoice-order-manifest-cancel-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-cancel-modal .app-invoice-order-manifest-cancel-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-cancel-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-cancel-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Cancelar Faturamento: confirmação e ações permanecem acessíveis no Tablet,
 * preservando o cancelamento e o ciclo Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-cancel-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-cancel-modal-content {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-cancel-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-cancel-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-cancel-modal .app-invoice-order-cancel-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-cancel-modal .app-invoice-order-cancel-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-cancel-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-cancel-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Cancelar Faturamento de Serviço: confirmação e ações ficam acessíveis no
 * Tablet, preservando o cancelamento e seu ciclo Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-service-cancel-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-service-cancel-modal-content {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-service-cancel-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-service-cancel-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-service-cancel-modal .app-invoice-order-service-cancel-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-service-cancel-modal .app-invoice-order-service-cancel-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-service-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-service-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-service-cancel-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-service-cancel-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Carta de Correção NF-e: resumo, instruções, texto e ações preservam leitura
 * e toque no Tablet, sem alterar a emissão fiscal ou o ciclo Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-letter-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-letter-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-letter-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-letter-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-letter-modal .app-control-textarea,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-letter-modal .app-control-textarea {
	box-sizing: border-box;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-letter-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-letter-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-letter-modal .app-invoice-order-correction-letter-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-letter-modal .app-invoice-order-correction-letter-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-letter-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-letter-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-letter-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-letter-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Clonar Ordem: confirmação e ações mantêm leitura e toque no Tablet, sem
 * alterar a clonagem ou a navegação existente. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-clone-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-clone-modal-content {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-clone-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-clone-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-clone-modal .app-invoice-order-clone-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-clone-modal .app-invoice-order-clone-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-clone-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-clone-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-clone-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-clone-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Consultar e Faturar Ordem: confirmação, alertas e ações permanecem
 * acessíveis no Tablet, sem alterar a validação financeira ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-consult-bill-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-consult-bill-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-consult-bill-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-consult-bill-modal-warnings {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-consult-bill-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-consult-bill-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-consult-bill-modal .app-invoice-order-consult-bill-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-consult-bill-modal .app-invoice-order-consult-bill-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-consult-bill-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-consult-bill-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-consult-bill-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-consult-bill-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Configuração de Boleto: painel longo, campos, radios e ações respeitam o
 * viewport Tablet, preservando os bindings e ciclos Ajax financeiros. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-boleto-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-boleto-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-boleto-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-boleto-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-invoice-order-boleto-modal .app-form-modal-scroll,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-boleto-modal .app-form-modal-scroll {
	box-sizing: border-box;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-boleto-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-boleto-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-boleto-modal .app-invoice-order-boleto-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-boleto-modal .app-invoice-order-boleto-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-boleto-modal input[type="radio"],
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-boleto-modal input[type="radio"] {
		box-sizing: content-box;
		width: 20px;
		height: 20px;
		padding: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-boleto-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-boleto-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-boleto-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-boleto-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Títulos da Ordem: grade, calendário e ações ficam contidos no Tablet sem
 * alterar parcelas, boletos, permissões ou ciclos Ajax existentes. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-titles-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-titles-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-titles-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-titles-modal-grid {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-invoice-order-titles-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-titles-modal-grid {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-invoice-order-titles-modal-grid .rich-table,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-titles-modal-grid .rich-table {
	min-width: 720px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-titles-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-titles-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-titles-modal .app-invoice-order-titles-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-titles-modal .app-invoice-order-titles-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-titles-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-titles-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-titles-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-titles-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-titles-modal .app-modal-row-action,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-titles-modal .app-modal-row-action {
		box-sizing: content-box;
		width: 20px;
		height: 20px;
		padding: 12px;
	}
}

/* Documento Gerencial: confirmação, alertas e ações mantêm leitura e toque
 * no Tablet, preservando emissão, permissão e Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-management-document-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-management-document-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-management-document-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-management-document-modal-warnings {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-management-document-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-management-document-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-management-document-modal .app-invoice-order-management-document-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-management-document-modal .app-invoice-order-management-document-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-management-document-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-management-document-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-management-document-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-management-document-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Emitir Manifesto: confirmação, alertas e ações preservam leitura e toque no
 * Tablet, sem alterar emissão fiscal, permissões ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-issue-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-issue-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-issue-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-issue-modal-warnings {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-issue-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-issue-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-issue-modal .app-invoice-order-manifest-issue-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-issue-modal .app-invoice-order-manifest-issue-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-issue-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-issue-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-manifest-issue-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-manifest-issue-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* NF-e de Devolução: campos, contas e grade permanecem no viewport Tablet,
 * preservando cálculos, emissão fiscal/gerencial e Ajax existentes. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-return-invoice-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-return-invoice-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-return-invoice-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-return-invoice-modal-fields,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-return-invoice-modal-grid-scroll,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-return-invoice-modal-grid-scroll {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-invoice-order-return-invoice-modal-grid-scroll,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-return-invoice-modal-grid-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-invoice-order-return-invoice-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-return-invoice-modal-grid {
	min-width: 640px;
}

body.ug-theme-v2.app-theme-ugestor .app-invoice-order-return-invoice-modal .app-control-textarea,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-return-invoice-modal .app-control-textarea {
	box-sizing: border-box;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-return-invoice-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-return-invoice-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-return-invoice-modal .app-invoice-order-return-invoice-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-return-invoice-modal .app-invoice-order-return-invoice-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-return-invoice-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-return-invoice-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-return-invoice-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-return-invoice-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Entrada Automática: mensagem de confirmação e escolhas permanecem íntegras
 * no Tablet, sem alterar transições, gravação ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-auto-entry-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-auto-entry-modal-content {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-auto-entry-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-auto-entry-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-auto-entry-modal .app-invoice-order-auto-entry-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-auto-entry-modal .app-invoice-order-auto-entry-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-auto-entry-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-auto-entry-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-auto-entry-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-auto-entry-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Faturar Ordem: confirmação, alertas e ações preservam leitura e toque no
 * Tablet, sem alterar faturamento, permissões ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-billing-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-billing-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-billing-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-billing-modal-warnings {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-billing-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-billing-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-billing-modal .app-invoice-order-billing-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-billing-modal .app-invoice-order-billing-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-billing-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-billing-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-billing-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-billing-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Inativar Ordem: identificação e confirmação permanecem legíveis no Tablet,
 * sem alterar permissões, inativação ou o ciclo Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-deactivation-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-deactivation-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-deactivation-modal-message,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-deactivation-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-deactivation-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-deactivation-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-deactivation-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-deactivation-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-deactivation-modal .app-invoice-order-deactivation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-deactivation-modal .app-invoice-order-deactivation-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-deactivation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-deactivation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-deactivation-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-deactivation-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Forma de Recebimento: campos, parcelas e calendário permanecem acessíveis
 * no Tablet, sem alterar valores, regras financeiras ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal-form,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal .app-form-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal .app-form-modal-fields,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal fieldset,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal fieldset {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal .app-invoice-order-receipt-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal .app-invoice-order-receipt-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-receipt-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-receipt-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* Inutilizar Ordem: identificação e confirmação preservam leitura e toque no
 * Tablet, sem alterar a inutilização fiscal, permissões ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-invalidation-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-invalidation-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-invalidation-modal-message,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-invalidation-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-invalidation-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-invalidation-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-invalidation-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-invalidation-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-invalidation-modal .app-invoice-order-invalidation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-invalidation-modal .app-invoice-order-invalidation-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-invalidation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-invalidation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-invalidation-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-invalidation-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Carta de Correção autorizada: mensagem e ações de impressão permanecem
 * legíveis no Tablet, sem alterar emissão, PDF ou fechamento dos modais. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-authorized-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-authorized-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-authorized-modal-message,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-authorized-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-authorized-modal-actions,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-authorized-modal-actions {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-authorized-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-authorized-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-authorized-modal .app-invoice-order-correction-authorized-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-authorized-modal .app-invoice-order-correction-authorized-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-authorized-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-authorized-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-authorized-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-authorized-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Carta de Correção não autorizada: retorno técnico e fechamento permanecem
 * legíveis no Tablet, sem alterar mensagem fiscal, XML ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-rejected-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-rejected-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-rejected-modal-scroll,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-rejected-modal-scroll,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-rejected-modal .app-control-textarea,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-rejected-modal .app-control-textarea {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-rejected-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-rejected-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-rejected-modal .app-invoice-order-correction-rejected-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-rejected-modal .app-invoice-order-correction-rejected-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-rejected-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-rejected-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-correction-rejected-modal .app-form-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-correction-rejected-modal .app-form-modal-actions input {
		min-height: 44px !important;
	}
}

/* NF-e não autorizada: mensagem, detalhe técnico e ações permanecem legíveis
 * no Tablet, sem alterar o retorno fiscal, faturamento ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-nfe-rejected-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-nfe-rejected-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-nfe-rejected-modal-details,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-nfe-rejected-modal-details,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-nfe-rejected-modal .app-control-textarea,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-nfe-rejected-modal .app-control-textarea {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-nfe-rejected-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-nfe-rejected-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-nfe-rejected-modal .app-invoice-order-nfe-rejected-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-nfe-rejected-modal .app-invoice-order-nfe-rejected-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-nfe-rejected-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-nfe-rejected-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-nfe-rejected-modal .app-message-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-nfe-rejected-modal .app-message-modal-actions input {
		min-height: 44px !important;
	}
}

/* Somente Faturar Ordem: confirmação, avisos financeiros e ações preservam
 * leitura no Tablet, sem alterar emissão fiscal, permissões ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-fiscal-only-modal-content,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-fiscal-only-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-fiscal-only-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-fiscal-only-modal-warnings,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-fiscal-only-modal-message,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-fiscal-only-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-invoice-order-fiscal-only-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-fiscal-only-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-fiscal-only-modal,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-fiscal-only-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-fiscal-only-modal .app-invoice-order-fiscal-only-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-fiscal-only-modal .app-invoice-order-fiscal-only-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-fiscal-only-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-invoice-order-fiscal-only-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-invoice-order-fiscal-only-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-invoice-order-fiscal-only-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Aprovar Pedido: confirmação, avisos financeiros e ações preservam leitura
 * no Tablet, sem alterar aprovação, transições ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-approval-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-approval-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-approval-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-sales-order-approval-modal-warnings,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-approval-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-approval-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-approval-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-approval-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-approval-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-approval-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-approval-modal .app-sales-order-approval-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-approval-modal .app-sales-order-approval-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-approval-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-approval-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-approval-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-approval-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Cancelar Manifesto do Pedido: campos, motivo e ações preservam leitura no
 * Tablet, sem alterar cancelamento fiscal, contadores ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-cancel-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-cancel-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-cancel-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-cancel-modal-fields,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-cancel-modal .app-control-textarea,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-cancel-modal .app-control-textarea {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-cancel-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-cancel-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-cancel-modal .app-sales-order-manifest-cancel-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-cancel-modal .app-sales-order-manifest-cancel-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-cancel-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-cancel-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Cancelar Faturamento do Pedido: identificação e ações preservam leitura no
 * Tablet, sem alterar cancelamento, contadores ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-cancel-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-cancel-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-cancel-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-cancel-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-cancel-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-cancel-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-cancel-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-cancel-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-cancel-modal .app-sales-order-billing-cancel-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-cancel-modal .app-sales-order-billing-cancel-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-cancel-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-cancel-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Carta de Correção do Pedido: resumo, texto e ações preservam leitura no
 * Tablet, sem alterar emissão fiscal, contadores ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-correction-letter-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-correction-letter-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-correction-letter-modal-scroll,
body.ug-theme-v2.app-theme-ruby .app-sales-order-correction-letter-modal-scroll,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-correction-letter-modal-summary,
body.ug-theme-v2.app-theme-ruby .app-sales-order-correction-letter-modal-summary,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-correction-letter-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-sales-order-correction-letter-modal-fields,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-correction-letter-modal .app-control-textarea,
body.ug-theme-v2.app-theme-ruby .app-sales-order-correction-letter-modal .app-control-textarea {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-correction-letter-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-correction-letter-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-correction-letter-modal .app-sales-order-correction-letter-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-correction-letter-modal .app-sales-order-correction-letter-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-correction-letter-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-correction-letter-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-correction-letter-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-correction-letter-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Clonar Pedido: identificação e confirmação preservam leitura no Tablet,
 * sem alterar clonagem, navegação ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-clone-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-clone-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-clone-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-clone-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-clone-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-clone-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-clone-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-clone-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-clone-modal .app-sales-order-clone-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-clone-modal .app-sales-order-clone-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-clone-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-clone-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-clone-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-sales-order-clone-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Configurar Relatório do Pedido: opções e ações preservam leitura no Tablet,
 * sem alterar geração de PDF, regras ou nova aba. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-report-settings-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-report-settings-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-report-settings-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-sales-order-report-settings-modal-fields,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-report-settings-modal .app-control-options,
body.ug-theme-v2.app-theme-ruby .app-sales-order-report-settings-modal .app-control-options {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-report-settings-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-report-settings-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-report-settings-modal .app-sales-order-report-settings-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-report-settings-modal .app-sales-order-report-settings-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-report-settings-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-report-settings-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-report-settings-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-report-settings-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Configurar Relatório da Ordem de Produção: opções e ações preservam leitura
 * no Tablet, sem alterar geração de PDF, permissões ou nova aba. */
/* O RichFaces aplica overflow:auto no CDiv externo. Como a borda/sombra do
 * painel excede essa caixa por poucos pixels, ele exibia barras mesmo com o
 * relatório inteiro visível. A regra atua somente nesse modal e mantém a
 * rolagem no conteúdo em viewport reduzida. */
body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
	box-sizing: border-box !important;
	width: 380px !important;
	max-width: calc(100vw - 48px) !important;
	overflow: hidden !important;
}

body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell .rich-mpnl-shadow,
body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell .rich-mpnl-shadow,
body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell .rich-mpnl-content,
body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell .rich-mpnl-content {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal-content,
body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal-fields,
body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal .app-control-options,
body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal .app-control-options {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal,
	body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal .app-production-report-settings-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal .app-production-report-settings-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal .app-modal-close-control,
	body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal .app-modal-close-control,
	body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal .app-form-modal-action-link,
	body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal .app-form-modal-action-link {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-report-settings-modal .app-production-report-settings-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-production-report-settings-modal .app-production-report-settings-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Exclusão de Boleto/Remessa: alerta e confirmação preservam leitura no
 * Tablet, sem alterar remoção financeira ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-remittance-title-deletion-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-remittance-title-deletion-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-remittance-title-deletion-modal-warning,
body.ug-theme-v2.app-theme-ruby .app-sales-order-remittance-title-deletion-modal-warning,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-remittance-title-deletion-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-remittance-title-deletion-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-remittance-title-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-remittance-title-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-remittance-title-deletion-modal .app-sales-order-remittance-title-deletion-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-remittance-title-deletion-modal .app-sales-order-remittance-title-deletion-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-remittance-title-deletion-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-remittance-title-deletion-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-remittance-title-deletion-modal .app-confirmation-modal-actions input,
body.ug-theme-v2.app-theme-ruby .app-sales-order-remittance-title-deletion-modal .app-confirmation-modal-actions input {
		min-height: 44px !important;
	}
}

/* Consultar e Faturar Pedido: confirmação, avisos e ações preservam leitura
 * no Tablet, sem alterar faturamento, contadores ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-consult-bill-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-consult-bill-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-consult-bill-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-sales-order-consult-bill-modal-warnings,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-consult-bill-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-consult-bill-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-consult-bill-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-consult-bill-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-consult-bill-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-consult-bill-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-consult-bill-modal .app-sales-order-consult-bill-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-consult-bill-modal .app-sales-order-consult-bill-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-consult-bill-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-consult-bill-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-consult-bill-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-consult-bill-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Situação Financeira do Cliente: resumo e fechamento preservam leitura no
 * Tablet, sem alterar dados financeiros ou carregamento existente. */
body.ug-theme-v2.app-theme-ugestor .app-customer-financial-status-modal-content,
body.ug-theme-v2.app-theme-ruby .app-customer-financial-status-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-customer-financial-status-modal-summary,
body.ug-theme-v2.app-theme-ruby .app-customer-financial-status-modal-summary,
body.ug-theme-v2.app-theme-ugestor .app-customer-financial-status-modal .app-form-modal-summary-value,
body.ug-theme-v2.app-theme-ruby .app-customer-financial-status-modal .app-form-modal-summary-value {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-customer-financial-status-modal,
	body.ug-theme-v2.app-theme-ruby .app-customer-financial-status-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-customer-financial-status-modal .app-customer-financial-status-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-customer-financial-status-modal .app-customer-financial-status-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-customer-financial-status-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-customer-financial-status-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-customer-financial-status-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-customer-financial-status-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Desenho/Formato do Pedido: upload e prévia preservam contenção no Tablet,
 * sem alterar arquivo, permissões, remoção ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-drawing-format-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-drawing-format-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-drawing-format-modal-section,
body.ug-theme-v2.app-theme-ruby .app-sales-order-drawing-format-modal-section,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-drawing-format-modal-preview,
body.ug-theme-v2.app-theme-ruby .app-sales-order-drawing-format-modal-preview,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-drawing-format-modal-upload,
body.ug-theme-v2.app-theme-ruby .app-sales-order-drawing-format-modal-upload {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-sales-order-drawing-format-modal .app-drawing-image-preview-file,
body.ug-theme-v2.app-theme-ruby .app-sales-order-drawing-format-modal .app-drawing-image-preview-file,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-drawing-format-modal .app-drawing-image-current-file,
body.ug-theme-v2.app-theme-ruby .app-sales-order-drawing-format-modal .app-drawing-image-current-file {
	box-sizing: border-box;
	max-width: 100%;
	height: auto;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-drawing-format-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-drawing-format-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-drawing-format-modal .app-sales-order-drawing-format-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-drawing-format-modal .app-sales-order-drawing-format-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-drawing-format-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-drawing-format-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-drawing-format-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-drawing-format-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Desenho de Formato da Ordem de Produção: upload e prévia preservam leitura
 * no Tablet, sem alterar arquivo, permissões, remoção ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-production-drawing-format-modal-content,
body.ug-theme-v2.app-theme-ruby .app-production-drawing-format-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-production-drawing-format-modal-section,
body.ug-theme-v2.app-theme-ruby .app-production-drawing-format-modal-section,
body.ug-theme-v2.app-theme-ugestor .app-production-drawing-format-modal-preview,
body.ug-theme-v2.app-theme-ruby .app-production-drawing-format-modal-preview,
body.ug-theme-v2.app-theme-ugestor .app-production-drawing-format-modal-upload,
body.ug-theme-v2.app-theme-ruby .app-production-drawing-format-modal-upload {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-production-drawing-format-modal .app-drawing-image-preview-file,
body.ug-theme-v2.app-theme-ruby .app-production-drawing-format-modal .app-drawing-image-preview-file,
body.ug-theme-v2.app-theme-ugestor .app-production-drawing-format-modal .app-drawing-image-current-file,
body.ug-theme-v2.app-theme-ruby .app-production-drawing-format-modal .app-drawing-image-current-file {
	box-sizing: border-box;
	max-width: 100%;
	height: auto;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-drawing-format-modal,
	body.ug-theme-v2.app-theme-ruby .app-production-drawing-format-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-drawing-format-modal .app-production-drawing-format-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-production-drawing-format-modal .app-production-drawing-format-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-drawing-format-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-production-drawing-format-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-production-drawing-format-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-production-drawing-format-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Itens padrão da Ordem de Produção: grade extensa permanece contida no Tablet,
 * sem alterar quantidades, atualizações ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal-content,
body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal-grid {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal .app-production-standard-items-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal .app-production-standard-items-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal .app-production-standard-items-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal .app-production-standard-items-modal-grid {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal .app-modal-close-control,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal .app-modal-close-control,
	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal .app-modal-row-action,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal .app-modal-row-action {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal .app-production-standard-items-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal .app-production-standard-items-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal .app-production-standard-items-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal .app-production-standard-items-modal-grid {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal .app-compact-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal .app-compact-modal-grid {
		min-width: 860px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal .app-modal-close-control,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal .app-modal-close-control,
	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ugestor .app-production-standard-items-modal .app-modal-row-action,
	body.ug-theme-v2.app-theme-ruby .app-production-standard-items-modal .app-modal-row-action {
		min-height: 44px !important;
	}
}

/* Devolver Pedido: identificação e confirmação preservam leitura no Tablet,
 * sem alterar devolução, contadores ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-return-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-return-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-return-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-return-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-modal .app-sales-order-return-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-return-modal .app-sales-order-return-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-return-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-return-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Ação em Lote do Pedido: mensagem e confirmação preservam leitura no Tablet,
 * sem alterar ações, limpeza ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-action-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-action-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-action-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-action-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-action-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-action-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-action-modal .app-sales-order-batch-action-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-action-modal .app-sales-order-batch-action-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-action-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-action-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-action-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-action-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Enviar Pedido para Pendente: identificação e confirmação preservam leitura
 * no Tablet, sem alterar ação, permissões ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-pending-batch-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-pending-batch-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-pending-batch-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-pending-batch-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-pending-batch-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-pending-batch-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pending-batch-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-pending-batch-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pending-batch-modal .app-sales-order-pending-batch-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-pending-batch-modal .app-sales-order-pending-batch-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pending-batch-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-pending-batch-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pending-batch-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-pending-batch-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Títulos do Pedido: grade, calendário e ações preservam leitura no Tablet,
 * sem alterar parcelas, valores ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-titles-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-titles-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-titles-modal-scroll,
body.ug-theme-v2.app-theme-ruby .app-sales-order-titles-modal-scroll,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-titles-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-sales-order-titles-modal-grid {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-sales-order-titles-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-sales-order-titles-modal-grid {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-sales-order-titles-modal .app-compact-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-sales-order-titles-modal .app-compact-modal-grid {
	min-width: 560px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-titles-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-titles-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-titles-modal .app-sales-order-titles-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-titles-modal .app-sales-order-titles-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-titles-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-titles-modal .app-modal-close-button,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-titles-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-titles-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Duplicatas de recebimento: grade, calendário e ações preservam leitura no
 * Tablet sem alterar parcelas, valores ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-financial-receivable-events-modal-content,
body.ug-theme-v2.app-theme-ruby .app-financial-receivable-events-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-financial-receivable-events-modal-scroll,
body.ug-theme-v2.app-theme-ruby .app-financial-receivable-events-modal-scroll,
body.ug-theme-v2.app-theme-ugestor .app-financial-receivable-events-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-financial-receivable-events-modal-grid {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-receivable-events-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-financial-receivable-events-modal-grid {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-receivable-events-modal .app-compact-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-financial-receivable-events-modal .app-compact-modal-grid {
	min-width: 560px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-financial-receivable-events-modal,
	body.ug-theme-v2.app-theme-ruby .app-financial-receivable-events-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-receivable-events-modal .app-financial-receivable-events-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-financial-receivable-events-modal .app-financial-receivable-events-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-receivable-events-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-financial-receivable-events-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-financial-receivable-events-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-financial-receivable-events-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Adiantamento de evento de pagamento: formulário, grade e contas ficam
 * contidos no Tablet sem alterar cálculos, seleção ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal-content,
body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal-scroll,
body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal-scroll,
body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal-grid {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal-grid {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal .app-financial-payment-advance-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal .app-financial-payment-advance-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal .app-financial-payment-advance-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal .app-financial-payment-advance-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ugestor .app-financial-payment-advance-modal .app-modal-row-action,
	body.ug-theme-v2.app-theme-ruby .app-financial-payment-advance-modal .app-modal-row-action {
		min-width: 44px;
		min-height: 44px !important;
	}
}

/* Documento Gerencial do Pedido: confirmação, avisos e ações preservam leitura
 * no Tablet, sem alterar emissão, permissões, contadores ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-management-document-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-management-document-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-management-document-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-sales-order-management-document-modal-warnings,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-management-document-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-management-document-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-management-document-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-management-document-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-management-document-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-management-document-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-management-document-modal .app-sales-order-management-document-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-management-document-modal .app-sales-order-management-document-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-management-document-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-management-document-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-management-document-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-management-document-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Emitir Manifesto do Pedido: confirmação, avisos e ações preservam leitura
 * no Tablet, sem alterar emissão fiscal, permissões ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-issue-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-issue-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-issue-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-issue-modal-warnings,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-issue-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-issue-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-issue-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-issue-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-issue-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-issue-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-issue-modal .app-sales-order-manifest-issue-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-issue-modal .app-sales-order-manifest-issue-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-issue-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-issue-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-issue-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-issue-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* NF-e de Devolução do Pedido: campos e grade preservam leitura no Tablet,
 * sem alterar dados fiscais, contas, emissão ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-invoice-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-return-invoice-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-invoice-modal-summary,
body.ug-theme-v2.app-theme-ruby .app-sales-order-return-invoice-modal-summary,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-invoice-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-sales-order-return-invoice-modal-fields,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-invoice-modal-grid-scroll,
body.ug-theme-v2.app-theme-ruby .app-sales-order-return-invoice-modal-grid-scroll {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-invoice-modal-grid-scroll,
body.ug-theme-v2.app-theme-ruby .app-sales-order-return-invoice-modal-grid-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-invoice-modal .app-sales-order-return-invoice-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-sales-order-return-invoice-modal .app-sales-order-return-invoice-modal-grid {
	min-width: 640px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-invoice-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-return-invoice-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-invoice-modal .app-sales-order-return-invoice-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-return-invoice-modal .app-sales-order-return-invoice-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-invoice-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-return-invoice-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-return-invoice-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-return-invoice-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Nota Fiscal Modelo 21: confirmação, avisos e ações preservam leitura no
 * Tablet, sem alterar emissão fiscal, permissões ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-model-21-issue-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-model-21-issue-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-model-21-issue-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-sales-order-model-21-issue-modal-warnings,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-model-21-issue-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-model-21-issue-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-model-21-issue-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-model-21-issue-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-model-21-issue-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-model-21-issue-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-model-21-issue-modal .app-sales-order-model-21-issue-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-model-21-issue-modal .app-sales-order-model-21-issue-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-model-21-issue-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-model-21-issue-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-model-21-issue-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-model-21-issue-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Encerrar Manifesto do Pedido: identificação e confirmação preservam leitura
 * no Tablet, sem alterar encerramento fiscal, permissões ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-close-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-close-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-close-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-close-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-close-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-close-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-close-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-close-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-close-modal .app-sales-order-manifest-close-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-close-modal .app-sales-order-manifest-close-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-close-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-close-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-manifest-close-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-manifest-close-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Entrada Automática do Pedido: mensagem e escolhas preservam leitura no
 * Tablet, sem alterar aprovação, permissões ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-auto-entry-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-auto-entry-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-auto-entry-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-auto-entry-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-auto-entry-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-auto-entry-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-auto-entry-modal .app-sales-order-auto-entry-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-auto-entry-modal .app-sales-order-auto-entry-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-auto-entry-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-auto-entry-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-auto-entry-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-auto-entry-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Enviar Boletos em Lote: mensagem e confirmação preservam leitura no Tablet,
 * sem alterar seleção, envio ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-bill-email-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-bill-email-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-bill-email-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-bill-email-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-bill-email-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-bill-email-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-bill-email-modal .app-sales-order-batch-bill-email-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-bill-email-modal .app-sales-order-batch-bill-email-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-bill-email-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-bill-email-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-bill-email-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-bill-email-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Enviar Notas Fiscais em Lote: mensagem e confirmação preservam leitura no
 * Tablet, sem alterar seleção, envio ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-email-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-email-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-email-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-email-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-email-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-email-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-email-modal .app-sales-order-batch-invoice-email-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-email-modal .app-sales-order-batch-invoice-email-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-email-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-email-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-email-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-email-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Enviar NF-e e Boletos em Lote: mensagem e confirmação preservam leitura no
 * Tablet, sem alterar processamento, seleção ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-bill-email-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-bill-email-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-bill-email-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-bill-email-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-bill-email-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-bill-email-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-bill-email-modal .app-sales-order-batch-invoice-bill-email-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-bill-email-modal .app-sales-order-batch-invoice-bill-email-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-bill-email-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-bill-email-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-invoice-bill-email-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-invoice-bill-email-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Faturar Pedido: confirmação, avisos e ações preservam leitura no Tablet,
 * sem alterar faturamento, permissões ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-modal-warnings,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-modal .app-sales-order-billing-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-modal .app-sales-order-billing-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Alterar Data de Faturamento: mensagem, calendário e ações preservam leitura
 * no Tablet, sem alterar validação, persistência ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-date-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-date-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-date-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-date-modal-fields,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-date-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-date-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-date-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-date-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-date-modal .app-sales-order-billing-date-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-date-modal .app-sales-order-billing-date-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-date-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-date-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-billing-date-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-billing-date-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Devolução em Lote do Pedido: mensagem e confirmação preservam leitura no
 * Tablet, sem alterar devolução, limpeza ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-return-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-return-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-return-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-return-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-return-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-return-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-return-modal .app-sales-order-batch-return-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-return-modal .app-sales-order-batch-return-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-return-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-return-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-return-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-return-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Documento Gerencial em Lote do Pedido: mensagem e confirmação preservam
 * leitura no Tablet, sem alterar emissão, limpeza ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-managerial-document-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-managerial-document-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-managerial-document-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-managerial-document-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-managerial-document-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-managerial-document-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-managerial-document-modal .app-sales-order-batch-managerial-document-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-managerial-document-modal .app-sales-order-batch-managerial-document-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-managerial-document-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-managerial-document-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-managerial-document-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-managerial-document-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* MDF-e em Lote do Pedido: mensagem e confirmação preservam leitura no
 * Tablet, sem alterar emissão, limpeza ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-mdfe-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-mdfe-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-mdfe-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-mdfe-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-mdfe-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-mdfe-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-mdfe-modal .app-sales-order-batch-mdfe-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-mdfe-modal .app-sales-order-batch-mdfe-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-mdfe-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-mdfe-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-mdfe-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-mdfe-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* NF-e em Lote do Pedido: mensagem e confirmação preservam leitura no Tablet,
 * sem alterar emissão, limpeza ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-nfe-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-nfe-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-nfe-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-nfe-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-nfe-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-nfe-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-nfe-modal .app-sales-order-batch-nfe-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-nfe-modal .app-sales-order-batch-nfe-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-nfe-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-nfe-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-nfe-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-nfe-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* NF modelo 21 em Lote do Pedido: mensagem e confirmação preservam leitura
 * no Tablet, sem alterar emissão, limpeza ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-model-21-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-model-21-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-model-21-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-model-21-modal-message {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-model-21-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-model-21-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-model-21-modal .app-sales-order-batch-model-21-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-model-21-modal .app-sales-order-batch-model-21-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-model-21-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-model-21-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-batch-model-21-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-batch-model-21-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Inativar Ordem do Pedido: mensagem, identificação e confirmação preservam
 * leitura no Tablet, sem alterar inativação, limpeza ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-deactivation-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-deactivation-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-deactivation-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-deactivation-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-deactivation-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-deactivation-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-deactivation-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-deactivation-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-deactivation-modal .app-sales-order-deactivation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-deactivation-modal .app-sales-order-deactivation-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-deactivation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-deactivation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-deactivation-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-deactivation-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Itens do padrão de produção e venda do Pedido: grade e ações preservam
 * leitura no Tablet, sem alterar cálculos, seleção ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-items-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-items-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-items-modal-form,
body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-items-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-items-results,
body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-items-results {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-items-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-items-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-items-modal .app-sales-order-pattern-items-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-items-modal .app-sales-order-pattern-items-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-items-results,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-items-results {
		overflow-x: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-items-table,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-items-table {
		min-width: 1024px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-services-table,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-services-table {
		min-width: 520px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-items-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-items-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-items-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-items-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-items-modal .app-sales-order-pattern-items-refresh-action,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-items-modal .app-sales-order-pattern-items-refresh-action,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-pattern-items-modal .app-sales-order-pattern-items-delete-action,
body.ug-theme-v2.app-theme-ruby .app-sales-order-pattern-items-modal .app-sales-order-pattern-items-delete-action {
		min-height: 44px !important;
	}
}

/* Forma de recebimento do Pedido: campos e ações preservam leitura no Tablet,
 * sem alterar valores, parcelamento, calendário ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-receipt-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-receipt-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-receipt-modal-form,
body.ug-theme-v2.app-theme-ruby .app-sales-order-receipt-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-receipt-modal-actions,
body.ug-theme-v2.app-theme-ruby .app-sales-order-receipt-modal-actions {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-receipt-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-receipt-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-receipt-modal .app-sales-order-receipt-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-receipt-modal .app-sales-order-receipt-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-receipt-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-receipt-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-receipt-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-receipt-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Inutilizar Ordem do Pedido: mensagem, identificação e confirmação preservam
 * leitura no Tablet, sem alterar inutilização, limpeza ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-invalidation-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-invalidation-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-invalidation-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-invalidation-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-invalidation-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-invalidation-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-invalidation-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-invalidation-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-invalidation-modal .app-sales-order-invalidation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-invalidation-modal .app-sales-order-invalidation-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-invalidation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-invalidation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-invalidation-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-invalidation-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Inutilizar Pedido: mensagem, identificação e confirmação preservam leitura
 * no Tablet, sem alterar inutilização, limpeza ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-request-invalidation-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-request-invalidation-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-request-invalidation-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-request-invalidation-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-request-invalidation-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-request-invalidation-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-request-invalidation-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-request-invalidation-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-request-invalidation-modal .app-sales-order-request-invalidation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-request-invalidation-modal .app-sales-order-request-invalidation-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-request-invalidation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-request-invalidation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-request-invalidation-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-request-invalidation-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Gerar Pedido de Compra: mensagem, alertas e confirmação preservam leitura
 * no Tablet, sem alterar geração, crédito, limpeza ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-purchase-order-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-purchase-order-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-purchase-order-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-purchase-order-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-purchase-order-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-purchase-order-modal-entity,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-purchase-order-modal-warnings,
body.ug-theme-v2.app-theme-ruby .app-sales-order-purchase-order-modal-warnings {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-purchase-order-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-purchase-order-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-purchase-order-modal .app-sales-order-purchase-order-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-purchase-order-modal .app-sales-order-purchase-order-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-purchase-order-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-purchase-order-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-purchase-order-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-purchase-order-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Prévia XML da NF-e do Pedido: código, rolagem e ações preservam leitura no
 * Tablet, sem alterar XML, cópia local ou fechamento. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-nfe-preview-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-nfe-preview-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-nfe-preview-modal-wrapper,
body.ug-theme-v2.app-theme-ruby .app-sales-order-nfe-preview-modal-wrapper,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-nfe-preview-modal-xml,
body.ug-theme-v2.app-theme-ruby .app-sales-order-nfe-preview-modal-xml {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-sales-order-nfe-preview-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-sales-order-nfe-preview-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
	box-sizing: border-box !important;
	width: 1200px !important;
	max-width: calc(100vw - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-nfe-preview-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-nfe-preview-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-nfe-preview-modal .app-sales-order-nfe-preview-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-nfe-preview-modal .app-sales-order-nfe-preview-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-nfe-preview-modal .app-sales-order-nfe-preview-modal-xml,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-nfe-preview-modal .app-sales-order-nfe-preview-modal-xml {
		max-height: calc(100vh - 230px);
		max-height: calc(100dvh - 230px);
		overflow: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-nfe-preview-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-nfe-preview-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-nfe-preview-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-nfe-preview-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-nfe-preview-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-nfe-preview-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
	}
}

/* Lotes do produto do Pedido: seleção, grade e ações preservam leitura no
 * Tablet, sem alterar estoque, totais, autocomplete ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-product-lot-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-product-lot-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-product-lot-modal-selection,
body.ug-theme-v2.app-theme-ruby .app-sales-order-product-lot-modal-selection,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-product-lot-modal-results,
body.ug-theme-v2.app-theme-ruby .app-sales-order-product-lot-modal-results {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-product-lot-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-product-lot-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-product-lot-modal .app-sales-order-product-lot-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-product-lot-modal .app-sales-order-product-lot-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-product-lot-modal-grid-scroll,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-product-lot-modal-grid-scroll {
		overflow-x: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-product-lot-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-product-lot-modal-grid {
		min-width: 820px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-product-lot-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-product-lot-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-product-lot-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-product-lot-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-product-lot-modal .app-sales-order-product-lot-remove-action,
body.ug-theme-v2.app-theme-ruby .app-sales-order-product-lot-modal .app-sales-order-product-lot-remove-action {
		min-height: 44px !important;
	}
}

/* Recusar Pedido: mensagem, identificação e confirmação preservam leitura no
 * Tablet, sem alterar recusa, limpeza ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-sales-order-reject-modal-content,
body.ug-theme-v2.app-theme-ruby .app-sales-order-reject-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-reject-modal-message,
body.ug-theme-v2.app-theme-ruby .app-sales-order-reject-modal-message,
body.ug-theme-v2.app-theme-ugestor .app-sales-order-reject-modal-entity,
body.ug-theme-v2.app-theme-ruby .app-sales-order-reject-modal-entity {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-reject-modal,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-reject-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-reject-modal .app-sales-order-reject-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-reject-modal .app-sales-order-reject-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-sales-order-reject-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-sales-order-reject-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-sales-order-reject-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-sales-order-reject-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Anexos do documento: grade e ações preservam leitura no Tablet, sem alterar
 * abertura, visualização, download ou permissões. */
body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal-content,
body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal-grid {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal .app-document-attachment-viewer-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal .app-document-attachment-viewer-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal-grid {
		overflow-x: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal-table,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal-table {
		min-width: 640px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal .app-modal-row-action,
body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal .app-modal-row-action {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal .app-document-attachment-viewer-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal .app-document-attachment-viewer-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal-grid,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal-grid {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ugestor .app-document-attachment-viewer-modal .app-modal-row-action,
	body.ug-theme-v2.app-theme-ruby .app-document-attachment-viewer-modal .app-modal-row-action {
		min-width: 44px;
		min-height: 44px !important;
	}
}

/* Duplicatas fiscais: a grade permanece no modal e rola horizontalmente sem
 * expandir a página ou alterar cálculo, permissões, datas ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-fiscal-duplicate-installments-modal-content,
body.ug-theme-v2.app-theme-ruby .app-fiscal-duplicate-installments-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-fiscal-duplicate-installments-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-fiscal-duplicate-installments-modal-grid {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .app-fiscal-duplicate-installments-modal-grid,
body.ug-theme-v2.app-theme-ruby .app-fiscal-duplicate-installments-modal-grid {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-fiscal-duplicate-installments-modal-table,
body.ug-theme-v2.app-theme-ruby .app-fiscal-duplicate-installments-modal-table {
	min-width: 640px;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-duplicate-installments-modal,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-duplicate-installments-modal {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-duplicate-installments-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-duplicate-installments-modal .rich-mpnl-panel,
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-duplicate-installments-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-duplicate-installments-modal .rich-mpnl-shadow,
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-duplicate-installments-modal .rich-mpnl-content,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-duplicate-installments-modal .rich-mpnl-content {
		box-sizing: border-box;
		max-width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-duplicate-installments-modal .app-fiscal-duplicate-installments-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-duplicate-installments-modal .app-fiscal-duplicate-installments-modal-content {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-fiscal-duplicate-installments-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-duplicate-installments-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-fiscal-duplicate-installments-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2.app-theme-ruby .app-fiscal-duplicate-installments-modal .app-form-modal-actions .app-button {
		min-width: 44px;
		min-height: 44px !important;
	}
}

/* Aceitar pedido do fornecedor: resumo, observação e ações preservam leitura
 * no Tablet, sem alterar aceite, histórico ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accept-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-accept-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accept-modal-form,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-accept-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accept-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-accept-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accept-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-accept-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accept-modal .app-supplier-order-accept-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-accept-modal .app-supplier-order-accept-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accept-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-accept-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accept-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-accept-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Enviar pedido ao fornecedor: resumo, observação e ações preservam leitura
 * no Tablet, sem alterar aprovação, envio opcional ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-email-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-email-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-email-modal-form,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-email-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-email-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-email-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-email-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-email-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-email-modal .app-supplier-order-email-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-email-modal .app-supplier-order-email-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-email-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-email-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-email-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-email-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Enviar WhatsApp ao fornecedor: resumo, observação e ações preservam leitura
 * no Tablet, sem alterar URL preparada, navegação ou permissões. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-whatsapp-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-whatsapp-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-whatsapp-modal-form,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-whatsapp-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-whatsapp-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-whatsapp-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-whatsapp-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-whatsapp-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-whatsapp-modal .app-supplier-order-whatsapp-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-whatsapp-modal .app-supplier-order-whatsapp-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-whatsapp-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-whatsapp-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-whatsapp-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-whatsapp-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Atestar pedido: resumo, observação e ações preservam leitura no Tablet, sem
 * alterar atesto, abertura para edição ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-attestation-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-attestation-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-attestation-modal-form,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-attestation-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-attestation-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-attestation-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-attestation-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-attestation-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-attestation-modal .app-supplier-order-attestation-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-attestation-modal .app-supplier-order-attestation-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-attestation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-attestation-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-attestation-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-attestation-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Cancelar pedido: resumo, observação e ações preservam leitura no Tablet,
 * sem alterar cancelamento, histórico ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-cancel-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-cancel-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-cancel-modal-form,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-cancel-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-cancel-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-cancel-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-cancel-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-cancel-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-cancel-modal .app-supplier-order-cancel-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-cancel-modal .app-supplier-order-cancel-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-cancel-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-cancel-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-cancel-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Contabilizar pedido: resumo, observação e ações preservam leitura no Tablet,
 * sem alterar contabilização, baixa parcial ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accounting-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-accounting-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accounting-modal-form,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-accounting-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accounting-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-accounting-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accounting-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-accounting-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accounting-modal .app-supplier-order-accounting-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-accounting-modal .app-supplier-order-accounting-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accounting-modal .app-modal-close-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-accounting-modal .app-modal-close-button,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-accounting-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-accounting-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* No Tablet, o contrato legado de .app-responsive-modal aplica transform no
 * Container externo. Um ancestral transformado passa a ser o bloco de
 * referencia do CDiv fixed; como o Container tem altura zero, top: 50% vira
 * 0px e metade do modal fica acima da viewport. A ponte RichFaces identifica
 * exatamente esses containers, portanto a geometria externa pode ser
 * neutralizada sem atingir modais legados que nao aderiram ao contrato. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-richfaces-responsive-modal-container,
	body.ug-theme-v2.app-theme-ruby .app-richfaces-responsive-modal-container {
		position: fixed !important;
		inset: 0 !important;
		box-sizing: border-box !important;
		width: 100vw !important;
		height: 100vh !important;
		max-width: none !important;
		min-width: 0 !important;
		margin: 0 !important;
		-webkit-transform: none !important;
		transform: none !important;
	}
}

/* Camada comum dos modais responsivos: o RichFaces conserva coordenadas
 * inline no CDiv. Em Desktop e Tablet, a caixa precisa ser recentralizada
 * depois de uma abertura Ajax ou redimensionamento, sem tocar no conteudo. */
@media screen and (min-width: 768px) {
	body.ug-theme-v2.app-theme-ugestor .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-richfaces-responsive-modal-shell {
		position: fixed !important;
		left: 50% !important;
		top: 50% !important;
		right: auto !important;
		bottom: auto !important;
		margin: 0 !important;
		-webkit-transform: translate(-50%, -50%) !important;
		transform: translate(-50%, -50%) !important;
		max-width: calc(100vw - 48px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
		overflow: auto !important;
	}
}

/* Todo rich:modalPanel recebe a ponte de camadas no carregamento e após Ajax.
 * No Smartphone, o CDiv legado não pode manter coordenadas ou dimensão inline
 * fora da viewport: centraliza e deixa a rolagem ocorrer na própria caixa. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-richfaces-responsive-modal-shell {
		position: fixed !important;
		left: 50% !important;
		top: 50% !important;
		right: auto !important;
		bottom: auto !important;
		margin: 0 !important;
		-webkit-transform: translate(-50%, -50%) !important;
		transform: translate(-50%, -50%) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
		overflow: auto !important;
	}
}

/* Notificacoes globais: o autosize do RichFaces pode reduzir o CDiv ao
 * menor fragmento de mensagem. A largura pertence ao shell efetivo, nunca ao
 * conteudo interno; assim Desktop/Tablet nao herdam geometria de Smartphone e
 * as barras permanecem exclusivamente no corpo quando a mensagem for longa. */
body.ug-theme-v2.app-theme-ugestor .app-message-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-message-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
	box-sizing: border-box !important;
	width: 560px !important;
	max-width: calc(100vw - 48px) !important;
	overflow: hidden !important;
}

body.ug-theme-v2.app-theme-ugestor .app-message-modal .rich-mpnl-panel,
body.ug-theme-v2.app-theme-ruby .app-message-modal .rich-mpnl-panel,
body.ug-theme-v2.app-theme-ugestor .app-message-modal .rich-mpnl-shadow,
body.ug-theme-v2.app-theme-ruby .app-message-modal .rich-mpnl-shadow,
body.ug-theme-v2.app-theme-ugestor .app-message-modal .rich-mpnl-content,
body.ug-theme-v2.app-theme-ruby .app-message-modal .rich-mpnl-content,
body.ug-theme-v2.app-theme-ugestor .app-message-modal .rich-mp-content-table,
body.ug-theme-v2.app-theme-ruby .app-message-modal .rich-mp-content-table {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.ug-theme-v2.app-theme-ugestor .app-message-modal .rich-mpnl-body,
body.ug-theme-v2.app-theme-ruby .app-message-modal .rich-mpnl-body {
	box-sizing: border-box;
	max-height: calc(100vh - 164px);
	max-height: calc(100dvh - 164px);
	overflow-x: hidden;
	overflow-y: auto;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-message-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-message-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
	}
}

/* Decisoes do Pedido de Compras: Aprovar, Atestar e Contabilizar compartilham
 * uma caixa de leitura estavel. O RichFaces aplica a largura real em CDiv;
 * por isso a regra alcanca a camada interna, preservando Actions, Ajax e
 * reRender dos tres fluxos. */
body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .rich-mp-container,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .rich-mp-container {
	box-sizing: border-box;
	position: fixed !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	/* Mantém a largura canônica do modal de aprovação e evita reduzir os
	 * campos e as ações dos três fluxos de decisão do Pedido. */
	width: 700px !important;
	max-width: calc(100vw - 48px) !important;
	max-height: calc(100vh - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
}

/* A largura efetiva do RichFaces fica no CDiv criado em runtime. O seletor
 * explícito evita que Aprovar, Atestar e Contabilizar herdem o autosize
 * estreito do painel interno. */
body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell {
	box-sizing: border-box !important;
	width: 700px !important;
	max-width: calc(100vw - 48px) !important;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .rich-mpnl-shadow,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .rich-mpnl-shadow,
body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .rich-mpnl-content,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .rich-mpnl-content,
body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .rich-mp-content-table,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .rich-mp-content-table,
body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-content,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-form,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-panel,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-panel,
body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-fields {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-content,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-content {
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-fields .name,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-fields .name,
body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-fields .value,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-fields .value {
	box-sizing: border-box;
	display: block;
	clear: both;
	float: none;
	width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-fields .name,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-fields .name {
	padding: 10px 0 4px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-purchase-order-decision-modal .app-form-modal-fields textarea.app-control-textarea,
body.ug-theme-v2.app-theme-ruby .conteudo .app-purchase-order-decision-modal .app-form-modal-fields textarea.app-control-textarea {
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0;
	min-height: 132px;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-actions,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-actions {
	align-items: stretch;
	flex-wrap: wrap;
}

body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-actions > span,
body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-actions > span {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-richfaces-responsive-modal-shell {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-content {
		max-height: calc(100vh - 104px);
		max-height: calc(100dvh - 104px);
		padding: 16px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-actions,
	body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-actions,
	body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-actions > span,
	body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-actions > span {
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-purchase-order-decision-modal .app-form-modal-actions input,
	body.ug-theme-v2.app-theme-ruby .app-purchase-order-decision-modal .app-form-modal-actions input {
		width: 100%;
		min-height: 44px !important;
	}
}

/* Dividir lote do pedido: resumo, quantidade e ações preservam leitura no
 * Tablet, sem alterar estoque, conversão ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-lot-split-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-lot-split-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-lot-split-modal-form,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-lot-split-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-lot-split-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-lot-split-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-lot-split-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-lot-split-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-lot-split-modal .app-supplier-order-lot-split-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-lot-split-modal .app-supplier-order-lot-split-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-lot-split-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-lot-split-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-lot-split-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-lot-split-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Entrada automática do Pedido: mensagem e ações preservam leitura no Tablet,
 * sem alterar categoria documental, gravação, transição ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-auto-entry-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-auto-entry-modal-content {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-auto-entry-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-auto-entry-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-auto-entry-modal .app-supplier-order-auto-entry-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-auto-entry-modal .app-supplier-order-auto-entry-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-auto-entry-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-auto-entry-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-auto-entry-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-auto-entry-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Estornar pedido: resumo, alertas e ações preservam leitura no Tablet, sem
 * alterar estorno, bloqueios financeiros ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reversal-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-reversal-modal-content {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reversal-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-reversal-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reversal-modal .app-supplier-order-reversal-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-reversal-modal .app-supplier-order-reversal-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reversal-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-reversal-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reversal-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-reversal-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Excluir pedido: resumo, entidade e ações preservam leitura no Tablet, sem
 * alterar exclusão, bloqueios ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-delete-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-delete-modal-content {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-delete-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-delete-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-delete-modal .app-supplier-order-delete-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-delete-modal .app-supplier-order-delete-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-delete-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-delete-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-delete-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-delete-modal .app-confirmation-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Recusar pedido do fornecedor: resumo, observação e ações preservam leitura
 * no Tablet, sem alterar recusa, histórico ou Ajax. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reject-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-reject-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reject-modal-form,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-reject-modal-form,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reject-modal-fields,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-reject-modal-fields {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reject-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-reject-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reject-modal .app-supplier-order-reject-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-reject-modal .app-supplier-order-reject-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reject-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-reject-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-reject-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-reject-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Últimas compras do Pedido: grade e ações preservam leitura no Tablet, sem
 * alterar lista preparada, paginação ou navegação. */
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-last-products-modal-content,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-last-products-modal-content,
body.ug-theme-v2.app-theme-ugestor .app-supplier-order-last-products-modal-grid-scroll,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-last-products-modal-grid-scroll {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-last-products-modal,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-last-products-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 48px) !important;
		max-height: calc(100dvh - 48px) !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-last-products-modal .app-supplier-order-last-products-modal-content,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-last-products-modal .app-supplier-order-last-products-modal-content {
		max-height: calc(100vh - 128px);
		max-height: calc(100dvh - 128px);
		overflow-y: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-last-products-modal-grid-scroll,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-last-products-modal-grid-scroll {
		overflow-x: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-last-products-modal-table,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-last-products-modal-table {
		min-width: 620px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-last-products-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ruby .app-supplier-order-last-products-modal .app-modal-close-button,
	body.ug-theme-v2.app-theme-ugestor .app-supplier-order-last-products-modal .app-form-modal-actions .app-button,
body.ug-theme-v2.app-theme-ruby .app-supplier-order-last-products-modal .app-form-modal-actions .app-button {
		min-height: 44px !important;
	}
}

/* Consulta de legendas RCS: no Smartphone, filtros e grade preservam a
 * leitura e a rolagem local sem alterar paginação, ações ou dados. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-table,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-table {
		min-width: 760px;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 48px) !important;
		max-height: calc(100vh - 48px) !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-deletion-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-deletion-actions input {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-filter-fields input {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-table,
body.ug-theme-v2.app-theme-ruby .app-rcs-legend-table {
		min-width: 760px;
	}
}

/* Consulta de RCS de entrada: controles, abas e tabela preservam a área útil
 * no Smartphone sem alterar filtros, paginação, ações ou dados. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-query-tabs,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-query-tabs {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-filter-fields input,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-filter-fields select {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-range-fields {
		flex-wrap: wrap;
		gap: 8px;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-deletion-modal,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-deletion-modal {
		box-sizing: border-box;
		max-width: calc(100vw - 48px) !important;
		max-height: calc(100vh - 48px) !important;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-deletion-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-deletion-actions input {
		min-height: 44px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-filter-fields input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-filter-fields input,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-filter-fields select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-range-fields {
		display: flex !important;
		flex-wrap: wrap;
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-range-field,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-range-field {
		box-sizing: border-box;
		margin-right: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-range-field input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-range-field input {
		width: 88px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-query-tabs,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-query-tabs,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-table-scroll {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-table-scroll {
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-table,
body.ug-theme-v2.app-theme-ruby .app-rcs-entry-table {
		min-width: 620px;
	}
}

/* Manutenção de RCS de entrada: as seções contábeis usam uma coluna útil e
 * rolagem local no Smartphone, sem alterar cálculos, Ajax ou persistência. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-basic-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-section,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-section {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-basic-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-basic-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-section input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-section input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-section select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-section select {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-inline-results,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-inline-results {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-inline-table,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-inline-table {
		min-width: 720px;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-section-action,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-section-action {
		min-height: 44px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-basic-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-basic-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-basic-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-basic-fields .value,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-section .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-section .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-section .value,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-section .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-basic-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-basic-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-section .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-section .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-basic-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-basic-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-section input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-section input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-section select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-section select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-section-action,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-section-action {
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-inline-results,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-inline-results,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-tax-block,
	body.ug-theme-v2.app-theme-ruby .app-rcs-entry-tax-block {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-entry-inline-table,
body.ug-theme-v2.app-theme-ruby .app-rcs-entry-inline-table {
		min-width: 720px;
	}
}

/* Gestão de usuários: filtro, grade e perfis preservam área útil e rolagem
 * no Smartphone sem alterar permissões, Ajax ou persistência. */
body.ug-theme-v2 .app-user-management-actions-grid,
body.ug-theme-v2 .app-user-management-actions-grid > tbody,
body.ug-theme-v2 .app-user-management-actions-grid > tbody > tr,
body.ug-theme-v2 .app-user-management-actions-grid > tbody > tr > td,
body.ug-theme-v2 .app-user-management-actions-section,
body.ug-theme-v2 .app-user-management-actions-fieldset {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
}

body.ug-theme-v2 .app-user-management-actions-grid {
	table-layout: fixed;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-user-management-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-user-management-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-user-management-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-user-management-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-user-management-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-user-management-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-user-management-filter-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-user-management-filter-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-management-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-user-management-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-user-management-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-user-management-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-management-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-user-management-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-management-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-user-management-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-user-management-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-user-management-filter-fields select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-management-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-user-management-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-management-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-user-management-query-results .app-query-table {
		min-width: 680px;
	}
}

/* Gestão de usuários: Tablet preserva ações, campos e grids em área útil,
 * limitando a rolagem horizontal aos painéis internos. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-user-management-form,
	body.ug-theme-v2.app-theme-ruby .app-user-management-form,
	body.ug-theme-v2.app-theme-ugestor .app-user-management-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-user-management-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-user-management-query-results,
	body.ug-theme-v2.app-theme-ruby .app-user-management-query-results {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-management-form input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-user-management-form input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-user-management-form input[type="password"],
	body.ug-theme-v2.app-theme-ruby .app-user-management-form input[type="password"],
	body.ug-theme-v2.app-theme-ugestor .app-user-management-form select,
	body.ug-theme-v2.app-theme-ruby .app-user-management-form select,
	body.ug-theme-v2.app-theme-ugestor .app-user-management-form .app-maintenance-actions input,
	body.ug-theme-v2.app-theme-ruby .app-user-management-form .app-maintenance-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-management-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-user-management-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ugestor .app-user-management-query-results .app-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-user-management-query-results .app-maintenance-panel {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-user-management-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-user-management-query-results .app-query-table {
		min-width: 760px;
	}
}

/* Manutenção de Tributação de Serviço: no Tablet, campos fiscais preservam
 * duas colunas úteis e isolam a rolagem das tabelas densas. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-maintenance-form,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-maintenance-form,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-tax-service-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-maintenance-panel select,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-maintenance-panel select,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-maintenance-form .app-maintenance-actions input,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-maintenance-form .app-maintenance-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-iss-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-iss-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-pis-cofins-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-pis-cofins-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-retention-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-retention-fields {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-iss-fields .rich-table,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-iss-fields .rich-table {
		min-width: 720px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-retention-fields .rich-table,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-retention-fields .rich-table {
		min-width: 480px;
	}
}

/* Manutenção de Tributação de Serviço: blocos fiscais preservam área útil,
 * toque e rolagem local no Smartphone sem alterar cálculos ou persistência. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-basic-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-basic-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-basic-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-basic-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-basic-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-basic-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-basic-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-maintenance-panel .value,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-maintenance-panel .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-maintenance-panel .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-tax-service-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-maintenance-panel select,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-maintenance-panel select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-iss-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-iss-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-pis-cofins-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-pis-cofins-fields {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-iss-fields .rich-table,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-iss-fields .rich-table {
		min-width: 720px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-pis-cofins-fields > table,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-pis-cofins-fields > table {
		min-width: 680px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-retention-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-retention-fields {
		box-sizing: border-box;
		max-width: 100%;
	}
}

/* Consulta de Tributação de Serviço: filtro, abas e grades preservam leitura
 * no Tablet, com rolagem restrita aos resultados densos. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-query-form,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-query-form,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-query-results,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-query-results,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-query-tabs,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-query-tabs {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-tax-service-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-query-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-query-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-query-results .app-query-row-actions input,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-query-results .app-query-row-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-query-results .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-query-results .app-query-table {
		min-width: 1180px;
	}
}

/* Consulta de Tributação de Serviço: filtro, abas e grades preservam leitura
 * e rolagem no Smartphone sem alterar pesquisa, exportação ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-filter-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-filter-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-tax-service-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-tax-service-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-filter-fields select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-query-results .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-service-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-tax-service-query-results .app-query-table {
		min-width: 760px;
	}
}

/* Manutenção de Tributação NCM: no Tablet, campos fiscais mantêm a matriz
 * operacional dentro do painel, com rolagem local apenas quando necessária. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-maintenance-form,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-maintenance-form,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-maintenance-panel select,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-maintenance-panel select,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-maintenance-form .app-maintenance-actions input,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-maintenance-form .app-maintenance-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-local-icms-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-local-icms-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-interstate-icms-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-interstate-icms-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-pis-cofins-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-pis-cofins-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-retention-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-retention-fields {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-local-icms-fields > table,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-local-icms-fields > table {
		min-width: 920px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-interstate-icms-fields .rich-table,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-interstate-icms-fields .rich-table {
		min-width: 820px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-retention-fields .rich-table,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-retention-fields .rich-table {
		min-width: 480px;
	}
}

/* Manutenção de Tributação NCM: blocos fiscais preservam área útil, toque e
 * rolagem local no Smartphone sem alterar cálculos, Ajax ou persistência. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-basic-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-basic-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-basic-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-basic-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-basic-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-basic-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-basic-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-maintenance-panel .value,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-maintenance-panel .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-maintenance-panel .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-maintenance-panel select,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-maintenance-panel select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-local-icms-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-local-icms-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-interstate-icms-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-interstate-icms-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-pis-cofins-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-pis-cofins-fields {
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-local-icms-fields > table,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-local-icms-fields > table {
		min-width: 920px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-interstate-icms-fields > table,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-interstate-icms-fields > table,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-pis-cofins-fields > table,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-pis-cofins-fields > table {
		min-width: 680px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-retention-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-retention-fields {
		box-sizing: border-box;
		max-width: 100%;
	}
}

/* Consulta de Tributação NCM: filtro, abas e grades preservam leitura no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-query-results,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-query-results,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-query-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-query-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-query-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-query-form .produto-page-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-query-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-query-results .app-query-table {
		min-width: 760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-query-results .app-query-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-query-results .app-query-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}
}

/* Consulta de Tributação NCM: filtro, abas e grades preservam leitura e
 * rolagem no Smartphone sem alterar pesquisa, exportação ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-filter-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-filter-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-filter-fields input[type="text"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-query-results .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-tax-ncm-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-tax-ncm-query-results .app-query-table {
		min-width: 760px;
	}
}

/* Manutenção de legenda RTS Retenção: campos preservam área útil e toque no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-maintenance-form,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-maintenance-form,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-maintenance-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-maintenance-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-maintenance-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-maintenance-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-maintenance-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-maintenance-form .produto-page-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px !important;
	}
}

/* Manutenção de legenda RTS Retenção: campos preservam área útil e toque no
 * Smartphone sem alterar validações, regras de bloqueio ou navegação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-maintenance-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-maintenance-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-maintenance-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-maintenance-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-maintenance-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-maintenance-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-maintenance-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-maintenance-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-maintenance-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-maintenance-fields input[type="text"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}
}

/* Manutenções RTS: as tabelas externas de duas colunas usam largura total com
 * padding e borda incluídos no cálculo. Sem este contrato, as classes legadas
 * coluna1/coluna2 somam 100% mais 44px e ampliam o documento no Desktop. */
body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-sections,
body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-sections,
body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-sections,
body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-sections,
body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-sections,
body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-sections {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100%;
	table-layout: fixed;
}

body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-sections > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-sections > tbody > tr > td,
body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-sections > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-sections > tbody > tr > td,
body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-sections > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-sections > tbody > tr > td {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-rts-exit-tax-benefit-fields,
body.ug-theme-v2.app-theme-ruby .app-rts-exit-tax-benefit-fields,
body.ug-theme-v2.app-theme-ugestor .app-rts-exit-tax-benefit-scroll,
body.ug-theme-v2.app-theme-ruby .app-rts-exit-tax-benefit-scroll {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .app-rts-exit-tax-benefit-scroll,
body.ug-theme-v2.app-theme-ruby .app-rts-exit-tax-benefit-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2.app-theme-ugestor .app-rts-exit-tax-benefit-list,
body.ug-theme-v2.app-theme-ruby .app-rts-exit-tax-benefit-list {
	display: inline-block;
	min-width: 1200px;
	white-space: nowrap;
}

body.ug-theme-v2.app-theme-ugestor .app-rts-exit-tax-benefit-item,
body.ug-theme-v2.app-theme-ruby .app-rts-exit-tax-benefit-item {
	display: inline-block;
	box-sizing: border-box;
	vertical-align: top;
	text-align: center;
	padding: 2px 5px;
}

body.ug-theme-v2.app-theme-ugestor .app-rts-exit-tax-benefit-code,
body.ug-theme-v2.app-theme-ruby .app-rts-exit-tax-benefit-code {
	box-sizing: border-box;
	width: 88px !important;
	max-width: 88px !important;
}

/* Manutenção de RTS Retenção: grupos fiscais preservam leitura, toque e
 * rolagem local no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-form,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-form,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-sections,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-sections,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-sections > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-sections > tbody > tr > td,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-fiscal-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-fiscal-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-fiscal-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-fiscal-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-fiscal-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-fiscal-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-fiscal-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-fiscal-fields > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-panel select,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-panel select,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-form .produto-page-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-sections .rich-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-sections .rich-table,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-accounting-grid,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-accounting-grid {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-accounting-grid > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-accounting-grid > tbody {
		min-width: 820px;
	}
}

/* Manutenção de RTS Retenção: grupos fiscais preservam leitura, toque e
 * rolagem local no Smartphone sem alterar cálculos, Ajax ou persistência. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-sections,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-sections,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-sections > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-sections > tbody > tr > td,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-fiscal-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-fiscal-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-fiscal-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-fiscal-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-fiscal-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-fiscal-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-fiscal-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-fiscal-fields > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-panel .value,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-panel .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-panel .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-maintenance-panel select,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-maintenance-panel select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-accounting-grid,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-accounting-grid {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-accounting-grid > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-accounting-grid > tbody {
		min-width: 820px;
	}
}

/* Consulta de legenda RTS Retenção: filtro e grade preservam leitura no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-query-results,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-query-results {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-query-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-query-form .produto-page-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-table {
		min-width: 680px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-query-results .app-query-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-query-results .app-query-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}
}

/* Consulta de legenda RTS Retenção: filtro e grade preservam leitura no
 * Smartphone sem alterar pesquisa, ações ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-filter-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-filter-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-filter-fields input[type="text"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-legend-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-legend-table {
		min-width: 680px;
	}
}

/* Consulta RTS Retenção: filtro, abas e grades preservam leitura no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-query-results,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-query-results,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-query-tabs .rich-tabpanel-content,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-query-tabs .rich-tabpanel-content {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields select,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-query-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-query-form .produto-page-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-range-fields {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-query-results .app-query-table-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-query-results .app-query-table {
		min-width: 760px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-query-results .app-query-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-query-results .app-query-row-actions input[type="image"] {
		box-sizing: content-box !important;
		width: 20px !important;
		height: 20px !important;
		padding: 12px !important;
	}
}

/* Consulta RTS Retenção: filtro, abas e grades preservam leitura e rolagem no
 * Smartphone sem alterar pesquisa, exportação, ações ou paginação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-filter-fields select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-range-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-range-fields {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-range-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-range-fields input[type="text"] {
		width: 88px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-query-results .app-query-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-query-results .app-query-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-retention-query-results .app-query-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-retention-query-results .app-query-table {
		min-width: 760px;
	}
}

/* Manutenção de RTS de saída: grupos extensos e benefícios fiscais preservam
 * leitura e rolagem local no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-form,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-form,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-sections,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-sections,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-sections > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-sections > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-panel select,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-panel select,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-form .produto-page-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-sections .rich-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-sections .rich-table,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-accounting-grid,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-accounting-grid,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-tax-benefit-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-tax-benefit-fields {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-accounting-grid > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-accounting-grid > tbody {
		min-width: 820px;
	}
}

/* Manutenção de RTS de saída: grupos extensos e benefícios fiscais preservam
 * leitura e rolagem local no Smartphone sem alterar cálculos ou persistência. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-sections,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-sections,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-sections > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-sections > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-panel .value,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-panel .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-panel .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-maintenance-panel select,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-maintenance-panel select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-accounting-grid,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-accounting-grid,
	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-tax-benefit-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-tax-benefit-fields {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-exit-accounting-grid > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-exit-accounting-grid > tbody {
		min-width: 820px;
	}
}

/* Manutenção de legenda RTS: campos preservam área útil e toque no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-maintenance-form,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-maintenance-form,
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-maintenance-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-maintenance-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-maintenance-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-maintenance-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-maintenance-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-maintenance-form .produto-page-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px !important;
	}
}

/* Manutenção de legenda RTS: campos preservam área útil e toque no Smartphone
 * sem alterar validações, regras de bloqueio ou navegação. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-maintenance-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-maintenance-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-maintenance-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-maintenance-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-maintenance-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-maintenance-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-maintenance-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-maintenance-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-legend-maintenance-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-legend-maintenance-fields input[type="text"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}
}

/* Manutenção de RTS de entrada: grupos extensos conservam leitura no Tablet. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-form,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-form,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-sections,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-sections,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-sections > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-sections > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-panel select,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-panel select,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-form .produto-page-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-form .produto-page-actions input {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-sections .rich-table,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-sections .rich-table,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-accounting-grid,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-accounting-grid {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-accounting-grid > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-accounting-grid > tbody {
		min-width: 820px;
	}
}

/* Manutenção de RTS de entrada: grupos extensos conservam leitura e rolagem
 * local no Smartphone sem alterar cálculos, Ajax ou persistência. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-basic-fields,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-basic-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-sections,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-sections,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-sections > tbody,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-sections > tbody > tr,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-sections > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-sections > tbody > tr > td {
		box-sizing: border-box;
		display: block;
		width: 100% !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-panel .value,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-panel .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-panel .name,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-panel .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-panel input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-maintenance-panel select,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-maintenance-panel select {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-accounting-grid,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-accounting-grid {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rts-entry-accounting-grid > tbody,
	body.ug-theme-v2.app-theme-ruby .app-rts-entry-accounting-grid > tbody {
		min-width: 820px;
	}
}

/* Manutenção de legenda RCS: campos e referência preservam área útil e toque
 * no Smartphone sem alterar validações, ações ou navegação. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-maintenance-panel,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-maintenance-panel,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-maintenance-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-maintenance-fields {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-maintenance-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-maintenance-fields input[type="text"] {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-maintenance-actions input,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-maintenance-actions input,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-reference-link,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-reference-link {
		min-height: 44px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-maintenance-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-maintenance-fields {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-maintenance-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-maintenance-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-maintenance-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-maintenance-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-maintenance-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-maintenance-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-maintenance-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-legend-maintenance-fields input[type="text"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-legend-reference-link,
body.ug-theme-v2.app-theme-ruby .app-rcs-legend-reference-link {
		box-sizing: border-box;
		min-height: 44px;
		max-width: 100%;
	}
}

/* Integração contábil RCS: filtro e grade preservam leitura e rolagem local
 * no Smartphone sem alterar consulta, download, exclusão ou paginação. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-filter-fields,
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-filter-fields {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-filter-fields select {
		box-sizing: border-box;
		max-width: 100%;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-table-scroll {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-table,
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-table {
		min-width: 680px;
	}
	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-row-actions input[type="image"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-row-actions input[type="image"] {
		box-sizing: content-box !important;
		padding: 12px !important;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-filter-fields .name,
	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-filter-fields .value,
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-filter-fields .value {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-filter-fields .name,
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-filter-fields .name {
		padding: 5px 0 3px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-filter-fields input[type="text"],
	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-filter-fields select,
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-filter-fields select {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
		min-height: 44px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-table-scroll,
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ug-theme-v2.app-theme-ugestor .app-rcs-integration-table,
	body.ug-theme-v2.app-theme-ruby .app-rcs-integration-table {
		min-width: 680px;
	}
}

/* Drawer Smartphone: reproduz a densidade, hierarquia e alvos do mockup sem
 * duplicar a arvore RichFaces, as permissoes ou os destinos de navegacao. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-main-navigation,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-main-navigation {
		width: 88vw;
		max-width: 400px;
		background: #ffffff;
		background: var(--ug-color-surface);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-header,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-header {
		min-height: 76px;
		padding: 12px 20px;
		border-bottom-width: 0;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-title,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-title {
		font-size: 23px;
		line-height: 1.2;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-close,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-close {
		width: 52px;
		height: 52px;
		min-width: 52px;
		min-height: 52px;
		font-size: 24px;
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-context,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #nomesDiv.app-smartphone-app-bar .app-header-context {
		top: calc(76px + env(safe-area-inset-top));
		width: 88vw !important;
		max-width: 400px !important;
		height: 154px;
		padding: 16px 20px !important;
		background: #ffffff !important;
		background: var(--ug-color-surface) !important;
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #MenuHorizontal .app-main-toolbar,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #MenuHorizontal .app-main-toolbar,
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #MenuHorizontal.app-main-navigation .app-main-toolbar,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #MenuHorizontal.app-main-navigation .app-main-toolbar {
		padding-top: 162px !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-toolbar-logout,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-toolbar-logout,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-control-panel-trigger,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-control-panel-trigger {
		min-height: 64px;
		padding: 14px 20px !important;
		font-size: 19px !important;
		line-height: 1.3 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group {
		min-height: 60px;
		padding: 14px 20px 14px 28px !important;
		font-size: 18px !important;
		line-height: 1.3 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section > .rich-ddmenu-label::after,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section > .rich-ddmenu-label::after,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group::after,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group::after {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		padding: 10px;
		font-size: 29px;
		line-height: 24px;
		text-align: center;
		content: "\203A";
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label::after,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label::after,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group.app-responsive-navigation-group-open::after,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group.app-responsive-navigation-group-open::after {
		content: "\2303";
	}
}

/* A ultima camada do drawer Smartphone prevalece sobre a compatibilidade
 * Tablet herdada acima e reproduz a composicao aprovada no mockup. */
@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-responsive-navigation-drawer,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal.app-main-navigation,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal.app-main-navigation {
		width: 91vw;
		max-width: 402px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-header,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-header {
		min-height: 80px;
		padding: 10px 64px 8px 16px;
		border: 0;
		background: #ffffff;
		background: var(--ug-color-surface);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-brand-slot,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-brand-slot {
		min-height: 56px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-brand-slot .app-header-brand img,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-brand-slot .app-header-brand img {
		max-width: 178px;
		max-height: 50px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-close,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-close {
		position: absolute;
		top: 14px;
		right: 14px;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		padding: 0;
		border: 1px solid #dce4ee;
		border-color: var(--ug-color-shell-action-border);
		border-radius: 13px;
		background: #ffffff;
		background: var(--ug-color-surface);
		color: #10213d;
		color: var(--ug-color-ink);
		font-size: 22px;
		box-shadow: 0 4px 12px rgba(16, 33, 61, .09);
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot {
		padding: 30px 0 10px;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-entity,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-entity {
		position: relative;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-identity-card,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-identity-card {
		width: 100% !important;
		max-width: none !important;
		padding: 0 !important;
		border-radius: 14px;
		font-family: Arial, Helvetica, sans-serif !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-identity-card *,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-identity-card * {
		font-family: Arial, Helvetica, sans-serif !important;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-user,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-user {
		padding-bottom: 12px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-establishment,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-establishment {
		padding-top: 10px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .name,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .name {
		position: static !important;
		float: none !important;
		width: auto !important;
		font-family: Arial, Helvetica, sans-serif !important;
		font-size: 10px;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .value,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .value {
		position: static !important;
		float: none !important;
		display: block !important;
		width: auto !important;
		font-family: Arial, Helvetica, sans-serif !important;
		margin-top: 3px;
		font-size: 15px;
		line-height: 1.22;
	}

	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-user .prop,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-user .prop,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-user .prop > .name,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-user .prop > .name,
	body.ug-theme-v2.app-theme-ugestor .app-responsive-navigation-context-slot .app-header-user .prop > .value,
	body.ug-theme-v2.app-theme-ruby .app-responsive-navigation-context-slot .app-header-user .prop > .value {
		position: static !important;
		float: none !important;
		display: block !important;
		width: auto !important;
		max-width: none !important;
		text-align: left !important;
	}

	/* O valor legado envolve a grade real em outro span.value. Mantê-lo como
	 * bloco evita reservar uma segunda coluna vazia no cartão do drawer. */
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-context-slot .app-header-establishment .prop > .value,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-context-slot .app-header-establishment .prop > .value {
		display: block !important;
		box-sizing: border-box;
		width: 100% !important;
		max-width: none !important;
		padding: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-context-slot .app-header-establishment-value,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-context-slot .app-header-establishment-value {
		display: block !important;
		width: 100% !important;
		max-width: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-context-slot .app-header-establishment-value > span:first-child,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-context-slot .app-header-establishment-value > span:first-child {
		display: block;
		width: 100%;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-context-slot input[type="image"],
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-context-slot input[type="image"] {
		position: absolute !important;
		top: 9px;
		right: 12px;
		width: 44px !important;
		height: 44px !important;
		padding: 12px !important;
	}

	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #MenuHorizontal .app-main-toolbar,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #MenuHorizontal .app-main-toolbar,
	body.ug-theme-v2.app-theme-ugestor.app-responsive-navigation-open #MenuHorizontal.app-main-navigation .app-main-toolbar,
	body.ug-theme-v2.app-theme-ruby.app-responsive-navigation-open #MenuHorizontal.app-main-navigation .app-main-toolbar {
		padding-top: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar > tbody > tr > td.rich-toolbar-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar > tbody > tr > td.rich-toolbar-item {
		margin: 0 16px;
		border-bottom: 1px solid #e7edf3 !important;
		border-bottom-color: var(--ug-color-shell-drawer-subitem-border) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-toolbar-logout,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-toolbar-logout,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar .app-control-panel-trigger,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar .app-control-panel-trigger {
		min-height: 56px;
		padding: 10px 16px !important;
		font-size: 16px !important;
		font-weight: 700;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item > i,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item > i,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item > i > span,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-main-toolbar td.rich-toolbar-item > .rich-menu-item > i > span {
		font-size: 16px !important;
		font-family: Arial, Helvetica, sans-serif !important;
		font-weight: 700 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-home,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-home {
		border-bottom: 0 !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-home > .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-home > .rich-menu-item,
	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-home.app-navigation-active > .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-home.app-navigation-active > .rich-menu-item {
		background: transparent !important;
		box-shadow: none !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-home.app-navigation-active > .rich-menu-item *,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-home.app-navigation-active > .rich-menu-item * {
		color: #e64a19 !important;
		color: var(--ug-color-accent) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open {
		margin-top: 6px;
		margin-bottom: 6px;
		border: 1px solid #f0d4c8 !important;
		border-color: var(--ug-color-border-warm) !important;
		border-radius: 12px;
		background: #fff8f4;
		background: var(--ug-color-shell-navigation-active-surface);
		overflow: hidden;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .app-responsive-navigation-section.app-responsive-navigation-section-open > .rich-ddmenu-label {
		box-shadow: inset 5px 0 0 #ff5a1f !important;
		box-shadow: inset 5px 0 0 var(--ug-color-accent) !important;
	}

	body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-item,
	body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-item,
body.ug-theme-v2.app-theme-ugestor #MenuHorizontal .rich-menu-list-border .rich-menu-group,
body.ug-theme-v2.app-theme-ruby #MenuHorizontal .rich-menu-list-border .rich-menu-group {
		min-height: 52px;
		padding: 10px 16px 10px 26px !important;
		font-size: 16px !important;
		font-weight: 600;
	}
}

/* Corpo interno reutilizavel de filtros de pesquisa. A grade atua apenas nos
 * wrappers declarados pela tela e nao altera tabs, grids, paginacao ou acoes. */
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-body-v2,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-body-v2 {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-body-v2 .ug-filter-grid,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-body-v2 .ug-filter-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px 28px;
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-body-v2 .ug-filter-field,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-body-v2 .ug-filter-field {
	box-sizing: border-box;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-body-v2 .ug-filter-field--full,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-body-v2 .ug-filter-field--full {
	grid-column: 1 / -1;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-body-v2 .name,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-body-v2 .name,
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-body-v2 .value,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-body-v2 .value {
	float: none;
	box-sizing: border-box;
	width: 100%;
	padding: 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-body-v2 .name,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-body-v2 .name {
	margin: 0 0 6px;
	color: #10213d;
	color: var(--ug-color-ink);
	font-weight: 700;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-body-v2 .value .app-control,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-body-v2 .value .app-control {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-lookup-control,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-lookup-control {
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-lookup-control > tbody > tr,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-lookup-control > tbody > tr {
	display: flex;
	align-items: stretch;
	width: 100%;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-lookup-control > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-lookup-control > tbody > tr > td {
	display: flex;
	align-items: stretch;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-lookup-control > tbody > tr > td:first-child,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-lookup-control > tbody > tr > td:first-child {
	flex: 1 1 auto;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-lookup-control > tbody > tr > td:nth-child(2),
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-lookup-control > tbody > tr > td:nth-child(2),
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-lookup-control > tbody > tr > td:nth-child(3),
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-lookup-control > tbody > tr > td:nth-child(3) {
	flex: 0 0 auto;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-lookup-control .app-autocomplete-input,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-lookup-control .app-autocomplete-input {
	min-width: 0;
	flex: 1 1 auto;
	border-radius: 6px 0 0 6px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-lookup-control .app-autocomplete-trigger,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-lookup-control .app-autocomplete-trigger {
	box-sizing: border-box;
	width: 42px;
	height: 42px;
	margin-left: -1px;
	padding: 11px;
	border: 1px solid #bfd0df;
	border-color: var(--ug-color-border-control);
	border-radius: 0 6px 6px 0;
	background: #ffffff;
	background: var(--ug-color-surface);
	cursor: pointer;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-lookup-control .app-autocomplete-loading,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-lookup-control .app-autocomplete-loading {
	align-self: center;
	flex: 0 0 auto;
	margin-left: 8px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-section,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-section {
	padding-top: 2px;
	border-top: 1px solid #e7edf3;
	border-top-color: var(--ug-color-border-action-secondary);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none;
	border-collapse: separate;
	border-spacing: 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 48px;
	padding: 8px 10px !important;
	border: 1px solid #bfd0df;
	border-color: var(--ug-color-border-control);
	border-radius: 6px;
	background: #ffffff;
	background: var(--ug-color-surface);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid input[type="checkbox"],
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid input[type="checkbox"] {
	box-sizing: content-box;
	flex: 0 0 auto;
	margin: 0 8px 0 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid label,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid label {
	display: flex;
	align-items: center;
	min-width: 0;
	margin: 0 !important;
	color: #10213d;
	color: var(--ug-color-ink);
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid label:before {
	display: inline-block;
	flex: 0 0 auto;
	width: 18px;
	margin-right: 7px;
	color: #00899a;
	color: var(--ug-color-teal, #00899a);
	font-family: FontAwesome;
	font-size: 15px;
	text-align: center;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(1) label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(1) label:before { content: "\f2bd"; }
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(2) label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(2) label:before { content: "\f0f2"; }
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(3) label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(3) label:before,
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(4) label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(4) label:before { content: "\f0c0"; }
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(5) label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(5) label:before { content: "\f0d1"; }
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(6) label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(6) label:before { content: "\f2c1"; }
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(7) label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(7) label:before { content: "\f1ad"; }
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(8) label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(8) label:before { content: "\f108"; }
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(9) label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(9) label:before { content: "\f0ad"; }
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(10) label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(10) label:before { content: "\f0ae"; }
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(11) label:before,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td:nth-child(11) label:before { content: "\f085"; }

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid input[type="checkbox"]:checked + label,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid input[type="checkbox"]:checked + label {
	color: #e94a16;
	color: var(--ug-color-accent-strong);
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-financial-field,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-financial-field,
body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-person-type-field,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-person-type-field {
	padding-top: 2px;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-radio-group,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-radio-group {
	width: auto !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-radio-group td,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-radio-group td {
	padding: 0 20px 0 0 !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-radio-group label,
body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-radio-group label {
	margin: 0 !important;
	cursor: pointer;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-body-v2 .ug-filter-grid,
	body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-body-v2 .ug-filter-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-body-v2 .ug-filter-field--full,
	body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-body-v2 .ug-filter-field--full {
		grid-column: auto;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr,
	body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid > tbody > tr > td,
	body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid > tbody > tr > td {
		width: auto !important;
		min-height: 48px;
		padding: 8px !important;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .ug-filter-choice-grid label,
	body.ug-theme-v2.app-theme-ruby .conteudo .ug-filter-choice-grid label {
		font-size: 13px;
	}
}

/*
 * Componente compartilhado de modais financeiros transacionais.
 *
 * A classe e aplicada exclusivamente aos modais que cadastram, editam ou
 * confirmam formas de pagamento/recebimento e suas parcelas. Ela atua sobre
 * a caixa visual produzida pelo RichFaces, sem alterar rich:modalPanel,
 * formulários JSF, ids, binds, actions ou callbacks Ajax.
 */
body.ug-theme-v2.app-theme-ugestor .app-transactional-financial-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-transactional-financial-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ugestor .app-transactional-financial-modal.app-richfaces-responsive-modal-container.app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-transactional-financial-modal.app-richfaces-responsive-modal-container.app-richfaces-responsive-modal-shell {
	position: fixed !important;
	box-sizing: border-box !important;
	width: 680px !important;
	max-width: calc(100vw - 48px) !important;
	max-height: calc(100vh - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
	left: 50% !important;
	top: 50% !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	-webkit-transform: translate(-50%, -50%) !important;
	transform: translate(-50%, -50%) !important;
}

body.ug-theme-v2 .app-transactional-financial-modal .rich-mpnl-panel,
body.ug-theme-v2 .app-transactional-financial-modal .rich-mpnl-shadow,
body.ug-theme-v2 .app-transactional-financial-modal .rich-mpnl-content {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.ug-theme-v2 .app-transactional-financial-modal .rich-mpnl-content {
	border: 1px solid #cbd8e8 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	box-shadow: 0 22px 52px rgba(8, 20, 47, .28) !important;
}

body.ug-theme-v2 .app-transactional-financial-modal .rich-mpnl-header {
	box-sizing: border-box;
	min-height: 62px;
	padding: 17px 20px !important;
	border: 0 !important;
	border-bottom: 3px solid #ff5a1f !important;
	background: #10213d !important;
	background-image: none !important;
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 700;
}

body.ug-theme-v2 .app-transactional-financial-modal .rich-mpnl-body {
	box-sizing: border-box;
	padding: 0 !important;
	background: #ffffff !important;
	overflow: hidden;
}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-content {
	box-sizing: border-box;
	max-height: calc(100vh - 158px);
	max-height: calc(100dvh - 158px);
	padding: 18px 20px 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-panel,
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields,
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-inline-fields,
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-scroll {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields .name,
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields .value {
	box-sizing: border-box;
	display: block;
	float: none;
	width: 100%;
}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields .name {
	padding: 0 0 5px;
	color: #10213d;
	font-weight: 700;
}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields .value {
	padding: 0 0 12px;
}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-inline-fields {
	width: 100% !important;
	table-layout: fixed;
}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-inline-fields > tbody > tr > td {
	box-sizing: border-box;
	width: 50%;
	padding: 0 12px 0 0;
	vertical-align: top;
}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-inline-fields > tbody > tr > td + td {
	padding-right: 0;
}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields input[type="text"],
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields select,
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields textarea {
	box-sizing: border-box;
	max-width: 100%;
	min-height: 38px;
}

/*
 * O contrato do modal PIX usa campos que ocupam a coluna disponível. Alguns
 * fluxos legados ainda declaravam tamanhos fixos de 160px/260px por classe ou
 * atributo size. O escopo abaixo sobrepõe apenas esses controles financeiros,
 * sem tocar em ids, valores, conversores, Ajax ou regras de parcelamento.
 */
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields [id$="valorParcelaInput"],
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields [id$="valorEntradaInput"],
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields [id$="qtdParcelasInput"],
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields [id$="diaVencInput"] {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
}

/*
 * rich:calendar usa .rich-calendar-exterior na tabela do popup, e nao no
 * campo de data. Aplicar a largura do formulario nessa classe comprimia o
 * calendario e podia cortar semanas ou o rodape dentro do modal financeiro.
 * A geometria do popup continua exclusivamente no bloco global de calendario
 * em ugestor.css; o campo usa suas classes app-control existentes.
 */

body.ug-theme-v2 .app-transactional-financial-modal .app-modal-close-button,
body.ug-theme-v2 .app-transactional-financial-modal .app-modal-close-control {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 7px;
}

body.ug-theme-v2 .app-transactional-financial-modal fieldset {
	box-sizing: border-box;
	width: 100%;
	margin: 8px 0 12px;
	padding: 12px 14px;
	border: 1px solid #d8e2ef;
	border-radius: 8px;
	background: #ffffff;
}

body.ug-theme-v2 .app-transactional-financial-modal fieldset legend {
	padding: 0 6px;
	color: #10213d;
	font-weight: 700;
}

body.ug-theme-v2 .app-transactional-financial-modal [id$="quantValorParcelasDiv"] {
	box-sizing: border-box;
	width: 100%;
	margin: 6px 0 14px;
	padding: 14px 16px;
	border: 1px solid #d4e0ee;
	border-radius: 8px;
	background: #f3f7fc;
}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-actions {
	box-sizing: border-box;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	width: calc(100% + 40px);
	margin: 4px -20px 0;
	padding: 16px 20px;
	border-top: 1px solid #dce5ef;
	background: #ffffff;
	position: -webkit-sticky;
	position: sticky;
	bottom: 0;
	z-index: 1;
}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-actions .app-button,
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-actions input {
	box-sizing: border-box;
	min-width: 120px;
	min-height: 40px !important;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-transactional-financial-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-transactional-financial-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ugestor .app-transactional-financial-modal.app-richfaces-responsive-modal-container.app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-transactional-financial-modal.app-richfaces-responsive-modal-container.app-richfaces-responsive-modal-shell {
		width: calc(100vw - 32px) !important;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 32px) !important;
		max-height: calc(100dvh - 32px) !important;
	}

	body.ug-theme-v2 .app-transactional-financial-modal .rich-mpnl-header {
		min-height: 56px;
		padding: 14px 16px !important;
		font-size: 15px;
	}

	body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-content {
		max-height: calc(100vh - 136px);
		max-height: calc(100dvh - 136px);
		padding: 14px 16px 0;
	}

	body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-inline-fields,
	body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-inline-fields > tbody,
	body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-inline-fields > tbody > tr,
	body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-inline-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
	}

	body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-inline-fields > tbody > tr > td {
		padding: 0;
	}

	body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields input[type="text"],
	body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields select,
	body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields textarea {
		width: 100% !important;
		min-height: 44px;
	}

	body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-fields .rich-calendar-exterior .rich-calendar-input {
		min-height: 44px;
	}

	body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-actions {
		width: calc(100% + 32px);
		margin-right: -16px;
		margin-left: -16px;
		padding: 12px 16px;
	}

body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-actions .app-button,
body.ug-theme-v2 .app-transactional-financial-modal .app-form-modal-actions input {
		flex: 1 1 0;
		min-width: 0;
		min-height: 44px !important;
	}
}

/*
 * Componente compartilhado de decisões transacionais.
 *
 * Abrange somente modais operacionais de aprovação, reprovação, autorização,
 * atesto, contabilização, cancelamento, estorno, devolução, emissão e ações
 * equivalentes já classificadas no inventário. A regra atua exclusivamente na
 * caixa renderizada pelo RichFaces; h:form/a4j:form, ids, actions, Ajax e
 * reRender permanecem nos respectivos XHTML.
 */
body.ug-theme-v2.app-theme-ugestor .app-transactional-decision-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-transactional-decision-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ugestor .app-transactional-decision-modal.app-richfaces-responsive-modal-container.app-richfaces-responsive-modal-shell,
body.ug-theme-v2.app-theme-ruby .app-transactional-decision-modal.app-richfaces-responsive-modal-container.app-richfaces-responsive-modal-shell {
	position: fixed !important;
	box-sizing: border-box !important;
	width: 680px !important;
	max-width: calc(100vw - 48px) !important;
	max-height: calc(100vh - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
	left: 50% !important;
	top: 50% !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	-webkit-transform: translate(-50%, -50%) !important;
	transform: translate(-50%, -50%) !important;
}

body.ug-theme-v2 .app-transactional-decision-modal .rich-mpnl-panel,
body.ug-theme-v2 .app-transactional-decision-modal .rich-mpnl-shadow,
body.ug-theme-v2 .app-transactional-decision-modal .rich-mpnl-content {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.ug-theme-v2 .app-transactional-decision-modal .rich-mpnl-content {
	border: 1px solid #cbd8e8 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	box-shadow: 0 22px 52px rgba(8, 20, 47, .28) !important;
}

body.ug-theme-v2 .app-transactional-decision-modal .rich-mpnl-header {
	box-sizing: border-box;
	min-height: 62px;
	padding: 17px 20px !important;
	border: 0 !important;
	border-bottom: 3px solid #ff5a1f !important;
	background: #10213d !important;
	background-image: none !important;
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 700;
}

body.ug-theme-v2 .app-transactional-decision-modal .rich-mpnl-body {
	box-sizing: border-box;
	padding: 0 !important;
	background: #ffffff !important;
	overflow: hidden;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-content,
body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-content {
	box-sizing: border-box;
	max-height: calc(100vh - 158px);
	max-height: calc(100dvh - 158px);
	padding: 18px 20px 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-panel,
body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-fields,
body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-fields,
body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-inline-fields,
body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-scroll {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-fields .name,
body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-fields .value {
	box-sizing: border-box;
	display: block;
	float: none;
	width: 100%;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-fields .name {
	padding: 0 0 5px;
	color: #10213d;
	font-weight: 700;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-fields .value {
	padding: 0 0 12px;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-inline-fields {
	width: 100% !important;
	table-layout: fixed;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-inline-fields > tbody > tr > td {
	box-sizing: border-box;
	width: 50%;
	padding: 0 12px 0 0;
	vertical-align: top;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-inline-fields > tbody > tr > td + td {
	padding-right: 0;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-fields input[type="text"],
body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-fields select,
body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-fields textarea {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100%;
	min-height: 38px;
}

/* O fechamento e os campos seguem o piloto de atesto, sem alterar o
 * componente RichFaces nem o formulário que contém as ações transacionais. */
body.ug-theme-v2 .app-transactional-decision-modal .app-modal-close-button,
body.ug-theme-v2 .app-transactional-decision-modal .app-modal-close-control {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 7px;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-actions,
body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-actions {
	box-sizing: border-box;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	width: calc(100% + 40px);
	margin: 4px -20px 0;
	padding: 16px 20px;
	border-top: 1px solid #dce5ef;
	background: #ffffff;
	position: -webkit-sticky;
	position: sticky;
	bottom: 0;
	z-index: 1;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-actions > span,
body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-actions > span {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-actions .app-button,
body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-actions input,
body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-actions .app-button,
body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-actions input {
	box-sizing: border-box;
	/* A regra legada global fixa botões em 100px; decisões transacionais
	 * precisam acomodar o rótulo inteiro e quebrar somente entre ações. */
	width: auto;
	max-width: 100%;
	min-width: 120px;
	min-height: 40px !important;
	padding-right: 16px;
	padding-left: 16px;
	white-space: nowrap;
}

/* Tela piloto: Atestar recebimento físico. Os mesmos dados existentes são
 * apenas organizados como cartões de contexto; nenhuma informação é criada. */
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-fields,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-fields,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-fields,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-transactional-decision-context-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 66px;
	padding: 12px 14px;
	border: 1px solid #dce5ef;
	border-radius: 7px;
	background: #f9fbfd;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-transactional-decision-context-label {
	display: block;
	margin-bottom: 4px;
	color: #52647d;
	font-size: 12px;
	font-weight: 600;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-transactional-decision-context-value {
	display: block;
	color: #10213d;
	font-size: 14px;
	font-weight: 700;
	word-break: break-word;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-transactional-decision-context-total .app-transactional-decision-context-value {
	color: #008b9a;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-fields .rich-decorate,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-fields .rich-decorate,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-fields .rich-decorate,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-observation {
	grid-column: 1 / -1;
}

/* Atestar, contabilizar e aprovar pedido: preservar todos os dados, usando uma
 * leitura mais densa e evitando que os rótulos das ações sejam truncados. */
body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-content.app-supplier-order-attestation-modal-content,
body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-content.app-supplier-order-accounting-modal-content,
body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-content.app-supplier-order-email-modal-content,
body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-content.app-supplier-order-reversal-modal-content {
	padding-top: 14px;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-fields,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-fields,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-fields,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-fields {
	gap: 8px;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-fields .app-transactional-decision-context-card,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-fields .app-transactional-decision-context-card,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-fields .app-transactional-decision-context-card,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-fields .app-transactional-decision-context-card {
	min-height: 54px;
	padding: 9px 11px;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-fields .app-transactional-decision-context-label,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-fields .app-transactional-decision-context-label,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-fields .app-transactional-decision-context-label,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-fields .app-transactional-decision-context-label {
	margin-bottom: 2px;
	font-size: 11px;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-fields .app-transactional-decision-context-value,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-fields .app-transactional-decision-context-value,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-fields .app-transactional-decision-context-value,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-fields .app-transactional-decision-context-value {
	font-size: 13px;
	line-height: 1.25;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-fields textarea.app-control-textarea,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-fields textarea.app-control-textarea,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-fields textarea.app-control-textarea {
	height: 96px;
	min-height: 96px;
	resize: vertical;
}

body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-fields .app-transactional-decision-question,
body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-content .app-transactional-decision-question {
	display: block;
	color: #10213d;
	font-weight: 700;
}

@media screen and (min-width: 768px) {
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-actions,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-actions,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-actions,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-actions {
		gap: 8px;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-actions > span,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-actions > span,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-actions > span,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-actions > span {
		flex-wrap: nowrap;
		gap: 8px;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-actions .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-actions input,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-actions .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-actions input,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-actions .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-actions input,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-actions .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-actions input {
		width: auto !important;
		max-width: none;
		padding-right: 16px;
		padding-left: 16px;
		white-space: nowrap;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-actions .app-form-modal-primary .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-actions .app-form-modal-primary input,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-actions .app-form-modal-primary .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-actions .app-form-modal-primary input,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-actions .app-form-modal-primary .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-actions .app-form-modal-primary input,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-actions .app-confirmation-modal-primary .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-actions .app-confirmation-modal-primary input {
		min-width: 140px;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-actions .app-form-modal-secondary .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-actions .app-form-modal-secondary input,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-actions .app-form-modal-secondary .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-actions .app-form-modal-secondary input,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-actions .app-form-modal-secondary .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-actions .app-form-modal-secondary input,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-actions .app-confirmation-modal-secondary .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-actions .app-confirmation-modal-secondary input {
		min-width: 132px;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-transactional-decision-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-transactional-decision-modal.app-richfaces-responsive-modal-container .app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ugestor .app-transactional-decision-modal.app-richfaces-responsive-modal-container.app-richfaces-responsive-modal-shell,
	body.ug-theme-v2.app-theme-ruby .app-transactional-decision-modal.app-richfaces-responsive-modal-container.app-richfaces-responsive-modal-shell {
		width: calc(100vw - 32px) !important;
		max-width: calc(100vw - 32px) !important;
		max-height: calc(100vh - 32px) !important;
		max-height: calc(100dvh - 32px) !important;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .rich-mpnl-header {
		min-height: 56px;
		padding: 14px 16px !important;
		font-size: 15px;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-content,
	body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-content {
		max-height: calc(100vh - 136px);
		max-height: calc(100dvh - 136px);
		padding: 14px 16px 0;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-inline-fields,
	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-inline-fields > tbody,
	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-inline-fields > tbody > tr,
	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-inline-fields > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100%;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-inline-fields > tbody > tr > td {
		padding: 0;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-fields input[type="text"],
	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-fields select,
	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-fields textarea {
		width: 100% !important;
		min-height: 44px;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-actions,
	body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-actions {
		width: calc(100% + 32px);
		margin-right: -16px;
		margin-left: -16px;
		padding: 12px 16px;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-actions > span,
	body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-actions > span,
	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-actions .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-form-modal-actions input,
	body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-actions .app-button,
	body.ug-theme-v2 .app-transactional-decision-modal .app-confirmation-modal-actions input {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
		min-height: 44px !important;
	}

	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-attestation-modal-fields,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-accounting-modal-fields,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-email-modal-fields,
	body.ug-theme-v2 .app-transactional-decision-modal .app-supplier-order-reversal-modal-fields {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Ordem de producao: confirmacao segue a composicao do modal de atesto do
 * Pedido. O escopo preserva calendarios, actions e Ajax desta operacao. */
body.ug-theme-v2 .app-production-order-decision-modal {
	box-sizing: border-box !important;
	width: 540px !important;
	max-width: calc(100vw - 32px) !important;
}

body.ug-theme-v2 .app-production-order-decision-modal .rich-mpnl-panel,
body.ug-theme-v2 .app-production-order-decision-modal .rich-mpnl-shadow,
body.ug-theme-v2 .app-production-order-decision-modal .rich-mpnl-content {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.ug-theme-v2 .app-production-order-decision-modal .rich-mpnl-header {
	min-height: 72px;
	padding: 21px 40px !important;
}

body.ug-theme-v2 .app-production-order-decision-modal .rich-mpnl-controls {
	top: 16px !important;
	right: 24px !important;
}

body.ug-theme-v2 .app-production-order-decision-modal .app-modal-close-button {
	width: 40px;
	height: 40px;
	min-width: 40px;
}

body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-content {
	padding: 28px 40px 0 !important;
}

body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-fields {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 33px !important;
}

body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-fields .rich-decorate {
	box-sizing: border-box;
	margin: 0 !important;
}

body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-fields .name {
	padding-bottom: 10px;
}

body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-fields .value {
	padding-bottom: 0;
	white-space: nowrap;
}

body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-fields .rich-calendar-input {
	box-sizing: border-box;
	display: inline-block !important;
	width: calc(100% - 35px) !important;
	max-width: calc(100% - 35px) !important;
	min-height: 36px !important;
	border-radius: 6px !important;
}

body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-fields .rich-calendar-button {
	box-sizing: border-box;
	display: inline-block !important;
	width: 30px !important;
	height: 30px !important;
	margin-left: 5px !important;
	border-radius: 6px !important;
	vertical-align: middle;
}

body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-actions {
	justify-content: flex-end !important;
	width: calc(100% + 80px) !important;
	margin: 37px -40px 0 !important;
	padding: 14px 24px !important;
}

body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-actions > span {
	flex-wrap: nowrap;
	gap: 14px;
}

body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-actions .app-button,
body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-actions input {
	width: auto !important;
	min-width: 112px;
	min-height: 44px !important;
	padding-right: 16px;
	padding-left: 16px;
	white-space: nowrap;
}

/* Consulta de Ordem de Producao: organiza somente o corpo interno do filtro.
 * Controles, bindings, Ajax e rodape de exportacao continuam os originais. */
body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 64px;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-field {
	box-sizing: border-box;
	min-width: 0;
	margin: 0 !important;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-left {
	grid-column: 1;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-right {
	grid-column: 2;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-row-1 {
	grid-row: 1;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-row-2 {
	grid-row: 2;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-row-3 {
	grid-row: 3;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-row-4 {
	grid-row: 4;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-row-5 {
	grid-row: 5;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-row-6 {
	grid-row: 6;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter .prop,
body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-field > table {
	box-sizing: border-box;
	width: 100% !important;
	margin: 0 !important;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter .prop {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	min-height: 48px;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter .prop > .name,
body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-field > table .name {
	box-sizing: border-box;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter .prop > .value,
body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-field > table .value {
	box-sizing: border-box;
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter .prop > .value > input,
body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter .prop > .value > select,
body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-field > table .value > input,
body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-field > table .value > select {
	box-sizing: border-box;
	width: 100% !important;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-date-range {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-date-range .rich-calendar-input {
	box-sizing: border-box;
	width: 118px !important;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-date-separator {
	flex: 0 0 auto;
	padding: 0 2px;
}

body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter .app-autocomplete-control,
body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter .app-autocomplete-input {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
}

@media screen and (max-width: 1199px) {
	body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter {
		gap: 14px 32px;
	}

	body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter .prop {
		grid-template-columns: 150px minmax(0, 1fr);
		gap: 10px;
	}
}

@media screen and (max-width: 899px) {
	body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-left,
	body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-right {
		grid-column: 1;
		grid-row: auto;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter {
		gap: 12px;
	}

	body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter .prop {
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
		min-height: 0;
	}

	body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-date-range {
		gap: 6px;
	}

	body.ug-theme-v2 .conteudo .app-production-order-query-form .ug-production-order-filter-date-range .rich-calendar-input {
		width: calc((100vw - 132px) / 2) !important;
		min-width: 0;
	}
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2 .app-production-order-decision-modal {
		width: calc(100vw - 32px) !important;
		max-width: calc(100vw - 32px) !important;
	}

	body.ug-theme-v2 .app-production-order-decision-modal .rich-mpnl-header {
		min-height: 56px;
		padding: 14px 56px 14px 20px !important;
	}

	body.ug-theme-v2 .app-production-order-decision-modal .rich-mpnl-controls {
		top: 10px !important;
		right: 14px !important;
	}

	body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-content {
		padding: 20px 20px 0;
	}

	body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-fields {
		gap: 20px;
	}

	body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-actions {
		width: calc(100% + 40px);
		margin: 20px -20px 0;
		padding: 12px 16px;
	}

	body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-actions > span,
	body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-actions .app-button,
	body.ug-theme-v2 .app-production-order-decision-modal .app-production-order-decision-modal-actions input {
		width: 100% !important;
	}
}

/* Ordem de producao: sobreposicao final do RichFaces para o modal de
 * componentes. A classe e exclusiva da OP e vence a imagem de fundo legada. */
body.ug-theme-v2.app-theme-ugestor .app-production-product-components-modal .rich-mpnl-header,
body.ug-theme-v2.app-theme-ruby .app-production-product-components-modal .rich-mpnl-header {
	background-color: #092552 !important;
	background-image: none !important;
	color: #ffffff !important;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2.app-theme-ugestor .app-production-product-components-modal .rich-mpnl-header,
	body.ug-theme-v2.app-theme-ruby .app-production-product-components-modal .rich-mpnl-header {
		padding-right: 52px !important;
	}
}

/* Retorno de contas a receber: card de envio isolado para não herdar a
 * aparência legada do rich:fileUpload. A seleção e o upload continuam sendo
 * executados exclusivamente pelo componente RichFaces já existente. */
body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-upload-section {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-top: 18px;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-upload {
	margin-top: 12px;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone {
	box-sizing: border-box;
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	min-height: 150px;
	padding: 24px 28px;
	border: 1px dashed #63aeb8;
	border-radius: 12px;
	background: linear-gradient(135deg, #f4fcfc 0%, #ffffff 64%);
	box-shadow: 0 8px 20px rgba(9, 37, 82, .06);
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone-active {
	border-color: #ff5a1f;
	background: #fff8f4;
	box-shadow: 0 0 0 4px rgba(255, 90, 31, .10), 0 10px 24px rgba(9, 37, 82, .08);
	transform: translateY(-1px);
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone-icon {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 58px;
	width: 58px;
	height: 58px;
	border: 1px solid #b6e0e5;
	border-radius: 16px;
	background: #e5f7f8;
	color: #008b99;
	font-size: 29px;
	line-height: 1;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
	color: #516a7f;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone-kicker {
	color: #008b99;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: .09em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone-content > strong {
	color: #092552;
	font-size: 17px;
	line-height: 1.3;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone-description {
	font-size: 13px;
	line-height: 1.5;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone-help {
	margin-top: 3px;
	color: #63798d;
	font-size: 12px;
	line-height: 1.45;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone-help .fa {
	margin-right: 5px;
	color: #0099aa;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker {
	flex: 0 0 auto;
	min-width: 172px;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-list-decor {
	width: auto !important;
	min-width: 172px;
	border: 0 !important;
	background: transparent !important;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-toolbar-decor {
	width: auto !important;
	min-width: 172px;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent !important;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-button-border {
	float: none;
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-button,
body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-button-light,
body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-button-press {
	box-sizing: border-box;
	width: 172px;
	min-height: 44px;
	border: 1px solid #ff5a1f !important;
	border-radius: 7px;
	background: #ff5a1f !important;
	box-shadow: 0 5px 10px rgba(255, 90, 31, .20);
	color: #ffffff !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: bold;
	line-height: 42px;
	text-align: center;
	transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-button-light,
body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-button-press {
	background: #e64a19 !important;
	box-shadow: 0 6px 13px rgba(255, 90, 31, .27);
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-button-content {
	box-sizing: border-box;
	width: 172px;
	min-height: 44px;
	padding: 0 16px;
	color: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: bold;
	line-height: 42px;
	text-align: center;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-button > div[style*="overflow"] {
	width: 172px !important;
	height: 44px !important;
	overflow: hidden !important;
	cursor: pointer;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker input[type="file"] {
	cursor: pointer !important;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state {
	margin-top: 12px;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-pending {
	box-sizing: border-box;
	display: none;
	align-items: center;
	gap: 11px;
	width: 100%;
	min-height: 60px;
	padding: 11px 13px;
	border: 1px solid #b9dfe4;
	border-radius: 10px;
	background: #f5fcfd;
	box-shadow: 0 4px 12px rgba(9, 37, 82, .04);
	color: #31546c;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-pending .fa {
	flex: 0 0 28px;
	color: #008b99;
	font-size: 22px;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-pending div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-pending strong {
	color: #092552;
	font-size: 13px;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-pending span {
	font-size: 12px;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-empty {
	display: flex;
	align-items: center;
	gap: 7px;
	min-height: 20px;
	padding: 4px 5px;
	color: #63798d;
	font-size: 12px;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-empty .fa {
	color: #0099aa;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-ready {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 68px;
	padding: 11px 13px;
	border: 1px solid #b9dfe4;
	border-radius: 10px;
	background: #f5fcfd;
	box-shadow: 0 4px 12px rgba(9, 37, 82, .04);
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-icon {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #ddf4f6;
	color: #008b99;
	font-size: 20px;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-label {
	color: #008b99;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-name {
	overflow: hidden;
	color: #092552;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-action {
	flex: 0 0 auto;
	margin-left: auto;
}

body.ug-theme-v2 .app-receipt-return-query-form input.app-receipt-return-remove-button {
	box-sizing: border-box;
	min-width: 138px;
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid #d8e2e8 !important;
	border-radius: 7px;
	background: #ffffff !important;
	box-shadow: none;
	color: #31546c !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: bold;
	line-height: 18px;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

body.ug-theme-v2 .app-receipt-return-query-form input.app-receipt-return-remove-button:hover,
body.ug-theme-v2 .app-receipt-return-query-form input.app-receipt-return-remove-button:focus {
	border-color: #e7a38d !important;
	background: #fff8f5 !important;
	box-shadow: 0 3px 8px rgba(9, 37, 82, .06);
	color: #c64720 !important;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 14px;
		padding: 20px;
	}

	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone-icon {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
		border-radius: 13px;
		font-size: 24px;
	}

	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-dropzone-content {
		flex-basis: calc(100% - 62px);
	}

	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker,
	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-list-decor,
	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-toolbar-decor,
	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-button,
	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-button-content,
	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-picker .rich-fileupload-button > div[style*="overflow"] {
		flex-basis: 100%;
		width: 100%;
	}

	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-ready {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-content {
		flex-basis: calc(100% - 52px);
	}

	body.ug-theme-v2 .app-receipt-return-query-form .app-receipt-return-file-state-action,
	body.ug-theme-v2 .app-receipt-return-query-form input.app-receipt-return-remove-button {
		width: 100%;
	}
}

/* Anexo de pedido e ordem de faturamento: mesma linguagem visual do upload de
 * retorno. O rich:fileUpload continua responsável pelo envio imediato. */
body.ug-theme-v2 .app-document-attachment-upload .app-receipt-return-upload {
	margin-top: 0;
}

body.ug-theme-v2 .app-document-attachment-upload .app-document-attachment-upload-history {
	margin-top: 12px;
}

body.ug-theme-v2 .app-document-attachment-upload .app-document-attachment-upload-history-item {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	padding: 3px 0;
	border-top: 1px dotted #c9dde1;
	color: #516a7f;
	font-size: 11px;
	line-height: 1.4;
}

body.ug-theme-v2 .app-document-attachment-upload .app-document-attachment-upload-history-item:first-of-type {
	margin-top: 4px;
}

body.ug-theme-v2 .app-document-attachment-upload .app-document-attachment-upload-history-item .fa {
	margin-top: 1px;
	color: #0099aa;
}

/* Toast global: confirmações breves não interrompem o fluxo operacional. */
body.ug-theme-v2 .app-toast-notification {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 4100;
	display: flex;
	align-items: flex-start;
	width: min(420px, calc(100vw - 32px));
	box-sizing: border-box;
	gap: 12px;
	padding: 14px 14px 14px 16px;
	border: 1px solid #b8e5d0;
	border-left: 4px solid #0a9b69;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(8, 20, 47, .2);
	color: #163d62;
	opacity: 0;
	transform: translateY(-12px);
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
}

body.ug-theme-v2 .app-toast-notification.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

body.ug-theme-v2 .app-toast-notification-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #0a9b69;
	color: #ffffff;
	font-size: 12px;
}

body.ug-theme-v2 .app-toast-notification-content {
	min-width: 0;
	flex: 1 1 auto;
	padding-top: 2px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	overflow-wrap: anywhere;
	word-break: break-word;
}

body.ug-theme-v2 .app-toast-notification-message,
body.ug-theme-v2 .app-toast-notification-message ul,
body.ug-theme-v2 .app-toast-notification-message li {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	list-style: none;
}

body.ug-theme-v2 .app-toast-notification-close {
	width: 30px;
	height: 30px;
	margin: -3px -3px 0 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #526b83;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

body.ug-theme-v2 .app-toast-notification-close:hover,
body.ug-theme-v2 .app-toast-notification-close:focus {
	background: #edf5f3;
	color: #163d62;
	outline: 2px solid #0a9b69;
	outline-offset: 1px;
}

@media screen and (max-width: 767px) {
	body.ug-theme-v2 .app-toast-notification {
		top: 14px;
		right: 16px;
		width: calc(100vw - 32px);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ug-theme-v2 .app-toast-notification {
		transition: none;
	}
}

/* Redimensionamento compartilhado de colunas nas tabelas app-query-table. */
body.ug-theme-v2 .app-query-table-scroll {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

body.ug-theme-v2 .app-query-table th {
	position: relative;
}

body.ug-theme-v2 .app-query-sortable-header {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: calc(100% - 12px);
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-decoration: none;
}

body.ug-theme-v2 .app-query-sortable-header:hover,
body.ug-theme-v2 .app-query-sortable-header:focus {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.ug-theme-v2 .app-query-sortable-header:focus {
	outline: 2px solid rgba(255, 255, 255, .86);
	outline-offset: 2px;
}

body.ug-theme-v2 .app-query-sortable-header-label {
	overflow: hidden;
	text-overflow: ellipsis;
}

body.ug-theme-v2 .app-query-sortable-header-indicator {
	flex: 0 0 auto;
	font-size: 9px;
	line-height: 1;
}

body.ug-theme-v2 .app-query-sortable-header-indicator-idle {
	opacity: .62;
}

body.ug-theme-v2 .app-query-table-column-resizer {
	position: absolute;
	top: 0;
	right: -7px;
	z-index: 3;
	display: block;
	width: 14px;
	height: 100%;
	min-height: 36px;
	cursor: col-resize;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

body.ug-theme-v2 .app-query-table-column-resizer:before {
	position: absolute;
	top: 9px;
	bottom: 9px;
	left: 6px;
	width: 2px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .34);
	content: "";
	opacity: 1;
	transition: background .14s ease, box-shadow .14s ease;
}

body.ug-theme-v2 .app-query-table th:hover .app-query-table-column-resizer:before,
body.ug-theme-v2 .app-query-table-column-resizer:focus:before,
body.ug-theme-v2 .app-query-table-resizing .app-query-table-column-resizer:before {
	opacity: 1;
	background: #ff8a5c;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .2);
}

body.ug-theme-v2 .app-query-table-column-resizer:focus {
	outline: 2px solid rgba(255, 255, 255, .86);
	outline-offset: -2px;
}

body.ug-theme-v2 .app-query-table-resizing,
body.ug-theme-v2 .app-query-table-resizing * {
	cursor: col-resize !important;
	-webkit-user-select: none;
	user-select: none;
}

@media (prefers-reduced-motion: reduce) {
	body.ug-theme-v2 .app-query-table-column-resizer:before {
		transition: none;
	}
}

/* Consulta de lançamentos contábeis: aderência à composição de consulta de Produtos. */
body.ug-theme-v2.app-theme-ugestor .conteudo .app-accounting-entry-query .app-accounting-entry-filter-grid,
body.ug-theme-v2.app-theme-ruby .conteudo .app-accounting-entry-query .app-accounting-entry-filter-grid {
	display: grid !important;
	grid-template-columns: minmax(160px, 1fr) minmax(130px, .72fr) minmax(180px, 1fr);
	gap: 14px 18px;
	width: 100% !important;
	max-width: none !important;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-accounting-entry-query .app-accounting-entry-filter-field,
body.ug-theme-v2.app-theme-ruby .conteudo .app-accounting-entry-query .app-accounting-entry-filter-field {
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-accounting-entry-query .app-accounting-entry-filter-field-texto,
body.ug-theme-v2.app-theme-ruby .conteudo .app-accounting-entry-query .app-accounting-entry-filter-field-texto {
	grid-column: span 2;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-accounting-entry-query .app-accounting-entry-filter-field input.app-control,
body.ug-theme-v2.app-theme-ruby .conteudo .app-accounting-entry-query .app-accounting-entry-filter-field input.app-control,
body.ug-theme-v2.app-theme-ugestor .conteudo .app-accounting-entry-query .app-accounting-entry-filter-field select.app-control,
body.ug-theme-v2.app-theme-ruby .conteudo .app-accounting-entry-query .app-accounting-entry-filter-field select.app-control {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-accounting-entry-result-panel > .rich-panel-body,
body.ug-theme-v2.app-theme-ruby .conteudo .app-accounting-entry-result-panel > .rich-panel-body {
	padding: 18px 20px !important;
}

@media screen and (min-width: 701px) and (max-width: 1023px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-accounting-entry-query .app-accounting-entry-filter-grid,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-accounting-entry-query .app-accounting-entry-filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 700px) {
	body.ug-theme-v2.app-theme-ugestor .conteudo .app-accounting-entry-query .app-accounting-entry-filter-grid,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-accounting-entry-query .app-accounting-entry-filter-grid {
		grid-template-columns: 1fr;
	}

	body.ug-theme-v2.app-theme-ugestor .conteudo .app-accounting-entry-query .app-accounting-entry-filter-field-texto,
	body.ug-theme-v2.app-theme-ruby .conteudo .app-accounting-entry-query .app-accounting-entry-filter-field-texto {
		grid-column: auto;
	}
}

body.ug-theme-v2.app-theme-ugestor .conteudo .app-accounting-entry-result-panel .app-accounting-entry-empty-state,
body.ug-theme-v2.app-theme-ruby .conteudo .app-accounting-entry-result-panel .app-accounting-entry-empty-state {
	min-height: 36px !important;
	margin: 0 !important;
	padding: 16px 20px !important;
}

/* Campos compostos e seletores de pagamento reutilizáveis em manutenções. */
body.ug-theme-v2 .conteudo .app-maintenance-fields-grid {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
}

body.ug-theme-v2 .conteudo .app-maintenance-field-cell {
	box-sizing: border-box;
	padding-right: 16px;
	vertical-align: top;
}

body.ug-theme-v2 .conteudo .app-payment-method-selection {
	box-sizing: border-box;
	max-width: 100%;
	overflow-x: auto;
}

body.ug-theme-v2 .conteudo .app-payment-method-selector {
	box-sizing: border-box;
	width: 100%;
	min-width: 660px;
	table-layout: fixed;
}

body.ug-theme-v2 .conteudo .app-payment-method-selector-card {
	box-sizing: border-box;
	width: 100%;
	text-align: center;
}

body.ug-theme-v2 .conteudo .app-fiscal-entry-history {
	width: 350px;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media screen and (max-width: 700px) {
	body.ug-theme-v2 .conteudo .app-maintenance-fields-grid,
	body.ug-theme-v2 .conteudo .app-maintenance-fields-grid > tbody,
	body.ug-theme-v2 .conteudo .app-maintenance-fields-grid > tbody > tr,
	body.ug-theme-v2 .conteudo .app-maintenance-fields-grid > tbody > tr > td {
		display: block;
		box-sizing: border-box;
		width: 100%;
	}

	body.ug-theme-v2 .conteudo .app-maintenance-field-cell {
		padding-right: 0;
	}
}

/* Retorno do login biometrico no PWA: estado final focado, sem o chrome
 * externo do ERP e sem alterar o redirecionamento seguro realizado pela tela. */
body.ug-theme-v2.app-ecosystem-auth-complete-layout {
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	overflow-x: hidden;
	background:
		radial-gradient(circle at 12% 18%, rgba(25, 201, 232, .13), transparent 28%),
		radial-gradient(circle at 88% 82%, rgba(255, 90, 31, .11), transparent 30%),
		linear-gradient(145deg, #f7fbfd 0%, #ffffff 48%, #fff8f4 100%);
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .body {
	box-sizing: border-box;
	width: 100% !important;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .conteudo {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 !important;
	padding: clamp(24px, 5vw, 64px) !important;
	background: transparent;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .conteudo > br {
	display: none;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-form {
	box-sizing: border-box;
	width: 100%;
	max-width: 620px;
	margin: 0;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete {
	box-sizing: border-box;
	min-height: 0;
	margin: 0 !important;
	padding: 0;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 620px;
	margin: 0;
	padding: clamp(32px, 6vw, 54px);
	overflow: hidden;
	border: 1px solid rgba(129, 157, 177, .26);
	border-radius: 24px;
	background: rgba(255, 255, 255, .96);
	color: #10213d;
	text-align: center;
	box-shadow: 0 24px 70px rgba(8, 20, 47, .14);
	backdrop-filter: blur(12px);
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card::before,
body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card::after {
	position: absolute;
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card::before {
	width: 210px;
	height: 210px;
	top: -135px;
	right: -92px;
	border: 1px solid rgba(255, 90, 31, .18);
	background: rgba(255, 90, 31, .07);
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card::after {
	width: 140px;
	height: 140px;
	bottom: -96px;
	left: -64px;
	border: 1px solid rgba(0, 148, 167, .16);
	background: rgba(0, 148, 167, .05);
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-brand {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin: 0 0 28px;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-logo {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 52px;
	object-fit: contain;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-icon {
	position: relative;
	z-index: 1;
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin: 0 0 22px;
	border: 1px solid #99d8cb;
	border-radius: 50%;
	background: linear-gradient(145deg, #e9faf5 0%, #d9f3ec 100%);
	color: #087d70;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 10px 24px rgba(8, 125, 112, .14);
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card .app-ecosystem-auth-callback-eyebrow {
	position: relative;
	z-index: 1;
	display: block;
	margin: 0 0 10px;
	color: #e94a16;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.35;
	text-transform: uppercase;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card h2 {
	position: relative;
	z-index: 1;
	margin: 0;
	color: #10213d;
	font-size: clamp(27px, 5vw, 36px);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.12;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card p {
	position: relative;
	z-index: 1;
	max-width: 440px;
	margin: 14px auto 0;
	color: #5c7089;
	font-size: 15px;
	line-height: 1.6;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-progress {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(100%, 300px);
	height: 5px;
	margin: 26px auto 24px;
	overflow: hidden;
	border-radius: 999px;
	background: #e5edf2;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-progress > span {
	display: block;
	width: 46%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #008f99 0%, #25c4ca 100%);
	animation: app-ecosystem-auth-complete-progress 1.25s ease-in-out infinite alternate;
}

@keyframes app-ecosystem-auth-complete-progress {
	from { transform: translateX(0); }
	to { transform: translateX(117%); }
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-action {
	position: relative;
	z-index: 1;
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: min(100%, 360px);
	min-height: 52px;
	padding: 13px 22px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #ff6b2c 0%, #f04409 100%);
	color: #ffffff;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	box-shadow: 0 12px 28px rgba(240, 68, 9, .22);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-action:hover,
body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-action:focus {
	background: linear-gradient(135deg, #f45a1b 0%, #d93b07 100%);
	outline: 3px solid rgba(240, 68, 9, .18);
	outline-offset: 3px;
	box-shadow: 0 14px 32px rgba(240, 68, 9, .28);
	transform: translateY(-1px);
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-action > span {
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card .app-ecosystem-auth-callback-guidance {
	position: relative;
	z-index: 1;
	display: block;
	max-width: 390px;
	margin: 18px auto 0;
	color: #7a8ba0;
	font-size: 12px;
	line-height: 1.5;
}

@media screen and (max-width: 600px) {
	body.ug-theme-v2.app-ecosystem-auth-complete-layout .conteudo {
		align-items: center;
		padding: 18px !important;
	}

	body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card {
		padding: 30px 22px;
		border-radius: 20px;
	}

	body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-brand {
		min-height: 44px;
		margin-bottom: 22px;
	}

	body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-logo {
		max-width: 164px;
		max-height: 44px;
	}

	body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-icon {
		width: 60px;
		height: 60px;
		margin-bottom: 18px;
		font-size: 28px;
	}

	body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card h2 {
		font-size: clamp(25px, 8vw, 31px);
	}

	body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-card p {
		font-size: 14px;
	}

	body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-action {
		width: 100%;
		min-height: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-progress > span {
		width: 100%;
		animation: none;
	}

	body.ug-theme-v2.app-ecosystem-auth-complete-layout .app-ecosystem-auth-complete-action {
		transition: none;
	}
}

/* ==========================================================================
   Modal "Selecionar contas bancarias" (app-bank-account-selection-modal)
 
   Causas no CSS atual:
   1) .app-query-results (linha ~4758) e display:flex + flex-direction:column +
      justify-content:center. O mesmo <div> tem app-form-modal-scroll
      (max-height:400px; overflow:auto). Quando a lista passa de 400px, o
      conteudo e centralizado e o excesso e dividido entre topo e base. A parte
      do topo (cabecalho e primeiras contas) fica inalcancavel pela rolagem e
      so metade do excesso e rolavel.
   2) Em telas <=767px, a regra ".conteudo .app-query-table-scroll > table.rich-table"
      (linha ~22650) forca width:auto !important e max-width:none !important na
      tabela, gerando barra horizontal que cobre a ultima linha.
   3) .app-query-results .app-query-table-scroll (linha ~4782) e a regra de
      ".conteudo .app-query-table-scroll" (<=1199px, linha ~21682) usam
      overflow-y:visible, que reduz a clareza de qual elemento rola.
   ========================================================================== */
 
/* 1) Lista rolavel: sem centralizacao flex, altura limitada ao viewport */
.app-bank-account-selection-modal .app-query-results.app-form-modal-scroll {
	display: block;
	justify-content: flex-start;
	box-sizing: border-box;
	width: 100%;
	margin-top: 0;
	max-height: 400px;
	max-height: min(400px, calc(100vh - 320px));
	max-height: min(400px, calc(100dvh - 320px));
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
 
/* 2) Tabela ocupa a largura da area (sem barra horizontal) */
.app-bank-account-selection-modal .app-query-table-scroll > table.rich-table,
.app-bank-account-selection-modal .app-query-table-scroll > table.rich-dt,
body.app-theme-ugestor .app-bank-account-selection-modal .app-query-table-scroll > table.rich-table,
body.app-theme-ruby .app-bank-account-selection-modal .app-query-table-scroll > table.rich-table,
body.app-theme-ugestor .app-bank-account-selection-modal .app-query-table-scroll > table.rich-dt,
body.app-theme-ruby .app-bank-account-selection-modal .app-query-table-scroll > table.rich-dt {
	width: 100% !important;
	max-width: 100% !important;
	table-layout: auto;
}
 
/* 3) Cabecalho fixo enquanto a lista rola */
.app-bank-account-selection-modal .app-compact-modal-grid .rich-table-headercell,
.app-bank-account-selection-modal .app-compact-modal-grid .rich-table-subheadercell {
	position: sticky;
	top: 0;
	z-index: 2;
}
 
/* Botoes sempre visiveis abaixo da lista */
.app-bank-account-selection-modal .app-form-modal-actions {
	flex: 0 0 auto;
	margin-top: 12px;
}

.app-bank-account-selection-modal .app-query-results.app-form-modal-scroll {
	display: block !important;
	justify-content: flex-start !important;
}
