/* =========================================================
   MOF COACH DATABASE - ACHIEVEMENT TABS / RECORDS
   ========================================================= */

.mof-coach-achievements {
    margin-top: 28px;
}

.mof-achievement-tabs {
    display: flex;
    align-items: stretch;
    gap: 4px;
    border-bottom: 4px solid #0b4f82;
    margin-bottom: 0;
}

.mof-achievement-tab {
    appearance: none;
    border: 1px solid #c9c9c9;
    border-bottom: 0;
    background: #ededed;
    color: #202020;
    padding: 13px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.mof-achievement-tab:hover {
    background: #dedede;
}

.mof-achievement-tab.active {
    background: #0b4f82;
    color: #fff;
    border-color: #0b4f82;
}

.mof-achievement-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 7px;
    padding: 0 6px;
    border-radius: 11px;
    background: rgba(0,0,0,.12);
    font-size: 11px;
}

.mof-achievement-tab.active span {
    background: rgba(255,255,255,.18);
}

.mof-achievement-panel {
    display: none;
}

.mof-achievement-panel.active {
    display: block;
}

.mof-coach-records-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.mof-coach-records-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.mof-coach-records-table th {
    background: #0b4f82;
    color: #fff;
    text-align: left;
    padding: 12px 10px;
    font-size: 12px;
    border: 1px solid #d0d0d0;
}

.mof-coach-records-table td {
    padding: 9px 10px;
    border: 1px solid #c8c8c8;
    vertical-align: middle;
}

.mof-coach-records-table tbody tr:nth-child(even) {
    background: #f0f1f2;
}

.mof-coach-records-table th:nth-child(1) { width: 12%; }
.mof-coach-records-table th:nth-child(2) { width: 23%; }
.mof-coach-records-table th:nth-child(3) { width: 9%; }
.mof-coach-records-table th:nth-child(4) { width: 9%; }
.mof-coach-records-table th:nth-child(5) { width: 32%; }
.mof-coach-records-table th:nth-child(6) { width: 15%; }

.mof-coach-record-stat a,
.mof-coach-record-value a,
.mof-coach-record-person-link {
    color: inherit;
    text-decoration: none;
}

.mof-coach-record-stat a:hover,
.mof-coach-record-value a:hover,
.mof-coach-record-person-link:hover strong {
    color: #0b4f82;
}

.mof-coach-record-category,
.mof-coach-record-season,
.mof-coach-record-edition {
    font-weight: 700;
}

.mof-coach-record-person-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mof-coach-record-visual-wrap {
    position: relative;
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
}

.mof-coach-record-player-photo {
    width: 58px;
    height: 66px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.mof-coach-record-team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.mof-coach-record-helmet {
    position: absolute;
    right: -7px;
    bottom: -2px;
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}

.mof-coach-record-person-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mof-coach-record-person-text strong {
    font-size: 14px;
    line-height: 1.15;
}

.mof-coach-record-person-text span {
    margin-top: 4px;
    font-size: 11px;
    color: #666;
    font-weight: 700;
}

.mof-coach-record-value {
    font-size: 22px;
    font-weight: 800;
}

.mof-coach-record-value a {
    color: #ef2b0b;
}

.mof-coach-record-tie {
    display: inline-block;
    margin-left: 4px;
    color: #555;
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

.mof-coach-records-empty {
    padding: 22px;
    border: 1px solid #d0d0d0;
    background: #f5f5f5;
    text-align: center;
    color: #666;
    font-weight: 700;
}

@media (max-width: 800px) {
    .mof-achievement-tabs {
        flex-direction: column;
        gap: 2px;
        border-bottom-width: 2px;
    }

    .mof-achievement-tab {
        width: 100%;
        border-bottom: 1px solid #c9c9c9;
        text-align: left;
    }

    .mof-coach-records-table {
        min-width: 820px;
    }
}
