/*
 * Nexa_UI_Unification_Final_Cleanup_V1
 * Final cascade normalization layer for Public/Auth, User and Admin families.
 * CSS only. Existing markup, routes, IDs, data attributes and JavaScript contracts are preserved.
 */

body.nexa-ui-final-cleanup-v1 {
    --nexa-cleanup-bg: var(--nexa-ds-bg, #171a2b);
    --nexa-cleanup-bg-deep: var(--nexa-ds-bg-deep, #111426);
    --nexa-cleanup-surface: var(--nexa-ds-surface, #22263a);
    --nexa-cleanup-surface-2: var(--nexa-ds-surface-2, #292e45);
    --nexa-cleanup-surface-3: var(--nexa-ds-surface-3, #313750);
    --nexa-cleanup-border: var(--nexa-ds-border, rgba(255,255,255,.085));
    --nexa-cleanup-border-strong: var(--nexa-ds-border-strong, rgba(255,255,255,.14));
    --nexa-cleanup-divider: var(--nexa-ds-divider, rgba(255,255,255,.065));
    --nexa-cleanup-text: var(--nexa-ds-text, rgba(255,255,255,.94));
    --nexa-cleanup-text-soft: var(--nexa-ds-text-soft, rgba(255,255,255,.78));
    --nexa-cleanup-muted: var(--nexa-ds-muted, rgba(255,255,255,.60));
    --nexa-cleanup-subtle: var(--nexa-ds-subtle, rgba(255,255,255,.42));
    --nexa-cleanup-primary: var(--nexa-ds-primary, #a81eeb);
    --nexa-cleanup-primary-rgb: var(--nexa-ds-primary-rgb, 168,30,235);
    --nexa-cleanup-primary-alt: var(--nexa-ds-primary-alt, #7c4dff);
    --nexa-cleanup-success: var(--nexa-ds-success, #26c98a);
    --nexa-cleanup-warning: var(--nexa-ds-warning, #f6b94b);
    --nexa-cleanup-danger: var(--nexa-ds-danger, #ff5c72);
    --nexa-cleanup-info: var(--nexa-ds-info, #55b8ff);
    --nexa-cleanup-radius-sm: var(--nexa-ds-radius-sm, 10px);
    --nexa-cleanup-radius: var(--nexa-ds-radius-md, 14px);
    --nexa-cleanup-radius-lg: var(--nexa-ds-radius-lg, 20px);
    --nexa-cleanup-shadow: var(--nexa-ds-shadow-sm, 0 10px 28px rgba(0,0,0,.12));
    --nexa-cleanup-shadow-lg: var(--nexa-ds-shadow-md, 0 18px 46px rgba(0,0,0,.18));
    --nexa-cleanup-focus: var(--nexa-ds-focus, 0 0 0 4px rgba(168,30,235,.14));
    color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base consistency / accessibility
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1,
body.nexa-ui-final-cleanup-v1 :where(input, textarea, select, button) {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.nexa-ui-final-cleanup-v1 :where(*, *::before, *::after) {
    box-sizing: border-box;
}

body.nexa-ui-final-cleanup-v1 :where(img, svg, video, canvas) {
    max-width: 100%;
}

body.nexa-ui-final-cleanup-v1 :where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
    outline: 2px solid rgba(var(--nexa-cleanup-primary-rgb), .78) !important;
    outline-offset: 2px !important;
    box-shadow: var(--nexa-cleanup-focus) !important;
}

body.nexa-ui-final-cleanup-v1 :where(button, [role="button"], .btn, a.btn):not(:disabled) {
    cursor: pointer;
}

body.nexa-ui-final-cleanup-v1 :where(button, input, select, textarea):disabled,
body.nexa-ui-final-cleanup-v1 :where(.btn.disabled, .disabled[role="button"]) {
    cursor: not-allowed;
    opacity: .56;
}

body.nexa-ui-final-cleanup-v1 :where(hr, .dropdown-divider) {
    border-color: var(--nexa-cleanup-divider) !important;
    opacity: 1;
}

body.nexa-ui-final-cleanup-v1 :where(code, kbd, pre) {
    border-color: var(--nexa-cleanup-border) !important;
    color: #edd9ff;
    background: rgba(7, 10, 21, .62);
}

body.nexa-ui-final-cleanup-v1 :where(pre) {
    border: 1px solid var(--nexa-cleanup-border);
    border-radius: var(--nexa-cleanup-radius);
    padding: 14px 16px;
}

/* --------------------------------------------------------------------------
   Residual Bootstrap light utilities
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1 :where(.bg-white, .bg-light, .bg-body, .bg-body-secondary, .bg-body-tertiary) {
    background-color: var(--nexa-cleanup-surface) !important;
    color: var(--nexa-cleanup-text-soft) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.text-dark, .text-body, .text-black, .text-black-50) {
    color: var(--nexa-cleanup-text) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.text-muted, .text-secondary, .text-body-secondary) {
    color: var(--nexa-cleanup-muted) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.border, .border-top, .border-end, .border-bottom, .border-start, .border-light, .border-secondary) {
    border-color: var(--nexa-cleanup-border) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.shadow, .shadow-sm, .shadow-lg) {
    box-shadow: var(--nexa-cleanup-shadow) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.rounded) { border-radius: var(--nexa-cleanup-radius) !important; }
body.nexa-ui-final-cleanup-v1 :where(.rounded-3, .rounded-4, .rounded-5) { border-radius: var(--nexa-cleanup-radius-lg) !important; }

/* --------------------------------------------------------------------------
   Typography and links
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1 :where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    color: var(--nexa-cleanup-text);
    text-wrap: balance;
}

body.nexa-ui-final-cleanup-v1 :where(p, li, dd, .form-text, .small, small) {
    color: inherit;
}

body.nexa-ui-final-cleanup-v1 :where(a:not(.btn):not(.nav-link):not(.dropdown-item)) {
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

body.nexa-ui-final-cleanup-v1 :where(.link-dark, .link-secondary) {
    color: #dcb3f6 !important;
}

/* --------------------------------------------------------------------------
   Surfaces: cards / panels / wells / list groups
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1 :where(.card, .panel, .well, .widget, .box, .content-box, .profile-box, .dashboard-box) {
    border-color: var(--nexa-cleanup-border) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.card-header, .card-footer, .panel-heading, .panel-footer) {
    border-color: var(--nexa-cleanup-divider) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.list-group) {
    border-radius: var(--nexa-cleanup-radius) !important;
    overflow: hidden;
}

body.nexa-ui-final-cleanup-v1 :where(.list-group-item) {
    border-color: var(--nexa-cleanup-divider) !important;
    color: var(--nexa-cleanup-text-soft) !important;
    background: var(--nexa-cleanup-surface) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.list-group-item:hover, .list-group-item:focus, .list-group-item.active) {
    color: var(--nexa-cleanup-text) !important;
    background: rgba(var(--nexa-cleanup-primary-rgb), .11) !important;
}

/* --------------------------------------------------------------------------
   Forms / controls / input groups / vendor selects
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1 :where(.form-control, .form-select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select) {
    border-color: var(--nexa-cleanup-border) !important;
    color: var(--nexa-cleanup-text) !important;
    background-color: rgba(10, 13, 26, .42) !important;
    box-shadow: none;
}

body.nexa-ui-final-cleanup-v1 :where(.form-control, .form-select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select)::placeholder {
    color: var(--nexa-cleanup-subtle) !important;
    opacity: 1;
}

body.nexa-ui-final-cleanup-v1 :where(.form-control, .form-select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):focus {
    border-color: rgba(var(--nexa-cleanup-primary-rgb), .52) !important;
    background-color: rgba(10, 13, 26, .58) !important;
    box-shadow: var(--nexa-cleanup-focus) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.input-group-text) {
    border-color: var(--nexa-cleanup-border) !important;
    color: var(--nexa-cleanup-muted) !important;
    background: rgba(255,255,255,.035) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.form-label, label:not(.btn)) {
    color: var(--nexa-cleanup-text-soft);
}

body.nexa-ui-final-cleanup-v1 :where(.form-check-input) {
    border-color: var(--nexa-cleanup-border-strong) !important;
    background-color: rgba(10, 13, 26, .64);
}

body.nexa-ui-final-cleanup-v1 :where(.form-check-input:checked) {
    border-color: var(--nexa-cleanup-primary) !important;
    background-color: var(--nexa-cleanup-primary) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.form-range::-webkit-slider-runnable-track) {
    background: rgba(255,255,255,.10);
}
body.nexa-ui-final-cleanup-v1 :where(.form-range::-webkit-slider-thumb) {
    background: var(--nexa-cleanup-primary);
}

body.nexa-ui-final-cleanup-v1 :where(.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple, .ts-control, .nice-select) {
    border-color: var(--nexa-cleanup-border) !important;
    color: var(--nexa-cleanup-text) !important;
    background: rgba(10,13,26,.42) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.select2-dropdown, .ts-dropdown, .nice-select .list) {
    border-color: var(--nexa-cleanup-border) !important;
    color: var(--nexa-cleanup-text-soft) !important;
    background: var(--nexa-cleanup-surface-2) !important;
    box-shadow: var(--nexa-cleanup-shadow-lg) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.select2-results__option, .ts-dropdown .option, .nice-select .option) {
    color: var(--nexa-cleanup-text-soft) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.select2-results__option--highlighted, .ts-dropdown .active, .nice-select .option:hover, .nice-select .option.focus) {
    color: var(--nexa-cleanup-text) !important;
    background: rgba(var(--nexa-cleanup-primary-rgb), .13) !important;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1 :where(.btn) {
    border-radius: var(--nexa-cleanup-radius-sm);
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

body.nexa-ui-final-cleanup-v1 :where(.btn:hover:not(:disabled)) {
    transform: translateY(-1px);
}

body.nexa-ui-final-cleanup-v1 :where(.btn-light, .btn-outline-dark, .btn-secondary) {
    border-color: var(--nexa-cleanup-border) !important;
    color: var(--nexa-cleanup-text) !important;
    background: rgba(255,255,255,.045) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.btn-light:hover, .btn-outline-dark:hover, .btn-secondary:hover) {
    border-color: rgba(var(--nexa-cleanup-primary-rgb), .32) !important;
    background: rgba(var(--nexa-cleanup-primary-rgb), .10) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.btn-primary, .cmn-btn) {
    border-color: transparent !important;
}

/* --------------------------------------------------------------------------
   Tables / DataTables
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1 :where(.table, table) {
    --bs-table-bg: transparent;
    --bs-table-color: var(--nexa-cleanup-text-soft);
    --bs-table-border-color: var(--nexa-cleanup-divider);
    color: var(--nexa-cleanup-text-soft);
    border-color: var(--nexa-cleanup-divider) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.table > :not(caption) > * > *, table th, table td) {
    border-color: var(--nexa-cleanup-divider) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.table thead th, table thead th, .table-light th, .table-light td) {
    color: var(--nexa-cleanup-muted) !important;
    background: rgba(255,255,255,.025) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.table-striped > tbody > tr:nth-of-type(odd) > *) {
    --bs-table-accent-bg: rgba(255,255,255,.018);
    color: var(--nexa-cleanup-text-soft);
}

body.nexa-ui-final-cleanup-v1 :where(.table-hover > tbody > tr:hover > *, table tbody tr:hover td) {
    --bs-table-accent-bg: rgba(var(--nexa-cleanup-primary-rgb), .055);
    color: var(--nexa-cleanup-text);
}

body.nexa-ui-final-cleanup-v1 :where(.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter) {
    color: var(--nexa-cleanup-muted) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select) {
    border-color: var(--nexa-cleanup-border) !important;
    color: var(--nexa-cleanup-text) !important;
    background: rgba(10,13,26,.42) !important;
}

/* --------------------------------------------------------------------------
   Dropdown / modal / offcanvas / popover / tooltip / toast
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1 :where(.dropdown-menu, .modal-content, .offcanvas, .popover, .toast) {
    border-color: var(--nexa-cleanup-border) !important;
    color: var(--nexa-cleanup-text-soft) !important;
    background-color: var(--nexa-cleanup-surface) !important;
    box-shadow: var(--nexa-cleanup-shadow-lg) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.dropdown-menu, .modal-content, .offcanvas, .toast) {
    border-radius: var(--nexa-cleanup-radius-lg) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.dropdown-item) {
    color: var(--nexa-cleanup-text-soft) !important;
    border-radius: 8px;
}

body.nexa-ui-final-cleanup-v1 :where(.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active) {
    color: var(--nexa-cleanup-text) !important;
    background: rgba(var(--nexa-cleanup-primary-rgb), .11) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.modal-header, .modal-footer, .offcanvas-header) {
    border-color: var(--nexa-cleanup-divider) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.modal-backdrop.show, .offcanvas-backdrop.show) {
    opacity: .72;
}

body.nexa-ui-final-cleanup-v1 :where(.btn-close) {
    filter: invert(1) grayscale(1) brightness(1.8);
    opacity: .72;
}

body.nexa-ui-final-cleanup-v1 :where(.tooltip-inner) {
    border: 1px solid var(--nexa-cleanup-border);
    color: var(--nexa-cleanup-text);
    background: var(--nexa-cleanup-bg-deep);
    box-shadow: var(--nexa-cleanup-shadow);
}

/* --------------------------------------------------------------------------
   Alerts / badges / progress / states
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1 :where(.alert) {
    border-color: var(--nexa-cleanup-border) !important;
    border-radius: var(--nexa-cleanup-radius) !important;
    color: var(--nexa-cleanup-text-soft) !important;
    background: rgba(255,255,255,.025) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.alert-success) { border-color: rgba(38,201,138,.24) !important; background: rgba(38,201,138,.08) !important; }
body.nexa-ui-final-cleanup-v1 :where(.alert-warning) { border-color: rgba(246,185,75,.25) !important; background: rgba(246,185,75,.08) !important; }
body.nexa-ui-final-cleanup-v1 :where(.alert-danger) { border-color: rgba(255,92,114,.25) !important; background: rgba(255,92,114,.08) !important; }
body.nexa-ui-final-cleanup-v1 :where(.alert-info) { border-color: rgba(85,184,255,.25) !important; background: rgba(85,184,255,.08) !important; }

body.nexa-ui-final-cleanup-v1 :where(.badge) {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .01em;
}

body.nexa-ui-final-cleanup-v1 :where(.progress) {
    border: 1px solid var(--nexa-cleanup-border);
    border-radius: 999px;
    background: rgba(255,255,255,.055) !important;
}

/* --------------------------------------------------------------------------
   Tabs / nav / breadcrumbs / pagination / accordions
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1 :where(.nav-tabs) {
    border-color: var(--nexa-cleanup-divider) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.nav-tabs .nav-link, .nav-pills .nav-link) {
    color: var(--nexa-cleanup-muted);
}

body.nexa-ui-final-cleanup-v1 :where(.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus, .nav-tabs .nav-link.active, .nav-pills .nav-link.active) {
    border-color: var(--nexa-cleanup-border) !important;
    color: var(--nexa-cleanup-text) !important;
    background: rgba(var(--nexa-cleanup-primary-rgb), .10) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.breadcrumb, .pagination) {
    --bs-breadcrumb-divider-color: var(--nexa-cleanup-subtle);
}

body.nexa-ui-final-cleanup-v1 :where(.breadcrumb-item, .breadcrumb-item a) {
    color: var(--nexa-cleanup-muted) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.breadcrumb-item.active) {
    color: var(--nexa-cleanup-text-soft) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.page-link) {
    border-color: var(--nexa-cleanup-border) !important;
    color: var(--nexa-cleanup-text-soft) !important;
    background: var(--nexa-cleanup-surface) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.page-link:hover, .page-item.active .page-link) {
    border-color: rgba(var(--nexa-cleanup-primary-rgb), .38) !important;
    color: #fff !important;
    background: rgba(var(--nexa-cleanup-primary-rgb), .16) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.page-item.disabled .page-link) {
    color: var(--nexa-cleanup-subtle) !important;
    background: rgba(255,255,255,.02) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.accordion-item, .accordion-button) {
    border-color: var(--nexa-cleanup-border) !important;
    color: var(--nexa-cleanup-text-soft) !important;
    background: var(--nexa-cleanup-surface) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.accordion-button:not(.collapsed)) {
    color: var(--nexa-cleanup-text) !important;
    background: rgba(var(--nexa-cleanup-primary-rgb), .085) !important;
    box-shadow: inset 0 -1px 0 var(--nexa-cleanup-divider) !important;
}

body.nexa-ui-final-cleanup-v1 :where(.accordion-button::after) {
    filter: invert(1) opacity(.72);
}

/* --------------------------------------------------------------------------
   Empty states / separators / loading-ish placeholders
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1 :where(.empty-state, .no-data, .no-results, .not-found, .placeholder-glow) {
    color: var(--nexa-cleanup-muted);
}

body.nexa-ui-final-cleanup-v1 :where(.placeholder) {
    background-color: rgba(255,255,255,.08);
}

/* --------------------------------------------------------------------------
   Public/Auth family final polish
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1.nexa-public-ui-v3 {
    color: var(--nexa-cleanup-text-soft);
}

body.nexa-ui-final-cleanup-v1.nexa-public-ui-v3 :where(.nexa-site-shell, main) {
    min-width: 0;
}

body.nexa-ui-final-cleanup-v1.nexa-auth-unified-v1 :where(.login-register-form, .card) {
    isolation: isolate;
}

body.nexa-ui-final-cleanup-v1.nexa-auth-unified-v1 :where(.login-register-form .form-control, .login-register-form .form-select) {
    min-height: 46px;
}

body.nexa-ui-final-cleanup-v1.nexa-auth-unified-v1 :where(.login-register-form .cmn-btn, .login-register-form .btn) {
    min-height: 46px;
}

/* --------------------------------------------------------------------------
   User dashboard family final polish
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1.nexa-user-unified-v1 {
    overflow-x: clip;
}

body.nexa-ui-final-cleanup-v1.nexa-user-unified-v1 :where(.dashboard-wrapper, .dashboard-container, .main, .main-wrapper) {
    min-width: 0;
}

body.nexa-ui-final-cleanup-v1.nexa-user-unified-v1 :where(.main-wrapper > :first-child) {
    margin-top: 0;
}

body.nexa-ui-final-cleanup-v1.nexa-user-unified-v1 :where(.card, .dashboard-card, .user-card) {
    border-color: var(--nexa-cleanup-border) !important;
}

body.nexa-ui-final-cleanup-v1.nexa-user-unified-v1 :where(.cmn-table, .table-responsive) {
    border-radius: var(--nexa-cleanup-radius);
}

/* --------------------------------------------------------------------------
   Admin family final polish
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1.nexa-admin-unified-v1 {
    --nexa-cleanup-bg: var(--nexa-admin-bg, #101321);
    --nexa-cleanup-bg-deep: var(--nexa-admin-bg-deep, #0b0e19);
    --nexa-cleanup-surface: var(--nexa-admin-surface, #171a2b);
    --nexa-cleanup-surface-2: var(--nexa-admin-surface-2, #1d2135);
    --nexa-cleanup-surface-3: var(--nexa-admin-surface-3, #252a40);
    --nexa-cleanup-border: var(--nexa-admin-border, rgba(255,255,255,.085));
    --nexa-cleanup-border-strong: var(--nexa-admin-border-strong, rgba(255,255,255,.14));
    --nexa-cleanup-divider: var(--nexa-admin-divider, rgba(255,255,255,.065));
    --nexa-cleanup-text: var(--nexa-admin-text, rgba(255,255,255,.94));
    --nexa-cleanup-text-soft: var(--nexa-admin-text-soft, rgba(255,255,255,.78));
    --nexa-cleanup-muted: var(--nexa-admin-muted, rgba(255,255,255,.58));
    --nexa-cleanup-subtle: var(--nexa-admin-subtle, rgba(255,255,255,.40));
    --nexa-cleanup-primary: var(--nexa-admin-primary, #a81eeb);
    --nexa-cleanup-primary-rgb: var(--nexa-admin-primary-rgb, 168,30,235);
}

body.nexa-ui-final-cleanup-v1.nexa-admin-unified-v1 :where(.content.container-fluid, .main, #content) {
    min-width: 0;
}

body.nexa-ui-final-cleanup-v1.nexa-admin-unified-v1 :where(.card, .nexa-v2-panel, .core-ops-shell, .core-ops-card) {
    border-color: var(--nexa-cleanup-border) !important;
}

body.nexa-ui-final-cleanup-v1.nexa-admin-unified-v1 :where(.navbar-vertical-content, .navbar-vertical-footer, .navbar-vertical-aside) {
    scrollbar-color: rgba(var(--nexa-cleanup-primary-rgb), .32) transparent;
}

body.nexa-ui-final-cleanup-v1.nexa-admin-unified-v1 :where(.form-control, .form-select, .ts-control) {
    min-height: 42px;
}

body.nexa-ui-final-cleanup-v1.nexa-admin-unified-v1 :where(.btn-sm) {
    min-height: 34px;
}

body.nexa-ui-final-cleanup-v1.nexa-admin-unified-v1 :where(.table-responsive) {
    border-radius: var(--nexa-cleanup-radius);
    scrollbar-color: rgba(var(--nexa-cleanup-primary-rgb), .28) transparent;
}

/* --------------------------------------------------------------------------
   Scrollbars - scoped to the unified pages only
   -------------------------------------------------------------------------- */
body.nexa-ui-final-cleanup-v1,
body.nexa-ui-final-cleanup-v1 * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.16) transparent;
}

body.nexa-ui-final-cleanup-v1::-webkit-scrollbar,
body.nexa-ui-final-cleanup-v1 *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.nexa-ui-final-cleanup-v1::-webkit-scrollbar-track,
body.nexa-ui-final-cleanup-v1 *::-webkit-scrollbar-track {
    background: transparent;
}

body.nexa-ui-final-cleanup-v1::-webkit-scrollbar-thumb,
body.nexa-ui-final-cleanup-v1 *::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    background-clip: padding-box;
}

body.nexa-ui-final-cleanup-v1::-webkit-scrollbar-thumb:hover,
body.nexa-ui-final-cleanup-v1 *::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--nexa-cleanup-primary-rgb), .42);
    background-clip: padding-box;
}

/* --------------------------------------------------------------------------
   Responsive cleanup
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    body.nexa-ui-final-cleanup-v1 :where(.modal-dialog) {
        margin: 12px;
    }

    body.nexa-ui-final-cleanup-v1 :where(.card-body, .card-header, .card-footer) {
        min-width: 0;
    }

    body.nexa-ui-final-cleanup-v1 :where(.table-responsive) {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575.98px) {
    body.nexa-ui-final-cleanup-v1 :where(.btn:not(.btn-sm):not(.btn-lg), .form-control, .form-select) {
        min-height: 44px;
    }

    body.nexa-ui-final-cleanup-v1 :where(.dropdown-menu) {
        max-width: calc(100vw - 24px);
    }

    body.nexa-ui-final-cleanup-v1 :where(.modal-content, .offcanvas) {
        border-radius: 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.nexa-ui-final-cleanup-v1 *,
    body.nexa-ui-final-cleanup-v1 *::before,
    body.nexa-ui-final-cleanup-v1 *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    body.nexa-ui-final-cleanup-v1 :where(.btn, .form-control, .form-select, .card, .dropdown-menu, .modal-content) {
        border: 1px solid CanvasText !important;
    }
}
