
/*
	Element Styles
*/
html, body {
	margin: 0;
	padding: 0;
	font-family: 'Roboto', sans-serif;
	font-size: 1.0rem;
	background-color: #FFF8F0;
}

body, html {
	touch-action: pan-down;
	overscroll-behavior: contain;
}

input[type="text"], 
input[type="password"],
input[type="time"],
#password,
textarea {
    font-family: 'Roboto', sans-serif;
	display: block;
	font-size: 1.2rem;
	padding: 5px;
	border: 2px solid #EEEEEE;
	margin: 20px 5px 20px 5px;
	color: gray;
	width: calc(100% - 24px);
    background-color: transparent;
}

input[type="text"]:active, 
input[type="text"]:focus, 
input[type="password"]:active,
input[type="password"]:focus,
textarea:active,
textarea:focus {
	border-color: #F57E21;
}

input[disabled] {
	border: 0px;
	padding: 7px;
	background-color: transparent;
}

select {
	border: 1px solid #CCC;
	font-family: 'Roboto', sans-serif;
	font-size: 1.0rem;
	padding: 10px;
	color: gray;
	width: calc(100% - 24px);
	
}

textarea {
    height: 70px;
}


p {
	background-color: white;
	color: gray;
	padding: 15px 5px;
	margin: 5px 0px;
}

.btn-primary {
	/*background-color: #A9D740;*/
	background-color: #5EB6D6;
	color: white;
	border: 0;
	width: calc(100% - 12px);
	padding: 10px 0px;
	font-size: 1.2rem;
	text-align: center;
}

.btn-primary:hover {
	cursor: pointer;
}

.btn-primary:active {
	/*background-color: #C0D68D;*/
	background-color: #6AC4E6;
}

.btn-danger {
    background-color: #F1202B;
    color: white;
    border: 0;
    width: calc(100% - 12px);
    padding: 10px 0px;
    font-size: 1.2rem;
    text-align: center;
}

.btn-danger:hover {
    cursor: pointer;
}

.btn-danger:active {
    /*background-color: #e74c3c;*/
    background-color: #FF303F;
}

.btn-disabled {
	border: 0;
	width: calc(100% - 12px);
	padding: 10px 0px;
	font-size: 1.2rem;
	text-align: center;
	background-color: silver;
	color: white;
	cursor: not-allowed;
	color: #819E32
}

.clickable:hover {
	cursor: pointer;
}

.btn-block {
    width: calc(100% - 10px);
    margin: 5px;
}

.remove-btn {
    width: 30px;
    height: 30px;
	margin: 5px;
    position: relative;
    font-size: 20px;
    top: -3px;
    right: 0;
    color: white;
    /*background-color: #CC0000;*/
	background-color: #F1202B;
    border-radius: 50%;
    float:right;
    cursor: pointer;
    display: none;
    border: none;
}
.close-btn {
    width: 40px;
    height: 40px;
    position: relative;
    font-size: 27px;
    top: 10px;
    right: 10px;
    color: white;
    /*background-color: #CC0000;*/
	background-color: #F1202B;
    border-radius: 50%;
    float: right;
    border: none;
}

/*
	Common Classes
*/

#screen {
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	position: relative;
}


.layer {
	position: absolute;
	z-index: 1;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: white;
}

.dialog {
	position: relative;
	vertical-align: middle;
	width: 80%;
	height: 80%;
	margin-top: 10%;
	margin-bottom: 10%;
	margin-left: auto;
	margin-right: auto;
	overflow-x: hidden;
	overflow-y: auto;
	/*transform: translate(0%, 50%);*/
}

.center {
	text-align: center;
}

.hidden {
    display: none !important;
}

.red {
	color: #F1202B;
}

.amber {
	color: #F5AC21;
}

.dark-amber {
	color: #F5AC21;
}

.green {
	color: #16A76B;
}

.green-darker {
	color: #16A76B;
}

.blue {
	color: #5EB6D6;
}

.gray {
	color: gray;
}

.margin-30 {
    margin: 10px 30px !important;
}

.red-background {
	/*background-color: #FF4959 !important;*/
	background-color: #F1202B !important;
}

.amber-background {
	/*background-color: #FFC900 !important;*/
	background-color: #F5AC21 !important;
}

.green-background {
	/*background-color: #B0DB43 !important;*/
	background-color: #16A76B !important;
}

.blue-background {
	background-color: #5EB6D6 !important;
}

.gray-background {
	background-color: #AAA !important;
}

.gray {
	color: gray;
}

.large {
	font-size: 1.5rem !important;
}

.larger {
	font-size: 2.0rem !important;
}

.edit-btn {
    background-image: url("../images/edit-icon-white.png");
}

.save-btn {
    /*background-color: #A9D740 !important;*/
	background-color: #5EB6D6 !important;
    background-image: url("../images/white-tick-large.png");
}

.new-btn {
    /*background-color: #A9D740 !important;*/
	background-color: #5EB6D6 !important;
    background-image: url("../images/add-icon-white.png");
}

.screen-title {
	height: 50px;
}

.screen-title > * {
	vertical-align: middle;
	color: silver;
	font-weight: 300 !important;
}

.screen-title .title {
	display: inline-block;
	font-size: 1.4rem;
	width: calc(100% - 100px);
	text-align: center;
}

.screen-title .back {
	display: inline-block;
	width: 50px;
	height: 50px;
}

.screen-title .back:hover, 
.screen-title .back:active {
	opacity: 0.5;
}

.screen-title span {
	display: inline-block;
}



.list-item {
	background-color: white;
	color: gray;
	padding: 15px 5px;
	border-top: 1px solid #EEE;
	margin: 5px 0px;
}

.list-item:last-child {
	border-bottom: 1px solid #EEE;
}

.list-divider {
	background-color: #EEE;
	color: gray;
	font-size: 0.8rem;
	padding: 5px;
	border-top: 1px solid #EEE;
	margin: 0px 0px;
	margin-bottom: -5px;
}

.list-divider:last-child {
	border-bottom: 1px solid #EEE;
}

.overlay-button {
	/* Made visible by JS */
	display: none; 
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	background-color: #FF982B;
	border-radius: 30px;
	box-shadow: #888 0px 0px 10px 3px;
	background-size: 30px 30px;
	background-position: 15px 15px;
	background-repeat: no-repeat;
}

.virtual-checkbox-row {
	padding: 5px;
	margin: 10px 5px;
}

.virtual-checkbox-row .virtual-checkbox {
	display: inline-block;
	width: 30px;
	height: 30px;
	margin: 5px 10px;
	border-radius: 15px;
	background-color: #DDD;
	vertical-align: middle;
}

.virtual-checkbox-row .virtual-checkbox span {
    position: relative;
    top: 5px;
    left: 1px;
    color: white;
    display: inline;
}

.virtual-checkbox-row .virtual-checkbox.checked span {
    display: none;
}

.virtual-checkbox-row .virtual-checkbox-label {
	display: inline-block;
	vertical-align: middle;
}

.virtual-checkbox-row .virtual-checkbox.checked {
	/*background-color: #A9D740;*/
	background-color: #16A76B;
	background-image: url("../images/white-tick.png");
	background-size: 30px 30px;
	background-position: center center;
	background-repeat: no-repeat;
}

/*
	Screen specific CSS
*/

#app-version-info {
	margin-top: 30px;
	text-align: center;
	color: #FF982B;
}

#app-header-version {
	font-size: 0.7rem !important;
	color: white;
	background-color: orange;
	border-radius: 10px;
	padding: 3px;
}


#login {
	z-index: 99;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden !important;
}

#login-failed-message-spacer {
	margin-top: 20px;
	margin-bottom: 20px;
}

#menu img:hover {
	cursor: pointer;
	/*background-color: #FFC900;*/
	background-color: #F5AC21;
}

#app-header-left img {
	cursor: pointer;
}

#app-environment-select, 
#login-environment-select {
	width: calc(100% - 80px);
    border: 1px solid #ccc;
    height: 55px;
    font-size: 18px;
    margin: 10px 5px 5px 5px;
	color: gray;
}

#login-environment {
	color: gray;
	margin-top: 40px;
}



#app {
	z-index: 1;
	background-color: #F8F8F8;
	margin-left: auto;
	margin-right: auto;
}

#app #app-header {
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	background-color: white;
	height: 50px;
	width: 100%;
	z-index: 100;
	overflow: hidden;
}

#app #app-header-left {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 95px;
	text-align: left;
}

#app #app-header-right {
	position: absolute;
	top: 0px;
	right: 0px;
	height: 50px;
	width: calc(100% - 10px);
	text-align:right;
	vertical-align: middle;
}

#app #app-header-right > span {
	display: inline-block;
	font-size: 1.5em;
	vertical-align: middle;
	margin: 4px 5px;
}

#app #app-header-right > span#no-location-icon,
#app #app-header-right > span#no-connection-icon {
	display: none;
}

#app #app-header-right > span > img {
	height: 37px; 
	vertical-align: middle;
	background-color: white;
}

#app #app-header-right #alert-1 {
	display: inline-block;
	min-width: 30px;
	/*color: red;*/
	color: #F1202B;
	text-align: center;
	margin: 4px 2px;
}


#app #app-header-right #alert-2 {
	display: inline-block;
	min-width: 30px;
	/*color: orange;*/
	color: #F5AC21;
	text-align: center;
	margin: 4px 2px;
}

#app #app-header-right #alert-3 {
	display: inline-block;
	min-width: 30px;
	/*color: green;*/
	color: #16A76B;
	text-align: center;
	margin: 4px 2px;
}


#app #app-header-right #alert-1.selected {
	color: white;
	/*background-color: red;*/
	background-color: #F1202B;
	border-radius: 20px;
}

#app #app-header-right #alert-2.selected {
	color: white;
	/*background-color: orange;*/
	background-color: #F5AC21;
	border-radius: 20px;		
}

#app #app-header-right #alert-3.selected {
	color: white;
	/*background-color: green;*/
	background-color: #16A76B;
	border-radius: 20px;
}

#app #app-header-right > span#no-location-icon,
#app #app-header-right > span#no-connection-icon {
	display: none;
}

#app #app-header-notification {
	position: absolute;
	top: 50px;
	left: 0px;
	width: 100%;
	padding: 5px;
	height: 50px;
	color: white;
}

#app #app-menu-left {
	display: none;
	float: left;
	background-color: white;
	width: 200px;
	height: calc(100% - 50px);
}

#app #app-menu-right {
	display: none;
	float: right;
	background-color: white;
	width: 200px;
	height: calc(100% - 50px);
}

#app #app-body {
	
	position: relative;
	height: calc(100% - 50px);
	margin-top: 50px;
	margin-left: auto;
	margin-right: auto;
	
}

#app #app-body #app-screen-scroll-outer {
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	overflow: hidden;
	margin: 0px;
}

/*
#app #app-body #app-screen-scroll-inner {
	width: 100%;
	overflow-x: hidden;
	top: 0px;
	left: 0px;
}
*/
#app .app-screen {
	position: absolute;
	display: inline-block;
	height: calc(100%);
	/*width: 600px;*/
	background-color: white;
	margin: 0px;
	padding: 0px;
	border: 0;
	left: -9999px;
	overflow-x: hidden;
	overflow-y: auto;
}

#app .app-screen.active {
	left: 0px;
	right: 0px;
	top: 0px;
}

#bell {
	display: inline-block;
	height: 37px;
	width: 37px;
	background-image: url("../images/bell-white.png");
	background-repeat: no-repeat;
	background-size: 37px 37px;
	border-radius: 30px;
}


#world-map {
	width: 100%;
	padding-top: 50%; /* controls the aspect ratio of the world map image, 75% = 4:3; 50% = 2:1 */
	overflow: hidden;
	text-align: center;
	position: relative;
	display: none;
	margin-bottom: 5px;
}

#world-map.visible {
	display: block;
}

#world-map > img {
	display: inline-block;
	max-height: calc(100% + 20px);
	max-width: 100%;
	background-color: transparent;
	position: absolute;
	top: 0px;
	left: 0px;
}

#world-map > img:last-of-type {
	display: none;
}

.alert-list {
	
	
}

.alert-list .alert {
	width: 100%;
	padding-top: 5px;
	padding-bottom: 5px;
	border-bottom: 1px solid #EEEEEE;
	min-height: 60px;
}

.alert-list .alert:hover {
	cursor: pointer;
	/*background-color: #F7EAE1;*/
}

.alert-list .alert > .alert-icon {
	float: left;
	position: relative;
	width: 50px;
	height: 50px;
	/*padding: 5px;*/
	margin: 3px 10px;
	border-radius: 30px; /*30*/
	color: white;
	font-size: 0.95rem;
	text-align: center;
	vertical-align: middle;
	overflow: visible;
}

.alert-list .alert.alert-type-2 {
	/*background-color: #FFE587 !important;*/
	background-color: #F57E21 !important;
	animation: pulse 3s infinite;
}

.alert-list .alert.alert-type-2 > .alert-icon
{
	border-radius: 0px !important;
	font-size: 0.95rem;
	text-align: center;
	vertical-align: middle;
	background-color: transparent !important;
	background-image: url("../images/alert-icon.png");
	background-size: 100% 100%;
	background-position: center center;
	background-repeat: no-repeat;
	color: transparent;
}

@keyframes pulse {
  0% {
    background-color: #F57E21;
  }
  50% {
    background-color: #FFD954;
  }
  100% {
    background-color: #FFE587;
  }
}

.alert-list .alert.rule-type-5 > .alert-icon {
	border-radius: 0px !important;
	font-size: 0.95rem;
	text-align: center;
	vertical-align: middle;
	background-color: transparent !important;
	background-size: 100% 100%;
	background-position: center center;
	background-repeat: no-repeat;
	color: transparent;
}




.alert-list .alert > .alert-icon > .alert-icon-text {
	vertical-align: middle;
	display: inline-block;
	text-align: center;
	/*margin-top: auto;
	margin-bottom: auto;*/
	margin: 10px 2px;
	width: calc(100% - 4px);
	/*height: 30px;*/
	/*width: 40px;*/
	/*overflow: hidden;*/
	/*word-break: break-all;*/
	/*word-wrap: break-word;*/
	line-height: 100%;
}

.alert-list .alert > .alert-icon.alert-type-user-offline {
	background-image: url("../images/user-offline-icon-white-2.png");
	background-position: center center;
	background-size: 50px 50px;
	background-position: center center;
	background-repeat: no-repeat;
	border-radius: 0px !important;
	background-color: transparent !important;
}




.alert-list .alert > .alert-message {
	/*min-height: 60px;*/
	margin-left: 70px;
	margin-right: 10px;
}

.alert-list .alert > .alert-status {
	margin-left: 70px;
	margin-right: 10px;
	color: gray;
}

.alert-list .alert > .alert-message > .alert-title {
	/*color: blue;*/
	color: #5EB6D6;
}

.alert-list .alert > .alert-message > .alert-title .alert-title-right {
	float: right;
	color: #444;
	font-size: 0.8rem;
	text-align: right;
}

.alert-list .alert > .alert-message > .alert-message-body {
	color: gray;
}

.alert-list .alert.priority-1 > .alert-message > .alert-title {
	/*color: #FF4959;*/
	color: #F1202B;
}

.alert-list .alert.priority-1 > .alert-icon {
	/*background-color: #FF4959;*/
	background-color: #F1202B;
}

.alert-list .alert.priority-2 > .alert-message > .alert-title {
	/*color: #FFC900;*/
	color: #F5AC21;
}

.alert-list .alert.priority-2 > .alert-icon {
	/*background-color: #FFC900;*/
	background-color: #F5AC21;
}

.alert-list .alert.priority-3 > .alert-message > .alert-title {
	/*color: #819E32;*/
	color: #16A76B;
}

.alert-list .alert.priority-3 > .alert-icon {
	/*background-color: #B0DB43;*/
	background-color: #16A76B;
}

.alert-list .alert.priority-4 > .alert-message > .alert-title {
	color: #4386D8;
}

.alert-list .alert.priority-4 > .alert-icon {
	background-color: #4386D8;
}

.alert-icon-user-badge {
	position: absolute;
	top: 30px;
	left: 30px;
	width: 20px;
	height: 20px;
	border-radius: 15px;
	padding: 2px;
	text-align: center;
	background-color: purple;
	opacity: 0.8;
}

.alert-list .no-alerts-message {
	padding: 20px 10px;
	/*color: #819E32;*/
	color: #16A76B;
	text-align: center;
	display: none;
}

/******************************
	Alert view screen
*******************************/

#app-alert-view-header {
	min-height: 50px;
}

#app-alert-view-header-priority {
	float: left;
	margin: 10px;	
	height: 30px;
	width: 30px;
	border-radius: 15px;
	background-color: silver;
}

#app-alert-view-header-priority.priority-1 {
	/*background-color: #FF4959;*/	
	background-color: #F1202B
}

#app-alert-view-header-priority.priority-2 {
/*	background-color: #FFC900;	*/
	background-color: #F5AC21;	
}

#app-alert-view-header-priority.priority-3 {
	/*background-color: #B0DB43;*/
	background-color: #16A76B;	
}

#app-alert-view-header-priority.priority-1.done {
	background-color: transparent;
	background-image: url("../images/white-tick.png"), linear-gradient(to right, #FF4959, #FF4959);
	background-size: cover;
	background-position: center center;
}
#app-alert-view-header-priority.priority-2.done {
	background-color: transparent;
	background-image: url("../images/white-tick.png"), linear-gradient(to right, #FFC900, #FFC900);
	background-size: cover;
	background-position: center center;
}
#app-alert-view-header-priority.priority-3.done {
	background-color: transparent;
	background-image: url("../images/white-tick.png"), linear-gradient(to right, #B0DB43, #B0DB43);
	background-size: cover;
	background-position: center center;
}


#app-alert-view-header-title {
	margin-left: 50px;
	padding: 12px;
	font-size: 1.2rem;
}

#app-alert-view-description {
	margin: 10px;
	color: gray;
}

#app-alert-view-header-title.priority-1 {
	/*color: #FF4959;*/
	color: #F1202B;
}
#app-alert-view-header-title.priority-2 {
	/*color: #FFC900;*/
	color: #F5AC21;
}
#app-alert-view-header-title.priority-3 {
	/*color: #819E32;*/
	color: #16A76B;
}

#alert-comment-select {
	width: calc(100% - 10px);
    border: 1px solid #ccc;
    height: 35px;
    font-size: 18px;
    margin: 5px 0px 20px 0px;
	color: gray;
}

#app-alert-view-list-map {
	text-align: center;
}

#app-alert-view-map {
	width: calc(100% - 20px);
	background-color: silver;
	margin: 0px 10px;
}

#app-alert-view-list-install {
	background-image: url("../images/home.png");
	background-repeat: no-repeat;
	background-position: 10px center;
	background-size: 20px 20px;
	padding-left: 40px;
}

#app-alert-view-list-time {
	background-image: url("../images/clock.png");
	background-repeat: no-repeat;
	background-position: 10px center;
	background-size: 20px 20px;
	padding-left: 40px;
}

#app-alert-view-list-time-2 {
	background-image: url("../images/clock-2.png");
	background-repeat: no-repeat;
	background-position: 10px center;
	background-size: 20px 20px;
	padding-left: 40px;
}


#app-alert-view-list-assigned {
	background-image: url("../images/user.png");
	background-repeat: no-repeat;
	background-position: 10px 15px;
	background-size: 20px 20px;
	padding-left: 40px;
}

#app-alert-view-list-view-sensor-btns {
	display: none;
}

#app-alert-view-list-view-sensor-btns button {
	background-color: #16A76B;
	color: white;
	border: 0;
	font-size: 1.2rem;
	padding: 10px 0px;
	width: calc(100% - 12px);
}


#app-alert-view-num-carers-item {
	background-image: url("../images/user.png");
	background-repeat: no-repeat;
	background-position: 10px 15px;
	background-size: 20px 20px;
	padding-left: 40px;
}

#app-alert-view-assign-to-me,
#app-alert-view-complete {
	clear: both;
	padding: 10px;
	margin-right: 20px;
}

#app-alert-view-completed {
	color: #819E32;
}

#app-alert-view .list-item {
	padding: 10px 5px;
	padding-left: 40px;
}

.app-alert-view-noti-user {
	padding-top: 5px;
	padding-bottom: 5px;
	margin-bottom: 5px;
	border-bottom: 1px dotted #EEE;
	min-height: 50px;
}

.app-alert-view-noti-user .app-user-list-item-sms-button {
	margin-left: 10px;
}

.app-alert-view-noti-user:first-of-type {
	padding-top: 0px;
}

.app-alert-view-noti-user-status {
	font-size: 0.9rem;
}

/*
	Shift related styles
*/

.shift-list > .shift-card:hover {
	cursor: pointer;
	background-color: #F7EAE1;
}

.shift-list .shift-card {
	position: relative;
	background-color: white;
	background-image: url("../images/shift.png");
	background-repeat: no-repeat;
	background-size: 50px 50px;
	background-position: 10px 10px;
	padding: 10px 10px 10px 70px;
	min-height: 50px;
	color: gray;
	border-bottom: 1px solid #EEE;
}

.shift-list .shift-card:first-of-type {
	border-top: 1px solid #EEE;
}

.shift-card .shift-card-title {
	color: #5EB6D6;
}

.shift-card .shift-times {
	float: right;
	text-align: right;
	color: #444;
	font-size: 0.8rem;
}

.shift-card .shift-num-installs,
.shift-card .shift-num-staff {
	display: inline-block;
}

.shift-card .shift-status.on-call {
	color: #819E32;
}

.shift-card .shift-status.off-call {
	color: #BA3F3F;
}

.shift-card .shift-status.in-past {
	color: #FF982B;
}

.shift-card .shift-status.in-future {
	color: gray;
}

#app-shift-view input[type="text"],
#app-shift-view input[type="date"],
#app-shift-view input[type="time"] {
	border: 2px solid transparent;
	font-family: 'Roboto', sans-serif;
	display: inline-block;
	font-size: 1.2rem;
	color: gray;
	width: auto;
	padding: 2px;
	margin: 2px;
}

#app-shift-view input#app-shift-view-header-title[type="text"] {
	color: #5EB6D6;
	font-size: 1.2rem;
}

#app-shift-view[data-editing] input[type="text"],
#app-shift-view[data-editing] input[type="time"],
#app-shift-view[data-editing] input[type="date"] {
	border: 2px solid #EEEEEE;
	font-family: inherit;
	color: gray;
	font-size: 1.2rem;
}

#app-shift-view-list-add-user {
	border: 2px solid #EEEEEE;
	font-family: inherit;
	color: gray;
	font-size: 1.0rem;
	width: calc(100% - 140px);
	padding: 11px 5px;
	display: none;
}


#app-shift-view-list-add-user-order {
	border: 2px solid #EEEEEE;
	font-family: inherit;
	color: gray;
	font-size: 1.0rem;
	padding: 11px 5px;
	display: none;
}

#app-shift-view-add-user-btn,
#app-shift-view-add-install-btn,
#app-shift-view-list-add-rule-btn {
	float: right;
	margin-right: 12px;
	display: inline-block;
	width: 40px;
	padding: 12px;
	display: none;
}


#app-shift-view-add-install {
	border: 2px solid #EEEEEE;
	font-family: inherit;
	color: gray;
	font-size: 1.0rem;
	width: calc(100% - 77px);
	padding: 11px 5px;
	display: none;
}




#app-shift-view-header {
	min-height: 50px;
}

#app-shift-view-body {
	padding-bottom: 100px;
}

#app-shift-view-header-title {
	color: #5EB6D6;
	padding: 12px;
	font-size: 1.2rem;
}

#app-shift-view-list-start-time {
	padding-left: 40px;
	background-image: url("../images/clock.png");
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: 10px center;
}

#app-shift-view-list-end-time {
	padding-left: 40px;
	background-image: url("../images/clock-2.png");
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: 10px center;
}

#app-shift-view-list-carers {
	
	padding-left: 40px;
	background-image: url("../images/user.png");
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: 10px 15px;
	min-height: 40px;
}

#app-shift-view-list-carers .app-shift-view-carer {
	min-height: 30px;
	vertical-align: baseline;
}

#app-shift-view-list-carers .app-shift-view-carer-status {
	display: inline-block;
	vertical-align: middle;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	background-color: silver;
	margin-right: 10px;
	color: white;
	text-align: center;
}

#app-shift-view-list-carers .app-shift-view-carer-delete-btn {
	float: right;
	height: 20px;
	width: 20px;
	background-color: #FF4959;
	color: white;
	border-radius: 20px;
	text-align: center;
	vertical-align: middle;
	display: none;
	margin-right: 10px;
}

#app-shift-view-list-carers .app-shift-view-carer-status.on-call {
	/*background-color: #A9D740;*/
	background-color: #16A76B;
}

#app-shift-view-list-carers .app-shift-view-carer-status.off-call {
	/*background-color: #FF4959;*/
	background-color: #F1202B;
}

#app-shift-view-list-installs {
	padding-left: 40px;
	background-image: url("../images/home.png");
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: 10px 15px;
	min-height: 40px;
}

.app-shift-view-install {
	margin-bottom: 10px;
}

.app-shift-view-install:hover {
	background-color: #EEE;
}

#app-shift-view-list-installs .app-shift-view-install-status {
	width: 20px;
	height: 20px;
	border-radius: 10px;
	vertical-align: middle;
	text-align: center;
	display: inline-block;
	background-color: silver;
	margin-right: 10px;
}

#app-shift-view-list-installs .app-shift-view-install-status.priority-1 {
	/*background-color: #FF4959;*/
	background-color: #F1202B;
}

#app-shift-view-list-installs .app-shift-view-install-status.priority-2 {
	/*background-color: #FFC900;*/
	background-color: #F5AC21;
}

#app-shift-view-list-installs .app-shift-view-install-status.priority-3 {
	/*background-color: #A9D740;*/
	background-color: #16A76B;
}

#app-shift-view-list-installs .app-shift-view-install-name {
	vertical-align: middle;
}

#app-shift-view-list-carers .app-shift-view-carer-num-alerts {
	color: silver;
	font-size: 0.8rem;
}

#app-shift-view-list-installs .app-shift-view-install-delete {
	float: right;
	background-color: #FF4959;
	color: white;
	text-align: center;
	height: 20px;
	width: 20px;
	border-radius: 20px;
	display: none;
	margin-right: 10px;
}


#app-shift-view-list-alerts {
	padding-left: 40px;
	background-image: url("../images/bell-black.png");
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: 10px 15px;
	min-height: 40px;
}

#app-shift-view-list-alerts .app-shift-view-list-alerts-status {
	display: inline-block;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	vertical-align: middle;
	text-align: center;
	margin-right: 10px;
	
}

#app-shift-view-list-alerts .app-shift-view-list-alert {
	margin-bottom: 10px;
}

#app-shift-view-list-alerts .app-shift-view-list-alerts-status.priority-1 {
	/*background-color: #FF4959;*/
	background-color: #F1202B;
}

#app-shift-view-list-alerts .app-shift-view-list-alerts-status.priority-2 {
	/*background-color: #FFC900;*/
	background-color: #F5AC21;
}

#app-shift-view-list-alerts .app-shift-view-list-alerts-status.priority-3 {
	/*background-color: #A9D740;*/
	background-color: #16A76B;
}

#app-shift-view-list-alerts .app-shift-view-list-alerts-status.rule-disabled {
	background-color: #EEE;
}

#app-shift-view-list-alerts .app-shift-view-list-alert .remove-shift-rule-btn {
	background-color: #FF4959;
	color: white;
	text-align: center;
	vertical-align: middle;
	float: right;
	display: none;
	height: 20px;
	width: 20px;
	margin-right: 10px;
	border-radius: 10px;
}


#app-shift-view-list-add-rule {
	border: 2px solid #EEEEEE;
	font-family: inherit;
	color: gray;
	font-size: 1.0rem;
	width: calc(100% - 77px);
	padding: 11px 5px;
	display: none;
}

#app-shift-view .btn-danger {
	width: auto;
	margin: 10px 20px;
	display: none;
}



/*
	Main Menu
*/

#app-screen-menu .list-item {
	padding-left: 20px;
	background-image: url("../images/forward-chevron-orange.png");
	background-position: center right;
	background-repeat: no-repeat;
	background-size: 40px 40px;
}

#app-screen-menu .list-item:hover {
	background-color: #FFC900;
}

#app-user-list-body .list-item {
	min-height: 30px;
}

.list-item .app-user-list-item-icon {
	background-color: purple;
	float: left;
	text-align: center;
	color: white;
	height: 20px;
	width: 20px;
	padding: 10px;
	border-radius: 40px;
	display: inline-block;
	margin-right: 10px;
	margin-left: 10px;
	margin-top: -5px;
	margin-bottom: -10px;
}

.list-item .app-user-list-item-name {
	margin-top: -4px;
}

list-item:hover {
	background-color: #FFC900;
}

.app-user-view-icon-wrapper {
	text-align: center;
}

.app-user-view-icon {
	width: 180px;
	height: 180px;
	padding: 10px 10px;
	border: 3px solid purple;
	background-color: purple;
	color: white;
	font-size: 10.0rem;
	text-align: center;
	border-radius: 100px;
	display: inline-block;
}

#app-user-view-body .list-item {
	padding-left: 10px;
	padding-right: 10px;
}

#app-user-view-edit-btn {
	background-image: url("../images/edit-icon-white.png");
}

#app-user-view-save-btn {
	/*background-color: #A9D740;*/
	background-color: #5EB6D6;
	background-image: url("../images/white-tick-large.png");
}


#app-alert-list-body .list-item {
	background-image: url("../images/forward-chevron-orange.png");
	background-position: center right;
	background-repeat: no-repeat;
	background-size: 40px 40px;
	padding: 5px 5px;
}


#app-alert-list-body .alert-list-rule-icon {
	background-color: silver;
	float: left;
	text-align: center;
	color: white;
	height: 38px;
	width: 48px;
	padding: 7px 2px;
	border-radius: 30px;
	display: block;
	margin-right: 10px;
	margin-left: 10px;
	margin-top: 5px;
	/*margin-bottom: -20px;*/
	overflow: hidden;
	font-size: 0.9rem;
}


#app-alert-list-body .alert-list-rule-icon.alert-type-user-offline {
	background-image: url("../images/user-offline-icon-white.png");
	background-position: center center;
	background-size: 100% 100%;
	background-position: center center;
	background-repeat: no-repeat;
	background-color: transparent !important;
	border-radius: 0px;
}


#app-alert-list-body .alert-list-rule-icon.priority-1 {
	/*background-color: #FF4959;*/
	background-color: #F1202B;
}

#app-alert-list-body .alert-list-rule-icon.priority-2 {
	/*background-color: #FFC900;*/
	background-color: #F5AC21;
}

#app-alert-list-body .alert-list-rule-icon.priority-3 {
	/*background-color: #A9D740;*/
	background-color: #16A76B;
}

#app-alert-rule-body {
	padding-bottom: 100px;
}

#app-alert-rule-body .list-item {
    min-height: 30px;
}

#app-alert-rule-view .app-alert-rule-body-attribute {
	margin: 5px;
	color: gray;
}

#app-alert-rule-view .app-alert-rule-body-attribute .app-alert-rule-body-attribute-name {
	margin: 15px 5px;
	height: 30px;
	padding-left: 55px;
	padding-top: 10px;
	background-image: url("../images/blue-bullet.png");
	background-repeat: no-repeat;
	background-position: 3px 0px;
	background-size: 40px 40px;
}

.app-alert-rule-body-num-carers {
	height: 40px;
	margin-top: 5px;
	margin-left: 15px;
	padding: 10px 5px;
	color: gray;
}

#num-carers {
	width: 30px;
	color: gray;
	padding: 5px;
	font-size: 1.0rem;
	font-family: "Roboto", sans-serif;
	margin: 0px 5px;
}

#num-users-with-attributes-message {
	padding-left: 20px;
}

/* Box */
div.box {
    width: calc(100% - 10px);
    height: auto;
    border: 1px solid #ccc;
    margin: 10px 5px;
}

/* Modal Windows */
.modal {
    padding: 50px 10px 10px 10px;
    display: none;
    width: 90%;
    height: 85%;
    z-index: 120;
    position: fixed;
    top: -1000px;
    left: 2.5%;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 30px #ccc;
}
.modal .modal-close {
    border: none;
    width: 40px;
    height: 40px;
    font-size: 27px;
    color: white;
    background-color: #CC0000;
    border-radius: 50%;

    float: right;
    position: relative;
    top: -40px;
    right: 0;
}
.modal .modal-save {
    position: absolute;
    bottom: 10px;
    left: 0;
    background-image: none;
}
.modal select, .modal input {
    width: 100%;
    border: 1px solid #ccc;
    height: 35px;
    font-size: 18px;
}
.modal h3.modal-title {
    top: -30px;
    position: relative;
    display: inline;
}
.modal #within {
    text-align: center;
    margin-top: 20px;
}

#add-step-modal.modal {
    height: 250px;
}

#add-user-modal.modal {
    height: 150px;
}

#overlay {
    display: none;
    position: absolute;
    top: 0;
    background: rgba(204, 204, 204, 0.7);
    width: 100%;
    height: 100%;
    z-index: 119;
}

#app-alert-rule-body select {
    width: calc(100% - 10px);
    border: 1px solid #ccc;
    height: 35px;
    font-size: 18px;
    margin: 10px 5px 5px 5px;
	color: gray;
}

#app-version-view-body select {
	width: calc(100% - 100px);
    border: 1px solid #ccc;
    height: 35px;
    font-size: 18px;
    margin: 0px 5px 0px 5px;
	color: gray;
}

#app-alert-list-view-filter {
	width: calc(100% - 10px);
    border: 1px solid #ccc;
    height: 35px;
    font-size: 18px;
    margin: 5px 5px 0px 5px;
}

#app-alert-rule-body button#add-step, 
#app-alert-rule-body button#add-user,
#app-alert-rule-body button#add-attribute {
    margin-top: 10px;
}

.app-user-list-item-name.no-within {
    margin-top: 5px;
}


.date-block {
	display: inline-block;
	width: 300px;
}

.date-block input[type="date"] {
	width: 150px;
}

.time-block {
	display: inline-block;
	width: 120px;
}

.time-range {
	margin-top: 10px;
}


#app-new-shift-view-body {
	margin: 10px;
}

#app-new-shift-view-body .btn-primary {
	width: calc(100% - 20px);
	margin: 10px;
}

#app-new-shift-view-client-select-row {
	margin: 10px;
	color: gray;
	margin-bottom: 40px;
}

#app-new-shift-view-client-select {
	width: calc(100% - 50px);
	padding: 10px;
	vertical-align: middle;
	font-family: "Roboto", sans-serif;
	font-size: 1.0rem;
}

#app-copy-shift-view-body {
	margin: 10px;
	color: gray;
}

#app-copy-shift-view-shift-list {
	margin-top: 10px;
}

#app-copy-shift-view-body .list-item {
	background-image: url("../images/forward-chevron-orange.png");
	background-position: center right;
	background-repeat: no-repeat;
	background-size: 40px 40px;
}

#app-copy-shift-view-body .app-copy-shift-view-shift-title {
	color: #5EB6D6;
}

.proximity-card {
	padding-left: 70px;
	background-image: url("../images/location.png");
	background-position: 15px 10px;
	background-repeat: no-repeat;
	background-size: 40px 40px;
	min-height: 40px;
	margin-top: -1px;
	padding-top: 10px;
	padding-bottom: 10px;
}

#app-version-view .list-item {
	padding-left: 20px;
}

.app-help-view-nearby-user-card {
	min-height: 45px;
	padding: 5px 10px;
}

.app-help-view-nearby-user-badge {
	
	float: left;
	height: 20px;
	width: 20px;
	padding: 12px;
	border-radius: 30px;
	text-align: center;
	color: white;
	background-color: purple;
	margin: 5px 10px;
	vertical-align: middle;
	font-size: 1.2rem;
}

.app-help-view-nearby-user-card .app-help-view-nearby-user-card-alerts.busy {
	/*color: #FF4959;*/
	color: #F1202B;
}

.app-help-view-nearby-user-card .app-help-view-nearby-user-card-status.on-call {
	/*color: #819E32;*/
	color: #16A76B;
}

.app-help-view-nearby-user-card .app-help-view-nearby-user-card-status.off-call {
	/*color: #FF4959;*/
	color: #F1202B;
}

#app-help-view-num-carers-to-alert {
	font-family: 'Roboto', sans-serif;
	font-size: 1.2rem;
	padding: 5px;
	border: 2px solid #EEEEEE;
	margin: 5px;
	color: gray;
	width: 50px;
	background-color: transparent;
	vertical-align: middle;
	text-align: center;
}

#app-help-view-num-carers-to-alert-down,
#app-help-view-num-carers-to-alert-up {
	font-size: 1.2rem;
	padding: 5px;
	margin: 5px 0px;
	width: 40px;
}

.app-user-list-item-call-button {
	float: right;
	width: 50px;
	/*background-color: #A9D740;*/
	background-color: #16A76B;
	color: white;
	text-align: center;
	height: 50px;
	border-radius: 30px;
	margin-top: -5px;
	background-image: url("../images/call-icon-white.png");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 30px 30px;
}


.app-user-list-item-sms-button {
	float: right;
	width: 50px;
	/*background-color: #FFC900;*/
	background-color: #F57E21;
	color: white;
	text-align: center;
	height: 50px;
	border-radius: 30px;
	margin-top: -5px;
	margin-right: 10px;
	background-image: url("../images/sms-icon-white.png");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 30px 30px;
}



#app-reset-pin-body {
	margin: 0px 10px;
	color: gray;
}

#app-reset-pin-body .btn-primary {
	margin-left: 5px;
}

#app-reset-pin-body input[type="number"] {
	font-family: Roboto, sans-serif;
	display: block;
	font-size: 1.2rem;
	padding: 5px;
	margin: 20px 5px;
	color: gray;
	width: calc(100% - 24px);
}

#reset-code-sent-to {
	font-weight: bold;
}

#app-reset-pin-failed {
	margin: 10px;
	text-align: center;
	color: #FF4959;
	display: none;
}

#app-menu-sounds-enabled {
	display: block;
	float: right;
	margin-right: 10px;
	margin-top: -5px;
	height: 24px;
	width: 80px;
	padding-top: 4px;
	border-radius: 15px;
	text-align: center;
	color: white;
	/*background-color: #FF4959;*/
	background-color: #F1202B;
}


#app-menu-sounds:hover {
	background-color: #F4F4F4 !important;
	cursor: pointer;
}

#app-menu-sounds-enabled.enabled {
	/*background-color: #A9D740;*/
	background-color: #5EB6D6;
}

.alert-list-priority-1-filter-message,
.alert-list-priority-2-filter-message,
.alert-list-priority-3-filter-message
{
	text-align: center;
	padding: 10px 0px;
	color: silver;
	border-top: 1px solid #EEE;
	border-bottom: 1px solid #EEE;
	display: none;
}

.app-user-onsite-card {
	padding: 10px 5px;
	background-color: white;
	border-bottom: 1px solid #EEE;
}

.app-user-onsite-card .app-user-onsite-card-title {
	font-size: 1.0rem;
	/*color: #FF982B;*/
	color: #4386D8;
}

.app-user-onsite-card .app-user-onsite-card-subtext {
	font-size: 0.9rem;
	color: #888;
}

.app-user-onsite-card .app-user-onsite-card-confirm-yes-btn,
.app-user-onsite-card .app-user-onsite-card-confirm-left-btn {
	height: 21px;
	margin: 2px;
	margin-bottom: 10px;
	float: right;
	/*background-color: #A9D740;*/
	background-color: #5EB6D6;
	color: white;
	font-size: 1.1rem;
	padding: 5px 10px;
	margin-left: 10px;
	border-radius: 20px;
}

.app-user-onsite-card .app-user-onsite-card-confirm-no-btn,
.app-user-onsite-card .app-user-onsite-card-cancel-btn {
	height: 21px;
	margin: 2px;
	float: right;
	/*background-color: #FF4959;*/
	background-color: #F5AC21;
	color: white;
	font-size: 1.1rem;
	padding: 5px 10px;
	border-radius: 20px;
}

.app-user-onsite-card .app-user-onsite-card-confirm-yes-btn:hover,
.app-user-onsite-card .app-user-onsite-card-confirm-no-btn:hover,
.app-user-onsite-card .app-user-onsite-card-confirm-left-btn:hover,
.app-user-onsite-card .app-user-onsite-card-cancel-btn:hover {
	cursor: pointer;
}


#app-screen-notifications .title {
	width: calc(100% - 170px);
}

#notifications-by-property {
	display: none;
}

#notifications-by-property .list-item {
	padding-bottom: 5px;
}

#filter-buttons {
	margin-left: 5px;
	margin-top: 5px;
}

#filter-buttons > img, #map-buttons > img {
	width: 40px;
	height: 40px;
	float: left;
	cursor: pointer;
}

#filter-by-alert {
	opacity: 0.7;
}

#filter-by-property {
	opacity: 0.25;
}

#map-buttons {
	float: right;
	margin-right: 5px;
	margin-top: 5px;
}



.property-card {
	min-height: 40px;
	height: auto;
	cursor: pointer;
}

.property-card.list-item:last-child {
	border-bottom: none;
}

#notifications-by-property-green .property-card.list-item:last-child {
	border-bottom: 1px solid #EEE;
	padding-bottom: 10px;
}

.property-card .property-badge {
	float: left;
	position: relative;
	margin: 5px;
	margin-top: -5px;
	margin-right: 10px;
	width: 50px;
	height: 50px;
	background-color: silver;
	border-radius: 25px;
}

.property-card .property-title {
	
	margin-top: -5px;
	
}

.property-card .property-badge {
	color: white;
}

.property-card .property-badge.gray-background {
	background-image: url("../images/pause.png");
	background-position: center center;
	background-size: 80% 80%;
	background-repeat: no-repeat;
}

.property-right {
	float: right;
	color: #444;
	font-size: 0.8rem;
	text-align: right;
	margin-top: -5px;
}

.property-card .property-sensors {
	margin: 5px 0px;
	text-align: right;
}

.property-card .property-sensor-btn {
	font-size: 1.0rem;
	background-color: #16A76B;
	color: white;
	padding: 5px 10px;
	margin: 0px 10px;
	border: 0px;
}


#app-toast {
	position: fixed;
	bottom: 0px;
	left: 0px;
	right: 0px;
	color: white;
	min-height: 30px;
	padding: 5px;
	z-index: 9999;
	display: none;
}

#app-toast-inner {
	position: relative;
	background-color: #F57E21;
	max-width: 1024px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	padding: 10px;
}

#toggle-map {
	opacity: 0.25;
}