/* Premium backoffice layer: shared admin and moderator operational surfaces. */

:root {
    --bo-shell-max: 1400px;
    --bo-gutter: clamp(0.85rem, 2vw, 1.6rem);
    --bo-bg: #f4f6f8;
    --bo-surface: #ffffff;
    --bo-surface-soft: #f7f9fc;
    --bo-surface-strong: #eef2f7;
    --bo-border: #dce2ea;
    --bo-border-strong: #c7d0dc;
    --bo-text: #172033;
    --bo-muted: #667085;
    --bo-primary: #991f24;
    --bo-primary-strong: #74161a;
    --bo-navy: #172033;
    --bo-blue: #2563eb;
    --bo-green: #087f5b;
    --bo-amber: #b45309;
    --bo-red: #c62828;
    --bo-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --bo-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

body.mk-shell-backoffice {
    background:
        linear-gradient(180deg, rgba(153, 31, 36, 0.045), transparent 230px),
        var(--bo-bg) !important;
    color: var(--bo-text);
}

.mk-shell-backoffice *,
.mk-shell-backoffice *::before,
.mk-shell-backoffice *::after {
    box-sizing: border-box;
}

.mk-shell-backoffice :is(.admin-container, .modcp-container) {
    width: min(calc(100% - (var(--bo-gutter) * 2)), var(--bo-shell-max)) !important;
    max-width: var(--bo-shell-max) !important;
    margin: 1.35rem auto 2.5rem !important;
    padding: 0 !important;
}

.mk-shell-backoffice :is(
    .admin-users-container,
    .admin-settings-container,
    .admin-chat-rooms-container,
    .admin-chat-container,
    .admin-forum-container,
    .admin-doc-cats-container,
    .admin-docs-container,
    .updates-admin,
    .taxonomy-admin,
    .content-report-admin,
    .security-admin,
    .admin-rank-packages-container,
    .admin-becayis-page,
    .mod-documents-container,
    .mod-content-report-admin,
    .mod-signals-container
) {
    width: min(calc(100% - (var(--bo-gutter) * 2)), var(--bo-shell-max)) !important;
    max-width: var(--bo-shell-max) !important;
    margin: 1.35rem auto 2.5rem !important;
    padding-inline: 0 !important;
}

.mk-shell-backoffice :is(.admin-header, .modcp-header) {
    position: relative;
    isolation: isolate;
    min-height: 142px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 1.25rem !important;
    margin: 0 0 1rem !important;
    padding: 1.35rem 1.5rem !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.09), transparent 31%),
        linear-gradient(120deg, #172033 0%, #252b37 54%, #7f1d24 100%) !important;
    color: #fff !important;
    box-shadow: var(--bo-shadow) !important;
}

.mk-shell-backoffice .modcp-header {
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.09), transparent 31%),
        linear-gradient(120deg, #172033 0%, #243044 58%, #7b4a16 100%) !important;
}

.mk-shell-backoffice :is(.admin-header, .modcp-header)::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    z-index: -1;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6);
    opacity: 0.8;
}

.mk-shell-backoffice :is(.admin-header, .modcp-header) .header-content {
    min-width: 0;
}

.mk-shell-backoffice .backoffice-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin: 0 0 0.35rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mk-shell-backoffice :is(.admin-header, .modcp-header) h1 {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(1.7rem, 2.8vw, 2.35rem) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
}

.mk-shell-backoffice :is(.admin-header, .modcp-header) p {
    margin: 0.5rem 0 0 !important;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 0.94rem !important;
    line-height: 1.5 !important;
}

.mk-shell-backoffice :is(.admin-header, .modcp-header) p strong {
    color: #fff;
}

.mk-shell-backoffice :is(.admin-header, .modcp-header) .header-avatar {
    position: static !important;
    display: grid !important;
    place-items: center;
    width: 68px !important;
    height: 68px !important;
    min-width: 68px;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    overflow: hidden;
}

.mk-shell-backoffice :is(.admin-header, .modcp-header) .header-avatar :is(img, .avatar-placeholder) {
    width: 54px !important;
    height: 54px !important;
    border-radius: 7px !important;
    object-fit: cover;
}

.mk-shell-backoffice :is(
    .page-header,
    .admin-page-head,
    .admin-page-hero,
    .updates-admin-hero,
    .taxonomy-hero,
    .report-hero,
    .security-hero,
    .bk-hero
) {
    min-height: 128px !important;
    border-radius: 8px !important;
    box-shadow: var(--bo-shadow) !important;
}

.mk-shell-backoffice :is(.stats-grid, .updates-admin-stats, .report-stats, .bk-stats) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    margin: 0 0 1rem !important;
}

.mk-shell-backoffice :is(.stat-card, .stats-grid > div, .updates-admin-stats > div, .report-stats > div, .bks) {
    position: relative !important;
    min-width: 0;
    min-height: 84px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.85rem !important;
    border: 1px solid var(--bo-border) !important;
    border-radius: 8px !important;
    background: var(--bo-surface) !important;
    box-shadow: var(--bo-shadow-sm) !important;
    overflow: hidden;
}

.mk-shell-backoffice :is(.stat-card, .stats-grid > div):hover {
    transform: none !important;
    border-color: var(--bo-border-strong) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07) !important;
}

.mk-shell-backoffice .stat-icon {
    position: static !important;
    width: 42px !important;
    height: 42px !important;
    display: inline-grid !important;
    place-items: center;
    border-radius: 7px !important;
    background: #eef4ff !important;
    color: var(--bo-blue) !important;
    font-size: 1.05rem !important;
}

.mk-shell-backoffice .stat-card.urgent .stat-icon {
    background: #fff3e8 !important;
    color: var(--bo-amber) !important;
}

.mk-shell-backoffice .stat-content {
    min-width: 0;
}

.mk-shell-backoffice :is(.stat-content h3, .stat-card h3, .stats-grid strong) {
    margin: 0 0 0.15rem !important;
    color: var(--bo-text) !important;
    font-size: 1.45rem !important;
    line-height: 1 !important;
}

.mk-shell-backoffice :is(.stat-content p, .stats-grid span) {
    margin: 0 !important;
    color: var(--bo-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.mk-shell-backoffice .stat-action {
    position: static !important;
    inset: auto !important;
    align-self: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 70px !important;
    max-width: 88px !important;
    min-height: 34px !important;
    padding: 0.45rem 0.6rem !important;
    border: 1px solid #fecaca !important;
    border-radius: 6px !important;
    background: #fff5f5 !important;
    color: var(--bo-red) !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    white-space: normal !important;
}

.mk-shell-backoffice .stat-action:hover {
    border-color: var(--bo-red) !important;
    background: var(--bo-red) !important;
    color: #fff !important;
}

.mk-shell-backoffice :is(.command-center, .mod-command-center) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.72fr) !important;
    align-items: center !important;
    gap: 1rem !important;
    margin: 0 0 1.25rem !important;
    padding: 1.1rem !important;
    border: 1px solid var(--bo-border) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(110deg, rgba(153, 31, 36, 0.055), transparent 38%),
        var(--bo-surface) !important;
    box-shadow: var(--bo-shadow-sm) !important;
}

.mk-shell-backoffice .mod-command-center {
    background:
        linear-gradient(110deg, rgba(37, 99, 235, 0.055), transparent 38%),
        var(--bo-surface) !important;
}

.mk-shell-backoffice :is(.command-copy h2, .mod-command-center h2) {
    margin: 0 !important;
    color: var(--bo-text) !important;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem) !important;
    line-height: 1.2 !important;
}

.mk-shell-backoffice :is(.command-copy p, .mod-command-center p) {
    margin: 0.4rem 0 0 !important;
    color: var(--bo-muted) !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
}

.mk-shell-backoffice :is(.admin-kicker.dark, .mod-kicker) {
    margin-bottom: 0.28rem !important;
    color: var(--bo-primary-strong) !important;
    font-size: 0.69rem !important;
    letter-spacing: 0 !important;
}

.mk-shell-backoffice :is(.attention-grid, .mod-priority-grid) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
}

.mk-shell-backoffice :is(.attention-card, .mod-priority-card) {
    min-width: 0;
    min-height: 64px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.2rem 0.6rem !important;
    padding: 0.65rem 0.75rem !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    transform: none !important;
}

.mk-shell-backoffice :is(.attention-card, .mod-priority-card) strong {
    grid-row: auto !important;
    align-self: center;
    font-size: 1.35rem !important;
    line-height: 1 !important;
}

.mk-shell-backoffice .attention-card small {
    grid-column: 1 / -1;
    overflow: hidden;
    color: var(--bo-muted) !important;
    font-size: 0.72rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mk-shell-backoffice :is(.admin-module-map, .mod-module-map) {
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mk-shell-backoffice :is(.quick-head, .mod-map-head) {
    min-height: 52px;
    margin: 0 0 0.75rem !important;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid var(--bo-border);
}

.mk-shell-backoffice :is(.quick-head h2, .mod-map-head h2) {
    margin: 0 !important;
    color: var(--bo-text) !important;
    font-size: 1.35rem !important;
}

.mk-shell-backoffice .quick-primary {
    min-height: 38px;
    padding: 0.55rem 0.8rem !important;
    border-radius: 6px !important;
    background: var(--bo-primary) !important;
}

.mk-shell-backoffice :is(.module-section, .mod-module-section) {
    margin: 0 0 1rem !important;
    padding: 0 !important;
    border: 0 !important;
}

.mk-shell-backoffice :is(.section-head, .mod-section-head) {
    margin-bottom: 0.65rem;
}

.mk-shell-backoffice :is(.section-head h3, .mod-section-head h3) {
    margin: 0 !important;
    color: var(--bo-text) !important;
    font-size: 1.02rem !important;
}

.mk-shell-backoffice :is(.section-head p, .mod-section-head p) {
    margin: 0.25rem 0 0 !important;
    color: var(--bo-muted) !important;
    font-size: 0.82rem !important;
}

.mk-shell-backoffice :is(.module-grid, .mod-module-grid) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.7rem !important;
}

.mk-shell-backoffice :is(.module-card, .mod-module-card) {
    min-width: 0;
    min-height: 94px !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    align-content: center !important;
    gap: 0.7rem !important;
    padding: 0.75rem 3.2rem 0.75rem 0.75rem !important;
    border: 1px solid var(--bo-border) !important;
    border-radius: 8px !important;
    background: var(--bo-surface) !important;
    color: var(--bo-text) !important;
    box-shadow: var(--bo-shadow-sm) !important;
    transform: none !important;
}

.mk-shell-backoffice :is(.module-card, .mod-module-card):hover {
    border-color: var(--bo-border-strong) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-1px) !important;
}

.mk-shell-backoffice :is(.module-icon, .mod-module-icon) {
    width: 40px !important;
    height: 40px !important;
    border-radius: 7px !important;
    background: #edf3ff !important;
    color: var(--bo-blue) !important;
}

.mk-shell-backoffice :is(.module-icon, .mod-module-icon) svg {
    width: 20px;
    height: 20px;
}

.mk-shell-backoffice :is(.module-copy, .mod-module-copy) {
    min-width: 0;
}

.mk-shell-backoffice :is(.module-copy strong, .mod-module-copy strong) {
    display: block;
    margin: 0 0 0.2rem !important;
    color: var(--bo-text) !important;
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
}

.mk-shell-backoffice :is(.module-copy small, .mod-module-copy small) {
    display: -webkit-box !important;
    overflow: hidden;
    color: var(--bo-muted) !important;
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mk-shell-backoffice :is(.module-badge, .mod-module-badge) {
    top: 0.65rem !important;
    right: 0.65rem !important;
    min-width: 25px !important;
    height: 25px !important;
    padding: 0 0.38rem !important;
    border-radius: 999px !important;
    background: var(--bo-navy) !important;
    color: #fff !important;
    font-size: 0.7rem !important;
}

.mk-shell-backoffice :is(.module-card.warning, .mod-module-card.warning) :is(.module-icon, .mod-module-icon) {
    background: #fff7e6 !important;
    color: var(--bo-amber) !important;
}

.mk-shell-backoffice :is(.module-card.danger, .mod-module-card.danger) :is(.module-icon, .mod-module-icon) {
    background: #fff0f0 !important;
    color: var(--bo-red) !important;
}

.mk-shell-backoffice :is(.module-card.success, .mod-module-card.success) :is(.module-icon, .mod-module-icon) {
    background: #eafbf4 !important;
    color: var(--bo-green) !important;
}

.mk-shell-backoffice :is(.admin-section-nav, .mod-section-nav) {
    gap: 0.55rem !important;
    margin: 0 0 1rem !important;
}

.mk-shell-backoffice .admin-section-nav a {
    min-height: 60px !important;
    padding: 0.7rem 0.8rem !important;
    border-radius: 8px !important;
}

.mk-shell-backoffice :is(
    .section,
    .form-card,
    .admin-card,
    .tips-card,
    .popular-card,
    .taxonomy-form-card,
    .taxonomy-list-card,
    .sources-panel,
    .source-add-panel,
    .categories-section,
    .table-card,
    .permissions-card,
    .review-card,
    .queue-card
) {
    border-radius: 8px !important;
    box-shadow: var(--bo-shadow-sm) !important;
}

.mk-shell-backoffice :is(.filter-bar, .filter-form, .post-filter-form, .comment-filter-form, .tag-filter-form, .bk-tools, .toolbar, .admin-toolbar) {
    gap: 0.55rem !important;
    padding: 0.75rem !important;
    border: 1px solid var(--bo-border) !important;
    border-radius: 8px !important;
    background: var(--bo-surface) !important;
    box-shadow: var(--bo-shadow-sm) !important;
}

.mk-shell-backoffice :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 42px;
    border: 1px solid var(--bo-border-strong) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: var(--bo-text) !important;
}

.mk-shell-backoffice textarea {
    min-height: 112px;
}

.mk-shell-backoffice :is(input, select, textarea):focus {
    border-color: var(--bo-primary) !important;
    box-shadow: 0 0 0 3px rgba(153, 31, 36, 0.12) !important;
}

.mk-shell-backoffice :is(
    .btn,
    button,
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-submit,
    .btn-table,
    .btn-card,
    .action-btn,
    .hero-action,
    .quick-primary
) {
    min-height: 38px;
    max-width: 100%;
    border-radius: 6px !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
}

.mk-shell-backoffice :is(.status-badge, .count-badge, .quality-badge, .type-badge, .tier-badge, .stat-badge, .action-badge) {
    max-width: 100%;
    border-radius: 999px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mk-shell-backoffice :is(.docs-table, .categories-table, .users-table, .rooms-table, .taxonomy-table-wrap, .table-responsive, .bk-table-wrap, .table-card-flush) {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    border: 1px solid var(--bo-border);
    border-radius: 8px !important;
    background: var(--bo-surface);
    -webkit-overflow-scrolling: touch;
}

.mk-shell-backoffice table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.mk-shell-backoffice :is(.admin-table, .taxonomy-table, .bk-table, .docs-table table, .users-table table, .rooms-table table) {
    min-width: 760px;
}

.mk-shell-backoffice th {
    padding: 0.72rem 0.75rem !important;
    border-bottom: 1px solid var(--bo-border-strong) !important;
    background: var(--bo-surface-soft) !important;
    color: var(--bo-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
    white-space: nowrap;
}

.mk-shell-backoffice td {
    padding: 0.75rem !important;
    border-bottom: 1px solid var(--bo-border) !important;
    color: var(--bo-text);
    font-size: 0.84rem;
    vertical-align: middle;
}

.mk-shell-backoffice tbody tr:hover {
    background: #fafbfd;
}

.mk-shell-backoffice :is(.row-actions, .table-actions, .actions, .modal-actions) {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.mk-shell-backoffice :is(.row-actions a, .row-actions button, .table-actions a, .table-actions button, .btn-table, .btn-sm) {
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 0.44rem 0.6rem !important;
    font-size: 0.74rem !important;
    white-space: normal !important;
}

.mk-shell-backoffice :is(.empty-state, .empty-card) {
    min-height: 120px;
    border-radius: 8px !important;
}

.mk-shell-backoffice :is(.legacy-actions, .mod-index-page .quick-actions, .mod-index-page .permissions-card) {
    display: none !important;
}

@media (max-width: 1180px) {
    .mk-shell-backoffice :is(.module-grid, .mod-module-grid) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .mk-shell-backoffice :is(.stats-grid, .updates-admin-stats, .report-stats, .bk-stats) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .mk-shell-backoffice :is(.admin-container, .modcp-container) {
        width: min(calc(100% - 1.25rem), var(--bo-shell-max)) !important;
        margin-top: 0.85rem !important;
    }

    .mk-shell-backoffice :is(.admin-header, .modcp-header) {
        min-height: 124px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 1.15rem !important;
    }

    .mk-shell-backoffice :is(.admin-header, .modcp-header) .header-avatar {
        display: none !important;
    }

    .mk-shell-backoffice :is(.command-center, .mod-command-center) {
        grid-template-columns: 1fr !important;
    }

    .mk-shell-backoffice :is(.module-grid, .mod-module-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .mk-shell-backoffice :is(.stats-grid, .updates-admin-stats, .report-stats, .bk-stats) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .mk-shell-backoffice .admin-section-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .mk-shell-backoffice :is(.admin-container, .modcp-container),
    .mk-shell-backoffice :is(
        .admin-users-container,
        .admin-settings-container,
        .admin-chat-rooms-container,
        .admin-chat-container,
        .admin-forum-container,
        .admin-doc-cats-container,
        .admin-docs-container,
        .updates-admin,
        .taxonomy-admin,
        .content-report-admin,
        .security-admin,
        .admin-rank-packages-container,
        .admin-becayis-page,
        .mod-documents-container,
        .mod-content-report-admin,
        .mod-signals-container
    ) {
        width: min(calc(100% - 0.85rem), var(--bo-shell-max)) !important;
    }

    .mk-shell-backoffice :is(.admin-header, .modcp-header) h1 {
        font-size: 1.55rem !important;
    }

    .mk-shell-backoffice :is(.attention-grid, .mod-priority-grid) {
        grid-template-columns: 1fr !important;
    }

    .mk-shell-backoffice :is(.module-grid, .mod-module-grid) {
        grid-template-columns: 1fr !important;
    }

    .mk-shell-backoffice :is(.stats-grid, .updates-admin-stats, .report-stats, .bk-stats) {
        grid-template-columns: 1fr !important;
    }

    .mk-shell-backoffice :is(.stat-card, .stats-grid > div) {
        min-height: 74px !important;
        grid-template-columns: 38px minmax(0, 1fr) auto !important;
        padding: 0.7rem !important;
    }

    .mk-shell-backoffice .stat-icon {
        width: 38px !important;
        height: 38px !important;
    }

    .mk-shell-backoffice :is(.quick-head, .mod-map-head, .section-header, .list-head) {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .mk-shell-backoffice :is(.quick-primary, .quick-head > a, .mod-map-head > a) {
        width: 100%;
    }

    .mk-shell-backoffice .admin-section-nav {
        grid-template-columns: 1fr !important;
    }

    .mk-shell-backoffice :is(.filter-bar, .filter-form, .post-filter-form, .comment-filter-form, .tag-filter-form, .bk-tools, .toolbar, .admin-toolbar) {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .mk-shell-backoffice :is(.filter-bar, .filter-form, .post-filter-form, .comment-filter-form, .tag-filter-form, .bk-tools, .toolbar, .admin-toolbar) > * {
        width: 100% !important;
    }
}


/* Table and queue overflow hardening for legacy backoffice screens. */
.mk-shell-backoffice :is(
    .migration-table-wrap,
    .table-scroll,
    .users-table-wrapper,
    .admin-form-card:has(> table),
    .dash-card:has(> table)
) {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    border-radius: 8px !important;
    -webkit-overflow-scrolling: touch;
}

.mk-shell-backoffice :is(.migration-table-wrap, .table-scroll, .users-table-wrapper) > table,
.mk-shell-backoffice :is(.admin-form-card, .dash-card) > table {
    min-width: 760px;
}

.mk-shell-backoffice :is(.filters-bar, .report-filter-card, .report-ops-brief, .mod-doc-brief) {
    border: 1px solid var(--bo-border) !important;
    border-radius: 8px !important;
    background: var(--bo-surface) !important;
    box-shadow: var(--bo-shadow-sm) !important;
}

.mk-shell-backoffice :is(.pending-item, .report-item, .mod-comment-card, .topic-card) {
    border-radius: 8px !important;
}

@media (max-width: 640px) {
    .mk-shell-backoffice :is(.pending-actions, .report-actions, .mod-comment-actions) {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .mk-shell-backoffice :is(.pending-actions, .report-actions, .mod-comment-actions) > * {
        width: 100% !important;
    }
}
