.fi-ta table {
    border-collapse: separate;
    border-spacing: 0;
}

.fi-ta-actions-header-cell,
.fi-ta-actions-cell {
    position: sticky;
    right: 0;
    z-index: 30;
    width: 3.75rem;
    min-width: 3.75rem;
    background: rgb(255 255 255);
    box-shadow: -12px 0 18px -18px rgb(15 23 42 / 0.55);
}

.dark .fi-ta-actions-header-cell,
.dark .fi-ta-actions-cell {
    background: rgb(17 24 39);
    box-shadow: -12px 0 18px -18px rgb(0 0 0 / 0.8);
}

.fi-ta-actions-cell .fi-ta-actions,
.fi-ta-actions-header-cell .fi-ta-actions {
    justify-content: center;
    white-space: nowrap;
}

.fi-ta-content-ctn {
    overflow-x: auto;
}

.np-metric-grid {
    display: grid;
    gap: 1rem;
}

.np-metric-grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.np-metric-grid--5 {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.np-metric-grid--8 {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.np-metric-grid--12 {
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
}

.np-metric-card {
    min-width: 0;
    border-radius: 0.5rem;
    border: 1px solid rgb(229 231 235);
    background: rgb(255 255 255);
    padding: 1rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

.np-setup-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.np-setup-summary-card {
    min-width: 0;
    min-height: 6.5rem;
}

.dark .np-metric-card {
    border-color: rgb(31 41 55);
    background: rgb(17 24 39);
}

.np-panel-footer {
    padding: 1.25rem 1rem 1.75rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgb(107 114 128);
}

.dark .np-panel-footer {
    color: rgb(156 163 175);
}

.np-wechat-float {
    position: fixed;
    right: 1.25rem;
    bottom: 5rem;
    z-index: 60;
}

.np-wechat-trigger {
    display: flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgb(34 197 94 / 0.35);
    background: rgb(255 255 255);
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.22);
}

.dark .np-wechat-trigger {
    background: rgb(17 24 39);
}

.np-wechat-trigger svg {
    width: 2rem;
    height: 2rem;
}

.np-wechat-panel {
    position: absolute;
    right: 0;
    bottom: 4rem;
    width: 12.5rem;
    transform: translateY(0.5rem);
    border-radius: 0.75rem;
    border: 1px solid rgb(229 231 235);
    background: rgb(255 255 255);
    padding: 0.75rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 20px 50px rgb(15 23 42 / 0.25);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.dark .np-wechat-panel {
    border-color: rgb(31 41 55);
    background: rgb(17 24 39);
}

.np-wechat-float:hover .np-wechat-panel,
.np-wechat-float:focus-within .np-wechat-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.np-wechat-panel img {
    width: 10.5rem;
    height: 10.5rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.np-wechat-id {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgb(17 24 39);
    word-break: break-all;
}

.dark .np-wechat-id {
    color: rgb(243 244 246);
}

@media (max-width: 768px) {
    .fi-ta-actions-header-cell,
    .fi-ta-actions-cell {
        width: 3.5rem;
        min-width: 3.5rem;
    }

    .np-wechat-float {
        right: 0.9rem;
        bottom: 4.25rem;
    }

    .np-setup-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
