legend {
    color: $base-text-color;
    font-family: get-font-family($font-family-title);
    font-weight: $font-weight-bold;
    font-size: $core-font-size + 0.5;
    line-height: $core-line-height;
    margin: 1rem 0;
}

.input-prepend .chzn-container-single .chzn-single,
.input-append .chzn-container-single .chzn-single {
    border-color: $border-color-light;
}

.input-prepend .chzn-container-single .chzn-drop,
.input-append .chzn-container-single .chzn-drop {
    border-color: $border-color-light;
}

.form-actions {
    background: none;
    border: 0;
}

textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
    color: $base-text-color;
    background-color: $base-background;
    border: 1px solid $rule-color;
    box-shadow: none;
    box-sizing: border-box !important;
    @include transition(border 0.2s linear, box-shadow 0.2s linear);
    .input-prepend &, .input-append & {
        padding: 0.35rem;
        max-width: 95%;
        .dir-rtl & {
            border-radius: 4px 0 0 4px;
        }
    }
}

.input-prepend > .add-on, .input-append > .add-on {
    background: darken($base-background, 15%);
    border: 1px solid $rule-color;
    padding: 0.275rem;
    -webkit-padding-before: 7px;
    -webkit-padding-after: 7px;
    .dir-rtl & {
        margin-right: auto;
        margin-left: -1px;
        .btn {
            margin-right: auto;
            margin-left: -1px;
        }
        &:first-child {
            border-radius: 0 4px 4px 0;
        }
    }
}

textarea {
    width: 100%;
}

.dir-rtl {
    .form-horizontal {
        .control-label {
            float: right;
            text-align: left;
        }
        .controls {
            margin-left: 0;
            margin-right: 180px;
        }
    }
}

select {
    color: $base-text-color;
    background: $base-background;
    border: 1px solid $rule-color;
}

// Mailto and Print Windows
.view-mailto, .body-only {
    padding: 0 $leading-margin;
    #g-page-surround {
        box-shadow: none;
    }
}

// Module Editing
.controls {
    input[type="radio"] {
        margin-right: 5px;
    }
}
.layout-edit {
    #sbox-content.sbox-content-iframe {
        overflow: hidden;
    }
}

// Login Module
#login-form {
    .input-prepend, .input-append {
        width: 100%;
        .add-on, .input-small {
            height: 50px;
        }
        .btn {
            height: 35px;
        }
        .input-small {
            width: 80%;
        }
    }
    #modlgn-secretkey {
        width: 65%;
    }
}

// Search
#searchForm, #finder-search {
    .btn {
        display: inline-block;
        font-family: get-font-family($font-family-default);
        font-weight: $font-weight-bold;
        background: $accent-color-1;
        color: $white !important;
        font-size: $core-font-size;
        border: 2px solid transparent;
        border-radius: 0;
        margin: 0;
        padding: 0.5rem 1.25rem;
        vertical-align: middle;
        text-shadow: none;
        @include transition(all 0.2s);
        &:hover, &:active, &:focus {
            background: darken($accent-color-1, 15%);
            color: $white !important;
        }
    }
}
#searchForm {
    .btn {
        padding: 0.35rem 1.25rem;
        border-radius: $border-radius;
    }
}
#finder-search {
    .inputbox {
        margin: 1rem 0 0.5rem 0;
    }
}

// Button
.btn {
    border-radius: $border-radius;
    color: $base-text-color;
    background: darken($base-background, 12%);
    border: 0;
    box-shadow: none;
    span {
        padding: 0;
        margin: 0;
    }
}
.btn-mini {
    margin: 0.5rem 0;
}
