
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,700');

body{
	text-rendering: optimizeLegibility;
}

.xpress-container{
	overflow-x: hidden;
}

footer{
	padding: 5px 15px 15px 15px;
	font-size: .75rem;
	text-align: center;
	color: #999;
}

footer .rs-logo{
	display: block;
	margin: 0 auto 15px auto;
	width: 100%;
	max-width: 300px;
}

a:hover{
	text-decoration: none;
}

/* use dark link color when showing links on a grey background */

.darker-links a{
	color: #178ee0;
}

a.darker-link{
	color: #178ee0;
}

/* applies a semi transparent mask to cover any element */

.loading-mask{
	position: relative;
}

.loading-mask::before  {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(255, 255, 255, 0.85);
	z-index: 999;
	transform: translateZ(0);
}

.dark-mask::before  {
	background-color: rgba(0, 0, 0, 0.75);
}

/* adds a spinner to the mask */

.loading-spinner::after  {
	content: "";
	position: absolute;
	border-style: solid;
	border-color: #e0ecf5;
	border-top-color: #279dee;
    border-width: 3px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    top: calc(50% - 12px);
    left: calc(50% - 12px);
    animation: spin .8s linear infinite;
    z-index: 1000;
    transform: translateZ(0);
}

.loading-spinner-lg::after {
	width: 60px;
	height: 60px;
	top: calc(50% - 30px);
	left: calc(50% - 30px);
}

/* makes the spinner fixed to the viewport and in the middle of the screen. useful for fullscreen loaders */

.loading-spinner-fixed::after {
	position: fixed;
}

@keyframes spin {
    0% { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}

.actions-button button{
	font-weight: 600;
	border-color: #1285d4;
}

.actions-button .dropdown-header{
	color: #0071bf;
}

.actions-button button.btn-secondary{
	border-color: #d88713;
}

.blink{
	animation: blinker 1.4s ease infinite;
}

@keyframes blinker {  
	50% { opacity: .2; }
}

/*** this places a clear button inside a text input box  ****/
/* see MlsSimpleSearchFields.vm filter for markup */

.search-box-clear{
	position: absolute;
	right: 0;
    top: 0;
    bottom: 0;
    height: 16px;
    width: 30px !important;
    margin: auto;
    font-size: 1rem;
    cursor: pointer;
    color: #ccc;
    z-index: 1;
}

.well{
	background-color: #f5f5f5;
	border: 1px solid #ececec;
	border-radius: 5px;
	padding: 15px;
	margin-bottom: 20px;
}

.green-well{
	background-color: #ebfeed;
    border: 1px solid #c0e6c0;
}

.blue-grey-well{
	background-color: #E3E9EF;
    border: 1px solid #CCD5DD;
}

.pcs-header-image{
	display: block;
	margin: 15px auto 5px auto;
	width: 180px;
}

.popup {
	display: none;
	margin-bottom: 30px;
}

select.form-control{
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url(/images/responsive/caret-blue.png);
	background-repeat: no-repeat;
	background-size: 9px;
	background-position: right 9px center;
	padding-right: 24px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s ease-in-out;
}

.no-touchevents select.form-control:hover{
	background-color: #f4f4f4;	
}

select.form-control option{	
	background-color: #fff;
	color: #444;
}

select.form-control option:checked {
    background-color: light-dark(rgb(206, 206, 206), rgb(84, 84, 84));
    color: light-dark(rgb(16, 16, 16), rgb(255, 255, 255));
}

input[type="text"].form-control,
input[type="search"].form-control,
input[type="email"].form-control,
textarea.form-control,
.selectize-control.form-control .selectize-input {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.10);
}

select.form-control::-ms-expand { display: none; }

.default-dropdown-button{
	background-color: #fff;
	color: #279dee;
	border: 1px solid #ced4da;
    border-radius: .25rem;
}

.no-touchevents .default-dropdown-button:hover{
	background-color: #f4f4f4;	
}

.default-dropdown-button span{
	color: #495057;
}

.default-dropdown-button.primary-outline{
	border: 1px solid #279dee;
}

/*** these are used to denote listing statuses ***/

.classNew, .classNEW {
	background-color: #59bd70 !important;
}

.classNQ {
	background-color: #279dee !important;
}

.classPc, .classPC {
	background-color: #9AA6BC !important;
}

.classOm, .classOM {
	background-color: #111B1E !important;
}

.classCond, .classCOND {
	background-color: #660 !important;
}

.classSold, .classSOLD {
	background-color: #e86f6f !important;
}

.classSP {
	background-color: #D62F2F !important;
}

.classBom, .classBOM {
	background-color: #576798 !important;
}

.classChangedRow {
	background-color: #faed8e !important;
}

.classFP {
	background-color: #ee9e27 !important;
}

.ClassEmpty {
	
}

/*** bootstrap overrides ***/

.btn[class*=" btn-outline-"] {
	background-color: #fff;	
}

.btn[class*=" btn-outline-"]:hover {
	background-color: #efefef;
	color: #317cb1;
}

.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
	opacity: .42;
    cursor: default !important;	
}

.dropdown-menu{
	box-shadow: 0px 7px 15px rgba(0,0,0,0.2);
}

.dropdown-toggle::after {
    margin-left: .5em;
}

.dropdown-item.disabled, .dropdown-item:disabled {
    color: #aaa;
    cursor: default;
}

.dropdown-item.modal-launch{
	font-weight: 500;
	color: #279dee;
}

.list-header{
	padding: 5px 20px;
    color: #fff;
    background: #279dee;
    margin-bottom: 0.4rem;
    margin-top: 0.4rem;
    font-weight: 500;
    text-align: center;
}

.modal-list .list-header{
	margin: 0;
	padding: 8px 0;
	text-align: center;
}

.nav-tabs {
    border-bottom: 5px solid #e1e1e1;
    margin-left: -15px;
    margin-right: -15px;
	padding-right: 15px;
	padding-left: 15px;
}

.nav-tabs  .nav-item{
	margin-bottom: -5px;
}

.nav-tabs  .nav-item  .nav-link{
	border: 0;
	border-radius: 0;
    border-bottom: 5px solid transparent;
    padding-top: .70rem;
    padding-bottom: .75rem;
}

.nav-tabs > li > a {
    font-size: 1.15rem;
}

.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    background-color: #f6f6f6;
    border-bottom: 5px solid #d7d7d7;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-bottom: 5px solid #279dee;
    font-weight: 500;
}

.nav-tabs .nav-item.dropdown.show .nav-link, .nav-tabs .dropdown .nav-link.active {
    color: #495057;
    background-color: #f6f6f6;
    border-bottom: 5px solid #adadad;
    font-weight: 400;
}

.nav-pills > li + li {
    margin-left: 2px;
}

.nav-pills .show>.nav-link{
	color: #222;
}

.nav-pills .show>.nav-link, .nav-pills .nav-link:hover, .nav-pills .nav-link:focus {
	background-color: #eee;
}

.nav-pills .nav-link.active {
	color: #222;
	background-color: #e3e9ef;
	border: 1px solid #bdd1e4;
}

.wrap-text {
	white-space: normal;
}

@media screen and (max-width: 600px) {
	
	.nav-tabs {
		padding-right: 10px;
		padding-left: 10px;
	}
	
	.nav-tabs > li > a {
    	font-size: 1rem;
    	padding: 10px 12px;
	}
	
	.nav-pills > li > a {
		padding: 10px;
	}
}

@media screen and (max-width: 700px) {
	
	/** the long-list class should be used on navs where the number of tabs overflows to a second line on small screens **/
	
	.nav-tabs.long-list{
    	padding-bottom: 6px;
	}
	
	.nav-tabs.long-list  .nav-item  .nav-link{
    	padding-bottom: .55rem;
	}
	
	.nav-tabs.long-list .nav-item.show .nav-link, .nav-tabs.long-list .nav-link.active {
    	border-bottom: 5px solid transparent;
    	background: rgba(0,0,0, .05);
    	border-radius: 10px;
	}
}

@media screen and (max-width: 360px) {
	
	.nav-tabs > li > a {
    	padding: 7px;
	}
	
	.nav-pills > li > a {
		padding: 7px;
	}
	
	.nav-tabs {
		padding-right: 5px;
		padding-left: 5px;
	}
}

.modal-title{
	width: 100%;
}

.modal-header[class*=" bg-"]{
	color: #fff;
	border-bottom: 0;
}

.modal {
  	text-align: center;
}

.modal-content{
	box-shadow: 0px 0px 25px rgba(0,0,0,.45);
}

.message-modal p{
	text-align: left;
}

.message-modal p.text-center{
	text-align: center;
}

.popup-check-wrapper{
	margin-bottom: 15px;
}

#delete-dialog, #error-dialog {
	margin: 30px;
}

.error-dialog, .confirm-dialog {
	display: none;
	margin: 30px;
}

.modal-message {
	margin: 30px;
}

.popover{
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.popover-header.popover-danger{
	background-color: #f2dede;
}

.bootstrap-datetimepicker-widget .picker-switch {
    padding-top: 8px;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
	width: 18rem !important;
	padding: 12px !important;
}

.bootstrap-datetimepicker-widget td, .bootstrap-datetimepicker-widget .table thead th{
	border: 0;
	padding: .44rem;
}

/* Any field that used a date picker should be read-only to prevent soft keyboard displaying on mobile, but we don't actually want it to look like a readonly field */

.calendar-input .form-control[readonly] {
    background-color: #fff;
}

/* #error-messages-modal is the error dialog that can pop up when the page first loads. Always show all error text in this dialog */

#error-messages-modal .error-dialog{
	display: block;
}

/* a simple styled list for use inside modals */

ul.modal-list{
	padding: 0;
	margin: 0;
	list-style-type: none;
}

ul.modal-list li{
	text-align: left;
	border-bottom: 1px solid #eee;
    padding: 5px;
    cursor: pointer;
}

ul.modal-list li:hover{
	background-color: #f5f5f5;
}

ul.modal-list li.selected{
	background-image: url('/images/responsive/pcs/check.png');
	background-repeat: no-repeat;
	background-position: right 10px bottom 50%;
    background-size: 24px;
    cursor: default;
}

ul.modal-list li.selected:hover{
	background-color: #fff;
}

ul.modal-list li:last-child{
	border-bottom: 0;
}

ul.modal-list li.modal-list-heading{
	text-align: center;
	font-weight: 500;
	border-bottom: 1px solid #ccc;
	padding-top: 15px;
}

ul.modal-list li.modal-list-heading:hover{
	background-color: transparent;
	cursor: default;
}

/***** A modal with a list of items and a "delete item" column *****/

.manage-items-modal table th{
	font-weight: normal;
}

.manage-items-modal table td{
	padding: 0;
}

.manage-items-modal table td > *{
	display: block;
	padding: 0.6rem;
}

.manage-items-modal table td a:hover{
	background-color: #f5f5f5;
}

/* the 'delete' column*/

.manage-items-modal table td:last-child {
    width: 45px;
}

.manage-items-modal table td:last-child a{
	display: inline-block;
    width: 45px;
    text-align: center;
}

.manage-items-modal table td:last-child img {
    width: 20px;
}

/***** A modal with a search box that filters its items *****/

.filtered-modal th{
	border-top: none;
}

.filtered-modal .filter-container{
	display: block;
	position: relative;
}

.filtered-modal .search-box-clear {
    margin-top: 10px;
}

/***** A modal whose height is limited and that shows a scroll bar when content is too long *****/

.scolling-modal .modal-body{
	max-height: 345px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

@media screen and (min-height: 767px) {

	.scolling-modal .modal-body{
		max-height: 515px;
	}
}

@media screen and (min-height: 1000px) {

	.scolling-modal .modal-body{
		max-height: 750px;
	}
}

/***** Custom checkboxes *****/

.rs-check{
	width: 16px;
	height: 16px;
	border: 1px solid #2e8fd2;
    background: #88bce0;
    border-radius: 3px;
    cursor: pointer;
  	user-select: none;
  	overflow: hidden;
  	position: relative;
  	display: inline-block;
}

.no-touchevents .rs-check:hover span{
	opacity: 0;	
}

.rs-check span{
	background: linear-gradient(to bottom, #fafafa 0%,#fafafa 20%,#d0d0d0 100%);
	width: 100%;
	height: 100%;
	transition: opacity .20s ease-in-out;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
}

.rs-check input[type="checkbox"]{
  	opacity: 0;
  	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height: 100%;
	cursor: pointer;
	z-index: 1;
}

.rs-check input[type="checkbox"]:checked ~ span {
  	background: #279dee;
  	opacity: 1;
  	background-image: url('/images/responsive/check-white.png');
  	background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.fancybox-button {
	outline: none !important;
}
