.mp-detail-trigger {
    appearance: none;
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    text-decoration: underline dotted;
    text-underline-offset: .2em;
    cursor: help;
}
.mp-detail-trigger:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 3px;
}
.mp-detail-popover {
    --bs-popover-max-width: min(420px, calc(100vw - 32px));
}
.mp-detail-popover .popover-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: min(360px, 60vh);
    overflow-y: auto;
}
/*
 * Simulation models: one gap between the model accordions, like the test series tab, and the tables inside an
 * opened model as framed cards with a gap above, between and below them.
 *
 * Each accordion sits in its own flex .row, so top and bottom margins add up instead of collapsing: a gap on
 * both sides put the models 24px apart. Only the first model after the filter bar keeps a top gap.
 * The library draws tables inside an accordion without their card frame (they run edge to edge, split by a
 * rule) - but the lazy-loaded tables sit one level deeper and got neither rule, so a 12px white gap between
 * white tables could not be seen. The frame is put back here.
 */
body.shell.shell-dense #datasheet #tab_simulation_tab .datasheet-section-accordion {
    margin-block: 0 var(--datasheet-surface-gap, 12px) !important;
}
body.shell.shell-dense #datasheet #tab_simulation_tab .datasheet-entry:not(.datasheet-entry--section) + .datasheet-entry--section > .datasheet-section-accordion {
    margin-top: var(--datasheet-surface-gap, 12px) !important;
}
body.shell.shell-dense #datasheet #tab_simulation_tab .datasheet-section-accordion .accordion-body {
    padding: var(--datasheet-surface-gap, 12px) 16px;
}
body.shell.shell-dense #datasheet #tab_simulation_tab .datasheet-section-accordion .accordion-body .datasheet-collection .card {
    border: 1px solid var(--datasheet-surface-border);
    border-radius: var(--datasheet-surface-radius);
    box-shadow: var(--datasheet-surface-shadow);
}
body.shell.shell-dense #datasheet #tab_simulation_tab .datasheet-lazy-section-content > .datasheet-entry + .datasheet-entry {
    margin-top: var(--datasheet-surface-gap, 12px);
}
