/* Fenêtre modale native (<dialog>), cf. assets/controllers/dialog_controller.js */
.app-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .5);
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    overflow: visible;
}
.app-dialog::backdrop {
    background: rgba(0, 0, 0, .6);
}
.app-dialog--content {
    width: 60%;
}
.app-dialog--iframe {
    width: min(1100px, calc(100vw - 40px));
    height: calc(100vh - 80px);
}
.app-dialog__body {
    height: 100%;
    max-height: calc(100vh - 40px);
    overflow: auto;
}
.app-dialog--content .app-dialog__body {
    padding: 20px 25px;
}
.app-dialog-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.app-dialog__close {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 1;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 20px;
    line-height: 24px;
    cursor: pointer;
}
body.app-dialog-open {
    overflow: hidden;
}
@media (max-width: 767px) {
    .app-dialog--content {
        width: calc(100vw - 40px);
    }
}

/* Sélecteur de date natif, déclenché par un lien (cf. date_picker_controller.js) */
.date-picker-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    border: 0;
    padding: 0;
}
[data-controller~="date-picker"] {
    position: relative;
}
