/* ========================================
   Common Styles for Related & Complementary Roles Tables
   LinkedIn-Inspired Table/Row Layout
   ======================================== */



/* ========================================
   Skill Tags (Non-selectable Pills)
   ======================================== */
.skill-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px; /* Compact spacing */
}

.skill-tag {
    display: inline-block;
    background: #f4f4f4;
    color: #575656;
    padding: 2.4px 6.4px; /* 3px 8px × 0.8 - more compact */
    border-radius: 3.2px; /* 4px × 0.8 - square corners */
    font-size: 9.6px; /* 12px × 0.8 - smaller font */
    font-weight: 500;
    line-height: 1.3;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
    pointer-events: none;
}


/* Table Container - Common */
.related-roles-table,
.complementary-roles-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Individual Row Base Styling - Common */
.related-role-row,
.complementary-role-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-left: 5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
}

/* First Row Border Radius - Common */
.related-role-row:first-child,
.complementary-role-row:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Last Row Border and Radius - Common */
.related-role-row:last-child,
.complementary-role-row:last-child {
    border-bottom: 1px solid #e0e0e0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Hover Effect Base - Common */
.related-role-row:hover,
.complementary-role-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    position: relative;
    z-index: 1;
}

/* Current Role Text - Common */
.current-role {
    color: #666;
    font-weight: 400;
}

/* Target/Complementary Role Name - Common */
.target-role,
.complementary-role {
    color: #1a1a1a;
    font-weight: 600;
}

/* Description Column - Common */
.role-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Role Transition/Combination Column Base - Common */
.role-transition,
.role-combination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 15px;
    font-weight: 500;
}

/* Modal Title Styling - Common */
.modal-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-title-wrapper .small {
    font-weight: 400;
    font-size: 0.875rem;
}

/* Responsive Design - Tablet - Common */
@media (max-width: 992px) {
    .related-role-row,
    .complementary-role-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .role-transition,
    .role-combination {
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* Responsive Design - Mobile - Common */
@media (max-width: 768px) {
    .related-role-row,
    .complementary-role-row {
        padding: 1rem;
    }
    
    .role-transition,
    .role-combination {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}