@media (min-width: 768px) { .container { width: 90% !important; } }
@media (max-width: 767px) { .detail_view { padding: 0; } }
@media print {
	a[href]:after { content: "" !important; }
	.container { width: 98% !important; }
}

.rtl { direction: rtl !important; }
.ltr { direction: ltr !important; }

.navbar-brand { text-transform: capitalize; }

table a, .table a { text-decoration: none !important; }

#children-tabs li a { display: block !important; }

.hidden { visibility: hidden !important; }

iframe { border: none; overflow: auto; }

.tab-content { padding: 10px 20px; border: 1px solid #DDDDDD; border-top: none; }

#pc-loading { background: none repeat scroll 0 0 yellow; font-family: arial; left: 10px; margin-top: -10px; opacity: 0.85; position: absolute; top: 20px; width: 150px; }

.navbar a.btn { margin-left: 10px; margin-right: 10px; }

.view-on-click a.btn { max-width: 75px; }

/* prevent prototype conflicts */
li.dropdown { display: block !important; }

/* horizontal spacer */
.hspacer-xs { margin-left: 0.1em; margin-right: 0.1em; }
.hspacer-sm { margin-left: 0.2em; margin-right: 0.2em; }
.hspacer-md { margin-left: 0.4em; margin-right: 0.4em; }
.hspacer-lg { margin-left: 0.8em; margin-right: 0.8em; }

/* right spacer in ltr context */
.container:not(.theme-rtl) .rspacer-xs, .container-fluid:not(.theme-rtl) .rspacer-xs { margin-right: 0.1em; }
.container:not(.theme-rtl) .rspacer-sm, .container-fluid:not(.theme-rtl) .rspacer-sm { margin-right: 0.2em; }
.container:not(.theme-rtl) .rspacer-md, .container-fluid:not(.theme-rtl) .rspacer-md { margin-right: 0.4em; }
.container:not(.theme-rtl) .rspacer-lg, .container-fluid:not(.theme-rtl) .rspacer-lg { margin-right: 0.8em; }

/* right spacer in rtl context */
.theme-rtl .rspacer-xs { margin-left: 0.1em; }
.theme-rtl .rspacer-sm { margin-left: 0.2em; }
.theme-rtl .rspacer-md { margin-left: 0.4em; }
.theme-rtl .rspacer-lg { margin-left: 0.8em; }

/* left spacer in ltr context */
.container:not(.theme-rtl) .lspacer-xs, .container-fluid:not(.theme-rtl) .lspacer-xs { margin-left: 0.1em; }
.container:not(.theme-rtl) .lspacer-sm, .container-fluid:not(.theme-rtl) .lspacer-sm { margin-left: 0.2em; }
.container:not(.theme-rtl) .lspacer-md, .container-fluid:not(.theme-rtl) .lspacer-md { margin-left: 0.4em; }
.container:not(.theme-rtl) .lspacer-lg, .container-fluid:not(.theme-rtl) .lspacer-lg { margin-left: 0.8em; }

/* left spacer in rtl context */
.theme-rtl .lspacer-xs { margin-right: 0.1em; }
.theme-rtl .lspacer-sm { margin-right: 0.2em; }
.theme-rtl .lspacer-md { margin-right: 0.4em; }
.theme-rtl .lspacer-lg { margin-right: 0.8em; }

/* vertical spacer */
.vspacer-xs { margin-top: 0.1em; margin-bottom: 0.1em; }
.vspacer-sm { margin-top: 0.2em; margin-bottom: 0.2em; }
.vspacer-md { margin-top: 0.4em; margin-bottom: 0.4em; }
.vspacer-lg { margin-top: 0.8em; margin-bottom: 0.8em; }

/* top spacer */
.tspacer-xs { margin-top: 0.1em; }
.tspacer-sm { margin-top: 0.2em; }
.tspacer-md { margin-top: 0.4em; }
.tspacer-lg { margin-top: 0.8em; }

/* bottom spacer */
.bspacer-xs { margin-bottom: 0.1em; }
.bspacer-sm { margin-bottom: 0.2em; }
.bspacer-md { margin-bottom: 0.4em; }
.bspacer-lg { margin-bottom: 0.8em; }

div.datePicker { font-size: 1.3em; }
.always_shown { display: inline !important; }
.always-shown-block { display: block !important; }
.always-shown-inline { display: inline !important; }
.always-shown-inline-block { display: inline-block !important; }
.text-bold { font-weight: bold; }
.text-italic { font-style: italic; }

/* .form-control, .help-block .alert { width: 90% !important; } */
.input-group .form-control { width: 100% !important; }
.admin-area .form-inline .form-control { width: auto !important; }
.panel .btn { overflow: hidden; }

.select2-container .select2-choice { height: 2.4em; line-height: 2.2em; }
.select2-container .select2-choice .select2-arrow b { background-position: 0 -0.1em; }

.navbar ul.dropdown-menu { max-height: 90vh; overflow-y: auto; }

.date_combo { padding-right: 0.5em; }
/* .date_combo select { width: 100% !important; padding-left: 0; padding-right: 0; } */

img[src="blank.gif"] { max-height: 10px !important; }

/* fix for scrolling wide tables horizontally on iOS, https://stackoverflow.com/a/39073181/1945185 */
.table-responsive .table {
	max-width: none;
	-webkit-overflow-scrolling: touch !important;
}

th.applicants_and_tenants-last_name, td.applicants_and_tenants-last_name {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.applicants_and_tenants-first_name, td.applicants_and_tenants-first_name {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.applicants_and_tenants-email, td.applicants_and_tenants-email {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
	word-break: break-all;
}
th.applicants_and_tenants-phone, td.applicants_and_tenants-phone {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.applicants_and_tenants-birth_date, td.applicants_and_tenants-birth_date {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.applicants_and_tenants-driver_license_number, td.applicants_and_tenants-driver_license_number {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.applicants_and_tenants-driver_license_state, td.applicants_and_tenants-driver_license_state {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.applicants_and_tenants-requested_lease_term, td.applicants_and_tenants-requested_lease_term {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.applicants_and_tenants-monthly_gross_pay, td.applicants_and_tenants-monthly_gross_pay {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.applicants_and_tenants-additional_income, td.applicants_and_tenants-additional_income {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.applicants_and_tenants-assets, td.applicants_and_tenants-assets {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.applicants_and_tenants-status, td.applicants_and_tenants-status {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.applicants_and_tenants-notes, td.applicants_and_tenants-notes {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.applications_leases-tenants, td.applications_leases-tenants {
	white-space: normal !important;
	width: 60px !important;
	min-width: 60px !important;
	overflow: hidden;
}
th.applications_leases-status, td.applications_leases-status {
	white-space: normal !important;
	width: 50px !important;
	min-width: 50px !important;
	overflow: hidden;
}
th.applications_leases-property, td.applications_leases-property {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.applications_leases-unit, td.applications_leases-unit {
	white-space: normal !important;
	width: 60px !important;
	min-width: 60px !important;
	overflow: hidden;
}
th.applications_leases-type, td.applications_leases-type {
	white-space: normal !important;
	width: 40px !important;
	min-width: 40px !important;
	overflow: hidden;
}
th.applications_leases-total_number_of_occupants, td.applications_leases-total_number_of_occupants {
	white-space: normal !important;
	width: 70px !important;
	min-width: 70px !important;
	overflow: hidden;
}
th.applications_leases-start_date, td.applications_leases-start_date {
	white-space: normal !important;
	width: 70px !important;
	min-width: 70px !important;
	overflow: hidden;
}
th.applications_leases-end_date, td.applications_leases-end_date {
	white-space: normal !important;
	width: 60px !important;
	min-width: 60px !important;
	overflow: hidden;
}
th.applications_leases-rent, td.applications_leases-rent {
	white-space: normal !important;
	width: 70px !important;
	min-width: 70px !important;
	overflow: hidden;
}
th.applications_leases-security_deposit, td.applications_leases-security_deposit {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.applications_leases-security_deposit_date, td.applications_leases-security_deposit_date {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.applications_leases-emergency_contact, td.applications_leases-emergency_contact {
	white-space: normal !important;
	width: 120px !important;
	min-width: 120px !important;
	overflow: hidden;
}
th.applications_leases-co_signer_details, td.applications_leases-co_signer_details {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.applications_leases-notes, td.applications_leases-notes {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.applications_leases-agreement, td.applications_leases-agreement {
	white-space: normal !important;
	width: 70px !important;
	min-width: 70px !important;
	overflow: hidden;
}
th.residence_and_rental_history-address, td.residence_and_rental_history-address {
	white-space: normal !important;
	width: 180px !important;
	min-width: 180px !important;
	overflow: hidden;
}
th.residence_and_rental_history-landlord_or_manager_name, td.residence_and_rental_history-landlord_or_manager_name {
	white-space: normal !important;
	width: 120px !important;
	min-width: 120px !important;
	overflow: hidden;
}
th.residence_and_rental_history-landlord_or_manager_phone, td.residence_and_rental_history-landlord_or_manager_phone {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.residence_and_rental_history-monthly_rent, td.residence_and_rental_history-monthly_rent {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.residence_and_rental_history-duration_of_residency_from, td.residence_and_rental_history-duration_of_residency_from {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.residence_and_rental_history-to, td.residence_and_rental_history-to {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.residence_and_rental_history-reason_for_leaving, td.residence_and_rental_history-reason_for_leaving {
	white-space: normal !important;
	width: 120px !important;
	min-width: 120px !important;
	overflow: hidden;
}
th.residence_and_rental_history-notes, td.residence_and_rental_history-notes {
	white-space: normal !important;
	width: 120px !important;
	min-width: 120px !important;
	overflow: hidden;
}
th.employment_and_income_history-employer_name, td.employment_and_income_history-employer_name {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.employment_and_income_history-city, td.employment_and_income_history-city {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.employment_and_income_history-employer_phone, td.employment_and_income_history-employer_phone {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.employment_and_income_history-employed_from, td.employment_and_income_history-employed_from {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.employment_and_income_history-employed_till, td.employment_and_income_history-employed_till {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.employment_and_income_history-occupation, td.employment_and_income_history-occupation {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.employment_and_income_history-notes, td.employment_and_income_history-notes {
	white-space: normal !important;
	width: 50px !important;
	min-width: 50px !important;
	overflow: hidden;
}
th.references-reference_name, td.references-reference_name {
	white-space: normal !important;
	width: 160px !important;
	min-width: 160px !important;
	overflow: hidden;
}
th.references-phone, td.references-phone {
	white-space: normal !important;
	width: 160px !important;
	min-width: 160px !important;
	overflow: hidden;
}
th.properties-property_name, td.properties-property_name {
	white-space: normal !important;
	width: 50px !important;
	min-width: 50px !important;
	overflow: hidden;
}
th.properties-photo, td.properties-photo {
	white-space: normal !important;
	width: 60px !important;
	min-width: 60px !important;
	overflow: hidden;
}
th.properties-type, td.properties-type {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.properties-number_of_units, td.properties-number_of_units {
	white-space: normal !important;
	width: 50px !important;
	min-width: 50px !important;
	overflow: hidden;
}
th.properties-owner, td.properties-owner {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.properties-operating_account, td.properties-operating_account {
	white-space: normal !important;
	width: 120px !important;
	min-width: 120px !important;
	overflow: hidden;
}
th.properties-property_reserve, td.properties-property_reserve {
	white-space: normal !important;
	width: 70px !important;
	min-width: 70px !important;
	overflow: hidden;
}
th.properties-street, td.properties-street {
	white-space: normal !important;
	width: 120px !important;
	min-width: 120px !important;
	overflow: hidden;
}
th.properties-City, td.properties-City {
	white-space: normal !important;
	width: 70px !important;
	min-width: 70px !important;
	overflow: hidden;
}
th.properties-State, td.properties-State {
	white-space: normal !important;
	width: 50px !important;
	min-width: 50px !important;
	overflow: hidden;
}
th.properties-ZIP, td.properties-ZIP {
	white-space: normal !important;
	width: 50px !important;
	min-width: 50px !important;
	overflow: hidden;
}
th.units-id, td.units-id {
	white-space: normal !important;
	width: 150px !important;
	min-width: 150px !important;
	overflow: hidden;
}
th.units-property, td.units-property {
	white-space: normal !important;
	width: 90px !important;
	min-width: 90px !important;
	overflow: hidden;
}
th.units-unit_number, td.units-unit_number {
	white-space: normal !important;
	width: 40px !important;
	min-width: 40px !important;
	overflow: hidden;
}
th.units-photo, td.units-photo {
	white-space: normal !important;
	width: 60px !important;
	min-width: 60px !important;
	overflow: hidden;
}
th.units-status, td.units-status {
	white-space: normal !important;
	width: 60px !important;
	min-width: 60px !important;
	overflow: hidden;
}
th.units-size, td.units-size {
	white-space: normal !important;
	width: 60px !important;
	min-width: 60px !important;
	overflow: hidden;
}
th.units-country, td.units-country {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.units-street, td.units-street {
	white-space: normal !important;
	width: 100px !important;
	min-width: 100px !important;
	overflow: hidden;
}
th.units-city, td.units-city {
	white-space: normal !important;
	width: 55px !important;
	min-width: 55px !important;
	overflow: hidden;
}
th.units-state, td.units-state {
	white-space: normal !important;
	width: 40px !important;
	min-width: 40px !important;
	overflow: hidden;
}
th.units-postal_code, td.units-postal_code {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}
th.units-rooms, td.units-rooms {
	white-space: normal !important;
	width: 45px !important;
	min-width: 45px !important;
	overflow: hidden;
}
th.units-bathroom, td.units-bathroom {
	white-space: normal !important;
	width: 70px !important;
	min-width: 70px !important;
	overflow: hidden;
}
th.units-features, td.units-features {
	white-space: normal !important;
	width: 150px !important;
	min-width: 150px !important;
	overflow: hidden;
}
th.units-rental_amount, td.units-rental_amount {
	white-space: normal !important;
	width: 60px !important;
	min-width: 60px !important;
	overflow: hidden;
}
th.units-deposit_amount, td.units-deposit_amount {
	white-space: normal !important;
	width: 50px !important;
	min-width: 50px !important;
	overflow: hidden;
}
th.units-description, td.units-description {
	white-space: normal !important;
	width: 80px !important;
	min-width: 80px !important;
	overflow: hidden;
}

/* fixes for glyph icons in some themes */
.glyphicon-camera:before { content: "\e046"; }
.glyphicon-lock:before { content: "\e033"; }
.glyphicon-eur:before { content: "\20ac"; }
.glyphicon-calendar:before { content: "\e109"; }
.glyphicon-bell:before { content: "\e123"; }
.glyphicon-wrench:before { content: "\e136"; }
.glyphicon-briefcase:before { content: "\e139"; }

.navbar-right {
	margin-right: 0 !important;
}

.no-caption .field-caption-tv {  display: none; }
.no-caption dd { margin-left: 0; margin-right: 0; }

.nav-tabs a img { margin: 0 0.25em; }

/* rotation classes */
.rotate90 { -ms-transform: rotate(90deg); -webkit-transform: rotate(90deg); transform: rotate(90deg); }
.rotate180 { -ms-transform: rotate(180deg); -webkit-transform: rotate(180deg); transform: rotate(180deg); }
.rotate270 { -ms-transform: rotate(270deg); -webkit-transform: rotate(270deg); transform: rotate(270deg); }

/* compacting mobile borders for DV */
.detail_view .form-group hr { margin: 0 0 0.5em 0; border-top-style: dashed; }

/* tv tools button widths */
.tv-tools .btn { width: 5em; }

#spm_notification { direction: ltr !important; }
/* compact theme styles */
.container.theme-compact, .container-fluid.theme-compact { line-height: 1.6; font-size: 0.857em; }

.theme-compact { 
	.btn {
		font-size: 12px;
		padding: 4px 10px;
	}

	.btn-lg, .btn-group-lg > .btn {
		font-size: 15px;
		padding: 6px 15px;
	}

	.form-group {
		margin-bottom: 8px;
	}

	:not(.input-group-lg) > .form-control, :not(.input-group-lg) > .input-group-addon {
		font-size: 12px;
		height: auto;
		padding: 4px 6px;
	}

	.input-sm {
		border-radius: 3px;
		font-size: 12px;
		padding: 2px 6px;
	}

	select.input-sm {
		height: 25px;
		line-height: 25px;
	}

	.dropdown-menu {
		font-size: 12px;
	}

	.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
		padding: 4px;
	}

	h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
		line-height: 2;
	}

	h1, .h1 {
		font-size: 27px;
	}

	h2, .h2 {
		font-size: 24px;
	}

	h3, .h3 {
		font-size: 20px;
	}

	h4, .h4 {
		font-size: 16px;
	}

	.navbar {
		margin-bottom: 13px;
		min-height: 40px;
	}

	.navbar-fixed-bottom {
		margin-bottom: 0 !important;
	}

	.navbar-brand {
		font-size: 15px;
		height: 40px;
		padding: 12px;
	}

	.navbar-nav > li > a {
		padding-bottom: 9px;
		padding-top: 9px;
		line-height: 26px;
	}

	.navbar-text {
		margin-bottom: 12px;
		margin-top: 14px;
	}

	.page-header {
		margin: 20px 0 10px;
		padding-bottom: 0;
	}

	.navbar-nav > li > a { margin-top: 0; margin-bottom: 0; }

	.panel-heading {
		padding: 6px;
	}

	.panel-title {
		font-size: 14px;
	}

	#quick-search {
		margin: .5em 0;
	}

	.profile-menu-icon > .icon { padding: 6px !important; }
}

/* Add `rtl-mirror` class to an element to horizontally flip it in rtl (e.g. arrow glyphs, ... etc) */
.theme-rtl .rtl-mirror {
	transform: scale(-1, 1);
}

/* theme-specific compact adjustments */
.theme-sandstone .theme-compact .btn {
	padding: 2.5px 10px;
}

/* file upload box formatting */
.upload-toolbox {
	overflow-x: hidden;
	font-size: 1.2rem;
	text-align: left;
	margin-bottom: 0;
	background-color: rgba(255, 255, 255, 0.5);
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}
.theme-rtl .upload-toolbox {
	text-align: right;
}
.upload-toolbox input[type="file"] {
	display: inline-block;
}
.form-control-static.well {
	margin-bottom: 0;
}
.file-type-error, .file-size-error {
	margin-top: 1rem;
}
.clear-upload {
	cursor: pointer;
}

/* auto-complete matches */
.select2-result-selectable .select2-match, .select2-result-unselectable .select2-match {
	font-weight: bold;
	background-color: rgba(255, 255, 0, 0.5);
}

/* continuous rotation animation */
.loop-rotate {
	animation: spin 2s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

kbd {
	background-color: #eee;
	border-radius: 3px;
	border: 1px solid #b4b4b4;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
	color: #333;
	display: inline-block;
	font-size: .85em;
	font-weight: 700;
	line-height: 1;
	padding: 4px 8px;
	white-space: nowrap;
}

th:focus {
	outline: thin dotted;
}

.nav .dropdown-menu img {
	max-height: 1.25em;
}

.profile-menu li img {
	height: 1.5em !important;
	vertical-align: text-bottom;
	margin-left: -.4em;
}

/* web and email links in DV */
.detail_view a > .glyphicon-globe {
	vertical-align: top;
	font-size: x-large;
}
.detail_view a > .glyphicon-envelope {
	vertical-align: text-bottom;
	font-size: large;
}

.glyphicon-lg {
	font-size: 2em;
}

/* fix nicedit components' dimensions */
.has-nicedit > div { width: 100% !important; }
.has-nicedit .nicEdit-main { width: 99% !important; }
.nicEdit-main { min-height: 6em !important; /* overflow: auto !important; */ }

/* hide empty email links */
a[href="mailto:"] { display: none; }

/* flex layout for lookup drop-downs and dates */
.lookup-flex, .date-flex {
	display: flex;
	justify-content: space-between;
	gap: .5em;
}
.lookup-flex > .select2-container {
	flex-grow: 1;
	width: auto !important;
}
.lookup-flex > .view_parent,
.lookup-flex > .add_new_parent {
	flex-basis: 3em;
}
.date-flex > .month-select {
	flex-grow: 4;
}
.date-flex > .year-select {
	flex-grow: 2;
}
.date-flex > .day-select {
	flex-grow: 1;
}
.date-flex > .btn {
	flex-basis: 3em;
}
.date-flex > select.form-control {
	width: auto; display: unset;
}

/* Classes that can be added to .glyphicon to variate icons */
.flip-horizontal { transform: scaleX(-1); }
.flip-vertical { transform: scaleY(-1); }

/* profile menu icon */
.profile-menu-icon > .icon {
	border: solid 1px #ccc; border-radius: 50%; padding: 6px !important;
}

.theme-journal .profile-menu-icon > .icon { padding: 6px !important; }
.theme-compact.theme-journal .profile-menu-icon > .icon { padding: 6px !important; }

.theme-paper .profile-menu-icon > .icon { padding: 6px !important; }
.theme-compact.theme-paper .profile-menu-icon > .icon { padding: 6px !important; }

.theme-readable .profile-menu-icon > .icon { padding: 6px !important; }
.theme-compact.theme-readable .profile-menu-icon > .icon { padding: 6px !important; }

.theme-sandstone .profile-menu-icon > .icon { padding: 6px !important; }
.theme-compact.theme-sandstone .profile-menu-icon > .icon { padding: 6px !important; }
.profile-menu-text { margin: 0 .25em; display: none; }

/* fix multi-choice layout in rtl */
.theme-rtl .select2-search-choice { direction: ltr; }
.theme-rtl .select2-container-multi .select2-choices li {
	float: right;
	margin-right: 5px;
	margin-left: 0;
}

/* child record info in tv */
.child-records-info > a {
	display: inline-block;
}
.child-records-info > a.children-count {
	text-align: right;
	width: calc(100% - 3em);
}
dd.child-records-info > a.children-count {
	max-width: 6em;
}
.child-records-info > a.new-child {
	text-align: center;
	width: 2.5em;
}
.update-children-count {
	height: .8em;
}

/* prevent right-aligned fields in non-default TV layouts from being too wide */
.container:not(.theme-rtl) .dl-horizontal dd.text-right,
.container:not(.theme-rtl) .dl-horizontal dd > div.text-right {
	max-width: 8em;
}
.theme-rtl .dl-horizontal dd.text-left,
.theme-rtl .dl-horizontal dd > div.text-left {
	max-width: 8em;
}
.theme-rtl .child-records-info {
	direction: ltr;
	text-align: right;
}
.sql-query-container {
	white-space: pre-wrap;
	word-break: break-word;
	direction: ltr;
	cursor: pointer;
	padding-top: 2em;
}
.sql-query-copier {
	position: absolute !important;
	top: 0 !important;
	right: 1em !important;
}
.theme-yeti {
	.bg-primary, .bg-primary a,
	.bg-primary.text-primary, .bg-primary .text-primary,
	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.dark-text {
		color: #222;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.dark-link {
		color: #008cba;
	}

	.progress{
		height: 2.5em;
	}

	.progress .progress-bar {
		line-height: 2;
		font-size: 1em;
	}
}

.theme-united {
	.bg-primary, .bg-primary a,
	.bg-primary.text-primary, .bg-primary .text-primary,
	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.dark-text {
		color: #333;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.dark-link {
		color: #dd4814;
	}

}

.theme-superhero {
	.bg-info, .bg-info a,
	.bg-warning, .bg-warning a,
	.bg-danger, .bg-danger a,
	.bg-success, .bg-success a,
	.bg-primary, .bg-primary a,

	.bg-info.text-info, .bg-info .text-info,
	.bg-warning.text-warning, .bg-warning .text-warning,
	.bg-danger.text-danger, .bg-danger .text-danger,
	.bg-success.text-success, .bg-success .text-success,
	.bg-primary.text-primary, .bg-primary .text-primary,

	.light-text {
		color: #ebebeb;
	}

	.dark-text {
		color: #ebebeb;
	}

	.dark-link {
		color: #df691a;
	}

}

.theme-spacelab {
	.bg-primary, .bg-primary a,
	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.dark-text {
		color: #666;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.dark-link {
		color: #3399f3;
	}

}

.theme-slate {
	.bg-danger, .bg-danger a,
	.bg-primary, .bg-primary a,
	.light-text {
		color: #fff;
	}

	.dark-text {
		color: #c8c8c8;
	}

	.dark-link {
		color: #fff;
	}

}

.theme-simplex {
	.bg-primary, .bg-primary a,
	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.dark-text {
		color: #777;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.dark-link {
		color: #d9230f;
	}

}

.theme-sandstone {
	.bg-primary, .bg-primary a,
	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.dark-text {
		color: #3e3f3a;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.dark-link {
		color: #93c54b;
	}

}

.theme-readable {
	.bg-primary, .bg-primary a,
	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.dark-text {
		color: #333;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.dark-link {
		color: #4582ec;
	}

}

.theme-paper {
	.bg-primary, .bg-primary a,
	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.dark-text {
		color: #666;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.dark-link {
		color: #2196f3;
	}

	.progress{
		height: 2em;
	}

	.progress .progress-bar {
		line-height: 2;
		font-size: 1em;
	}
}

.theme-journal {
	.bg-primary, .bg-primary a,
	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.dark-text {
		color: #777;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.dark-link {
		color: #eb6864;
	}

}

.theme-flatly {

	.bg-info, .bg-info a,
	.bg-warning, .bg-warning a,
	.bg-danger, .bg-danger a,
	.bg-success, .bg-success a,
	.bg-primary, .bg-primary a,

	.bg-info.text-info, .bg-info .text-info,
	.bg-warning.text-warning, .bg-warning .text-warning,
	.bg-danger.text-danger, .bg-danger .text-danger,
	.bg-success.text-success, .bg-success .text-success,
	.bg-primary.text-primary, .bg-primary .text-primary,

	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-hover>tbody>tr.bg-success:hover, .table-hover>tbody>tr:hover .bg-success,
	.table-hover>tbody>tr.bg-warning:hover, .table-hover>tbody>tr:hover .bg-warning,
	.table-hover>tbody>tr.bg-info:hover, .table-hover>tbody>tr:hover .bg-info,
	.table-hover>tbody>tr.bg-danger:hover, .table-hover>tbody>tr:hover .bg-danger,

	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.table-striped>tbody>tr.bg-success:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-success,
	.table-striped>tbody>tr.bg-warning:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-warning,
	.table-striped>tbody>tr.bg-info:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-info,
	.table-striped>tbody>tr.bg-danger:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-danger,

	.dark-text {
		color: #3c3c3c;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-hover>tbody>tr.bg-success:hover a, .table-hover>tbody>tr:hover .bg-success a,
	.table-hover>tbody>tr.bg-warning:hover a, .table-hover>tbody>tr:hover .bg-warning a,
	.table-hover>tbody>tr.bg-info:hover a, .table-hover>tbody>tr:hover .bg-info a,
	.table-hover>tbody>tr.bg-danger:hover a, .table-hover>tbody>tr:hover .bg-danger a,

	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.table-striped>tbody>tr.bg-success:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-success a,
	.table-striped>tbody>tr.bg-warning:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-warning a,
	.table-striped>tbody>tr.bg-info:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-info a,
	.table-striped>tbody>tr.bg-danger:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-danger a,

	.dark-link {
		color: #18bc9c;
	}

	.progress{
		height: 2em;
	}

	.progress .progress-bar {
		line-height: 2;
		font-size: 1em;
	}
}

.theme-darkly {

	.bg-info, .bg-info a,
	.bg-warning, .bg-warning a,
	.bg-danger, .bg-danger a,
	.bg-success, .bg-success a,
	.bg-primary, .bg-primary a,

	.bg-info.text-info, .bg-info .text-info,
	.bg-warning.text-warning, .bg-warning .text-warning,
	.bg-danger.text-danger, .bg-danger .text-danger,
	.bg-success.text-success, .bg-success .text-success,
	.bg-primary.text-primary, .bg-primary .text-primary,

	.light-text {
		color: #fff;
	}

	.progress{
		height: 2em;
	}

	.progress .progress-bar {
		line-height: 2;
		font-size: 1em;
	}

}

.theme-cyborg {
	.bg-info, .bg-info a,
	.bg-warning, .bg-warning a,
	.bg-danger, .bg-danger a,
	.bg-success, .bg-success a,
	.bg-primary, .bg-primary a,

	.bg-info.text-info, .bg-info .text-info,
	.bg-warning.text-warning, .bg-warning .text-warning,
	.bg-danger.text-danger, .bg-danger .text-danger,
	.bg-success.text-success, .bg-success .text-success,
	.bg-primary.text-primary, .bg-primary .text-primary,

	.light-text {
		color: #fff;
	}

}

.theme-cosmo {
	.bg-info, .bg-info a,
	.bg-warning, .bg-warning a,
	.bg-danger, .bg-danger a,
	.bg-success, .bg-success a,
	.bg-primary, .bg-primary a,

	.bg-info.text-info, .bg-info .text-info,
	.bg-warning.text-warning, .bg-warning .text-warning,
	.bg-danger.text-danger, .bg-danger .text-danger,
	.bg-success.text-success, .bg-success .text-success,
	.bg-primary.text-primary, .bg-primary .text-primary,

	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-hover>tbody>tr.bg-success:hover, .table-hover>tbody>tr:hover .bg-success,
	.table-hover>tbody>tr.bg-warning:hover, .table-hover>tbody>tr:hover .bg-warning,
	.table-hover>tbody>tr.bg-info:hover, .table-hover>tbody>tr:hover .bg-info,
	.table-hover>tbody>tr.bg-danger:hover, .table-hover>tbody>tr:hover .bg-danger,

	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.table-striped>tbody>tr.bg-success:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-success,
	.table-striped>tbody>tr.bg-warning:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-warning,
	.table-striped>tbody>tr.bg-info:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-info,
	.table-striped>tbody>tr.bg-danger:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-danger,

	.dark-text {
		color: #333;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-hover>tbody>tr.bg-success:hover a, .table-hover>tbody>tr:hover .bg-success a,
	.table-hover>tbody>tr.bg-warning:hover a, .table-hover>tbody>tr:hover .bg-warning a,
	.table-hover>tbody>tr.bg-info:hover a, .table-hover>tbody>tr:hover .bg-info a,
	.table-hover>tbody>tr.bg-danger:hover a, .table-hover>tbody>tr:hover .bg-danger a,

	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.table-striped>tbody>tr.bg-success:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-success a,
	.table-striped>tbody>tr.bg-warning:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-warning a,
	.table-striped>tbody>tr.bg-info:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-info a,
	.table-striped>tbody>tr.bg-danger:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-danger a,

	.dark-link {
		color: #2780e3;
	}

	.progress{
		height: 2em;
	}

	.progress .progress-bar {
		line-height: 2;
		font-size: 1em;
	}
}

.theme-cerulean {
	.bg-primary, .bg-primary a,
	.bg-primary.text-primary, .bg-primary .text-primary,
	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-hover>tbody>tr.bg-success:hover, .table-hover>tbody>tr:hover .bg-success,
	.table-hover>tbody>tr.bg-warning:hover, .table-hover>tbody>tr:hover .bg-warning,
	.table-hover>tbody>tr.bg-info:hover, .table-hover>tbody>tr:hover .bg-info,
	.table-hover>tbody>tr.bg-danger:hover, .table-hover>tbody>tr:hover .bg-danger,

	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.table-striped>tbody>tr.bg-success:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-success,
	.table-striped>tbody>tr.bg-warning:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-warning,
	.table-striped>tbody>tr.bg-info:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-info,
	.table-striped>tbody>tr.bg-danger:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-danger,

	.dark-text {
		color: #555;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-hover>tbody>tr.bg-success:hover a, .table-hover>tbody>tr:hover .bg-success a,
	.table-hover>tbody>tr.bg-warning:hover a, .table-hover>tbody>tr:hover .bg-warning a,
	.table-hover>tbody>tr.bg-info:hover a, .table-hover>tbody>tr:hover .bg-info a,
	.table-hover>tbody>tr.bg-danger:hover a, .table-hover>tbody>tr:hover .bg-danger a,

	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.table-striped>tbody>tr.bg-success:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-success a,
	.table-striped>tbody>tr.bg-warning:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-warning a,
	.table-striped>tbody>tr.bg-info:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-info a,
	.table-striped>tbody>tr.bg-danger:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-danger a,

	.dark-link {
		color: #2fa4e7;
	}

}

.theme-bootstrap {
	.bg-primary, .bg-primary a,
	.bg-primary.text-primary, .bg-primary .text-primary,
	.light-text {
		color: #fff;
	}

	.table-hover>tbody>tr.bg-primary:hover, .table-hover>tbody>tr:hover .bg-primary,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1), .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary,
	.dark-text {
		color: #333;
	}

	.table-hover>tbody>tr.bg-primary:hover a, .table-hover>tbody>tr:hover .bg-primary a,
	.table-striped>tbody>tr.bg-primary:nth-of-type(2n+1) a, .table-striped>tbody>tr:nth-of-type(2n+1) .bg-primary a,
	.dark-link {
		color: #337ab7;
	}

}

td.row .img-responsive {
	max-width: 100% !important;
}

.modal-top-spacer {
	height: 2rem;
}

/* Styling for detail view layout toobar and detail view columns */
.detail_view-layout {
	display: none;
	margin: 0 0 1em 0;
	text-align: right;
}
.detail_view-layout a {
	outline: none;
}
.theme-rtl .detail_view-layout {
	text-align: left;
}
.switch-to-single-column-layout, .switch-to-double-column-layout, .switch-to-triple-column-layout {
	display: none;
}

@media (min-width: 1200px) {
	.detail_view-layout {
		display: block;
	}
	.switch-to-single-column-layout, .switch-to-double-column-layout {
		display: inline-block;
	}
	.double-column-layout {
		width: 50%;
		float: left;
		padding: 0 1em 0 0;
	}
	.theme-rtl .double-column-layout {
		float: right;
		padding: 0 0 0 1em;
	}
}

@media (min-width: 1700px) {
	.switch-to-triple-column-layout {
		display: inline-block;
	}
	.triple-column-layout {
		width: 33.33%;
		float: left;
		padding: 0 1em 0 0;
	}
	.theme-rtl .triple-column-layout {
		float: right;
		padding: 0 0 0 1em;
	}
}

.form-group > .col-lg-9:not(:has(.datetimepicker)) {
	overflow-x: auto;
}

/* pagination section */
.pagination-section {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 1em;
}
.pagination-section > div {
	flex-grow: 1;
}
.pagination-section > div:not(:last-child):not(:first-child) {
	text-align: center;
}
.pagination-section > div:last-child {
	text-align: right;
}
