body {
    width: 100%;
}

.zf-green {
    color: #68b604;
}

.btn-success {
    background-color: #57a900;
    background-image: -moz-linear-gradient(top, #70d900, #57a900);
    background-image: -ms-linear-gradient(top, #70d900, #57a900);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#70d900), to(#57a900));
    background-image: -webkit-linear-gradient(top, #70d900, #57a900);
    background-image: -o-linear-gradient(top, #70d900, #57a900);
    background-image: linear-gradient(top, #70d900, #57a900);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#70d900', endColorstr='#57a900', GradientType=0);
}

.btn-success:hover,
.btn-success:active,
.btn-success.active,
.btn-success.disabled,
.btn-success[disabled] {
    background-color: #57a900;
}

div.container a.navbar-brand > img {
    display: inline;
    margin-right: 4px;
    margin-top: -2px;
}

main {
    margin-top:70px;
    min-height: calc(100vh - 70px - 71px);
    padding:0px !important;
}

tbody [data-href] {
    cursor:pointer;
}
tbody [data-href]:hover {
    opacity:0.6;
    cursor:pointer;
}

.simpleform {
    max-width: 500px;
    padding:40px 0px;
    display: flex;
    align-items: center;
}

.loginform {
    min-height: calc(100vh - 70px - 71px);
    display: flex;
    align-items: center;
}

.loginform .row {
    width:100%;
}

.simpleform form {
    width:100%;
}

textarea {
    min-height:200px;
    resize: none;
    overflow: scroll;
    width:90%;
}

.calendar .col-sm-3 {
    padding: 0px;
}

.calendar .body .engineer, .calendar .body .spot {
    min-height: 122px;
    border-bottom: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    cursor: pointer;
}

.calendar .body .col-sm-3:first-child .spot:first-child, .calendar .body .col-sm-3:first-child .engineer:first-child {
    border-left: 1px solid #e5e5e5;
}

.calendar .header {
    text-align: center;
    background-color:#f28505;
    font-weight: bold;
    color:white;
    font-family: "Roboto",sans-serif;
    font-size:14px;
}

.calendar .header .col-sm-6 {
    padding:10px 0px;
    border: none;
}

.calendar .body .engineer {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align : center;
    cursor: unset;
}

[draggable] {
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    /* Required to make elements draggable in old WebKit */
    -khtml-user-drag: element;
    -webkit-user-drag: element;

    cursor: move; /* fallback if grab cursor is unsupported */
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

[draggable]:active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.calendar .body .spot .over {
    border: 2px dashed #d9edf7;
}

.calendar .row {
}

@media (min-width: 768px) {
    .calendar .row {
        display: flex;
        align-items: stretch;
        flex: 1;
    }

    .calendar .body .spot {
        display: flex;
        align-items: stretch;
        flex: 1;
        flex-direction: column;
    }

    .calendar .col-sm-3 {
        display: flex;
        align-items: stretch;
        flex: 1;
    }
}

.dropzone {
    padding:2px;
}

.dropzone .calendarItem {
    background: #03a9f3;
    color: white;
    padding:5px;
    z-index:1000;
    position:absolute;
    height: 96%;
    font-size:13px;
    overflow: hidden;
}

.calendar .row.week2 {
    border-top:none;
}
.calendar .row.week1 {
}

.calendar :nth-child(2) {
    margin-top:0px !important;
}

.calendar .row.unassigned {
    border-top:none;
    border-right:1px solid #CCC;
}

.calendar .previous {

}

.calendar .today {

}

.alert {
    position:fixed;
    z-index:10000;
    left: 50%;
    transform: translateX(-50%);
    top: 80px;
    display:none;
}

.radio-button input[type="radio"]:checked + label {
    z-index: 2;
    color: #fff;
    background-color: #428bca;
    border-color: #428bca;
    cursor: default;
}

.radio-button input[type="radio"]:checked + label.checklista {
    background-color:green;
    border-color:green;
}

.radio-button input[type="radio"]:checked + label.checklistb {
    background-color:orange;
    border-color:orange;
}

.radio-button input[type="radio"]:checked + label.checklistc {
    background-color:red;
    border-color:red;
}

.radio-button label {
    padding: 6px 12px;
    margin-bottom: 0px;
    cursor: pointer;
    border: 1px solid #ddd;
    margin-left:-4px;
}

.radio-button label:nth-child(2) {
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
}

.radio-button label:last-child {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}

.radio-button .pagination > li > a {
    padding: 0px;
}
.radio-button input[type="radio"] {
    width: 0px;
    height: 0px;
    position: absolute;
    color: transparent;
    visibility: hidden;
}

.onoffswitch {
    position: relative; width: 90px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
    display: none;
}
.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #CCC; border-radius: 20px;
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
    font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-sizing: border-box;
}
.onoffswitch-inner:before {
    content: "YES";
    padding-left: 10px;
    background-color: #428BCA; color: #FFFFFF;
}
.onoffswitch-inner:after {
    content: "NO";
    padding-right: 10px;
    background-color: #EEEEEE; color: #CCC;
    text-align: right;
}
.onoffswitch-switch {
    display: block;
    margin: 3px;
    background: #FFFFFF;
    position: absolute; top: 0; bottom: 0;
    right: 56px;
    border: 2px solid #CCC; border-radius: 20px;
    transition: all 0.3s ease-in 0s;
    width: 27px;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px;
}
#tbl-materials input {
    width:100%;
}
#signatureIdHolder {
    margin-bottom:60px;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

h3 {
    margin-bottom:30px;
}

#defectreport-form textarea {
    min-height:60px;
}

.modal-title {display: inline-block;}

.calendar-date {
    margin-top:4px;
    width:28px;
    margin-left:auto;
    margin-right:0;
    padding:5px;
    -moz-border-radius: 30px;
    -webkit-border-radius: 30px;
    border-radius: 30px; /* future proofing */
    -khtml-border-radius: 30px; /* for old Konqueror browsers */
    text-align: center;
}
.calendar .spot:hover .calendar-date {
    background-color:#b8b8b8;
    color:white;
}
.today .calendar-date {background-color:#ff3b30; color:white;}

nav.navbar-inverse {
    background-image: linear-gradient(to bottom, #252525 0px, #222 100%);
}

/*
    IOS drag and drop should work on touchscreen
*/
.dnd-poly-drag-image {
    opacity: .5 !important;
}

.dnd-poly-drag-image.dnd-poly-snapback {
    transition-property: transform, -webkit-transform !important;
    transition-duration: 250ms !important;
    transition-timing-function: ease-out !important;
}

textarea {
    border: 1px solid #3c3c3c;
}

.imageIdHolder {
    float:left;
    margin-right:10px;
    text-align: center;
}

.btn {
    margin-bottom:4px;
}
