/***************************************************************************
 * Copyright (c) 2015 Ansible, Inc.
 *
 * Styling for angular-scheduler
 *
 */

 /*
    #schedules-form-container -inventory group add/edit dialog
 */

#schedules-tab {
    position: relative;
    top: 0;
    left: 0;
}

#schedules-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: @black;
    opacity: 0;
}

#schedules-list {
    overflow-x: hidden;
    overflow-y: auto;
}

#schedules-form-container {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 3px 3px 6px 0 #666;
    padding: 0 10px 15px 8px;
    background-color: @white;
    z-index: 200;
}

#schedules-title {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
    margin-bottom: 10px;
    margin-top: 0;
    h4 {
        display: inline-block;
        margin: 0;
    }
    button {
        display: inline-block;
    }
}

#schedules-form-container-body {
    overflow-x: hidden;
    overflow-y: auto;
}

#schedules-form .form-group {
    margin-bottom: 15px;
}

#schedules-buttons {
    height: 46px;
    padding-top: 10px;
    text-align: right;
    border-top: 1px solid #A6C9E2;
    margin-top: 5px;
    a {
        margin-right: 8px;
        font-size: 12px;
    }
}

#schedules-detail {
    display: none;
}

#scheduler-modal-dialog, #schedules-form-container {
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 25px;

    form {
        width: 100%;
    }

    .sublabel {
        font-weight: normal;
    }

    #occurrence-label {
        display: inline-block;
    }

    .occurrence-list {
        border: 1px solid @well-border;
        padding: 8px 10px;
        border-radius: 4px;
        background-color: @well;
        list-style: none;
        margin-bottom: 5px;
    }

    #date-choice {
        display: inline-block;
        margin-left: 15px;
        font-size: 12px;

        .label-inline {
            display: inline-block;
            vertical-align: middle;
        }
        input {
            margin-bottom: 2px;
            height: 11px;
            width: 10px;
        }
        .label-inline:first-child {
            padding-bottom: 2px;
            margin-right: 10px;
        }
        .label-inline:nth-child(3) {
            margin-right: 10px;
        }
    }

    .ui-widget input {
        font-size: 12px;
        font-weight: normal;
        text-align: center;
    }
    .scheduler-time-spinner {
        width: 40px;
        height: 24px;
    }
    .scheduler-spinner {
        width: 50px;
        height: 24px;
    }
    .fmt-help {
        font-size: 12px;
        font-weight: normal;
        color: #999;
        padding-left: 10px;
    }
    .error {
        color: #dd1b16;
        font-size: 12px;
        margin-bottom: 0;
        margin-top: 0;
        padding-top: 3px;
    }
    .error-pull-up {
        position: relative;
        top: -20px;
    }
    .red-text {
        color: #dd1b16;
    }
    .help-text {
        font-size: 12px;
        font-weight: normal;
        color: #999;
        margin-top: 5px;
    }
    .inline-label {
        margin-left: 10px;
    }
    .radio-inline input[type="radio"]{
        margin-top: 2px;
        margin-left: -15px;
    }
    #scheduler-buttons {
        margin-top: 20px;
    }
    .no-label {
        padding-top: 25px;
    }
    .padding-top-slim {
        padding-top: 5px;
    }
    .option-pad-left {
        padding-left: 15px;
    }
    .option-pad-top {
        padding-top: 15px;
    }
    .option-pad-bottom {
        padding-bottom: 15px;
    }
    #monthlyOccurrence, #monthlyWeekDay {
        margin-top: 5px;
    }
    select {
        width: 100%;
    }
    .occurrence-list {
        border: 1px solid @well-border;
        padding: 8px 10px;
        border-radius: 4px;
        background-color: @well;
        list-style: none;
        margin-bottom: 5px;
    }

    #weekdaySelect .btn-default:hover,
    #weekdaySelect .btn-default:focus {
        background-color: #fff;
        -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    }

    #weekdaySelect .btn-default.active:hover {
        background-color: #e0e0e0;
    }
}
