/* members.html 特有樣式 */

.table-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.member-table th {
    background-color: var(--bg-sidebar);
    padding: 16px 24px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

/* 五個欄位百分比寬度限制 */
.member-table th:nth-child(1),
.member-table td:nth-child(1) {
    width: 40%;
}
.member-table th:nth-child(2),
.member-table td:nth-child(2) {
    width: 20%;
}
.member-table th:nth-child(3),
.member-table td:nth-child(3) {
    width: 15%;
}
.member-table th:nth-child(4),
.member-table td:nth-child(4) {
    width: 15%;
}
.member-table th:nth-child(5),
.member-table td:nth-child(5) {
    width: 10%;
}

.member-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.member-table tr:last-child td {
    border-bottom: none;
}

.member-cell-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-cell-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.member-cell-avatar.has-image {
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
}

.member-cell-name {
    font-weight: 600;
    color: var(--text-main);
}

.member-cell-email {
    font-size: 12px;
    color: var(--text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: var(--success-light);
    color: var(--success);
}

.status-inactive {
    background-color: var(--bg-hover);
    color: var(--text-muted);
}

.status-pending {
    background-color: var(--warning-light);
    color: var(--warning);
}

.member-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.member-skill-tag {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-hover);
    border-radius: 4px;
    padding: 1px 5px;
}

/* 停用/移除成員彈窗的任務改派區塊樣式 */
.remove-member-task-box {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-main);
}

.remove-member-modal {
    max-width: 460px;
}

.remove-member-message {
    line-height: 1.7;
}

.remove-member-task-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.remove-radio-label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    margin-bottom: 10px;
    cursor: pointer;
}

.remove-radio-label:last-child {
    margin-bottom: 0;
}
