/* ==========================================================
   balboa.myaccount.css
   Page-specific styles for myaccount.cfm.
   Loaded via REQUEST.pageCSS.
   ========================================================== */

/* ── Section label (style guide v1.2: Inter 600, 11px, uppercase, 0.08em tracking) ── */
.ma-section-label {
    font-family: var(--font-ui);
    font-weight: var(--fw-semibold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    display: block;
    margin-bottom: 8px;
}

/* ── Profile card ── */
.ma-profile-photo {
    max-width: 150px;
    margin-bottom: 12px;
}

.ma-profile-info address {
    margin-bottom: 12px;
    line-height: 1.6;
}

.ma-profile-footer {
    font-size: 12px;
    color: #999;
}

/* ── Admin context bar ── */
.ma-admin-bar {
    border-left: 4px solid var(--bs-info-btn);
}

/* ── Notification checkbox layout ── */
.ma-notify-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ma-notify-grid .checkbox {
    margin: 0;
    flex: 1 1 200px;
}

/* ── CTP locked display ── */
.ma-ctp-locked {
    padding: 10px 0;
}

/* ── Collapse sections inside profile card ── */
.ma-collapse-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-separator);
}

.ma-collapse-section h5 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: 15px;
    margin: 0 0 12px;
}


/* ==========================================================
   PAIRING PREFERENCES — extracted from _inc_myaccount_pairing_prefs.cfm
   ========================================================== */

/* --- List containers --- */
.pp-list-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

/* --- Headers --- */
.pp-list-header {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    position: relative;
}
.pp-list-header .pp-count-badge {
    float: right;
    font-size: 11px;
    font-weight: normal;
    margin-top: 1px;
}
.pp-header-playwith {
    background: #5cb85c;
}
.pp-header-playwith .pp-count-badge {
    background: rgba(255,255,255,0.25);
}
.pp-header-donotpair {
    background: #c9302c;
}
.pp-header-donotpair .pp-count-badge {
    background: rgba(255,255,255,0.25);
}

/* --- Search area --- */
.pp-search-wrap {
    padding: 10px 10px 6px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    position: relative;
}

/* --- Entry list --- */
.pp-entry-list {
    min-height: 60px;
    max-height: 320px;
    overflow-y: auto;
}

/* --- Individual entry --- */
.pp-entry {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    -webkit-transition: background-color 0.15s ease;
    transition: background-color 0.15s ease;
}
.pp-entry:last-child {
    border-bottom: none;
}
.pp-entry:hover {
    background-color: #f9f9f9;
}
.pp-entry-info {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    min-width: 0;
    -webkit-flex: 1;
    flex: 1;
}
.pp-entry-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}
.pp-entry-hi {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    background: #eef5ee;
    border: 1px solid #d6e9d6;
    border-radius: 3px;
    padding: 1px 6px;
    white-space: nowrap;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

/* --- Remove button --- */
.pp-remove-btn {
    color: #bbb;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    padding: 2px 0 2px 10px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    -webkit-transition: color 0.15s ease;
    transition: color 0.15s ease;
}
.pp-remove-btn:hover,
.pp-remove-btn:focus {
    color: #d9534f;
    text-decoration: none;
}

/* --- Empty state --- */
.pp-empty-msg {
    padding: 20px 12px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}
.pp-empty-msg .fa {
    margin-right: 3px;
}

/* --- Autocomplete dropdown --- */
.pp-autocomplete-dropdown {
    position: absolute;
    z-index: 1050;
    left: 10px;
    right: 10px;
    top: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.pp-autocomplete-item {
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
}
.pp-autocomplete-item:last-child {
    border-bottom: none;
}
.pp-autocomplete-item:hover {
    background-color: #e8f4fd;
}
.pp-autocomplete-item .pp-ac-name {
    font-weight: 500;
    color: #333;
}
.pp-autocomplete-item .pp-ac-hi {
    font-size: 11px;
    color: #888;
    margin-left: 4px;
}
.pp-autocomplete-item.pp-ac-nomatch {
    cursor: default;
    color: #aaa;
    font-style: italic;
}
.pp-autocomplete-item.pp-ac-nomatch:hover {
    background-color: transparent;
}

/* --- Tooltip fix (prevents tooltip from blocking click) --- */
.tooltip {
    pointer-events: none;
}
