﻿/*
===============================================================================
GEDIAN SPORTS
Manage Temporary Committee
===============================================================================
*/

.temporary-committee-page {
    --sc-navy: #102a4c;
    --sc-navy-dark: #071a32;
    --sc-green: #5b8c3b;
    --sc-green-dark: #3f6f29;
    --sc-green-soft: #edf6e8;
    --sc-border: #e1e8ef;
    --sc-muted: #6f7d8d;
    --sc-bg: #f5f8fa;
    color: var(--sc-navy-dark);
}

.temporary-committee-header {
    display: flex;
    min-height: 158px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 25px 28px;
    border-radius: 23px;
    background: radial-gradient( circle at 90% 0, rgba(91, 140, 59, .28), transparent 23rem), linear-gradient( 135deg, #071a32, #12375f);
    color: #fff;
    box-shadow: 0 16px 40px rgba(7, 26, 50, .16);
}

.temporary-committee-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 17px;
}

.temporary-committee-association-logo {
    display: grid;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    overflow: hidden;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: #fff;
    color: var(--sc-green-dark);
    font-size: 1.55rem;
    font-weight: 950;
    box-shadow: 0 9px 25px rgba(0, 0, 0, .18);
}

    .temporary-committee-association-logo img {
        width: 100%;
        height: 100%;
        padding: 6px;
        object-fit: contain;
    }

.temporary-committee-header-text {
    min-width: 0;
}

.temporary-committee-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #c5deaF;
    font-size: .7rem;
    font-weight: 950;
}

.temporary-committee-header h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-weight: 950;
}

.temporary-committee-header p {
    margin: 4px 0 0;
    color: #d9e5ef;
    font-size: .75rem;
}

.temporary-committee-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

    .temporary-committee-header-meta span {
        display: inline-flex;
        min-height: 27px;
        align-items: center;
        padding: 0 9px;
        border: 1px solid rgba(255, 255, 255, .17);
        border-radius: 999px;
        background: rgba(255, 255, 255, .08);
        color: #e5edf4;
        font-size: .62rem;
        font-weight: 850;
    }

        .temporary-committee-header-meta span.is-current {
            border-color: rgba(190, 222, 169, .45);
            background: rgba(91, 140, 59, .28);
            color: #e8f6df;
        }

.temporary-committee-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.temporary-committee-section {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--sc-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(7, 26, 50, .065);
}

.temporary-committee-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 21px;
    border-bottom: 1px solid var(--sc-border);
    background: linear-gradient( 135deg, rgba(91, 140, 59, .09), rgba(16, 42, 76, .025));
}

    .temporary-committee-section-heading > div:first-child {
        display: flex;
        align-items: center;
        gap: 11px;
    }

        .temporary-committee-section-heading > div:first-child > span {
            display: grid;
            width: 39px;
            height: 39px;
            flex: 0 0 39px;
            place-items: center;
            border-radius: 12px;
            background: var(--sc-navy);
            color: #fff;
            font-weight: 950;
        }

    .temporary-committee-section-heading h2 {
        margin: 0;
        color: var(--sc-navy-dark);
        font-size: 1.06rem;
        font-weight: 950;
    }

    .temporary-committee-section-heading p {
        margin: 4px 0 0;
        color: var(--sc-muted);
        font-size: .72rem;
    }

.temporary-committee-section-summary {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--sc-border);
}

    .temporary-committee-section-summary strong {
        color: var(--sc-green-dark);
        font-size: 1.05rem;
        font-weight: 950;
    }

    .temporary-committee-section-summary span {
        color: var(--sc-muted);
        font-size: .63rem;
    }

.temporary-committee-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    background: #fbfcfd;
}

.temporary-committee-selector-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 123px;
    overflow: hidden;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--sc-border);
    border-radius: 15px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(7, 26, 50, .04);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

    .temporary-committee-selector-card:hover {
        transform: translateY(-3px);
        border-color: rgba(91, 140, 59, .58);
        color: inherit;
        box-shadow: 0 11px 24px rgba(7, 26, 50, .09);
    }

    .temporary-committee-selector-card.is-selected {
        border-color: var(--sc-green);
        background: linear-gradient( 145deg, #fff, #f5faf2);
        box-shadow: inset 0 4px 0 var(--sc-green), 0 10px 23px rgba(91, 140, 59, .12);
    }

.temporary-committee-selector-number {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    background: #eff3f6;
    color: var(--sc-navy);
    font-size: .68rem;
    font-weight: 950;
}

.temporary-committee-selector-card.is-selected
.temporary-committee-selector-number {
    background: var(--sc-green);
    color: #fff;
}

.temporary-committee-selector-body {
    min-width: 0;
    flex: 1;
    padding-top: 2px;
}

    .temporary-committee-selector-body h3 {
        margin: 0;
        color: var(--sc-navy-dark);
        font-size: .82rem;
        font-weight: 950;
        line-height: 1.55;
    }

    .temporary-committee-selector-body p {
        margin: 3px 0 0;
        overflow: hidden;
        color: var(--sc-muted);
        font-size: .59rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.temporary-committee-selector-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

    .temporary-committee-selector-stats span {
        padding: 4px 7px;
        border-radius: 8px;
        background: #f2f5f7;
        color: #6c7988;
        font-size: .56rem;
    }

    .temporary-committee-selector-stats strong {
        color: var(--sc-navy);
        font-weight: 950;
    }

.temporary-committee-selector-status {
    position: absolute;
    bottom: 9px;
    inset-inline-end: 10px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: .52rem;
    font-weight: 900;
}

    .temporary-committee-selector-status.is-established {
        background: var(--sc-green-soft);
        color: var(--sc-green-dark);
    }

    .temporary-committee-selector-status.is-not-established {
        background: #f2f4f6;
        color: #75818e;
    }

.temporary-committee-selected-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.temporary-committee-member-counter {
    display: grid;
    min-width: 61px;
    padding: 6px 9px;
    place-items: center;
    border-radius: 10px;
    background: var(--sc-green-soft);
    color: var(--sc-green-dark);
}

    .temporary-committee-member-counter.is-history {
        background: #eef2f6;
        color: #667586;
    }

    .temporary-committee-member-counter strong,
    .temporary-committee-member-counter span {
        display: block;
    }

    .temporary-committee-member-counter strong {
        font-size: .92rem;
        font-weight: 950;
    }

    .temporary-committee-member-counter span {
        font-size: .52rem;
    }

.temporary-committee-not-started {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-bottom: 1px solid #efe5c6;
    background: #fff9e8;
    color: #806317;
    font-size: .68rem;
}

    .temporary-committee-not-started strong {
        font-weight: 950;
    }

.temporary-committee-empty {
    padding: 47px 20px;
    text-align: center;
}

    .temporary-committee-empty > div {
        font-size: 2rem;
    }

    .temporary-committee-empty h3 {
        margin: 9px 0 5px;
        color: var(--sc-navy-dark);
        font-size: .96rem;
        font-weight: 950;
    }

    .temporary-committee-empty p {
        max-width: 680px;
        margin: 0 auto 13px;
        color: var(--sc-muted);
        font-size: .73rem;
        line-height: 1.7;
    }

.temporary-committee-members-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 19px;
    background: #fbfcfd;
}

.temporary-committee-member-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--sc-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(7, 26, 50, .055);
}

    .temporary-committee-member-card.is-current-member {
        border-top: 4px solid var(--sc-green);
    }

    .temporary-committee-member-card.is-former-member {
        border-top: 4px solid #aab4bf;
        opacity: .91;
    }

.temporary-committee-member-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 14px 0;
}

.temporary-committee-member-photo {
    display: grid;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    overflow: hidden;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 18px;
    background: #eaf3e5;
    color: var(--sc-green-dark);
    font-size: 1.25rem;
    font-weight: 950;
    box-shadow: 0 5px 15px rgba(7, 26, 50, .10);
}

    .temporary-committee-member-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.temporary-committee-member-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.temporary-committee-status-badge,
.temporary-committee-verified-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 7px;
    border-radius: 999px;
    font-size: .53rem;
    font-weight: 900;
}

    .temporary-committee-status-badge.is-active {
        background: #e6f4df;
        color: #3e7028;
    }

    .temporary-committee-status-badge.is-resigned,
    .temporary-committee-status-badge.is-completed {
        background: #edf1f4;
        color: #667380;
    }

    .temporary-committee-status-badge.is-removed,
    .temporary-committee-status-badge.is-deceased {
        background: #fce8e8;
        color: #a63e3e;
    }

    .temporary-committee-status-badge.is-suspended {
        background: #fff1d7;
        color: #8b5d0b;
    }

.temporary-committee-verified-badge {
    background: #e8f2fb;
    color: #2f6392;
}

.temporary-committee-member-body {
    flex: 1;
    padding: 13px 14px;
}

    .temporary-committee-member-body h3 {
        margin: 0;
        color: var(--sc-navy-dark);
        font-size: .9rem;
        font-weight: 950;
    }

.temporary-committee-member-name-en {
    margin: 2px 0 0;
    color: var(--sc-muted);
    font-size: .62rem;
    text-align: start;
}

.temporary-committee-role-block {
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 11px;
    background: #f4f8f1;
}

    .temporary-committee-role-block strong,
    .temporary-committee-role-block small {
        display: block;
    }

    .temporary-committee-role-block strong {
        color: var(--sc-green-dark);
        font-size: .73rem;
        font-weight: 950;
    }

    .temporary-committee-role-block small {
        margin-top: 2px;
        color: #728069;
        font-size: .54rem;
    }

.temporary-committee-member-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

    .temporary-committee-member-details > span {
        padding: 7px;
        border: 1px solid #edf1f4;
        border-radius: 9px;
        background: #fbfcfd;
    }

    .temporary-committee-member-details small,
    .temporary-committee-member-details strong {
        display: block;
    }

    .temporary-committee-member-details small {
        color: var(--sc-muted);
        font-size: .52rem;
    }

    .temporary-committee-member-details strong {
        margin-top: 2px;
        color: #46566a;
        font-size: .61rem;
    }

.temporary-committee-member-footer-info {
    margin-top: 10px;
}

    .temporary-committee-member-footer-info span {
        display: inline-flex;
        min-height: 24px;
        align-items: center;
        padding: 0 8px;
        border-radius: 999px;
        font-size: .54rem;
        font-weight: 850;
    }

    .temporary-committee-member-footer-info .is-voting {
        background: #e8f3e2;
        color: var(--sc-green-dark);
    }

    .temporary-committee-member-footer-info .is-non-voting {
        background: #eef1f4;
        color: #6c7985;
    }

.temporary-committee-member-actions {
    padding: 10px 14px;
    border-top: 1px solid var(--sc-border);
    background: #fbfcfd;
}

    .temporary-committee-member-actions .btn {
        width: 100%;
    }

.temporary-committee-member-form-body {
    padding: 21px;
}

.temporary-committee-member-form .form-control,
.temporary-committee-member-form .form-select,
.temporary-official-search-modal .form-control,
.temporary-official-search-modal .form-select {
    min-height: 45px;
    border-color: #d8e1ea;
    border-radius: 10px;
}

.temporary-committee-member-form textarea.form-control {
    min-height: auto;
}

.temporary-committee-member-form .form-control:focus,
.temporary-committee-member-form .form-select:focus,
.temporary-official-search-modal .form-control:focus,
.temporary-official-search-modal .form-select:focus {
    border-color: var(--sc-green);
    box-shadow: 0 0 0 .2rem rgba(91, 140, 59, .12);
}

.temporary-committee-selected-official {
    display: flex;
    min-height: 69px;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #d8e1ea;
    border-radius: 13px;
    background: #fbfcfd;
}

.temporary-committee-selected-official-photo {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    background: #eaf3e5;
    color: var(--sc-green-dark);
    font-size: 1rem;
    font-weight: 950;
}

    .temporary-committee-selected-official-photo.is-empty {
        background: #f1f4f6;
        color: #7c8996;
    }

    .temporary-committee-selected-official-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.temporary-committee-selected-official-body {
    min-width: 0;
    flex: 1;
}

    .temporary-committee-selected-official-body strong,
    .temporary-committee-selected-official-body span {
        display: block;
    }

    .temporary-committee-selected-official-body strong {
        overflow: hidden;
        color: var(--sc-navy-dark);
        font-size: .81rem;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .temporary-committee-selected-official-body span {
        margin-top: 3px;
        overflow: hidden;
        color: var(--sc-muted);
        font-size: .58rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.temporary-committee-voting-switch {
    display: flex;
    min-height: 45px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    background: #fbfcfd;
}

#LeftOnField.is-required label::after {
    content: " *";
    color: #dc3545;
}

.temporary-committee-member-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 21px;
    border-top: 1px solid var(--sc-border);
    background: #fbfcfd;
}

.temporary-committee-form-note {
    color: var(--sc-muted);
    font-size: .68rem;
}

    .temporary-committee-form-note strong {
        color: var(--sc-navy);
    }

/* Search modal */

.temporary-official-search-modal {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
}

    .temporary-official-search-modal .modal-header {
        border-bottom: 1px solid var(--sc-border);
        background: linear-gradient( 135deg, rgba(91, 140, 59, .12), rgba(16, 42, 76, .035));
    }

        .temporary-official-search-modal .modal-header h5 {
            color: var(--sc-navy-dark);
            font-weight: 950;
        }

        .temporary-official-search-modal .modal-header small {
            color: var(--sc-muted);
            font-size: .65rem;
        }

.temporary-official-search-filters {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) minmax(190px, .8fr) minmax(180px, .7fr) 80px;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    background: #fbfcfd;
}

.temporary-official-search-switches {
    display: flex;
    min-height: 45px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    background: #fff;
    font-size: .65rem;
}

.temporary-official-search-counter {
    display: grid;
    min-height: 45px;
    place-items: center;
    padding: 4px 8px;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    background: #fff;
}

    .temporary-official-search-counter small,
    .temporary-official-search-counter strong {
        display: block;
    }

    .temporary-official-search-counter small {
        color: var(--sc-muted);
        font-size: .52rem;
    }

    .temporary-official-search-counter strong {
        color: var(--sc-green-dark);
        font-size: 1rem;
        font-weight: 950;
    }

.temporary-official-search-message {
    margin: 12px 0;
    padding: 9px 12px;
    border-radius: 10px;
    background: #eef4f8;
    color: #526579;
    font-size: .67rem;
}

    .temporary-official-search-message.is-error {
        background: #fceaea;
        color: #a23f3f;
    }

.temporary-official-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.temporary-official-search-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px;
    border: 1px solid var(--sc-border);
    border-radius: 13px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .temporary-official-search-card:hover {
        border-color: rgba(91, 140, 59, .48);
        box-shadow: 0 7px 18px rgba(7, 26, 50, .07);
    }

.temporary-official-search-photo {
    display: grid;
    width: 58px;
    height: 58px;
    overflow: hidden;
    place-items: center;
    border-radius: 13px;
    background: #eaf3e5;
    color: var(--sc-green-dark);
    font-weight: 950;
}

    .temporary-official-search-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.temporary-official-search-card-body {
    min-width: 0;
}

.temporary-official-search-title-line {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

    .temporary-official-search-title-line strong {
        overflow: hidden;
        color: var(--sc-navy-dark);
        font-size: .75rem;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.temporary-official-search-verified {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    background: #e7f1fb;
    color: #2e6394;
    font-size: .5rem;
    font-weight: 900;
}

.temporary-official-search-name-en {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--sc-muted);
    font-size: .58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.temporary-official-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

    .temporary-official-search-meta span {
        padding: 3px 6px;
        border-radius: 7px;
        background: #f1f4f6;
        color: #667484;
        font-size: .51rem;
    }

.temporary-official-search-contact {
    display: block;
    margin-top: 5px;
    color: #768391;
    font-size: .52rem;
}

@media (max-width: 1199.98px) {
    .temporary-committee-selector-grid,
    .temporary-committee-members-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .temporary-official-search-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .temporary-committee-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .temporary-committee-header-actions {
        width: 100%;
    }

    .temporary-committee-selector-grid,
    .temporary-committee-members-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .temporary-committee-member-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .temporary-official-search-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .temporary-committee-header {
        min-height: auto;
        padding: 19px;
        border-radius: 17px;
    }

    .temporary-committee-identity {
        align-items: flex-start;
    }

    .temporary-committee-association-logo {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .temporary-committee-header-actions,
    .temporary-committee-header-actions .btn {
        width: 100%;
    }

    .temporary-committee-section-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .temporary-committee-selected-actions {
        width: 100%;
        flex-wrap: wrap;
    }

        .temporary-committee-selected-actions .btn {
            flex: 1;
        }

    .temporary-committee-selector-grid,
    .temporary-committee-members-grid {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .temporary-committee-not-started {
        align-items: flex-start;
        flex-direction: column;
    }

    .temporary-committee-member-form-body {
        padding: 16px;
    }

    .temporary-committee-selected-official {
        align-items: stretch;
        flex-wrap: wrap;
    }

        .temporary-committee-selected-official .btn {
            width: 100%;
        }

    .temporary-committee-member-form-actions {
        padding: 15px 16px;
    }

        .temporary-committee-member-form-actions > div:last-child,
        .temporary-committee-member-form-actions > div:last-child .btn {
            width: 100%;
        }

    .temporary-official-search-filters {
        grid-template-columns: 1fr;
    }

    .temporary-official-search-card {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .temporary-official-search-photo {
        width: 52px;
        height: 52px;
    }

    .temporary-official-search-action {
        grid-column: 1 / -1;
    }

        .temporary-official-search-action .btn {
            width: 100%;
        }
}
