﻿/* Potential members â€” [cp_potential_members]. Depends on auditions-common.css */
body.cp-potential-members-modal-open { overflow: hidden; }

/* Potential members — general interest (phase 6b) */
.cp-postcontent .cp-potential-members {
    margin: 0 0 1.5rem;
    min-width: 0;
    max-width: 100%;
}

.cp-postcontent .cp-potential-members__bar {
    margin: 0 0 0.85rem !important;
    padding: 0 0 0.55rem;
    border-bottom: 1px solid #e0d5c8;
}

.cp-postcontent .cp-potential-members__list-section {
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cp-postcontent .cp-potential-members__bar-text {
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #5e5e5e;
}

.cp-postcontent .cp-potential-members__show {
    font-weight: 700 !important;
    color: #741f11 !important;
    text-decoration: none !important;
}

.cp-postcontent .cp-potential-members__show:hover,
.cp-postcontent .cp-potential-members__show:focus {
    text-decoration: underline !important;
}

.cp-postcontent .cp-potential-members__flash.is-error {
    display: block;
    margin: 0 0 0.25rem !important;
    font-weight: 700 !important;
    color: #741f11 !important;
}

.cp-postcontent .cp-potential-members__message,
.cp-postcontent .cp-potential-members__empty,
.cp-postcontent .cp-potential-members__filter-empty,
.cp-postcontent .cp-potential-members__hint {
    margin: 0.5rem 0 !important;
    color: #4a3828;
}

.cp-postcontent .cp-potential-members__notice {
    margin: 0 0 0.85rem !important;
}

.cp-postcontent .cp-potential-members__add-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: end;
}

.cp-postcontent .cp-potential-members__field {
    margin: 0 !important;
    min-width: 0;
}

.cp-postcontent .cp-potential-members__field label {
    display: block;
    margin: 0 0 0.2rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #3d2314 !important;
}

.cp-postcontent .cp-potential-members__field input[type="text"],
.cp-postcontent .cp-potential-members__field input[type="email"],
.cp-postcontent .cp-potential-members__field input[type="tel"],
.cp-postcontent .cp-potential-members__field textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: 2.5rem !important;
    padding: 0.45rem 0.65rem !important;
    font-size: 1rem !important;
    border: 1px solid #c4b5a8 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #3d2314 !important;
}

@media screen and (min-width: 900px) {
    .cp-postcontent .cp-potential-members__add-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
        gap: 0.5rem 0.65rem;
    }

    .cp-postcontent .cp-potential-members__field--action {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding-bottom: 0.1rem;
    }
}

.cp-postcontent .cp-potential-members__required {
    color: #741f11 !important;
}

.cp-postcontent .cp-potential-members__submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 0.5rem 0 0 !important;
}

.cp-postcontent .cp-potential-members__submit,
.cp-postcontent .cp-potential-members__search-btn {
    margin: 0 !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cp-postcontent .cp-potential-members__submit {
    border: 1px solid #5a180d !important;
    background: #741f11 !important;
    color: #fff !important;
}

.cp-postcontent .cp-potential-members__search-btn {
    border: 1px solid #c4b5a8 !important;
    background: #fff !important;
    color: #3d2314 !important;
}

.cp-postcontent .cp-potential-members__list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.cp-postcontent .cp-potential-members__list-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.cp-postcontent .cp-potential-members__filters,
.cp-postcontent .cp-potential-members__search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cp-postcontent .cp-potential-members__sort-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.cp-postcontent .cp-potential-members__sort-label {
    margin: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #3d2314 !important;
    white-space: nowrap;
}

.cp-postcontent .cp-potential-members__sort-dir {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2rem !important;
    width: 2rem !important;
    min-height: 2.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #c4b5a8 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #3d2314 !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease !important;
}

.cp-postcontent .cp-potential-members__sort-dir:hover,
.cp-postcontent .cp-potential-members__sort-dir:focus-visible {
    background: #f7f2ed !important;
    border-color: #8b7355 !important;
    transform: translateY(-1px) !important;
}

.cp-postcontent .cp-potential-members__sort-dir-icon {
    display: block;
    line-height: 1;
}

.cp-postcontent .cp-potential-members__sort {
    min-height: 2.5rem !important;
    padding: 0.4rem 0.55rem !important;
    font-size: 0.9rem !important;
    border: 1px solid #c4b5a8 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #3d2314 !important;
    width: auto !important;
    max-width: 100% !important;
}

.cp-postcontent .cp-potential-members__filters input[type="search"],
.cp-postcontent .cp-potential-members__search input[type="search"] {
    width: 14rem !important;
    max-width: 100% !important;
    min-height: 2.5rem !important;
    padding: 0.45rem 0.65rem !important;
    border: 1px solid #c4b5a8 !important;
    border-radius: 6px !important;
}

.cp-postcontent .cp-potential-members__table-wrap {
    overflow-x: visible;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    border: 1px solid #e0d5c8;
    border-radius: 8px;
    background: #fff;
}

.cp-postcontent .cp-potential-members__table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cp-postcontent .cp-potential-members__table th,
.cp-postcontent .cp-potential-members__table td {
    padding: 0.55rem 0.65rem !important;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #eee5dc;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    hyphens: auto;
}

.cp-postcontent .cp-potential-members__table th:nth-child(1),
.cp-postcontent .cp-potential-members__table td:nth-child(1) {
    width: 22%;
}

.cp-postcontent .cp-potential-members__table th:nth-child(2),
.cp-postcontent .cp-potential-members__table td:nth-child(2) {
    width: 22%;
}

@media screen and (min-width: 768px) {
    .cp-postcontent .cp-potential-members__table th:nth-child(1),
    .cp-postcontent .cp-potential-members__table td:nth-child(1) {
        width: 38%;
    }

    .cp-postcontent .cp-potential-members__table th:nth-child(2),
    .cp-postcontent .cp-potential-members__table td:nth-child(2) {
        width: 16%;
    }

    .cp-postcontent .cp-potential-members__cell-name {
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: manual;
    }

    .cp-postcontent .cp-potential-members__meta--contact {
        white-space: nowrap;
    }
}

.cp-postcontent .cp-potential-members__table tbody tr.is-active {
    background: #fff8f0;
}

.cp-postcontent .cp-potential-members__meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #6b5748 !important;
}

.cp-postcontent .cp-potential-members__person {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.cp-postcontent .cp-potential-members__person-main {
    min-width: 0;
    flex: 1 1 auto;
}

.cp-postcontent .cp-potential-members__person-tools {
    display: flex;
    flex-shrink: 0;
    align-items: flex-start;
    gap: 0.35rem;
}

.cp-postcontent .cp-potential-members__edit-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(129, 35, 18, 0.3) !important;
    border-radius: 4px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: 0 1px 3px rgba(61, 35, 20, 0.12) !important;
    cursor: pointer;
}

.cp-postcontent .cp-potential-members__edit-btn:hover,
.cp-postcontent .cp-potential-members__edit-btn:focus {
    background: rgba(129, 35, 18, 0.12) !important;
    border-color: rgba(129, 35, 18, 0.5) !important;
}

.cp-postcontent .cp-potential-members__edit-btn .cp-edit-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.cp-postcontent .cp-potential-members__email-under-name {
    display: none;
}

.cp-postcontent .cp-potential-members__dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.cp-postcontent .cp-potential-members__date {
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
    margin: 0 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

.cp-postcontent .cp-potential-members__date input {
    margin: 0 !important;
    width: auto !important;
}

.cp-postcontent .cp-potential-members__book-feedback {
    display: inline-block;
    margin: 0 !important;
    padding: 0 0.15rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #5e7a48 !important;
    line-height: 1.3;
    white-space: nowrap;
    vertical-align: middle;
}

.cp-postcontent .cp-potential-members__book-feedback.is-pending {
    color: #8a7768 !important;
}

.cp-postcontent .cp-potential-members__book-feedback.is-error {
    color: #741f11 !important;
}

.cp-postcontent .cp-potential-members__person-tools .cp-potential-members__status {
    margin: 0 !important;
    vertical-align: middle;
}

.cp-postcontent .cp-potential-members__table th {
    background: #f5f0ea !important;
    font-weight: 700 !important;
    color: #3d2314 !important;
}

.cp-postcontent .cp-potential-members__history {
    font-size: 0.85rem;
    color: #5e5e5e !important;
}

.cp-postcontent .cp-potential-members__actions a {
    display: inline-block;
    margin: 0 0.65rem 0.15rem 0;
    font-weight: 600 !important;
    white-space: normal;
}

/* Mobile list cards: auditions-common.css (shared with register walk-in). */
@media screen and (max-width: 767px) {
    /* Toolbar layout C: count + Add row, then search + sort + direction */
    .cp-postcontent .cp-potential-members__list-head {
        grid-template-areas:
            "count add"
            "filters filters";
    }

    .cp-postcontent .cp-potential-members__filters {
        grid-area: filters;
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "search select dir";
        gap: 0.35rem;
        align-items: center;
        width: 100%;
    }

    .cp-postcontent .cp-potential-members__filters input[type="search"] {
        grid-area: search;
        width: auto !important;
        min-width: 0 !important;
        min-height: 2.35rem !important;
    }

    .cp-postcontent .cp-potential-members__sort-group {
        display: contents;
    }

    .cp-postcontent .cp-potential-members__sort-label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .cp-postcontent .cp-potential-members__sort {
        grid-area: select;
        width: auto !important;
        max-width: 9.75rem !important;
        min-width: 0 !important;
        min-height: 2.35rem !important;
        padding-left: 0.4rem !important;
        padding-right: 1.35rem !important;
        font-size: 0.82rem !important;
    }

    .cp-postcontent .cp-potential-members__sort-dir {
        grid-area: dir;
        width: 2.15rem !important;
        min-width: 2.15rem !important;
        min-height: 2.35rem !important;
    }

    .cp-postcontent .cp-potential-members__sort-group input[type="hidden"] {
        display: none !important;
    }

    .cp-postcontent .cp-potential-members__table .cp-potential-members__history.is-empty {
        display: none !important;
    }

    .cp-postcontent .cp-potential-members__dates {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.35rem 0.75rem;
    }

    .cp-postcontent .cp-potential-members__date {
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

}

.cp-postcontent .cp-potential-members__status {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700 !important;
}

.cp-postcontent .cp-potential-members__status--interest {
    background: #f5f0ea;
    color: #5e5e5e !important;
}

.cp-postcontent .cp-potential-members__status--booked {
    background: #e3f2fd;
    color: #0d47a1 !important;
}

.cp-postcontent .cp-potential-members__status--attended {
    background: #e8f5e9;
    color: #1b5e20 !important;
}

.cp-postcontent .cp-potential-members__meta--source {
    font-weight: 600 !important;
    color: #6b5748 !important;
}
