/*
 * T3Bootstrap — Spacing Defaults backend module
 *
 * Only patterns that are NOT covered by TYPO3 backend's default Bootstrap
 * components live here. Panels, form-controls and form-switches inherit
 * from the backend theme (including dark mode).
 */

.t3b-spacing-defaults__editor-host {
    display: block;
}

.t3b-spacing-defaults__view + .t3b-spacing-defaults__view {
    margin-top: var(--bs-spacer, 1rem);
}

/* One CType-Override section (defaults / first / last) */
.t3b-spacing-defaults__section {
    border-top: 1px solid var(--token-color-stroke-default, #d7d7d7);
    padding-top: var(--bs-spacer, 1rem);
    margin-top: var(--bs-spacer, 1rem);
}

.t3b-spacing-defaults__section:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.t3b-spacing-defaults__section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: .75rem;
}

/* Inheritance hint only while the override is off */
.t3b-spacing-defaults__section.is-active [data-inherit-hint] {
    display: none;
}

.t3b-spacing-defaults__section.is-disabled .t3b-spacing-defaults__editor {
    display: none;
}

/* Container-context panel — subtle accent so the scope is obvious */
.t3b-spacing-defaults__view--container > .panel-heading {
    border-left: 3px solid var(--typo3-component-primary-color, #0a7cb9);
}

.t3b-spacing-defaults__scope-info {
    margin-bottom: var(--bs-spacer, 1rem);
}
