/* GO-FINDYOU Public Catalog 6.1.1
   Verhindert übermäßig hohe rechte Seitenleisten-Karten.
*/

/*
 * Die neue Sidebar wurde in einen gestreckten Grid-/Flex-Kontext eingefügt.
 * Dadurch nahm sie die komplette Höhe der linken Hauptkarte an.
 */
.gfy-pc61-sidebar {
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-auto-rows: max-content !important;
}

.gfy-pc61-card {
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.gfy-pc61-card__body {
    height: auto !important;
    min-height: 0 !important;
}

/* Falls der Elterncontainer Grid verwendet: alle Elemente oben ausrichten. */
body:has([data-entry-screenshot-open]) aside,
body:has([data-entry-screenshot-open]) aside > *,
body:has([data-entry-screenshot-open]) [class*="sidebar"],
body:has([data-entry-screenshot-open]) [class*="cockpit"] {
    align-self: start;
}

body:has([data-entry-screenshot-open]) aside {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Aktionskarte kompakter. */
.gfy-pc61-actions {
    align-content: start !important;
}

.gfy-pc61-button {
    min-height: 40px;
}

/* Das Live-Cockpit erhält Abstand, aber keine erzwungene Höhe. */
.gfy-pc61-sidebar + .gfy-live-cockpit,
.gfy-pc61-sidebar + .live-cockpit,
.gfy-pc61-sidebar + .entry-live-cockpit {
    margin-top: 14px !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Sicherheitsregel gegen leere, gestreckte Karten. */
.gfy-pc61-card:empty {
    display: none !important;
}

@media (max-width: 1050px) {
    .gfy-pc61-sidebar {
        height: auto !important;
    }
}
