#myDevicesWrapper {
	display: flex;
	height: 100%;
}

#myDevicesList,
#myDevicesCalving,
#myDevicesPhone {
	flex: 1;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

#myDevicesList .title,
#myDevicesCalving .title,
#myDevicesPhone .title {
	margin-bottom: 0;
}

#calvingListInner {
	position: relative;
	flex: 1;
	overflow: auto;
	margin-top: 5px;
}

#myDevicesCalvingLeft {
	font-size: 12px;
}

#calvingListScroll {
	height: 100%;
	overflow: auto;
}

.calvingListItem {
	display: flex;
	width: 100%;
	border-bottom: 1px solid var(--border-color-light);
	height: 60px;
	box-sizing: border-box;
	font-size: 12px;
	padding: 5px 10px;
	justify-content: space-between;
	align-items: center;
}

.calvingListItemText {
	margin-right: 5px;
	line-height: 20px;
}

.calvingListItemValue {
	line-height: 20px;
}

.calvingListItemLeft {
	display: flex;
}

#calvingList, #phoneList {
	margin: 0;
	padding: 0;
	list-style: none;
	padding: 0 0 5px 0;
}

.calvingListItemTimer {
	width: 80px;
	margin-left: 10px;
}

.calvingListItemDescription {
	width: 130px;
	margin: 0 10px;
	text-align: center;
	font-size: 12px;
}

/*** PHONE LIST ***/
#myDevicesPhoneContentInner {
	line-height: 50px;
	padding: 0 10px
}

#phoneListInner {
	position: relative;
	flex: 1;
	margin-top: 5px;
}

#phoneListScroll {
	height: 100%;
	overflow: auto;
}

.phoneListItem {
	display: flex;
    width: 100%;
    border-bottom: 1px solid var(--border-color-light);
    height: 60px;
    box-sizing: border-box;
    font-size: 12px;
    padding: 5px 10px;
    justify-content: space-between;
    align-items: center;
}

.phoneListItem.deviceListItem.active:not(:first-child),
.phoneListItem.deviceListItem.active:not(:first-child):hover {
	margin-top: -2px;
    padding-top: 2px;
	height: 62px;
}

.phoneListItemLeft {
	display: flex;
	flex: 1;
}

.phoneListItemText {
	margin-right: 5px;
	line-height: 20px;
}

.phoneListItemValue {
	line-height: 20px;
}

.phoneListItemIcons .editIcon {
	width: 22px;
	height: 22px;
	background: url(/img/icons-svg/icon-edit.svg) 50% 50% no-repeat;
	display: block;
	float: left;
	margin: 0 9px 0 0;
}

.phoneListItemIcons .editIcon:hover, .phoneListItemIcons .deleteIcon:hover {
	opacity: 0.6;
}

.phoneListItemIcons .deleteIcon {
	width: 22px;
	height: 22px;
	background: url(/img/icons-svg/icon-delete.svg) 50% 50% no-repeat;
	display: block;
	float: right;
	margin: 0;
}

.phoneListItemAssignedCounter {
	line-height: 18px;
	margin-right: 30px;
	width: 77px;
	text-align: center;
}

#editPhoneWrapper {
	max-width: 555px;
}

#editPhoneDetails {
	display: flex;
	padding: 12px 5px 20px;
}

#editInfoDetailsText {
	text-align: right;
}

#editInfoDetailsText label {
	line-height: 25px;
	font-weight: bold;
	margin-right: 5px;
}

#editInfoDetailsText .brclear {
	margin-bottom: 6px;
}

#editInfoDetailsValue .brclear {
	margin-bottom: 5px;
}

#editInfoDetailsAssign {
	display: flex;
	flex-wrap: wrap;
	justify-content: end;	
}

#editInfoDetailsAssign div {
	display: flex;
	flex-direction: column-reverse;
}

#editInfoDetailsAssign .buttonGreen {
	line-height: 45px;
}

#editInfoDetailsAssignCounter {
	margin-right: 6px;
}

#editInfoDetailsNameValue {
	margin-bottom: 5px;
}

#editPhoneDeviceList {
	height: 400px;
	position: relative;
	padding-top: 20px;
	margin: 0 10px;
}

.editPhoneCol1 {
	float: left;
	margin-left: 10px;
	width: 130px;
}

.editPhoneCol2 {
	float: left;
	margin-left: 10px;
	width: 160px;
}

.editPhoneCol3 {
	float: right;
	margin-right: 10px;
	width: 77px;
	text-align: right;
}

#editPhoneDeviceListScroll {
	height: 215px;
	margin-top: 20px;
	overflow: auto;
}

.editPhoneListItem {
	border-bottom: 1px solid var(--border-color-light);
	font-size: 14px;
	color: rgba(0, 0, 0, 0.5);
	height: 50px;
}

.editPhoneListItem:hover {
	opacity: 0.9;
}

.editPhoneListItem .col1 {
	float: left;
	margin-left: 10px;
	width: 130px;
	line-height: 49px;
}

.editPhoneListItem .col2 {
	float: left;
	margin-left: 10px;
	width: 160px;
	line-height: 49px;
}

.editPhoneListItem .checkboxGreen {
	float: right;
	margin-right: 10px;
	margin-top: 15px;
}

.errorText {
	text-align: right;
	float: right;
	margin-right: 10px;
	text-shadow: 1px 1px rgba(255, 255, 255, 0.5);
}

#myDevicesLoadMore {
	display: block;
	position: relative;
	color: #fff;
	text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
	background: #FF9326;
	border: 1px solid #fff;
	-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
	-o-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
	padding: 5px 15px;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	margin: 0 5px;
	width: auto;
	line-height: 10px;
	margin-top: 14px;
	margin-right: 30px;
}

#loadMoreIconWrapper {
	border-radius: 100%;
	position: absolute;
	top: -5px;
	right: -20px;
	text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
	background: #FF9326;
	border: 1px solid #fff;
	width: 28px;
	height: 28px;
	-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
	-o-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

#myDevicesLoadMore:hover, #loadMoreIconWrapper:hover {
	-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
	-moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
	-o-box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

#loadMoreIconCover {
	position: absolute;
	top: 0px;
	right: -12px;
	background: #FF9326;
	width: 28px;
	height: 20px;
	z-index: 10;
}

#loadMoreIcon {
	position: absolute;
	width: 100%;
	height:100%;
	background: url(/img/icons/refresh_white_icon.png) 50% 50% no-repeat;
	z-index: 15;
}

#loadMoreIcon.loading {
	-webkit-animation:spin 0.7s linear infinite;
    -moz-animation:spin 0.7s linear infinite;
    animation:spin 0.7s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }

#myDevicesSubmenu {
	display: none;
	margin-top: 22px;
}

#myDevicesSubmenuList {
	margin: 0;
    padding: 0;
    list-style: none;
}

.submenuListItem {
	display: inline;
	font-size: 16px;
    margin: 10px;
    padding: 2px 0;
    border-bottom: 3px solid transparent;
}

.submenuListItem.active  {
	border-bottom: 3px solid #659e45;
}

.submenuListItem a {

}

@media only screen and (max-width: 1300px) {
    #myDevicesContentWrapper {
    	margin-left:0;
    }

    #myDevicesCalving {
    	position: relative;
    	top: 0;
    	margin: 10px;
    	width: auto;
    }

    #myDevicesPhone {
    	margin: 10px;
    	top:0;
    }

    #myDevicesSubmenu {
		display: block;
	}


}

@media only screen and (max-width: 600px) {

	.phoneListItemAssignedCounter {
		display: none;
	}

}

@media only screen and (max-width: 480px) {

	#editPhoneDetails {
		text-align: center;
	}

	#editInfoDetailsForm {
		display: inline-block;
		float: none;
	}

    #editInfoDetailsAssign {
    	float: none;
    	clear: both;
    	text-align: center;
    	margin-top: 5px;
    }

    .editPhoneListItem .col2 {
		clear: both;
	}

	#editPhoneDeviceListHeader {
		height: 40px;
	}

	#editPhoneDeviceListScroll {
		margin-top: 40px;
		height: 195px;
	}

	.editPhoneCol2 {
		clear: both;
	}

	.editPhoneListItem .checkboxGreen {
		margin-top: -10px;
	}

	#myDevicesLoadMore {
		font-size: 0;
		padding: 0;
	}

	#loadMoreIconCover {
		display: none;
	}

	#loadMoreAnchor {
		left: 0;
		width: 100%;
	}

	#addPhoneButton {
		font-size: 0;
		height: 20px;
		display: block;
		float: left;
		background: #93C400 url(/img/icons/white-plus.png) 50% 50% no-repeat;
		margin-top: 9px;
	}

}

@media only screen and (max-height: 480px) {

	.overlayOuterWrapper {
		height: 100%;
	}

	#editPhoneWrapper {
		overflow: auto;
	}

}