/********** POPINS **********/

.POPIN_protect {
    position: fixed;
    width: 100%;
    height: 100%;
    display: none;
    top: 0;
    left: 0;
}

.POPIN_content_wrap {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1043;
    position: absolute;
    outline: 0 !important;
    background: rgba(27, 27, 28, 0);
    cursor: default !important;
    animation: open_popin_wrap 0.2s forwards;
}

@keyframes open_popin_wrap {
    from {
        background: rgba(27, 27, 28, 0);
    }
    to {
        background: rgba(27, 27, 28, 0.3);
    }
}


#app.xs .POPIN_content .sysForm > .appbar,
#app.sm .POPIN_content .sysForm > .appbar {
    width: 100%;
    padding-right: 0;
}


.POPIN_content_general {
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 0 16px;
}

.xs .POPIN_content_general {
    padding: 8px;
}

.POPIN_content {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 1045;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0);
    animation: open_popin_content 0.2s forwards;
}

@keyframes open_popin_content {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.POPIN_content_general:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
.POPIN_window {
    border-radius: 12px;
    width: 100%;
    margin: 16px auto;
    height: calc(100% - 32px);
    overflow: hidden;
    background-color: var(--surface);
}

.xs .POPIN_window {
    margin: 0 auto;
    height: 100%;
    max-width: calc(100% - 10px);
}

.POPIN_window > div {
    /*transition: all 0.3s ease-out;*/
}

.POPIN_window .titre {
    position: relative;
    width: 100%;
    height: 60px;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--on-surface-variant);
    padding: 0 16px;
    justify-content: flex-start !important;
}

.POPIN_window .titre .icon-graph svg {
    fill: none;
}

.POPIN_window .icon-close {
    fill: var(--on-surface-variant);
}

.POPIN_window.notitre .titre {
    display: none;
}

.POPIN_window .titre .ctitre {
    font-weight: 400;
}

.POPIN_window .titre > .icon {
    padding: 12px;
}

.POPIN_window > .icon-close {
    position: absolute;
    right: 16px;
    top: 8px;
    padding: 12px;
}

.POPIN_window .content {
    overflow-y: auto;
    width: 100%;
    height: calc(100% - 80px);
}

.POPIN_window.notitre .content {
    height: calc(100% - 3rem);
}

.POPIN_window.nostatus .content {
    height: calc(100% - 60px);
}

.POPIN_window.nots .content {
    height: calc(100% - 0rem);
}

.POPIN_window .btnclose {
    position: absolute;
    top: 0;
    right: 0;
    /*background: rgba(255,255,255,0.95);*/
    color: white;
    width: 5rem;
    height: 5rem;
    z-index: 10;
    margin: 0;
    cursor: pointer;
    text-align: center;
    line-height: 5rem;
    font-size: 1.6rem;
    font-weight: bold;
    transition: all 0.2s;
}

#POPINC_POPEVENTS {
    display: flex;
    justify-content: center;
    align-items: center;
}

.POPIN_window #POPIN_close_POPEVENTS:hover {
    color: rgba(0, 88, 129, 0.8);
}

/*.POPIN_window .btnclose::before {

}*/

.POPIN_window .btnclose:hover {
    color: #1e6f6c;
}

.POPIN_window .status {
    position: relative;
    height: 48px;
    z-index: 2;
    margin: 0px;
    padding: 8px;
    width: 100%;
    -moz-box-sizing: border-box;
    text-align: center;
    line-height: 32px;
    font-size: 12px;
    color: white;
}

.POPIN_window.nostatus .status {
    display: none;
}

/********** Centrage des images **********/

.POPIN_window .containerTable {
    display: table;
    width: 100%;
    height: 100%;
}

.POPIN_window .containerRow {
    display: table-row;
}

.POPIN_window .containerTable .containerCell {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.POPIN_window .containerTable .containerCell img {
    max-width: 100%;
    max-height: 100%;
}

.POPIN_window .containerTable .containerCell.text {
    text-align: left;
    vertical-align: top;
    padding: 0.5rem;
    font-size: 1.2rem;
}

/********** .POPIN_content_wrap.draggable **********/

.POPIN_content_wrap.draggable {
    pointer-events: none;
    background: none;
}

.POPIN_content_wrap.draggable .POPIN_window {
    pointer-events: all;
    margin: 0;
    height: 100%;
}

.POPIN_content_wrap.draggable .POPIN_content {
    position: absolute;
}

.POPIN_content_wrap.draggable .appbar {
    cursor: move;
}

.POPIN_content .sysFormLight .onglet_content.sysformOnglet {
    padding: 0 16px !important;
}

.POPIN_content .sysFormLight .onglet_content.sysformOnglet .form-group.divider.empty {
    display: none !important;
}

.POPIN_content .form_inside_popin {
    padding: 16px 16px 0 16px;
}

.POPIN_content .form_inside_popin_footer {
    gap: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}