/* Core styles shared across all pages using the bs4 template.
 * Keep this file as basic/small as possible!
 *
 * NOTES:
 *  - Uses Bootstrap color variables (:root) but has older browser fallbacks (set above colors)
 *
 *  - Validate most changes using CSS LINT [http://csslint.net/]
 *
 *	- Avoid padding/margins for bootstrap elements; especially with a greedy selector.
 *    It creates a situtation where we are constantly battling the layout
 *    (like we are for Bootstrap 3).
 *
 *  - Avoid [!important] most of the time!
 *    If it is need, then something is probably designed incorrectly.
 *    Resist schedule pressure that requires it (it will save us time later).
 *
 *  - Try to use media queries for min-width [i.e. @media (min-width:...].
 *    With the non-media query sizes/padding/margins being for extra small devices
 */

/* variable colors (used in other CSS files so check before changing/removing */
:root {
	--bg-notify: #dc3545;
}


html {
	font-size: 100%; /* important for [rem] styling like SF Live Chat */
	height: 100%;
}
body {
	font-family: 'Roboto',Arial,sans-serif;
	background-color: #ffffff;
	font-size: 1rem;
    direction: ltr;
    overflow-x: hidden; /* Prevent scroll on narrow devices */

	width: 100%;
    height: 100%;
}

/* padding needed for .navbar.fixed-top * /
.main-layout { border: 3px solid green; }
.msb-top-navbar { border: 1px solid red; }
/**/
body.body-with-fixed-header {
	padding-top: 62px;
}
.msb-top-navbar {
	min-height: 62px;
}
@media (min-width: 576px) {
	body.body-with-fixed-header { padding-top: 67px; }
	.msb-top-navbar { min-height: 67px; }
}
@media (min-width: 768px) {
	body.body-with-fixed-header { padding-top: 73px; }
	.msb-top-navbar { min-height: 73px; }
}
@media (min-width: 992px) {
	body.body-with-fixed-header { padding-top: 76px; }
	.msb-top-navbar { min-height: 76px; }
}

/* Overlay Loading Spinner */
.body-overlay {
	background: #ffffff;
	color: #f8f9fa;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.15);
	z-index: 5000;
	text-align: center;
	opacity: .80; }
	.body-overlay .spinner {
		display: flex;
		align-items: center;
	    justify-content: center;
		margin: 50vh auto 0;
		height: 64px;
		width: 64px;
		color: #f8f9fa;
	}


/*
/* Custom Colors Ensure WCAG Compliance! */
.bg-dark-blue {
	background-color: #3081C6;
}

/* MSB Stacked Icon */
.msb-stacked-icon {
	background-color: #E4E6EB;
	color: #343a40;
	color: var(--gray-dark);
	line-height: 2.25;
	border-radius: 50%;
	margin-right: 7px;
	padding: 7px;
}
.msb-stacked-icon.image {
	border-radius: 100%;
}


/* Links
	- Do NOT set color globally on links here!
	We correctly update Bootrap's colors with SASS */
a:focus {
	outline: thin dotted;
	outline: 1px dotted #2474B7;
	outline: 1px dotted var(--primary);
}

/* Custom handlers */
@media (max-width: 320px) {
	.hidden-xxs {
		display: none;
	}
}

/* Hover Effects */
.hover-bg-white:hover, .hover-bg-white:focus {
	background-color: #ffffff !important;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.hover-shadow-sm:hover, .hover-shadow-sm:focus {
	box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.hover-shadow:hover, .hover-shadow:focus {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.hover-shadow-lg:hover, .hover-shadow-lg:focus {
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}
.hover-shadow-blue:hover, .hover-shadow-blue:focus {
	box-shadow: 0 0.25rem 0.5rem rgba(111, 180, 255, 0.5) !important;
}
.hover-bg-light:hover, .hover-bg-light:focus {
	background-color: var(--light) !important;
}


/* Session Timeout Modal */
.session-timeout-modal .modal-dialog {
	min-width: 350px;
}
.session-timeout-modal .countdown-holder {
	font-size: 1.5em;
	font-weight: 500;
}
.session-timeout-modal .progress {
	height: 20px;
}
.session-timeout-modal .progress-bar-danger .countdown-holder {
	font-size: 1.75em;
	font-weight: 700;
}
.session-timeout-modal .progress.bg-danger {
  background-color: #e4b9b9 !important;
}

/* Terms of Service (TOS) Notice */
.legal-disclosure {
	font-family: 'Roboto',Arial,sans-serif;
	font-size: 1rem;
	font-weight: 400;
	margin: 10px 15px;
	color: #000000;
}
.legal-disclosure h1 {
	font-size: 1.5rem;
	color: #333;
	margin-bottom: 1em;
	text-transform: uppercase;
	font-weight: 700;
}
.modal.legal-disclosure h1 {
	font-size: 1.35rem;
}
.modal.legal-disclosure .modal-header h1 {
	margin-bottom: 0;
	text-transform: none;
	font-weight: 700;
}
.legal-disclosure h2 {
	font-size: 1.25rem;
	font-weight: 500;
	margin: 1em 0 0.45em 0;
}
.legal-disclosure p.indent-1 {
	margin-left: 1.5em;
}
.legal-disclosure p.indent-2 {
	margin-left: 2.5em;
}
.legal-disclosure p > strong {
	margin-right: 10px;
}
.modal.legal-disclosure .modal-body {
	padding: 1.5em 2em;
}
.modal.legal-disclosure .modal-footer {
	text-align: center;
}
.modal.legal-disclosure .modal-footer .btn {
	margin-left: 25px;
}
.modal.legal-disclosure .tos-content {
	 border: 1px solid #e5e5e5;
	 overflow-y: auto;
	 overflow-x: hidden;
	 max-height: 200px;
	 font-size: 80%;
}
.modal .legal-disclosure {
	/* This should not be is not be [.modal.legal-disclosure],
	   the space is important (a different div) */
	margin: 0;
	font-size: 1.15em;
}
@media only screen and (max-width : 480px) {
	.legal-disclosure, .modal.legal-disclosure {
		font-size: 1.15em;
		margin: 0;
	}
	.legal-disclosure h1, .modal.legal-disclosure h1 {
		font-size: 1.15em;
	}
	.modal.legal-disclosure .modal-body {
		padding: 1em 1em;
	}
	.modal.legal-disclosure .tos-content {
		 padding: 0;
		 max-height: 130px;
		 border-width: 1px 0 0 0;
	}
	.modal.legal-disclosure .modal-footer .btn {
		margin-left: 15px;
	}
}
@media only screen and (max-width : 320px) {
	.legal-disclosure, .modal.legal-disclosure {
		font-size: 1em;
	}
	.modal.legal-disclosure h1 {
		font-size: 1em;
	}
	.modal.legal-disclosure .modal-body {
		padding: .5em .8em;
	}
}

/* Center Modal Vertically */
.modal.modal-vertical-center {
	text-align: center;
}
.modal.modal-vertical-center:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}
.modal.modal-vertical-center > .modal-dialog {
	display: inline-block;
	text-align: left;
	vertical-align: middle;
}
@media only screen and (max-width : 768px) {
	.modal.modal-vertical-center:before {
		display: none;
	}
}

/* Hides from UI but allow screen readers to pick it up  */
.off-screen {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* System Announcements */
.system-announcement {
	position: fixed;
	top: 63px;
	right: 0;
	left: 0;
	z-index: 1029; }
	.system-announcement .toast {
		max-width: none !important;
		border-radius: 0.5rem;
		max-width: 95vw !important;
		margin: 0 auto !important;
		background-color: rgba(255, 255, 255, 0.90);
		box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
	}
	@media (min-width: 768px) {
		.system-announcement { top: 76px; }
	}
	.system-announcement .toast-body {
		color: #2D2D2D;
		font-size: 1rem;
		font-weight: 700;
		padding: 1rem 1.5rem 1.5rem;
	}


/* Generic/General Classes */
.display-none { display: none; }
.display-none-i { display: none !important; }

.font-size-micro { font-size: 0.35rem; }
.font-size-micro-i { font-size: 0.35rem !important; }
.font-size-tiny { font-size: 0.5rem; }
.font-size-tiny-i { font-size: 0.5rem !important; }
.font-size-smaller { font-size: 0.75rem; }
.font-size-smaller-i { font-size: 0.75rem !important; }
.font-size-small { font-size: 0.85rem; }
.font-size-small-i { font-size: 0.85rem !important; }
.font-size-medium { font-size: 0.9rem; }
.font-size-medium-i { font-size: 0.9rem !important; }
.font-size-normal { font-size: 1rem; }
.font-size-normal-i { font-size: 1rem !important; }
.font-size-large { font-size: 1.25rem; }
.font-size-large-i { font-size: 1.25rem !important; }
.font-size-xlarge { font-size: 1.5rem; }
.font-size-xlarge-i { font-size: 1.5rem !important; }
.font-size-xxlarge { font-size: 1.75rem; }
.font-size-xxlarge-i { font-size: 1.75rem !important; }
.font-size-jumbo { font-size: 2.5rem; }
.font-size-jumbo-i { font-size: 2.5rem !important; }
.font-size-giant { font-size: 3.5rem; }
.font-size-giant-i { font-size: 3.5rem !important; }


.w-80 { width: 80% !important; }
.w-85 { width: 85% !important; }
.w-90 { width: 90% !important; }

.mnh-50 { min-height: 50px; }
	.mnh-50-i { min-height: 50px !important; }
.mnh-75 { min-height: 75px; }
	.mnh-75-i { min-height: 75px !important; }
.mnh-100 { min-height: 100px; }
	.mnh-100-i { min-height: 100px !important; }
.mnh-200 { min-height: 200px; }
	.mnh-200-i { min-height: 200px !important; }
.mnh-225 { min-height: 225px; }
	.mnh-225-i { min-height: 225px !important; }
.mnh-250 { min-height: 250px; }
	.mnh-250-i { min-height: 250px !important; }
.mnh-300 { min-height: 300px; }
	.mnh-300-i { min-height: 300px !important; }
.mnh-400 { min-height: 400px; }
	.mnh-400-i { min-height: 400px !important; }
.mnh-500 { min-height: 500px; }
	.mnh-500-i { min-height: 500px !important; }

.mnw-325 { min-width: 325px; }
	.mnw-325-i { min-width: 325px !important; }

.mxw-1440 { max-width: 1440px; }
	.mxw-1440-i { max-width: 1440px !important; }
.mxw-1680 { max-width: 1680px; }
	.mxw-1680-i { max-width: 1680px !important; }
.mxw-1920 { max-width: 1920px; }
	.mxw-1920-i { max-width: 1920px !important; }


/* ScrollUp plugin target.
 * Not a good idea to use IDs in selectors but the scrollup plugin has no other options.
 */
#scrollUp {
    background-color: #777;
    border-radius: 0;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 24px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    width: 40px;
    bottom: 80px;
    right: 15px;
    opacity: 0.7;
    z-index: 999; /* Set to 999 to put behind modals, chat components, etc... */
}
@media (min-width: 768px) {
	#scrollUp {
		bottom: 100px;
	}
}
/* Material Design Icons * /
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-20 { font-size: 20px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

.material-icons { color: #777; }
/* Icons as black on a light background. * /
.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }

/* Icons as white on a dark background. * /
.material-icons.md-light { color: rgba(255, 255, 255, 1); }
.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }
*/