:root {
    --app-shell-gap: 1.5rem;
    --app-shell-gap-mobile: 0.75rem;
}

.main-content,
.main-content > *,
.main-content .row > [class*="col-"],
.card,
.card-header,
.card-body,
.modal-content,
.modal-body,
.list-group-item,
.table-responsive {
    min-width: 0;
}

.main-content img,
.main-content svg,
.main-content canvas,
.main-content iframe,
.main-content video {
    max-width: 100%;
    height: auto;
}

.main-content p,
.main-content dd,
.main-content .alert,
.main-content .list-group-item,
.main-content .dropdown-item,
.main-content .dropdown-item-text,
.main-content .card-title,
.main-content .card-text,
.main-content .breadcrumb,
.main-content .table td,
.main-content .table th {
    overflow-wrap: anywhere;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table {
    margin-bottom: 0;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header__title {
    flex: 1 1 18rem;
    min-width: 0;
}

.page-header__title > :last-child {
    margin-bottom: 0;
}

.page-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    min-width: 0;
}

.page-header__actions,
.responsive-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.page-header__actions {
    flex: 1 1 auto;
    justify-content: flex-end;
}

.page-header__actions > *,
.responsive-actions > *,
.form-actions > * {
    margin: 0;
}

.page-header__actions form,
.responsive-actions form,
.form-actions form {
    margin: 0;
}

.filter-toolbar__submit {
    display: flex;
    align-items: end;
    gap: 0.5rem;
}

.responsive-dropdown-menu {
    width: min(18rem, calc(100vw - 2rem));
    min-width: min(18rem, calc(100vw - 2rem)) !important;
    max-width: calc(100vw - 2rem);
    max-height: min(18rem, 60vh) !important;
    overflow-y: auto;
}

.nav-tabs {
    row-gap: 0.5rem;
}

.nav-tabs .nav-link,
.breadcrumb-item,
.dropdown-item,
.dropdown-item-text {
    white-space: normal;
}

.breadcrumb {
    row-gap: 0.35rem;
}

.band-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.band-identity__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
    color: #ffffff;
    flex-shrink: 0;
}

.band-identity__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* When a real logo is present: rounded rectangle + contain-fit */
.band-identity--with-logo .band-identity__avatar {
    border-radius: 0.625rem;
    background: #ffffff;
    padding: 0.1rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.band-identity--with-logo .band-identity__image {
    object-fit: contain;
    border-radius: 0.5rem;
}

.band-identity__fallback {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.band-identity__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.band-identity--sm .band-identity__avatar {
    width: 1.75rem;
    height: 1.75rem;
}

.band-identity--sm .band-identity__fallback {
    font-size: 0.7rem;
}

.band-identity--md .band-identity__avatar {
    width: 2.25rem;
    height: 2.25rem;
}

.band-identity--md .band-identity__fallback {
    font-size: 0.85rem;
}

.band-identity--lg .band-identity__avatar {
    width: 3rem;
    height: 3rem;
}

.band-identity--lg .band-identity__fallback {
    font-size: 1rem;
}

.band-identity--lg.band-identity--with-logo .band-identity__avatar {
    border-radius: 0.75rem;
}

.band-identity--xl .band-identity__avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 1.5rem;
}

.band-identity--xl.band-identity--with-logo .band-identity__avatar {
    border-radius: 1.25rem;
    padding: 0.25rem;
}

.band-identity--xl .band-identity__fallback {
    font-size: 1.5rem;
}

.band-logo-panel__preview {
    position: relative;
    width: 6rem;
    min-width: 6rem;
}

.band-logo-panel__image {
    width: 6rem;
    height: 6rem;
    border-radius: 1.5rem;
    object-fit: cover;
    display: block;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}

.band-logo-panel__fallback {
    display: inline-flex;
}

/* ── App Header ──────────────────────────────────────────────────── */

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 3.5rem;
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
}

.app-header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    gap: 0.5rem;
    max-width: 100%;
}

/* ── Left zone ───────────────────────────────────────────────── */

.app-header__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 1;
}

.app-header__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.app-header__menu-btn:hover,
.app-header__menu-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.app-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    min-width: 0;
    transition: color 0.15s;
}

.app-header__brand:hover,
.app-header__brand:focus {
    color: #ffffff;
    text-decoration: none;
}

.app-header__app-icon {
    font-size: 1.2rem;
    color: #818cf8;
}

.app-header__app-name {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Band identity in header: proper rectangular logo display */
.app-header__brand .band-identity__avatar {
    border-radius: 0.5rem;
    width: 2rem;
    height: 2rem;
}

.app-header__brand .band-identity--with-logo .band-identity__avatar {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.125rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.app-header__brand .band-identity--with-logo .band-identity__image {
    object-fit: contain;
    border-radius: 0.375rem;
}

.app-header__brand .band-identity__text {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 14rem;
}

/* ── Center nav ──────────────────────────────────────────────── */

.app-header__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1rem;
}

.app-header__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.app-header__nav-link:hover,
.app-header__nav-link:focus {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.app-header__nav-link--active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* ── Right zone ──────────────────────────────────────────────── */

.app-header__right {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
    flex-shrink: 0;
}

.app-header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.app-header__icon-btn:hover,
.app-header__icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* User button */

.app-header__user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.app-header__user-btn:hover,
.app-header__user-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.app-header__user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #ffffff;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.app-header__user-name {
    font-weight: 500;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-header__provider-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

.app-header__chevron {
    font-size: 0.625rem;
    opacity: 0.5;
    margin-left: -0.125rem;
}

/* Auth links (logged-out state) */

.app-header__auth-link {
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.app-header__auth-link:hover,
.app-header__auth-link:focus {
    color: #ffffff;
    text-decoration: none;
}

.app-header__auth-link--cta {
    background: #4f46e5;
    color: #ffffff;
}

.app-header__auth-link--cta:hover,
.app-header__auth-link--cta:focus {
    background: #4338ca;
    color: #ffffff;
}

/* Dropdown styling within header */

.app-header__right .dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 0.375rem;
    margin-top: 0.5rem;
}

.app-header__right .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

.app-header__right .dropdown-header {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    padding: 0.5rem 0.75rem 0.25rem;
}

.app-header__right .dropdown-divider {
    margin: 0.25rem 0.5rem;
    opacity: 0.08;
}

/* ── Dashboard Hero Banner ────────────────────────────────────────── */

.dashboard-hero-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #e0e7ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    min-width: 0;
    margin-bottom: 1.25rem;
}

.dashboard-hero .band-identity__avatar {
    width: 4.5rem;
    height: 4.5rem;
}

.dashboard-hero .band-identity--with-logo .band-identity__avatar {
    border-radius: 1rem;
    padding: 0.2rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
    background: #ffffff;
}

.dashboard-hero .band-identity--with-logo .band-identity__image {
    border-radius: 0.75rem;
}

.dashboard-hero .band-identity--fallback .band-identity__avatar {
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.18);
}

.dashboard-hero .band-identity__fallback {
    font-size: 1.25rem;
}

.dashboard-hero__info {
    min-width: 0;
}

.dashboard-hero__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    margin-bottom: 0.125rem;
}

.dashboard-hero__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.375rem;
    line-height: 1.2;
}

.dashboard-hero__quick-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dashboard-hero__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    color: #475569;
    white-space: nowrap;
}

.dashboard-hero__stat i {
    color: #6366f1;
    font-size: 0.75rem;
}

.dashboard-hero__stat-divider {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #cbd5e1;
    flex-shrink: 0;
}

.dashboard-hero__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.625rem;
}

/* KPI Row */

.dashboard-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
}

.dashboard-kpi {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dashboard-kpi__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.dashboard-kpi__icon--success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.dashboard-kpi__icon--warning {
    background: rgba(255, 193, 7, 0.15);
    color: #cc9a06;
}

.dashboard-kpi__icon--danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.dashboard-kpi__icon--primary {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.dashboard-kpi__body {
    min-width: 0;
}

.dashboard-kpi__label {
    font-size: 0.6875rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-kpi__value {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.letter-spacing-wide {
    letter-spacing: 0.06em;
}

.dashboard-band-card__link:hover .card-title,
.dashboard-band-card__link:focus .card-title {
    text-decoration: underline;
}

.dashboard-band-card__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.dashboard-band-card__meta {
    min-width: 0;
}

.dashboard-band-card__meta .card-title {
    margin-bottom: 0.25rem;
}

.overview-hero {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.overview-band-card {
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.overview-band-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

.overview-band-card--recent {
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.08) !important;
}

.overview-band-card--showroom {
    background: linear-gradient(180deg, rgba(13, 202, 240, 0.05) 0%, rgba(255,255,255,1) 100%);
}

.overview-band-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: .9rem;
}

.overview-band-card__fact,
.overview-band-card__meta-block {
    padding: .75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: .9rem;
    background: rgba(248, 250, 252, 0.8);
}

.overview-band-card__fact-label {
    display: block;
    font-size: .75rem;
    color: #64748b;
    margin-bottom: .25rem;
}

.overview-band-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.overview-band-card__chips--status {
    gap: .5rem;
}

.overview-status-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
}

.overview-status-chip--success {
    background: rgba(25, 135, 84, .12);
    border-color: rgba(25, 135, 84, .22);
    color: #146c43;
}

.overview-status-chip--primary {
    background: rgba(13, 110, 253, .12);
    border-color: rgba(13, 110, 253, .22);
    color: #0a58ca;
}

.overview-status-chip--secondary {
    background: rgba(108, 117, 125, .12);
    border-color: rgba(108, 117, 125, .22);
    color: #495057;
}

.overview-status-chip--warning {
    background: rgba(255, 193, 7, .18);
    border-color: rgba(255, 193, 7, .3);
    color: #997404;
}

.overview-status-chip--danger {
    background: rgba(220, 53, 69, .12);
    border-color: rgba(220, 53, 69, .22);
    color: #b02a37;
}

.overview-status-chip--info {
    background: rgba(13, 202, 240, .14);
    border-color: rgba(13, 202, 240, .24);
    color: #087990;
}

.overview-status-chip--light {
    background: rgba(248, 249, 250, 1);
    border-color: rgba(15, 23, 42, .12);
    color: #475569;
}

@media (max-width: 767.98px) {
    .main-content > .d-flex.justify-content-between.align-items-center.mb-4,
    .main-content > .d-flex.justify-content-between.align-items-start.mb-4,
    .main-content > .d-flex.justify-content-between.align-items-center.mb-3 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .main-content > .d-flex.justify-content-between.align-items-center.mb-4 > *,
    .main-content > .d-flex.justify-content-between.align-items-start.mb-4 > *,
    .main-content > .d-flex.justify-content-between.align-items-center.mb-3 > * {
        min-width: 0;
    }

    .main-content > .d-flex.justify-content-between.align-items-center.mb-4 > :last-child,
    .main-content > .d-flex.justify-content-between.align-items-start.mb-4 > :last-child,
    .main-content > .d-flex.justify-content-between.align-items-center.mb-3 > :last-child {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .main-content > .d-flex.justify-content-between.align-items-center.mb-4 > :last-child > *,
    .main-content > .d-flex.justify-content-between.align-items-start.mb-4 > :last-child > *,
    .main-content > .d-flex.justify-content-between.align-items-center.mb-3 > :last-child > * {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: min(12rem, 100%);
    }

    .main-content > .d-flex.justify-content-between.align-items-center.mb-4 > :last-child .btn,
    .main-content > .d-flex.justify-content-between.align-items-start.mb-4 > :last-child .btn,
    .main-content > .d-flex.justify-content-between.align-items-center.mb-3 > :last-child .btn {
        width: 100%;
    }

    .page-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    /* Dashboard hero mobile */
    .dashboard-hero-banner {
        padding: 1rem;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }

    .dashboard-hero {
        gap: 0.875rem;
        margin-bottom: 1rem;
    }

    .dashboard-hero .band-identity__avatar {
        width: 3.25rem;
        height: 3.25rem;
    }

    .dashboard-hero .band-identity__fallback {
        font-size: 1rem;
    }

    .dashboard-hero__title {
        font-size: 1.25rem;
    }

    .dashboard-hero__actions {
        flex-wrap: wrap;
    }

    .dashboard-hero__actions .btn {
        flex: 1 1 auto;
    }

    .dashboard-kpi-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .dashboard-kpi {
        padding: 0.625rem 0.75rem;
    }

    .dashboard-kpi__icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    .dashboard-kpi__value {
        font-size: 0.875rem;
    }

    .page-header__title,
    .page-header__actions {
        flex-basis: 100%;
        width: 100%;
    }

    .page-header__actions {
        justify-content: stretch;
    }

    .page-header__actions > *,
    .responsive-actions > *,
    .page-header__actions form,
    .responsive-actions form {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: min(12rem, 100%);
    }

    .page-header__actions .btn,
    .page-header__actions form .btn,
    .responsive-actions .btn,
    .responsive-actions form .btn {
        width: 100%;
    }

    .filter-toolbar__submit,
    .form-actions {
        width: 100%;
    }

    .filter-toolbar__submit > *,
    .form-actions > * {
        flex: 1 1 100%;
    }

    .main-content .card-header.d-flex,
    .main-content .list-group-item.d-flex {
        flex-wrap: wrap;
        align-items: flex-start !important;
        gap: 0.5rem 0.75rem;
    }

    .main-content .card-header.d-flex > *,
    .main-content .list-group-item.d-flex > * {
        min-width: 0;
    }

    .main-content .card-header.d-flex .btn,
    .main-content .card-header.d-flex form,
    .main-content .list-group-item.d-flex .btn,
    .main-content .list-group-item.d-flex form {
        flex: 1 1 auto;
    }

    .main-content .card-header.d-flex .btn,
    .main-content .card-header.d-flex form .btn,
    .main-content .list-group-item.d-flex .btn,
    .main-content .list-group-item.d-flex form .btn {
        width: 100%;
    }

    .main-content .table-responsive {
        margin-inline: calc(var(--app-shell-gap-mobile) * -1);
        padding-inline: var(--app-shell-gap-mobile);
    }

    .main-content .table-responsive > .table {
        min-width: max-content;
    }

    .responsive-dropdown-menu {
        width: calc(100vw - 1.5rem);
        min-width: calc(100vw - 1.5rem) !important;
        max-width: calc(100vw - 1.5rem);
    }

    /* App header mobile */
    .app-header__brand .band-identity__text {
        max-width: min(10rem, calc(100vw - 12rem));
    }

    .app-header__right .dropdown-menu {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
        right: -0.5rem !important;
    }

    .dropdown-item,
    .dropdown-item-text {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .dropdown-menu {
        max-width: calc(100vw - 1rem);
    }

    .band-logo-panel__preview {
        width: 100%;
        min-width: 0;
    }

    .modal-header {
        align-items: flex-start;
        gap: 0.5rem;
    }

    .modal-title {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .modal-footer {
        justify-content: stretch;
        gap: 0.5rem;
    }

    .modal-footer > * {
        flex: 1 1 100%;
        margin: 0 !important;
    }

    .modal-body .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .modal-body .d-flex.gap-2 > * {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .overview-band-card__facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .main-content > .d-flex.justify-content-between.align-items-center.mb-4 > :last-child > *,
    .main-content > .d-flex.justify-content-between.align-items-start.mb-4 > :last-child > *,
    .main-content > .d-flex.justify-content-between.align-items-center.mb-3 > :last-child > *,
    .page-header__actions > *,
    .responsive-actions > *,
    .page-header__actions form,
    .responsive-actions form,
    .modal-body .d-flex.gap-2 > * {
        flex-basis: 100%;
        min-width: 0;
    }
}