.PageNav {
    align-items: flex-end;
    display: flex;
    flex: 1;

    .nav {
        margin-right: auto;
        border: none;
    }

    .card-header-tabs {
        margin: 0;
    }

    .nav-tabs {
        box-shadow: none;
        margin: 0;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        @include text-body-bold;

        border: none;
        border-bottom: 2px solid transparent;
        color: var(--gray-600);
        margin-right: 24px;
        padding: 0 0 8px;

        &:hover {
            color: var(--gray-900);
            border-color: transparent;
        }

        &.active {
            border-bottom: 2px solid var(--gray-900);
            color: var(--gray-900);
        }

        &.disabled {
            color: var(--gray-500);
        }
    }

    &-loading {
        height: 40px;
        width: 220px;
        box-shadow: none;
        margin-bottom: 8px;

        .SkeletonLoader-item {
            flex: none;
        }
    }
}

.Page {
    > .PageNav {
        box-shadow: 0 -1px 0 var(--midnight-650) inset;
        margin-top: 8px;
        margin-bottom: 20px;

        .nav-link {
            @include text-body-bold;

            text-transform: none;
            color: var(--gray-700);
            display: flex;
            align-items: center;
            height: 40px;
            background-color: transparent;
            margin: 0;
            padding: 0 12px;

            &:focus {
                border-color: transparent;
            }

            &.active {
                color: var(--midnight-750);
                border-bottom-color: var(--midnight-750);
            }

            &.disabled {
                color: var(--gray-500);

                &.active {
                    color: var(--gray-600);
                    border-bottom-color: var(--gray-600);
                }
            }
        }
    }

    /* The deprecated Page.Header has a 20px bottom margin which we have to negate */
    .PageHeader + .PageNav {
        position: relative;
        top: -12px;
        margin-top: 0;
        margin-bottom: 8px;
    }
}
