﻿/* =========================================================
   1) Base resets (safe with MudBlazor)
========================================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#app {
    min-height: 100%;
}
/* member.css - corporate admin styling */

.member-page {
    display: block;
}

.member-shell {
    padding: 12px 0;
}

.member-topbar {
    position: sticky;
    top: 0;
    z-index: 6;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.member-topbar-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.member-titleStack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.member-title {
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-subtitle {
    opacity: .78;
}

.member-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
}

.member-badgeWrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.member-topbar-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

/* grid spacing refinement */
.member-grid {
    margin-top: 4px;
}

.member-card,
.member-formCard {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
}

.member-card {
    padding: 16px;
}

.member-cardHead {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.member-cardBody {
    margin-top: 6px;
}

.member-muted {
    opacity: .72;
}

.member-kpi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.member-kpiItem {
    border: 1px dashed rgba(0,0,0,.15);
    border-radius: 14px;
    padding: 10px 12px;
}

.member-kpiLabel {
    opacity: .72;
    font-size: 12px;
}

.member-kpiValue {
    font-weight: 800;
    margin-top: 2px;
}

.member-formCard {
    padding: 16px;
}

.member-formHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.member-chip {
    border-radius: 999px;
}

.member-sectionTitle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(0,0,0,.02);
}

.member-sectionName {
    font-weight: 800;
    line-height: 1.1;
}

.member-sectionHint {
    opacity: .72;
    font-size: 12px;
    margin-top: 2px;
}

.member-helpText {
    margin-top: 6px;
    font-size: 12px;
    opacity: .7;
}

.member-bottomActions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

/* Mobile improvements */
@media (max-width: 960px) {
    .member-topbar {
        position: relative;
        top: auto;
    }

    .member-topbar-actions {
        justify-content: flex-start;
    }
}

