/********************/
/*      Modal       */
/********************/
.modal-overlay {
    position: fixed;
    z-index: 999;
    top: -25%;
    left: 0;
    bottom: 0;
    right: 0;
    height: 125%;
    width: 100%;
    background: #000;
    display: none;
    will-change: opacity;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1003;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 26px;
	border-radius: 12px;
    max-height: 70%;
    width: 55%;
    margin: auto;
	font-size: 15px;
    overflow-y: auto;
    will-change: top, opacity;
    webkit-box-shadow: 0 24px 38px 3px rgba(0,0,0,0.14), 0 9px 46px 8px rgba(0,0,0,0.12), 0 11px 15px -7px rgba(0,0,0,0.2);
    box-shadow: 0 24px 38px 3px rgba(0,0,0,0.14), 0 9px 46px 8px rgba(0,0,0,0.12), 0 11px 15px -7px rgba(0,0,0,0.2);
    -webkit-transition: all 250ms cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
    -o-transition: all 250ms cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
    transition: all 250ms cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

.modal:focus {
    outline: none;
}

@media only screen and (max-width: 992px) {
    .modal {
        width: 80%;
    }
}

.modal .modal-footer {
    border-radius: 0 0 2px 2px;
    background-color: #fff;
    width: 100%;
	margin-top: 20px;
    text-align: right;
}

.modal-footer .btn-portail:not(:last-child) {
	margin-right: 20px;
}

/* Styles g?n?riques des boutons tir? de Intraflex V19, en les ayant ici on est pas d?pendant de intraflex_v19.css */
/* Note : Le box-shadow a ?t? modifi? pour celui de materialize */
.modal .btn-portail {
    background-color: #FFF;
    border: none;
    font-family: RobotoMedium, Arial;
	font-weight: 500;
	font-size: 16px;
    display: inline-block;
	padding: 0 25px;
	height: 36px;
	line-height: 36px;
    border-radius: 6px;


    cursor: pointer;
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    -webkit-transition: .3s ease-out;
    transition: .3s ease-out;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    transition-delay: 0s;
}

.modal .btn-portail:hover {
    -webkit-box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2);
	box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2);
}

/* Styles plus custom aux modals */
.modal .btn-portail {
	border-width: 0px;
}

.modal .btn-portail:focus {
	outline: none;
}

.modal .btn-portail[disabled] {
    pointer-events: none;
    cursor: default;
}

.modal .btn-portail:not(.with-spinner)[disabled] {
    background-color: #DFDFDF !important;
    color: #9F9F9F !important;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.modal:not(.materialize-modal) .modal-close:not(.blue-close-btn) {
	background-color: #FFF;
	color: #2962FF;
	border: 1px solid lightgrey;
	box-shadow: none !important;
}

.modal:not(.materialize-modal) .modal-close:hover:not(.blue-close-btn),
.modal:not(.materialize-modal) .modal-close:focus:not(.blue-close-btn) {
	background-color: rgba(1, 105, 176, 0.1);
}

.btn-portail.modal-close.btn-annuler {
    background-color: transparent;
    color: #343434;
    box-shadow: none;
}

.modal:not(.materialize-modal) .modal-close.blue-close-btn {
	color: white;
	background-color: #2962FF;
}

.modal:not(.materialize-modal) .modal-close.blue-close-btn:hover,
.modal:not(.materialize-modal) .modal-close.blue-close-btn:focus {
	background-color: #015a97;
}



.btn-portail.modal-close.btn-annuler:hover {
    box-shadow: none;
}

.btn-portail.modal-close.btn-annuler:focus {
    background-color: rgba(0, 0, 0, 0.1);
}

.modal .modal-confirm,
.modal .modal-confirm.with-spinner[disabled]:hover {
    background-color: #2962FF;
    color: #fff;
}

.modal .modal-confirm:hover {
	background-color: #0041f5;
}

.modal .modal-confirm:focus {
	background-color: #0034c2;
}

.modal-confirm.green {
    background-color: #4CAF50;
}

.modal-confirm.green:hover,
.modal-confirm.green:focus {
    background-color: #449d48;
}

.modal-confirm.red {
    background-color: #F44336;
}

.modal-confirm.red:hover,
.modal-confirm.red:focus {
    background-color: #D32C1E;
}

.modal .divider {
	height: 1px;
    overflow: hidden;
    background-color: #e0e0e0;
	margin-bottom: 20px;
}

.modal h4 {
    margin: 0 0 12px 0;
    font-weight: 400;
    font-size: 29px;
}

/*
 * Styles pour les modals de d?tails
 */
.modal.details {
    padding: 0;
    overflow-y: hidden;
    font-size: 16px;
    background-color: transparent;
    padding: 0;
    height: 80%;
    border-radius: 12px;
    /* Emp?che de scroll dans les modals de briser sur iOS */
    -webkit-overflow-scrolling: touch;
}

.modal.details.instruction-short{
    height: 20%;
}
    .modal.details h4 {
        font-size: 26px;
        margin: 0;
    }

    .modal.details .modal-close.close,
    .modal.with-slider .modal-close.close {
        background-color: transparent;
        border: none;
        cursor: pointer;
        position: absolute;
        font-size: 32px;
    }

    .modal.with-slider .modal-close.close i {
        font-size: 32px;
        padding: 5px;
    }

    .modal.details .modal-close.close {
        color: #2962FF;
        top: 12px;
        right: 21px;
        padding: 5px;
    }

    .modal.details .modal-close.close:hover,
    .modal.details .modal-close.close:focus,
    .modal.with-slider .modal-close.close:hover,
    .modal.with-slider .modal-close.close:focus {
        background-color: rgba(0,0,0, 0.25);
        border-radius: 50%;
    }

    .modal.details .modal-close.close:hover,
    .modal.details .modal-close.close:focus {
        color: #2962FF;
    }

    .modal.details .modal-header {
        position: relative;
        padding: 15px 65px 15px 40px;
        background-color: #FFF;
        color: #000;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        position: absolute;
        top: 0;
        border-radius: 6px 6px 0 0;
        width: 100%;
        height: 66px;
        box-sizing: border-box;
    }

    .modal.details .modal-header-footer {
        color: #fff;
        display: flex;
        justify-content: space-between;
        padding: 15px 30px 15px 40px;
        background-color: #1b5e20;
    }

        .modal.details .modal-header-footer .info-wrapper {
            display: flex;
            flex-direction: column;
        }

    .modal.details .modal-content {
        background-color: #FFF;
        position: absolute;
        height: calc(100% - 66px);
        max-height: 100%;
        width: 100%;
        overflow-y: auto;
        margin-top: 66px;
        padding: 20px 40px 0 40px;
        box-sizing: border-box;
    }
    .modal.details.instruction-short .modal-content{
        height: 100%;
    }

    .modal.details .modal-text {
        padding: 25px 40px;
    }

    .modal.details .modal-footer {
        padding: 15px 40px 15px 40px;
        background-color: #FFF;
        color: #000;
        border-top: 1px solid rgba(0,0,0,0.1);
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 66px;
    }

.details-modal-spinner-wrapper {
    position: absolute;
    left: 50%;
    top: 15px;
}

    .details-modal-spinner-wrapper .mdl-spinner {
        position: relative;
        left: -50%;
        width: 35px;
        height: 35px;
    }

.modal.details.modal-details-error {
    height: 140px;
}

.modal.details.fit-content {
    height: auto;
}

    .modal.details.fit-content .modal-content {
        position: relative;
        height: auto;
        padding: 20px 40px;
    }

@media only screen and (max-width : 600px) {
    .modal.details {
        top: 0 !important;
        height: 100%;
        max-height: 100%;
        width: 100%;
        border-radius: 0;
    }

        .modal.details .modal-header {
            border-radius: 0;
            padding: 15px 65px 15px 15px;
        }

        .modal.details .modal-content {
            padding: 20px 15px 0 15px;
        }

        .modal.details .modal-footer {
            padding: 15px;
        }

        .modal.details .modal-header-footer {
            padding: 15px;
        }

        .modal.details .modal-text {
            padding: 20px 15px 0 15px;
        }

        .modal.details.fit-content {
            width: 80%;
            height: auto;
            border-radius: 6px;
            top: 10% !important;
        }

            .modal.details.fit-content .modal-content {
                position: relative;
                height: auto;
                padding: 20px 15px;
            }
}

