/* Global shell layout — must not rely on Blazor scoped CSS */

.erp-shell {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.06), transparent 28%),
        var(--bg-page);
}

.erp-sidebar-backdrop {
    display: none;
}

.erp-sidebar {
    --sidebar-footer-pad-x: 16px;
    --sidebar-footer-pad-y: 16px;
    width: var(--sidebar-width);
    flex-shrink: 0;
    align-self: stretch;
    background: #fff;
    border-right: 1px solid rgba(230, 226, 240, 0.95);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    position: relative;
    z-index: 1040;
    transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.erp-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--space-3);
    min-height: var(--topbar-height);
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.erp-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
    min-width: 0;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.erp-brand-link:hover {
    opacity: 0.88;
    color: var(--text-main);
}

.erp-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--brand-600), #7C3AED);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}

.erp-brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.erp-sidebar-footer {
    margin-top: auto;
    padding: var(--space-3);
    border-top: 1px solid var(--border-soft);
}

.erp-sidebar-bottom {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding:
        12px
        var(--sidebar-footer-pad-x)
        calc(var(--sidebar-footer-pad-y) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(248, 247, 252, 0.96));
}

.erp-sidebar-footer-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.erp-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
    padding: 4px 4px 2px;
}

.erp-sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex: 0 0 36px;
    line-height: 1;
}

.erp-sidebar-profile-meta {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.erp-sidebar-profile-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: normal;
}

.erp-sidebar-profile-role {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: normal;
}

.erp-sidebar-settings-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    width: 100%;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.erp-sidebar-settings-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.erp-sidebar-settings-label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-sidebar-settings-chevron {
    flex-shrink: 0;
    color: var(--text-secondary);
    opacity: 0.7;
}

.erp-sidebar-settings-link:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--text-main);
}

.erp-sidebar-settings-link:hover .erp-sidebar-settings-icon,
.erp-sidebar-settings-link:hover .erp-sidebar-settings-chevron {
    color: var(--primary);
}

.erp-sidebar-settings-link.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.erp-sidebar-settings-link.active .erp-sidebar-settings-icon,
.erp-sidebar-settings-link.active .erp-sidebar-settings-chevron {
    color: var(--primary);
}

.erp-shell.sidebar-collapsed .erp-sidebar-profile-meta,
.erp-shell.sidebar-collapsed .erp-sidebar-settings-label,
.erp-shell.sidebar-collapsed .erp-sidebar-settings-chevron {
    display: none;
}

.erp-shell.sidebar-collapsed .erp-sidebar-settings-link {
    justify-content: center;
    padding: 0;
    width: 46px;
    margin-inline: auto;
}

.erp-shell.sidebar-collapsed .erp-sidebar-profile {
    justify-content: center;
}

.erp-shell.sidebar-collapsed .erp-sidebar-bottom {
    padding-inline: 10px;
}

.erp-sidebar-footer-mobile {
    padding-top: 2px;
}

/* Settings hub + workspace shells */
.settings-hub,
.workspace-shell {
    max-width: 880px;
}

.settings-hub-header,
.workspace-shell-header {
    margin-bottom: 1.25rem;
}

.settings-hub-back {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.settings-hub-back:hover {
    color: var(--primary);
}

.settings-hub-title,
.workspace-shell-title {
    margin: 0;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.settings-hub-subtitle,
.workspace-shell-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.workspace-shell-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.settings-hub-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-hub-card,
.workspace-nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(230, 226, 240, 0.9);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.settings-hub-card:hover,
.workspace-nav-card:hover {
    border-color: rgba(79, 70, 229, 0.28);
    box-shadow: 0 8px 24px rgba(28, 33, 40, 0.06);
    transform: translateY(-1px);
}

.settings-hub-card-icon,
.workspace-nav-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}

.settings-hub-card-body,
.workspace-nav-card-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-hub-card-title,
.workspace-nav-card-title {
    font-size: 0.975rem;
    font-weight: 650;
    color: var(--text-main);
}

.settings-hub-card-desc,
.workspace-nav-card-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.settings-hub-card-chevron,
.workspace-nav-card-chevron {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.workspace-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

@media (max-width: 991.98px) {
    .settings-hub-title,
    .workspace-shell-title {
        font-size: 1.35rem;
    }

    .workspace-nav-grid {
        grid-template-columns: 1fr;
    }
}

.erp-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.erp-topbar {
    min-height: 68px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-4);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(230, 226, 240, 0.95);
    position: relative;
    flex-shrink: 0;
    z-index: 1030;
}

.erp-topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
}

.erp-topbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.erp-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
    min-width: 0;
    flex-wrap: wrap;
}

.erp-topbar-search {
    min-width: 220px;
    max-width: 300px;
}

.erp-topbar-title-wrap {
    min-width: 0;
}

.erp-topbar-kicker {
    font-size: 0.6875rem;
    color: var(--brand-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.erp-topbar-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-context-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--brand-50);
    border: 1px solid #DDD6FE;
    color: #4338CA;
    font-size: 0.8125rem;
    font-weight: 650;
    max-width: 220px;
}

.erp-context-pill span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-context-pill-wb {
    background: #F0FDF4;
    border-color: #BBF7D0;
    color: #166534;
}

.erp-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-5) var(--space-4) var(--space-7);
    width: 100%;
}

.erp-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255,255,255,0.9);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    cursor: pointer;
    padding: 0;
}

.erp-icon-btn:hover {
    background: var(--brand-50);
    color: var(--brand-600);
    border-color: #C7D2FE;
    transform: translateY(-1px);
}

.erp-logout-btn:hover {
    color: #DC2626;
    background: #FEF2F2;
    border-color: #FECACA;
}

.erp-notify-btn {
    position: relative;
}

.erp-notify-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #EF4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.erp-notify-wrap,
.erp-user-wrap {
    position: relative;
}

.erp-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: transparent;
}

.erp-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1050;
    width: min(360px, calc(100vw - 24px));
    max-height: min(70vh, 480px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.erp-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
    font-weight: 700;
    font-size: 0.875rem;
}

.erp-dropdown-empty {
    padding: 20px 14px;
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
}

.erp-notify-list {
    display: flex;
    flex-direction: column;
}

.erp-notify-item {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
}

.erp-notify-item:hover {
    background: #f8fafc;
}

.erp-notify-item-title {
    font-weight: 700;
    font-size: 0.8125rem;
}

.erp-notify-item-desc {
    margin-top: 2px;
    font-size: 0.75rem;
    color: #6b7280;
}

.erp-notify-item-meta {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.6875rem;
    color: var(--brand-600);
    font-weight: 600;
}

.erp-user-dropdown {
    width: min(280px, calc(100vw - 24px));
}

.erp-user-dropdown-info {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
}

.erp-dropdown-action {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 12px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.erp-dropdown-action-danger {
    color: #DC2626;
}

.erp-dropdown-action-danger:hover {
    background: #FEF2F2;
}

.erp-user-logout {
    display: block;
    margin: 0;
}

.erp-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255,255,255,0.92);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.erp-user-chip:hover {
    background: #fff;
    border-color: #C7D2FE;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.1);
}

.erp-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--brand-100), #DDD6FE);
    color: var(--brand-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.erp-user-meta {
    min-width: 0;
    text-align: left;
}

.erp-user-name {
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.erp-user-role {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.erp-user-chevron {
    color: var(--text-secondary);
}

.erp-shell.sidebar-collapsed .erp-sidebar {
    width: var(--sidebar-collapsed-width);
}

.erp-shell.sidebar-collapsed .erp-brand-text {
    display: none;
}

/* Navigation */
.app-nav-scrollable {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-3) var(--space-2) var(--space-3);
}

.app-nav-section {
    margin-bottom: 8px;
}

.app-nav-section-settings {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-soft);
}

.app-nav-link,
.app-nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    width: 100%;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    font-family: inherit;
}

.app-nav-group-toggle {
    justify-content: space-between;
}

.app-nav-group-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.app-nav-link:hover,
.app-nav-group-toggle:hover {
    background: var(--brand-50);
    color: var(--text-main);
    transform: translateX(2px);
}

.app-nav-link.active {
    background: linear-gradient(135deg, var(--brand-600), #6366F1);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.28);
}

.app-nav-link.active .app-icon {
    color: #fff;
}

.app-nav-sublink {
    min-height: 38px;
    padding-left: 42px;
    font-size: 0.8125rem;
    font-weight: 550;
}

.app-nav-nested {
    padding-left: 58px;
}

.app-nav-sublink.active {
    background: var(--brand-100);
    color: var(--brand-600);
    font-weight: 700;
}

.app-nav-subitems {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    margin-bottom: 6px;
    padding-left: 4px;
}

.app-nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-nav-chevron {
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.app-nav-group-toggle.expanded .app-nav-chevron {
    transform: rotate(0deg);
}

.erp-shell.sidebar-collapsed .app-nav-label,
.erp-shell.sidebar-collapsed .app-nav-chevron,
.erp-shell.sidebar-collapsed .app-nav-subitems {
    display: none;
}

.erp-shell.sidebar-collapsed .app-nav-link,
.erp-shell.sidebar-collapsed .app-nav-group-toggle {
    justify-content: center;
    padding: 0;
    width: 46px;
    margin-inline: auto;
}

.erp-shell.sidebar-collapsed .app-nav-group-left {
    justify-content: center;
}

@media (max-width: 1023.98px) {
    .erp-topbar {
        grid-template-columns: 1fr;
    }

    .erp-topbar-center {
        display: none;
    }

    .erp-shell.nav-open {
        overflow: hidden;
        height: 100dvh;
    }

    .erp-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(var(--sidebar-width), 86vw);
        height: 100dvh;
        max-height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: var(--shadow-soft);
        padding-bottom: 0;
    }

    .erp-sidebar-bottom {
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .erp-shell.nav-open .erp-sidebar {
        transform: translateX(0);
    }

    .erp-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1035;
        background: rgba(17, 24, 39, 0.35);
        backdrop-filter: blur(2px);
    }

    .erp-shell.nav-open .erp-sidebar-backdrop {
        display: block;
    }

    .erp-content {
        padding: var(--space-4) var(--space-3);
    }

    .erp-topbar {
        padding: var(--space-2) var(--space-3);
    }

    .erp-topbar-search {
        order: 3;
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}

/* Marketplace brand marks (WB / O / YM) */
.mp-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(79, 70, 229, 0.22);
    background: var(--primary-soft, rgba(79, 70, 229, 0.1));
    color: var(--primary, #4f46e5);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

.mp-brand-mark-sm {
    width: 28px;
    height: 28px;
    font-size: 0.6875rem;
    border-radius: 8px;
}

.mp-brand-mark-md {
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
}

.mp-brand-mark-lg {
    width: 44px;
    height: 44px;
    font-size: 0.9375rem;
    border-radius: 12px;
}

.mp-brand-mark[data-marketplace="ozon"] .mp-brand-mark-letters {
    font-size: 1.05em;
    font-weight: 800;
}

.mp-nav-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.mp-nav-back {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    width: fit-content;
}

.mp-nav-back:hover {
    color: var(--primary);
}

/* Hub cards */
.marketplace-hub-grid {
    max-width: 1100px;
}

.marketplace-hub-card {
    height: 100%;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(230, 226, 240, 0.9);
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.marketplace-hub-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.marketplace-hub-card-heading {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.marketplace-hub-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
}

.marketplace-hub-card-meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.marketplace-hub-card-sync {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.marketplace-hub-card-sync strong {
    color: var(--text-main);
    font-weight: 600;
}

.marketplace-account-card {
    border: 1px solid rgba(230, 226, 240, 0.9);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.94);
}

.mp-status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(107, 114, 128, 0.12);
    color: #4b5563;
}

.mp-status-ok {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.mp-status-warn {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}

.mp-status-error {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.mp-status-muted {
    background: rgba(107, 114, 128, 0.12);
    color: #6b7280;
}

.mp-inline-status {
    color: #b45309;
    font-weight: 550;
}

.mp-error-alert {
    border-radius: 12px;
    border: 1px solid rgba(230, 226, 240, 0.95);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.mp-error-alert-warning {
    border-color: rgba(217, 119, 6, 0.28);
}

.mp-error-alert-error {
    border-color: rgba(220, 38, 38, 0.22);
}

.mp-error-alert-main {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.mp-error-alert-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
    background: #d97706;
}

.mp-error-alert-error .mp-error-alert-dot {
    background: #dc2626;
}

.mp-error-alert-title {
    font-weight: 650;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.mp-error-alert-desc,
.mp-error-alert-action {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mp-error-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.mp-error-alert-tech {
    margin-top: 0.65rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.mp-error-alert-tech-body {
    margin: 0.4rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.04);
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.75rem;
    color: #4b5563;
}

.btn-danger-outline {
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.35);
    background: transparent;
}

.btn-danger-outline:hover {
    background: rgba(185, 28, 28, 0.06);
    color: #991b1b;
}

.mp-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(17, 24, 39, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mp-confirm-dialog {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
}

.settings-hub-extra {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(230, 226, 240, 0.95);
}

.settings-hub-extra-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
}

.settings-hub-extra-desc {
    margin: 0.25rem 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

@media (min-width: 1024px) and (max-width: 1366px) {
    .marketplace-hub-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .marketplace-hub-card {
        min-height: 11.5rem;
    }
}

@media (max-width: 991.98px) {
    .mp-nav-header .erp-breadcrumbs {
        display: none;
    }
}
