﻿/*
===============================================================================
GEDIAN SPORTS
Association Board of Directors Terms
===============================================================================
*/

.association-terms-page {
    --terms-navy: #0f2747;
    --terms-navy-dark: #071a33;
    --terms-green: #5b8c3b;
    --terms-green-dark: #416d2b;
    --terms-border: #e2e9f0;
    --terms-muted: #68778a;
    color: var(--terms-navy-dark);
}

.association-terms-header {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border-radius: 22px;
    background: radial-gradient( circle at top right, rgba(255, 255, 255, .13), transparent 25rem), linear-gradient( 135deg, var(--terms-navy-dark), var(--terms-navy));
    color: #fff;
    box-shadow: 0 15px 38px rgba(7, 26, 51, .16);
}

.association-terms-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 17px;
}

.association-terms-logo {
    display: grid;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    overflow: hidden;
    place-items: center;
    border: 3px solid rgba(255,255,255,.8);
    border-radius: 20px;
    background: #fff;
    color: var(--terms-navy);
    font-size: 1.6rem;
    font-weight: 950;
    box-shadow: 0 9px 23px rgba(0,0,0,.16);
}

    .association-terms-logo img {
        width: 100%;
        height: 100%;
        padding: 7px;
        object-fit: contain;
    }

.association-terms-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #bcd9ab;
    font-size: .72rem;
    font-weight: 900;
}

.association-terms-header h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 950;
}

.association-terms-header p {
    margin: 6px 0 0;
    font-weight: 800;
}

.association-terms-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

    .association-terms-meta span {
        padding: 4px 9px;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 999px;
        background: rgba(255,255,255,.09);
        color: #dbe5ef;
        font-size: .68rem;
        font-weight: 800;
    }

.association-terms-card {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--terms-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(7, 26, 51, .07);
}

.association-terms-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 21px;
    border-bottom: 1px solid var(--terms-border);
    background: linear-gradient( 135deg, rgba(91, 140, 59, .09), rgba(15, 39, 71, .025));
}

    .association-terms-card-heading > div:first-child {
        display: flex;
        align-items: center;
        gap: 11px;
    }

        .association-terms-card-heading > div:first-child > span {
            display: grid;
            width: 39px;
            height: 39px;
            flex: 0 0 39px;
            place-items: center;
            border-radius: 12px;
            background: var(--terms-navy);
            color: #fff;
            font-weight: 950;
        }

    .association-terms-card-heading h2 {
        margin: 0;
        color: var(--terms-navy-dark);
        font-size: 1.08rem;
        font-weight: 950;
    }

    .association-terms-card-heading p {
        margin: 4px 0 0;
        color: var(--terms-muted);
        font-size: .75rem;
    }

.association-terms-table-wrap {
    padding: 0 17px 17px;
}

.association-terms-table thead th {
    padding: 14px 10px;
    background: #f4f7fa;
    color: var(--terms-navy);
    font-size: .72rem;
    font-weight: 950;
    text-align: center;
    white-space: nowrap;
}

.association-terms-table tbody td {
    padding: 13px 10px;
    border-color: #edf1f5;
    color: #344256;
    font-size: .76rem;
    text-align: center;
    vertical-align: middle;
}

.association-terms-table tbody tr.is-current-term {
    background: #f5fbf1;
    box-shadow: inset -4px 0 0 var(--terms-green);
}

.association-term-name {
    min-width: 195px;
    text-align: start;
}

    .association-term-name strong,
    .association-term-name span,
    .association-term-name small {
        display: block;
    }

    .association-term-name strong {
        color: var(--terms-navy-dark);
        font-size: .86rem;
        font-weight: 950;
    }

    .association-term-name span {
        margin-top: 3px;
        color: #4e5c6e;
    }

    .association-term-name small {
        margin-top: 2px;
        color: var(--terms-muted);
        text-align: start;
    }

html[dir="rtl"] .association-term-name small,
body[dir="rtl"] .association-term-name small {
    text-align: right;
}

.association-term-period {
    display: block;
    color: var(--terms-navy-dark);
    font-size: .72rem;
    white-space: nowrap;
}

.association-term-extension {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff1d9;
    color: #8b5f0c;
    font-size: .62rem;
    font-weight: 900;
}

.association-term-status {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 900;
    white-space: nowrap;
}

    .association-term-status.is-planned {
        background: #eaf2fb;
        color: #2d659b;
    }

    .association-term-status.is-current {
        background: #e7f4e0;
        color: #3f7027;
    }

    .association-term-status.is-completed {
        background: #eef1f4;
        color: #596775;
    }

    .association-term-status.is-suspended {
        background: #fff2da;
        color: #8a5d0a;
    }

    .association-term-status.is-cancelled,
    .association-term-status.is-dissolved {
        background: #fde9e9;
        color: #a33434;
    }

.association-terms-empty {
    padding: 50px 20px;
    text-align: center;
}

    .association-terms-empty > div {
        font-size: 2rem;
    }

    .association-terms-empty h3 {
        margin: 10px 0 5px;
        font-size: 1rem;
        font-weight: 950;
    }

    .association-terms-empty p {
        margin: 0 0 14px;
        color: var(--terms-muted);
        font-size: .79rem;
    }

.association-term-form-body {
    padding: 21px;
}

.association-term-form .form-control,
.association-term-form .form-select {
    min-height: 45px;
    border-color: #d8e1eb;
    border-radius: 10px;
}

.association-term-form textarea.form-control {
    min-height: auto;
}

.association-term-form .form-control:focus,
.association-term-form .form-select:focus {
    border-color: var(--terms-green);
    box-shadow: 0 0 0 .2rem rgba(91, 140, 59, .12);
}

.association-term-advanced {
    overflow: hidden;
    border: 1px solid var(--terms-border);
    border-radius: 13px;
    background: #fafcfd;
}

    .association-term-advanced summary {
        padding: 12px 14px;
        color: var(--terms-navy);
        font-size: .78rem;
        font-weight: 900;
        cursor: pointer;
        user-select: none;
    }

    .association-term-advanced[open] summary {
        border-bottom: 1px solid var(--terms-border);
        background: #f4f8fb;
    }

    .association-term-advanced > .row {
        padding: 0 14px 15px;
    }

.association-term-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 21px;
    border-top: 1px solid var(--terms-border);
    background: #fbfcfd;
}

.association-term-form-note {
    max-width: 670px;
    color: var(--terms-muted);
    font-size: .72rem;
    line-height: 1.7;
}

    .association-term-form-note strong {
        color: var(--terms-navy-dark);
    }

@media (max-width: 991.98px) {
    .association-terms-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .association-terms-header-actions {
        width: 100%;
    }

    .association-term-form-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .association-terms-header {
        min-height: auto;
        padding: 19px;
        border-radius: 17px;
    }

    .association-terms-logo {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 16px;
    }

    .association-terms-card-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

        .association-terms-card-heading .btn {
            width: 100%;
        }

    .association-term-form-body {
        padding: 16px;
    }

    .association-term-form-actions {
        padding: 15px 16px;
    }

        .association-term-form-actions > div:last-child,
        .association-term-form-actions > div:last-child .btn {
            width: 100%;
        }
}


.association-term-committee-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(125px, 1fr));
    gap: 6px;
    min-width: 270px;
}

.association-term-committee-buttons .btn {
    white-space: nowrap;
    font-size: .68rem;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .association-term-committee-buttons {
        grid-template-columns: 1fr;
        min-width: 165px;
    }
}
