/* ==========================================================================
   Embedded CRUD Feature – Schnellzugriff
   Button strip + selection popup for FundInvestment child entity editing.
   Consistent with quicklinks.css / overviews.css design system.
   ========================================================================== */

/* --- Button strip (entity type cards on TenantView) --- */

.embedded-crud-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.embedded-crud-buttons .entity-type-button {
    border: 1px solid var(--dxbl-border-color, #dee2e6);
    border-radius: 8px;
    background: var(--dxbl-surface-bg, #fff);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    min-height: 44px;
    font-weight: 500;
}

.embedded-crud-buttons .entity-type-button:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
    border-color: var(--dxbl-primary, #0d6efd);
}

/* --- Selection popup body --- */

.crud-popup-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.25rem 0.5rem 0.5rem;
}

/* --- Placeholder text --- */

.crud-popup-placeholder {
    color: var(--dxbl-text-color, #6c757d);
    opacity: 0.65;
    font-size: 0.875rem;
    font-style: italic;
    padding: 1.25rem 0.5rem;
    text-align: center;
}

/* --- Error message --- */

.crud-popup-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #842029;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}