/* ── Acting-as switcher (navmenu) ────────────────────────────────────────── */

.acting-as-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.acting-as-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-base-100);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    color: var(--color-primary);
    font-weight: 600;
    padding: 6px 14px;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.acting-as-btn:hover {
    background-color: #fff;
}

.acting-as-label {
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acting-as-dropdown {
    display: none;
    position: fixed;
    width: 260px;
    max-height: 340px;
    overflow-y: auto;
    background: #faf6f0;
    border: 1px solid #e8dcc8;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.acting-as-dropdown.open {
    display: block;
}

.acting-as-dropdown-header {
    padding: 10px 14px;
    font-weight: 700;
    color: #5d4e37;
    border-bottom: 1px solid #e8dcc8;
}

.acting-as-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.acting-as-form {
    display: block;
}

.acting-as-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 14px;
    color: #333;
    font-size: 0.9rem;
}

.acting-as-item:hover {
    background-color: #f5f1eb;
    color: #5d4e37;
}

/* ── Support ticket creation form (email_detail / conversation) ─────────────── */

.support-ticket-form-wrap {
    background: #f5f1eb;
    border: 1px solid #e8dcc8;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.support-ticket-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-ticket-label {
    font-weight: 700;
    color: #5d4e37;
}

.support-ticket-textarea {
    width: 100%;
    min-height: 70px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    resize: vertical;
}

.support-ticket-textarea:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.25);
}

.support-ticket-submit-btn {
    align-self: flex-start;
    background: #5d4e37;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.support-ticket-submit-btn:hover {
    background: #3e3527;
}

/* Delegate invite / confirmation flow (TWINNERWEB-30/31/426) */

.delegation-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
}

.delegation-section {
    background: #f5f1eb;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.delegation-disclosure {
    background: #e8dcc8;
    border: 1px solid #c4a882;
}

.delegation-disclosure-text {
    font-weight: 600;
    color: #5d4e37;
}

.delegation-field-error {
    color: #dc3545;
    font-size: 0.9em;
    margin: 4px 0 10px;
}

.delegation-field-hint {
    color: #6c757d;
    font-size: 0.85em;
}

.delegation-message {
    background: #f5f1eb;
    color: #28a745;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.delegation-invite-list {
    list-style: none;
    padding: 0;
}

.delegation-inline-form {
    display: inline;
}
