/* Bridging prototype to production is sometimes best done through a monkey patch. */
/* For each patch here, please provide a ticket ref and short description, */
/* so that we can more easily audit and remove patches in the future. */

/* https://github.com/syslabcom/quaive.prototype/issues/392 */
/* External apps should only be visibile on mobile when explicitly */
/* configured as .mobile */
@media only screen and (max-width: 767px) {
    .tiles.apps .tile.external:not(.mobile) {
        display: none;
    }
}

/* https://github.com/quaive/ploneintranet/issues/5725 */
/* https://proto.quaivecloud.com/apps/calendar/panel-accept-event-sharing-request.html */
/* Show the details of the moderated event; without showing the event view itself (b/c permission issues). */
.DEV-panel-moderate-event > .event-details {
    margin: 1em 0;
    padding: 1em;
    border: solid grey 1px;
    border-radius: 0.5em;
}
.DEV-panel-moderate-event > p {
    text-align: center;
}
.DEV-panel-moderate-event {
    margin-bottom: 1rem;
}

/* Fix for https://github.com/quaive/ploneintranet/issues/5946 */
/* Ensures that the buttons in the form have the proper size */
.toolbar-section.quick-functions .pat-button {
    min-width: max-content;
}

/* Event view: read-only rich text has no paragraph spacing. */
/* ploneintranet event_view.pt still renders the read-only event through */
/* content_macros/event_fields (fieldset.fancy > article.read-only-field.type-rich), */
/* markup the prototype dropped from its event view in e4203440 (2023-09-01, #178). */
/* Give it the block spacing of .pat-rich ($rich-block-tail-white, 1.2rem). */
/* Remove once event_view.pt is ported to the quaive-page-modules markup. */
.event-details article.read-only-field.type-rich :is(h1, h2, h3, p, ul, ol, table, dl, pre, figure) {
    margin-bottom: 1.2rem;
}
.event-details article.read-only-field.type-rich > :first-child {
    margin-top: 0.5em;
}
.event-details article.read-only-field.type-rich > :last-child {
    margin-bottom: 0;
}
