﻿#modalSignature div#divDrawing {
        text-align: center;
    }

    #modalSignature #divDrawing canvas {
        margin-bottom: 15px;
    }

        .signature-view {
            width: 50%;
            display: inline-block;
            margin: 0;
            padding: 15px;
            text-align: center;
            cursor: pointer;
        }

        .signature-view.active {
            outline: 2px dotted #000;
            height: auto;
        }

        .signature-view h1 {
            margin: 0;
            line-height: inherit;
            font-size: 22px;
        }

    .custom-file-input::-webkit-file-upload-button {
        visibility: hidden;
    }

    .custom-file-input::before {
        content: 'Click to upload';
        display: inline-block;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 3px;
        padding: 5px 12px;
        outline: none;
        white-space: nowrap;
        -webkit-user-select: none;
        cursor: pointer;
        color: #23527c;
        font-size: 17px;
    }

    .custom-file-input:hover::before {
        border-color: transparent;
    }

    .custom-file-input:active::before {
        background: transparent;
    }

    .custom-file-input {
        color: transparent;
        outline: none;
    }

    input.custom-file-input {
        margin: 0 auto;
        max-width: 140px;
        height: 28px;
        width: 100%;
    }

    #modalSignature div#Upload .preview-image {
        width: 300px;
        height: auto;
        margin: 0 auto;
        text-align: center;
        max-height: 200px;
        min-height: 200px;
        position: relative;
    }

    #modalSignature div#Upload img {
        margin: 0 auto;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        max-width: 100%;
        max-height: 170px;
    }

    #modalSignature div#Upload button.upload-btn {
        position: absolute;
        top: 0;
        right: -65px;
        border-radius: 20px;
        outline: none;
        border: none;
        color: #fff;
        background: #000;
        border-radius: 3px;
        padding: 5px 10px;
    }

    .color-radio input {
        display: none;
    }

        .color-radio input + label {
            font-size: 0;
            width: 13px;
            height: 13px;
            border-radius: 50%;
            position: relative;
            margin: 0 5px;
            cursor: pointer;
        }

        .color-radio input#black + label {
            background: #000;
        }

        .color-radio input#red + label {
            background: red;
        }

        .color-radio input#blue + label {
            background: blue;
        }

        .color-radio input + label:after {
            content: "";
            width: 21px;
            height: 21px;
            background: transparent;
            border: 2px solid transparent;
            top: -4px;
            left: -4px;
            position: absolute;
            border-radius: 50%;
        }

        .color-radio input:checked + label:after {
            border-color: #ccc;
        }

    #modalSignature ul.nav.nav-tabs li a {
        /*display: inline-block;
        vertical-align: top;*/
        float: none;
        background: #5cb85c;
        border: 0;
        color: #fff;
        margin: 0;
    }

    #modalSignature ul.nav.nav-tabs {
        text-align: center;
        float: none;
        border: 0;
    }

        #modalSignature ul.nav.nav-tabs li {
            float: none;
            display: inline-block;
            margin: 0 !important;
        }

    #modalSignature ul.nav.nav-tabs {
        background: #5cb85c;
        border-radius: 5px;
        width: auto;
        display: inline-block;
        border: 1px solid #5cb85c;
        overflow: hidden;
    }

    #modalSignature .modal-header {
        text-align: center;
    }

    #modalSignature ul.nav.nav-tabs li.active a {
        background: #fff;
        color: #5cb85c;
    }

    #modalUseOrNew .preview-image {
        width: 300px;
        height: auto;
        margin: 0 auto;
        text-align: center;
        max-height: 200px;
        min-height: 200px;
        position: relative;
    }

    #modalUseOrNew img {
        margin: 0 auto;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        max-width: 100%;
        max-height: 170px;
    }

    #modalSignature div#Upload .upload-files img {
        position: relative;
    }

    #modalSignature div#Type input {
        border: 1px solid #535353;
    }

    #modalSignature div#Type {
        text-align: center;
    }