
.crm-form {
    &.form-horizontal {
        .form-group {
            margin-bottom: 5px;
            margin-left: -10px;
            margin-right: -10px;

            .control-label {
                text-align: left;
            }

            .form-control {

                &.slim {
                    height: 32px;
                    margin-bottom: 2px;
                }
            }
        }
    }
}

.veri-check {

    .verified-correct {
        color: #009688;

        :checked + .fa.fa-check {
            color: #009688;
        }
    }

    .verified-wrong {
        color: #B71C1C;

        :checked + .fa.fa-times {
            color: #B71C1C;
        }
    }

    .radio-inline {
        overflow: hidden;
        padding-left: 0;

        input[type="radio"] {
            float: left;
            margin-left: -30px;
        }

        .fa {
            color: #aaa;
        }

        .fa.fa-check {

            &:hover {
                color: #00BFA5;
            }
        }

        .fa.fa-times {

            &:hover {
                color: #d50000;
            }
        }
    }

    .checkbox-inline {
        overflow: hidden;
        padding-left: 0;

        input[type="checkbox"] {
            float: left;
            margin-left: -30px;
        }

        .fa {
            color: #aaa;
        }

        .fa.fa-check {

            &:hover {
                color: #00BFA5;
            }
        }

        .fa.fa-times {

            &:hover {
                color: #d50000;
            }
        }
    }
}

.aliran-option {
    overflow: hidden;
    padding-left: 1px;
    padding-bottom: 1px;

    &.radio-inline .icon-bg {
        text-align: center;
        display: inline-block;
        width: 20px;
        height: 20px;
        background-color: #ddd;
        color: #aaa;
        border-radius: 4px;
        box-shadow: 0 0 0px 1px rgba(200,200,200,0.3);
    }

    & > input:checked + .icon-bg {
        background-color: #fff;
        color: #2979FF;
    }
}

ul.list-inline {
    list-style-type: none;
    padding: 0;
    margin: 0;

    > li {
        display: inline;
        padding: 0;
    }

    > li + li {
        &:before {
            content: "\25CF";
        }

        &.arrow-separator:before {
            content: "\276D";
        }
    }
}

ul.cwg {
    /*text-align: justify;*/
    > li {
        display: inline-block;
        text-align: justify;
        width: 100%;

        span {
            display: inline-block;
            padding: 0px 2px;
            width: 38%;
            text-align: right;
        }
    }

    > li + li {

        &:before {
            content: "";
        }
    }
}

md-backdrop {
    &.md-dialog-backdrop {
        position: fixed;
        z-index: 3000;
    }
}

.md-dialog-container {
    position: fixed;
    z-index: 3001;
}


/*Date Control Start*/
.date-from:before {
    content: "Dari";
}

.date-to:before {
    content: "Hingga";
}

.date-from:before,
.date-to:before {
    font-size: 0.7em;
    /*margin-top: -1.2em;
    float: left;*/
    text-transform: uppercase;
    position: absolute;
    /*font-family: 'Source Sans Pro';*/
    top: -15px;
}

.input-group .input-group-addon {
    /*border-radius: 0;*/
    border-color: #d2d6de;
    background-color: #fff;
}

.input-group {
    margin-bottom: 10px;
}
/*Date Control End*/

/*ui select2*/
.ui-select-multiple.ui-select-bootstrap input.ui-select-search {
    padding: 0px 12px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.ui-select-match-close:after {
    cursor: pointer;
    font-weight: bold;
    color: darkblue;
    /*content: "x";*/
    font-size: 12px;
}

.ui-select-bootstrap > .ui-select-choices, .ui-select-bootstrap > .ui-select-no-choice {
    padding: 0px 15px;
    width: auto;
}

.ui-select-bootstrap > input[type=search] {
    -webkit-appearance: textfield;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;    
}

.ui-select-extended > .ui-select-match > .btn {
    height: 52px;
}

.ui-select-extended > input[type=search] {
    height: 52px;
}


/*ui select2 End*/

.ss-content {

    &.no-scrollbar {
        width: 100%;
    }
}

.ss-scroll {
    .control-sidebar & {
        background: rgba(255,255,255,0.2);
    }
}

/* Advanced Rules */

.adv-rule-container {

    .adv-rule-header {
        border-left: transparent solid 3px;
        border-right: transparent solid 3px;
    }

    .adv-rule-body {
        border: transparent solid 1px;
        border-left-width: 3px;
        border-right-width: 3px;

        &.form-group {
            margin-bottom: 0;
        }

        &.group-or {
            border-color: #2979FF;

            .adv-rule-op {
                border-color: #2979FF;
            }
        }

        &.group-and {
            border-color: #ff9100;

            .adv-rule-op {
                border-color: #ff9100;
            }
        }


        .adv-rule {
            padding: 0 80px 0 50px;

            &:before {
                content: " ";
                display: table;
            }
        }

        .adv-rule-op {
            margin-top: 6px;
            border-top: #ddd solid 1px;

            .rule-op-btn {
                display: inline-block;
                margin-right: 3px;

                .rule-op-btn-or {
                    display: inline-block;
                    width: 22px;
                    height: 22px;
                    border-radius: 50%;
                    border: #2979FF solid 1px;
                    text-align: center;
                    color: #2979FF;
                    font-size: 0.6em;
                    line-height: 22px;
                }

                .rule-op-btn-and {
                    display: inline-block;
                    width: 22px;
                    height: 22px;
                    border-radius: 50%;
                    border: #ff9100 solid 1px;
                    text-align: center;
                    color: #ff9100;
                    font-size: 0.6em;
                    line-height: 22px;
                }

                .rule-op-btn-new-row {
                    display: inline-block;
                    width: 22px;
                    height: 22px;
                    border-radius: 50%;
                    border: #FF1744 solid 1px;
                    text-align: center;
                    color: #FF1744;
                    font-size: 0.6em;
                    line-height: 22px;
                }
            }
        }
    }

    .adv-rule-footer {
        /*border-top: #ddd solid 1px;*/
        margin-bottom: 0;
        background-color: #eee;
    }
}

/* Advanced Rules End */

.radio > .label {
    margin-right: 15px !important;
}


.hierarchy-seksyen:before {
    content: "Seksyen";
}

.hierarchy-jabatan:before {
    content: "Jabatan";
}

.hierarchy-cawangan:before {
    content: "Cawangan";
}

.hierarchy-unit:before {
    content: "Unit";
}

.hierarchy-seksyen:before,
.hierarchy-jabatan:before,
.hierarchy-cawangan:before,
.hierarchy-unit:before {
    font-size: 0.7em;
    text-transform: uppercase;
    position: absolute;
    top: -15px;
}


/* Switch Button
==========================*/
.switch {
    position: relative;
    display: block;
    vertical-align: top;
    width: 110px;
    height: 30px;
    padding: 3px;
    margin: 0;
    background: linear-gradient(to bottom, #eeeeee, #FFFFFF 25px);
    background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF 25px);
    border-radius: 18px;
    box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    box-sizing: content-box;
}

.switch-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    box-sizing: content-box;
}

.switch-label {
    position: relative;
    display: block;
    height: inherit;
    font-size: 10px;
    text-transform: uppercase;
    background: #eceeef;
    border-radius: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
    box-sizing: content-box;
}

.switch-label:before, .switch-label:after {
    position: absolute;
    top: 50%;
    margin-top: -.5em;
    line-height: 1;
    -webkit-transition: inherit;
    -moz-transition: inherit;
    -o-transition: inherit;
    transition: inherit;
    box-sizing: content-box;
}

.switch-label:before {
    content: attr(data-off);
    right: 11px;
    color: #aaaaaa;
    text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}

.switch-label:after {
    content: attr(data-on);
    left: 11px;
    color: #FFFFFF;
    text-shadow: 0 1px rgba(0, 0, 0, 0.2);
    opacity: 0;
}

.switch-input:checked ~ .switch-label {
    background: #E1B42B;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
}

.switch-input:checked ~ .switch-label:before {
    opacity: 0;
}

.switch-input:checked ~ .switch-label:after {
    opacity: 1;
}

.switch-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    background: linear-gradient(to bottom, #FFFFFF 40%, #f0f0f0);
    background-image: -webkit-linear-gradient(top, #FFFFFF 40%, #f0f0f0);
    border-radius: 100%;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.switch-handle:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -6px 0 0 -6px;
    width: 12px;
    height: 12px;
    background: linear-gradient(to bottom, #eeeeee, #FFFFFF);
    background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF);
    border-radius: 6px;
    box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
}

.switch-input:checked ~ .switch-handle {
    left: 74px;
    box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
}

.switch-light {
    padding: 0;
    background: #FFF;
    background-image: none;
}

.switch-light .switch-label {
    background: #FFF;
    border: solid 2px #eceeef;
    box-shadow: none;
}

.switch-light .switch-label:after {
    color: #32CD32;
}

.switch-light .switch-label:before {
    right: inherit;
    left: 11px;
}

.switch-light .switch-handle {
    top: 6px;
    left: 79px;
    background: #dadada;
    width: 22px;
    height: 22px;
    box-shadow: none;
}

.switch-light .switch-handle:before {
    background: #eceeef;
}

.switch-light .switch-input:checked ~ .switch-label {
    background: #FFF;
    border-color: #32CD32;
}

.switch-light .switch-input:checked ~ .switch-handle {
    left: 79px;
    box-shadow: none;
    background: #32CD32;
}

.switch-light .switch-input:checked ~ .switch-handle:before {
    background: rgba(255,255,255,0.7);
}

.ui-select-ellipsis {
    display: inline-block;
    width: 333px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

div.right-aligned {
    width: 80%;
    /* margin: 0 auto; */
    margin: 0 20% 0 0%;
    text-align: right;
}
 