/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

[visible="false"] {
    display: none !important;
}

[component="checkbox"] {
    display: inline-block;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    position: relative;
}

[component="checkbox"]>div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    width: 100%;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    padding-left: 4vw;
}

[component="checkbox"]>div>div {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    display: block;
    position: absolute;
    top: 0.75vw;
    left: 0;
    border: 2px solid rgb(135, 141, 158, 0.5);
    border-radius: 0.7vh;
    width: 2.4vw;
    height: 2.4vw;
    min-width: 16px;
    min-height: 16px;
    margin-left: 1vw;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: clip;
       text-overflow: clip;
}

[component="checkbox"][checked="true"]>div>div {
    content: '';
    background: url('../img/icon/checked.png') #FFAA00;
    border: 2px solid #FFAA00;
    background-size: 100%;
    background-repeat: no-repeat;
    border-radius: 0.7vh;
    -webkit-transition: 0.1s;
    -o-transition: 0.1s;
    transition: 0.1s;
    cursor: pointer;
}

[component="checkbox"]>div>span {
    text-align: left;
    margin-left: 0.8vw;
    font-size: 1.4vw;
    font-size: max(3vw, 16px);
    line-height: 1.4;
}

[component="input-mask"] {
    height: 16px;
    width: 100px;
}

[component="validator"] {
    display: block;
    opacity: 0;
    color: red;
    font-size: 2vw;
}

[component="validator"][invalid="true"] {
    opacity: 1;
}

[type="submit"][disabled],
button[disabled] {
    -webkit-filter: brightness(80%);
            filter: brightness(80%);
    opacity: 0.7;
}

.notification_conatiner {
    position: fixed;
    width: 40vw;
    top: 0;
    margin-left: 26vw;
    z-index: 9999999;
}

[component="notification"] {
    border-radius: 6px;
    margin-top: 1.1vh;
    font-size: 2.8vw;
    padding-top: 2vh;
    padding-bottom: 2vh;
    padding-left: 1vw;
    padding-right: 3.2vw;
    width: 100%;
    background: rgba(240, 240, 240);
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    -webkit-box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.4);
    box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.4);
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    position: relative;
}

[component="notification"][type="error"] {
    background: rgba(255, 58, 65);
}

[component="notification"]>span.close {
    display: block;
    /* color: rgba(30,30,30, 0.8); */
    opacity: 0.58;
    position: absolute;
    width: 2.5vw;
    font-size: 2.5vw;
    right: 0.5vw;
    top: 0;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

input[invalid="true"] {
    color: red;
}

[component="checkbox"][component="checkbox"][invalid="true"]>div>div {
    border: 2px solid red;
}

@media (max-width: 475px) {
    div[type="confirm"] {
        width: 90%;
    }

    [component="checkbox"]>div {
        padding-left: 5.6vw;
    }

    [component="checkbox"]>div>span {
        margin-left: 1.8vw;
    }

}

[component="dialog"]>.dialog_buttons_container
{
    position: absolute;
    bottom: 3vh;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: fit-content;
}

[component="dialog"]>.dialog_buttons_container>*
{
    margin-left: 1vw;
    margin-right: 1vw;
}

[component="dialog"]
{
    overflow: hidden;
    position: fixed;
    top: 38vh;
    width: 56vw;
    min-height: 35vh;
    max-height: 86vh;
    left:22vw;
    top: 13vh;
    background: rgba(255, 255, 255, 0.97);
    text-align: center;
    z-index: 5000;
    border-radius: 16px;
    -webkit-box-shadow: 0px 0px 2px 1px rgba(34, 60, 80, 0.3);
    -moz-box-shadow: 0px 0px 2px 1px rgba(34, 60, 80, 0.3);
    box-shadow: 0px 0px 2px 1px rgba(34, 60, 80, 0.3);
    padding: 14px;
    padding-bottom: 50px;
    left: 50%;
    translate: -50% 0;
    z-index: 15000;
}

[component="dialog"]>img[type="close"]{
    right: 0;
    top:0;
    margin: 12px;
    margin-top: 6px;
    position: absolute;
    cursor: pointer;
}
[component="dialog"]>h3.caption{
    background: #7E1BBD;
    color: white;
    display: block;
    font-size: 3vh;
    width: 150%;
    padding-left: 14px;
    padding-top: 14px;
    padding-bottom: 8px;
    margin-left: -14px;
    margin-top: -14px;
    overflow: hidden;
    text-align: left;
}

[type="backWrapper"]
{
    /* background: rgba(35,35,35,0.58); */
    background: rgba(209, 209, 209, 0.8);
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top:0;
    z-index: 4800;
}
[component="dialog"]>.text
{
    /* background: red; */
    /* font-weight: normal; */
    font-size: 1.8vw;
}

@media screen and (max-width: 970px) {
    [component="dialog"]
    {
        width: 90vw;
        min-height: 40vh;
    }
}