/*
 * My Profile (/admin/profile), and Add, Edit and View user
 * (/admin/users/...). Summary at the top, plain cards below,
 * status as a small marker with coloured text. Brand tokens only; works
 * left to right and right to left; nothing is marked important.
 *
 * Replaces resources/css/filament/admin/pages/profile.css, whose rules only
 * matched the old smartco-profile-* class names and no longer apply.
 */

.axis-profile {
    display: grid;
    gap: 16px;
}

/* Summary strip */

.axis-profile-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    padding: 16px 20px;
    border: 1px solid var(--crm-border, #e5eae7);
    border-radius: 12px;
    background: var(--crm-surface, #fff);
}

.axis-profile-initials {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--crm-primary-faint, #eaf5f0);
    color: var(--crm-primary-dark, #0b6b4f);
    font-size: 18px;
    font-weight: 600;
}

.axis-profile-initials img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.axis-profile-who {
    display: grid;
    flex: 1 1 200px;
    gap: 2px;
    min-width: 0;
}

.axis-profile-who strong {
    color: var(--crm-text, #0f1f2e);
    font-size: 16px;
    font-weight: 600;
}

.axis-profile-who span {
    overflow: hidden;
    color: var(--crm-text-muted, #55677a);
    justify-self: start;
    max-width: 100%;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.axis-profile-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0;
}

.axis-profile-facts div {
    display: grid;
    gap: 2px;
}

.axis-profile-facts dt {
    color: var(--crm-text-muted, #55677a);
    font-size: 12px;
}

.axis-profile-facts dd {
    margin: 0;
    color: var(--crm-text, #0f1f2e);
    font-size: 14px;
    font-weight: 500;
}

/* Cards */

.axis-profile-card {
    height: 100%;
}

.axis-profile-card .fi-section {
    height: 100%;
    border: 1px solid var(--crm-border, #e5eae7);
    border-radius: 12px;
    box-shadow: none;
}

.axis-profile-card .fi-section-header-heading {
    color: var(--crm-text, #0f1f2e);
    font-size: 15px;
    font-weight: 600;
}

.axis-profile-card .fi-section-header-description {
    color: var(--crm-text-muted, #55677a);
    font-size: 13px;
}

.axis-profile-card .fi-sc-text {
    font-size: 13px;
    color: var(--crm-text-muted, #55677a);
}

/* Photo: centre the round upload in its card. */

.axis-profile-photo .fi-section-content {
    justify-items: center;
}

.axis-profile-photo .fi-fo-field {
    width: 100%;
    justify-items: center;
    text-align: center;
}

/* Snapshot and account facts: label and value on one quiet line. */

.axis-profile-snapshot .fi-section-content {
    gap: 0;
}

.axis-profile-snapshot .fi-grid-col + .fi-grid-col {
    border-top: 1px solid var(--crm-border, #e5eae7);
}

.axis-profile-snapshot .fi-in-entry {
    padding-block: 10px;
}

.axis-profile-row,
.axis-profile-meta {
    color: var(--crm-text, #0f1f2e);
    font-weight: 500;
}

/* Status: a small coloured marker with coloured text, no pill. */

.axis-profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.axis-profile-status::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crm-neutral, #8a99a3);
}

.axis-profile-status.is-done { color: var(--crm-success, #2e7d32); }
.axis-profile-status.is-done::before { background: var(--crm-success, #2e7d32); }
.axis-profile-status.is-waiting { color: var(--crm-warning, #b26a00); }
.axis-profile-status.is-waiting::before { background: var(--crm-warning, #b26a00); }
.axis-profile-status.is-off { color: var(--crm-danger, #c62828); }
.axis-profile-status.is-off::before { background: var(--crm-danger, #c62828); }

/* Two-step sign-in sits under the cards with the same edges. */

.axis-profile .fi-section.fi-secondary {
    border-radius: 12px;
}

@media (max-width: 640px) {
    .axis-profile-summary {
        padding: 14px 16px;
    }

    .axis-profile-facts {
        flex-basis: 100%;
    }
}
