@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
@keyframes scaleIn {
    from {
        opacity: 0;
        top: -100vw;
        transform: translate(-50%, -50%) scale(0);
    }

    to {
        opacity: 1;
        top: 50%;
        transform: translate(-50%, -50%) scale(1);
    }
}

body.pwDialogopen {
    overflow-y: hidden;
}

.pwOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.pwDialog {
    position: absolute;
    min-width: 30%;
    max-width: 80%;
    min-height: calc(30% + 120px);
    max-height: 80%;
    opacity: 0;
    overflow: hidden;
    top: -100vw;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #fff;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.pwDialogHeader {
    padding: 20px;
    font-size: 30px;
    font-weight: bold;
    height: 82px;
}

.pwDialogContent {
    padding: 20px;
}

.pwDialogFooter {
    padding: 20px;
    text-align: right;
    position: absolute;
    height: 75px;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #e2e2e2;
}

.pwDialogFooter .pwright>div {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.pwDialogFooter>div:last-child {
    margin-right: 0;
}

.pwDialog_btn{
	cursor:pointer;
	color:#343434;
    padding:6px 15px;
    background: #eee;
    border-radius: 4px;
}
.pwDialog_btn:hover{
	background:#e2e2e2;
}

.pwCloseDialog {
    position: absolute;
    top: 4px;
    right: 10px;
    color: #999;
    z-index: 999;
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
}



.dialog_container:not(:empty) .pwOverlay {
    animation: fadeIn 300ms forwards;
}


.dialog_container:not(:empty) .pwDialog {
    animation: scaleIn 200ms 100ms forwards;
}


.tabs_container .tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    align-items: end;
    grid-gap: 1px;
    font-size: 14px;
    background: #fff;
}

.tab_item {
    padding: 10px 20px;
    height: 100%;
    background: #e2e2e2;
    color: #333;
    cursor: pointer;
    transition: 200ms;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab_item.active {
    background: #333;
    border-bottom: 1px solid #333;
    color: #fff;
}

.tab_content {
    padding: 20px;
    width: 100%;
    text-align: left;
}

.tabs_container {
    display: grid;
    grid-template-rows: 40px 1fr;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #333;
    color: #fff;
}

@media (max-width: 660px) {
    .pwDialog {width: 100%; height: 100%; max-width: 100%; max-height: 100%; border-radius: 0; top: 0;}
}