.build-responsibilities-container {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
    margin: 10px 0 !important;
}
.build-responsibilities-container .head {
    background: #f6f8fa;
    text-align: left;
    font-weight: 500;
    padding: 10px;
}
.roles-section{
    padding: 10px;
}
.role-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    padding: 7px;
    border-radius: 4px;
    background-color: #f6f8fa;
    border: 1px solid #ddd;
    justify-content: space-between;
}
.role-title-wrapper {
    flex: 3;
    display: flex;
    align-items: center;
    min-width: 150px;
    position: relative;
}
.role-title {
    margin-right: 8px;
    font-weight: bold;
    margin-right: 5px;
    font-size: 12px;
    text-transform: uppercase;
}
.role-info-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #455afb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    font-style: italic;
}
.role-tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    max-width: 250px;
    background-color: #333;
    color: #fff !important;
    text-align: left;
    border-radius: 4px;
    padding: 8px 12px !important;
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 100%;
    margin-top: 5px;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.8em;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto; /* Allow the tooltip to receive mouse events */
}
.role-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 20px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}
.role-info-icon:hover + .role-tooltip,
.role-tooltip:hover {
    visibility: visible;
    opacity: 1;
}
.role-users-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.assignee-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-right: -8px !important;
    z-index: 1;
    transition: transform 0.2s ease;
}
.assignee-avatar-wrapper:hover {
    transform: scale(1.1);
    z-index: 10 !important;
}
.assignee-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    object-fit: cover;
}
.remove-assignee {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}
.assignee-avatar-wrapper:hover .remove-assignee {
    opacity: 1;
}
.remove-assignee:hover {
    background-color: #c82333;
}
.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background-color: #333;
    color: #fff !important;
    text-align: center;
    border-radius: 4px;
    padding: 6px 8px !important;
    position: absolute;
    z-index: 1000;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    transition: opacity 0.3s, visibility 0.3s;
    white-space: nowrap;
    font-size: 0.8em;
    pointer-events: none;
    line-height: 1;
}
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
}
.assignee-avatar-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.assignee-not-assigned {
    color: #666;
    font-size: 0.9em;
}
.add-assignee-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #d0d7de;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}
.add-assignee-button:hover {
    background-color: #455afb;
    color: white !important;
}

/* New Popup Styles */
.br-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.br-popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.br-popup-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.br-popup-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.br-popup-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.br-popup-close {
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
    line-height: 1;
}

.br-popup-close:hover {
    color: #333;
}

.br-popup-body {
    padding: 20px;
    overflow-y: auto;
}

.br-user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.br-user-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.br-user-list li:hover {
    background-color: #f0f0f0;
}

.br-user-list li:last-child {
    border-bottom: none;
}

.br-user-list li img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.br-user-list li span {
    font-weight: bold;
}

.br-popup-message {
    padding: 10px 20px 20px;
    text-align: center;
    font-size: 0.9em;
    color: #555;
}

.br-popup-message.success {
    color: #28a745;
}

.br-popup-message.error {
    color: #dc3545;
}
