/* Shared utility classes used by page markup in both the web portals and the mobile app.
   Component-specific styles live in their own .razor.css files. */

/* Lists (documents, claims) */
.member-list {
    padding: 0.25rem 0;
}

.member-list > .member-list-row {
    animation: member-row-in 0.28s ease-out backwards;
}

.member-list > .member-list-row:nth-child(1) { animation-delay: 0ms; }
.member-list > .member-list-row:nth-child(2) { animation-delay: 40ms; }
.member-list > .member-list-row:nth-child(3) { animation-delay: 80ms; }
.member-list > .member-list-row:nth-child(4) { animation-delay: 120ms; }
.member-list > .member-list-row:nth-child(5) { animation-delay: 160ms; }
.member-list > .member-list-row:nth-child(6) { animation-delay: 200ms; }
.member-list > .member-list-row:nth-child(7) { animation-delay: 240ms; }

.member-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0 -0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    transition: background-color 0.15s ease;
}

.member-list-row:hover {
    background-color: #faf7f7;
}

@keyframes member-row-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Tables inside member cards */
.member-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.member-table thead th {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: left;
    color: #6c757d;
    border-bottom: 1px solid #e5e5e5;
}

.member-table tbody tr {
    border-bottom: none;
}

.member-table tbody td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.member-table tbody tr:last-child td {
    border-bottom: none;
}

.member-table tbody tr.click-hover-text {
    transition: background-color 0.15s ease;
}

.member-table tbody tr.click-hover-text:hover {
    background-color: #faf7f7;
    cursor: pointer;
}

/* Keyboard focus for interactive elements */
a:focus-visible,
button:focus-visible,
.click-hover-text:focus-visible {
    outline: 3px solid rgba(180, 0, 0, 0.35);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .member-list > .member-list-row {
        animation: none;
    }
}
