/* Neues Design (Vorschau): Termine (/events), the dialog. The list itself
   is styled through pv_list (preview.css). */

/* why »Speichern« stays disabled (preview/events.js, save_hint): quiet,
   right before »Speichern« in the buttons' row; on phones on its own line
   above the buttons */
.ui-preview #composeModal .modal-footer {
    flex-wrap: wrap;
}

.ui-preview #composeModal .pv-ev-save-hint {
    order: 1;
    flex: 0 1 auto;
    margin: 0 6px 0 0;
    font-size: 0.88rem;
    color: var(--pv-muted);
    text-align: right;
}

@media (max-width: 767px) {
    .ui-preview #composeModal .pv-ev-save-hint {
        order: -3;
        flex: 1 0 100%;
        margin: 0 0 4px;
        text-align: left;
    }
}

/* the editor starts at about ten lines and grows with its text (up to 40 %
   of the window, then it scrolls itself): the dialog fits a usual screen
   without a scrollbar of its own */
.ui-preview #composeModal .note-editing-area .note-editable {
    height: auto !important;
    min-height: 10rem;
    max-height: 40vh;
    overflow-y: auto;
}

.ui-preview #composeModal .note-statusbar {
    display: none;
}

.ui-preview #composeModal .modal-body > .form-group:last-child {
    margin-bottom: 0;
}
