﻿.custombtn {
    display: inline-block;
    padding: 4px 12px;
    margin-top: 2px;
    margin-bottom: 2px;
    font-size: 17px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

    .custombtn:focus,
    .custombtn:active:focus,
    .custombtn.active:focus,
    .custombtn.focus,
    .custombtn:active.focus,
    .custombtn.active.focus {
        outline: thin dotted;
        outline: 5px auto -webkit-focus-ring-color;
        outline-offset: -2px;
    }

    .custombtn:hover,
    .custombtn:focus,
    .custombtn.focus {
        color: #333;
        text-decoration: none;
    }

    .custombtn:active,
    .custombtn.active {
        background-image: none;
        outline: 0;
        -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    }

    .custombtn.disabled,
    .custombtn[disabled],
    fieldset[disabled] .custombtn {
        cursor: not-allowed;
        filter: alpha(opacity=65);
        -webkit-box-shadow: none;
        box-shadow: none;
        opacity: .65;
    }

a.custombtn.disabled,
fieldset[disabled] a.custombtn {
    pointer-events: none;
}

.custombtn-default {
    color: #333;
    background: transparent linear-gradient(to bottom, #FFF 20%, #B0B0B0 100%);
    border-color: #ccc;
}

    .custombtn-default:focus,
    .custombtn-default.focus {
        color: #333;
        background-color: #e6e6e6;
        border-color: #8c8c8c;
    }

    .custombtn-default:hover {
        color: #333;
        /*background-color: #e6e6e6;*/
        border-color: #adadad;
        box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
    }

    .custombtn-default:active,
    .custombtn-default.active,
    .open > .dropdown-toggle.custombtn-default {
        color: #333;
        background-color: #e6e6e6;
        border-color: #adadad;
    }

        .custombtn-default:active:hover,
        .custombtn-default.active:hover,
        .open > .dropdown-toggle.custombtn-default:hover,
        .custombtn-default:active:focus,
        .custombtn-default.active:focus,
        .open > .dropdown-toggle.custombtn-default:focus,
        .custombtn-default:active.focus,
        .custombtn-default.active.focus,
        .open > .dropdown-toggle.custombtn-default.focus {
            color: #333;
            background-color: #d4d4d4;
            border-color: #8c8c8c;
        }

    .custombtn-default:active,
    .custombtn-default.active,
    .open > .dropdown-toggle.custombtn-default {
        background-image: none;
    }

    .custombtn-default.disabled:hover,
    .custombtn-default[disabled]:hover,
    fieldset[disabled] .custombtn-default:hover,
    .custombtn-default.disabled:focus,
    .custombtn-default[disabled]:focus,
    fieldset[disabled] .custombtn-default:focus,
    .custombtn-default.disabled.focus,
    .custombtn-default[disabled].focus,
    fieldset[disabled] .custombtn-default.focus {
        background-color: #fff;
        border-color: #ccc;
    }

    .custombtn-default .badge {
        color: #fff;
        background-color: #333;
    }

.custombtn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

    .custombtn-primary:focus,
    .custombtn-primary.focus {
        color: #fff;
        background-color: #286090;
        border-color: #122b40;
    }

    .custombtn-primary:hover {
        color: #fff;
        background-color: #286090;
        border-color: #204d74;
    }

    .custombtn-primary:active,
    .custombtn-primary.active,
    .open > .dropdown-toggle.custombtn-primary {
        color: #fff;
        background-color: #286090;
        border-color: #204d74;
    }

        .custombtn-primary:active:hover,
        .custombtn-primary.active:hover,
        .open > .dropdown-toggle.custombtn-primary:hover,
        .custombtn-primary:active:focus,
        .custombtn-primary.active:focus,
        .open > .dropdown-toggle.custombtn-primary:focus,
        .custombtn-primary:active.focus,
        .custombtn-primary.active.focus,
        .open > .dropdown-toggle.custombtn-primary.focus {
            color: #fff;
            background-color: #204d74;
            border-color: #122b40;
        }

    .custombtn-primary:active,
    .custombtn-primary.active,
    .open > .dropdown-toggle.custombtn-primary {
        background-image: none;
    }

    .custombtn-primary.disabled:hover,
    .custombtn-primary[disabled]:hover,
    fieldset[disabled] .custombtn-primary:hover,
    .custombtn-primary.disabled:focus,
    .custombtn-primary[disabled]:focus,
    fieldset[disabled] .custombtn-primary:focus,
    .custombtn-primary.disabled.focus,
    .custombtn-primary[disabled].focus,
    fieldset[disabled] .custombtn-primary.focus {
        background-color: #337ab7;
        border-color: #2e6da4;
    }

    .custombtn-primary .badge {
        color: #337ab7;
        background-color: #fff;
    }

.custombtn-success {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

    .custombtn-success:focus,
    .custombtn-success.focus {
        color: #fff;
        background-color: #449d44;
        border-color: #255625;
    }

    .custombtn-success:hover {
        color: #fff;
        background-color: #449d44;
        border-color: #398439;
        box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
    }

    .custombtn-success:active,
    .custombtn-success.active,
    .open > .dropdown-toggle.custombtn-success {
        color: #fff;
        background-color: #449d44;
        border-color: #398439;
    }

        .custombtn-success:active:hover,
        .custombtn-success.active:hover,
        .open > .dropdown-toggle.custombtn-success:hover,
        .custombtn-success:active:focus,
        .custombtn-success.active:focus,
        .open > .dropdown-toggle.custombtn-success:focus,
        .custombtn-success:active.focus,
        .custombtn-success.active.focus,
        .open > .dropdown-toggle.custombtn-success.focus {
            color: #fff;
            background-color: #398439;
            border-color: #255625;
        }

    .custombtn-success:active,
    .custombtn-success.active,
    .open > .dropdown-toggle.custombtn-success {
        background-image: none;
    }

    .custombtn-success.disabled:hover,
    .custombtn-success[disabled]:hover,
    fieldset[disabled] .custombtn-success:hover,
    .custombtn-success.disabled:focus,
    .custombtn-success[disabled]:focus,
    fieldset[disabled] .custombtn-success:focus,
    .custombtn-success.disabled.focus,
    .custombtn-success[disabled].focus,
    fieldset[disabled] .custombtn-success.focus {
        background-color: #5cb85c;
        border-color: #4cae4c;
    }

    .custombtn-success .badge {
        color: #5cb85c;
        background-color: #fff;
    }

.custombtn-info {
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
}

    .custombtn-info:focus,
    .custombtn-info.focus {
        color: #fff;
        background-color: #31b0d5;
        border-color: #1b6d85;
    }

    .custombtn-info:hover {
        color: #fff;
        background-color: #31b0d5;
        border-color: #269abc;
    }

    .custombtn-info:active,
    .custombtn-info.active,
    .open > .dropdown-toggle.custombtn-info {
        color: #fff;
        background-color: #31b0d5;
        border-color: #269abc;
    }

        .custombtn-info:active:hover,
        .custombtn-info.active:hover,
        .open > .dropdown-toggle.custombtn-info:hover,
        .custombtn-info:active:focus,
        .custombtn-info.active:focus,
        .open > .dropdown-toggle.custombtn-info:focus,
        .custombtn-info:active.focus,
        .custombtn-info.active.focus,
        .open > .dropdown-toggle.custombtn-info.focus {
            color: #fff;
            background-color: #269abc;
            border-color: #1b6d85;
        }

    .custombtn-info:active,
    .custombtn-info.active,
    .open > .dropdown-toggle.custombtn-info {
        background-image: none;
    }

    .custombtn-info.disabled:hover,
    .custombtn-info[disabled]:hover,
    fieldset[disabled] .custombtn-info:hover,
    .custombtn-info.disabled:focus,
    .custombtn-info[disabled]:focus,
    fieldset[disabled] .custombtn-info:focus,
    .custombtn-info.disabled.focus,
    .custombtn-info[disabled].focus,
    fieldset[disabled] .custombtn-info.focus {
        background-color: #5bc0de;
        border-color: #46b8da;
    }

    .custombtn-info .badge {
        color: #5bc0de;
        background-color: #fff;
    }

.custombtn-warning {
    color: #fff;
    background-color: #f0ad4e;
    border-color: #eea236;
}

    .custombtn-warning:focus,
    .custombtn-warning.focus {
        color: #fff;
        background-color: #ec971f;
        border-color: #985f0d;
    }

    .custombtn-warning:hover {
        color: #fff;
        background-color: #ec971f;
        border-color: #d58512;
    }

    .custombtn-warning:active,
    .custombtn-warning.active,
    .open > .dropdown-toggle.custombtn-warning {
        color: #fff;
        background-color: #ec971f;
        border-color: #d58512;
    }

        .custombtn-warning:active:hover,
        .custombtn-warning.active:hover,
        .open > .dropdown-toggle.custombtn-warning:hover,
        .custombtn-warning:active:focus,
        .custombtn-warning.active:focus,
        .open > .dropdown-toggle.custombtn-warning:focus,
        .custombtn-warning:active.focus,
        .custombtn-warning.active.focus,
        .open > .dropdown-toggle.custombtn-warning.focus {
            color: #fff;
            background-color: #d58512;
            border-color: #985f0d;
        }

    .custombtn-warning:active,
    .custombtn-warning.active,
    .open > .dropdown-toggle.custombtn-warning {
        background-image: none;
    }

    .custombtn-warning.disabled:hover,
    .custombtn-warning[disabled]:hover,
    fieldset[disabled] .custombtn-warning:hover,
    .custombtn-warning.disabled:focus,
    .custombtn-warning[disabled]:focus,
    fieldset[disabled] .custombtn-warning:focus,
    .custombtn-warning.disabled.focus,
    .custombtn-warning[disabled].focus,
    fieldset[disabled] .custombtn-warning.focus {
        background-color: #f0ad4e;
        border-color: #eea236;
    }

    .custombtn-warning .badge {
        color: #f0ad4e;
        background-color: #fff;
    }

.custombtn-danger {
    color: #fff;
    background-color: #d9534f;
    border-color: #d43f3a;
}

    .custombtn-danger:focus,
    .custombtn-danger.focus {
        color: #fff;
        background-color: #c9302c;
        border-color: #761c19;
    }

    .custombtn-danger:hover {
        color: #fff;
        background-color: #c9302c;
        border-color: #ac2925;
    }

    .custombtn-danger:active,
    .custombtn-danger.active,
    .open > .dropdown-toggle.custombtn-danger {
        color: #fff;
        background-color: #c9302c;
        border-color: #ac2925;
    }

        .custombtn-danger:active:hover,
        .custombtn-danger.active:hover,
        .open > .dropdown-toggle.custombtn-danger:hover,
        .custombtn-danger:active:focus,
        .custombtn-danger.active:focus,
        .open > .dropdown-toggle.custombtn-danger:focus,
        .custombtn-danger:active.focus,
        .custombtn-danger.active.focus,
        .open > .dropdown-toggle.custombtn-danger.focus {
            color: #fff;
            background-color: #ac2925;
            border-color: #761c19;
        }

    .custombtn-danger:active,
    .custombtn-danger.active,
    .open > .dropdown-toggle.custombtn-danger {
        background-image: none;
    }

    .custombtn-danger.disabled:hover,
    .custombtn-danger[disabled]:hover,
    fieldset[disabled] .custombtn-danger:hover,
    .custombtn-danger.disabled:focus,
    .custombtn-danger[disabled]:focus,
    fieldset[disabled] .custombtn-danger:focus,
    .custombtn-danger.disabled.focus,
    .custombtn-danger[disabled].focus,
    fieldset[disabled] .custombtn-danger.focus {
        background-color: #d9534f;
        border-color: #d43f3a;
    }

    .custombtn-danger .badge {
        color: #d9534f;
        background-color: #fff;
    }

.custombtn-link {
    font-weight: normal;
    color: #337ab7;
    border-radius: 0;
}

    .custombtn-link,
    .custombtn-link:active,
    .custombtn-link.active,
    .custombtn-link[disabled],
    fieldset[disabled] .custombtn-link {
        background-color: transparent;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

        .custombtn-link,
        .custombtn-link:hover,
        .custombtn-link:focus,
        .custombtn-link:active {
            border-color: transparent;
        }

            .custombtn-link:hover,
            .custombtn-link:focus {
                color: #23527c;
                text-decoration: underline;
                background-color: transparent;
            }

            .custombtn-link[disabled]:hover,
            fieldset[disabled] .custombtn-link:hover,
            .custombtn-link[disabled]:focus,
            fieldset[disabled] .custombtn-link:focus {
                color: #777;
                text-decoration: none;
            }

.custombtn-lg,
.custombtn-group-lg > .custombtn {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.3333333;
    border-radius: 6px;
}

.custombtn-sm,
.custombtn-group-sm > .custombtn {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.custombtn-xs,
.custombtn-group-xs > .custombtn {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.custombtn-block {
    display: block;
    width: 100%;
}

    .custombtn-block + .custombtn-block {
        margin-top: 5px;
    }

input[type="submit"].custombtn-block,
input[type="reset"].custombtn-block,
input[type="button"].custombtn-block {
    width: 100%;
}
