/* ================================================
   MBOARD UI DESIGN SYSTEM
   Sistema di componenti riutilizzabili per tutto il backoffice
   Version: 1.0.0
   ================================================ */

/* === LAYOUT COMPONENTS === */

/* 1. CARD - Per elementi singoli in griglia/lista */
.mb-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .06);
    overflow: hidden;
    transition: box-shadow .18s ease, border-color .18s ease;
}

.mb-card:hover {
    box-shadow: 0 14px 30px rgba(16, 24, 40, .10);
    border-color: rgba(13, 110, 253, .25);
}

.mb-card--disabled {
    opacity: 0.6;
    filter: grayscale(0.3);
    pointer-events: none;
}

.mb-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bs-border-color);
    background: radial-gradient(900px 200px at -10% -40%, rgba(13, 110, 253, .08), transparent 60%),
        linear-gradient(180deg, var(--bs-body-bg), #f7f9ff);
}

.mb-card__body {
    padding: 14px;
}

.mb-card__footer {
    padding: 10px 14px;
    border-top: 1px solid var(--bs-border-color);
    background: #f8f9fa;
}


/* 2. SECTION - Per contenitori grandi (sostituisce .card di Bootstrap in editor) */
.mb-section {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    margin-bottom: 1.5rem;
    background: #fff;
}

.mb-section__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg, var(--bs-body-bg), #f8f9fa);
    min-height: 48px;
    border-bottom: 1px solid var(--bs-border-color);
}

.mb-section__header-icon {
    font-size: 2rem !important;
    line-height: 1;
    width: 2.5rem;
    text-align: center;
    flex-shrink: 0;
}

.mb-section__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.mb-section__actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-left: auto;
}

.mb-section__body {
    padding: 1rem 1.25rem;
}

/* Form controls dentro le sezioni - più compatti e puliti */
.mb-section__body .form-label {
    height: auto;
    overflow: visible;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Form controls regolari (NON -sm) - mantengono dimensioni standard */
.mb-section__body .form-control:not(.form-control-sm),
.mb-section__body .form-select:not(.form-select-sm),
.mb-section__body select.form-control:not(.form-control-sm),
.mb-section__body input.form-control:not(.form-control-sm),
.mb-section__body textarea.form-control:not(.form-control-sm) {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 0.95rem;
}

.mb-section__body .input-group:not(.input-group-sm) > .form-control,
.mb-section__body .input-group:not(.input-group-sm) > .form-select {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 0.95rem;
}

.mb-section__body .input-group:not(.input-group-sm) > .input-group-text,
.mb-section__body .input-group:not(.input-group-sm) > .btn {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 0.95rem;
}

.mb-section__footer {
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--bs-border-color);
    background: #f8f9fa;
}


/* 3. PANEL - Per sidebar, drawer, pannelli laterali */
.mb-panel {
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    overflow: hidden;
}

.mb-panel__header {
    padding: .75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--bs-border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .02em;
    color: var(--bs-gray-700);
}

.mb-panel__body {
    padding: 1rem;
}


/* === STATUS & FEEDBACK === */

/* 4. PILLS - Status badges */
.mb-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid transparent;
    user-select: none;
    white-space: nowrap;
}

.mb-pill--success {
    background: #ecfdf3;
    color: #027a48;
    border-color: #a6f0c6;
}

.mb-pill--warning {
    background: #fffaeb;
    color: #b54708;
    border-color: #f7e0a3;
}

.mb-pill--danger {
    background: #fef3f2;
    color: #b42318;
    border-color: #f9d0ce;
}

.mb-pill--info {
    background: #eff8ff;
    color: #175cd3;
    border-color: #b2ddff;
}

.mb-pill--secondary {
    background: #f8f9fa;
    color: #475467;
    border-color: #e4e7ec;
}


/* 5. BADGE - Piccoli indicatori numerici */
.mb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
}

.mb-badge--primary {
    background: #0d6efd;
    color: #fff;
}

.mb-badge--success {
    background: #027a48;
    color: #fff;
}

.mb-badge--danger {
    background: #b42318;
    color: #fff;
}

.mb-badge--warning {
    background: #b54708;
    color: #fff;
}


/* 6. ALERT - Messaggi di notifica/warning */
.mb-alert {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.mb-alert__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    margin-top: .1rem;
}

.mb-alert__content {
    flex-grow: 1;
}

.mb-alert--info {
    background: #eff8ff;
    color: #175cd3;
    border-color: #b2ddff;
}

.mb-alert--warning {
    background: #fffaeb;
    color: #b54708;
    border-color: #f7e0a3;
}

.mb-alert--danger {
    background: #fef3f2;
    color: #b42318;
    border-color: #f9d0ce;
}

.mb-alert--success {
    background: #ecfdf3;
    color: #027a48;
    border-color: #a6f0c6;
}


/* === FORM CONTROLS === */

/* 7. TOGGLE SWITCH - Unificato */
.mb-switch {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.mb-switch__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.mb-switch__label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    user-select: none;
}

.mb-switch__toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 999px;
    transition: background .2s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
    flex-shrink: 0;
}

.mb-switch__toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: left .2s ease;
}

.mb-switch__input:checked+.mb-switch__label .mb-switch__toggle {
    background: #0d6efd;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, .2);
}

.mb-switch__input:checked+.mb-switch__label .mb-switch__toggle::after {
    left: 22px;
}

.mb-switch__input:disabled+.mb-switch__label {
    opacity: 0.5;
    cursor: not-allowed;
}

.mb-switch__text {
    font-size: .95rem;
    font-weight: 500;
    color: #0f172a;
}

/* Switch allineamento verticale quando affiancato a form-control */
.row.align-items-end .mb-switch {
    margin-bottom: 0;
}

/* Switch in col senza label - allineamento con form-control */
.mb-section__body .col-md-2 .mb-switch.mt-4,
.mb-section__body .col-3 .mb-switch.mt-4,
.mb-section__body .col-md-3 .mb-switch.mt-4 {
    margin-top: 0 !important;
    /* Calcolo preciso: font-size label (0.9rem) * line-height (1.5) + margin-bottom (0.5rem) */
    padding-top: calc(0.9rem * 1.5 + 0.5rem);
    /* = 1.35rem + 0.5rem = 1.85rem */
}

/* Switch senza mt-4 in row senza align-items-end */
.mb-section__body .row:not(.align-items-end) .mb-switch {
    display: flex;
    align-items: center;
}


/* === TOOLBAR & NAVIGATION === */

/* 8. TOOLBAR - Barre di azione */
.mb-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    flex-wrap: wrap;
}

.mb-toolbar__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-weight: 600;
}

.mb-toolbar__title-icon {
    font-size: 1.5rem;
    opacity: 0.75;
}

.mb-toolbar__spacer {
    flex-grow: 1;
}

.mb-toolbar__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}

.mb-toolbar__search {
    min-width: 260px;
    max-width: 520px;
}

/* Search group compatto (usato in toolbar) */
.mb-search-group {
    display: flex;
    align-items: stretch;
}

.mb-search-group .input-group-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.mb-search-group .form-control {
    border-radius: 0;
}

.mb-search-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.mb-search-group .btn+.btn {
    margin-left: -1px;
}


/* === INTERACTIONS === */

/* 9. DRAG & DROP */
.mb-sortable-ghost {
    opacity: .6;
}

.mb-handle {
    cursor: move;
    transition: opacity .2s ease;
}

.mb-handle:hover {
    opacity: 0.7;
}

.mb-handle--disabled {
    opacity: .4;
    cursor: not-allowed;
}


/* === STATES === */

/* 10. EMPTY STATE */
.mb-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6c757d;
}

.mb-empty__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

.mb-empty__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: #212529;
}

.mb-empty__text {
    font-size: 1rem;
    margin: 0;
}

.mb-empty__action {
    margin-top: 1.5rem;
}


/* 11. LOADING STATE */
.mb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
}

.mb-loading__spinner {
    border: 3px solid rgba(13, 110, 253, .1);
    border-top-color: #0d6efd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: mb-spin 1s linear infinite;
    margin-right: 1rem;
}

.mb-loading__text {
    font-size: .95rem;
}

@keyframes mb-spin {
    to {
        transform: rotate(360deg);
    }
}


/* === UTILITIES === */

/* 12. LAYOUT HELPERS */
.mb-grid {
    display: block;
}

.mb-flex {
    display: flex;
}

.mb-flex--center {
    align-items: center;
    justify-content: center;
}

.mb-flex--between {
    justify-content: space-between;
}

.mb-flex--wrap {
    flex-wrap: wrap;
}

.mb-gap-1 {
    gap: .25rem;
}

.mb-gap-2 {
    gap: .5rem;
}

.mb-gap-3 {
    gap: 1rem;
}

.mb-gap-4 {
    gap: 1.5rem;
}


/* 13. SPACING */
.mb-mb-1 {
    margin-bottom: .5rem;
}

.mb-mb-2 {
    margin-bottom: 1rem;
}

.mb-mb-3 {
    margin-bottom: 1.5rem;
}

.mb-mb-4 {
    margin-bottom: 2rem;
}

.mb-mt-1 {
    margin-top: .5rem;
}

.mb-mt-2 {
    margin-top: 1rem;
}

.mb-mt-3 {
    margin-top: 1.5rem;
}

.mb-mt-4 {
    margin-top: 2rem;
}


/* 14. TEXT UTILITIES */
.mb-nowrap {
    white-space: nowrap;
}

.mb-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mb-fw-500 {
    font-weight: 500;
}

.mb-fw-600 {
    font-weight: 600;
}


/* 15. FORM CONTROLS UNIFORMITY */
/* Rimossa per lasciare che Bootstrap gestisca le dimensioni naturalmente */

.mb-fw-700 {
    font-weight: 700;
}


/* === FOCUS & ACCESSIBILITY === */

/* 15. FOCUS STATES */
.mb-card:focus-within,
.mb-section:focus-within {
    outline: 2px solid rgba(13, 110, 253, .25);
    outline-offset: 2px;
}


/* 16. ACCESSIBILITY */
.mb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* === RESPONSIVE === */

/* 17. BREAKPOINT UTILITIES */
@media (max-width: 768px) {
    .mb-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .mb-toolbar__actions {
        width: 100%;
        margin-left: 0;
    }

    .mb-toolbar__search {
        max-width: 100%;
    }

    .mb-card:hover {
        transform: none;
        /* Disable hover lift on mobile */
    }

    .mb-section__header {
        flex-wrap: wrap;
    }

    .mb-section__actions {
        width: 100%;
        margin-left: 0;
        margin-top: .5rem;
    }
}


/* === SPECIAL COMPONENTS === */

/* 18. Logo Upload Slots (per logo.html) */
.mb-logo-tile {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    overflow: hidden;
}

.mb-logo-slot {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mb-logo-slot.light {
    background: #f8f9fa;
}

.mb-logo-slot.dark {
    background: #2c3e50;
}

.mb-logo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.mb-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mb-logo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: .5rem;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
    opacity: 0;
    transition: opacity .2s ease;
    justify-content: center;
}

.mb-logo-slot:hover .mb-logo-actions {
    opacity: 1;
}


/* 19. Shipmethod/Paymethod chips (per shippings/payments) */
.mb-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
    background: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

.mb-chip__hash {
    opacity: 0.6;
    font-weight: 400;
}


/* 20. Content Editor */

/* Sezioni colorate con header gradient */
.mb-section--primary .mb-section__header {
    background: linear-gradient(135deg, #e7f1ff 0%, #cfe2ff 100%);
    border-bottom: 1px solid #b6d4fe;
}

.mb-section--primary .mb-section__header-icon,
.mb-section--primary .mb-section__title {
    color: #084298;
}

.mb-section--success .mb-section__header {
    background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
    border-bottom: 1px solid #a3cfbb;
}

.mb-section--success .mb-section__header-icon,
.mb-section--success .mb-section__title {
    color: #0a3622;
}

.mb-section--warning .mb-section__header {
    background: linear-gradient(135deg, #fff3cd 0%, #ffecb5 100%);
    border-bottom: 1px solid #ffe69c;
}

.mb-section--warning .mb-section__header-icon,
.mb-section--warning .mb-section__title {
    color: #997404;
}

.mb-section--danger .mb-section__header {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    border-bottom: 1px solid #ea868f;
}

.mb-section--danger .mb-section__header-icon,
.mb-section--danger .mb-section__title {
    color: #842029;
}

.mb-section--info .mb-section__header {
    background: linear-gradient(135deg, #cff4fc 0%, #b6effb 100%);
    border-bottom: 1px solid #9eeaf9;
}

.mb-section--info .mb-section__header-icon,
.mb-section--info .mb-section__title {
    color: #055160;
}

.mb-section--purple .mb-section__header {
    background: linear-gradient(135deg, #e2d9f3 0%, #d3c5e5 100%);
    border-bottom: 1px solid #c5b3d9;
}

.mb-section--purple .mb-section__header-icon,
.mb-section--purple .mb-section__title {
    color: #432874;
}

/* Publish Channel Block */
.publish-channel-block {
    background: #fff;
    border: 1px solid #e3ecff;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.publish-channel-block:hover {
    border-color: #b6d4fe;
    box-shadow: 0 1px 6px rgba(91, 141, 239, 0.06);
}

.publish-channel-header {
    margin-bottom: 0;
}

/* Category List Styles */
.category-list {
    background: #f8fbff;
    border: 1px solid #e3ecff;
    border-radius: 4px;
    padding: 6px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    background: #fff;
    border: 1px solid #e8f1ff;
    border-radius: 3px;
    margin-bottom: 4px;
    font-size: 0.8rem;
    transition: all 0.12s ease;
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-item i {
    color: #5b8def;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.category-item span {
    color: #495057;
    line-height: 1.3;
}

.category-item:hover {
    background: #f8fbff;
    border-color: #b6d4fe;
}

.empty-categories {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #fff9e6;
    border: 1px dashed #ffd966;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #856404;
    font-style: italic;
}

.empty-categories i {
    color: #f59c00;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Content Editor - Bottoni con font leggermente più grande */
.content-editor .btn {
    font-size: 0.9rem;
}

.content-editor .btn-sm {
    font-size: 0.825rem;
}

.text-accent {
    color: #5b8def;
    font-size: 22px;
}

.btn-accent {
    background: #5b8def;
    color: #fff;
    border: 0;
}

.btn-accent:hover {
    filter: brightness(0.95);
}

.btn-soft-primary {
    background: #eef4ff;
    color: #2f5bd2;
    border: 1px solid #dfe8ff;
}

.btn-soft-primary:hover {
    background: #e6efff;
}

.accent-top {
    border-top: 3px solid #5b8def;
}

.flag-control {
    display: inline-flex;
    align-items: center;
    margin-left: .4rem;
    vertical-align: middle;
}

.ce-section {
    position: relative;
    padding: 1rem;
    border: 1px dashed #e2e5ec;
    border-radius: 12px;
    background: #fafafa;
}

.ce-section.selected {
    border-color: #94bfff;
    background: #f5f9ff;
}

.add-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: .25rem;
    min-width: 160px;
    background: #fff;
    z-index: 1000;
}

.add-menu-item {
    display: block;
    padding: .45rem .6rem;
    color: #333;
    text-decoration: none;
    font-size: .9rem;
}

.add-menu-item:hover {
    background: #f5f8ff;
}

.ce-item {
    position: relative;
    padding: .5rem;
    border: 1px solid #eef0f6;
    border-radius: 12px;
    background: #fff;
    min-height: 80px;
    transition: box-shadow .15s ease, transform .1s ease;
}

.ce-item.drag-over {
    box-shadow: 0 0 0 2px #5b8def inset;
    transform: scale(0.99);
}

.item-badge {
    background: #eef4ff;
    color: #2f5bd2;
    border: 1px solid #dfe8ff;
}

.cover-thumb {
    width: 96px;
    height: 64px;
    overflow: hidden;
    background: #fff;
}

.cover-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-thumb {
    width: 128px;
    height: 86px;
    overflow: hidden;
    background: #fff;
}

.img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.obj-cover {
    object-fit: cover;
    width: 100%;
    height: 140px;
}

.gallery-card {
    transition: box-shadow .15s ease, transform .1s ease;
}

.gallery-card.drag-over {
    box-shadow: 0 0 0 2px #5b8def inset;
    transform: scale(0.99);
}

.badge.handle {
    background: #f1f5ff;
    color: #2f5bd2;
    border: 1px solid #dfe8ff;
}

.updates-list .update-row {
    border: 1px solid #eef0f6;
    border-radius: 3px;
    padding: .45rem;
    background: #fff;
    cursor: pointer;
    transition: box-shadow .12s ease, transform .08s ease;
}

.updates-list .update-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.updates-list .update-row.selected {
    border-color: #94bfff;
    background: #f5f9ff;
}

.upd-thumb {
    width: 56px;
    height: 42px;
    overflow: hidden;
    background: #fff;
    flex: 0 0 auto;
}

.upd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upd-thumb.big {
    width: 110px;
    height: 78px;
}

.tiny {
    font-size: 1rem;
    line-height: 1.2;
}

/* Dev/non-prod banner. Strip fisso in alto, z-index alto cosi' appare sopra
   qualunque drawer/menu. Colore Bootstrap "warning" desaturato.
   Vedi commons/layout/body.html + mpcommons.Hosting.HostInfo. La barra e' fissa
   perche' tutti i layout Metronic (aside-fixed, header-fixed) si ancorano a
   top:0 e la barra deve restare visibile durante lo scroll. */

:root {
    --mb-dev-banner-height: 28px;
}

.mb-dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1090;
    height: var(--mb-dev-banner-height);
    padding: 4px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #5a4500;
    background: #fff3cd;
    border-bottom: 1px solid #ffe69c;
    letter-spacing: 0.2px;
}

.mb-dev-banner .badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
}

/* Quando la barra dev e' attiva, shift down dei fixed Metronic + del body
   wrapper, cosi' niente viene coperto. La classe `dev-banner-on` viene messa
   sul <body> da commons-layout-body via watcher. */
body.dev-banner-on {
    padding-top: var(--mb-dev-banner-height);
}

/* L'aside e' position:fixed di base (.aside-fixed .aside): top va sempre shiftato.
   L'header invece e' position:relative finche' non scatta lo sticky (Metronic
   aggiunge .header-fixed + data-kt-sticky-header="on" sul body). Su relative,
   `top: 28px` shifta visivamente l'elemento ma NON il suo flow box, quindi il
   content sottostante parte alla y "logica" mentre l'header e' 28px piu' in
   basso -> overlap di 28px con la toolbar di pagina. Limitiamo lo shift dell'
   header al solo stato fixed dove `top` ha la semantica giusta. */
body.dev-banner-on #kt_aside,
body.dev-banner-on .aside,
body.dev-banner-on #kt_header_mobile {
    top: var(--mb-dev-banner-height) !important;
}
body.dev-banner-on.header-fixed[data-kt-sticky-header="on"] #kt_header,
body.dev-banner-on.header-fixed[data-kt-sticky-header="on"] .header {
    top: var(--mb-dev-banner-height) !important;
}

