/* Global responsive hardening.
   Desktop layout is preserved by keeping structural overrides inside media queries. */

:root {
    --iv-mobile-gutter: 12px;
    --iv-tablet-gutter: 20px;
    --iv-touch-target: 44px;
}

html {
    overflow-x: hidden;
}

body {
    min-width: 0;
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

.main-content,
.card-body,
.inner-card,
.dash-box,
.table-data,
.table-responsive,
.dataTables_wrapper,
.modal-content,
.offcanvas {
    min-width: 0;
}

.responsive-scroll-x,
.table-responsive,
.dataTables_wrapper {
    -webkit-overflow-scrolling: touch;
}

.text-break-responsive,
.table-responsive td,
.table-responsive th,
.card-title,
.inner-title,
.page-head,
.al-page-head {
    overflow-wrap: anywhere;
}

.touch-target,
.main-content button,
.main-content .btn,
.main-content a.btn,
.primary-button,
.secondary-button,
.action-btn,
.paginate_button,
.dropdown-item,
.menu-item {
    touch-action: manipulation;
}

.responsive-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.responsive-stack > * {
    min-width: 0;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1125 !important;
}

.top-header-context {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
    gap: 5px;
    text-align: center;
}

.top-header-context strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-header .exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body:has(.top-header) {
    padding-top: 44px !important;
}

body:has(.top-header) .top-header {
    height: 44px !important;
    min-height: 44px !important;
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 24px !important;
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 1200 !important;
}

body:has(.top-header) .top-header::before {
    content: "" !important;
    width: 96px !important;
    height: 1px !important;
}

body:has(.top-header) .top-header-context {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

body:has(.top-header) .top-header-context strong {
    flex: 0 1 auto !important;
    max-width: 44vw !important;
}

body:has(.top-header) .top-header .exit {
    justify-self: end !important;
}

body:has(.top-header) .dash-header {
    z-index: 1190 !important;
}

.tgl-button {
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

.tgl-button svg {
    pointer-events: none;
}

.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}

.responsive-nowrap-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.responsive-nowrap-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .main-content {
        padding-left: 28px;
        padding-right: 28px;
    }

    .dash-header {
        padding-left: 24px;
        padding-right: 24px;
    }

    .table-responsive table td,
    .table-responsive table th {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

@media (max-width: 991.98px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: initial !important;
    }

    .dash-header,
    .main-content,
    .copyright-wrp {
        margin-left: 0 !important;
    }

    .main-content {
        padding: 24px var(--iv-tablet-gutter);
        overflow-x: hidden;
    }

    .dash-header {
        min-height: 64px;
        padding: 12px var(--iv-tablet-gutter);
    }

    .page-head,
    .al-page-head,
    .dt-top,
    .dt-bottom,
    .dataTables_wrapper .row,
    .dataTables_wrapper .d-flex {
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-head > *,
    .al-page-head > * {
        min-width: 0;
    }

    .row > [class*="col-lg-"],
    .row > [class*="col-xl-"],
    .row > [class*="col-xxl-"] {
        min-width: 0;
    }

    .mobile-menu {
        width: min(88vw, 360px) !important;
        max-width: 360px;
    }

    .mobile-menu .offcanvas-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu .sidebar {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100%;
        margin: 0 !important;
        z-index: auto !important;
    }

    .mobile-menu .sidebar-logo {
        display: none;
    }

    .mobile-menu .sidebar-menu {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 10px 12px 28px;
    }

    .mobile-menu .sidebar .menu-item,
    .mobile-menu .sidebar .dropdown-item {
        min-height: var(--iv-touch-target);
        display: flex;
        align-items: center;
    }

    .mobile-menu .sidebar .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        border: 0;
        box-shadow: none;
        float: none;
        margin: 4px 0 8px !important;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .dataTables_wrapper {
        width: 100%;
        overflow-x: visible;
    }

    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate {
        float: none !important;
    }

    .dataTables_filter input {
        max-width: 100%;
    }

    .modal-dialog {
        max-width: calc(100vw - 32px);
    }
}

/* Desktop sidebar toggle: full menu vs icon rail. */
@media (min-width: 992px) {
    body.sidebar-collapse .sidebar {
        width: 86px !important;
        overflow: visible !important;
    }

    body.sidebar-collapse .dash-header,
    body.sidebar-collapse .main-content,
    body.sidebar-collapse .copyright-wrp {
        margin-left: 86px !important;
    }

    body.sidebar-collapse .sidebar-logo {
        padding: 12px 14px !important;
        min-height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.sidebar-collapse .sidebar-logo .main-logo {
        display: none !important;
    }

    body.sidebar-collapse .sidebar-logo .collapse-fav {
        display: block !important;
    }

    body.sidebar-collapse .sidebar-logo .collapse-fav img {
        width: 44px !important;
        height: auto !important;
    }

    body.sidebar-collapse .sidebar-menu {
        padding: 16px 0 0 10px !important;
        overflow: visible !important;
        height: calc(100vh - 95px) !important;
    }

    body.sidebar-collapse .sidebar-menu > li {
        position: relative;
        margin-bottom: 6px;
    }

    body.sidebar-collapse .sidebar .menu-item {
        width: 66px !important;
        min-height: 48px !important;
        padding: 10px 14px !important;
        gap: 0 !important;
        justify-content: center !important;
        border-radius: 26px 0 0 26px !important;
    }

    body.sidebar-collapse .sidebar .menu-item:hover {
        padding-left: 14px !important;
    }

    body.sidebar-collapse .sidebar .menu-item > span,
    body.sidebar-collapse .sidebar .menu-item .arrow {
        display: none !important;
    }

    body.sidebar-collapse .sidebar .menu-item svg {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px;
    }

    body.sidebar-collapse .sidebar .dropdown {
        position: static;
    }

    body.sidebar-collapse .sidebar .dropdown .dropdown-menu {
        display: none !important;
    }

    body.sidebar-collapse .sidebar-switch-wrapper {
        padding: 12px 10px 8px !important;
        margin-bottom: 8px !important;
        border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
        position: relative !important;
    }

    body.sidebar-collapse .sidebar-switch-btn {
        width: 54px !important;
        min-width: 54px !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        justify-content: center !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, .13) !important;
        border: 1px solid rgba(255, 255, 255, .2) !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    body.sidebar-collapse .sidebar-switch-btn > svg:not(.dropdown-arrow) {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    body.sidebar-collapse .sidebar-switch-btn > svg:not(.dropdown-arrow) path {
        stroke: #fff !important;
    }

    body.sidebar-collapse .sidebar-switch-btn span,
    body.sidebar-collapse .sidebar-switch-btn .dropdown-arrow {
        display: none !important;
    }

    body.sidebar-collapse .switch-dropdown {
        position: fixed !important;
        left: 98px !important;
        top: 96px !important;
        right: auto !important;
        width: 260px !important;
        min-width: 260px !important;
        max-width: 320px !important;
        padding: 8px !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, .98) !important;
        border: 1px solid rgba(226, 232, 240, .94) !important;
        box-shadow: 0 22px 54px rgba(15, 23, 42, .24) !important;
        overflow: hidden !important;
        z-index: 10080 !important;
        color: #111827 !important;
        backdrop-filter: blur(14px);
    }

    body.sidebar-collapse .switch-dropdown-header {
        padding: 8px 8px 10px !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(226, 232, 240, .86) !important;
    }

    body.sidebar-collapse .switch-dropdown-header span {
        color: #64748b !important;
        font-size: 11px !important;
        font-weight: 800 !important;
    }

    body.sidebar-collapse .switch-option {
        min-height: 48px !important;
        padding: 9px 10px !important;
        gap: 10px !important;
        border: 0 !important;
        border-radius: 12px !important;
        color: #334155 !important;
    }

    body.sidebar-collapse .switch-option:hover,
    body.sidebar-collapse .switch-option:focus {
        background: #e8f1f2 !important;
        color: var(--role-accent, #0d5f6a) !important;
    }

    body.sidebar-collapse .switch-option-icon {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
        background: #f8fafc !important;
        color: #0f172a !important;
    }

    body.sidebar-collapse .switch-option-icon svg {
        width: 18px !important;
        height: 18px !important;
        stroke: currentColor !important;
    }

    body.sidebar-collapse .switch-option-icon svg path,
    body.sidebar-collapse .switch-option-icon svg line,
    body.sidebar-collapse .switch-option-icon svg circle,
    body.sidebar-collapse .switch-option-icon svg rect,
    body.sidebar-collapse .switch-option-icon svg polyline,
    body.sidebar-collapse .switch-option-icon svg polygon {
        stroke: #0f172a !important;
    }

    body.sidebar-collapse .switch-option-icon svg [fill]:not([fill="none"]) {
        fill: #0f172a !important;
    }

    body.sidebar-collapse .switch-option-content strong {
        color: #0f172a !important;
        font-size: 13px !important;
        font-weight: 800 !important;
    }

    body.sidebar-collapse .switch-option-content span {
        display: block !important;
        color: #64748b !important;
        font-size: 11px !important;
    }

    .sidebar-icon-popover {
        position: fixed;
        min-width: 230px;
        max-width: 320px;
        padding: 10px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        color: #111827;
        box-shadow: 0 22px 54px rgba(15, 23, 42, 0.24);
        border: 1px solid rgba(226, 232, 240, 0.94);
        z-index: 10060;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.25;
        pointer-events: auto;
        backdrop-filter: blur(14px);
    }

    .sidebar-popover-header {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 38px;
        padding: 4px 6px 10px;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    }

    .sidebar-popover-icon {
        width: 28px;
        min-width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: #f8fafc;
        color: #0f172a;
    }

    .sidebar-popover-icon svg {
        width: 18px;
        height: 18px;
    }

    .sidebar-popover-icon svg path,
    .sidebar-popover-icon svg line,
    .sidebar-popover-icon svg circle,
    .sidebar-popover-icon svg rect,
    .sidebar-popover-icon svg polyline,
    .sidebar-popover-icon svg polygon {
        stroke: #0f172a !important;
    }

    .sidebar-popover-icon svg [fill]:not([fill="none"]) {
        fill: #0f172a !important;
    }

    .sidebar-popover-header strong {
        min-width: 0;
        font-size: 15px;
        font-weight: 800;
        color: #0f172a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-popover-list {
        display: grid;
        gap: 4px;
        padding-top: 8px;
    }

    .sidebar-popover-link {
        min-height: 38px;
        display: flex;
        align-items: center;
        padding: 9px 10px;
        border-radius: 12px;
        color: #334155;
        font-size: 13px;
        font-weight: 650;
        text-decoration: none;
        white-space: normal;
    }

    .sidebar-popover-link:hover,
    .sidebar-popover-link:focus,
    .sidebar-popover-link.active {
        background: #e8f1f2;
        color: var(--role-accent, #0d5f6a);
    }

    .sidebar-popover-link.disabled {
        opacity: .55;
        pointer-events: none;
    }
}

/* Final header consistency layer for logged-in layouts. */
:root {
    --iv-context-header-h: 56px;
    --iv-dashboard-header-min-h: 84px;
}

body:has(.top-header) {
    padding-top: var(--iv-context-header-h) !important;
}

body:has(.top-header) .top-header {
    height: var(--iv-context-header-h) !important;
    min-height: var(--iv-context-header-h) !important;
    padding: 10px 32px !important;
    display: grid !important;
    grid-template-columns: minmax(120px, 1fr) minmax(0, auto) minmax(120px, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 1300 !important;
}

body:has(.top-header) .top-header::before {
    content: none !important;
}

body:has(.top-header) .top-header-context {
    grid-column: 2 !important;
    justify-self: center !important;
    max-width: min(720px, 62vw) !important;
    width: auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

body:has(.top-header) .top-header-context span,
body:has(.top-header) .top-header-context strong {
    min-width: 0 !important;
}

body:has(.top-header) .top-header-context strong {
    max-width: 360px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body:has(.top-header) .top-header .exit {
    grid-column: 3 !important;
    justify-self: end !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255, 255, 255, .35) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .06) !important;
    white-space: nowrap !important;
}

body:has(.top-header) .top-header .exit svg {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
}

body:has(.top-header) .dash-header {
    position: sticky !important;
    top: var(--iv-context-header-h) !important;
    z-index: 1200 !important;
    min-height: var(--iv-dashboard-header-min-h) !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 0 !important;
    background: #fff !important;
}

body:has(.top-header) .sidebar {
    top: var(--iv-context-header-h) !important;
    height: calc(100vh - var(--iv-context-header-h)) !important;
}

body:has(.top-header) .header-left,
body:has(.top-header) .header-rightside {
    min-width: 0 !important;
}

body:has(.top-header) .header-rightside {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

body:has(.top-header) .main-content {
    padding-top: max(34px, calc(var(--iv-dashboard-header-min-h) / 2)) !important;
    scroll-margin-top: calc(var(--iv-context-header-h) + var(--iv-dashboard-header-min-h) + 18px) !important;
}

body:has(.top-header) .main-content > .page-head:first-child,
body:has(.top-header) .main-content > [class$="-page-head"]:first-child,
body:has(.top-header) .main-content > .dash-title:first-child,
body:has(.top-header) .main-content > h1:first-child,
body:has(.top-header) .main-content > h2:first-child,
body:has(.top-header) .main-content > h3:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    scroll-margin-top: calc(var(--iv-context-header-h) + var(--iv-dashboard-header-min-h) + 18px) !important;
}

body:has(.top-header) .main-content > .page-head:first-child .dash-title,
body:has(.top-header) .main-content > .page-head:first-child h1,
body:has(.top-header) .main-content > .page-head:first-child h2,
body:has(.top-header) .main-content > .page-head:first-child h3 {
    margin-top: 0 !important;
}

body:has(.top-header) .dash-header + .main-content {
    border-top: 1px solid transparent !important;
}

/* Managed header fallback: applied by responsive.js for stable scroll behavior. */
body.has-managed-context {
    padding-top: var(--iv-context-header-h) !important;
}

body.has-managed-context .top-header {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    height: var(--iv-context-header-h) !important;
    min-height: var(--iv-context-header-h) !important;
    z-index: 1300 !important;
}

body.has-managed-context .dash-header {
    position: fixed !important;
    top: var(--iv-context-header-h) !important;
    left: 300px !important;
    right: 0 !important;
    width: auto !important;
    min-height: var(--iv-dashboard-header-min-h) !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    z-index: 1240 !important;
    background: #fff !important;
}

body.has-managed-context .main-content {
    margin-top: var(--iv-dashboard-header-min-h) !important;
    padding-top: 30px !important;
}

body.has-managed-context .sidebar {
    top: var(--iv-context-header-h) !important;
    height: calc(100vh - var(--iv-context-header-h)) !important;
}

body.has-managed-context.sidebar-collapse .dash-header {
    left: 90px !important;
}

body.has-managed-context .copyright-wrp {
    margin-top: 0 !important;
}

body.has-managed-context .main-content > .page-head:first-child,
body.has-managed-context .main-content > [class$="-page-head"]:first-child,
body.has-managed-context .main-content > .dash-title:first-child,
body.has-managed-context .main-content > h1:first-child,
body.has-managed-context .main-content > h2:first-child,
body.has-managed-context .main-content > h3:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Mobile/tablet bottom navigation generated from the existing sidebar. */
@media (max-width: 1199.98px) {
    body.iv-bottom-nav-ready {
        padding-bottom: 94px !important;
    }

    body.iv-bottom-nav-ready .main-content {
        padding-bottom: max(110px, env(safe-area-inset-bottom)) !important;
    }

    body.iv-bottom-nav-ready #offcanvasExample,
    body.iv-bottom-nav-ready #offcanvasExample.show {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.iv-bottom-nav-ready .offcanvas-backdrop {
        display: none !important;
    }

    .iv-bottom-menu {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 1360;
        pointer-events: none;
        font-family: inherit;
    }

    .iv-bottom-dock {
        position: fixed;
        left: 50%;
        bottom: max(10px, env(safe-area-inset-bottom));
        width: min(620px, calc(100vw - 24px));
        height: 68px;
        transform: translateX(-50%);
        border: 1px solid rgba(226, 232, 240, .9);
        border-radius: 34px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
        backdrop-filter: blur(16px);
        pointer-events: auto;
    }

    .iv-bottom-dock-scroll {
        height: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 78px 8px 14px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .iv-bottom-dock-scroll::-webkit-scrollbar {
        display: none;
    }

    .iv-bottom-nav-item {
        width: 46px;
        min-width: 46px;
        height: 46px;
        border: 0;
        border-radius: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: #64748b;
        transition: background .18s ease, color .18s ease, transform .18s ease;
    }

    .iv-bottom-nav-item.active,
    .iv-bottom-nav-item.is-open,
    .iv-bottom-nav-item:focus-visible {
        background: #e8f1f2;
        color: var(--role-accent, #0d5f6a);
        outline: 0;
    }

    .iv-bottom-nav-item:active {
        transform: scale(.96);
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        object-fit: contain;
    }

    .iv-bottom-nav-icon svg path,
    .iv-bottom-nav-icon svg line,
    .iv-bottom-nav-icon svg circle,
    .iv-bottom-nav-icon svg rect,
    .iv-bottom-nav-icon svg polyline,
    .iv-bottom-nav-icon svg polygon {
        stroke: currentColor !important;
    }

    .iv-bottom-menu-toggle {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 58px;
        height: 58px;
        min-width: 58px;
        transform: translate(-50%, -50%);
        border: 4px solid rgba(255, 255, 255, .86);
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        background: #1d9bf0;
        color: #fff;
        box-shadow: 0 10px 28px rgba(29, 155, 240, .38);
        font-size: 28px;
        line-height: 1;
    }

    .iv-bottom-menu-toggle span {
        width: 18px;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
        display: block;
    }

    .iv-bottom-menu.is-panel-open .iv-bottom-menu-toggle {
        font-size: 32px;
        font-weight: 300;
        gap: 0;
    }

    .iv-bottom-menu-panel,
    .iv-bottom-submenu {
        position: fixed;
        left: 50%;
        width: min(620px, calc(100vw - 24px));
        transform: translateX(-50%);
        pointer-events: auto;
        z-index: 1361;
    }

    .iv-bottom-menu-panel[hidden],
    .iv-bottom-submenu[hidden] {
        display: none !important;
    }

    .iv-bottom-menu-panel {
        bottom: max(88px, calc(env(safe-area-inset-bottom) + 88px));
        max-height: min(58dvh, 430px);
        border: 1px solid rgba(226, 232, 240, .94);
        border-radius: 22px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 24px 64px rgba(15, 23, 42, .22);
        overflow: hidden;
        backdrop-filter: blur(18px);
    }

    .iv-bottom-menu-head {
        min-height: 54px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid rgba(226, 232, 240, .86);
    }

    .iv-bottom-menu-head strong {
        color: #0f172a;
        font-size: 15px;
        font-weight: 800;
    }

    .iv-bottom-menu-head span {
        color: #64748b;
        font-size: 11px;
        font-weight: 650;
    }

    .iv-bottom-menu-list {
        max-height: calc(min(58dvh, 430px) - 54px);
        padding: 8px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .iv-bottom-menu-row {
        width: 100%;
        min-height: 48px;
        border: 0;
        border-radius: 14px;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 7px 10px;
        background: transparent;
        color: #0f172a;
        text-align: left;
    }

    .iv-bottom-menu-row.active,
    .iv-bottom-menu-row:hover,
    .iv-bottom-menu-row:focus-visible {
        background: #e8f1f2;
        outline: 0;
    }

    .iv-bottom-menu-row-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f8fafc;
        color: var(--role-accent, #0d5f6a);
    }

    .iv-bottom-menu-row-icon svg,
    .iv-bottom-menu-row-icon img {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

    .iv-bottom-menu-row-icon svg path,
    .iv-bottom-menu-row-icon svg line,
    .iv-bottom-menu-row-icon svg circle,
    .iv-bottom-menu-row-icon svg rect,
    .iv-bottom-menu-row-icon svg polyline,
    .iv-bottom-menu-row-icon svg polygon {
        stroke: currentColor !important;
    }

    .iv-bottom-menu-row-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        font-weight: 750;
    }

    .iv-bottom-submenu {
        bottom: max(88px, calc(env(safe-area-inset-bottom) + 88px));
        display: grid;
        gap: 8px;
        padding: 10px;
        border-radius: 22px;
        background: #1d9bf0;
        box-shadow: 0 18px 46px rgba(29, 155, 240, .32);
    }

    .iv-bottom-submenu-title {
        padding: 0 6px;
        color: rgba(255, 255, 255, .9);
        font-size: 11px;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .iv-bottom-submenu-scroll {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .iv-bottom-submenu-scroll::-webkit-scrollbar {
        display: none;
    }

    .iv-bottom-submenu-link {
        min-height: 36px;
        max-width: 170px;
        padding: 9px 12px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        background: rgba(255, 255, 255, .16);
        color: #fff;
        font-size: 12px;
        font-weight: 750;
        line-height: 1.1;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .iv-bottom-submenu-link.active,
    .iv-bottom-submenu-link:hover,
    .iv-bottom-submenu-link:focus {
        background: #fff;
        color: var(--role-accent, #0d5f6a);
    }

    .iv-bottom-submenu-link.disabled {
        opacity: .55;
        pointer-events: none;
    }
}

/* Final correction for bottom nav: no overlap, theme color, and safer spacing. */
@media (max-width: 1199.98px) {
    body.iv-bottom-nav-ready {
        padding-bottom: 128px !important;
    }

    body.iv-bottom-nav-ready .main-content {
        padding-bottom: max(148px, calc(env(safe-area-inset-bottom) + 148px)) !important;
    }

    .iv-bottom-dock {
        bottom: max(18px, calc(env(safe-area-inset-bottom) + 18px)) !important;
        width: min(560px, calc(100vw - 28px)) !important;
        height: 58px !important;
        border-radius: 30px !important;
        border-color: var(--role-accent-soft, rgba(13, 95, 106, .12)) !important;
        background: rgba(255, 255, 255, .98) !important;
        box-shadow: 0 14px 34px rgba(13, 95, 106, .18) !important;
        overflow: visible !important;
    }

    .iv-bottom-dock-scroll {
        height: 58px !important;
        gap: 10px !important;
        padding: 7px 14px !important;
        scroll-padding-inline: 14px !important;
        align-items: center !important;
    }

    .iv-bottom-nav-item {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        border-radius: 15px !important;
        color: #64748b !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .iv-bottom-nav-item.active,
    .iv-bottom-nav-item.is-open,
    .iv-bottom-nav-item:hover,
    .iv-bottom-nav-item:focus-visible {
        background: var(--role-accent-soft, rgba(13, 95, 106, .1)) !important;
        color: var(--role-accent, #0d5f6a) !important;
    }

    .iv-bottom-menu-toggle {
        top: -28px !important;
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        border: 5px solid rgba(255, 255, 255, .95) !important;
        background: linear-gradient(180deg, #16a3ad 0%, #0d5f6a 100%) !important;
        color: #fff !important;
        box-shadow: 0 12px 30px rgba(13, 95, 106, .34) !important;
        z-index: 5 !important;
    }

    .iv-bottom-menu-panel,
    .iv-bottom-submenu {
        bottom: max(96px, calc(env(safe-area-inset-bottom) + 96px)) !important;
        width: min(560px, calc(100vw - 28px)) !important;
    }

    .iv-bottom-menu-panel {
        max-height: min(56dvh, 420px) !important;
        border-color: var(--role-accent-soft, rgba(13, 95, 106, .12)) !important;
        box-shadow: 0 22px 58px rgba(13, 95, 106, .2) !important;
    }

    .iv-bottom-menu-head {
        min-height: 50px !important;
        background: linear-gradient(180deg, rgba(13, 95, 106, .07), rgba(13, 95, 106, 0)) !important;
    }

    .iv-bottom-menu-head strong,
    .iv-bottom-menu-row-label {
        color: #0f172a !important;
    }

    .iv-bottom-menu-list {
        max-height: calc(min(56dvh, 420px) - 50px) !important;
    }

    .iv-bottom-menu-row {
        min-height: 46px !important;
        border-radius: 12px !important;
    }

    .iv-bottom-menu-row.active,
    .iv-bottom-menu-row:hover,
    .iv-bottom-menu-row:focus-visible {
        background: var(--role-accent-soft, rgba(13, 95, 106, .09)) !important;
    }

    .iv-bottom-menu-row-icon {
        background: var(--role-accent-soft, rgba(13, 95, 106, .09)) !important;
        color: var(--role-accent, #0d5f6a) !important;
    }

    .iv-bottom-submenu {
        background: linear-gradient(180deg, #147986 0%, #0d5f6a 100%) !important;
        box-shadow: 0 18px 42px rgba(13, 95, 106, .28) !important;
    }

    .iv-bottom-submenu-link {
        background: rgba(255, 255, 255, .15) !important;
    }

    .iv-bottom-submenu-link.active,
    .iv-bottom-submenu-link:hover,
    .iv-bottom-submenu-link:focus {
        color: var(--role-accent, #0d5f6a) !important;
    }
}

@media (max-width: 575.98px) {
    .iv-bottom-dock {
        width: calc(100vw - 32px) !important;
    }

    .iv-bottom-dock-scroll {
        justify-content: flex-start !important;
    }

    .iv-bottom-nav-item {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
    }
}

/* Reference-style bottom dock refinement. */
@media (max-width: 1199.98px) {
    .iv-bottom-dock {
        bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px)) !important;
        height: 64px !important;
        width: min(560px, calc(100vw - 22px)) !important;
        border-radius: 32px !important;
        background: rgba(255, 255, 255, .98) !important;
        border: 1px solid rgba(226, 232, 240, .8) !important;
        box-shadow: 0 20px 44px rgba(13, 95, 106, .2) !important;
    }

    .iv-bottom-dock::before {
        content: "" !important;
        position: absolute !important;
        left: 50% !important;
        top: -70px !important;
        width: min(390px, calc(100vw - 40px)) !important;
        height: 52px !important;
        transform: translateX(-50%) !important;
        border-radius: 28px !important;
        background: linear-gradient(180deg, #15aeb9 0%, #0d7f8d 100%) !important;
        box-shadow: 0 14px 32px rgba(13, 95, 106, .26) !important;
        pointer-events: none !important;
    }

    .iv-bottom-dock-scroll {
        height: 64px !important;
        padding: 9px 16px !important;
        gap: 14px !important;
        justify-content: space-between !important;
        overflow-x: auto !important;
    }

    .iv-bottom-nav-item {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        border-radius: 18px !important;
        color: #53657e !important;
        background: transparent !important;
    }

    .iv-bottom-nav-item.active,
    .iv-bottom-nav-item.is-open,
    .iv-bottom-nav-item:hover,
    .iv-bottom-nav-item:focus-visible {
        background: var(--role-accent-soft, rgba(13, 95, 106, .1)) !important;
        color: var(--role-accent, #0d5f6a) !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        width: 23px !important;
        height: 23px !important;
        font-size: 22px !important;
    }

    .iv-bottom-nav-icon svg path,
    .iv-bottom-nav-icon svg line,
    .iv-bottom-nav-icon svg circle,
    .iv-bottom-nav-icon svg rect,
    .iv-bottom-nav-icon svg polyline,
    .iv-bottom-nav-icon svg polygon {
        stroke-width: 2.25 !important;
    }

    .iv-bottom-menu-toggle {
        top: -22px !important;
        width: 62px !important;
        height: 62px !important;
        min-width: 62px !important;
        border-width: 5px !important;
        background: linear-gradient(180deg, #15aeb9 0%, #0d7f8d 100%) !important;
        box-shadow: 0 12px 32px rgba(13, 95, 106, .34) !important;
    }

    .iv-bottom-menu-toggle span {
        width: 20px !important;
        height: 2.5px !important;
    }

    .iv-bottom-submenu {
        bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px)) !important;
        width: min(390px, calc(100vw - 40px)) !important;
        min-height: 52px !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 28px !important;
        background: linear-gradient(180deg, #15aeb9 0%, #0d7f8d 100%) !important;
        padding: 8px 12px !important;
    }

    .iv-bottom-submenu-title {
        display: none !important;
    }

    .iv-bottom-submenu-scroll {
        width: 100% !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .iv-bottom-submenu-link {
        min-width: 44px !important;
        min-height: 38px !important;
        max-width: 128px !important;
        padding: 9px 11px !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, .14) !important;
        font-size: 11px !important;
    }
}

@media (max-width: 575.98px) {
    .iv-bottom-dock {
        width: calc(100vw - 28px) !important;
    }

    .iv-bottom-dock::before {
        width: calc(100vw - 64px) !important;
    }

    .iv-bottom-dock-scroll {
        gap: 8px !important;
        padding-inline: 12px !important;
    }

    .iv-bottom-nav-item {
        width: 43px !important;
        min-width: 43px !important;
        height: 43px !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        width: 22px !important;
        height: 22px !important;
    }
}

/* Reference GIF style: clean bottom tab bar with centered floating action. */
@media (max-width: 1199.98px) {
    .iv-bottom-dock {
        bottom: 0 !important;
        width: min(560px, 100vw) !important;
        height: 70px !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-top: 1px solid rgba(226, 232, 240, .9) !important;
        background: #ffffff !important;
        box-shadow: 0 -16px 36px rgba(13, 95, 106, .14) !important;
        overflow: visible !important;
    }

    .iv-bottom-dock::before {
        display: none !important;
    }

    .iv-bottom-dock-scroll {
        height: 70px !important;
        padding: 9px 18px !important;
        gap: 12px !important;
        justify-content: flex-start !important;
    }

    .iv-bottom-nav-spacer {
        width: 76px !important;
        min-width: 76px !important;
        height: 1px !important;
        display: block !important;
        pointer-events: none !important;
    }

    .iv-bottom-nav-item {
        width: 50px !important;
        min-width: 50px !important;
        height: 50px !important;
        border-radius: 16px !important;
        color: #52637c !important;
        background: transparent !important;
    }

    .iv-bottom-nav-item.active,
    .iv-bottom-nav-item.is-open,
    .iv-bottom-nav-item:hover,
    .iv-bottom-nav-item:focus-visible {
        background: var(--role-accent-soft, rgba(13, 95, 106, .08)) !important;
        color: var(--role-accent, #0d5f6a) !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        width: 24px !important;
        height: 24px !important;
        font-size: 23px !important;
    }

    .iv-bottom-nav-icon svg path,
    .iv-bottom-nav-icon svg line,
    .iv-bottom-nav-icon svg circle,
    .iv-bottom-nav-icon svg rect,
    .iv-bottom-nav-icon svg polyline,
    .iv-bottom-nav-icon svg polygon {
        stroke-width: 2.35 !important;
    }

    .iv-bottom-menu-toggle {
        top: -3px !important;
        width: 66px !important;
        height: 66px !important;
        min-width: 66px !important;
        border: 5px solid #eef7ff !important;
        background: #1d9bf0 !important;
        color: #ffffff !important;
        box-shadow: 0 10px 28px rgba(29, 155, 240, .34) !important;
        font-size: 38px !important;
        font-weight: 300 !important;
        line-height: 1 !important;
        flex-direction: row !important;
        gap: 0 !important;
    }

    .iv-bottom-menu.is-panel-open .iv-bottom-menu-toggle {
        font-size: 34px !important;
        background: #1d9bf0 !important;
    }

    .iv-bottom-menu-toggle span {
        display: none !important;
    }

    .iv-bottom-menu-panel,
    .iv-bottom-submenu {
        bottom: 82px !important;
        width: min(520px, calc(100vw - 28px)) !important;
    }

    .iv-bottom-submenu {
        min-height: 50px !important;
        border-radius: 25px !important;
        background: #1d9bf0 !important;
        box-shadow: 0 14px 34px rgba(29, 155, 240, .28) !important;
    }
}

@media (max-width: 575.98px) {
    .iv-bottom-dock {
        width: 100vw !important;
    }

    .iv-bottom-dock-scroll {
        padding-inline: 14px !important;
        gap: 8px !important;
    }

    .iv-bottom-nav-item {
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
    }

    .iv-bottom-nav-spacer {
        width: 72px !important;
        min-width: 72px !important;
    }
}

/* Final dock correction: compact spacing, theme icons, submenu only when useful. */
@media (max-width: 1199.98px) {
    body.iv-bottom-nav-ready {
        padding-bottom: 92px !important;
    }

    body.iv-bottom-nav-ready .main-content {
        padding-bottom: max(106px, calc(env(safe-area-inset-bottom) + 106px)) !important;
    }

    .iv-bottom-dock {
        height: 62px !important;
        bottom: 0 !important;
        background: #ffffff !important;
        border-top: 1px solid var(--role-accent-soft, rgba(13, 95, 106, .12)) !important;
        box-shadow: 0 -12px 28px rgba(13, 95, 106, .12) !important;
    }

    .iv-bottom-dock-scroll {
        height: 62px !important;
        padding: 7px 14px !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .iv-bottom-nav-spacer {
        width: 66px !important;
        min-width: 66px !important;
    }

    .iv-bottom-nav-item {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        color: var(--role-accent, #0d5f6a) !important;
        opacity: .92 !important;
    }

    .iv-bottom-nav-item.active,
    .iv-bottom-nav-item.is-open,
    .iv-bottom-nav-item:hover,
    .iv-bottom-nav-item:focus-visible {
        background: var(--role-accent-soft, rgba(13, 95, 106, .1)) !important;
        color: var(--role-accent, #0d5f6a) !important;
        opacity: 1 !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        width: 24px !important;
        height: 24px !important;
        font-size: 23px !important;
    }

    .iv-bottom-nav-icon svg path,
    .iv-bottom-nav-icon svg line,
    .iv-bottom-nav-icon svg circle,
    .iv-bottom-nav-icon svg rect,
    .iv-bottom-nav-icon svg polyline,
    .iv-bottom-nav-icon svg polygon {
        stroke: currentColor !important;
        stroke-width: 2.4 !important;
    }

    .iv-bottom-nav-icon svg [fill]:not([fill="none"]) {
        fill: currentColor !important;
    }

    .iv-bottom-menu-toggle {
        top: 10px !important;
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        border: 4px solid #ffffff !important;
        background: linear-gradient(180deg, #1598a5 0%, #0d5f6a 100%) !important;
        box-shadow: 0 9px 22px rgba(13, 95, 106, .28) !important;
        color: #ffffff !important;
        font-size: 30px !important;
        line-height: 1 !important;
    }

    .iv-bottom-menu.is-panel-open .iv-bottom-menu-toggle {
        background: linear-gradient(180deg, #1598a5 0%, #0d5f6a 100%) !important;
        font-size: 30px !important;
    }

    .iv-bottom-menu-panel,
    .iv-bottom-submenu {
        bottom: 74px !important;
    }

    .iv-bottom-submenu {
        background: linear-gradient(180deg, #1598a5 0%, #0d5f6a 100%) !important;
        box-shadow: 0 14px 32px rgba(13, 95, 106, .24) !important;
    }
}

@media (max-width: 575.98px) {
    .iv-bottom-dock-scroll {
        padding-inline: 12px !important;
        gap: 6px !important;
    }

    .iv-bottom-nav-item {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
    }

    .iv-bottom-nav-spacer {
        width: 60px !important;
        min-width: 60px !important;
    }

    .iv-bottom-menu-toggle {
        top: 10px !important;
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
    }
}

/* Final adaptive dock spacing and larger readable icons. */
@media (max-width: 1199.98px) {
    .iv-bottom-dock {
        height: 70px !important;
    }

    .iv-bottom-dock-scroll {
        height: 70px !important;
        padding: 8px 16px !important;
        gap: 10px !important;
        align-items: center !important;
        scroll-snap-type: x proximity !important;
    }

    .iv-bottom-menu.is-compact .iv-bottom-dock-scroll {
        justify-content: space-around !important;
        overflow-x: hidden !important;
    }

    .iv-bottom-menu.is-scrollable .iv-bottom-dock-scroll {
        justify-content: flex-start !important;
        overflow-x: auto !important;
    }

    .iv-bottom-nav-item {
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
        border-radius: 18px !important;
        scroll-snap-align: center !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        font-size: 28px !important;
    }

    .iv-bottom-nav-icon svg path,
    .iv-bottom-nav-icon svg line,
    .iv-bottom-nav-icon svg circle,
    .iv-bottom-nav-icon svg rect,
    .iv-bottom-nav-icon svg polyline,
    .iv-bottom-nav-icon svg polygon {
        stroke: currentColor !important;
        stroke-width: 2.6 !important;
    }

    .iv-bottom-nav-icon svg [fill]:not([fill="none"]) {
        fill: currentColor !important;
    }

    .iv-bottom-nav-spacer {
        width: 66px !important;
        min-width: 66px !important;
    }

    .iv-bottom-menu-toggle {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        top: 6px !important;
        font-size: 34px !important;
    }

    .iv-bottom-menu.is-panel-open .iv-bottom-menu-toggle {
        font-size: 34px !important;
    }
}

@media (max-width: 575.98px) {
    .iv-bottom-dock-scroll {
        padding-inline: 10px !important;
        gap: 6px !important;
    }

    .iv-bottom-nav-item {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        width: 27px !important;
        height: 27px !important;
        min-width: 27px !important;
        font-size: 26px !important;
    }

    .iv-bottom-nav-spacer {
        width: 58px !important;
        min-width: 58px !important;
    }

    .iv-bottom-menu-toggle {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        top: 8px !important;
        font-size: 32px !important;
    }
}

/* iOS-style 5-slot dock: first 4 menus + More as the 5th when needed. */
@media (max-width: 1199.98px) {
    body.iv-bottom-nav-ready {
        padding-bottom: 96px !important;
    }

    body.iv-bottom-nav-ready .main-content {
        padding-bottom: max(112px, calc(env(safe-area-inset-bottom) + 112px)) !important;
    }

    .iv-bottom-dock {
        left: 50% !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        width: min(420px, calc(100vw - 28px)) !important;
        height: 70px !important;
        transform: translateX(-50%) !important;
        border: 1px solid rgba(255, 255, 255, .08) !important;
        border-radius: 36px !important;
        background: rgba(16, 18, 20, .96) !important;
        box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
        backdrop-filter: blur(18px) saturate(140%) !important;
        overflow: hidden !important;
    }

    .iv-bottom-dock::before {
        display: none !important;
    }

    .iv-bottom-dock-scroll {
        width: 100% !important;
        height: 70px !important;
        padding: 8px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        overflow: hidden !important;
        scroll-snap-type: none !important;
    }

    .iv-bottom-menu.is-compact .iv-bottom-dock-scroll,
    .iv-bottom-menu.is-scrollable .iv-bottom-dock-scroll {
        justify-content: space-between !important;
        overflow: hidden !important;
    }

    .iv-bottom-nav-spacer {
        display: none !important;
    }

    .iv-bottom-nav-item,
    .iv-bottom-menu-toggle {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 66px !important;
        height: 54px !important;
        min-height: 54px !important;
        border: 0 !important;
        border-radius: 24px !important;
        background: transparent !important;
        color: rgba(255, 255, 255, .78) !important;
        box-shadow: none !important;
        opacity: 1 !important;
    }

    .iv-bottom-nav-item.active,
    .iv-bottom-nav-item.is-open,
    .iv-bottom-nav-item:hover,
    .iv-bottom-nav-item:focus-visible,
    .iv-bottom-menu.is-panel-open .iv-bottom-menu-toggle {
        background: rgba(255, 255, 255, .1) !important;
        color: var(--role-accent, #33fff6) !important;
        outline: 0 !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        font-size: 28px !important;
    }

    .iv-bottom-nav-icon svg path,
    .iv-bottom-nav-icon svg line,
    .iv-bottom-nav-icon svg circle,
    .iv-bottom-nav-icon svg rect,
    .iv-bottom-nav-icon svg polyline,
    .iv-bottom-nav-icon svg polygon {
        stroke: currentColor !important;
        stroke-width: 2.55 !important;
    }

    .iv-bottom-nav-icon svg [fill]:not([fill="none"]) {
        fill: currentColor !important;
    }

    .iv-bottom-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 4px !important;
        font-size: 30px !important;
        font-weight: 300 !important;
        line-height: 1 !important;
    }

    .iv-bottom-menu-toggle span {
        width: 24px !important;
        height: 2.5px !important;
        display: block !important;
        border-radius: 999px !important;
        background: currentColor !important;
    }

    .iv-bottom-menu.is-panel-open .iv-bottom-menu-toggle {
        flex-direction: row !important;
        gap: 0 !important;
        font-size: 34px !important;
    }

    .iv-bottom-menu.is-panel-open .iv-bottom-menu-toggle span {
        display: none !important;
    }

    .iv-bottom-menu-panel,
    .iv-bottom-submenu {
        bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px)) !important;
        width: min(420px, calc(100vw - 28px)) !important;
    }

    .iv-bottom-menu-panel {
        max-height: min(56dvh, 430px) !important;
        border-radius: 28px !important;
        border: 1px solid rgba(255, 255, 255, .08) !important;
        background: rgba(20, 22, 25, .98) !important;
        box-shadow: 0 22px 58px rgba(0, 0, 0, .34) !important;
        color: #fff !important;
    }

    .iv-bottom-menu-head {
        border-bottom-color: rgba(255, 255, 255, .08) !important;
        background: transparent !important;
    }

    .iv-bottom-menu-head strong,
    .iv-bottom-menu-row-label {
        color: #ffffff !important;
    }

    .iv-bottom-menu-head span {
        color: rgba(255, 255, 255, .58) !important;
    }

    .iv-bottom-menu-row {
        color: #fff !important;
        border-radius: 18px !important;
    }

    .iv-bottom-menu-row.active,
    .iv-bottom-menu-row:hover,
    .iv-bottom-menu-row:focus-visible {
        background: rgba(255, 255, 255, .1) !important;
    }

    .iv-bottom-menu-row-icon {
        background: rgba(255, 255, 255, .1) !important;
        color: var(--role-accent, #33fff6) !important;
    }

    .iv-bottom-submenu {
        border-radius: 28px !important;
        background: rgba(16, 18, 20, .96) !important;
        box-shadow: 0 18px 44px rgba(0, 0, 0, .3) !important;
    }

    .iv-bottom-submenu-link {
        background: rgba(255, 255, 255, .1) !important;
        color: #ffffff !important;
    }

    .iv-bottom-submenu-link.active,
    .iv-bottom-submenu-link:hover,
    .iv-bottom-submenu-link:focus {
        background: var(--role-accent, #33fff6) !important;
        color: var(--role-accent-on, #0d4f59) !important;
    }
}

@media (max-width: 575.98px) {
    .iv-bottom-dock {
        width: calc(100vw - 24px) !important;
        height: 66px !important;
        border-radius: 34px !important;
    }

    .iv-bottom-dock-scroll {
        height: 66px !important;
        padding: 7px 9px !important;
        gap: 4px !important;
    }

    .iv-bottom-nav-item,
    .iv-bottom-menu-toggle {
        height: 52px !important;
        min-height: 52px !important;
        border-radius: 22px !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 27px !important;
    }
}

/* Final white iOS dock theme with clear icons and unclipped scroll panel. */
@media (max-width: 1199.98px) {
    .iv-bottom-dock {
        background: rgba(255, 255, 255, .98) !important;
        border: 1px solid var(--role-accent-soft, rgba(13, 95, 106, .1)) !important;
        box-shadow: 0 18px 42px rgba(13, 95, 106, .18) !important;
        backdrop-filter: blur(18px) saturate(145%) !important;
    }

    .iv-bottom-nav-item,
    .iv-bottom-menu-toggle {
        color: #475569 !important;
        background: transparent !important;
        -webkit-font-smoothing: antialiased !important;
        text-rendering: geometricPrecision !important;
    }

    .iv-bottom-nav-item.active,
    .iv-bottom-nav-item.is-open,
    .iv-bottom-nav-item:hover,
    .iv-bottom-nav-item:focus-visible,
    .iv-bottom-menu.is-panel-open .iv-bottom-menu-toggle {
        background: var(--role-accent-soft, rgba(13, 95, 106, .1)) !important;
        color: var(--role-accent, #0d5f6a) !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        opacity: 1 !important;
        filter: none !important;
        transform: translateZ(0) !important;
        image-rendering: auto !important;
    }

    .iv-bottom-nav-icon svg,
    .iv-bottom-menu-row-icon svg {
        shape-rendering: geometricPrecision !important;
    }

    .iv-bottom-nav-icon svg path,
    .iv-bottom-nav-icon svg line,
    .iv-bottom-nav-icon svg circle,
    .iv-bottom-nav-icon svg rect,
    .iv-bottom-nav-icon svg polyline,
    .iv-bottom-nav-icon svg polygon,
    .iv-bottom-menu-row-icon svg path,
    .iv-bottom-menu-row-icon svg line,
    .iv-bottom-menu-row-icon svg circle,
    .iv-bottom-menu-row-icon svg rect,
    .iv-bottom-menu-row-icon svg polyline,
    .iv-bottom-menu-row-icon svg polygon {
        stroke: currentColor !important;
        stroke-width: 2.5 !important;
        vector-effect: non-scaling-stroke !important;
    }

    .iv-bottom-menu-panel {
        display: flex !important;
        flex-direction: column !important;
        max-height: min(58dvh, 440px) !important;
        padding: 0 !important;
        border: 1px solid var(--role-accent-soft, rgba(13, 95, 106, .12)) !important;
        border-radius: 26px !important;
        background: rgba(255, 255, 255, .99) !important;
        color: #0f172a !important;
        box-shadow: 0 22px 58px rgba(13, 95, 106, .22) !important;
        overflow: hidden !important;
    }

    .iv-bottom-menu-head {
        position: sticky !important;
        top: 0 !important;
        z-index: 2 !important;
        flex: 0 0 auto !important;
        min-height: 52px !important;
        padding: 12px 16px !important;
        border-bottom: 1px solid var(--role-accent-soft, rgba(13, 95, 106, .1)) !important;
        background: rgba(255, 255, 255, .98) !important;
    }

    .iv-bottom-menu-head strong,
    .iv-bottom-menu-row-label {
        color: #0f172a !important;
    }

    .iv-bottom-menu-head span {
        color: #64748b !important;
    }

    .iv-bottom-menu-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 10px 8px 12px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scroll-padding-top: 10px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .iv-bottom-menu-row:first-child {
        margin-top: 0 !important;
    }

    .iv-bottom-menu-row {
        min-height: 48px !important;
        border-radius: 16px !important;
        color: #0f172a !important;
        background: transparent !important;
    }

    .iv-bottom-menu-row.active,
    .iv-bottom-menu-row:hover,
    .iv-bottom-menu-row:focus-visible {
        background: var(--role-accent-soft, rgba(13, 95, 106, .08)) !important;
    }

    .iv-bottom-menu-row-icon {
        background: var(--role-accent-soft, rgba(13, 95, 106, .09)) !important;
        color: var(--role-accent, #0d5f6a) !important;
    }

    .iv-bottom-submenu {
        border: 1px solid var(--role-accent-soft, rgba(13, 95, 106, .12)) !important;
        background: rgba(255, 255, 255, .99) !important;
        box-shadow: 0 18px 44px rgba(13, 95, 106, .2) !important;
    }

    .iv-bottom-submenu-link {
        background: var(--role-accent-soft, rgba(13, 95, 106, .09)) !important;
        color: var(--role-accent, #0d5f6a) !important;
    }

    .iv-bottom-submenu-link.active,
    .iv-bottom-submenu-link:hover,
    .iv-bottom-submenu-link:focus {
        background: var(--role-accent-text, #0d5f6a) !important;
        color: #ffffff !important;
    }
}

/* Final dock fit fixes: unclipped submenu start + compact widths for fewer menus. */
@media (max-width: 1199.98px) {
    .iv-bottom-submenu {
        overflow: hidden !important;
        padding: 8px 10px !important;
    }

    .iv-bottom-submenu-scroll {
        justify-content: flex-start !important;
        padding: 0 2px !important;
        scroll-padding-left: 2px !important;
        scroll-padding-right: 2px !important;
        overflow-x: auto !important;
    }

    .iv-bottom-submenu-link:first-child {
        margin-left: 0 !important;
    }

    .iv-bottom-menu.is-compact .iv-bottom-dock-scroll {
        justify-content: center !important;
    }

    .iv-bottom-menu.is-compact .iv-bottom-nav-item {
        flex: 0 0 54px !important;
    }

    .iv-bottom-menu[data-menu-count="1"] .iv-bottom-dock {
        width: 96px !important;
    }

    .iv-bottom-menu[data-menu-count="2"] .iv-bottom-dock {
        width: 166px !important;
    }

    .iv-bottom-menu[data-menu-count="3"] .iv-bottom-dock {
        width: 236px !important;
    }

    .iv-bottom-menu[data-menu-count="4"] .iv-bottom-dock {
        width: 306px !important;
    }

    .iv-bottom-menu[data-menu-count="5"] .iv-bottom-dock {
        width: 376px !important;
    }

    .iv-bottom-menu.is-scrollable .iv-bottom-dock {
        width: min(420px, calc(100vw - 28px)) !important;
    }
}

@media (max-width: 575.98px) {
    .iv-bottom-menu[data-menu-count="1"] .iv-bottom-dock {
        width: 88px !important;
    }

    .iv-bottom-menu[data-menu-count="2"] .iv-bottom-dock {
        width: 150px !important;
    }

    .iv-bottom-menu[data-menu-count="3"] .iv-bottom-dock {
        width: 212px !important;
    }

    .iv-bottom-menu[data-menu-count="4"] .iv-bottom-dock {
        width: 274px !important;
    }

    .iv-bottom-menu[data-menu-count="5"] .iv-bottom-dock,
    .iv-bottom-menu.is-scrollable .iv-bottom-dock {
        width: calc(100vw - 24px) !important;
    }

    .iv-bottom-menu.is-compact .iv-bottom-nav-item {
        flex-basis: 48px !important;
    }
}

/* Compact mobile/tablet chart empty states so "No data available" never dominates KPI cards. */
@media (max-width: 1199.98px) {
    .main-content .apexcharts-text.apexcharts-no-data-text,
    .main-content .apexcharts-no-data-text,
    .main-content svg text.apexcharts-no-data-text {
        fill: var(--iv-text-2, #64748b) !important;
        color: var(--iv-text-2, #64748b) !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    .main-content .dash-box .apexcharts-text.apexcharts-no-data-text,
    .main-content .dash-box .apexcharts-no-data-text,
    .main-content .coach-dashbox .apexcharts-text.apexcharts-no-data-text,
    .main-content .coach-dashbox .apexcharts-no-data-text {
        fill: rgba(255, 255, 255, .78) !important;
        color: rgba(255, 255, 255, .78) !important;
        font-size: 10px !important;
        font-weight: 700 !important;
    }

    .main-content .chart-empty,
    .main-content .chart-empty-state,
    .main-content .empty-card,
    .main-content .empty-state {
        min-height: 72px !important;
        padding: 10px !important;
        color: var(--iv-text-2, #64748b) !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }

    .main-content .chart-empty p,
    .main-content .chart-empty-state p,
    .main-content .empty-card p,
    .main-content .empty-state p {
        margin: 0 !important;
        color: inherit !important;
        font-size: 11px !important;
        font-weight: 650 !important;
        line-height: 1.25 !important;
    }

    .main-content .chart-empty i,
    .main-content .chart-empty-state i,
    .main-content .empty-state i {
        margin-bottom: 6px !important;
        color: #94a3b8 !important;
        font-size: 18px !important;
        opacity: .42 !important;
    }
}

@media (max-width: 575.98px) {
    .main-content .apexcharts-text.apexcharts-no-data-text,
    .main-content .apexcharts-no-data-text,
    .main-content svg text.apexcharts-no-data-text {
        font-size: 9px !important;
    }

    .main-content .dash-box .apexcharts-text.apexcharts-no-data-text,
    .main-content .dash-box .apexcharts-no-data-text,
    .main-content .coach-dashbox .apexcharts-text.apexcharts-no-data-text,
    .main-content .coach-dashbox .apexcharts-no-data-text {
        font-size: 8px !important;
    }
}

/* Final dashboard mobile/tablet polish: two stat cards per row and compact hero. */
@media (max-width: 1199.98px) {
    .main-content:has(.dash-box) .row,
    .main-content:has(.coach-dashbox) .row,
    .main-content:has(.club-dashbox) .row,
    .dashboard-page .row {
        --bs-gutter-x: 10px !important;
        --bs-gutter-y: 10px !important;
    }

    .main-content:has(.dash-box) .dash-column,
    .main-content:has(.dash-box) .row > [class*="col-"],
    .main-content:has(.coach-dashbox) .dash-column,
    .main-content:has(.coach-dashbox) .row > [class*="col-"],
    .main-content:has(.club-dashbox) .dash-column,
    .main-content:has(.club-dashbox) .row > [class*="col-"],
    .dashboard-page .row > [class*="col-"] {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    .dash-box,
    .coach-dashbox,
    .club-dashbox,
    .athlete-box {
        min-height: 108px !important;
        height: 100% !important;
        padding: 14px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 8px !important;
        overflow: hidden !important;
    }

    .dash-box .icon-circle,
    .coach-dashbox .icon-circle,
    .club-dashbox .icon-circle,
    .athlete-box .icon-circle {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
        margin-bottom: 7px !important;
    }

    .dash-box .icon-circle svg,
    .coach-dashbox .icon-circle svg,
    .club-dashbox .icon-circle svg,
    .athlete-box .icon-circle svg {
        width: 18px !important;
        height: 18px !important;
    }

    .dash-box .inner-title,
    .dash-box h3,
    .dash-box h4,
    .coach-dashbox .inner-title,
    .coach-dashbox h3,
    .coach-dashbox h4,
    .club-dashbox .inner-title,
    .club-dashbox h3,
    .club-dashbox h4 {
        max-width: 100% !important;
        font-size: 13px !important;
        line-height: 1.12 !important;
        margin: 0 0 2px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .dash-box p,
    .coach-dashbox p,
    .club-dashbox p,
    .athlete-box p {
        font-size: 10px !important;
        line-height: 1.15 !important;
        margin: 0 !important;
        opacity: .88 !important;
    }

    .dash-box .count-text,
    .coach-dashbox .count-text,
    .club-dashbox .count-text {
        flex: 0 0 auto !important;
        font-size: 28px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        margin-left: 6px !important;
    }

    .section-title,
    .sec-lbl {
        margin: 14px 0 8px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
        letter-spacing: .02em !important;
    }

    .team-hero,
    .g-hero,
    .welcome-card {
        min-height: auto !important;
        margin-bottom: 12px !important;
        padding: 14px !important;
        border-radius: 14px !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        overflow: hidden !important;
    }

    .team-hero-avatar {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 16px !important;
    }

    .team-hero-avatar i {
        font-size: 20px !important;
    }

    .team-hero-body {
        min-width: 0 !important;
    }

    .team-hero-body h2,
    .welcome-name,
    .g-hero h1 {
        max-width: 100% !important;
        font-size: 16px !important;
        line-height: 1.15 !important;
        margin: 0 0 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .team-hero-meta {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .team-hero-meta::-webkit-scrollbar {
        display: none !important;
    }

    .team-hero-chip,
    .team-hero-badge {
        max-width: 100% !important;
        min-height: 22px !important;
        padding: 4px 8px !important;
        border-radius: 999px !important;
        font-size: 9px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .team-hero-badge {
        grid-column: 1 / -1 !important;
        justify-self: start !important;
        margin-top: -2px !important;
    }
}

@media (max-width: 575.98px) {
    .main-content:has(.dash-box) .row,
    .main-content:has(.coach-dashbox) .row,
    .main-content:has(.club-dashbox) .row,
    .dashboard-page .row {
        --bs-gutter-x: 7px !important;
        --bs-gutter-y: 7px !important;
    }

    .dash-box,
    .coach-dashbox,
    .club-dashbox,
    .athlete-box {
        min-height: 86px !important;
        padding: 10px !important;
        border-radius: 8px !important;
    }

    .dash-box .icon-circle,
    .coach-dashbox .icon-circle,
    .club-dashbox .icon-circle,
    .athlete-box .icon-circle {
        width: 28px !important;
        min-width: 28px !important;
        height: 28px !important;
        border-radius: 8px !important;
        margin-bottom: 5px !important;
    }

    .dash-box .inner-title,
    .dash-box h3,
    .dash-box h4,
    .coach-dashbox .inner-title,
    .coach-dashbox h3,
    .coach-dashbox h4,
    .club-dashbox .inner-title,
    .club-dashbox h3,
    .club-dashbox h4 {
        font-size: 10px !important;
        line-height: 1.08 !important;
    }

    .dash-box p,
    .coach-dashbox p,
    .club-dashbox p,
    .athlete-box p {
        font-size: 8px !important;
        line-height: 1.1 !important;
    }

    .dash-box .count-text,
    .coach-dashbox .count-text,
    .club-dashbox .count-text {
        font-size: 24px !important;
    }

    .team-hero,
    .g-hero,
    .welcome-card {
        padding: 10px !important;
        border-radius: 10px !important;
        gap: 8px !important;
    }

    .team-hero-avatar {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    .team-hero-body h2,
    .welcome-name,
    .g-hero h1 {
        font-size: 13px !important;
    }
}

/* Final narrow dashboard repair: stable 2-column cards without text collisions. */
@media (max-width: 575.98px) {
    .main-content:has(.dash-box) {
        padding-inline: 8px !important;
    }

    .main-content:has(.dash-box) .row > [class*="col-"],
    .main-content:has(.coach-dashbox) .row > [class*="col-"],
    .main-content:has(.club-dashbox) .row > [class*="col-"],
    .dashboard-page .row > [class*="col-"] {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    .dash-box,
    .coach-dashbox,
    .club-dashbox,
    .athlete-box {
        min-height: 104px !important;
        padding: 9px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-content: space-between !important;
        align-items: start !important;
        gap: 5px !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .dash-box > div:first-child,
    .coach-dashbox > div:first-child,
    .club-dashbox > div:first-child,
    .athlete-box > div:first-child {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .dash-box .icon-circle,
    .coach-dashbox .icon-circle,
    .club-dashbox .icon-circle,
    .athlete-box .icon-circle {
        width: 26px !important;
        min-width: 26px !important;
        height: 26px !important;
        margin-bottom: 6px !important;
    }

    .dash-box .inner-title,
    .dash-box h3,
    .dash-box h4,
    .coach-dashbox .inner-title,
    .coach-dashbox h3,
    .coach-dashbox h4,
    .club-dashbox .inner-title,
    .club-dashbox h3,
    .club-dashbox h4 {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 9px !important;
        line-height: 1.12 !important;
        margin-bottom: 2px !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .dash-box p,
    .coach-dashbox p,
    .club-dashbox p,
    .athlete-box p {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 7px !important;
        line-height: 1.12 !important;
    }

    .dash-box .count-text,
    .coach-dashbox .count-text,
    .club-dashbox .count-text {
        align-self: center !important;
        font-size: 21px !important;
        line-height: 1 !important;
        margin-left: 2px !important;
    }

    .dash-box .apexcharts-text.apexcharts-no-data-text,
    .dash-box .apexcharts-no-data-text,
    .coach-dashbox .apexcharts-text.apexcharts-no-data-text,
    .coach-dashbox .apexcharts-no-data-text {
        transform: translateY(4px) !important;
        fill: rgba(255, 255, 255, .66) !important;
        font-size: 6px !important;
        font-weight: 700 !important;
    }

    .main-content .chart-card-wrap,
    .main-content .pcard,
    .main-content .wcard,
    .main-content .inner-card,
    .main-content .card:has(.chart-empty-state),
    .main-content .card:has(canvas) {
        min-height: 96px !important;
        padding: 9px !important;
        border-radius: 12px !important;
    }

    .main-content .chart-head,
    .main-content .pcard-head,
    .main-content .wcard-head {
        min-height: 24px !important;
        gap: 5px !important;
        margin-bottom: 5px !important;
    }

    .main-content .chart-head h6,
    .main-content .pcard-title,
    .main-content .wcard-title {
        font-size: 10px !important;
        line-height: 1.15 !important;
        margin: 0 !important;
    }

    .main-content .chart-period-badge,
    .main-content .p-badge {
        min-height: 18px !important;
        padding: 3px 6px !important;
        font-size: 7px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .main-content .chart-empty-state,
    .main-content .chart-empty {
        min-height: 58px !important;
        padding: 6px !important;
    }

    .main-content .chart-empty-state i,
    .main-content .chart-empty i,
    .main-content .chart-empty svg {
        font-size: 13px !important;
        width: 16px !important;
        height: 16px !important;
        margin-bottom: 4px !important;
        opacity: .28 !important;
    }

    .main-content .chart-empty-state p,
    .main-content .chart-empty p {
        font-size: 7px !important;
        line-height: 1.15 !important;
        max-width: 92px !important;
        margin-inline: auto !important;
    }
}

/* Final iOS-style dashboard/card system for mobile and tablet. */
@media (max-width: 1199.98px) {
    .mobile-toggle {
        display: none !important;
    }

    .dash-header .header-left {
        gap: 8px !important;
    }

    .main-content {
        background: var(--iv-bg, #f4f7fb) !important;
    }

    .main-content .card,
    .main-content .inner-card,
    .main-content .wcard,
    .main-content .pcard,
    .main-content .list-card,
    .main-content .steps-card,
    .main-content .invite-card,
    .main-content .role-card,
    .main-content .support-card,
    .main-content .chart-card-wrap,
    .main-content .team-hero,
    .main-content .g-hero,
    .main-content .welcome-card {
        border: 1px solid var(--iv-border, rgba(226, 232, 240, .9)) !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .08) !important;
        overflow: hidden !important;
    }

    .main-content .card,
    .main-content .inner-card,
    .main-content .wcard,
    .main-content .pcard,
    .main-content .list-card,
    .main-content .steps-card,
    .main-content .invite-card,
    .main-content .role-card,
    .main-content .chart-card-wrap {
        background: var(--iv-surface, rgba(255, 255, 255, .98)) !important;
    }

    .main-content .g-hero,
    .main-content .support-card,
    .main-content .welcome-card {
        background: linear-gradient(180deg, var(--role-accent-text, #17828c) 0%, color-mix(in srgb, var(--role-accent-text, #0d5f6a) 70%, #000) 100%) !important;
        color: #fff !important;
    }

    /* team-hero segue l'accento di ruolo (fallback = teal mobile → guest/fuori-contesto invariati) */
    .main-content .team-hero {
        background: linear-gradient(180deg, var(--role-accent-text, #17828c) 0%, color-mix(in srgb, var(--role-accent-text, #0d5f6a) 70%, #000) 100%) !important;
        color: #fff !important;
    }

    .main-content .g-hero::before,
    .main-content .support-card::before,
    .main-content .welcome-card::before,
    .main-content .welcome-card::after {
        opacity: .18 !important;
    }

    .main-content .g-hero .sub,
    .main-content .support-card .sc-sub,
    .main-content .welcome-sub {
        color: rgba(255, 255, 255, .82) !important;
    }

    .main-content .hero-btn,
    .main-content .btn,
    .main-content button {
        border-radius: 12px !important;
    }

    .main-content .hero-btn.solid,
    .main-content .support-card .btn,
    .main-content .support-card a {
        background: #ffffff !important;
        color: var(--role-accent-text, #0d5f6a) !important;
        border-color: rgba(255, 255, 255, .9) !important;
        box-shadow: none !important;
    }

    .main-content .dash-box,
    .main-content .coach-dashbox,
    .main-content .club-dashbox,
    .main-content .athlete-box {
        border: 0 !important;
        box-shadow: 0 9px 22px rgba(15, 23, 42, .10) !important;
    }
}

@media (max-width: 575.98px) {
    .main-content .card,
    .main-content .inner-card,
    .main-content .wcard,
    .main-content .pcard,
    .main-content .list-card,
    .main-content .steps-card,
    .main-content .invite-card,
    .main-content .role-card,
    .main-content .support-card,
    .main-content .chart-card-wrap,
    .main-content .team-hero,
    .main-content .g-hero,
    .main-content .welcome-card {
        border-radius: 12px !important;
        box-shadow: 0 7px 18px rgba(15, 23, 42, .07) !important;
    }

    .main-content .steps-card,
    .main-content .invite-card,
    .main-content .role-card,
    .main-content .support-card {
        padding: 12px !important;
    }

    .main-content .g-hero h1,
    .main-content .support-card h3 {
        font-size: 15px !important;
        line-height: 1.18 !important;
    }

    .main-content .g-hero .sub,
    .main-content .support-card .sc-sub {
        font-size: 10px !important;
        line-height: 1.4 !important;
    }
}

/* Final visual consistency: mobile/tablet header + dock icon sharpness. */
@media (max-width: 1199.98px) {
    .dash-header {
        min-height: 68px !important;
        height: 68px !important;
        padding: 10px 18px !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(226, 232, 240, .95) !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .06) !important;
    }

    body.has-managed-context .dash-header,
    body:has(.top-header) .dash-header {
        min-height: 68px !important;
        height: 68px !important;
    }

    body.has-managed-context .main-content {
        margin-top: 68px !important;
    }

    .mobile-header-greeting {
        gap: 3px !important;
    }

    .mobile-header-greeting span {
        color: #64748b !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
    }

    .mobile-header-greeting strong {
        color: #0f172a !important;
        font-size: 18px !important;
        font-weight: 850 !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
    }

    .language-toggle,
    .notification-icon,
    .header-profile .dropdown button,
    .header-profile .dropdown .profile-menu-toggle {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 14px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
    }

    .language-toggle {
        width: auto !important;
        min-width: 54px !important;
        padding-inline: 12px !important;
    }

    .header-profile img,
    .header-profile .profile-picture,
    .header-profile .user-initials-avatar {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        background: #eef2f7 !important;
        color: #0f172a !important;
        font-size: 14px !important;
        font-weight: 850 !important;
    }

    .iv-bottom-dock {
        height: 68px !important;
        background: rgba(255, 255, 255, .98) !important;
        border: 1px solid rgba(226, 232, 240, .92) !important;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .12) !important;
        backdrop-filter: blur(14px) saturate(140%) !important;
    }

    .iv-bottom-dock-scroll {
        height: 68px !important;
        padding: 8px 10px !important;
    }

    .iv-bottom-nav-item,
    .iv-bottom-menu-toggle {
        height: 52px !important;
        min-height: 52px !important;
        color: #52637c !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        -webkit-font-smoothing: antialiased !important;
        text-rendering: geometricPrecision !important;
    }

    .iv-bottom-nav-item.active,
    .iv-bottom-nav-item.is-open,
    .iv-bottom-nav-item:hover,
    .iv-bottom-nav-item:focus-visible,
    .iv-bottom-menu.is-panel-open .iv-bottom-menu-toggle {
        background: var(--role-accent-soft, rgba(13, 95, 106, .11)) !important;
        color: var(--role-accent, #0d5f6a) !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 27px !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .iv-bottom-nav-icon svg {
        display: block !important;
        overflow: visible !important;
        shape-rendering: geometricPrecision !important;
        text-rendering: geometricPrecision !important;
    }

    .iv-bottom-nav-icon svg path,
    .iv-bottom-nav-icon svg line,
    .iv-bottom-nav-icon svg circle,
    .iv-bottom-nav-icon svg rect,
    .iv-bottom-nav-icon svg polyline,
    .iv-bottom-nav-icon svg polygon {
        stroke: currentColor !important;
        stroke-width: 2.35 !important;
        vector-effect: non-scaling-stroke !important;
    }

    .iv-bottom-nav-icon svg [fill]:not([fill="none"]) {
        fill: currentColor !important;
    }
}

@media (max-width: 575.98px) {
    .dash-header {
        min-height: 58px !important;
        height: 58px !important;
        padding: 8px 10px !important;
    }

    body.has-managed-context .dash-header,
    body:has(.top-header) .dash-header {
        min-height: 58px !important;
        height: 58px !important;
    }

    body.has-managed-context .main-content {
        margin-top: 58px !important;
    }

    .mobile-header-greeting span {
        font-size: 10px !important;
    }

    .mobile-header-greeting strong {
        font-size: 14px !important;
        max-width: 42vw !important;
    }

    .language-toggle,
    .notification-icon,
    .header-profile .dropdown button,
    .header-profile .dropdown .profile-menu-toggle {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        border-radius: 12px !important;
    }

    .language-toggle {
        width: auto !important;
        min-width: 44px !important;
        padding-inline: 8px !important;
    }

    .header-profile img,
    .header-profile .profile-picture,
    .header-profile .user-initials-avatar {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        font-size: 12px !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon i,
    .iv-bottom-nav-icon img {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 25px !important;
    }
}

/* Dock icon clarity: remove subpixel transforms and use a fixed 5-column grid. */
@media (max-width: 1199.98px) {
    .iv-bottom-dock {
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
        width: min(420px, calc(100vw - 24px)) !important;
        height: 68px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        border-radius: 34px !important;
    }

    .iv-bottom-dock-scroll {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        align-items: center !important;
        justify-items: center !important;
        width: 100% !important;
        height: 68px !important;
        padding: 7px 10px !important;
        gap: 0 !important;
        overflow: hidden !important;
    }

    .iv-bottom-nav-item,
    .iv-bottom-menu-toggle {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        height: 52px !important;
        min-height: 52px !important;
        border-radius: 18px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: none !important;
        backface-visibility: hidden !important;
        perspective: none !important;
        filter: none !important;
    }

    .iv-bottom-nav-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: none !important;
        filter: none !important;
    }

    .iv-bottom-nav-icon svg {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        display: block !important;
        transform: none !important;
        filter: none !important;
        shape-rendering: geometricPrecision !important;
        text-rendering: geometricPrecision !important;
    }

    .iv-bottom-nav-icon i {
        font-size: 28px !important;
        line-height: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .iv-bottom-nav-icon img {
        width: 30px !important;
        height: 30px !important;
        object-fit: contain !important;
        transform: none !important;
        filter: none !important;
    }

    .iv-bottom-nav-icon svg path,
    .iv-bottom-nav-icon svg line,
    .iv-bottom-nav-icon svg circle,
    .iv-bottom-nav-icon svg rect,
    .iv-bottom-nav-icon svg polyline,
    .iv-bottom-nav-icon svg polygon {
        stroke: currentColor !important;
        stroke-width: 2.75 !important;
        vector-effect: non-scaling-stroke !important;
        shape-rendering: geometricPrecision !important;
    }

    .iv-bottom-nav-icon svg [fill]:not([fill="none"]) {
        fill: currentColor !important;
    }
}

@media (max-width: 575.98px) {
    .iv-bottom-dock {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
    }

    .iv-bottom-dock-scroll {
        padding: 7px 8px !important;
    }

    .iv-bottom-nav-item,
    .iv-bottom-menu-toggle {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-nav-icon svg,
    .iv-bottom-nav-icon img {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .iv-bottom-nav-icon i {
        font-size: 27px !important;
    }
}

/* Final mobile/tablet header and card polish. */
@media (max-width: 1199.98px) {
    .dash-header .main-logo {
        display: none !important;
    }

    .dash-header {
        min-height: 72px !important;
        height: 72px !important;
        padding: 10px 16px !important;
        gap: 12px !important;
        background: rgba(255, 255, 255, .98) !important;
        border-bottom: 1px solid rgba(226, 232, 240, .9) !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .08) !important;
        overflow: visible !important;
    }

    body.has-managed-context .dash-header,
    body:has(.top-header) .dash-header {
        min-height: 72px !important;
        height: 72px !important;
    }

    body.has-managed-context .main-content {
        margin-top: 72px !important;
    }

    .header-left {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .mobile-header-greeting {
        min-width: 0 !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 2px !important;
        line-height: 1.15 !important;
    }

    .mobile-header-greeting span {
        color: #64748b !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    .mobile-header-greeting strong {
        max-width: 42vw !important;
        color: #0f172a !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .header-rightside {
        flex: 0 0 auto !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .language-toggle,
    .notification-icon,
    .header-profile .dropdown button,
    .header-profile .dropdown .profile-menu-toggle {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        border-radius: 15px !important;
        border: 1px solid rgba(226, 232, 240, .95) !important;
        background: #f8fafc !important;
        color: #0f172a !important;
        box-shadow: none !important;
    }

    .language-toggle {
        width: auto !important;
        min-width: 52px !important;
        padding: 0 12px !important;
        gap: 5px !important;
    }

    .language-toggle #current-lang {
        font-size: 12px !important;
        font-weight: 800 !important;
    }

    .language-toggle .fa-angle-down {
        font-size: 12px !important;
        color: #334155 !important;
    }

    .notification-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .header-profile {
        gap: 7px !important;
    }

    .header-profile img,
    .header-profile .profile-picture,
    .header-profile .user-initials-avatar {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        object-fit: cover !important;
    }

    body.has-managed-context .language-switcher .dropdown-menu.language_active,
    body:has(.top-header) .language-switcher .dropdown-menu.language_active,
    .language-switcher .dropdown-menu.language_active {
        top: calc(var(--iv-context-header-h, 0px) + 78px) !important;
        right: 126px !important;
        min-width: 118px !important;
        padding: 8px !important;
        border-radius: 16px !important;
        box-shadow: 0 18px 42px rgba(15, 23, 42, .18) !important;
    }

    body.has-managed-context .header-profile .dropdown-menu,
    body:has(.top-header) .header-profile .dropdown-menu,
    .header-profile .dropdown-menu {
        top: calc(var(--iv-context-header-h, 0px) + 78px) !important;
        right: 16px !important;
        min-width: 220px !important;
        padding: 8px !important;
        border-radius: 16px !important;
        box-shadow: 0 18px 42px rgba(15, 23, 42, .18) !important;
    }

    .header-profile .dropdown-item,
    .language-switcher .dropdown-menu.language_active .dropdown-item {
        min-height: 42px !important;
        padding: 10px 12px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    .main-content .steps-card,
    .main-content .invite-card,
    .main-content .role-card,
    .main-content .support-card,
    .main-content .g-hero,
    .main-content .team-hero,
    .main-content .welcome-card {
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .main-content .steps-card p,
    .main-content .invite-card p,
    .main-content .role-card p,
    .main-content .support-card p,
    .main-content .g-hero p,
    .main-content .welcome-card p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .main-content .steps-card h1,
    .main-content .steps-card h2,
    .main-content .steps-card h3,
    .main-content .support-card h3,
    .main-content .g-hero h1,
    .main-content .welcome-name {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }

    .main-content .hero-btn,
    .main-content .support-card a,
    .main-content .support-card button {
        min-height: 42px !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
        border-radius: 13px !important;
    }
}

@media (max-width: 575.98px) {
    .dash-header {
        min-height: 60px !important;
        height: 60px !important;
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    body.has-managed-context .dash-header,
    body:has(.top-header) .dash-header {
        min-height: 60px !important;
        height: 60px !important;
    }

    body.has-managed-context .main-content {
        margin-top: 60px !important;
    }

    .mobile-header-greeting span {
        font-size: 10px !important;
    }

    .mobile-header-greeting strong {
        max-width: 38vw !important;
        font-size: 13px !important;
    }

    .header-rightside {
        gap: 5px !important;
    }

    .language-toggle,
    .notification-icon,
    .header-profile .dropdown button,
    .header-profile .dropdown .profile-menu-toggle {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        border-radius: 12px !important;
    }

    .language-toggle {
        min-width: 42px !important;
        padding: 0 7px !important;
    }

    .language-toggle #current-lang {
        font-size: 10px !important;
    }

    .header-profile img,
    .header-profile .profile-picture,
    .header-profile .user-initials-avatar {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        font-size: 11px !important;
    }

    body.has-managed-context .language-switcher .dropdown-menu.language_active,
    body:has(.top-header) .language-switcher .dropdown-menu.language_active,
    .language-switcher .dropdown-menu.language_active {
        top: calc(var(--iv-context-header-h, 0px) + 64px) !important;
        right: 82px !important;
    }

    body.has-managed-context .header-profile .dropdown-menu,
    body:has(.top-header) .header-profile .dropdown-menu,
    .header-profile .dropdown-menu {
        top: calc(var(--iv-context-header-h, 0px) + 64px) !important;
        right: 8px !important;
        min-width: 188px !important;
    }

    .main-content .steps-card,
    .main-content .invite-card,
    .main-content .role-card,
    .main-content .support-card,
    .main-content .g-hero,
    .main-content .team-hero,
    .main-content .welcome-card {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .main-content .steps-card p,
    .main-content .invite-card p,
    .main-content .role-card p,
    .main-content .support-card p,
    .main-content .g-hero p,
    .main-content .welcome-card p {
        font-size: 11px !important;
    }

    .main-content .support-card h3,
    .main-content .g-hero h1,
    .main-content .welcome-name {
        font-size: 16px !important;
    }
}

/* Last-word mobile/tablet header and dock polish. Keep desktop untouched. */
@media (max-width: 1199.98px) {
    .dash-header {
        position: sticky !important;
        top: 8px !important;
        z-index: 1035 !important;
        width: calc(100% - 24px) !important;
        min-height: 64px !important;
        height: 64px !important;
        margin: 8px 12px 0 !important;
        padding: 8px 12px !important;
        border: 1px solid rgba(255, 255, 255, .78) !important;
        border-radius: 24px !important;
        background: rgba(255, 255, 255, .9) !important;
        box-shadow: 0 16px 38px rgba(15, 23, 42, .11) !important;
        backdrop-filter: blur(18px) saturate(145%) !important;
        -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
        overflow: visible !important;
    }

    body.has-managed-context .dash-header,
    body:has(.top-header) .dash-header {
        position: fixed !important;
        top: calc(var(--iv-context-header-h, 0px) + 8px) !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        margin: 0 !important;
    }

    body.has-managed-context .main-content,
    body:has(.top-header) .main-content {
        margin-top: 78px !important;
    }

    .dash-header .header-left,
    .dash-header .mobile-header-greeting,
    .dash-header .mobile-searchbar,
    .dash-header .main-logo {
        display: none !important;
    }

    .dash-header .header-rightside {
        width: 100% !important;
        flex: 1 1 auto !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 10px !important;
        min-width: 0 !important;
    }

    .dash-header .header-profile {
        display: contents !important;
    }

    .dash-header .header-profile > .rounded-circle,
    .dash-header .header-profile > .user-initials-avatar,
    .dash-header .header-profile > .profile-picture,
    .dash-header .header-profile > img {
        order: -10 !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        margin-right: auto !important;
        border: 2px solid rgba(255, 255, 255, .95) !important;
        border-radius: 50% !important;
        background: #e8f5f7 !important;
        box-shadow: 0 10px 26px rgba(15, 23, 42, .12) !important;
        color: var(--role-accent, #0f766e) !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        object-fit: cover !important;
        overflow: hidden !important;
    }

    .dash-header .header-profile > .rounded-circle img,
    .dash-header .header-profile > img {
        width: 44px !important;
        height: 44px !important;
        object-fit: cover !important;
    }

    .dash-header .language-switcher {
        order: 10 !important;
    }

    .dash-header #notificationToggle,
    .dash-header .notification-wrp:not(.language-switcher) {
        order: 20 !important;
    }

    .dash-header .header-profile > .dropdown {
        order: 30 !important;
    }

    .dash-header .language-toggle,
    .dash-header .notification-icon,
    .dash-header .profile-menu-toggle,
    .dash-header .header-profile .dropdown button {
        width: 48px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        padding: 0 !important;
        border: 1px solid rgba(226, 232, 240, .78) !important;
        border-radius: 16px !important;
        background: rgba(248, 250, 252, .86) !important;
        color: #0f172a !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .07) !important;
    }

    .dash-header .language-toggle {
        width: 54px !important;
        min-width: 54px !important;
        padding: 0 10px !important;
    }

    .dash-header .language-toggle::after {
        display: none !important;
    }

    .dash-header .language-toggle #current-lang {
        font-size: 12px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    .dash-header .language-toggle .fa-angle-down {
        display: inline-block !important;
        color: #0f172a !important;
        font-size: 12px !important;
        line-height: 1 !important;
    }

    .dash-header .notification-icon svg {
        width: 21px !important;
        height: 21px !important;
    }

    .dash-header .profile-menu-toggle svg {
        width: 14px !important;
        height: 9px !important;
    }

    .dash-header .language-switcher .dropdown-menu.language_active,
    body.has-managed-context .dash-header .language-switcher .dropdown-menu.language_active,
    body:has(.top-header) .dash-header .language-switcher .dropdown-menu.language_active {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
        min-width: 112px !important;
        border-radius: 18px !important;
        transform: none !important;
    }

    .dash-header .header-profile .dropdown-menu,
    body.has-managed-context .dash-header .header-profile .dropdown-menu,
    body:has(.top-header) .dash-header .header-profile .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
        min-width: 206px !important;
        border-radius: 18px !important;
        transform: none !important;
    }

    .iv-bottom-dock {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
    }

    .iv-bottom-nav-icon,
    .iv-bottom-menu-row-icon {
        transform: none !important;
        filter: none !important;
        text-shadow: none !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
    }

    .iv-bottom-nav-icon i,
    .iv-bottom-menu-row-icon i {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
        color: #243b53 !important;
        font-size: 24px !important;
        font-weight: 900 !important;
        line-height: 24px !important;
        transform: none !important;
    }

    .iv-bottom-nav-item.active .iv-bottom-nav-icon i,
    .iv-bottom-nav-item.is-open .iv-bottom-nav-icon i,
    .iv-bottom-nav-item:hover .iv-bottom-nav-icon i,
    .iv-bottom-menu.is-panel-open .iv-bottom-menu-toggle i,
    .iv-bottom-menu-row.active .iv-bottom-menu-row-icon i {
        color: #0b8f91 !important;
    }
}

@media (max-width: 575.98px) {
    .dash-header {
        top: 6px !important;
        width: calc(100% - 20px) !important;
        min-height: 58px !important;
        height: 58px !important;
        margin: 6px 10px 0 !important;
        padding: 8px 10px !important;
        border-radius: 22px !important;
    }

    body.has-managed-context .dash-header,
    body:has(.top-header) .dash-header {
        top: calc(var(--iv-context-header-h, 0px) + 6px) !important;
        left: 10px !important;
        right: 10px !important;
        min-height: 58px !important;
        height: 58px !important;
    }

    body.has-managed-context .main-content,
    body:has(.top-header) .main-content {
        margin-top: 70px !important;
    }

    .dash-header .header-rightside {
        gap: 6px !important;
    }

    .dash-header .header-profile > .rounded-circle,
    .dash-header .header-profile > .user-initials-avatar,
    .dash-header .header-profile > .profile-picture,
    .dash-header .header-profile > img,
    .dash-header .header-profile > .rounded-circle img {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        font-size: 12px !important;
    }

    .dash-header .language-toggle,
    .dash-header .notification-icon,
    .dash-header .profile-menu-toggle,
    .dash-header .header-profile .dropdown button {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        border-radius: 13px !important;
    }

    .dash-header .language-toggle {
        width: 43px !important;
        min-width: 43px !important;
        padding: 0 6px !important;
    }

    .dash-header .language-toggle #current-lang {
        font-size: 10px !important;
    }

    .dash-header .language-toggle .fa-angle-down {
        font-size: 10px !important;
    }

    .dash-header .notification-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .iv-bottom-dock {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
    }

    .dash-header .language-switcher .dropdown-menu.language_active,
    body.has-managed-context .dash-header .language-switcher .dropdown-menu.language_active,
    body:has(.top-header) .dash-header .language-switcher .dropdown-menu.language_active {
        position: absolute !important;
        top: calc(100% + 7px) !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
    }

    .dash-header .header-profile .dropdown-menu,
    body.has-managed-context .dash-header .header-profile .dropdown-menu,
    body:has(.top-header) .dash-header .header-profile .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 7px) !important;
        right: 0 !important;
        left: auto !important;
        min-width: 184px !important;
        transform: none !important;
    }

    .iv-bottom-nav-icon i,
    .iv-bottom-menu-row-icon i {
        width: 22px !important;
        height: 22px !important;
        font-size: 22px !important;
        line-height: 22px !important;
    }
}
