﻿html, body {
	min-height: 100vh;
	min-height: 100dvh;
	color: var(--primary-color-text);
	min-width: auto !important;
}

:root {
	--primary-color: #d55c19;
	--primary-color-text: #333333;
	--secondary-color: #d55c19;
	--tertiary-color: #a9a9a9;
	--secondary-bg-color: #f5f5f5;
	--bs-btn-hover-bg: var(--primary-color) !important;
	--bs-btn-active-bg: var(--primary-color) !important;
	--bs-btn-active-border-color: var(--primary-color) !important;
	--bs-btn-disabled-bg: var(--primary-color) !important;
	--bs-btn-disabled-border-color: var(--primary-color) !important;
	--odd-table-shadow-color: rgba(0, 0, 0, 0.025);
	--mobile-sidebar-height: 49px;
}

.table, .card {
	--bs-body-color: var(--primary-color-text) !important;
}

.k-data-table, .k-table, .k-list, .k-chip-solid-base, .k-input-inner, li.k-selected.custom-control.custom-checkbox,
.k-hover.k-list-optionlabel, .k-list-item.k-hover, .k-list-item:hover, .k-list-optionlabel:hover,
.k-table-group-sticky-header, .k-table-header, .k-table-thead {
	color: var(--primary-color-text) !important;
}

form {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
}

.cursor-pointer {
	cursor: pointer !important;
}

/**********************************************************************************/
/*								  Scrollbar Updates								  */
/**********************************************************************************/
@supports selector(::-webkit-scrollbar) {
	/* width */
	::-webkit-scrollbar {
		width: 0.33rem;
		height: 0.33rem;
	}
	/* Track */
	::-webkit-scrollbar-track {
		background: #f5f5f5;
	}
	/* Track */
	.alding-form-bg ::-webkit-scrollbar-track, #sidebar ::-webkit-scrollbar-track, .overflow-point::-webkit-scrollbar-track {
		background: transparent;
	}
	/* Handle */
	::-webkit-scrollbar-thumb {
		background: lightgray;
		border-radius: 0.5rem;
	}
	/* Handle on hover */
	::-webkit-scrollbar-thumb:hover {
		background: #a7a8aa;
	}
}

@supports not selector(::-webkit-scrollbar) {
	:not(.overflow-point) {
		scrollbar-width: thin;
		scrollbar-color: lightgray #f5f5f5;
	}

	.overflow-point {
		scrollbar-width: thin;
		scrollbar-color: lightgray white;
	}
}

@media(min-width:768px) {
	/*--y calculated via JS in Site.Master*/
	.overflow-point {
		overflow: auto !important;
		max-height: calc(100vh - var(--y));
	}

	.alding-form-height.overflow-point {
		min-height: max(calc(100vh - var(--y)), 10rem);
	}
}

/**********************************************************************************/
/*                       Bootstrap 5 Override Updates			                  */
/**********************************************************************************/

@font-face {
	font-family: "Open-sans-ExtraBold";
	font-style: normal;
	font-stretch: 100%;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
	src: url("../Fonts/OpenSans-ExtraBold.ttf");
}

@font-face {
	font-family: "Open-sans-Bold";
	font-style: normal;
	font-stretch: 100%;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
	src: url("../Fonts/OpenSans-Bold.ttf");
}

.extra-bold {
	font-family: 'Open-sans-ExtraBold', sans-serif;
}

.actual-bold {
	font-family: 'Open-sans-Bold', sans-serif;
}

.open-sans {
	font-family: "Open Sans", sans-serif !important;
}

.form-inline {
	display: inline-flex;
	width: 100%;
	flex-wrap: wrap;
	align-items: center;
}

.disable-form.filogix-form *:is(input.form-control, select, textarea, .custom-checkbox, .k-combobox, .k-input-button):not(.filogix-editable), .disable-form.filogix-form .custom-control-label:not(.filogix-editable)::before,
.disable-form:not(.filogix-form) *:is(input.form-control, select, textarea, .custom-checkbox, .k-combobox), .disable-form:not(.filogix-form) .custom-control-label::before {
	background-color: #e9ecef;
	opacity: 1;
	pointer-events: none;
}

.disable-form.filogix-form .k-dropdownlist.filogix-editable .k-input-button {
	background-color: transparent;
	pointer-events: all;
}

.disable-form .custom-checkbox {
	background-color: inherit !important;
}

.disable-form .add-new-control {
	display: none;
}

.ribbon + div .pageTitle, .ribbon + div .section-title, .ribbon + div h6 {
	color: #3498db;
}

#noDataRow:hover {
	box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.075);
}

.radius-edge {
	border-radius: 0.5rem 0.5rem 0 0 !important;
}

:root {
	--bs-table-border-color: #dee2e6 !important;
	--bs-border-color: #ced4da;
	--bs-success: #ced4da;
	--bs-success-text: var(--primary-color-text);
	--bs-danger-text: var(--primary-color-text);
	--bs-danger: #b94a48;
	--bs-btn-disabled-bg: #d55c19;
	--bs-btn-disabled-border-color: #be4200;
	--bs-btn-disabled-color: white;
	--bs-btn-close-focus-shadow: 0 0 0 0rem rgba(13, 110, 253, 0.25);
	--bs-btn-active-color: white;
	--bs-btn-focus-shadow-rgb: rgba(0, 123, 255, 0.25);
	--bs-btn-hover-color: white;
	--clr-tmg-orange: #d55c19 !important;
	--bs-tertiary-bg: #e9ecef !important;
	--clr-tmg-blue: #3498db !important;
	--bs-modal-footer-gap: 1rem !important;
	--bs-modal-header-padding: 0.25rem 1.25rem 0.25rem 1.25rem;
	--bs-modal-padding: 1rem 1.25rem 1rem 1.25rem;
	--bs-light-gray: lightgray !important;
	--bs-dark-gray: darkgrey !important;
}

.modal {
	--bs-modal-footer-gap: 1rem !important;
	--bs-modal-header-padding: 0.25rem 1.25rem 0.25rem 1.25rem;
	--bs-modal-padding: 1rem 1.25rem 1rem 1.25rem;
}

.btn-default {
	--bs-btn-bg: var(--primary-color);
	--bs-btn-color: white;
	--bs-btn-focus-shadow-rgb: 252, 131, 64;
}

span.fa[tabindex="0"], .liability-popover-icon, .icon-control {
	outline: 0px;
}

span.fa[tabindex="0"]:focus-visible, .liability-popover-icon:focus-visible, .icon-control:focus-visible {
	transform: scale(1.10);
	filter: brightness(0.9);
}


.btn:hover {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a {
	text-decoration: none;
}

.form-select:focus, .form-control:focus {
	box-shadow: none;
}

hr {
	opacity: 0.1;
}

.popover-body {
	color: var(--primary-color-text);
}

.input-group-text {
	font-size: 12px !important;
}

.input-group-text.disabled {
	color: rgb(33, 37, 41);
}

.form-control:disabled, .form-control[readonly] {
	background-color: var(--bs-tertiary-bg);
	opacity: 1;
}

/*Default BS5 checkboxes are too small, these rules help align the labels*/
.form-check > .form-check-label {
	font-weight: normal;
	margin-left: 0.5rem;
	position: relative;
	top: -1px;
}

footer {
	flex: 0 0 30px;
	text-align: center;
	font-size: 16px;
}

/* ===== HTML5 Validator CSS Start ===== */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.form-error {
	color: #b94a48 !important;
}

input.form-control.error, textarea.form-control.error, .RadComboBox.error > span {
	border-color: #b94a48 !important;
}

/* Firefox */
input[type=number] {
	-moz-appearance: textfield;
}

.was-validated .form-control:valid {
	background-image: none;
}

.failed-validation {
	border-color: #b94a48 !important;
	display: block;
}

.form-control.is-valid, .was-validated .form-control:valid {
	padding-right: 0.75rem;
}

.form-control.is-valid, .was-validated .form-control:valid, .form-select.is-valid .was-validated .form-select:valid {
	border-color: #ced4da;
}

.form-control.is-invalid, .was-validated .form-control:invalid, .form-select.is-valid .was-validated .form-select:invalid, .was-validated .form-select:invalid {
	background-image: none;
	padding-right: 1.5rem;
}

.form-select, .form-select:valid {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}
/*temporary to solve the issue with year/month picker before new design.*/
@media (min-width: 1200px) {
	.temp-p-fix {
		background-position-x: right !important;
		padding-right: 0 !important;
	}
}

@media (min-width:768px) {
	.custom-fix-long-label {
		display: flex !important;
		flex-direction: column !important;
		margin-top: -18px !important;
	}
}


.invalid-feedback {
	font-size: 100%;
	color: #b94a48;
}

.primary-color-text {
	color: var(--primary-color-text) !important;
}

.custom-control-input.is-valid ~ .custom-control-label, .was-validated .custom-control-input:valid ~ .custom-control-label,
.custom-control-input.is-valid ~ .custom-control-label, .was-validated .custom-control-input:invalid ~ .custom-control-label {
	color: var(--primary-color-text);
}

.custom-control-input.is-invalid ~ .custom-control-label::before, .was-validated .custom-control-input:invalid ~ .custom-control-label::before,
.custom-control-input.is-valid ~ .custom-control-label::before, .was-validated .custom-control-input:valid ~ .custom-control-label::before {
	border-color: #c1b6b0 !important;
}

.form-control:valid:focus {
	box-shadow: none;
}

.required {
	color: #dc3545;
}

.custom-control-input.is-valid:checked ~ .custom-control-label::before, .was-validated .custom-control-input:valid:checked ~ .custom-control-label::before {
	background-color: var(--primary-color) !important;
	color: #FFF !important;
}

input.no-append {
	border-top-right-radius: .375rem !important;
	border-bottom-right-radius: .375rem !important;
}

.input-group-prepend .input-group-text {
	border-top-right-radius: 0rem;
	border-bottom-right-radius: 0rem;
}

.input-group-append .input-group-text {
	border-top-left-radius: 0rem;
	border-bottom-left-radius: 0rem;
}

/*forcing height to 100% on small safari devices (ios) removes the ability to scroll*/
@media(min-width: 576px) {
	form {
		height: 100%;
	}
}

/* On-screen help text */
.explain-text {
	font-size: larger;
}

@media (max-width: 768px) {
	.explain-container {
		text-align: center;
	}
}

.required-asterisk {
	color: #fa8072;
	padding-left: 5px;
}

.required-asterisk::before {
	content: "*";
}

.input-group:not(.has-validation) > .form-control:not(:last-child) {
	border-top-right-radius: .375rem !important;
	border-bottom-right-radius: .375rem !important;
}

.input-group:not(.has-validation) > .form-control:not(:last-child).no-round-right,
.input-group:not(.has-validation) > .form-control:not(:last-child).no-round-end {
	border-top-right-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
}

.form-control.phoneNumber.is-invalid, .form-control.validateEmail.is-invalid {
	border-color: #b94a48 !important;
	border-radius: .375rem !important;
}

.failed-validation ~ .invalid-feedback {
	display: block;
}

.failed-rule {
	border-color: #b94a48 !important;
}

.failed-rule:is(.form-control, .form-select):focus {
	box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb),.25) !important;
}

.failed-rule.form-check-input:focus {
	box-shadow: 0 0 0 0.25rem rgba(185, 74, 72, 0.25) !important;
}

/*Bootstrap override*/
.form-control.is-valid, .was-validated .form-control:valid {
	padding-right: inherit;
}
