.schedule-week {
    position: absolute;
    top: 38px;
    left: 465px;
}
.schedule_on_off {
    float: left !important;
    margin: 0px 10px !important;
}
#homesys-popup .deleteSchedules {
    background-size: 35px auto;
    position: absolute;
    top: 7px;
    right: 40px;
}
.navigation-schedules {
    width: auto;
    height: 26px;
    padding: 4px 0px 0px 26px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: left center;
    transition: all 300ms ease 0s;
    color: rgba(34, 80, 92, 0.85);
    font-size: 16px;
    position: absolute;
}
.prev-week-schedules {
    left: 27px;
    top: 35px;
    background-size: 14px;
}
.next-week-schedules {
    right: 26px;
    top: 35px;
    background-position: right center;
    padding: 4px 26px 0px 0px;
    background-size: 14px;
}
.schedules-select-date {
    position: absolute;
    top: 25px;
    left: 350px;
}
.enable-schedule {
    width: 35%;
    position: absolute;
    top: -3px;
}
.schedule_group {
    width: 100%;
    box-sizing: border-box;
}
.schedules-list {
    margin-top: 55px;
    height: 420px;
    float: left;
    width: 40%;
    overflow-y: auto;
}
.dayTitle {
    box-sizing: border-box;
}
.dayTitle {
    font-size: 11px;
    text-align: left;
    color: rgba(71, 71, 71, 0.85);
    border: none;
    padding: 5px;
    background: rgba(255,255,255,0.5);
    width: 98%;
    margin: 1px 0;
}
.addSchedule {
    padding: 2px 0px 0px 35px;
    vertical-align: middle;
    height: 24px;
    position: absolute;
    top: -4px;
    right: 26px;
}
.schedule, .overlappingSchedule {
    height: auto;
    padding: 10px 0px 10px 51px;
    width: 98%;
    background-position: 6px center !important;
    background-size: 40px auto !important;
    background-repeat: no-repeat;
    cursor: pointer;
    position: relative;
    overflow-y: hidden;
    box-sizing: border-box;    
}
.sched {
    background-repeat: no-repeat;
    text-align: left;
    padding-left: 45px;
    background-position: left center;
}

.sched-title {
    font-size: 14px;
    width: 85%;
    overflow: hidden;
}
.schedules-drawing {
    margin-top: 55px;
    height: 420px;
    float: left;
    width: 60%;
    cursor: url("/img/btn/btn_add_small.png") 16 16, crosshair;
}
.inline-right {
    float: right;
    margin-right: 37px;
}


#automation_schedules {
    padding: 5px 0 16px 0;
    width: 100%;
    height: 357px;
}
#selectDate, #selectStartDate, #selectStopDate {
    font-size: 16px;
    height: 37px;
    padding: 6px 6px 5px 6px;
    width: 107px;
    cursor: pointer;
	box-sizing: border-box;
}
.recurrenceInput {
    float: left;
    margin-top: 15px !important;
}
.daySelector {
    float: right;
    margin-top: 0px;
}
.hourSelector {
    float: right;
    margin-top: 5px;
	margin-left: 5px;
}
.hourSelector select {
    height: 37px;
}
#selectStartDate, #selectStopDate {
    width: 98px;
}
#schedule_content .add, #schedule_content .add:hover {
	background-size: 24px;
	background-position: left 13px;
	padding-top: 15px;
	padding-left: 28px;	
	margin-right: 0px !important;
	height: 38px;
	width: auto;
}
.selectStopDate_container, .selectStartDate_container {
    float: right;
    width: 50%;
}
#selectScene {
	width: 100%;
    margin-top: 5px;
}
#select_schedule_hour, #select_schedule_minute {
    width: 50px;
    margin: 5px;
}
#select_schedule_minute {
    margin-right: 0px;
}

#schedule_content {
    padding: 0px 15px;
}

#schedule_content .block_title {
    margin-bottom: 5px;
}
.deleteSchedule, .deleteOverlappingSchedule {
    right: 4px;
    top: 8px;
    height: 33px !important;
    width: 26px !important;
    background-size: 32px auto !important;
}
.deleteSchedule {
    display: none;
}
.schedule:hover .deleteSchedule /*, .overlappingSchedule:hover .deleteOverlappingSchedule*/ {
    display: inline;
}
.schedule_instructions {
    text-align: center;
    margin-top: 10px;
}
.selectRecurrence, .select_alarm_mode {
    margin-top: 5px;
}
.alarm_container {
    width: 100%;
    height: auto;
    display: inline-block;
    text-align: center;
    margin-top: 20px;
}
.alarm_mode {
    width: 74px;
    height: auto;
    text-align: center;
    display: inline-block;
    margin: 0px 10px;
    padding: 48px 3px 0px;
    position: relative;
    cursor: pointer;
    background-size: 45px auto !important;
    background-color: transparent;
    background-position: center 0px !important;
    font-size: 10px;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    transition: all 300ms ease; 
}
.alarm_mode:hover {
    background-color: rgba(255,255,255,0.5);
}
.alarm_mode:before, .alarm_mode:after  {
    content: "";
    position: absolute;
    left: 0px;
    width: 60px;
    height: 0px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    transition: all 300ms ease; 
}
.alarm_mode:before {
    top: -10px;
    border-bottom: 10px solid transparent;
}
.alarm_mode:after {
    bottom: -10px;
    border-top: 10px solid transparent;
}
.alarm_mode:hover:before {
    border-bottom: 10px solid rgba(255, 255, 255, 0.5);
}
.alarm_mode:hover:after {
    border-top: 10px solid rgba(255, 255, 255, 0.5);
}
.sched_title {
    text-align: right;
    padding-bottom: 5px;
}

.button-sched {
    width: 170px;
    background: rgba(34, 80, 92, 0.85);
    color: #fff;
    display: inline-block;
    margin: 5px;
}
.sched-btn-container {
    display: inline-block;
    text-align: center;
    width: 100%;
    height: auto;
    padding-top: 10px;
}
.removed, .removed:hover {
    color: #474747;
    background-color: rgba(0, 0, 0, 0.15);
}
#selectStopDayName, #selectStartDayName {
    width: 115px;
    font-size: 15px;
	height: 37px;
	margin-top: 5px;	
}
.schedule_date_text {
    display: inline-block; 
    width: 95%;
}
@media (max-width: 975px) {

    .addSchedule {
        font-size: 0px;
        top: -6px;
        right: 0px;
        width: 12px;
    }
    .schedules-list {
        height: 370px;
        margin-top: -20px;
    }
    .enable-schedule {
        position: relative;  
        width: 98%;
		top: -30px;
    }
    .schedule-week {
		top: 37px;
		left: 293px;
    }
    .schedule_on_off {
        margin: 0px 30px !important;
    }
    .navigation-schedules {
        font-size: 15px;
        position: relative;
        display: table-cell;
        right: 0;
        left: 0;
        top: -40px;
    }
    .next-week-schedules {
        left: 320px;
    }
    #selectDate {
        position: relative;
        display: table-cell;
		left: 151px;
		top: -5px;
    }
	.schedules-list, .schedule_date_text {
		box-sizing: border-box;
		width: 100%;
	}	
	.schedule_on_off {
		float: right !important;	
		margin: 0 17px 0 0 !important;
	}	
}

@media (max-width: 870px) {
    .schedule-week {
        top: 64px;
        left: 175px;
    }
	#automation-schedules {
		padding: 0px 10px !important;
	}
	.prev-week-schedules {
		float: left;
	}
	.next-week-schedules {
		float: right;
		left: 0px;
		margin-right: 10px;
	}
	.navigation-schedules {
		top: -35px;	
	}
	#selectDate {
		top: 30px;
		left: 35px
	}
    .schedules-list {
        margin-top: 5px;
    }
    .enable-schedule {
		top: 0px;
    }	
}

@media (max-width: 690px) {
	 .hourSelector select, #selectStopDayName, #selectStartDayName, #selectDate, #selectStartDate, #selectStopDate {
		font-size: 13px;
		height: 32px;
	}
	.selectStartDate_container, .selectStopDate_container {
		width: 100%;	
	}
	
	.alarm_mode {
		margin: 0px 2px;
	}

}