﻿header {
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

    header img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
    }

    header h3 {
        text-align: center;
    }

    header > nav > a {
        display: block;
    }

body {
    font-family: Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;
    font-size: 16px;
    font-weight: 400;
}

a {
    color: #2c4694;
    cursor: pointer;
    font-weight: 700;
}

input {
    text-align: left;
}

.title {
    color: #d10019;
}

.form-group {
    margin-bottom: 2rem;
    width: 100%;
    float: left;
}

.text-for-check {
    width: 90%;
    float: left;
    display: block;
}

.check-for-text {
    width: 10%;
    float: left;
}

    .check-for-text:focus {
        box-shadow: none;
    }

a:hover {
    color: #d10019;
    text-decoration: none;
}

button, input[type=submit], input[type=button] {
    text-transform: uppercase;
    background-color: #2c4694;
    border-radius: 5px;
    border-bottom-style: solid;
    border-width: 3px;
    border-color: #2c4694;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 6px 0px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

    button:hover, input[type=submit]:hover, input[type=button]:hover {
        border-color: #3b5998;
        background-color: #3b5998;
    }

.custom-placeholder {
    position: relative;
}

.label-div {
    display: inline-flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 1.5rem 0.8rem;
    margin-bottom: 0;
    transition: all 0.2s;
    opacity: 1;
    max-width: 100%;
    height: 100%;
    font-size: 17px;
    line-height: 1.2;
    pointer-events: none;
    color: #999999;
    font-weight: 400;
}

    .label-div > label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.5;
    }

    .label-div > span {
        margin-bottom: 1rem;
    }

textarea.form-control + .label-div {
    height: auto;
}

.form-control:focus + .label-div {
    height: auto;
    padding: 0.5rem;
    background-color: rgba(0,0,0,0);
    transform: translate3d(0.75rem, -65%, 0);
    opacity: 1;
    font-size: 17px;
    max-width: 90%;
    color: #2c4694;
    margin-left: -1.1rem;
    padding-bottom: 1%;
}

.form-control:not(:placeholder-shown):not(select) + .label-div {
    height: auto;
    padding: 0.5rem;
    background-color: rgba(0,0,0,0);
    transform: translate3d(0.75rem, -65%, 0);
    opacity: 1;
    font-size: 17px;
    max-width: 90%;
    color: #2c4694;
    margin-left: -1.1rem;
    padding-bottom: 1%;
}

.input-date-helper-field + .label-div {
    height: auto;
    padding: 0.5rem;
    background-color: rgba(0,0,0,0);
    transform: translate3d(0.75rem, -65%, 0);
    opacity: 1;
    font-size: 17px;
    max-width: 90%;
    color: #2c4694;
    margin-left: -1.1rem;
    padding-bottom: 1%;
}

.custom-placeholder > input:disabled + .label-div {
    height: auto;
    background-color: rgba(0,0,0,0);
    transform: translate3d(0.75rem, -65%, 0);
    opacity: 1;
    font-size: 17px;
    max-width: 90%;
    color: #2c4694;
    padding-bottom: 1%;
    margin-left: -1.1rem;
}

.required {
    color: #d10019;
}

.hidden-input {
    width: 0px;
    height: 0px;
    border: 0px;
    padding: 0px;
    display: block;
}

.control-label {
    color: #2c4694;
}

.pad {
    border: 1px solid #3b5998;
    background-color: #ccc;
}

.display-none {
    display: none;
}

.border-red {
    padding: 30px;
    padding-bottom: 0px;
    border: 1px solid #d10019;
    width: 100%;
    height: 100%;
    float: left;
    margin-bottom: 10px;
}

.border-white {
    padding: 30px;
    padding-bottom: 0px;
    border: 1px solid white;
    width: 100%;
    height: 100%;
    float: left;
    margin-bottom: 10px;
}

.adress {
    width: 100%
}

.clear {
    background-color: #d10019 !important;
    margin-top: 10px !important;
}

tbody:before {
    content: "@";
    display: block;
    line-height: 12px;
    text-indent: -99999px;
}

#inputEmployeeName {
    margin-top: 2rem;
}

td {
    vertical-align: text-top;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

input[type="date"]::-webkit-input-placeholder {
    display: none !important;
}

#ui-datepicker-div {
    z-index: 2 !important;
}

.address-client {
    padding-bottom: 10px;
}

:root {
    --myGray: rgb(212, 212, 212);
}

#largeSigPadBackground {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.5;
    position: fixed;
    background-color: var(--myGray);
    display: none;
}

#largeSigpad {
    --sigpadW: min(calc(90vw), calc(190vh));
    --sigpadH: calc(var(--sigpadW) * 0.5);
    display: none;
    width: var(--sigpadW) !important;
    height: var(--sigpadH) !important;
    position: fixed;
    top: calc((100vh - var(--sigpadH))/2);
    left: calc((100vw - var(--sigpadW))/2);
    z-index: 5;
    background-color: rgb(255, 255, 255);
    border: solid 1px var(--myGray);
    border-radius: 5px;
}

#sigpadContent {
    position: relative;
    width: 100%;
    height: 100%;
}

    #sigpadContent span {
        padding-left: 10px;
        width: 80%;
        height: 25px;
        display: inline-block;
        text-align: center;
        margin-left: 10%;
        margin-bottom: 5px;
        border-bottom: 1px solid black;
    }

        #sigpadContent span label {
            margin-bottom: 0px;
        }

    #sigpadContent button {
        position: relative;
        margin-top: 3px;
        margin-left: 2px;
        margin-right: 2px;
    }

    #sigpadContent .ok {
        position: relative;
        float: right;
        padding: 7px;
        width: 100%;
    }


.sigPad {
    position: relative;
    border-bottom: 1px solid var(--myGray);
    border-top: 1px solid var(--myGray);
    width: calc(100% - 0px) !important;
    height: calc(100% - 72px) !important;
}

    .sigPad canvas {
        background-color: white;
    }

.copy-btn {
    position: absolute;
    top: -28px;
    right: 0;
}

#signaturePrev {
    margin-top: 10px;
    background-color: var(--myGray);
    display: block;
}

.signatureButtons {
    height: 42px;
}


#selfPayerCheck {
    width: 15px;
    height: 15px;
    margin-top: 5px;
}

.selfPayerLabel {
    display: flex;
}

.birth-dates-selectors-table td {
    min-width: 105px;
    vertical-align: top;
    padding-left:5px;
    padding-top:5px;
}

input[type=button].btn-calendar
{
    background: url(../img/calendar.svg) no-repeat;
    background-size: 30px;
    width: 37px;
    height: 38px;
    background-color: transparent;
    border-color: transparent;
}

    input[type=button].btn-calendar:hover {
        border-color: inherit;
    }

@media only screen and (max-width: 1000px) {
    header > nav > a {
        display: block;
        text-align: center;
        margin-bottom: 2px;
    }

    .form-control:focus + .label-div {
        padding-bottom: 2%;
    }

    .form-control:not(:placeholder-shown):not(select) + .label-div {
        padding-bottom: 2%;
    }

    .custom-placeholder > input:disabled + .label-div {
        padding-bottom: 2%;
    }

    .address {
        float: left;
        display: inline-block;
        width: 100%;
        margin-bottom: 2rem;
    }

    .birth-dates-selectors-table td {
        width: 100%;
        vertical-align: bottom;
        float: left;
        display: inline-block;
        margin-top: 1.5rem;
    }

    .birth-dates-selectors-table td.date-picker-td {
        margin-top: 0.5rem;
    }
}

@media only screen and (max-width: 576px) {


    #largeSigpad {
        --sigpadW: min(calc(90vw), calc(190vh));
        --sigpadH: calc(var(--sigpadW) * 0.8);
        width: var(--sigpadW) !important;
        height: var(--sigpadH) !important;
    }

    .sigPad {
        height: calc(100% - 123px) !important;
    }

    .signatureButtons {
        height: calc(100% - 72px - 5px);
    }

    #sigpadContent span {
        height: 10% !important;
        margin-bottom: 5px;
        padding-left: 0px;
        margin-left: 0px;
        width: 100%;
    }
}

@media only screen and (max-width: 450px) {

    .sigPad {
        height: calc(100% - 113px) !important;
    }
}