﻿/* ==================================================
   MEMBER PAGE
================================================== */

.member-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 18px;
}


/* ==================================================
   HEADER
================================================== */

.member-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    overflow: hidden;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 22px;
    background: #fff;
    position: relative;
    z-index: 25;
    margin-top: -46px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    padding: 17px;
}

.member-page-header__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #16A34A;
    font-size: 10px;
    font-weight: 800;
}

.member-page-header h1 {
    margin: 0;
    color: #0F172A;
    font-size: 23px;
    font-weight: 850;
    line-height: 1.2;
}

.member-page-header p {
    margin: 4px 0 0;
    color: #94A3B8;
    font-size: 10px;
}

.member-page-header__add {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #DCFCE7;
    border-radius: 12px;
    background: #F0FDF4;
    color: #15803D;
    box-shadow: 0 4px 12px rgba(22,163,74,.08);
    cursor: pointer;
}

    .member-page-header__add svg {
        width: 19px;
        height: 19px;
    }


/* ==================================================
   SUMMARY
================================================== */

.member-summary {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 7px;
}

.member-summary-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    padding: 9px 5px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: #FFF;
    text-align: center;
    box-shadow: 0 3px 10px rgba(15,23,42,.025);
}

.member-summary-item__icon {
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

    .member-summary-item__icon svg {
        width: 18px;
        height: 18px;
    }

.member-summary-item strong {
    display: block;
    color: #0F172A;
    font-size: 16px;
    font-weight: 850;
    line-height: 1;
}

.member-summary-item small {
    display: block;
    margin-top: 5px;
    color: #64748B;
    font-size: 8px;
    line-height: 1.25;
}

.member-summary-item.is-primary,
.member-summary-item.is-active {
    color: #16A34A;
}

.member-summary-item.is-inactive {
    color: #F59E0B;
}

.member-summary-item.is-rate {
    color: #2563EB;
}

.member-summary-item.is-primary strong,
.member-summary-item.is-active strong {
    color: #15803D;
}

.member-summary-item.is-inactive strong {
    color: #F59E0B;
}

.member-summary-item.is-rate strong {
    color: #2563EB;
}


/* ==================================================
   SEARCH
================================================== */

.member-search {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    border: 1px solid #DDE3EA;
    border-radius: 14px;
    background: #FFF;
}

    .member-search:focus-within {
        border-color: #86EFAC;
        box-shadow: 0 0 0 3px rgba(34,197,94,.08);
    }

.member-search__icon {
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #94A3B8;
}

    .member-search__icon svg {
        width: 19px;
        height: 19px;
    }

.member-search input {
    min-width: 0;
    flex: 1;
    height: 44px;
    padding: 0 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0F172A;
    font-family: inherit;
    font-size: 12px;
}

    .member-search input::placeholder {
        color: #A8B1BF;
    }

.member-search__filter {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748B;
    cursor: pointer;
}

    .member-search__filter svg {
        width: 19px;
        height: 19px;
    }


/* ==================================================
   FILTER CHIPS
================================================== */

.member-filters {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
}

    .member-filters::-webkit-scrollbar {
        display: none;
    }

.member-filter {
    min-height: 34px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    border: 1px solid #DCE2E8;
    border-radius: 999px;
    background: #FFF;
    color: #334155;
    font-family: inherit;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

    .member-filter.is-active {
        border-color: #16A34A;
        background: #16A34A;
        color: #FFF;
        box-shadow: 0 4px 10px rgba(22,163,74,.15);
    }

.member-filter__dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #CBD5E1;
}

    .member-filter__dot.is-active {
        background: #22C55E;
    }

    .member-filter__dot.is-inactive {
        background: #F59E0B;
    }

    .member-filter__dot.is-goalkeeper {
        background: #2563EB;
    }

.member-filter.is-active
.member-filter__dot {
    background: #FFF;
}


/* ==================================================
   MEMBER LIST
================================================== */

.member-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


/* ==================================================
   MEMBER CARD
================================================== */

.member-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 56px minmax(0,1fr) 44px auto;
    align-items: center;
    gap: 10px;
    min-height: 92px;
    padding: 10px;
    border: 1px solid #E5E9EE;
    border-radius: 15px;
    background: #FFF;
    box-shadow: 0 3px 12px rgba(15,23,42,.025);
}


/* ==================================================
   SHIRT
================================================== */

.member-shirt {
    position: relative;
    width: 48px;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
    border-radius: 11px 11px 8px 8px;
    background: linear-gradient( 145deg, #16A34A, #15803D );
    color: #FFF;
    text-decoration: none;
    box-shadow: 0 5px 10px rgba(21,128,61,.18);
}

    .member-shirt::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 17px;
        height: 7px;
        transform: translateX(-50%);
        border-radius: 0 0 8px 8px;
        background: #FFF;
    }

.member-shirt__shoulder {
    position: absolute;
    top: 4px;
    width: 14px;
    height: 20px;
    background: #15803D;
    z-index: -1;
}

    .member-shirt__shoulder.is-left {
        left: -7px;
        transform: rotate(35deg);
        border-radius: 8px 2px 3px 7px;
    }

    .member-shirt__shoulder.is-right {
        right: -7px;
        transform: rotate(-35deg);
        border-radius: 2px 8px 7px 3px;
    }

.member-shirt strong {
    margin-top: 6px;
    font-size: 21px;
    font-weight: 800;
}

.member-shirt.is-goalkeeper {
    background: linear-gradient( 145deg, #2563EB, #1D4ED8 );
    box-shadow: 0 5px 10px rgba(37,99,235,.17);
}

    .member-shirt.is-goalkeeper
    .member-shirt__shoulder {
        background: #1D4ED8;
    }


/* ==================================================
   CONTENT
================================================== */

.member-card__content {
    min-width: 0;
}

.member-card__name {
    display: block;
    overflow: hidden;
    color: #0F172A;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
}

.member-position {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-top: 4px;
    padding: 2px 8px;
    border: 1px solid #BBF7D0;
    border-radius: 5px;
    color: #15803D;
    font-size: 8px;
    font-weight: 650;
}

    .member-position.is-goalkeeper {
        border-color: #BFDBFE;
        color: #2563EB;
    }

.member-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    color: #64748B;
    font-size: 8px;
}

.member-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #CBD5E1;
}

    .member-status__dot.is-active {
        background: #16A34A;
    }

    .member-status__dot.is-inactive {
        background: #F59E0B;
    }


/* ==================================================
   ATTENDANCE RATE
================================================== */

.member-card__rate {
    min-width: 44px;
    text-align: center;
}

    .member-card__rate strong {
        display: block;
        color: #15803D;
        font-size: 12px;
        font-weight: 800;
    }

    .member-card__rate span {
        display: block;
        margin-top: 3px;
        color: #64748B;
        font-size: 7px;
        line-height: 1.2;
    }


/* ==================================================
   ACTIONS
================================================== */

.member-card__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 7px;
    border-left: 1px solid #EEF2F7;
}

.member-card-action {
    width: 31px;
    height: 31px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #DCE2E8;
    border-radius: 8px;
    background: #FFF;
    color: #15803D;
    text-decoration: none;
    cursor: pointer;
}

    .member-card-action svg {
        width: 14px;
        height: 14px;
    }

    .member-card-action.is-stat {
        color: #2563EB;
    }

    .member-card-action:active {
        background: #F8FAFC;
        transform: scale(.96);
    }


/* ==================================================
   EMPTY
================================================== */

.member-empty {
    padding: 32px 16px;
    border: 1px dashed #CBD5E1;
    border-radius: 14px;
    background: #F8FAFC;
    text-align: center;
}

    .member-empty strong {
        display: block;
        color: #334155;
        font-size: 12px;
    }

    .member-empty p {
        margin: 5px 0 0;
        color: #94A3B8;
        font-size: 9px;
    }

    .member-empty.is-main {
        margin-top: 2px;
    }

.member-empty__button {
    min-height: 35px;
    margin-top: 12px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: #16A34A;
    color: #FFF;
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}


/* ==================================================
   SMALL PHONE
================================================== */

@media(max-width:380px) {

    .member-summary {
        gap: 5px;
    }

    .member-summary-item {
        min-height: 76px;
        padding: 8px 3px;
    }

        .member-summary-item strong {
            font-size: 14px;
        }

    .member-card {
        grid-template-columns: 51px minmax(0,1fr) 38px;
        gap: 8px;
        min-height: 87px;
        padding: 9px 8px;
    }

    .member-shirt {
        width: 44px;
        height: 52px;
    }

        .member-shirt strong {
            font-size: 18px;
        }

    /*
     * Màn quá nhỏ:
     * actions xuống dưới content,
     * tránh card bị chật.
     */
    .member-card__actions {
        grid-column: 2 / -1;
        justify-content: flex-end;
        padding: 6px 0 0;
        border-left: 0;
        border-top: 1px solid #F1F5F9;
    }
}

/*css lịch sử tham gia*/
.member-attendance-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-attendance-history-item {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFF;
}

.member-attendance-history-item__info {
    min-width: 0;
}

    .member-attendance-history-item__info strong {
        display: block;
        overflow: hidden;
        color: #0F172A;
        font-size: 10px;
        font-weight: 750;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .member-attendance-history-item__info span {
        display: block;
        margin-top: 3px;
        color: #94A3B8;
        font-size: 8px;
    }

.member-attendance-history-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
}

    .member-attendance-history-status.is-present {
        background: #F0FDF4;
        color: #15803D;
    }

    .member-attendance-history-status.is-absent {
        background: #FEF2F2;
        color: #DC2626;
    }

    .member-attendance-history-status.is-maybe {
        background: #FFFBEB;
        color: #D97706;
    }

    .member-attendance-history-status.is-pending {
        background: #F8FAFC;
        color: #64748B;
    }

/* ==================================================
   MEMBER EDIT SHEET
================================================== */

.member-edit-sheet {
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.member-edit-sheet__header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding-bottom: 12px;
    background: #FFF;
}

.member-edit-sheet__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #16A34A;
    font-size: 9px;
    font-weight: 800;
}

.member-edit-sheet__header h2 {
    margin: 0;
    color: #0F172A;
    font-size: 18px;
    font-weight: 800;
}

.member-edit-sheet__header p {
    margin: 4px 0 0;
    color: #94A3B8;
    font-size: 9px;
}


/* ==================================================
   FORM
================================================== */

.member-edit-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.member-edit-section {
    padding: 13px;
    border: 1px solid #E8EDF2;
    border-radius: 14px;
    background: #FFF;
}

.member-edit-section__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

    .member-edit-section__title strong {
        color: #0F172A;
        font-size: 11px;
        font-weight: 800;
    }

    .member-edit-section__title span {
        color: #94A3B8;
        font-size: 8px;
    }


/* ==================================================
   AVATAR
================================================== */

.member-avatar-editor {
    display: flex;
    align-items: center;
    gap: 13px;
}

.member-avatar-editor__preview {
    position: relative;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    background: #F1F5F9;
}

    .member-avatar-editor__preview img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .member-avatar-editor__preview span {
        color: #64748B;
        font-size: 18px;
        font-weight: 800;
    }

.member-avatar-editor__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.member-avatar-editor__upload,
.member-avatar-editor__remove {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.member-avatar-editor__upload {
    border: 1px solid #BBF7D0;
    background: #F0FDF4;
    color: #15803D;
}

    .member-avatar-editor__upload svg {
        width: 14px;
        height: 14px;
    }

.member-avatar-editor__remove {
    border: 1px solid #E2E8F0;
    background: #FFF;
    color: #64748B;
}


/* ==================================================
   FIELD GRID
================================================== */

.member-edit-fields {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px 9px;
}

.member-edit-field {
    min-width: 0;
}

    .member-edit-field.is-full {
        grid-column: 1 / -1;
    }

    .member-edit-field label {
        display: block;
        margin-bottom: 5px;
        color: #475569;
        font-size: 9px;
        font-weight: 700;
    }

        .member-edit-field label span {
            color: #DC2626;
        }

    .member-edit-field input,
    .member-edit-field select,
    .member-edit-field textarea {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #DDE3EA;
        border-radius: 10px;
        outline: 0;
        background: #FFF;
        color: #0F172A;
        font-family: inherit;
        font-size: 11px;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

    .member-edit-field input,
    .member-edit-field select {
        height: 42px;
        padding: 0 11px;
    }

    .member-edit-field textarea {
        min-height: 80px;
        padding: 10px 11px;
        resize: vertical;
        line-height: 1.55;
    }

        .member-edit-field input:focus,
        .member-edit-field select:focus,
        .member-edit-field textarea:focus {
            border-color: #86EFAC;
            box-shadow: 0 0 0 3px rgba(34,197,94,.08);
        }

        .member-edit-field input::placeholder,
        .member-edit-field textarea::placeholder {
            color: #B2BAC6;
        }


/* ==================================================
   SAVE BUTTON
================================================== */

.member-edit-submit {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 4px 0 8px;
    background: linear-gradient( to bottom, rgba(255,255,255,0), #FFF 20% );
}

.member-edit-submit__button {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 11px;
    background: #16A34A;
    color: #FFF;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(22,163,74,.18);
    cursor: pointer;
}

    .member-edit-submit__button:disabled {
        opacity: .6;
        cursor: not-allowed;
    }


/* ==================================================
   DANGER ZONE
================================================== */

.member-danger-zone {
    padding: 13px;
    border: 1px solid #FECACA;
    border-radius: 14px;
    background: #FFFBFB;
}

.member-danger-zone__heading {
    margin-bottom: 4px;
}

    .member-danger-zone__heading strong {
        color: #991B1B;
        font-size: 11px;
        font-weight: 800;
    }

    .member-danger-zone__heading p {
        margin: 4px 0 0;
        color: #B45353;
        font-size: 8px;
        line-height: 1.5;
    }

.member-danger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #FEE2E2;
}

    .member-danger-item:first-of-type {
        margin-top: 10px;
    }

.member-danger-item__content {
    min-width: 0;
    flex: 1;
}

    .member-danger-item__content strong {
        display: block;
        color: #7F1D1D;
        font-size: 10px;
        font-weight: 750;
    }

    .member-danger-item__content p {
        margin: 3px 0 0;
        color: #A96A6A;
        font-size: 8px;
        line-height: 1.45;
    }


/* ==================================================
   ACTIVE SWITCH
================================================== */

.member-status-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
    cursor: pointer;
}

    .member-status-switch input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.member-status-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #CBD5E1;
    transition: background .18s ease;
}

    .member-status-switch__track::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #FFF;
        box-shadow: 0 1px 4px rgba(15,23,42,.18);
        transition: transform .18s ease;
    }

.member-status-switch input:checked +
.member-status-switch__track {
    background: #16A34A;
}

    .member-status-switch input:checked +
    .member-status-switch__track::after {
        transform: translateX(18px);
    }


/* ==================================================
   DELETE
================================================== */

.member-danger-delete {
    min-width: 54px;
    height: 32px;
    flex-shrink: 0;
    padding: 0 11px;
    border: 1px solid #FCA5A5;
    border-radius: 8px;
    background: #FFF;
    color: #DC2626;
    font-family: inherit;
    font-size: 9px;
    font-weight: 750;
    cursor: pointer;
}

    .member-danger-delete:active {
        background: #FEF2F2;
    }


/* ==================================================
   MOBILE
================================================== */

@media(max-width:360px) {

    .member-edit-fields {
        grid-template-columns: 1fr;
    }

    .member-edit-field.is-full {
        grid-column: auto;
    }

    .member-avatar-editor {
        align-items: flex-start;
    }

    .member-avatar-editor__preview {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }
}

/* ==================================================
   MEMBER ATTENDANCE HISTORY
================================================== */

.member-attendance-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-attendance-history-item {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFF;
}

.member-attendance-history-item__info {
    min-width: 0;
}

    .member-attendance-history-item__info strong {
        display: block;
        overflow: hidden;
        color: #0F172A;
        font-size: 10px;
        font-weight: 750;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .member-attendance-history-item__info span {
        display: block;
        margin-top: 3px;
        overflow: hidden;
        color: #94A3B8;
        font-size: 8px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }


/* STATUS */

.member-attendance-history-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

    .member-attendance-history-status.is-present {
        background: #F0FDF4;
        color: #15803D;
    }

    .member-attendance-history-status.is-absent {
        background: #FEF2F2;
        color: #DC2626;
    }

    .member-attendance-history-status.is-maybe {
        background: #FFFBEB;
        color: #D97706;
    }

    .member-attendance-history-status.is-pending {
        background: #F8FAFC;
        color: #64748B;
    }


/* LOADING */

.member-attendance-history-loading {
    padding: 24px 12px;
    color: #64748B;
    font-size: 10px;
    text-align: center;
}


/* ERROR */

.member-attendance-history-error {
    padding: 11px 12px;
    border: 1px solid #FECACA;
    border-radius: 10px;
    background: #FEF2F2;
    color: #B91C1C;
    font-size: 9px;
    line-height: 1.5;
}


/* EMPTY */

.member-attendance-history-empty {
    padding: 28px 15px;
    text-align: center;
}

    .member-attendance-history-empty strong {
        display: block;
        color: #475569;
        font-size: 11px;
        font-weight: 750;
    }

    .member-attendance-history-empty span {
        display: block;
        margin-top: 4px;
        color: #94A3B8;
        font-size: 9px;
    }

.member-statistics-content {
    padding-bottom: 8px;
}


/* MAIN */

.member-statistics-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8px;
}

.member-statistics-rate {
    padding: 14px;
    border: 1px solid #BBF7D0;
    border-radius: 14px;
    background: #F0FDF4;
}

    .member-statistics-rate > span {
        display: block;
        color: #15803D;
        font-size: 8px;
        font-weight: 700;
    }

    .member-statistics-rate strong {
        display: block;
        margin-top: 5px;
        color: #15803D;
        font-size: 30px;
        line-height: 1;
        font-weight: 850;
    }

    .member-statistics-rate small {
        display: block;
        margin-top: 6px;
        color: #4D7C5A;
        font-size: 8px;
    }


.member-statistics-performance {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.member-statistics-performance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFF;
}

    .member-statistics-performance-item span {
        color: #64748B;
        font-size: 8px;
        font-weight: 650;
    }

    .member-statistics-performance-item strong {
        color: #0F172A;
        font-size: 19px;
        font-weight: 850;
    }


/* ATTENDANCE */

.member-statistics-attendance {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 6px;
    margin-top: 8px;
}

.member-statistics-attendance-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 9px 7px;
    border: 1px solid #E2E8F0;
    border-radius: 11px;
    background: #FFF;
}

    .member-statistics-attendance-item > span {
        flex: 0 0 auto;
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

        .member-statistics-attendance-item > span.is-present {
            background: #22C55E;
        }

        .member-statistics-attendance-item > span.is-absent {
            background: #EF4444;
        }

        .member-statistics-attendance-item > span.is-maybe {
            background: #F59E0B;
        }

        .member-statistics-attendance-item > span.is-pending {
            background: #CBD5E1;
        }

    .member-statistics-attendance-item strong {
        display: block;
        color: #0F172A;
        font-size: 12px;
        line-height: 1;
        font-weight: 800;
    }

    .member-statistics-attendance-item small {
        display: block;
        margin-top: 3px;
        color: #94A3B8;
        font-size: 7px;
        white-space: nowrap;
    }


/* RECENT */

.member-statistics-recent {
    margin-top: 16px;
}

.member-statistics-recent__header {
    margin-bottom: 8px;
}

    .member-statistics-recent__header span {
        display: block;
        color: #16A34A;
        font-size: 8px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .member-statistics-recent__header strong {
        display: block;
        margin-top: 2px;
        color: #0F172A;
        font-size: 12px;
        font-weight: 800;
    }

.member-statistics-recent-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


/* STATE */

.member-statistics-loading {
    padding: 30px 12px;
    color: #64748B;
    font-size: 10px;
    text-align: center;
}

.member-statistics-error {
    padding: 11px 12px;
    border: 1px solid #FECACA;
    border-radius: 10px;
    background: #FEF2F2;
    color: #B91C1C;
    font-size: 9px;
}


/* SMALL */

@media (max-width:360px) {

    .member-statistics-attendance {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

/* ==================================================
   STATISTICS PLAYER
================================================== */

.member-statistics-player {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: #FFF;
}


/* AVATAR */

.member-statistics-player__avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border: 2px solid #DCFCE7;
    border-radius: 50%;
    background: #F0FDF4;
    color: #15803D;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
}

    .member-statistics-player__avatar img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

        .member-statistics-player__avatar img[hidden] {
            display: none;
        }


/* INFO */

.member-statistics-player__info {
    min-width: 0;
}

    .member-statistics-player__info > strong {
        display: block;
        overflow: hidden;
        color: #0F172A;
        font-size: 12px;
        line-height: 1.3;
        font-weight: 800;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.member-statistics-player__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}


/* SHIRT */

.member-statistics-player__shirt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 6px;
    background: #F0FDF4;
    color: #15803D;
    font-size: 8px;
    font-weight: 750;
}


/* POSITION */

.member-statistics-player__position {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #F8FAFC;
    color: #64748B;
    font-size: 8px;
    font-weight: 650;
}


/* RATE */

.member-statistics-player__rate {
    flex: 0 0 auto;
    text-align: right;
}

    .member-statistics-player__rate strong {
        display: block;
        color: #16A34A;
        font-size: 18px;
        line-height: 1;
        font-weight: 850;
    }

    .member-statistics-player__rate span {
        display: block;
        margin-top: 4px;
        color: #94A3B8;
        font-size: 7px;
        font-weight: 600;
    }

.member-statistics-recent-item {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px 11px;
    border: 1px solid #E2E8F0;
    border-radius: 11px;
    background: #FFF;
}

.member-statistics-recent-item__main {
    min-width: 0;
}

    .member-statistics-recent-item__main strong {
        display: block;
        overflow: hidden;
        color: #0F172A;
        font-size: 10px;
        font-weight: 750;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .member-statistics-recent-item__main > span {
        display: block;
        margin-top: 3px;
        overflow: hidden;
        color: #94A3B8;
        font-size: 8px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }


/* PERFORMANCE */

.member-statistics-recent-performance {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .member-statistics-recent-performance span {
        color: #475569;
        font-size: 8px;
        font-weight: 700;
        white-space: nowrap;
    }


/* STATUS */

.member-statistics-recent-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 700;
    white-space: nowrap;
}

    .member-statistics-recent-status.is-present {
        background: #F0FDF4;
        color: #15803D;
    }

    .member-statistics-recent-status.is-absent {
        background: #FEF2F2;
        color: #DC2626;
    }

    .member-statistics-recent-status.is-maybe {
        background: #FFFBEB;
        color: #D97706;
    }

    .member-statistics-recent-status.is-pending {
        background: #F8FAFC;
        color: #64748B;
    }


/* EMPTY */

.member-statistics-recent-empty {
    padding: 20px 12px;
    border: 1px dashed #CBD5E1;
    border-radius: 11px;
    color: #94A3B8;
    font-size: 9px;
    text-align: center;
}


@media (max-width:360px) {

    .member-statistics-recent-item {
        grid-template-columns: minmax(0,1fr) auto;
    }

    .member-statistics-recent-performance {
        display: none;
    }
}

.member-statistics-icon,
.member-statistics-performance-icon,
.member-attendance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.member-statistics-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #DCFCE7;
    color: #15803D;
}

    .member-statistics-icon svg {
        width: 14px;
        height: 14px;
    }

.member-statistics-rate__label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #15803D;
    font-size: 8px;
    font-weight: 700;
}


/* PERFORMANCE */

.member-statistics-performance-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-statistics-performance-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
}

    .member-statistics-performance-icon svg {
        width: 16px;
        height: 16px;
    }

    .member-statistics-performance-icon.is-goal {
        background: #F0FDF4;
        color: #15803D;
    }

    .member-statistics-performance-icon.is-assist {
        background: #EFF6FF;
        color: #2563EB;
    }


/* ATTENDANCE */

.member-attendance-icon {
    width: 25px !important;
    height: 25px !important;
    border-radius: 8px !important;
}

    .member-attendance-icon svg {
        width: 15px;
        height: 15px;
    }

    .member-attendance-icon.is-present {
        background: #F0FDF4 !important;
        color: #16A34A;
    }

    .member-attendance-icon.is-absent {
        background: #FEF2F2 !important;
        color: #DC2626;
    }

    .member-attendance-icon.is-maybe {
        background: #FFFBEB !important;
        color: #D97706;
    }

    .member-attendance-icon.is-pending {
        background: #F1F5F9 !important;
        color: #64748B;
    }


/* RECENT HEADER */

.member-statistics-recent__title {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

    .member-statistics-recent__title svg {
        width: 15px;
        height: 15px;
        color: #16A34A;
    }

    .member-statistics-recent__title strong {
        margin: 0;
        color: #0F172A;
        font-size: 12px;
        font-weight: 800;
    }

.member-statistics-performance-icon.is-assist {
    background: #EFF6FF;
    color: #2563EB;
}

    .member-statistics-performance-icon.is-assist svg {
        width: 17px;
        height: 17px;
    }
