﻿
/*Popupnew*/
.section-header {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.popup .section-header {
    padding: 0 0 10px;
}

#banhang-duan .section-header {
    padding: 10px 0;
}

    #banhang-duan .section-header .options {
        right: 0;
        top: 3px;
    }

.section-header .title {
    color: #404E67;
    text-transform: uppercase;
    padding-left: 2rem;
    font-weight: 800;
    font-size: 1.5rem;
}

    .section-header .title i {
        display: none;
    }



.X-button-popup-new {
    position: absolute;
    right: 3rem;
    top: 1rem;
    background: unset;
    border: 0;
    Z-INDEX: 100;
   height: 40px;
    width: 40px;
    padding: 10px !important;
}

    .X-button-popup-new:hover {
        background: unset;
    }

.X-button-popup-new-sub {
    position: absolute;
    right: -18px;
    top: -35px;
    background: unset;
    border: 0;
}

    .X-button-popup-new-sub:hover {
        background-color: transparent !important;
    }

.modal-flex-new {
    position: absolute;
    top: 120px !important;
    left: unset !important;
    bottom: unset !important;
    top: unset !important;
    bottom: unset !important;
    left: unset !important;
    right: unset !important;
    width: 100%;
    max-width: 85%;
    min-width: 400px;
    /*height: 100vh;
    max-height: calc(100vh - 80px);*/
    transform: unset !important;
    opacity: 1 !important;
    display: flex;
    box-sizing: border-box;
    height: 80%;
    position: absolute;
    background-color: #fff;
    border-radius: 0.375rem;
}

    .modal-flex-new.modal-fluid {
        margin: 0 !important;
        left: 3% !important;
        width: 94% !important;
    }

    .modal-flex-new.fade.in {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }

    .modal-flex-new .modal-body {
        max-height: none;
        overflow-y: hidden;
        overflow-x: hidden;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: row;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        flex-direction: row;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        -ms-flex-line-pack: stretch;
        align-content: stretch;
    }

    .modal-flex-new .modal-flex-fill-area {
        /*min-height: 102.1%;*/
        min-height: 100%;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }
/**/
.X-button-popup {
    position: absolute;
    right: -45px;
    top: -50px;
    background: unset;
    border: 0;
}

.X-button-popup-sub {
    position: absolute;
    right: -20px;
    top: -5px;
    background: unset;
    border: 0;
    z-index: 1;
}

.X-button-popup:hover {
    background: unset;
}

.X-button-popup-sub:hover {
    background-color: transparent !important;
}

.section-header-popup-itp {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    padding: 10px 30px;
    -webkit-transition: background-color .1s linear;
    transition: background-color .1s linear;
}

    .section-header-popup-itp button.btn {
        border: 0;
        background-color: transparent;
    }

.modal {
    overflow: unset;
    z-index: 16;
}

.modal-flex {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    bottom: 0 !important;
    width: 100%;
    max-width: 85%;
    min-width: 400px;
    height: 100vh;
    max-height: calc(100vh - 80px);
    /*transform: translate(-50%, -50%) !important;*/
    transform: translate(calc(-50% + 0.5px), calc(-50% + 0.5px)) !important;
}

.fullScreenPopup {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    overflow: hidden;
}

.fullScreenPopupBtn {
    left: 0;
    position: absolute;
    z-index: 16;
    bottom: 0;
    cursor: pointer;
    transform: translate(30px, -20px);
    transition: .3s ease-in-out;
}

    .fullScreenPopupBtn:hover {
        transform: translate(30px, -20px) scale(1.4);
    }

    .fullScreenPopupBtn > div {
        display: flex;
    }

.minimize-popup {
    background-image: url(../../../Content/Images/minimize.png) !important;
    background-size: 100%;
    background-repeat: no-repeat;
    margin-top: 1px;
    width: 17px;
    height: 17px;
    display: block;
}

.maximize-popup {
    background-image: url(../../../Content/Images/maximize.png) !important;
    background-size: 100%;
    background-repeat: no-repeat;
    margin-top: 1px;
    width: 17px;
    height: 17px;
    display: block;
}

.fullScreenPopupBtn .maximize-title {
    margin-left: .5rem;
    height: 17px;
    line-height: 17px;
}

.modal-flex,
.modal-body {
    border-radius: 5px !important;
}

.add-on {
    top: 4px;
}

.modal-footer-popup-outside {
    position: fixed;
    right: 0;
    bottom: 0%;
    width: 100%;
    height: 60px;
    display: flex;
    border-top: 2px solid #cccccc;
    background: #f5f5f5;
    z-index: 15 !important;
    justify-content: flex-end;
    align-items: center;
    left: 0;
    padding: 0 3rem;
}

    .modal-footer-popup-outside > div:not([class]) {
        display: flex;
        align-items: center;
    }

