/* Both navigation partials use CE's native open/close controls. */
body.fhce-client .header .main-meta :is(.main-menu .nav-item, .header-user-menu .current-user) > .dropdown-menu {
    box-sizing: border-box;
    padding: 6px;
    color: var(--fhce-ink);
    background: #fff;
    border: 1px solid var(--fhce-line);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgb(19 41 31 / 14%);
}

body.fhce-client .header .main-meta :is(.main-menu .nav-item, .header-user-menu .current-user) > .dropdown-menu > li {
    border: 0;
}

body.fhce-client .header .main-meta :is(.main-menu .nav-item, .header-user-menu .current-user) > .dropdown-menu > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--fhce-ink);
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.fhce-client .header .main-meta :is(.main-menu .nav-item, .header-user-menu .current-user) > .dropdown-menu > li > a:is(:hover, :focus-visible) {
    background: var(--fhce-soft);
    color: var(--fhce-green);
}

body.fhce-client .header .main-meta .dropdown-menu > li > a:focus-visible {
    outline: 2px solid var(--fhce-green);
    outline-offset: -2px;
}

body.fhce-client .header .main-meta .main-menu .nav-item.dropdown::after {
    color: var(--fhce-muted);
    pointer-events: none;
}

body.fhce-client .header .main-meta .main-menu .nav-item.dropdown.show::after {
    color: var(--fhce-green);
}

body.fhce-client .header-user-menu .current-user > .dropdown-menu {
    width: min(14rem, calc(100vw - 32px));
    visibility: hidden;
}

body.fhce-client .header-user-menu .current-user > .dropdown-menu.pull {
    visibility: visible;
}

body.fhce-client .header-user-menu .dropdown-menu i {
    flex: 0 0 1.1rem;
    color: var(--fhce-green);
    text-align: center;
}

body.fhce-client .header-user-menu .current-user .user-toggle .user-tag span {
    color: var(--fhce-muted);
}

body.fhce-client .dashboard-right-block > .cm-holder {
    margin-top: 24px;
    padding-top: 0;
}

body.fhce-client .dashboard-right-block > .cm-holder > .head {
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px 12px 0 0;
}

body.fhce-client .dashboard-right-block > .cm-holder > .head h3 {
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.3;
}

body.fhce-client .dashboard-right-block > .cm-holder > .head a {
    flex-shrink: 0;
}

body.fhce-client .dashboard-wraper .dashboard-main .dashboard-right-block .dashboard-four-block .dash-commen-boxes {
    margin-bottom: 0;
}

body.fhce-client .dashboard-four-block .row {
    row-gap: 16px;
}

body.fhce-client .dashboard-right-block .cm-holder .data-table-wrapper table tr td .status.red {
    color: #8b2b21;
    background: #fbe8e3;
}

@media (max-width: 991px) {
    body.fhce-client .dashboard-right-block > .cm-holder .data-table-wrapper table {
        width: 100%;
    }

    body.fhce-client .dashboard-right-block > .cm-holder .data-table-wrapper table :is(th, td) {
        padding: 9px 10px;
    }

    body.fhce-client .header .navbar-collapse.show {
        max-height: calc(100dvh - 8rem);
        overflow-y: auto;
    }
}

@media (max-width: 575px) {
    body.fhce-client .dashboard-right-block > .invoice-list-table .data-table-wrapper table :is(th, td) {
        min-width: 0;
        padding-inline: 6px;
        overflow-wrap: anywhere;
    }

    /* Expand inside the hamburger panel so every account action stays in reach. */
    body.fhce-client .main-menu .header-user-menu .current-user > .dropdown-menu {
        display: none;
        position: static;
        float: none;
        margin: 6px auto;
        text-align: start;
    }

    body.fhce-client .main-menu .header-user-menu .current-user > .dropdown-menu.pull {
        display: block;
    }
}
