/* Detail člena (PlayerInfo) — záložka Profil ve stejném vizuálu jako
   záložka Zdraví a Přehled klubu/týmu: hlavička + karty ve dvou sloupcích. */

.em-pi {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 0.75rem;
    color: #141416;
}

.em-pi-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 1.1rem 1.25rem;
}

.em-pi-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 1px solid #eee;
    flex: none;
}

.em-pi-id {
    flex: 1 1 260px;
    min-width: 0;
}

.em-pi-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #141416;
    word-break: break-word;
}

.em-pi-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

    .em-pi-actions .icon-action-btn {
        margin-top: 0;
    }

.em-pi-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    align-items: flex-start;
}

.em-pi-main {
    flex: 999 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.em-pi-side {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.em-pi-card {
    background: #fff;
    border: 1px solid #e4e4e9;
    border-radius: 14px;
}

.em-pi-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #ececf0;
}

    .em-pi-card-head h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
        color: #141416;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .em-pi-card-head h3 i {
            color: #ff007f;
        }

.em-pi-pad {
    padding: 0.9rem 1.1rem 1.1rem;
}

.em-pi-kv {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f0f0f3;
}

    .em-pi-kv:last-child {
        border-bottom: none;
    }

    .em-pi-kv span {
        font-size: 0.75rem;
        color: #5d5d66;
    }

    .em-pi-kv strong, .em-pi-kv a {
        font-size: 0.95rem;
        font-weight: 600;
        color: #141416;
        text-decoration: none;
    }

    .em-pi-kv a:hover {
        color: #ff007f;
    }

/* NSA sekce uvnitř bočního sloupce — sjednocení s kartami. */
.em-pi-side .nsa-admin-section {
    margin-top: 0 !important;
    border-radius: 14px;
}

.em-pi-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a80058;
    text-decoration: none;
}

    .em-pi-link:hover {
        color: #ff007f;
    }

/* ── Pokladna hráče (PlayerTreasurySummary) ── */
.em-pt-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
}

.em-pt-kpi {
    background: #f6f6f8;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

    .em-pt-kpi span {
        font-size: 0.75rem;
        color: #5d5d66;
    }

    .em-pt-kpi strong {
        font-size: 1.1rem;
        font-weight: 800;
        color: #141416;
        font-variant-numeric: tabular-nums;
    }

    .em-pt-kpi small {
        font-size: 0.72rem;
        color: #5d5d66;
    }

.em-pt-kpi-alert {
    background: #fde7e5;
    border-color: #f5c2bd;
}

.em-pt-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5d5d66;
    margin: 1rem 0 0.25rem;
}

.em-pt-empty {
    font-size: 0.85rem;
    color: #5d5d66;
    padding: 0.4rem 0;
}

.em-pt-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f3;
}

    .em-pt-row:last-child {
        border-bottom: none;
    }

.em-pt-ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex: none;
}

.em-pt-ic-in { background: #e3f4ea; color: #0a7a3d; }
.em-pt-ic-debt { background: #fde7e5; color: #b3261e; }
.em-pt-ic-disc { background: #ece6fb; color: #5b3aa8; }
.em-pt-ic-muted { background: #f0f0f3; color: #8a8a94; }

.em-pt-desc {
    font-size: 0.9rem;
    font-weight: 600;
    color: #141416;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.em-pt-date {
    font-size: 0.75rem;
    color: #5d5d66;
}

.em-pt-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: #141416;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.em-pt-status {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    margin-top: 0.15rem;
    white-space: nowrap;
}

.em-pt-paid { background: #e3f4ea; color: #0a7a3d; }
.em-pt-unpaid { background: #f0f0f3; color: #3c3c44; }
.em-pt-partial { background: #fff1dc; color: #9a5300; }
.em-pt-overdue { background: #fde7e5; color: #b3261e; }


/* ── Rozšířený profil: kontakty na rodiče, povolení k odvozu (MemberProfileExtras) ── */
.em-mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #e4e4e9;
    background: #fff;
    color: #141416;
    white-space: nowrap;
}

    .em-mp-btn:hover:not(:disabled) {
        border-color: #ff007f;
        color: #a80058;
    }

    .em-mp-btn:disabled {
        opacity: 0.6;
    }

.em-mp-btn-dark {
    background: #141416;
    border-color: #141416;
    color: #fff;
}

    .em-mp-btn-dark:hover:not(:disabled) {
        background: #ff007f;
        border-color: #ff007f;
        color: #fff;
    }

.em-mp-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: #8a8a94;
    font-size: 0.8rem;
}

    .em-mp-icon:hover:not(:disabled) {
        background: #f0f0f3;
        color: #141416;
    }

.em-mp-form {
    background: #f6f6f8;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

    .em-mp-form .form-label {
        font-size: 0.75rem;
        font-weight: 600;
        color: #5d5d66;
        margin-bottom: 0.2rem;
    }

.em-mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.em-mp-empty {
    font-size: 0.85rem;
    color: #5d5d66;
}

.em-mp-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f3;
}

    .em-mp-row:first-of-type {
        padding-top: 0;
    }

    .em-mp-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.em-mp-ic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffe3f0;
    color: #a80058;
    font-size: 0.75rem;
}

.em-mp-main {
    flex: 1 1 auto;
    min-width: 0;
}

.em-mp-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #141416;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.em-mp-tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.08rem 0.45rem;
    border-radius: 6px;
    background: #f0f0f3;
    color: #5d5d66;
}

.em-mp-line {
    font-size: 0.85rem;
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
}

    .em-mp-line i {
        width: 1rem;
        color: #8a8a94;
        font-size: 0.75rem;
        margin-right: 0.3rem;
    }

    .em-mp-line a {
        color: #141416;
        text-decoration: none;
    }

        .em-mp-line a:hover {
            color: #a80058;
            text-decoration: underline;
        }

.em-mp-note {
    font-size: 0.78rem;
    color: #5d5d66;
    margin-top: 0.2rem;
}

.em-mp-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
    flex: none;
}

.em-mp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.em-mp-ok { background: #e3f4ea; color: #0a7a3d; }
.em-mp-soon { background: #fff1dc; color: #9a5300; }
.em-mp-bad { background: #fde7e5; color: #b3261e; }
.em-mp-none { background: #f0f0f3; color: #5d5d66; }

.em-mp-consent-note {
    font-size: 0.88rem;
    color: #141416;
    margin-top: 0.6rem;
    white-space: pre-line;
}

.em-mp-meta {
    font-size: 0.75rem;
    color: #5d5d66;
    margin-top: 0.5rem;
}

.em-mp-pill-sm {
    font-size: 0.72rem;
    padding: 0.12rem 0.55rem;
}

.em-mp-written-info {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: #3c3c44;
    background: #fff;
    border: 1px dashed #e4e4e9;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.65rem;
}

    .em-mp-written-info i {
        color: #a80058;
        margin-top: 0.15rem;
    }

.em-mp-history-toggle {
    display: block;
    background: transparent;
    border: 0;
    padding: 0.2rem 0;
    margin-top: 0.75rem;
    color: #5d5d66;
    font-size: 0.8rem;
    font-weight: 600;
}

    .em-mp-history-toggle:hover {
        color: #a80058;
    }

.em-mp-history {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0 0 0 0.75rem;
    border-left: 2px solid #f0f0f3;
}

    .em-mp-history li {
        padding: 0.4rem 0;
    }
