/* Blazor Popup Styles - based on XON.API popup structure */

/* Magnific Popup backdrop - przyciemnienie tła */
.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    overflow: hidden;
    position: fixed;
    background: #0b0b0b;
    opacity: 0.8;
}

/* Magnific Popup compatible wrapper styles */
.mfp-wrap {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100001;
    position: fixed;
    outline: none !important;
    -webkit-backface-visibility: hidden;
}

.mfp-container {
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

.mfp-container:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.mfp-content {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 1045;
}

.mfp-auto-cursor .mfp-content {
    cursor: auto;
}

.mfp-close-btn-in .mfp-close {
    color: white;
}

/* Popup form structure */
.popup-form {
    color: #002451;
    position: relative;
    background-color: #fff;
    max-width: 640px;
    margin: 0 auto;
}

.popup-form .popup-content-scroll {
    max-width: 660px;
}

.popup-form.pf-medium {
    color: #002451;
    position: relative;
    background-color: #fff;
    max-width: 700px;
    margin: 0 auto;
}

.popup-form.pf-large {
    color: #002451;
    position: relative;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.popup-form .popup-header {
    background-color: #54b848;
    padding: 7px 20px;
    font-weight: 200;
    box-sizing: border-box;
    font-size: 18px;
    text-align: center;
    color: white;
}

.popup-form .popup-content {
    font-weight: 300;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.popup-form .popup-content-scroll {
    max-height: 80vh;
    overflow-y: auto;
    min-height: 300px;
    padding: 20px;
    padding-bottom: 23px;
}

/* Form elements */
.form-edit {
    min-height: 300px;
    padding: 1px 0;
}

.popup-form .field {
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.popup-form .field .form-label {
    color: #223d32;
    font-weight: 300;
    display: inline-block;
    width: 140px;
    text-align: right;
    margin-right: 20px;
    padding: 3px 0px;
    vertical-align: top;
}

.popup-form.pf-medium .field .form-label {
    color: #223d32;
    font-weight: 300;
    display: inline-block;
    width: 200px;
    text-align: right;
    margin-right: 20px;
    padding: 3px 0px;
    vertical-align: top;
}

.popup-form.pf-large .field .form-label {
    color: #223d32;
    font-weight: 300;
    display: inline-block;
    width: 250px;
    text-align: right;
    margin-right: 20px;
    padding: 3px 0px;
    vertical-align: top;
}

.popup-form .form-control {
    display: inline-block;
    width: 380px;
    text-align: left;
    min-height: 26px;
    padding: 0 12px 0 12px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #002451;
    background-image: none;
    border: 1px solid #ced4da;
    border-radius: 0;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.popup-form textarea.form-control {
    padding: 4px 12px;
}

.popup-form .form-group {
    margin: 5px auto 0;
    width: 100%;
    padding-top: 5px;
}

/* Close button */
button.mfp-close, button.mfp-arrow {
    overflow: visible;
    cursor: pointer;
    border: 0;
    -webkit-appearance: none;
    display: block;
    outline: none;
    padding: 0;
    z-index: 1046;
    touch-action: manipulation;
}

.mfp-close {
    width: 30px;
    height: 30px;
    line-height: 30px;
    position: absolute;
    right: 5px;
    top: 5px;
    text-decoration: none;
    text-align: center;
    opacity: 1;
    padding: 0 0 18px 10px;
    color: #FFF;
    font-style: normal;
    font-size: 32px;
    font-family: Arial, Baskerville, monospace;
}

.mfp-close:active {
    top: 5px;
}

.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Footer */
.popup-form .popup-footer {
    position: relative;
    color: #8e8e93;
    background-color: white;
    padding: 6px 25px;
    box-sizing: border-box;
    width: 100%;
    text-align: right;
    height: 54px;
    padding-top: 10px;
}

.border-top-green {
    border-top: #54b848 solid 1px;
}

.pull-left {
    float: left;
}

/* Buttons */
.main-btn.popup-footer-btn {
    width: auto;
    display: inline-block;
    margin-right: 10px;
    margin-left: 10px;
    padding: 7px 22px;
}

.main-btn {
    transition: all .1s ease 0s !important;
    position: relative;
    border-radius: 0px;
    -webkit-transform: translateZ(0);
    outline: 0 !important;
    display: block;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid #ced4da;
    width: 100%;
    line-height: 1.2em;
}

.main-btn.green-btn {
    background-color: white;
    color: #54b848;
}

.main-btn.green-btn:focus {
    border: 1px solid #EFDC0F;
    outline: none;
}

.popup-footer-btn:not(:disabled):hover {
    background: #54b848;
    color: white;
}

.popup-footer .btn:disabled {
    background-color: #efefef;
    opacity: initial;
    cursor: default;
}

#popup-footer-btn-ok:hover {
    background: #54b848;
    color: white;
}

#popup-footer-btn-no:hover {
    background: #54b848;
    color: white;
}

#popup-footer-btn-ok:active, #popup-footer-btn-ok:focus {
    outline: 0 !important;
    -moz-outline-style: none !important;
}

#popup-footer-btn-no:active, #popup-footer-btn-no:focus {
    outline: 0 !important;
    -moz-outline-style: none !important;
}

/* Additional styles from XON.API */
.popup-form .field-validation-error {
    margin-left: 170px;
    font-size: 10px;
}

.form-control-error {
    border: 1px solid #ff0000;
}

.popup-form .form-value {
    display: inline-block;
    width: 442px;
    text-align: left;
    min-height: 26px;
    padding: 3px 12px;
    font-size: 12px;
    line-height: 1.42857143;
    color: #002451;
    background-color: #efefef;
    border-radius: 0;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    border: 1px solid #ced4da;
}

.form-control::placeholder {
    color: #002451;
    opacity: 1;
}

/* Responsive */
@media only screen and (max-width: 992px) {
    .popup-form .form-control {
        display: inline-block;
        width: 260px;
        text-align: left;
    }

    #popup-footer-btn-no {
        margin-right: initial;
    }
}

