/* Admin V2 — Meta-inspired analytics admin shell */

.admin-v2 {
    --v2-bg: #F3F5F9;
    --v2-surface: #FFFFFF;
    --v2-border: #E6EAF0;
    --v2-border-soft: #EEF1F6;
    --v2-text: #1E2433;
    --v2-muted: #8A94A6;
    --v2-primary: #3B66F5;
    --v2-primary-hover: #2F56E0;
    --v2-primary-soft: #E8EEFE;
    --v2-primary-grad: linear-gradient(135deg, #4C7BFF 0%, #3B66F5 55%, #2F56E0 100%);
    --v2-header: #3B66F5;
    --v2-header-glass: rgba(59, 102, 245, 0.88);
    --v2-sidebar: rgba(15, 23, 42, 0.82);
    --v2-sidebar-solid: #0f172a;
    --v2-sidebar-hover: rgba(255, 255, 255, 0.08);
    --v2-sidebar-active: transparent;
    --v2-sidebar-text: rgba(255, 255, 255, 0.68);
    --v2-sidebar-text-active: #FFFFFF;
    --v2-sidebar-inset: 12px;
    --v2-sidebar-radius: 24px;
    --v2-header-height: 56px;
    --v2-danger: #EF4444;
    --v2-success: #10B981;
    --v2-warning: #F59E0B;
    --v2-info: #3B82F6;
    --v2-orange: #F97316;
    --v2-radius: 14px;
    --v2-radius-sm: 10px;
    --v2-shadow: 0 2px 8px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.04);
    --v2-font: "DM Sans", "Poppins", system-ui, sans-serif;
}

body.admin-v2 {
    background:
        radial-gradient(ellipse 55% 45% at 8% 12%, rgba(59, 102, 245, 0.14), transparent 55%),
        radial-gradient(ellipse 45% 40% at 92% 88%, rgba(14, 165, 233, 0.08), transparent 50%),
        var(--v2-bg) !important;
    color: var(--v2-text);
    font-family: var(--v2-font);
}

/* ---------- Page / content ---------- */

body.admin-v2 .content#kt_content,
body.admin-v2 #kt_content {
    background: var(--v2-bg) !important;
    padding: 1.35rem 0 2.5rem !important;
}

body.admin-v2 .wrapper#kt_wrapper {
    background: var(--v2-bg) !important;
}

body.admin-v2 .subheader {
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* ---------- Sidebar (floating glass panel) ---------- */

body.admin-v2 .aside#kt_aside,
body.admin-v2 .aside.aside-left {
    background: var(--v2-sidebar) !important;
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    body.admin-v2 .aside#kt_aside,
    body.admin-v2 .aside.aside-left {
        background: var(--v2-sidebar-solid) !important;
    }
}

@media (min-width: 992px) {
    body.admin-v2.aside-fixed .aside#kt_aside,
    body.admin-v2.aside-fixed .aside.aside-left {
        top: var(--v2-sidebar-inset) !important;
        bottom: var(--v2-sidebar-inset) !important;
        left: var(--v2-sidebar-inset) !important;
        height: auto !important;
        max-height: calc(100vh - (var(--v2-sidebar-inset) * 2));
        border-radius: var(--v2-sidebar-radius) !important;
        overflow: hidden;
    }

    body.admin-v2.aside-fixed .wrapper#kt_wrapper {
        padding-left: calc(265px + var(--v2-sidebar-inset)) !important;
    }

    body.admin-v2.aside-fixed.aside-minimize .wrapper#kt_wrapper {
        padding-left: calc(70px + var(--v2-sidebar-inset)) !important;
    }

    body.admin-v2.aside-fixed.aside-minimize-hover .wrapper#kt_wrapper {
        padding-left: calc(70px + var(--v2-sidebar-inset)) !important;
    }

    /* Floating glass header aligned with sidebar inset */
    body.admin-v2.aside-fixed.header-fixed .header#kt_header {
        top: var(--v2-sidebar-inset) !important;
        left: calc(265px + var(--v2-sidebar-inset) + 10px) !important;
        right: var(--v2-sidebar-inset) !important;
        width: auto !important;
        height: var(--v2-header-height) !important;
        border-radius: 18px !important;
    }

    body.admin-v2.aside-fixed.aside-minimize.header-fixed .header#kt_header,
    body.admin-v2.aside-fixed.aside-minimize-hover.header-fixed .header#kt_header {
        left: calc(70px + var(--v2-sidebar-inset) + 10px) !important;
    }

    body.admin-v2.header-fixed .wrapper#kt_wrapper {
        padding-top: calc(var(--v2-sidebar-inset) + var(--v2-header-height) + 14px) !important;
    }

    body.admin-v2.header-fixed.subheader-fixed.subheader-enabled .wrapper#kt_wrapper {
        padding-top: calc(var(--v2-sidebar-inset) + var(--v2-header-height) + 14px) !important;
    }
}

body.admin-v2 .aside .aside-menu-wrapper,
body.admin-v2 .aside .aside-menu-wrapper .hover-scroll-overlay-y,
body.admin-v2 .aside .ps,
body.admin-v2 .aside .scroll {
    background: transparent !important;
}

body.admin-v2 .aside .brand#kt_brand,
body.admin-v2 .brand {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 1.1rem 1rem 0.95rem !important;
    min-height: 70px !important;
    align-items: center;
}

body.admin-v2 .brand .brand-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none !important;
}

body.admin-v2 .brand .brand-logo::before {
    content: "";
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 11px;
    background:
        radial-gradient(circle at 30% 28%, #93B4FF 0%, #3B66F5 48%, #1E3A8A 100%);
    box-shadow: 0 6px 16px rgba(59, 102, 245, 0.38);
}

body.admin-v2 .brand .brand-logo img {
    display: none;
}

body.admin-v2 .brand .brand-logo span,
body.admin-v2 .brand .v2-brand-name {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    letter-spacing: -0.03em;
    text-decoration: none !important;
}

body.admin-v2.aside-minimize:not(.aside-minimize-hover) .brand .brand-logo::before {
    margin: 0 auto;
}

body.admin-v2.aside-minimize:not(.aside-minimize-hover) .brand .v2-brand-name,
body.admin-v2.aside-minimize:not(.aside-minimize-hover) .brand .brand-logo span {
    display: none !important;
}

body.admin-v2 .brand .brand-toggle {
    color: rgba(255, 255, 255, 0.65) !important;
    border-radius: 10px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-v2 .brand .brand-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.admin-v2 .brand .brand-toggle .svg-icon svg g [fill],
body.admin-v2 .brand .brand-toggle svg path {
    fill: rgba(255, 255, 255, 0.75) !important;
}

body.admin-v2 .aside-menu {
    background: transparent !important;
    padding: 0.7rem 0.7rem 1.4rem !important;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item {
    position: relative;
    margin-bottom: 2px;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item > .menu-link {
    border-radius: 12px !important;
    padding: 0.42rem 0.55rem !important;
    margin-bottom: 0;
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 0.1rem;
    background: transparent !important;
    box-shadow: none !important;
    transition: background 0.18s ease, color 0.18s ease;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item > .menu-link .menu-text {
    color: var(--v2-sidebar-text) !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    letter-spacing: -0.01em;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item > .menu-link .menu-arrow {
    color: rgba(255, 255, 255, 0.35) !important;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item > .menu-link i.fa {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin: 0 0.65rem 0 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.92rem !important;
    line-height: 1 !important;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item > .menu-link:hover {
    background: var(--v2-sidebar-hover) !important;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item > .menu-link:hover i.fa {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item > .menu-link:hover .menu-text {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-active > .menu-link,
body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-here > .menu-link {
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-open > .menu-link {
    background: transparent !important;
    box-shadow: none !important;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-active > .menu-link::before,
body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-here > .menu-link::before {
    display: none !important;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-active > .menu-link i.fa,
body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-here > .menu-link i.fa {
    background:
        radial-gradient(circle at 32% 28%, #9BB8FF 0%, #3B66F5 46%, #1D4ED8 100%) !important;
    color: #fff !important;
    box-shadow:
        0 0 0 3px rgba(59, 102, 245, 0.2),
        0 8px 18px rgba(59, 102, 245, 0.4);
    transform: scale(1.03);
}

body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-open:not(.menu-item-active):not(.menu-item-here) > .menu-link i.fa {
    background: rgba(59, 102, 245, 0.28) !important;
    color: #fff !important;
    box-shadow: none;
    transform: none;
}

body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-active > .menu-link .menu-text,
body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-active > .menu-link .menu-arrow,
body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-here > .menu-link .menu-text,
body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-open > .menu-link .menu-text,
body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-open > .menu-link .menu-arrow {
    color: var(--v2-sidebar-text-active) !important;
    font-weight: 600;
}

body.admin-v2 .aside-menu .menu-submenu {
    background: rgba(0, 0, 0, 0.18) !important;
    margin: 0.2rem 0.2rem 0.45rem !important;
    padding: 0.35rem 0.25rem !important;
    border-radius: 12px !important;
}

body.admin-v2 .aside-menu .menu-subnav .menu-link {
    border-radius: 10px !important;
    padding: 0.48rem 0.7rem 0.48rem 2.85rem !important;
}

body.admin-v2 .aside-menu .menu-subnav .menu-link .menu-text {
    color: var(--v2-sidebar-text) !important;
    font-size: 0.84rem !important;
    font-weight: 500;
}

body.admin-v2 .aside-menu .menu-subnav .menu-item.menu-item-active > .menu-link,
body.admin-v2 .aside-menu .menu-subnav .menu-link:hover {
    background: rgba(59, 102, 245, 0.22) !important;
}

body.admin-v2 .aside-menu .menu-subnav .menu-item.menu-item-active > .menu-link .menu-text {
    color: #fff !important;
    font-weight: 600;
}

body.admin-v2 .aside-menu .menu-section {
    margin: 1.1rem 0.4rem 0.45rem !important;
    padding: 0 !important;
}

body.admin-v2 .aside-menu .menu-section .menu-text {
    color: rgba(255, 255, 255, 0.32) !important;
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.admin-v2 .aside-menu hr {
    border: 0 !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    margin: 0.7rem 0.45rem !important;
}

body.admin-v2 .aside-menu .menu-bullet-line > span {
    background: rgba(255, 255, 255, 0.32) !important;
}

[dir="rtl"] body.admin-v2 .aside-menu .menu-nav > .menu-item > .menu-link i.fa {
    margin: 0 0 0 0.65rem !important;
}

[dir="rtl"] body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-active > .menu-link::before,
[dir="rtl"] body.admin-v2 .aside-menu .menu-nav > .menu-item.menu-item-here > .menu-link::before {
    display: none !important;
}

@media (min-width: 992px) {
    [dir="rtl"] body.admin-v2.aside-fixed .aside#kt_aside,
    [dir="rtl"] body.admin-v2.aside-fixed .aside.aside-left {
        left: auto !important;
        right: var(--v2-sidebar-inset) !important;
    }

    [dir="rtl"] body.admin-v2.aside-fixed .wrapper#kt_wrapper {
        padding-left: 0 !important;
        padding-right: calc(265px + var(--v2-sidebar-inset)) !important;
    }

    [dir="rtl"] body.admin-v2.aside-fixed.aside-minimize .wrapper#kt_wrapper {
        padding-right: calc(70px + var(--v2-sidebar-inset)) !important;
    }

    [dir="rtl"] body.admin-v2.aside-fixed.header-fixed .header#kt_header {
        left: var(--v2-sidebar-inset) !important;
        right: calc(265px + var(--v2-sidebar-inset) + 10px) !important;
    }

    [dir="rtl"] body.admin-v2.aside-fixed.aside-minimize.header-fixed .header#kt_header,
    [dir="rtl"] body.admin-v2.aside-fixed.aside-minimize-hover.header-fixed .header#kt_header {
        right: calc(70px + var(--v2-sidebar-inset) + 10px) !important;
    }
}

/* ---------- Mobile header ---------- */

body.admin-v2 .header-mobile {
    background: var(--v2-header-glass) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(59, 102, 245, 0.2) !important;
    border-bottom: 0;
}

body.admin-v2 .header-mobile .text-white,
body.admin-v2 .header-mobile a span,
body.admin-v2 .header-mobile .v2-brand-name {
    color: #fff !important;
    font-weight: 700;
}

body.admin-v2 .header-mobile .burger-icon span,
body.admin-v2 .header-mobile .burger-icon span::before,
body.admin-v2 .header-mobile .burger-icon span::after {
    background: #fff !important;
}

body.admin-v2 .header-mobile .svg-icon svg g [fill],
body.admin-v2 .header-mobile .svg-icon svg path {
    fill: #fff !important;
}

/* ---------- Top header (floating glass bar) ---------- */

body.admin-v2 .header#kt_header,
body.admin-v2 .header.header-fixed {
    background: linear-gradient(120deg, rgba(47, 86, 224, 0.94) 0%, rgba(59, 102, 245, 0.9) 55%, rgba(76, 123, 255, 0.88) 100%) !important;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow:
        0 12px 32px rgba(59, 102, 245, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    height: var(--v2-header-height) !important;
}

body.admin-v2 .header .container-fluid {
    height: var(--v2-header-height);
    padding-left: 1rem !important;
    padding-right: 0.85rem !important;
}

body.admin-v2 .header .topbar {
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

body.admin-v2 .header .v2-header-search {
    position: relative;
    width: 220px;
    max-width: 260px;
    flex: 0 1 auto;
    margin-right: 0.5rem;
}

body.admin-v2 .header .v2-header-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    pointer-events: none;
}

body.admin-v2 .header .v2-header-search input {
    width: 100%;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 0 0.9rem 0 2.1rem;
    font-size: 0.82rem;
    outline: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.admin-v2 .header .v2-header-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

body.admin-v2 .header .v2-header-search input:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

[dir="rtl"] body.admin-v2 .header .v2-header-search i {
    left: auto;
    right: 12px;
}

[dir="rtl"] body.admin-v2 .header .v2-header-search input {
    padding: 0 2.1rem 0 0.9rem;
}

body.admin-v2 .header .v2-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    position: relative;
    padding: 0 !important;
    box-shadow: none !important;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

body.admin-v2 .header .v2-icon-btn:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

body.admin-v2 .header .v2-icon-btn i {
    color: #fff !important;
    font-size: 0.88rem;
}

body.admin-v2 .header .v2-icon-btn .v2-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: #EF4444;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    border: 2px solid #3B66F5;
}

body.admin-v2 .header .v2-icon-btn .v2-badge--blue {
    background: #93C5FD;
    color: #1E3A8A;
}

body.admin-v2 .header #kt_quick_user_toggle {
    border-radius: 12px !important;
    padding: 0.18rem 0.6rem 0.18rem 0.2rem !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    gap: 0.4rem;
    height: 36px;
    transition: background 0.15s ease;
}

body.admin-v2 .header #kt_quick_user_toggle:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

body.admin-v2 .header #kt_quick_user_toggle .v2-avatar {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

body.admin-v2 .header #kt_quick_user_toggle .text-muted,
body.admin-v2 .header #kt_quick_user_toggle .text-dark-50,
body.admin-v2 .header #kt_quick_user_toggle span {
    color: #fff !important;
}

body.admin-v2 .header #kt_quick_user_toggle .font-size-sm {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

body.admin-v2 .header .topbar-item .btn-outline-primary,
body.admin-v2 .header .v2-topbar-btn {
    display: none !important;
}

/* ---------- Buttons ---------- */

body.admin-v2 .btn-primary {
    background: var(--v2-primary-grad) !important;
    border-color: var(--v2-primary) !important;
    border-radius: var(--v2-radius-sm) !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 14px rgba(59, 102, 245, 0.28) !important;
}

body.admin-v2 .btn-primary:hover,
body.admin-v2 .btn-primary:focus,
body.admin-v2 .btn-primary:active {
    background-color: var(--v2-primary-hover) !important;
    border-color: var(--v2-primary-hover) !important;
}

body.admin-v2 .btn-secondary,
body.admin-v2 .btn-light {
    border-radius: var(--v2-radius-sm) !important;
}

/* ---------- Forms ---------- */

body.admin-v2 .form-control {
    border-color: var(--v2-border) !important;
    border-radius: var(--v2-radius-sm) !important;
    color: var(--v2-text) !important;
    min-height: 42px;
    box-shadow: none !important;
    background: #fff !important;
}

body.admin-v2 .form-control:focus {
    border-color: var(--v2-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 102, 245, 0.16) !important;
}

body.admin-v2 .form-label,
body.admin-v2 label.form-label {
    color: var(--v2-text) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.4rem !important;
}

body.admin-v2 textarea.form-control {
    min-height: 110px;
}

/* ---------- Legacy cards soften ---------- */

body.admin-v2 .card.card-custom {
    border: 0 !important;
    border-radius: var(--v2-radius) !important;
    box-shadow: var(--v2-shadow) !important;
    background: var(--v2-surface) !important;
}

body.admin-v2 .card.card-custom > .card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--v2-border-soft) !important;
    min-height: 60px !important;
}

body.admin-v2 .card.card-custom .card-label {
    color: var(--v2-text) !important;
    font-weight: 650 !important;
}

/* ---------- DataTables ---------- */

body.admin-v2 .table {
    color: var(--v2-text);
}

body.admin-v2 .table.table-bordered,
body.admin-v2 table.dataTable.table-bordered {
    border: 1px solid var(--v2-border) !important;
    border-radius: var(--v2-radius-sm);
    overflow: hidden;
}

body.admin-v2 .table thead th,
body.admin-v2 table.dataTable thead th {
    background: #F8FAFC !important;
    color: var(--v2-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-color: var(--v2-border) !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

body.admin-v2 .table tbody td,
body.admin-v2 table.dataTable tbody td {
    border-color: var(--v2-border-soft) !important;
    vertical-align: middle !important;
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
}

body.admin-v2 .table tbody tr:hover {
    background: #F8FAFC !important;
}

body.admin-v2 .dataTables_wrapper .dataTables_filter input,
body.admin-v2 .dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--v2-border) !important;
    border-radius: var(--v2-radius-sm) !important;
    padding: 0.35rem 0.65rem !important;
}

/* ---------- Alerts ---------- */

body.admin-v2 .alert {
    border-radius: var(--v2-radius-sm) !important;
    border-width: 1px !important;
}

/* =========================================================
   V2 Components
   ========================================================= */

.v2-page {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.35rem 1.5rem;
}

.v2-page--fluid {
    max-width: none;
}

.v2-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1.35rem;
}

.v2-page-header__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--v2-text);
    line-height: 1.25;
}

.v2-page-header__subtitle {
    margin: 0.3rem 0 0;
    color: var(--v2-muted);
    font-size: 0.875rem;
}

.v2-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--v2-muted);
}

.v2-breadcrumb a {
    color: var(--v2-muted) !important;
    text-decoration: none !important;
}

.v2-breadcrumb a:hover {
    color: var(--v2-primary) !important;
}

.v2-breadcrumb__sep {
    opacity: 0.55;
}

.v2-breadcrumb__current {
    color: var(--v2-primary);
    font-weight: 550;
}

.v2-page-header__toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.v2-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--v2-radius-sm);
    border: 1px solid transparent;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.v2-alert--success {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

.v2-alert--danger {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

.v2-alert--warning {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

.v2-alert--info,
.v2-alert--primary {
    background: var(--v2-primary-soft);
    border-color: #C7D6FD;
    color: #1E3A8A;
}

.v2-panel {
    background: var(--v2-surface);
    border: 0;
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.v2-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.05rem 1.25rem;
    border-bottom: 1px solid var(--v2-border-soft);
}

.v2-panel__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 650;
    color: var(--v2-text);
}

.v2-panel__body {
    padding: 1.25rem;
}

.v2-panel__body--flush {
    padding: 0;
}

.v2-panel__body--flush .dataTables_wrapper,
.v2-panel__body--flush > .table-responsive,
.v2-panel__body--flush > table {
    padding: 1rem 1.25rem 1.25rem;
}

/* KPI / Meta-style stat cards */

.v2-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1199.98px) {
    .v2-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .v2-stat-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    body.admin-v2 .header .v2-header-search {
        display: none;
    }
}

.v2-stat-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
    .v2-stat-grid--3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.v2-stat-card {
    display: block;
    background: var(--v2-surface);
    border: 0;
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow);
    padding: 1.15rem 1.2rem 1rem;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 132px;
    position: relative;
    overflow: hidden;
}

.v2-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    color: inherit !important;
}

.v2-stat-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.v2-stat-card__meta {
    min-width: 0;
}

.v2-stat-card__label {
    display: block;
    color: var(--v2-muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.v2-stat-card__value {
    display: block;
    color: var(--v2-text);
    font-size: 1.55rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.v2-stat-card__hint {
    display: block;
    margin-top: 0.4rem;
    color: var(--v2-muted);
    font-size: 0.72rem;
}

.v2-stat-card__hint strong {
    color: var(--v2-success);
    font-weight: 650;
}

.v2-stat-card__spark {
    width: 72px;
    height: 36px;
    flex-shrink: 0;
    color: var(--v2-primary);
    opacity: 0.9;
}

.v2-stat-card__spark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.v2-stat-card__bar {
    margin-top: 0.95rem;
    height: 4px;
    border-radius: 999px;
    background: #EEF2FF;
    overflow: hidden;
}

.v2-stat-card__bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--v2-primary-grad);
}

.v2-stat-card--orange .v2-stat-card__spark { color: var(--v2-orange); }
.v2-stat-card--orange .v2-stat-card__bar > span { background: linear-gradient(90deg, #FB923C, #F97316); }
.v2-stat-card--orange .v2-stat-card__bar { background: #FFF7ED; }

.v2-stat-card--green .v2-stat-card__spark { color: var(--v2-success); }
.v2-stat-card--green .v2-stat-card__bar > span { background: linear-gradient(90deg, #34D399, #10B981); }
.v2-stat-card--green .v2-stat-card__bar { background: #ECFDF5; }
.v2-stat-card--green .v2-stat-card__hint strong { color: var(--v2-success); }

.v2-stat-card--cyan .v2-stat-card__spark { color: #06B6D4; }
.v2-stat-card--cyan .v2-stat-card__bar > span { background: linear-gradient(90deg, #22D3EE, #06B6D4); }
.v2-stat-card--cyan .v2-stat-card__bar { background: #ECFEFF; }

.v2-stat-card--indigo .v2-stat-card__spark { color: #6366F1; }
.v2-stat-card--indigo .v2-stat-card__bar > span { background: linear-gradient(90deg, #818CF8, #6366F1); }
.v2-stat-card--indigo .v2-stat-card__bar { background: #EEF2FF; }

.v2-field {
    margin-bottom: 1.15rem;
}

.v2-field__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--v2-text);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.v2-field__required {
    color: var(--v2-danger);
}

.v2-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 767.98px) {
    .v2-detail-grid {
        grid-template-columns: 1fr;
    }
}

.v2-detail-item__label {
    display: block;
    color: var(--v2-muted);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.v2-detail-item__value {
    color: var(--v2-text);
    font-size: 0.95rem;
}

.v2-chart-actions {
    display: flex;
    justify-content: center;
    margin: 0.25rem 0 1.35rem;
}

.v2-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.v2-chart-grid__full {
    grid-column: 1 / -1;
}

@media (max-width: 991.98px) {
    .v2-chart-grid {
        grid-template-columns: 1fr;
    }
}

.v2-link {
    color: var(--v2-primary) !important;
    border-bottom: 1px solid transparent;
    text-decoration: none !important;
}

.v2-link:hover {
    border-bottom-color: var(--v2-primary);
}

.v2-panel a:not(.btn):not(.v2-stat-card) {
    color: var(--v2-primary);
}

.v2-panel a.text-primary,
.v2-panel .text-primary {
    color: var(--v2-primary) !important;
}

/* Configurations / tabbed forms */
.v2-tabs.nav-tabs {
    border-bottom: 1px solid var(--v2-border);
    gap: 0.25rem;
    flex-wrap: wrap;
}

.v2-tabs.nav-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--v2-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    border-radius: 0;
    background: transparent;
}

.v2-tabs.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--v2-primary);
    background: transparent;
}

.v2-tabs.nav-tabs .nav-link.active {
    color: var(--v2-primary);
    border-bottom-color: var(--v2-primary);
    background: transparent;
}

[dir="rtl"] body.admin-v2 .aside.aside-left {
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.28);
}

[dir="rtl"] .v2-page-header {
    flex-direction: row-reverse;
}

/* -------------------------------------------------------------------------- */
/* Auth v2 — glass sign-in (brand navy / royal blue, no purple)               */
/* -------------------------------------------------------------------------- */

body.auth-v2 {
    margin: 0;
    min-height: 100vh;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    color: #f4f7fb;
    background: #070d18;
    overflow-x: hidden;
}

.auth-v2-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.auth-v2-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(59, 102, 245, 0.45), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(14, 165, 233, 0.28), transparent 50%),
        radial-gradient(ellipse 50% 40% at 60% 10%, rgba(30, 58, 138, 0.55), transparent 45%),
        linear-gradient(160deg, #070d18 0%, #111827 45%, #0b1a33 100%);
    filter: blur(0);
}

.auth-v2-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
    animation: auth-v2-drift 18s ease-in-out infinite alternate;
}

.auth-v2-orb--a {
    width: 42vw;
    height: 42vw;
    max-width: 520px;
    max-height: 520px;
    top: -8%;
    left: -6%;
    background: #3b66f5;
}

.auth-v2-orb--b {
    width: 36vw;
    height: 36vw;
    max-width: 440px;
    max-height: 440px;
    bottom: -10%;
    right: -4%;
    background: #1e3a8a;
    animation-delay: -6s;
}

.auth-v2-orb--c {
    width: 28vw;
    height: 28vw;
    max-width: 320px;
    max-height: 320px;
    top: 40%;
    left: 45%;
    background: #0ea5e9;
    opacity: 0.35;
    animation-delay: -11s;
}

.auth-v2-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
    pointer-events: none;
}

@keyframes auth-v2-drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(3%, -4%) scale(1.06); }
}

.auth-v2-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2.25rem 2.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    animation: auth-v2-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-v2-rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-v2-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-v2-brand__logo {
    display: block;
    width: auto;
    max-width: 140px;
    max-height: 56px;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.auth-v2-brand__mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.35rem;
}

.auth-v2-brand__name {
    margin: 0 0 0.4rem;
    font-size: clamp(1.65rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.15;
}

.auth-v2-brand__tagline {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.72);
}

.auth-v2-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-v2-alert {
    margin-bottom: 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.auth-v2-alert--success {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
}

.auth-v2-alert--danger,
.auth-v2-alert--error {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.auth-v2-alert--warning {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

.auth-v2-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.15rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease;
    margin-top: 0.55rem;
}

.auth-v2-field:focus-within {
    border-bottom-color: #93c5fd;
}

.auth-v2-field--invalid {
    border-bottom-color: #f87171;
}

.auth-v2-field__icon {
    flex-shrink: 0;
    width: 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.auth-v2-field__input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0.15rem 0;
    caret-color: #93c5fd;
}

.auth-v2-field__input::placeholder {
    color: rgba(226, 232, 240, 0.55);
}

.auth-v2-field__input:-webkit-autofill,
.auth-v2-field__input:-webkit-autofill:hover,
.auth-v2-field__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: 0 0 0 1000px transparent inset;
}

.auth-v2-error {
    font-size: 0.78rem;
    color: #fca5a5;
    margin: 0.15rem 0 0.25rem;
}

.auth-v2-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.1rem 0 1.35rem;
    flex-wrap: wrap;
}

.auth-v2-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.8);
    cursor: pointer;
    user-select: none;
}

.auth-v2-remember input {
    width: 0.95rem;
    height: 0.95rem;
    margin: 0;
    accent-color: #3b66f5;
    cursor: pointer;
}

.auth-v2-link {
    font-size: 0.85rem;
    color: rgba(191, 219, 254, 0.9);
    text-decoration: none;
    font-style: italic;
    transition: color 0.15s ease;
}

.auth-v2-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.auth-v2-submit {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 0.9rem 1.25rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(105deg, #1e3a8a 0%, #3b66f5 52%, #60a5fa 100%);
    box-shadow: 0 10px 28px rgba(59, 102, 245, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-v2-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 14px 32px rgba(59, 102, 245, 0.42);
    transform: translateY(-1px);
}

.auth-v2-submit:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.auth-v2-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

a.auth-v2-submit {
    text-decoration: none;
    text-align: center;
}

.auth-v2-submit--ghost {
    background: transparent;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    letter-spacing: 0.04em;
}

.auth-v2-submit--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

@media (max-width: 480px) {
    .auth-v2-card {
        padding: 2rem 1.35rem 1.75rem;
        border-radius: 20px;
    }

    .auth-v2-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-v2-orb,
    .auth-v2-card {
        animation: none;
    }
}

/* -------------------------------------------------------------------------- */
/* User profile offcanvas (right drawer)                                       */
/* -------------------------------------------------------------------------- */

#kt_quick_user.v2-user-panel.offcanvas {
    width: 380px;
    max-width: 100vw;
    padding: 0 !important;
    background: var(--v2-surface) !important;
    border-left: 1px solid var(--v2-border);
    box-shadow: -12px 0 40px rgba(17, 24, 39, 0.12);
    font-family: var(--v2-font);
    color: var(--v2-text);
}

.v2-user-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.35rem 1.1rem;
    background:
        linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--v2-border-soft);
}

.v2-user-panel__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--v2-text);
}

.v2-user-panel__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--v2-muted);
    line-height: 1.35;
}

.v2-user-panel__close {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--v2-bg);
    border: 1px solid var(--v2-border);
    color: var(--v2-muted);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.v2-user-panel__close:hover {
    background: var(--v2-primary-soft);
    border-color: #c9d6fc;
    color: var(--v2-primary);
    text-decoration: none;
}

.v2-user-panel__close i {
    font-size: 0.7rem;
}

.v2-user-panel__body {
    padding: 1.15rem 1.25rem 1.75rem !important;
    margin: 0 !important;
    overflow-y: auto;
    max-height: calc(100vh - 88px);
}

.v2-user-card {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 1rem;
    border-radius: var(--v2-radius);
    background: linear-gradient(145deg, #F4F7FF 0%, #EEF2FF 45%, #F8FAFC 100%);
    border: 1px solid #E2E8F8;
    margin-bottom: 1.35rem;
}

.v2-user-card__avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    background: var(--v2-primary-grad);
    box-shadow: 0 8px 18px rgba(59, 102, 245, 0.28);
}

.v2-user-card__meta {
    min-width: 0;
    flex: 1;
}

.v2-user-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--v2-text);
    line-height: 1.25;
    word-break: break-word;
}

.v2-user-card__email {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    max-width: 100%;
    font-size: 0.8rem;
    color: var(--v2-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.v2-user-card__email span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-user-card__email i {
    color: var(--v2-primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.v2-user-card__email:hover {
    color: var(--v2-primary);
}

.v2-user-card__signout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--v2-primary);
    background: #fff;
    border: 1px solid #D6E0FB;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.v2-user-card__signout:hover {
    background: var(--v2-primary);
    border-color: var(--v2-primary);
    color: #fff;
    text-decoration: none;
}

.v2-user-section {
    margin-bottom: 1.35rem;
}

.v2-user-section:last-child {
    margin-bottom: 0;
}

.v2-user-section__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--v2-muted);
    margin-bottom: 0.55rem;
}

.v2-user-section__hint {
    margin: -0.2rem 0 0.7rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--v2-muted);
}

.v2-user-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.v2-user-nav__item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.85rem;
    border-radius: var(--v2-radius-sm);
    border: 1px solid var(--v2-border);
    background: #fff;
    text-decoration: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.v2-user-nav__item:hover {
    border-color: #C9D6FC;
    box-shadow: 0 6px 16px rgba(59, 102, 245, 0.08);
    transform: translateY(-1px);
}

.v2-user-nav__icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.v2-user-nav__icon--blue {
    background: var(--v2-primary-soft);
    color: var(--v2-primary);
}

.v2-user-nav__icon--indigo {
    background: #EEF2FF;
    color: #4F46E5;
}

.v2-user-nav__icon--teal {
    background: #ECFDF5;
    color: #059669;
}

.v2-user-nav__text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.v2-user-nav__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--v2-text);
    line-height: 1.25;
}

.v2-user-nav__desc {
    font-size: 0.75rem;
    color: var(--v2-muted);
    line-height: 1.35;
}

.v2-user-nav__chevron {
    color: #C0C8D6;
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.v2-user-nav__item:hover .v2-user-nav__chevron {
    color: var(--v2-primary);
    transform: translateX(2px);
}

.v2-org-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.v2-org-list__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border-radius: var(--v2-radius-sm);
    border: 1px solid var(--v2-border);
    background: #fff;
    color: var(--v2-text);
    text-decoration: none !important;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.v2-org-list__item:hover {
    border-color: #C9D6FC;
    background: #F8FAFF;
}

.v2-org-list__item.is-active {
    border-color: #B8C9FB;
    background: var(--v2-primary-soft);
    box-shadow: inset 3px 0 0 var(--v2-primary);
}

.v2-org-list__dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #CBD5E1;
}

.v2-org-list__item.is-active .v2-org-list__dot {
    background: var(--v2-primary);
    box-shadow: 0 0 0 3px rgba(59, 102, 245, 0.2);
}

.v2-org-list__name {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.v2-org-list__badge {
    flex-shrink: 0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--v2-primary);
    background: #fff;
    border: 1px solid #C9D6FC;
}

@media (max-width: 480px) {
    #kt_quick_user.v2-user-panel.offcanvas {
        width: 100vw;
    }
}
